- {
- “cells”: [
- {
“cell_type”: “markdown”, “metadata”: {}, “source”: [
“# HoloViews defaultsn”, “n”, “<hr>”
]
}, {
“cell_type”: “code”, “execution_count”: 1, “metadata”: {}, “outputs”: [
- {
- “data”: {
- “application/javascript”: [
“n”, “(function(root) {n”, ” function now() {n”, ” return new Date();n”, ” }n”, “n”, ” var force = true;n”, “n”, ” if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) {n”, ” root._bokeh_onload_callbacks = [];n”, ” root._bokeh_is_loading = undefined;n”, ” }n”, “n”, ” if (typeof (root._bokeh_timeout) === "undefined" || force === true) {n”, ” root._bokeh_timeout = Date.now() + 5000;n”, ” root._bokeh_failed_load = false;n”, ” }n”, “n”, ” function run_callbacks() {n”, ” try {n”, ” root._bokeh_onload_callbacks.forEach(function(callback) {n”, ” if (callback != null)n”, ” callback();n”, ” });n”, ” } finally {n”, ” delete root._bokeh_onload_callbacksn”, ” }n”, ” console.debug("Bokeh: all callbacks have finished");n”, ” }n”, “n”, ” function load_libs(css_urls, js_urls, callback) {n”, ” if (css_urls == null) css_urls = [];n”, ” if (js_urls == null) js_urls = [];n”, “n”, ” root._bokeh_onload_callbacks.push(callback);n”, ” if (root._bokeh_is_loading > 0) {n”, ” console.debug("Bokeh: BokehJS is being loaded, scheduling callback at", now());n”, ” return null;n”, ” }n”, ” if (js_urls == null || js_urls.length === 0) {n”, ” run_callbacks();n”, ” return null;n”, ” }n”, ” console.debug("Bokeh: BokehJS not loaded, scheduling load and callback at", now());n”, ” root._bokeh_is_loading = css_urls.length + js_urls.length;n”, “n”, ” function on_load() {n”, ” root._bokeh_is_loading–;n”, ” if (root._bokeh_is_loading === 0) {n”, ” console.debug("Bokeh: all BokehJS libraries/stylesheets loaded");n”, ” run_callbacks()n”, ” }n”, ” }n”, “n”, ” function on_error() {n”, ” console.error("failed to load " + url);n”, ” }n”, “n”, ” for (var i = 0; i < css_urls.length; i++) {n”, ” var url = css_urls[i];n”, ” const element = document.createElement("link");n”, ” element.onload = on_load;n”, ” element.onerror = on_error;n”, ” element.rel = "stylesheet";n”, ” element.type = "text/css";n”, ” element.href = url;n”, ” console.debug("Bokeh: injecting link tag for BokehJS stylesheet: ", url);n”, ” document.body.appendChild(element);n”, ” }n”, “n”, ” if (window.requirejs) {n”, ” require([], function() {n”, ” run_callbacks();n”, ” })n”, ” } else {n”, ” var skip = [];n”, ” for (var i = 0; i < js_urls.length; i++) {n”, ” var url = js_urls[i];n”, ” if (skip.indexOf(url) >= 0) { on_load(); continue; }n”, ” var element = document.createElement(‘script’);n”, ” element.onload = on_load;n”, ” element.onerror = on_error;n”, ” element.async = false;n”, ” element.src = url;n”, ” console.debug("Bokeh: injecting script tag for BokehJS library: ", url);n”, ” document.head.appendChild(element);n”, ” }n”, ” }n”, ” };n”, “n”, ” function inject_raw_css(css) {n”, ” const element = document.createElement("style");n”, ” element.appendChild(document.createTextNode(css));n”, ” document.body.appendChild(element);n”, ” }n”, “n”, ” var js_urls = [];n”, ” var css_urls = [];n”, “n”, ” var inline_js = [n”, ” function(Bokeh) {n”, ” inject_raw_css(".widget-box {\n\tmin-height: 20px;\n\tbackground-color: #f5f5f5;\n\tborder: 1px solid #e3e3e3 !important;\n\tborder-radius: 4px;\n\t-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\tbox-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\toverflow-x: hidden;\n\toverflow-y: hidden;\n}\n\n.scrollable {\n overflow: scroll;\n}\n\nprogress {\n\tappearance: none;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\n\tborder: none;\n\theight: 20px;\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n\tcolor: royalblue;\n\tposition: relative;\n\tmargin: 0 0 1.5em;\n}\n\nprogress[value]::-webkit-progress-bar {\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n}\n\nprogress[value]::-webkit-progress-value {\n\tposition: relative;\n\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress.active:not([value])::before {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress[value]::-moz-progress-bar {\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress:not([value])::-moz-progress-bar {\n\tborder-radius:3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n\n}\n\nprogress.active:not([value])::-moz-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.active:not([value])::-webkit-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.primary[value]::-webkit-progress-value { background-color: #007bff; }\nprogress.primary:not([value])::before { background-color: #007bff; }\nprogress.primary:not([value])::-webkit-progress-bar { background-color: #007bff; }\nprogress.primary::-moz-progress-bar { background-color: #007bff; }\n\nprogress.secondary[value]::-webkit-progress-value { background-color: #6c757d; }\nprogress.secondary:not([value])::before { background-color: #6c757d; }\nprogress.secondary:not([value])::-webkit-progress-bar { background-color: #6c757d; }\nprogress.secondary::-moz-progress-bar { background-color: #6c757d; }\n\nprogress.success[value]::-webkit-progress-value { background-color: #28a745; }\nprogress.success:not([value])::before { background-color: #28a745; }\nprogress.success:not([value])::-webkit-progress-bar { background-color: #28a745; }\nprogress.success::-moz-progress-bar { background-color: #28a745; }\n\nprogress.danger[value]::-webkit-progress-value { background-color: #dc3545; }\nprogress.danger:not([value])::before { background-color: #dc3545; }\nprogress.danger:not([value])::-webkit-progress-bar { background-color: #dc3545; }\nprogress.danger::-moz-progress-bar { background-color: #dc3545; }\n\nprogress.warning[value]::-webkit-progress-value { background-color: #ffc107; }\nprogress.warning:not([value])::before { background-color: #ffc107; }\nprogress.warning:not([value])::-webkit-progress-bar { background-color: #ffc107; }\nprogress.warning::-moz-progress-bar { background-color: #ffc107; }\n\nprogress.info[value]::-webkit-progress-value { background-color: #17a2b8; }\nprogress.info:not([value])::before { background-color: #17a2b8; }\nprogress.info:not([value])::-webkit-progress-bar { background-color: #17a2b8; }\nprogress.info::-moz-progress-bar { background-color: #17a2b8; }\n\nprogress.light[value]::-webkit-progress-value { background-color: #f8f9fa; }\nprogress.light:not([value])::before { background-color: #f8f9fa; }\nprogress.light:not([value])::-webkit-progress-bar { background-color: #f8f9fa; }\nprogress.light::-moz-progress-bar { background-color: #f8f9fa; }\n\nprogress.dark[value]::-webkit-progress-value { background-color: #343a40; }\nprogress.dark:not([value])::-webkit-progress-bar { background-color: #343a40; }\nprogress.dark:not([value])::before { background-color: #343a40; }\nprogress.dark::-moz-progress-bar { background-color: #343a40; }\n\nprogress:not([value])::-webkit-progress-bar {\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\nprogress:not([value])::before {\n\tcontent:\" \";\n\tposition:absolute;\n\theight: 20px;\n\ttop:0;\n\tleft:0;\n\tright:0;\n\tbottom:0;\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\n\n@keyframes stripes {\n from {background-position: 0%}\n to {background-position: 100%}\n}");n”, ” },n”, ” function(Bokeh) {n”, ” inject_raw_css(".codehilite .hll { background-color: #ffffcc }\n.codehilite { background: #f8f8f8; }\n.codehilite .c { color: #408080; font-style: italic } /* Comment /\n.codehilite .err { border: 1px solid #FF0000 } / Error /\n.codehilite .k { color: #008000; font-weight: bold } / Keyword /\n.codehilite .o { color: #666666 } / Operator /\n.codehilite .ch { color: #408080; font-style: italic } / Comment.Hashbang /\n.codehilite .cm { color: #408080; font-style: italic } / Comment.Multiline /\n.codehilite .cp { color: #BC7A00 } / Comment.Preproc /\n.codehilite .cpf { color: #408080; font-style: italic } / Comment.PreprocFile /\n.codehilite .c1 { color: #408080; font-style: italic } / Comment.Single /\n.codehilite .cs { color: #408080; font-style: italic } / Comment.Special /\n.codehilite .gd { color: #A00000 } / Generic.Deleted /\n.codehilite .ge { font-style: italic } / Generic.Emph /\n.codehilite .gr { color: #FF0000 } / Generic.Error /\n.codehilite .gh { color: #000080; font-weight: bold } / Generic.Heading /\n.codehilite .gi { color: #00A000 } / Generic.Inserted /\n.codehilite .go { color: #888888 } / Generic.Output /\n.codehilite .gp { color: #000080; font-weight: bold } / Generic.Prompt /\n.codehilite .gs { font-weight: bold } / Generic.Strong /\n.codehilite .gu { color: #800080; font-weight: bold } / Generic.Subheading /\n.codehilite .gt { color: #0044DD } / Generic.Traceback /\n.codehilite .kc { color: #008000; font-weight: bold } / Keyword.Constant /\n.codehilite .kd { color: #008000; font-weight: bold } / Keyword.Declaration /\n.codehilite .kn { color: #008000; font-weight: bold } / Keyword.Namespace /\n.codehilite .kp { color: #008000 } / Keyword.Pseudo /\n.codehilite .kr { color: #008000; font-weight: bold } / Keyword.Reserved /\n.codehilite .kt { color: #B00040 } / Keyword.Type /\n.codehilite .m { color: #666666 } / Literal.Number /\n.codehilite .s { color: #BA2121 } / Literal.String /\n.codehilite .na { color: #7D9029 } / Name.Attribute /\n.codehilite .nb { color: #008000 } / Name.Builtin /\n.codehilite .nc { color: #0000FF; font-weight: bold } / Name.Class /\n.codehilite .no { color: #880000 } / Name.Constant /\n.codehilite .nd { color: #AA22FF } / Name.Decorator /\n.codehilite .ni { color: #999999; font-weight: bold } / Name.Entity /\n.codehilite .ne { color: #D2413A; font-weight: bold } / Name.Exception /\n.codehilite .nf { color: #0000FF } / Name.Function /\n.codehilite .nl { color: #A0A000 } / Name.Label /\n.codehilite .nn { color: #0000FF; font-weight: bold } / Name.Namespace /\n.codehilite .nt { color: #008000; font-weight: bold } / Name.Tag /\n.codehilite .nv { color: #19177C } / Name.Variable /\n.codehilite .ow { color: #AA22FF; font-weight: bold } / Operator.Word /\n.codehilite .w { color: #bbbbbb } / Text.Whitespace /\n.codehilite .mb { color: #666666 } / Literal.Number.Bin /\n.codehilite .mf { color: #666666 } / Literal.Number.Float /\n.codehilite .mh { color: #666666 } / Literal.Number.Hex /\n.codehilite .mi { color: #666666 } / Literal.Number.Integer /\n.codehilite .mo { color: #666666 } / Literal.Number.Oct /\n.codehilite .sa { color: #BA2121 } / Literal.String.Affix /\n.codehilite .sb { color: #BA2121 } / Literal.String.Backtick /\n.codehilite .sc { color: #BA2121 } / Literal.String.Char /\n.codehilite .dl { color: #BA2121 } / Literal.String.Delimiter /\n.codehilite .sd { color: #BA2121; font-style: italic } / Literal.String.Doc /\n.codehilite .s2 { color: #BA2121 } / Literal.String.Double /\n.codehilite .se { color: #BB6622; font-weight: bold } / Literal.String.Escape /\n.codehilite .sh { color: #BA2121 } / Literal.String.Heredoc /\n.codehilite .si { color: #BB6688; font-weight: bold } / Literal.String.Interpol /\n.codehilite .sx { color: #008000 } / Literal.String.Other /\n.codehilite .sr { color: #BB6688 } / Literal.String.Regex /\n.codehilite .s1 { color: #BA2121 } / Literal.String.Single /\n.codehilite .ss { color: #19177C } / Literal.String.Symbol /\n.codehilite .bp { color: #008000 } / Name.Builtin.Pseudo /\n.codehilite .fm { color: #0000FF } / Name.Function.Magic /\n.codehilite .vc { color: #19177C } / Name.Variable.Class /\n.codehilite .vg { color: #19177C } / Name.Variable.Global /\n.codehilite .vi { color: #19177C } / Name.Variable.Instance /\n.codehilite .vm { color: #19177C } / Name.Variable.Magic /\n.codehilite .il { color: #666666 } / Literal.Number.Integer.Long /\n\n.markdown h1 { margin-block-start: 0.34em }\n.markdown h2 { margin-block-start: 0.42em }\n.markdown h3 { margin-block-start: 0.5em }\n.markdown h4 { margin-block-start: 0.67em }\n.markdown h5 { margin-block-start: 0.84em }\n.markdown h6 { margin-block-start: 1.17em }\n.markdown ul { padding-inline-start: 2em }\n.markdown ol { padding-inline-start: 2em }\n.markdown strong { font-weight: 600 }\n.markdown a { color: -webkit-link }\n.markdown a { color: -moz-hyperlinkText }\n");n”, ” },n”, ” function(Bokeh) {n”, ” inject_raw_css(".json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n");n”, ” },n”, ” function(Bokeh) {n”, ” inject_raw_css("table.panel-df {\n margin-left: auto;\n margin-right: auto;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n color: black;\n font-size: 12px;\n table-layout: fixed;\n width: 100%;\n}\n\n.panel-df tr, th, td {\n text-align: right;\n vertical-align: middle;\n padding: 0.5em 0.5em !important;\n line-height: normal;\n white-space: normal;\n max-width: none;\n border: none;\n}\n\n.panel-df tbody {\n display: table-row-group;\n vertical-align: middle;\n border-color: inherit;\n}\n\n.panel-df tbody tr:nth-child(odd) {\n background: #f5f5f5;\n}\n\n.panel-df thead {\n border-bottom: 1px solid black;\n vertical-align: bottom;\n}\n\n.panel-df tr:hover {\n background: lightblue !important;\n cursor: pointer;\n}\n");n”, ” },n”, ” function(Bokeh) {n”, ” / BEGIN bokeh.min.js /n”, ” /!n”, ” * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn”, ” * All rights reserved.n”, ” * n”, ” * Redistribution and use in source and binary forms, with or without modification,n”, ” * are permitted provided that the following conditions are met:n”, ” * n”, ” * Redistributions of source code must retain the above copyright notice,n”, ” * this list of conditions and the following disclaimer.n”, ” * n”, ” * Redistributions in binary form must reproduce the above copyright notice,n”, ” * this list of conditions and the following disclaimer in the documentationn”, ” * and/or other materials provided with the distribution.n”, ” * n”, ” * Neither the name of Anaconda nor the names of any contributorsn”, ” * may be used to endorse or promote products derived from this softwaren”, ” * without specific prior written permission.n”, ” * n”, ” * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n”, ” * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn”, ” * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn”, ” * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn”, ” * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn”, ” * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn”, ” * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn”, ” * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn”, ” * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n”, ” * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn”, ” * THE POSSIBILITY OF SUCH DAMAGE.n”, ” /n”, ” (function(root, factory) {n”, ” const bokeh = factory();n”, ” if (root.Bokeh === undefined) {n”, ” root.Bokeh = bokeh;n”, ” }n”, ” const Bokeh = root.Bokeh;n”, ” Bokeh[bokeh.version] = bokeh;n”, ” })(this, function() {n”, ” var define;n”, ” var parent_require = typeof require === "function" && requiren”, ” return (function(modules, entry, aliases, externals) {n”, ” if (aliases === undefined) aliases = {};n”, ” if (externals === undefined) externals = {};n”, “n”, ” var cache = {};n”, “n”, ” var normalize = function(name) {n”, ” if (typeof name === "number")n”, ” return name;n”, “n”, ” if (name === "bokehjs")n”, ” return entry;n”, “n”, ” var prefix = "@bokehjs/"n”, ” if (name.slice(0, prefix.length) === prefix)n”, ” name = name.slice(prefix.length)n”, “n”, ” var alias = aliases[name]n”, ” if (alias != null)n”, ” return alias;n”, “n”, ” var trailing = name.length > 0 && name[name.lenght-1] === "/";n”, ” var index = aliases[name + (trailing ? "" : "/") + "index"];n”, ” if (index != null)n”, ” return index;n”, “n”, ” return name;n”, ” }n”, “n”, ” var require = function(name) {n”, ” var mod = cache[name];n”, ” if (!mod) {n”, ” var id = normalize(name);n”, “n”, ” mod = cache[id];n”, ” if (!mod) {n”, ” if (!modules[id]) {n”, ” if (externals[id] === false || (externals[id] == true && parent_require)) {n”, ” try {n”, ” mod = {exports: externals[id] ? parent_require(id) : {}};n”, ” cache[id] = cache[name] = mod;n”, ” return mod.exports;n”, ” } catch (e) {}n”, ” }n”, “n”, ” var err = new Error("Cannot find module ‘" + name + "’");n”, ” err.code = ‘MODULE_NOT_FOUND’;n”, ” throw err;n”, ” }n”, “n”, ” mod = {exports: {}};n”, ” cache[id] = cache[name] = mod;n”, ” modules[id].call(mod.exports, require, mod, mod.exports);n”, ” } elsen”, ” cache[name] = mod;n”, ” }n”, “n”, ” return mod.exports;n”, ” }n”, “n”, ” var main = require(entry);n”, ” main.require = require;n”, “n”, ” if (typeof Proxy !== "undefined") {n”, ” // allow Bokeh.loader["@bokehjs/module/name"] syntaxn”, ” main.loader = new Proxy({}, {n”, ” get: function(_obj, module) {n”, ” return require(module);n”, ” }n”, ” });n”, ” }n”, “n”, ” main.register_plugin = function(plugin_modules, plugin_entry, plugin_aliases, plugin_externals) {n”, ” if (plugin_aliases === undefined) plugin_aliases = {};n”, ” if (plugin_externals === undefined) plugin_externals = {};n”, “n”, ” for (var name in plugin_modules) {n”, ” modules[name] = plugin_modules[name];n”, ” }n”, “n”, ” for (var name in plugin_aliases) {n”, ” aliases[name] = plugin_aliases[name];n”, ” }n”, “n”, ” for (var name in plugin_externals) {n”, ” externals[name] = plugin_externals[name];n”, ” }n”, “n”, ” var plugin = require(plugin_entry);n”, “n”, ” for (var name in plugin) {n”, ” main[name] = plugin[name];n”, ” }n”, “n”, ” return plugin;n”, ” }n”, “n”, ” return main;n”, ” })n”, ” ([n”, ” function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0}),e(1).__exportStar(e(2),_)},n”, ” function _(t,e,n){n”, ” /! *************************************************************************n”, ” Copyright (c) Microsoft Corporation. All rights reserved.n”, ” Licensed under the Apache License, Version 2.0 (the "License"); you may not usen”, ” this file except in compliance with the License. You may obtain a copy of then”, ” License at http://www.apache.org/licenses/LICENSE-2.0n”, ” n”, ” THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYn”, ” KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDn”, ” WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,n”, ” MERCHANTABLITY OR NON-INFRINGEMENT.n”, ” n”, ” See the Apache Version 2.0 License for specific language governing permissionsn”, ” and limitations under the License.n”, ” ************************************************************************* /n”, ” Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(void 0===e||e– >0)&&!(r=a.next()).done;)i.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function i(t){return this instanceof i?(this.v=t,this):new i(t)}n.__extends=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.__assign=function(){return n.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.__assign.apply(this,arguments)},n.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},n.__decorate=function(t,e,n,r){var o,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u–)(o=t[u])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i},n.__param=function(t,e){return function(n,r){e(n,r,t)}},n.__metadata=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(o,a){function i(t){try{c(r.next(t))}catch(t){a(t)}}function u(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((r=r.apply(t,e||[])).next())}))},n.__generator=function(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},n.__exportStar=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},n.__values=o,n.__read=a,n.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t},n.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var a=arguments[e],i=0,u=a.length;i<u;i++,o++)r[o]=a[i];return r},n.__await=i,n.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),a=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||c(t,e)}))})}function c(t,e){try{(n=o[t](e)).value instanceof i?Promise.resolve(n.value.v).then(f,l):s(a[0][2],n)}catch(t){s(a[0][3],t)}var n}function f(t){c("next",t)}function l(t){c("throw",t)}function s(t,e){t(e),a.shift(),a.length&&c(a[0][0],a[0][1])}},n.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:i(t[r](e)),done:"return"===r}:o?o(e):e}:o}},n.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=o(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}},n.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},n.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},n.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},n.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},n.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},n”, ” function _(e,r,t){var l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r};Object.defineProperty(t,"__esModule",{value:!0});var o=e(3);t.version=o.version;var s=e(4);t.index=s.index,t.embed=l(e(4)),t.protocol=l(e(354)),t._testing=l(e(355));var n=e(70);t.logger=n.logger,t.set_log_level=n.set_log_level;var a=e(23);t.settings=a.settings;var i=e(7);t.Models=i.Models;var v=e(5);t.documents=v.documents;var _=e(356);t.safely=_.safely},n”, ” function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.version="2.0.2"},n”, ” function _(e,o,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(5),s=e(70),d=e(26),r=e(8),_=e(17),c=e(345),i=e(347),a=e(346);var u=e(345);n.add_document_standalone=u.add_document_standalone,n.index=u.index;var l=e(347);n.add_document_from_session=l.add_document_from_session;var m=e(352);n.embed_items_notebook=m.embed_items_notebook,n.kernels=m.kernels;var f=e(346);async function g(e,o,n,_){r.isString(e)&&(e=JSON.parse(d.unescape(e)));const u={};for(const o in e){const n=e[o];u[o]=t.Document.from_json(n)}const l=[];for(const e of o){const o=a._resolve_element(e),t=a._resolve_root_elements(e);if(null!=e.docid)l.push(await c.add_document_standalone(u[e.docid],o,t,e.use_for_title));else{if(null==e.token)throw new Error("Error rendering Bokeh items: either ‘docid’ or ‘token’ was expected.");{const d=i._get_ws_url(n,_);s.logger.debug(`embed: computed ws url: ${d}`);try{l.push(await i.add_document_from_session(d,e.token,o,t,e.use_for_title)),console.log("Bokeh items were rendered successfully")}catch(e){console.log("Error rendering Bokeh items:",e)}}}}return l}n.BOKEH_ROOT=f.BOKEH_ROOT,n.embed_item=async function(e,o){const n={},t=d.uuid4();n[t]=e.doc,null==o&&(o=e.target_id);const s=document.getElementById(o);null!=s&&s.classList.add(a.BOKEH_ROOT);const r={roots:{[e.root_id]:o},root_ids:[e.root_id],docid:t},[c]=await _.defer(()=>g(n,[r]));return c},n.embed_items=async function(e,o,n,t){return await _.defer(()=>g(e,o,n,t))}},n”, ” function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const o=e(1);o.__exportStar(e(6),_),o.__exportStar(e(103),_)},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(7),n=e(3),i=e(70),r=e(281),_=e(13),l=e(14),a=e(25),c=e(100),d=e(15),h=e(9),f=e(24),u=e(16),m=e(8),g=e(244),v=e(73),p=e(69),w=e(103);class b{constructor(e){this.document=e,this.session=null,this.subscribed_models=new Set}send_event(e){const t=new w.MessageSentEvent(this.document,"bokeh_event",e.to_json());this.document._trigger_on_change(t)}trigger(e){for(const t of this.subscribed_models){if(null!=e.origin&&e.origin.id!==t)continue;const s=this.document._all_models[t];null!=s&&s instanceof p.Model&&s._process_event(e)}}}s.EventManager=b,b.__name__="EventManager",s.documents=[],s.DEFAULT_TITLE="Bokeh Application";class y{constructor(){s.documents.push(this),this._init_timestamp=Date.now(),this._title=s.DEFAULT_TITLE,this._roots=[],this._all_models={},this._all_models_by_name=new d.MultiDict,this._all_models_freeze_count=0,this._callbacks=[],this._message_callbacks=new Map,this.event_manager=new b(this),this.idle=new l.Signal0(this,"idle"),this._idle_roots=new WeakMap,this._interactive_timestamp=null,this._interactive_plot=null}get layoutables(){return this._roots.filter(e=>e instanceof g.LayoutDOM)}get is_idle(){for(const e of this.layoutables)if(!this._idle_roots.has(e))return!1;return!0}notify_idle(e){this._idle_roots.set(e,!0),this.is_idle&&(i.logger.info(`document idle at ${Date.now()-this._init_timestamp} ms`),this.idle.emit())}clear(){this._push_all_models_freeze();try{for(;this._roots.length>0;)this.remove_root(this._roots[0])}finally{this._pop_all_models_freeze()}}interactive_start(e){null==this._interactive_plot&&(this._interactive_plot=e,this._interactive_plot.trigger_event(new r.LODStart)),this._interactive_timestamp=Date.now()}interactive_stop(e){null!=this._interactive_plot&&this._interactive_plot.id===e.id&&this._interactive_plot.trigger_event(new r.LODEnd),this._interactive_plot=null,this._interactive_timestamp=null}interactive_duration(){return null==this._interactive_timestamp?-1:Date.now()-this._interactive_timestamp}destructively_move(e){if(e===this)throw new Error("Attempted to overwrite a document with itself");e.clear();const t=h.copy(this._roots);this.clear();for(const e of t)if(null!=e.document)throw new Error(`Somehow we didn’t detach ${e}`);if(0!==Object.keys(this._all_models).length)throw new Error(`this._all_models still had stuff in it: ${this._all_models}`);for(const s of t)e.add_root(s);e.set_title(this._title)}_push_all_models_freeze(){this._all_models_freeze_count+=1}_pop_all_models_freeze(){this._all_models_freeze_count-=1,0===this._all_models_freeze_count&&this._recompute_all_models()}_invalidate_all_models(){i.logger.debug("invalidating document models"),0===this._all_models_freeze_count&&this._recompute_all_models()}_recompute_all_models(){let e=new d.Set;for(const t of this._roots)e=e.union(t.references());const t=new d.Set(f.values(this._all_models)),s=t.diff(e),o=e.diff(t),n={};for(const t of e.values)n[t.id]=t;for(const e of s.values)e.detach_document(),e instanceof p.Model&&null!=e.name&&this._all_models_by_name.remove_value(e.name,e);for(const e of o.values)e.attach_document(this),e instanceof p.Model&&null!=e.name&&this._all_models_by_name.add_value(e.name,e);this._all_models=n}roots(){return this._roots}add_root(e,t){if(i.logger.debug(`Adding root: ${e}`),!h.includes(this._roots,e)){this._push_all_models_freeze();try{this._roots.push(e)}finally{this._pop_all_models_freeze()}this._trigger_on_change(new w.RootAddedEvent(this,e,t))}}remove_root(e,t){const s=this._roots.indexOf(e);if(!(s<0)){this._push_all_models_freeze();try{this._roots.splice(s,1)}finally{this._pop_all_models_freeze()}this._trigger_on_change(new w.RootRemovedEvent(this,e,t))}}title(){return this._title}set_title(e,t){e!==this._title&&(this._title=e,this._trigger_on_change(new w.TitleChangedEvent(this,e,t)))}get_model_by_id(e){return e in this._all_models?this._all_models[e]:null}get_model_by_name(e){return this._all_models_by_name.get_one(e,`Multiple models are named ‘${e}’`)}on_message(e,t){const s=this._message_callbacks.get(e);null==s?this._message_callbacks.set(e,new Set([t])):s.add(t)}remove_on_message(e,t){var s;null===(s=this._message_callbacks.get(e))||void 0===s||s.delete(t)}_trigger_on_message(e,t){const s=this._message_callbacks.get(e);if(null!=s)for(const e of s)e(t)}on_change(e){h.includes(this._callbacks,e)||this._callbacks.push(e)}remove_on_change(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}_trigger_on_change(e){for(const t of this._callbacks)t(e)}_notify_change(e,t,s,o,n){"name"===t&&(this._all_models_by_name.remove_value(s,e),null!=o&&this._all_models_by_name.add_value(o,e));const i=null!=n?n.setter_id:void 0,r=null!=n?n.hint:void 0;this._trigger_on_change(new w.ModelChangedEvent(this,e,t,s,o,i,r))}static _references_json(e,t=!0){const s=[];for(const o of e){const e=o.struct();e.attributes=o.attributes_as_json(t),delete e.attributes.id,s.push(e)}return s}static _instantiate_object(e,t,s){const n=Object.assign(Object.assign({},s),{id:e,__deferred__:!0});return new(o.Models(t))(n)}static _instantiate_references_json(e,t){const s={};for(const o of e){const e=o.id,n=o.type,i=o.attributes||{};let r;e in t?r=t[e]:(r=y._instantiate_object(e,n,i),null!=o.subtype&&r.set_subtype(o.subtype)),s[r.id]=r}return s}static _resolve_refs(e,t,s){function o(e){if(a.is_ref(e)){if(e.id in t)return t[e.id];if(e.id in s)return s[e.id];throw new Error(`reference ${JSON.stringify(e)} isn’t known (not in Document?)`)}return m.isArray(e)?function(e){const t=[];for(const s of e)t.push(o(s));return t}(e):m.isPlainObject(e)?function(e){const t={};for(const s in e){const n=e[s];t[s]=o(n)}return t}(e):e}return o(e)}static _initialize_references_json(e,t,s){const o={};for(const n of e){const e=n.id,i=n.attributes,r=!(e in t),_=r?s[e]:t[e],l=y._resolve_refs(i,t,s);o[_.id]=[_,l,r]}function n(e,t){const s={};function o(n){if(n instanceof _.HasProps){if(!(n.id in s)&&n.id in e){s[n.id]=!0;const[,i,r]=e[n.id];for(const e in i){o(i[e])}t(n,i,r)}}else if(m.isArray(n))for(const e of n)o(e);else if(m.isPlainObject(n))for(const e in n){o(n[e])}}for(const t in e){const[s,,]=e[t];o(s)}}n(o,(function(e,t,s){s&&e.setv(t,{silent:!0})})),n(o,(function(e,t,s){s&&e.finalize()}))}static _event_for_attribute_change(e,t,s,o,n){if(o.get_model_by_id(e.id).attribute_is_serializable(t)){const i={kind:"ModelChanged",model:{id:e.id},attr:t,new:s};return _.HasProps._json_record_references(o,s,n,!0),i}return null}static _events_to_sync_objects(e,t,s,o){const n=Object.keys(e.attributes),r=Object.keys(t.attributes),_=h.difference(n,r),l=h.difference(r,n),a=h.intersection(n,r),c=[];for(const e of _)i.logger.warn(`Server sent key ${e} but we don’t seem to have it in our JSON`);for(const n of l){const i=t.attributes[n];c.push(y._event_for_attribute_change(e,n,i,s,o))}for(const n of a){const i=e.attributes[n],r=t.attributes[n];null==i&&null==r||(null==i||null==r?c.push(y._event_for_attribute_change(e,n,r,s,o)):u.isEqual(i,r)||c.push(y._event_for_attribute_change(e,n,r,s,o)))}return c.filter(e=>null!=e)}static _compute_patch_since_json(e,t){const s=t.to_json(!1);function o(e){const t={};for(const s of e.roots.references)t[s.id]=s;return t}const n=o(e),i={},r=[];for(const t of e.roots.root_ids)i[t]=n[t],r.push(t);const _=o(s),l={},a=[];for(const e of s.roots.root_ids)l[e]=_[e],a.push(e);if(r.sort(),a.sort(),h.difference(r,a).length>0||h.difference(a,r).length>0)throw new Error("Not implemented: computing add/remove of document roots");const c={};let d=[];for(const e in t._all_models)if(e in n){const s=y._events_to_sync_objects(n[e],_[e],t,c);d=d.concat(s)}return{references:y._references_json(f.values(c),!1),events:d}}to_json_string(e=!0){return JSON.stringify(this.to_json(e))}to_json(e=!0){const t=this._roots.map(e=>e.id),s=f.values(this._all_models);return{version:n.version,title:this._title,roots:{root_ids:t,references:y._references_json(s,e)}}}static from_json_string(e){const t=JSON.parse(e);return y.from_json(t)}static from_json(e){i.logger.debug("Creating Document from JSON");const t=e.version,s=-1!==t.indexOf("+")||-1!==t.indexOf("-"),o=`Library versions: JS (${n.version}) / Python (${t})`;s||n.version.replace(/-(dev|rc)\./,"$1")==t?i.logger.debug(o):(i.logger.warn("JS/Python version mismatch"),i.logger.warn(o));const r=e.roots,_=r.root_ids,l=r.references,a=y._instantiate_references_json(l,{});y._initialize_references_json(l,{},a);const c=new y;for(const e of _)c.add_root(a[e]);return c.set_title(e.title),c}replace_with_json(e){y.from_json(e).destructively_move(this)}create_json_patch_string(e){return JSON.stringify(this.create_json_patch(e))}create_json_patch(e){const t={},s=[];for(const o of e){if(o.document!==this)throw i.logger.warn("Cannot create a patch using events from a different document, event had ",o.document," we are ",this),new Error("Cannot create a patch using events from a different document");s.push(o.json(t))}return{events:s,references:y._references_json(f.values(t))}}apply_json_patch(e,t=[],s){const o=e.references,n=e.events,r=y._instantiate_references_json(o,this._all_models);for(const e of n)switch(e.kind){case"RootAdded":case"RootRemoved":case"ModelChanged":{const t=e.model.id;if(t in this._all_models)r[t]=this._all_models[t];else if(!(t in r))throw i.logger.warn("Got an event for unknown model ",e.model),new Error("event model wasn’t known");break}}const _={},l={};for(const e in r){const t=r[e];e in this._all_models?_[e]=t:l[e]=t}y._initialize_references_json(o,_,l);for(const e of n)switch(e.kind){case"MessageSent":{const{msg_type:s,msg_data:o}=e;let n;if(void 0===o){if(1!=t.length)throw new Error("expected exactly one buffer");{const[[,e]]=t;n=e}}else n=y._resolve_refs(o,_,l);this._trigger_on_message(s,n);break}case"ModelChanged":{const o=e.model.id;if(!(o in this._all_models))throw new Error(`Cannot apply patch to ${o} which is not in the document`);const n=this._all_models[o],i=e.attr;if("data"===i&&"ColumnDataSource"===n.type){const[o,i]=c.decode_column_data(e.new,t);n.setv({_shapes:i,data:o},{setter_id:s})}else{const t=y._resolve_refs(e.new,_,l);n.setv({[i]:t},{setter_id:s})}break}case"ColumnDataChanged":{const o=e.column_source.id;if(!(o in this._all_models))throw new Error(`Cannot stream to ${o} which is not in the document`);const n=this._all_models[o],[i,r]=c.decode_column_data(e.new,t);if(null!=e.cols){for(const e in n.data)e in i||(i[e]=n.data[e]);for(const e in n._shapes)e in r||(r[e]=n._shapes[e])}n.setv({_shapes:r,data:i},{setter_id:s,check_eq:!1});break}case"ColumnsStreamed":{const t=e.column_source.id;if(!(t in this._all_models))throw new Error(`Cannot stream to ${t} which is not in the document`);const o=this._all_models[t];if(!(o instanceof v.ColumnDataSource))throw new Error("Cannot stream to non-ColumnDataSource");const n=e.data,i=e.rollover;o.stream(n,i,s);break}case"ColumnsPatched":{const t=e.column_source.id;if(!(t in this._all_models))throw new Error(`Cannot patch ${t} which is not in the document`);const o=this._all_models[t];if(!(o instanceof v.ColumnDataSource))throw new Error("Cannot patch non-ColumnDataSource");const n=e.patches;o.patch(n,s);break}case"RootAdded":{const t=r[e.model.id];this.add_root(t,s);break}case"RootRemoved":{const t=r[e.model.id];this.remove_root(t,s);break}case"TitleChanged":this.set_title(e.title,s);break;default:throw new Error("Unknown patch event "+JSON.stringify(e))}}}s.Document=y,y.__name__="Document"},n”, ” function _(e,r,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(1),t=e(8),d=e(13);s.overrides={};const i=new Map;s.Models=e=>{const r=s.overrides[e]||i.get(e);if(null==r)throw new Error(`Model ‘${e}’ does not exist. This could be due to a widget or a custom model not being registered before first usage.`);return r},s.Models.register=(e,r)=>{s.overrides[e]=r},s.Models.unregister=e=>{delete s.overrides[e]},s.Models.register_models=(e,r=!1,s)=>{var o;if(null!=e)for(const l in e){const n=e[l];if(o=n,t.isObject(o)&&o.prototype instanceof d.HasProps){const e=n.__qualified__;r||!i.has(e)?i.set(e,n):null!=s?s(e):console.warn(`Model ‘${e}’ was already registered`)}}},s.register_models=s.Models.register_models,s.Models.registered_names=()=>Array.from(i.keys());const l=o.__importStar(e(27));s.register_models(l)},n”, ” function _(n,t,r){Object.defineProperty(r,"__esModule",{value:!0});n”, ” // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” const e=n(9),o=Object.prototype.toString;function i(n){return"[object Number]"===o.call(n)}function u(n){const t=typeof n;return"function"===t||"object"===t&&!!n}r.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===o.call(n)},r.isNumber=i,r.isInteger=function(n){return i(n)&&isFinite(n)&&Math.floor(n)===n},r.isString=function(n){return"[object String]"===o.call(n)},r.isStrictNaN=function(n){return i(n)&&n!==+n},r.isFunction=function(n){return"[object Function]"===o.call(n)},r.isArray=function(n){return Array.isArray(n)},r.isArrayOf=function(n,t){return e.every(n,t)},r.isArrayableOf=function(n,t){for(let r=0,e=n.length;r<e;r++)if(!t(n[r]))return!1;return!0},r.isTypedArray=function(n){return null!=n&&n.buffer instanceof ArrayBuffer},r.isObject=u,r.isPlainObject=function(n){return u(n)&&(null==n.constructor||n.constructor===Object)}},n”, ” function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});n”, ” // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” const r=n(10),o=n(11),i=n(12);e.map=i.map,e.reduce=i.reduce,e.min=i.min,e.min_by=i.min_by,e.max=i.max,e.max_by=i.max_by,e.sum=i.sum,e.cumsum=i.cumsum,e.every=i.every,e.some=i.some,e.find=i.find,e.find_last=i.find_last,e.find_index=i.find_index,e.find_last_index=i.find_last_index,e.sorted_index=i.sorted_index;const u=Array.prototype.slice;function c(n){return u.call(n)}function f(n){return[].concat(…n)}function s(n,t){return-1!==n.indexOf(t)}function l(n,t,e=1){o.assert(e>0,"’step’ must be a positive number"),null==t&&(t=n,n=0);const{max:r,ceil:i,abs:u}=Math,c=n<=t?e:-e,f=r(i(u(t-n)/e),0),s=Array(f);for(let t=0;t<f;t++,n+=c)s[t]=n;return s}function a(n){const t=[];for(const e of n)s(t,e)||t.push(e);return t}e.head=function(n){return n[0]},e.tail=function(n){return n[n.length-1]},e.last=function(n){return n[n.length-1]},e.copy=c,e.concat=f,e.includes=s,e.contains=s,e.nth=function(n,t){return n[t>=0?t:n.length+t]},e.zip=function(…n){if(0==n.length)return[];const t=i.min(n.map(n=>n.length)),e=n.length,r=new Array(t);for(let o=0;o<t;o++){r[o]=new Array(e);for(let t=0;t<e;t++)r[o][t]=n[t][o]}return r},e.unzip=function(n){const t=n.length,e=i.min(n.map(n=>n.length)),r=Array(e);for(let n=0;n<e;n++)r[n]=new Array(t);for(let o=0;o<t;o++)for(let t=0;t<e;t++)r[t][o]=n[o][t];return r},e.range=l,e.linspace=function(n,t,e=100){const r=(t-n)/(e-1),o=new Array(e);for(let t=0;t<e;t++)o[t]=n+r*t;return o},e.transpose=function(n){const t=n.length,e=n[0].length,r=[];for(let o=0;o<e;o++){r[o]=[];for(let e=0;e<t;e++)r[o][e]=n[e][o]}return r},e.argmin=function(n){return i.min_by(l(n.length),t=>n[t])},e.argmax=function(n){return i.max_by(l(n.length),t=>n[t])},e.sort_by=function(n,t){const e=n.map((n,e)=>({value:n,index:e,key:t(n)}));return e.sort((n,t)=>{const e=n.key,r=t.key;if(e!==r){if(e>r||void 0===e)return 1;if(e<r||void 0===r)return-1}return n.index-t.index}),e.map(n=>n.value)},e.uniq=a,e.uniq_by=function(n,t){const e=[],r=[];for(const o of n){const n=t(o);s(r,n)||(r.push(n),e.push(o))}return e},e.union=function(…n){return a(f(n))},e.intersection=function(n,…t){const e=[];n:for(const r of n)if(!s(e,r)){for(const n of t)if(!s(n,r))continue n;e.push(r)}return e},e.difference=function(n,…t){const e=f(t);return n.filter(n=>!s(e,n))},e.remove_at=function(n,t){const e=c(n);return e.splice(t,1),e},e.remove_by=function(n,t){for(let e=0;e<n.length;)t(n[e])?n.splice(e,1):e++},e.shuffle=function(n){const t=n.length,e=new Array(t);for(let o=0;o<t;o++){const t=r.randomIn(0,o);t!==o&&(e[o]=e[t]),e[t]=n[o]}return e},e.pairwise=function(n,t){const e=n.length,r=new Array(e-1);for(let o=0;o<e-1;o++)r[o]=t(n[o],n[o+1]);return r},e.reversed=function(n){const t=n.length,e=new Array(t);for(let r=0;r<t;r++)e[t-r-1]=n[r];return e},e.repeat=function(n,t){const e=new Array(t);for(let r=0;r<t;r++)e[r]=n;return e}},n”, ” function _(n,t,r){function e(n){if(0==n)return 0;for(;n<=0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;return n}function o(n,t){return e(n-t)}function a(){return Math.random()}Object.defineProperty(r,"__esModule",{value:!0}),r.angle_norm=e,r.angle_dist=o,r.angle_between=function(n,t,r,a){const u=o(t,r);if(0==u)return!1;if(u==2*Math.PI)return!0;const f=e(n),i=o(t,f)<=u&&o(f,r)<=u;return 0==a?i:!i},r.random=a,r.randomIn=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},r.atan2=function(n,t){return Math.atan2(t[1]-n[1],t[0]-n[0])},r.rnorm=function(n,t){let r,e;for(;r=a(),e=a(),e=(2*e-1)*Math.sqrt(1/Math.E*2),!(-4*r*r*Math.log(r)>=e*e););let o=e/r;return o=n+t*o,o},r.clamp=function(n,t,r){return n>r?r:n<t?t:n}},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});class o extends Error{}n.AssertionError=o,o.__name__="AssertionError",n.assert=function(e,r){if(!(!0===e||!1!==e&&e()))throw new o(null!=r?r:"Assertion failed")},n.unreachable=function(){throw new Error("unreachable code")}},n”, ” function _(n,t,e){function r(n,t,e,…r){const o=n.length;t<0&&(t+=o),t<0?t=0:t>o&&(t=o),null==e||e>o-t?e=o-t:e<0&&(e=0);const u=o-e+r.length,i=new n.constructor(u);let f=0;for(;f<t;f++)i[f]=n[f];for(const n of r)i[f++]=n;for(let r=t+e;r<o;r++)i[f++]=n[r];return i}function o(n,t){return r(n,t,n.length-t)}function u(n,t,e){const r=n.length;if(void 0===e&&0==r)throw new Error("can’t reduce an empty array without an initial value");let o,u;for(void 0===e?(o=n[0],u=1):(o=e,u=0);u<r;u++)o=t(o,n[u],u,n);return o}function i(n){return function(t,e){const r=t.length;let o=n>0?0:r-1;for(;o>=0&&o<r;o+=n)if(e(t[o]))return o;return-1}}Object.defineProperty(e,"__esModule",{value:!0}),e.splice=r,e.head=o,e.insert=function(n,t,e){return r(n,e,0,t)},e.append=function(n,t){return r(n,n.length,0,t)},e.prepend=function(n,t){return r(n,0,0,t)},e.indexOf=function(n,t){for(let e=0,r=n.length;e<r;e++)if(n[e]===t)return e;return-1},e.map=function(n,t){const e=n.length,r=new n.constructor(e);for(let o=0;o<e;o++)r[o]=t(n[o],o,n);return r},e.filter=function(n,t){const e=n.length,r=new n.constructor(e);let u=0;for(let o=0;o<e;o++){const e=n[o];t(e,o,n)&&(r[u++]=e)}return o(r,u)},e.reduce=u,e.min=function(n){let t,e=1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],t<e&&(e=t);return e},e.min_by=function(n,t){if(0==n.length)throw new Error("min_by() called with an empty array");let e=n[0],r=t(e);for(let o=1,u=n.length;o<u;o++){const u=n[o],i=t(u);i<r&&(e=u,r=i)}return e},e.max=function(n){let t,e=-1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],t>e&&(e=t);return e},e.max_by=function(n,t){if(0==n.length)throw new Error("max_by() called with an empty array");let e=n[0],r=t(e);for(let o=1,u=n.length;o<u;o++){const u=n[o],i=t(u);i>r&&(e=u,r=i)}return e},e.sum=function(n){let t=0;for(let e=0,r=n.length;e<r;e++)t+=n[e];return t},e.cumsum=function(n){const t=new n.constructor(n.length);return u(n,(n,e,r)=>t[r]=n+e,0),t},e.every=function(n,t){for(let e=0,r=n.length;e<r;e++)if(!t(n[e]))return!1;return!0},e.some=function(n,t){for(let e=0,r=n.length;e<r;e++)if(t(n[e]))return!0;return!1},e.index_of=function(n,t){for(let e=0,r=n.length;e<r;e++)if(n[e]===t)return e;return-1},e.find_index=i(1),e.find_last_index=i(-1),e.find=function(n,t){const r=e.find_index(n,t);return-1==r?void 0:n[r]},e.find_last=function(n,t){const r=e.find_last_index(n,t);return-1==r?void 0:n[r]},e.sorted_index=function(n,t){let e=0,r=n.length;for(;e<r;){const o=Math.floor((e+r)/2);n[o]<t?e=o+1:r=o}return e}},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(14),r=i.__importStar(t(18)),o=t(25),c=i.__importStar(t(19)),a=t(26),_=t(9),l=t(24),h=t(8),p=t(16);class u extends(n.Signalable()){constructor(t={}){super(),this._subtype=void 0,this.document=null,this.destroyed=new n.Signal0(this,"destroyed"),this.change=new n.Signal0(this,"change"),this.transformchange=new n.Signal0(this,"transformchange"),this.attributes={},this.properties={},this._set_after_defaults={},this._pending=!1,this._changing=!1;for(const t in this.props){const{type:e,default_value:s}=this.props[t];if(null==e)throw new Error(`undefined property type for ${this.type}.${t}`);this.properties[t]=new e(this,t,s)}null==t.id&&this.setv({id:a.uniqueId()},{silent:!0});const e=t.__deferred__||!1;e&&delete(t=l.clone(t)).__deferred__,this.setv(t,{silent:!0}),e||this.finalize()}set type(t){console.warn("prototype.type = ‘ModelName’ is deprecated, use static __name__ instead"),this.constructor.__name__=t}get type(){return this.constructor.__qualified__}static get __qualified__(){const{__module__:t,__name__:e}=this;return null!=t?`${t}.${e}`:e}static init_HasProps(){this.prototype.props={},this.prototype.mixins=[],this.define({id:[c.Any]})}static _fix_default(t,e){return void 0===t?void 0:h.isFunction(t)?t:h.isObject(t)?h.isArray(t)?()=>_.copy(t):()=>l.clone(t):()=>t}static define(t){for(const e in t){const s=t[e];if(null!=this.prototype.props[e])throw new Error(`attempted to redefine property ‘${this.prototype.type}.${e}’`);if(null!=this.prototype[e])throw new Error(`attempted to redefine attribute ‘${this.prototype.type}.${e}’`);Object.defineProperty(this.prototype,e,{get(){return this.getv(e)},set(t){return this.setv({[e]:t}),this},configurable:!1,enumerable:!0});const[i,n,r]=s,o={type:i,default_value:this._fix_default(n,e),internal:r||!1},c=l.clone(this.prototype.props);c[e]=o,this.prototype.props=c}}static internal(t){const e={};for(const s in t){const i=t[s],[n,r]=i;e[s]=[n,r,!0]}this.define(e)}static mixin(…t){this.define(r.create(t));const e=this.prototype.mixins.concat(t);this.prototype.mixins=e}static mixins(t){this.mixin(…t)}static override(t){for(const e in t){const s=this._fix_default(t[e],e),i=this.prototype.props[e];if(null==i)throw new Error(`attempted to override nonexistent ‘${this.prototype.type}.${e}’`);const n=l.clone(this.prototype.props);n[e]=Object.assign(Object.assign({},i),{default_value:s}),this.prototype.props=n}}toString(){return`${this.type}(${this.id})`}finalize(){for(const t in this.properties){const e=this.properties[t];e.update(),null!=e.spec.transform&&this.connect(e.spec.transform.change,()=>this.transformchange.emit())}this.initialize(),this.connect_signals()}initialize(){}connect_signals(){}disconnect_signals(){n.Signal.disconnectReceiver(this)}destroy(){this.disconnect_signals(),this.destroyed.emit()}clone(){return new this.constructor(this.attributes)}_setv(t,e){const s=e.check_eq,i=e.silent,n=[],r=this._changing;this._changing=!0;const o=this.attributes;for(const e in t){const i=t[e];!1!==s&&p.isEqual(o[e],i)||n.push(e),o[e]=i}if(!i){n.length>0&&(this._pending=!0);for(let t=0;t<n.length;t++)this.properties[n[t]].change.emit()}if(!r){if(!i&&!e.no_change)for(;this._pending;)this._pending=!1,this.change.emit();this._pending=!1,this._changing=!1}}setv(t,e={}){for(const s in t){if(!t.hasOwnProperty(s))continue;const i=s;if(null==this.props[i])throw new Error(`property ${this.type}.${i} wasn’t declared`);null!=e&&e.defaults||(this._set_after_defaults[s]=!0)}if(!l.isEmpty(t)){const s={};for(const e in t)s[e]=this.getv(e);this._setv(t,e);const i=e.silent;if(null==i||!i)for(const i in t)this._tell_document_about_change(i,s[i],this.getv(i),e)}}getv(t){if(null==this.props[t])throw new Error(`property ${this.type}.${t} wasn’t declared`);return this.attributes[t]}ref(){return{id:this.id}}struct(){const t={type:this.type,id:this.id,attributes:{}};return null!=this._subtype&&(t.subtype=this._subtype),t}set_subtype(t){this._subtype=t}attribute_is_serializable(t){const e=this.props[t];if(null==e)throw new Error(`${this.type}.attribute_is_serializable(‘${t}’): ${t} wasn’t declared`);return!e.internal}serializable_attributes(){const t={};for(const e in this.attributes){const s=this.attributes[e];this.attribute_is_serializable(e)&&(t[e]=s)}return t}static _value_to_json(t,e,s){if(e instanceof u)return e.ref();if(h.isArray(e)){const t=[];for(let s=0;s<e.length;s++){const i=e[s];t.push(u._value_to_json(s.toString(),i,e))}return t}if(h.isPlainObject(e)){const t={};for(const s in e)e.hasOwnProperty(s)&&(t[s]=u._value_to_json(s,e[s],e));return t}return e}attributes_as_json(t=!0,e=u._value_to_json){const s=this.serializable_attributes(),i={};for(const e in s)if(s.hasOwnProperty(e)){const n=s[e];(t||e in this._set_after_defaults)&&(i[e]=n)}return e("attributes",i,this)}static _json_record_references(t,e,s,i){if(null==e);else if(o.is_ref(e)){if(!(e.id in s)){const n=t.get_model_by_id(e.id);u._value_record_references(n,s,i)}}else if(h.isArray(e))for(const n of e)u._json_record_references(t,n,s,i);else if(h.isPlainObject(e))for(const n in e)if(e.hasOwnProperty(n)){const r=e[n];u._json_record_references(t,r,s,i)}}static _value_record_references(t,e,s){if(null==t);else if(t instanceof u){if(!(t.id in e)&&(e[t.id]=t,s)){const s=t._immediate_references();for(const t of s)u._value_record_references(t,e,!0)}}else if(t.buffer instanceof ArrayBuffer);else if(h.isArray(t))for(const i of t)u._value_record_references(i,e,s);else if(h.isPlainObject(t))for(const i in t)if(t.hasOwnProperty(i)){const n=t[i];u._value_record_references(n,e,s)}}_immediate_references(){const t={},e=this.serializable_attributes();for(const s in e){const i=e[s];u._value_record_references(i,t,!1)}return l.values(t)}references(){const t={};return u._value_record_references(this,t,!0),l.values(t)}_doc_attached(){}attach_document(t){if(null!=this.document&&this.document!=t)throw new Error("models must be owned by only a single document");this.document=t,this._doc_attached()}detach_document(){this.document=null}_tell_document_about_change(t,e,s,i){if(this.attribute_is_serializable(t)&&null!=this.document){const n={};u._value_record_references(s,n,!1);const r={};u._value_record_references(e,r,!1);let o=!1;for(const t in n)if(!(t in r)){o=!0;break}if(!o)for(const t in r)if(!(t in n)){o=!0;break}o&&this.document._invalidate_all_models(),this.document._notify_change(this,t,e,s,i)}}materialize_dataspecs(t){const e={};for(const s in this.properties){const i=this.properties[s];if(!(i instanceof c.VectorSpec))continue;if(i.optional&&null==i.spec.value&&!(s in this._set_after_defaults))continue;const n=i.array(t);e[`_${s}`]=n,null!=i.spec.field&&i.spec.field in t._shapes&&(e[`_${s}_shape`]=t._shapes[i.spec.field]),i instanceof c.DistanceSpec&&(e[`max_${s}`]=_.max(n))}return e}}s.HasProps=u,u.init_HasProps()},n”, ” function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const s=n(15),l=n(17),i=n(9);class o{constructor(n,t){this.sender=n,this.name=t}connect(n,t=null){r.has(this.sender)||r.set(this.sender,[]);const e=r.get(this.sender);if(null!=g(e,this,n,t))return!1;const s=t||n;u.has(s)||u.set(s,[]);const l=u.get(s),i={signal:this,slot:n,context:t};return e.push(i),l.push(i),!0}disconnect(n,t=null){const e=r.get(this.sender);if(null==e||0===e.length)return!1;const s=g(e,this,n,t);if(null==s)return!1;const l=t||n,i=u.get(l);return s.signal=null,f(e),f(i),!0}emit(n){const t=r.get(this.sender)||[];for(const{signal:e,slot:s,context:l}of t)e===this&&s.call(l,n,this.sender)}}e.Signal=o,o.__name__="Signal";class c extends o{emit(){super.emit(void 0)}}e.Signal0=c,c.__name__="Signal0",function(n){n.disconnectBetween=function(n,t){const e=r.get(n);if(null==e||0===e.length)return;const s=u.get(t);if(null!=s&&0!==s.length){for(const t of s){if(null==t.signal)return;t.signal.sender===n&&(t.signal=null)}f(e),f(s)}},n.disconnectSender=function(n){const t=r.get(n);if(null!=t&&0!==t.length){for(const n of t){if(null==n.signal)return;const t=n.context||n.slot;n.signal=null,f(u.get(t))}f(t)}},n.disconnectReceiver=function(n){const t=u.get(n);if(null!=t&&0!==t.length){for(const n of t){if(null==n.signal)return;const t=n.signal.sender;n.signal=null,f(r.get(t))}f(t)}},n.disconnectAll=function(n){const t=r.get(n);if(null!=t&&0!==t.length){for(const n of t)n.signal=null;f(t)}const e=u.get(n);if(null!=e&&0!==e.length){for(const n of e)n.signal=null;f(e)}}}(o||(e.Signal=o={})),e.Signalable=function(){return class{connect(n,t){return n.connect(t,this)}disconnect(n,t){return n.disconnect(t,this)}}};const r=new WeakMap,u=new WeakMap;function g(n,t,e,s){return i.find(n,n=>n.signal===t&&n.slot===e&&n.context===s)}const a=new s.Set;function f(n){0===a.size&&l.defer(h),a.add(n)}function h(){a.forEach(n=>{i.remove_by(n,n=>null==n.signal)}),a.clear()}},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(9),n=t(16),r=t(8);class o{constructor(){this._dict={}}_existing(t){return t in this._dict?this._dict[t]:null}add_value(t,s){const e=this._existing(t);null==e?this._dict[t]=s:r.isArray(e)?e.push(s):this._dict[t]=[e,s]}remove_value(t,s){const e=this._existing(t);if(r.isArray(e)){const n=i.difference(e,[s]);n.length>0?this._dict[t]=n:delete this._dict[t]}else n.isEqual(e,s)&&delete this._dict[t]}get_one(t,s){const e=this._existing(t);if(r.isArray(e)){if(1===e.length)return e[0];throw new Error(s)}return e}}e.MultiDict=o,o.__name__="MultiDict";class a{constructor(t){if(null==t)this._values=[];else if(t instanceof a)this._values=i.copy(t._values);else{this._values=[];for(const s of t)this.add(s)}}get values(){return i.copy(this._values).sort()}toString(){return`Set([${this.values.join(",")}])`}get size(){return this._values.length}has(t){return-1!==this._values.indexOf(t)}add(t){this.has(t)||this._values.push(t)}remove(t){const s=this._values.indexOf(t);-1!==s&&this._values.splice(s,1)}toggle(t){const s=this._values.indexOf(t);-1===s?this._values.push(t):this._values.splice(s,1)}clear(){this._values=[]}union(t){return t=new a(t),new a(this._values.concat(t._values))}intersect(t){t=new a(t);const s=new a;for(const e of t._values)this.has(e)&&t.has(e)&&s.add(e);return s}diff(t){t=new a(t);const s=new a;for(const e of this._values)t.has(e)||s.add(e);return s}forEach(t,s){for(const e of this._values)t.call(s||this,e,e,this)}}e.Set=a,a.__name__="Set";class h{constructor(t,s,e){this.nrows=t,this.ncols=s,this._matrix=new Array(t);for(let i=0;i<t;i++){this._matrix[i]=new Array(s);for(let t=0;t<s;t++)this._matrix[i][t]=e(i,t)}}at(t,s){return this._matrix[t][s]}map(t){return new h(this.nrows,this.ncols,(s,e)=>t(this.at(s,e),s,e))}apply(t){const s=h.from(t),{nrows:e,ncols:i}=this;if(e==s.nrows&&i==s.ncols)return new h(e,i,(t,e)=>s.at(t,e)(this.at(t,e),t,e));throw new Error("dimensions don’t match")}to_sparse(){const t=[];for(let s=0;s<this.nrows;s++)for(let e=0;e<this.ncols;e++){const i=this._matrix[s][e];t.push([i,s,e])}return t}static from(t){if(t instanceof h)return t;{const s=t.length,e=i.min(t.map(t=>t.length));return new h(s,e,(s,e)=>t[s][e])}}}e.Matrix=h,h.__name__="Matrix"},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});n”, ” // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” const r=t(8),o=Object.prototype.toString;n.isEqual=function(t,e){return function t(e,n,c,u){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return e===n;const i=o.call(e);if(i!==o.call(n))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:0==+e?1/+e==1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n}const s="[object Array]"===i;if(!s){if("object"!=typeof e||"object"!=typeof n)return!1;const t=e.constructor,o=n.constructor;if(t!==o&&!(r.isFunction(t)&&t instanceof t&&r.isFunction(o)&&o instanceof o)&&"constructor"in e&&"constructor"in n)return!1}u=u||[];let f=(c=c||[]).length;for(;f–;)if(c[f]===e)return u[f]===n;if(c.push(e),u.push(n),s){if(f=e.length,f!==n.length)return!1;for(;f–;)if(!t(e[f],n[f],c,u))return!1}else{const r=Object.keys(e);let o;if(f=r.length,Object.keys(n).length!==f)return!1;for(;f–;)if(o=r[f],!n.hasOwnProperty(o)||!t(e[o],n[o],c,u))return!1}return c.pop(),u.pop(),!0}(t,e)}},n”, ” function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.delay=n”, ” // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” function(n,e){return setTimeout(n,e)};const u="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate;t.defer=function(n){return new Promise(e=>{u(()=>e(n()))})},t.throttle=function(n,e,t={}){let u,o,i,r=null,l=0;const c=function(){l=!1===t.leading?0:Date.now(),r=null,i=n.apply(u,o),r||(u=o=null)};return function(){const a=Date.now();l||!1!==t.leading||(l=a);const f=e-(a-l);return u=this,o=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),l=a,i=n.apply(u,o),r||(u=o=null)):r||!1===t.trailing||(r=setTimeout(c,f)),i}},t.once=function(n){let e,t=!1;return function(){return t||(t=!0,e=n()),e}}},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const l=e(1).__importStar(e(19)),c=e(24);function o(e,t){const n={};for(const l in e){const c=e[l];n[t+l]=c}return n}const a={line_color:[l.ColorSpec,"black"],line_width:[l.NumberSpec,1],line_alpha:[l.NumberSpec,1],line_join:[l.LineJoin,"bevel"],line_cap:[l.LineCap,"butt"],line_dash:[l.Array,[]],line_dash_offset:[l.Number,0]};n.line=(e="")=>o(a,e);const r={fill_color:[l.ColorSpec,"gray"],fill_alpha:[l.NumberSpec,1]};n.fill=(e="")=>o(r,e);const i={hatch_color:[l.ColorSpec,"black"],hatch_alpha:[l.NumberSpec,1],hatch_scale:[l.NumberSpec,12],hatch_pattern:[l.StringSpec,null],hatch_weight:[l.NumberSpec,1],hatch_extra:[l.Any,{}]};n.hatch=(e="")=>o(i,e);const _={text_font:[l.Font,"helvetica"],text_font_size:[l.FontSizeSpec,"16px"],text_font_style:[l.FontStyle,"normal"],text_color:[l.ColorSpec,"#444444"],text_alpha:[l.NumberSpec,1],text_align:[l.TextAlign,"left"],text_baseline:[l.TextBaseline,"bottom"],text_line_height:[l.Number,1.2]};n.text=(e="")=>o(_,e),n.create=function(e){const t={};for(const l of e){const[e,o]=l.split(":");let a;switch(e){case"line":a=n.line;break;case"fill":a=n.fill;break;case"hatch":a=n.hatch;break;case"text":a=n.text;break;default:throw new Error(`Unknown property mixin kind ‘${e}’`)}c.extend(t,a(o))}return t}},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),s=e(14),a=i.__importStar(e(20)),r=e(9),o=e(12),l=e(21),c=e(8),_=e(23);function u(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}function d(e){return c.isPlainObject(e)&&(void 0===e.value?0:1)+(void 0===e.field?0:1)+(void 0===e.expr?0:1)==1}s.Signal,n.isSpec=d;class p extends(s.Signalable()){constructor(e,t,n){super(),this.obj=e,this.attr=t,this.default_value=n,this.optional=!1,this.change=new s.Signal0(this.obj,"change"),this._init(),this.connect(this.change,()=>this._init())}update(){this._init()}init(){}transform(e){return e}validate(e){if(!this.valid(e))throw new Error(`${this.obj.type}.${this.attr} given invalid value: ${u(e)}`)}valid(e){return!0}value(e=!0){if(void 0===this.spec.value)throw new Error("attempted to retrieve property value for property without value specification");let t=this.transform([this.spec.value])[0];return null!=this.spec.transform&&e&&(t=this.spec.transform.compute(t)),t}_init(){const e=this.obj,t=this.attr;let n=e.getv(t);if(void 0===n){const i=this.default_value;n=null!=this._default_override?this._default_override():void 0!==i?i(e):null,e.setv({[t]:n},{silent:!0,defaults:!0})}c.isArray(n)?this.spec={value:n}:d(n)?this.spec=n:this.spec={value:n},null!=this.spec.value&&this.validate(this.spec.value),this.init()}toString(){return`Prop(${this.obj}.${this.attr}, spec: ${u(this.spec)})`}}n.Property=p,p.__name__="Property";class h extends p{}n.Any=h,h.__name__="Any";class m extends p{valid(e){return c.isArray(e)||e instanceof Float64Array}}n.Array=m,m.__name__="Array";class S extends p{valid(e){return c.isBoolean(e)}}n.Boolean=S,S.__name__="Boolean";class g extends p{valid(e){return c.isString(e)&&l.is_color(e)}}n.Color=g,g.__name__="Color";class v extends p{}n.Instance=v,v.__name__="Instance";class x extends p{valid(e){return c.isNumber(e)}}n.Number=x,x.__name__="Number";class f extends x{valid(e){return c.isNumber(e)&&(0|e)==e}}n.Int=f,f.__name__="Int";class y extends x{}n.Angle=y,y.__name__="Angle";class P extends x{valid(e){return c.isNumber(e)&&0<=e&&e<=1}}n.Percent=P,P.__name__="Percent";class L extends p{valid(e){return c.isString(e)}}n.String=L,L.__name__="String";class T extends L{}n.FontSize=T,T.__name__="FontSize";class A extends L{constructor(){super(…arguments),this._default_override=_.settings.dev?()=>"Bokeh":void 0}}n.Font=A,A.__name__="Font";class b extends p{valid(e){return c.isString(e)&&r.includes(this.enum_values,e)}}function M(e){return class extends b{get enum_values(){return e}}}n.EnumProperty=b,b.__name__="EnumProperty",n.Enum=M;class B extends b{get enum_values(){return a.Direction}transform(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)switch(e[n]){case"clock":t[n]=0;break;case"anticlock":t[n]=1}return t}}n.Direction=B,B.__name__="Direction",n.Anchor=M(a.Anchor),n.AngleUnits=M(a.AngleUnits),n.BoxOrigin=M(a.BoxOrigin),n.ButtonType=M(a.ButtonType),n.CalendarPosition=M(a.CalendarPosition),n.Dimension=M(a.Dimension),n.Dimensions=M(a.Dimensions),n.Distribution=M(a.Distribution),n.FontStyle=M(a.FontStyle),n.HatchPatternType=M(a.HatchPatternType),n.HTTPMethod=M(a.HTTPMethod),n.HexTileOrientation=M(a.HexTileOrientation),n.HoverMode=M(a.HoverMode),n.LatLon=M(a.LatLon),n.LegendClickPolicy=M(a.LegendClickPolicy),n.LegendLocation=M(a.LegendLocation),n.LineCap=M(a.LineCap),n.LineJoin=M(a.LineJoin),n.LinePolicy=M(a.LinePolicy),n.Location=M(a.Location),n.Logo=M(a.Logo),n.MarkerType=M(a.MarkerType),n.MutedPolicy=M(a.MutedPolicy),n.Orientation=M(a.Orientation),n.OutputBackend=M(a.OutputBackend),n.PaddingUnits=M(a.PaddingUnits),n.Place=M(a.Place),n.PointPolicy=M(a.PointPolicy),n.RadiusDimension=M(a.RadiusDimension),n.RenderLevel=M(a.RenderLevel),n.RenderMode=M(a.RenderMode),n.ResetPolicy=M(a.ResetPolicy),n.RoundingFunction=M(a.RoundingFunction),n.Side=M(a.Side),n.SizingMode=M(a.SizingMode),n.Sort=M(a.Sort),n.SpatialUnits=M(a.SpatialUnits),n.StartEnd=M(a.StartEnd),n.StepMode=M(a.StepMode),n.TapBehavior=M(a.TapBehavior),n.TextAlign=M(a.TextAlign),n.TextBaseline=M(a.TextBaseline),n.TextureRepetition=M(a.TextureRepetition),n.TickLabelOrientation=M(a.TickLabelOrientation),n.TooltipAttachment=M(a.TooltipAttachment),n.UpdateMode=M(a.UpdateMode),n.VerticalAlign=M(a.VerticalAlign);class D extends p{}n.ScalarSpec=D,D.__name__="ScalarSpec";class k extends p{array(e){let t;if(null!=this.spec.field){if(t=this.transform(e.get_column(this.spec.field)),null==t)throw new Error(`attempted to retrieve property array for nonexistent field ‘${this.spec.field}’`)}else if(null!=this.spec.expr)t=this.transform(this.spec.expr.v_compute(e));else{let n=e.get_length();null==n&&(n=1);const i=this.value(!1);t=r.repeat(i,n)}return null!=this.spec.transform&&(t=this.spec.transform.v_compute(t)),t}}n.VectorSpec=k,k.__name__="VectorSpec";class C extends k{}n.DataSpec=C,C.__name__="DataSpec";class O extends k{init(){null==this.spec.units&&(this.spec.units=this.default_units);const e=this.spec.units;if(!r.includes(this.valid_units,e))throw new Error(`units must be one of ${this.valid_units.join(", ")}; got: ${e}`)}get units(){return this.spec.units}set units(e){this.spec.units=e}}n.UnitsSpec=O,O.__name__="UnitsSpec";class U extends O{get default_units(){return"rad"}get valid_units(){return a.AngleUnits}transform(e){return"deg"==this.spec.units&&(e=o.map(e,e=>e*Math.PI/180)),e=o.map(e,e=>-e),super.transform(e)}}n.AngleSpec=U,U.__name__="AngleSpec";class w extends C{}n.BooleanSpec=w,w.__name__="BooleanSpec";class R extends C{}n.ColorSpec=R,R.__name__="ColorSpec";class F extends C{}n.CoordinateSpec=F,F.__name__="CoordinateSpec";class N extends C{}n.CoordinateSeqSpec=N,N.__name__="CoordinateSeqSpec";class E extends O{get default_units(){return"data"}get valid_units(){return a.SpatialUnits}}n.DistanceSpec=E,E.__name__="DistanceSpec";class $ extends C{}n.FontSizeSpec=$,$.__name__="FontSizeSpec";class j extends C{}n.MarkerSpec=j,j.__name__="MarkerSpec";class H extends C{}n.NumberSpec=H,H.__name__="NumberSpec";class z extends C{}n.StringSpec=z,z.__name__="StringSpec";class I extends C{}n.NullStringSpec=I,I.__name__="NullStringSpec"},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Align=["start","center","end"],o.Anchor=["top_left","top_center","top_right","center_left","center","center_right","bottom_left","bottom_center","bottom_right"],o.AngleUnits=["deg","rad"],o.BoxOrigin=["corner","center"],o.ButtonType=["default","primary","success","warning","danger"],o.CalendarPosition=["auto","above","below"],o.Dimension=["width","height"],o.Dimensions=["width","height","both"],o.Direction=["clock","anticlock"],o.Distribution=["uniform","normal"],o.FontStyle=["normal","italic","bold","bold italic"],o.HatchPatternType=["blank","dot","ring","horizontal_line","vertical_line","cross","horizontal_dash","vertical_dash","spiral","right_diagonal_line","left_diagonal_line","diagonal_cross","right_diagonal_dash","left_diagonal_dash","horizontal_wave","vertical_wave","criss_cross"," ",".","o","-","|","+",’"’,":","@","/","\\","x",",","`","v",">",""],o.HTTPMethod=["POST","GET"],o.HexTileOrientation=["pointytop","flattop"],o.HoverMode=["mouse","hline","vline"],o.LatLon=["lat","lon"],o.LegendClickPolicy=["none","hide","mute"],o.LegendLocation=o.Anchor,o.LineCap=["butt","round","square"],o.LineJoin=["miter","round","bevel"],o.LinePolicy=["prev","next","nearest","interp","none"],o.Location=["above","below","left","right"],o.Logo=["normal","grey"],o.MarkerType=["asterisk","circle","circle_cross","circle_x","cross","dash","diamond","diamond_cross","hex","inverted_triangle","square","square_cross","square_x","triangle","x"],o.MutedPolicy=["show","ignore"],o.Orientation=["vertical","horizontal"],o.OutputBackend=["canvas","svg","webgl"],o.PaddingUnits=["percent","absolute"],o.Place=["above","below","left","right","center"],o.PointPolicy=["snap_to_data","follow_mouse","none"],o.RadiusDimension=["x","y","max","min"],o.RenderLevel=["image","underlay","glyph","annotation","overlay"],o.RenderMode=["canvas","css"],o.ResetPolicy=["standard","event_only"],o.RoundingFunction=["round","nearest","floor","rounddown","ceil","roundup"],o.Side=["above","below","left","right"],o.SizingMode=["stretch_width","stretch_height","stretch_both","scale_width","scale_height","scale_both","fixed"],o.Sort=["ascending","descending"],o.SpatialUnits=["screen","data"],o.StartEnd=["start","end"],o.StepMode=["after","before","center"],o.TapBehavior=["select","inspect"],o.TextAlign=["left","right","center"],o.TextBaseline=["top","middle","bottom","alphabetic","hanging","ideographic"],o.TextureRepetition=["repeat","repeat_x","repeat_y","no_repeat"],o.TickLabelOrientation=["vertical","horizontal","parallel","normal"],o.TooltipAttachment=["horizontal","vertical","left","right","above","below"],o.UpdateMode=["replace","append"],o.VerticalAlign=["top","middle","bottom"]},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(22),o=e(9);function l(e){const r=Number(e).toString(16);return 1==r.length?`0${r}`:r}function a(e){if(0==(e+="").indexOf("#"))return e;if(n.is_svg_color(e))return n.svg_colors[e];if(0==e.indexOf("rgb")){const r=e.replace(/^rgba?\(|\\s+|\)$/g,"").split(",");let t=r.slice(0,3).map(l).join("");return 4==r.length&&(t+=l(Math.floor(255*parseFloat(r[3])))),`#${t.slice(0,8)}`}return e}function c(e){let r;switch(e.substring(0,4)){case"rgba":r={start:"rgba(",len:4,alpha:!0};break;case"rgb(":r={start:"rgb(",len:3,alpha:!1};break;default:return!1}if(new RegExp(".*?(\\.).*(,)").test(e))throw new Error(color expects integers for rgb in rgb/rgba tuple, received ${e});const t=e.replace(r.start,"").replace(")","").split(",").map(parseFloat);if(t.length!=r.len)throw new Error(color expects rgba ${r.len}-tuple, received ${e});if(r.alpha&&!(0<=t[3]&&t[3]<=1))throw new Error("color expects rgba 4-tuple to have alpha value between 0 and 1");if(o.includes(t.slice(0,3).map(e=>0<=e&&e<=255),!1))throw new Error("color expects rgb to have value between 0 and 255");return!0}t.is_color=function(e){return n.is_svg_color(e.toLowerCase())||"#"==e.substring(0,1)||c(e)},t.rgb2hex=function(e,r,t){return`#${l(255&e)}${l(255&r)}${l(255&t)}`},t.color2hex=a,t.color2rgba=function(e,r=1){if(!e)return[0,0,0,0];let t=a(e);t=t.replace(/ |#/g,\"\"),t.length<=4&&(t=t.replace(/(.)/g,\"$1$1\"));const n=t.match(/../g).map(e=>parseInt(e,16)/255);for(;n.length<3;)n.push(0);return n.length<4&&n.push(r),n.slice(0,4)},t.valid_rgb=c},\n", " function _(e,F,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.svg_colors={indianred:\"#CD5C5C\",lightcoral:\"#F08080\",salmon:\"#FA8072\",darksalmon:\"#E9967A\",lightsalmon:\"#FFA07A\",crimson:\"#DC143C\",red:\"#FF0000\",firebrick:\"#B22222\",darkred:\"#8B0000\",pink:\"#FFC0CB\",lightpink:\"#FFB6C1\",hotpink:\"#FF69B4\",deeppink:\"#FF1493\",mediumvioletred:\"#C71585\",palevioletred:\"#DB7093\",coral:\"#FF7F50\",tomato:\"#FF6347\",orangered:\"#FF4500\",darkorange:\"#FF8C00\",orange:\"#FFA500\",gold:\"#FFD700\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",lemonchiffon:\"#FFFACD\",lightgoldenrodyellow:\"#FAFAD2\",papayawhip:\"#FFEFD5\",moccasin:\"#FFE4B5\",peachpuff:\"#FFDAB9\",palegoldenrod:\"#EEE8AA\",khaki:\"#F0E68C\",darkkhaki:\"#BDB76B\",lavender:\"#E6E6FA\",thistle:\"#D8BFD8\",plum:\"#DDA0DD\",violet:\"#EE82EE\",orchid:\"#DA70D6\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",mediumorchid:\"#BA55D3\",mediumpurple:\"#9370DB\",blueviolet:\"#8A2BE2\",darkviolet:\"#9400D3\",darkorchid:\"#9932CC\",darkmagenta:\"#8B008B\",purple:\"#800080\",indigo:\"#4B0082\",slateblue:\"#6A5ACD\",darkslateblue:\"#483D8B\",mediumslateblue:\"#7B68EE\",greenyellow:\"#ADFF2F\",chartreuse:\"#7FFF00\",lawngreen:\"#7CFC00\",lime:\"#00FF00\",limegreen:\"#32CD32\",palegreen:\"#98FB98\",lightgreen:\"#90EE90\",mediumspringgreen:\"#00FA9A\",springgreen:\"#00FF7F\",mediumseagreen:\"#3CB371\",seagreen:\"#2E8B57\",forestgreen:\"#228B22\",green:\"#008000\",darkgreen:\"#006400\",yellowgreen:\"#9ACD32\",olivedrab:\"#6B8E23\",olive:\"#808000\",darkolivegreen:\"#556B2F\",mediumaquamarine:\"#66CDAA\",darkseagreen:\"#8FBC8F\",lightseagreen:\"#20B2AA\",darkcyan:\"#008B8B\",teal:\"#008080\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",lightcyan:\"#E0FFFF\",paleturquoise:\"#AFEEEE\",aquamarine:\"#7FFFD4\",turquoise:\"#40E0D0\",mediumturquoise:\"#48D1CC\",darkturquoise:\"#00CED1\",cadetblue:\"#5F9EA0\",steelblue:\"#4682B4\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",lightblue:\"#ADD8E6\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",deepskyblue:\"#00BFFF\",dodgerblue:\"#1E90FF\",cornflowerblue:\"#6495ED\",royalblue:\"#4169E1\",blue:\"#0000FF\",mediumblue:\"#0000CD\",darkblue:\"#00008B\",navy:\"#000080\",midnightblue:\"#191970\",cornsilk:\"#FFF8DC\",blanchedalmond:\"#FFEBCD\",bisque:\"#FFE4C4\",navajowhite:\"#FFDEAD\",wheat:\"#F5DEB3\",burlywood:\"#DEB887\",tan:\"#D2B48C\",rosybrown:\"#BC8F8F\",sandybrown:\"#F4A460\",goldenrod:\"#DAA520\",darkgoldenrod:\"#B8860B\",peru:\"#CD853F\",chocolate:\"#D2691E\",saddlebrown:\"#8B4513\",sienna:\"#A0522D\",brown:\"#A52A2A\",maroon:\"#800000\",white:\"#FFFFFF\",snow:\"#FFFAFA\",honeydew:\"#F0FFF0\",mintcream:\"#F5FFFA\",azure:\"#F0FFFF\",aliceblue:\"#F0F8FF\",ghostwhite:\"#F8F8FF\",whitesmoke:\"#F5F5F5\",seashell:\"#FFF5EE\",beige:\"#F5F5DC\",oldlace:\"#FDF5E6\",floralwhite:\"#FFFAF0\",ivory:\"#FFFFF0\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lavenderblush:\"#FFF0F5\",mistyrose:\"#FFE4E1\",gainsboro:\"#DCDCDC\",lightgray:\"#D3D3D3\",lightgrey:\"#D3D3D3\",silver:\"#C0C0C0\",darkgray:\"#A9A9A9\",darkgrey:\"#A9A9A9\",gray:\"#808080\",grey:\"#808080\",dimgray:\"#696969\",dimgrey:\"#696969\",lightslategray:\"#778899\",lightslategrey:\"#778899\",slategray:\"#708090\",slategrey:\"#708090\",darkslategray:\"#2F4F4F\",darkslategrey:\"#2F4F4F\",black:\"#000000\"},r.is_svg_color=function(e){return e in r.svg_colors}},\n", " function _(e,t,s){Object.defineProperty(s,\"__esModule\",{value:!0});class n{constructor(){this._dev=!1}set dev(e){this._dev=e}get dev(){return this._dev}}s.Settings=n,n.__name__=\"Settings\",s.settings=new n},\n", " function _(e,t,n){Object.defineProperty(n,\"__esModule\",{value:!0});const c=e(9);function o(e){return Object.keys(e).length}n.keys=Object.keys,n.extend=Object.assign,n.values=void 0!==Object.values?Object.values:e=>{const t=Object.keys(e),n=t.length,c=new Array(n);for(let o=0;o<n;o++)c[o]=e[t[o]];return c},n.clone=function(e){return Object.assign({},e)},n.merge=function(e,t){const n=Object.create(Object.prototype),o=c.concat([Object.keys(e),Object.keys(t)]);for(const r of o){const o=e.hasOwnProperty(r)?e[r]:[],s=t.hasOwnProperty(r)?t[r]:[];n[r]=c.union(o,s)}return n},n.size=o,n.isEmpty=function(e){return 0===o(e)}},\n", " function _(e,n,t){Object.defineProperty(t,\"__esModule\",{value:!0});const i=e(8),r=e(24);t.is_ref=function(e){if(i.isPlainObject(e)){const n=r.keys(e);return 1==n.length&&\"id\"==n[0]}return!1}},\n", " function _(t,e,r){Object.defineProperty(r,\"__esModule\",{value:!0});const n=t(23);function u(){const t=new Array(32);for(let e=0;e<32;e++)t[e]=\"0123456789ABCDEF\".substr(Math.floor(16*Math.random()),1);return t[12]=\"4\",t[16]=\"0123456789ABCDEF\".substr(3&t[16].charCodeAt(0)|8,1),t.join(\"\")}r.startsWith=function(t,e,r=0){return t.substr(r,e.length)==e},r.uuid4=u;let s=1e3;r.uniqueId=function(t){const e=n.settings.dev?`j${s++}`:u();return null!=t?`${t}-${e}`:e},r.escape=function(t){return t.replace(/(?:[&<>\"'`])/g,t=>{switch(t){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return\""\";case\"'\":return\"'\";case\"`\":return\"`\";default:return t}})},r.unescape=function(t){return t.replace(/&(amp|lt|gt|quot|#x27|#x60);/g,(t,e)=>{switch(e){case\"amp\":return\"&\";case\"lt\":return\"<\";case\"gt\":return\">\";case\"quot\":return'\"';case\"#x27\":return\"'\";case\"#x60\":return\"`\";default:return e}})},r.use_strict=function(t){return`'use strict';\\n${t}`}},\n", " function _(t,_,r){Object.defineProperty(r,\"__esModule\",{value:!0});const e=t(1);e.__exportStar(t(28),r),e.__exportStar(t(147),r),e.__exportStar(t(174),r),e.__exportStar(t(178),r),e.__exportStar(t(193),r),e.__exportStar(t(197),r),e.__exportStar(t(203),r),e.__exportStar(t(207),r),e.__exportStar(t(237),r),e.__exportStar(t(240),r),e.__exportStar(t(242),r),e.__exportStar(t(255),r),e.__exportStar(t(122),r),e.__exportStar(t(261),r),e.__exportStar(t(265),r),e.__exportStar(t(288),r),e.__exportStar(t(289),r),e.__exportStar(t(290),r),e.__exportStar(t(291),r),e.__exportStar(t(292),r),e.__exportStar(t(297),r),e.__exportStar(t(299),r),e.__exportStar(t(309),r),e.__exportStar(t(313),r)},\n", " function _(a,e,o){Object.defineProperty(o,\"__esModule\",{value:!0});var r=a(29);o.Annotation=r.Annotation;var n=a(71);o.Arrow=n.Arrow;var t=a(72);o.ArrowHead=t.ArrowHead;var v=a(72);o.OpenHead=v.OpenHead;var l=a(72);o.NormalHead=l.NormalHead;var d=a(72);o.TeeHead=d.TeeHead;var i=a(72);o.VeeHead=i.VeeHead;var A=a(104);o.Band=A.Band;var H=a(105);o.BoxAnnotation=H.BoxAnnotation;var T=a(107);o.ColorBar=T.ColorBar;var p=a(132);o.Label=p.Label;var L=a(134);o.LabelSet=L.LabelSet;var b=a(135);o.Legend=b.Legend;var B=a(136);o.LegendItem=B.LegendItem;var S=a(138);o.PolyAnnotation=S.PolyAnnotation;var P=a(139);o.Slope=P.Slope;var g=a(140);o.Span=g.Span;var m=a(133);o.TextAnnotation=m.TextAnnotation;var w=a(141);o.Title=w.Title;var x=a(142);o.ToolbarPanel=x.ToolbarPanel;var s=a(143);o.Tooltip=s.Tooltip;var u=a(146);o.Whisker=u.Whisker},\n", " function _(t,e,n){Object.defineProperty(n,\"__esModule\",{value:!0});const i=t(1).__importStar(t(30)),s=t(24),o=t(63);class _ extends o.RendererView{get panel(){return this.layout}get_size(){if(this.model.visible){const{width:t,height:e}=this._get_size();return{width:Math.round(t),height:Math.round(e)}}return{width:0,height:0}}connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.visible,()=>this.plot_view.request_layout())}_get_size(){throw new Error(\"not implemented\")}get ctx(){return this.plot_view.canvas_view.ctx}set_data(t){const e=this.model.materialize_dataspecs(t);if(s.extend(this,e),this.plot_model.use_map){const t=this;null!=t._x&&([t._x,t._y]=i.project_xy(t._x,t._y)),null!=t._xs&&([t._xs,t._ys]=i.project_xsys(t._xs,t._ys))}}get needs_clip(){return null==this.layout}serializable_state(){const t=super.serializable_state();return null==this.layout?t:Object.assign(Object.assign({},t),{bbox:this.layout.bbox.box})}}n.AnnotationView=_,_.__name__=\"AnnotationView\";class a extends o.Renderer{constructor(t){super(t)}static init_Annotation(){this.override({level:\"annotation\"})}}n.Annotation=a,a.__name__=\"Annotation\",a.init_Annotation()},\n", " function _(t,n,e){Object.defineProperty(e,\"__esModule\",{value:!0});const r=t(1),o=r.__importDefault(t(31)),a=r.__importDefault(t(32)),c=new a.default(\"GOOGLE\"),l=new a.default(\"WGS84\");e.wgs84_mercator=o.default(l,c);const u={lon:[-20026376.39,20026376.39],lat:[-20048966.1,20048966.1]},f={lon:[-180,180],lat:[-85.06,85.06]};function s(t,n){const r=Math.min(t.length,n.length),o=new Array(r),a=new Array(r);for(let c=0;c<r;c++){const[r,l]=e.wgs84_mercator.forward([t[c],n[c]]);o[c]=r,a[c]=l}return[o,a]}e.clip_mercator=function(t,n,e){const[r,o]=u[e];return[Math.max(t,r),Math.min(n,o)]},e.in_bounds=function(t,n){const[e,r]=f[n];return e<t&&t<r},e.project_xy=s,e.project_xsys=function(t,n){const e=Math.min(t.length,n.length),r=new Array(e),o=new Array(e);for(let a=0;a<e;a++){const[e,c]=s(t[a],n[a]);r[a]=e,o[a]=c}return[r,o]}},\n", " function _(e,n,t){Object.defineProperty(t,\"__esModule\",{value:!0});const r=e(1),o=r.__importDefault(e(32)),a=r.__importDefault(e(57));var i=o.default(\"WGS84\");function c(e,n,t){var r,o,i;return Array.isArray(t)?(r=a.default(e,n,t)||{x:NaN,y:NaN},t.length>2?void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name?\"number\"==typeof r.z?[r.x,r.y,r.z].concat(t.splice(3)):[r.x,r.y,t[2]].concat(t.splice(3)):[r.x,r.y].concat(t.splice(2)):[r.x,r.y]):(o=a.default(e,n,t),2===(i=Object.keys(t)).length||i.forEach((function(r){if(void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name){if(\"x\"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=t[r]})),o)}function u(e){return e instanceof o.default?e:e.oProj?e.oProj:o.default(e)}t.default=function(e,n,t){e=u(e);var r,o=!1;return void 0===n?(n=e,e=i,o=!0):(void 0!==n.x||Array.isArray(n))&&(t=n,n=e,e=i,o=!0),n=u(n),t?c(e,n,t):(r={forward:function(t){return c(e,n,t)},inverse:function(t){return c(n,e,t)}},o&&(r.oProj=n),r)}},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1),i=s.__importDefault(e(33)),u=s.__importDefault(e(44)),l=s.__importDefault(e(45)),o=e(53),r=s.__importDefault(e(55)),f=s.__importDefault(e(56)),d=s.__importDefault(e(40));function p(e,t){if(!(this instanceof p))return new p(e);t=t||function(e){if(e)throw e};var a=i.default(e);if("object"==typeof a){var s=p.projections.get(a.projName);if(s){if(a.datumCode&&"none"!==a.datumCode){var l=d.default(r.default,a.datumCode);l&&(a.datum_params=l.towgs84?l.towgs84.split(","):null,a.ellps=l.ellipse,a.datumName=l.datumName?l.datumName:a.datumCode)}a.k0=a.k0||1,a.axis=a.axis||"enu",a.ellps=a.ellps||"wgs84";var m=o.sphere(a.a,a.b,a.rf,a.ellps,a.sphere),n=o.eccentricity(m.a,m.b,m.rf,a.R_A),h=a.datum||f.default(a.datumCode,a.datum_params,m.a,m.b,n.es,n.ep2);u.default(this,a),u.default(this,s),this.a=m.a,this.b=m.b,this.rf=m.rf,this.sphere=m.sphere,this.es=n.es,this.e=n.e,this.ep2=n.ep2,this.datum=h,this.init(),t(null,this)}else t(e)}else t(e)}p.projections=l.default,p.projections.start(),a.default=p},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const u=t(1),n=u.__importDefault(t(34)),f=u.__importDefault(t(41)),i=u.__importDefault(t(36)),a=u.__importDefault(t(40));var o=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var l=["3857","900913","3785","102113"];r.default=function(t){if(!function(t){return"string"==typeof t}(t))return t;if(function(t){return t in n.default}(t))return n.default[t];if(function(t){return o.some((function(e){return t.indexOf(e)>-1}))}(t)){var e=f.default(t);if(function(t){var e=a.default(t,"authority");if(e){var r=a.default(e,"epsg");return r&&l.indexOf(r)>-1}}(e))return n.default["EPSG:3857"];var r=function(t){var e=a.default(t,"extension");if(e)return a.default(e,"proj4")}(e);return r?i.default(r):e}return function(t){return"+"===t[0]}(t)?i.default(t):void 0}},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),n=i.__importDefault(t(35)),f=i.__importDefault(t(36)),a=i.__importDefault(t(41));function l(t){var e=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?l[t]=f.default(arguments[1]):l[t]=a.default(arguments[1]):l[t]=r}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?l.apply(e,t):l(t)}));if("string"==typeof t){if(t in l)return l[t]}else"EPSG"in t?l["EPSG:"+t.EPSG]=t:"ESRI"in t?l["ESRI:"+t.ESRI]=t:"IAU2000"in t?l["IAU2000:"+t.IAU2000]=t:console.log(t);return}}n.default(l),r.default=l},n”, ” function _(e,t,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}},n”, ” function _(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});const e=t(1),a=t(37),u=e.__importDefault(t(38)),r=e.__importDefault(t(39)),i=e.__importDefault(t(40));o.default=function(t){var n,o,e,f={},l=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,n){var o=n.split("=");return o.push(!0),t[o[0].toLowerCase()]=o[1],t}),{}),c={proj:"projName",datum:"datumCode",rf:function(t){f.rf=parseFloat(t)},lat_0:function(t){f.lat0=t*a.D2R},lat_1:function(t){f.lat1=t*a.D2R},lat_2:function(t){f.lat2=t*a.D2R},lat_ts:function(t){f.lat_ts=t*a.D2R},lon_0:function(t){f.long0=t*a.D2R},lon_1:function(t){f.long1=t*a.D2R},lon_2:function(t){f.long2=t*a.D2R},alpha:function(t){f.alpha=parseFloat(t)*a.D2R},lonc:function(t){f.longc=t*a.D2R},x_0:function(t){f.x0=parseFloat(t)},y_0:function(t){f.y0=parseFloat(t)},k_0:function(t){f.k0=parseFloat(t)},k:function(t){f.k0=parseFloat(t)},a:function(t){f.a=parseFloat(t)},b:function(t){f.b=parseFloat(t)},r_a:function(){f.R_A=!0},zone:function(t){f.zone=parseInt(t,10)},south:function(){f.utmSouth=!0},towgs84:function(t){f.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){f.to_meter=parseFloat(t)},units:function(t){f.units=t;var n=i.default(r.default,t);n&&(f.to_meter=n.to_meter)},from_greenwich:function(t){f.from_greenwich=t*a.D2R},pm:function(t){var n=i.default(u.default,t);f.from_greenwich=(n||parseFloat(t))*a.D2R},nadgrids:function(t){"@null"===t?f.datumCode="none":f.nadgrids=t},axis:function(t){3===t.length&&-1!=="ewnsud".indexOf(t.substr(0,1))&&-1!=="ewnsud".indexOf(t.substr(1,1))&&-1!=="ewnsud".indexOf(t.substr(2,1))&&(f.axis=t)}};for(n in l)o=l[n],n in c?"function"==typeof(e=c[n])?e(o):f[e]=o:f[n]=o;return"string"==typeof f.datumCode&&"WGS84"!==f.datumCode&&(f.datumCode=f.datumCode.toLowerCase()),f}},n”, ” function _(P,_,e){Object.defineProperty(e,"__esModule",{value:!0}),e.PJD_3PARAM=1,e.PJD_7PARAM=2,e.PJD_WGS84=4,e.PJD_NODATUM=5,e.SEC_TO_RAD=484813681109536e-20,e.HALF_PI=Math.PI/2,e.SIXTH=.16666666666666666,e.RA4=.04722222222222222,e.RA6=.022156084656084655,e.EPSLN=1e-10,e.D2R=.017453292519943295,e.R2D=57.29577951308232,e.FORTPI=Math.PI/4,e.TWO_PI=2*Math.PI,e.SPI=3.14159265359},n”, ” function _(e,o,r){Object.defineProperty(r,"__esModule",{value:!0});var a={};r.default=a,a.greenwich=0,a.lisbon=-9.131906111111,a.paris=2.337229166667,a.bogota=-74.080916666667,a.madrid=-3.687938888889,a.rome=12.452333333333,a.bern=7.439583333333,a.jakarta=106.807719444444,a.ferro=-17.666666666667,a.brussels=4.367975,a.stockholm=18.058277777778,a.athens=23.7163375,a.oslo=10.722916666667},n”, ” function _(e,t,f){Object.defineProperty(f,"__esModule",{value:!0}),f.default={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});var o=/[\s_\-\/\(\)]/g;t.default=function(e,r){if(e[r])return e[r];for(var t,a=Object.keys(e),n=r.toLowerCase().replace(o,""),f=-1;++f<a.length;)if((t=a[f]).toLowerCase().replace(o,"")===n)return e[t]}},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const o=e(1);const d=o.__importDefault(e(42)),r=e(43);function n(e){return.017453292519943295*e}a.default=function(e){var t=d.default(e),a=t.shift(),o=t.shift();t.unshift(["name",o]),t.unshift(["type",a]);var l={};return r.sExpr(t,l),function(e){if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",a=0,o=e.AXIS.length;a<o;++a){var d=e.AXIS[a][0].toLowerCase();-1!==d.indexOf("north")?t+="n":-1!==d.indexOf("south")?t+="s":-1!==d.indexOf("east")?t+="e":-1!==d.indexOf("west")&&(t+="w")}2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var r=e.GEOGCS;function l(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(r=e),r&&(r.DATUM?e.datumCode=r.DATUM.name.toLowerCase():e.datumCode=r.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(e.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=r.DATUM.SPHEROID.a,e.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(e.datum_params=r.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",n],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",n],["x0","false_easting",l],["y0","false_northing",l],["long0","central_meridian",n],["lat0","latitude_of_origin",n],["lat0","standard_parallel_1",n],["lat1","standard_parallel_1",n],["lat2","standard_parallel_2",n],["azimuth","Azimuth"],["alpha","azimuth",n],["srsCode","name"]].forEach((function(t){return a=e,d=(o=t)[0],r=o[1],void(!(d in a)&&r in a&&(a[d]=a[r],3===o.length&&(a[d]=o[2](a[d]))));var a,o,d,r})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=n(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(l),l}},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return new a(t).output()};var i=/\s/,s=/[A-Za-z]/,h=/[A-Za-z84]/,o=/[,\]]/,n=/[\d\.E\-\+]/;function a(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}a.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;i.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},a.prototype.afterquote=function(t){if(’"’===t)return this.word+=’"’,void(this.state=4);if(o.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn’t handled \""+t+’" in afterquote yet, index ‘+this.place)},a.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level–,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},a.prototype.number=function(t){if(!n.test(t)){if(o.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn’t handled \""+t+’" in number yet, index ‘+this.place)}this.word+=t},a.prototype.quoted=function(t){’"’!==t?this.word+=t:this.state=5},a.prototype.keyword=function(t){if(h.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=1)}if(!o.test(t))throw new Error("havn’t handled \""+t+’" in keyword yet, index ‘+this.place);this.afterItem(t)}},a.prototype.neutral=function(t){if(s.test(t))return this.word=t,void(this.state=2);if(’"’===t)return this.word="",void(this.state=4);if(n.test(t))return this.word=t,void(this.state=3);if(!o.test(t))throw new Error("havn’t handled \""+t+’" in neutral yet, index ‘+this.place);this.afterItem(t)},a.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error(‘unable to parse string "’+this.text+’". State is ‘+this.state)}},n”, ” function _(e,r,a){function s(e,r,a){Array.isArray(r)&&(a.unshift(r),r=null);var s=r?{}:e,n=a.reduce((function(e,r){return c(r,e),e}),s);r&&(e[r]=n)}function c(e,r){if(Array.isArray(e)){var a=e.shift();if("PARAMETER"===a&&(a=e.shift()),1===e.length)return Array.isArray(e[0])?(r[a]={},void c(e[0],r[a])):void(r[a]=e[0]);if(e.length)if("TOWGS84"!==a){if("AXIS"===a)return a in r||(r[a]=[]),void r[a].push(e);var n;switch(Array.isArray(a)||(r[a]={}),a){case"UNIT":case"PRIMEM":case"VERT_DATUM":return r[a]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&c(e[2],r[a]));case"SPHEROID":case"ELLIPSOID":return r[a]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&c(e[3],r[a]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return e[0]=["name",e[0]],void s(r,a,e);default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return c(e,r[a]);return s(r,a,e)}}else r[a]=e;else r[a]=!0}else r[e]=!0}Object.defineProperty(a,"__esModule",{value:!0}),a.sExpr=c},n”, ” function _(e,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,n){var r,t;if(e=e||{},!n)return e;for(t in n)void 0!==(r=n[t])&&(e[t]=r);return e}},n”, ” function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const a=t(1),n=a.__importDefault(t(46)),r=a.__importDefault(t(52));var u=[n.default,r.default],f={},i=[];function d(t,e){var o=i.length;return t.names?(i[o]=t,t.names.forEach((function(t){f[t.toLowerCase()]=o})),this):(console.log(e),!0)}function c(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==f[e]&&i[f[e]]?i[f[e]]:void 0}function l(){u.forEach(d)}o.add=d,o.get=c,o.start=l,o.default={start:l,add:d,get:c}},n”, ” function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const h=t(1),a=h.__importDefault(t(47)),e=h.__importDefault(t(48)),r=h.__importDefault(t(50)),n=h.__importDefault(t(51)),l=t(37);function u(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=a.default(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function o(t){var i,s,h=t.x,a=t.y;if(a*l.R2D>90&&a*l.R2D<-90&&h*l.R2D>180&&h*l.R2D<-180)return null;if(Math.abs(Math.abs(a)-l.HALF_PI)<=l.EPSLN)return null;if(this.sphere)i=this.x0+this.a*this.k0*e.default(h-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(l.FORTPI+.5*a));else{var n=Math.sin(a),u=r.default(this.e,a,n);i=this.x0+this.a*this.k0*e.default(h-this.long0),s=this.y0-this.a*this.k0*Math.log(u)}return t.x=i,t.y=s,t}function f(t){var i,s,h=t.x-this.x0,a=t.y-this.y0;if(this.sphere)s=l.HALF_PI-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var r=Math.exp(-a/(this.a*this.k0));if(-9999===(s=n.default(this.e,r)))return null}return i=e.default(this.long0+h/(this.a*this.k0)),t.x=i,t.y=s,t}s.init=u,s.forward=o,s.inverse=f,s.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],s.default={init:u,forward:o,inverse:f,names:s.names}},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)}},n”, ” function _(e,t,u){Object.defineProperty(u,"__esModule",{value:!0});const n=e(1),a=e(37),f=n.__importDefault(e(49));u.default=function(e){return Math.abs(e)<=a.SPI?e:e-f.default(e)*a.TWO_PI}},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e<0?-1:1}},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const a=t(37);n.default=function(t,e,n){var o=t*n,u=.5*t;return o=Math.pow((1-o)/(1+o),u),Math.tan(.5*(a.HALF_PI-e))/o}},n”, ” function _(t,a,e){Object.defineProperty(e,"__esModule",{value:!0});const n=t(37);e.default=function(t,a){for(var e,r,o=.5*t,u=n.HALF_PI-2*Math.atan(a),f=0;f<=15;f++)if(e=t*Math.sin(u),u+=r=n.HALF_PI-2*Math.atan(a*Math.pow((1-e)/(1+e),o))-u,Math.abs(r)<=1e-10)return u;return-9999}},n”, ” function _(e,n,i){function t(){}function r(e){return e}Object.defineProperty(i,"__esModule",{value:!0}),i.init=t,i.forward=r,i.inverse=r,i.names=["longlat","identity"],i.default={init:t,forward:r,inverse:r,names:i.names}},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=e(1),n=e(37),f=a.__importStar(e(54)),u=a.__importDefault(e(40));r.eccentricity=function(e,t,r,a){var f=e*e,u=t*t,i=(f-u)/f,c=0;return a?(f=(e*=1-i*(n.SIXTH+i*(n.RA4+i*n.RA6)))*e,i=0):c=Math.sqrt(i),{es:i,e:c,ep2:(f-u)/u}},r.sphere=function(e,t,r,a,i){if(!e){var c=u.default(f.default,a);c||(c=f.WGS84),e=c.a,t=c.b,r=c.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<n.EPSLN)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}},n”, ” function _(e,a,l){Object.defineProperty(l,"__esModule",{value:!0});var s={};l.default=s,s.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},s.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},s.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},s.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},s.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},s.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},s.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},s.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},s.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},s.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},s.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},s.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},s.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},s.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},s.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},s.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},s.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},s.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},s.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},s.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},s.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},s.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},s.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},s.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},s.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},s.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},s.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},s.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},s.hough={a:6378270,rf:297,ellipseName:"Hough"},s.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},s.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},s.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},s.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},s.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},s.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},s.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},s.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},s.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},s.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},s.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},s.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},l.WGS84=s.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"},s.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},n”, ” function _(e,a,s){Object.defineProperty(s,"__esModule",{value:!0});var t={};s.default=t,t.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},t.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},t.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},t.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},t.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},t.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},t.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},t.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},t.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},t.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},t.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},t.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},t.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},t.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},t.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},t.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},t.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},n”, ” function _(a,m,_){Object.defineProperty(_,"__esModule",{value:!0});const t=a(37);_.default=function(a,m,_,u,d,p){var r={};return r.datum_type=void 0===a||"none"===a?t.PJD_NODATUM:t.PJD_WGS84,m&&(r.datum_params=m.map(parseFloat),0===r.datum_params[0]&&0===r.datum_params[1]&&0===r.datum_params[2]||(r.datum_type=t.PJD_3PARAM),r.datum_params.length>3&&(0===r.datum_params[3]&&0===r.datum_params[4]&&0===r.datum_params[5]&&0===r.datum_params[6]||(r.datum_type=t.PJD_7PARAM,r.datum_params[3]*=t.SEC_TO_RAD,r.datum_params[4]*=t.SEC_TO_RAD,r.datum_params[5]*=t.SEC_TO_RAD,r.datum_params[6]=r.datum_params[6]/1e6+1))),r.a=_,r.b=u,r.es=d,r.ep2=p,r}},n”, ” function _(t,e,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t(1),u=t(37),m=r.__importDefault(t(58)),_=r.__importDefault(t(60)),o=r.__importDefault(t(32)),d=r.__importDefault(t(61)),f=r.__importDefault(t(62));a.default=function t(e,a,r){var n;return Array.isArray(r)&&(r=d.default(r)),f.default(r),e.datum&&a.datum&&function(t,e){return(t.datum.datum_type===u.PJD_3PARAM||t.datum.datum_type===u.PJD_7PARAM)&&"WGS84"!==e.datumCode||(e.datum.datum_type===u.PJD_3PARAM||e.datum.datum_type===u.PJD_7PARAM)&&"WGS84"!==t.datumCode}(e,a)&&(r=t(e,n=new o.default("WGS84"),r),e=n),"enu"!==e.axis&&(r=_.default(e,!1,r)),"longlat"===e.projName?r={x:r.x*u.D2R,y:r.y*u.D2R,z:r.z||0}:(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),r=e.inverse(r)),e.from_greenwich&&(r.x+=e.from_greenwich),r=m.default(e.datum,a.datum,r),a.from_greenwich&&(r={x:r.x-a.from_greenwich,y:r.y,z:r.z||0}),"longlat"===a.projName?r={x:r.x*u.R2D,y:r.y*u.R2D,z:r.z||0}:(r=a.forward(r),a.to_meter&&(r={x:r.x/a.to_meter,y:r.y/a.to_meter,z:r.z||0})),"enu"!==a.axis?_.default(a,!0,r):r}},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const u=e(37),o=e(59);function _(e){return e===u.PJD_3PARAM||e===u.PJD_7PARAM}a.default=function(e,t,a){return o.compareDatums(e,t)||e.datum_type===u.PJD_NODATUM||t.datum_type===u.PJD_NODATUM?a:e.es!==t.es||e.a!==t.a||_(e.datum_type)||_(t.datum_type)?(a=o.geodeticToGeocentric(a,e.es,e.a),_(e.datum_type)&&(a=o.geocentricToWgs84(a,e.datum_type,e.datum_params)),_(t.datum_type)&&(a=o.geocentricFromWgs84(a,t.datum_type,t.datum_params)),o.geocentricToGeodetic(a,t.es,t.a,t.b)):a}},n”, ” function _(a,t,r){Object.defineProperty(r,"__esModule",{value:!0});const e=a(37);r.compareDatums=function(a,t){return a.datum_type===t.datum_type&&(!(a.a!==t.a||Math.abs(a.es-t.es)>5e-11)&&(a.datum_type===e.PJD_3PARAM?a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]:a.datum_type!==e.PJD_7PARAM||a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]&&a.datum_params[3]===t.datum_params[3]&&a.datum_params[4]===t.datum_params[4]&&a.datum_params[5]===t.datum_params[5]&&a.datum_params[6]===t.datum_params[6]))},r.geodeticToGeocentric=function(a,t,r){var m,u,s,_,n=a.x,d=a.y,i=a.z?a.z:0;if(d<-e.HALF_PI&&d>-1.001*e.HALF_PI)d=-e.HALF_PI;else if(d>e.HALF_PI&&d<1.001*e.HALF_PI)d=e.HALF_PI;else{if(d<-e.HALF_PI)return{x:-1/0,y:-1/0,z:a.z};if(d>e.HALF_PI)return{x:1/0,y:1/0,z:a.z}}return n>Math.PI&&(n-=2*Math.PI),u=Math.sin(d),_=Math.cos(d),s=u*u,{x:((m=r/Math.sqrt(1-t*s))+i)*_*Math.cos(n),y:(m+i)*_*Math.sin(n),z:(m*(1-t)+i)*u}},r.geocentricToGeodetic=function(a,t,r,m){var u,s,_,n,d,i,p,P,o,y,M,z,c,A,x,f=a.x,h=a.y,I=a.z?a.z:0;if(u=Math.sqrt(f*f+h*h),s=Math.sqrt(f*f+h*h+I*I),u/r<1e-12){if(A=0,s/r<1e-12)return e.HALF_PI,x=-m,{x:a.x,y:a.y,z:a.z}}else A=Math.atan2(h,f);_=I/s,P=(n=u/s)*(1-t)*(d=1/Math.sqrt(1-t*(2-t)*n*n)),o=_*d,c=0;do{c++,i=t*(p=r/Math.sqrt(1-t*o*o))/(p+(x=u*P+I*o-p*(1-t*o*o))),z=(M=_*(d=1/Math.sqrt(1-i*(2-i)*n*n)))*P-(y=n*(1-i)*d)*o,P=y,o=M}while(z*z>1e-24&&c<30);return{x:A,y:Math.atan(M/Math.abs(y)),z:x}},r.geocentricToWgs84=function(a,t,r){if(t===e.PJD_3PARAM)return{x:a.x+r[0],y:a.y+r[1],z:a.z+r[2]};if(t===e.PJD_7PARAM){var m=r[0],u=r[1],s=r[2],_=r[3],n=r[4],d=r[5],i=r[6];return{x:i*(a.x-d*a.y+n*a.z)+m,y:i*(d*a.x+a.y-_*a.z)+u,z:i*(-n*a.x+_*a.y+a.z)+s}}},r.geocentricFromWgs84=function(a,t,r){if(t===e.PJD_3PARAM)return{x:a.x-r[0],y:a.y-r[1],z:a.z-r[2]};if(t===e.PJD_7PARAM){var m=r[0],u=r[1],s=r[2],_=r[3],n=r[4],d=r[5],i=r[6],p=(a.x-m)/i,P=(a.y-u)/i,o=(a.z-s)/i;return{x:p+d*P-n*o,y:-d*p+P+_*o,z:n*p-_*P+o}}}},n”, ” function _(e,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,a,r){var c,s,u,i=r.x,n=r.y,t=r.z||0,d={};for(u=0;u<3;u++)if(!a||2!==u||void 0!==r.z)switch(0===u?(c=i,s="x"):1===u?(c=n,s="y"):(c=t,s="z"),e.axis[u]){case"e":d[s]=c;break;case"w":d[s]=-c;break;case"n":d[s]=c;break;case"s":d[s]=-c;break;case"u":void 0!==r[s]&&(d.z=c);break;case"d":void 0!==r[s]&&(d.z=-c);break;default:return null}return d}},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var n={x:e[0],y:e[1]};return e.length>2&&(n.z=e[2]),e.length>3&&(n.m=e[3]),n}},n”, ” function _(e,i,n){function t(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){t(e.x),t(e.y)}},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),n=e(64),s=r.__importStar(e(68)),_=r.__importStar(e(19)),l=e(69);class o extends n.DOMView{initialize(){super.initialize(),this.visuals=new s.Visuals(this.model),this._has_finished=!0}get plot_view(){return this.parent}get plot_model(){return this.parent.model}request_render(){this.plot_view.request_render()}map_to_screen(e,t){return this.plot_view.map_to_screen(e,t,this.model.x_range_name,this.model.y_range_name)}get needs_clip(){return!1}notify_finished(){this.plot_view.notify_finished()}get has_webgl(){return!1}}i.RendererView=o,o.__name__="RendererView";class d extends l.Model{constructor(e){super(e)}static init_Renderer(){this.define({level:[_.RenderLevel],visible:[_.Boolean,!0]})}}i.Renderer=d,d.__name__="Renderer",d.init_Renderer()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(65),n=i.__importStar(e(66)),_=e(67);class a extends r.View{initialize(){super.initialize(),this._has_finished=!1,this.el=this._createElement()}remove(){n.removeElement(this.el),super.remove()}css_classes(){return[]}cursor(e,t){return null}render(){}renderTo(e){e.appendChild(this.el),this.render()}has_finished(){return this._has_finished}get _root_element(){return n.parent(this.el,`.${_.bk_root}`)||document.body}get is_idle(){return this.has_finished()}_createElement(){return n.createElement(this.tagName,{class:this.css_classes()})}}s.DOMView=a,a.__name__="DOMView",a.prototype.tagName="div"},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(14),n=t(8),o=t(26);class s{constructor(t){if(this.removed=new r.Signal0(this,"removed"),this._ready=Promise.resolve(void 0),null==t.model)throw new Error("model of a view wasn’t configured");this.model=t.model,this._parent=t.parent,this.id=t.id||o.uniqueId()}get ready(){return this._ready}connect(t,e){return t.connect((t,i)=>{const r=Promise.resolve(e.call(this,t,i));this._ready=this._ready.then(()=>r)},this)}disconnect(t,e){return t.disconnect(e,this)}initialize(){}async lazy_initialize(){}remove(){this._parent=void 0,this.disconnect_signals(),this.removed.emit()}toString(){return`${this.model.type}View(${this.id})`}serializable_state(){return{type:this.model.type}}get parent(){if(void 0!==this._parent)return this._parent;throw new Error("parent of a view wasn’t configured")}get is_root(){return null===this.parent}get root(){return this.is_root?this:this.parent.root}assert_root(){if(!this.is_root)throw new Error(${this.toString()} is not a root layout)}connect_signals(){}disconnect_signals(){r.Signal.disconnectReceiver(this)}on_change(t,e){for(const i of n.isArray(t)?t:[t])this.connect(i.change,e)}}i.View=s,s.__name__="View"},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(8),s=t=>(e={},…n)=>{const s=document.createElement(t);s.classList.add("bk");for(const t in e){let n=e[t];if(null!=n&&(!i.isBoolean(n)||n))if("class"===t&&(i.isString(n)&&(n=n.split(/\s+/)),i.isArray(n)))for(const t of n)null!=t&&s.classList.add(t);else if("style"===t&&i.isPlainObject(n))for(const t in n)s.style[t]=n[t];else if("data"===t&&i.isPlainObject(n))for(const t in n)s.dataset[t]=n[t];else s.setAttribute(t,n)}function o(t){if(t instanceof HTMLElement)s.appendChild(t);else if(i.isString(t))s.appendChild(document.createTextNode(t));else if(null!=t&&!1!==t)throw new Error(expected an HTMLElement, string, false or null, got ${JSON.stringify(t)})}for(const t of n)if(i.isArray(t))for(const e of t)o(e);else o(t);return s};function o(t){const e=t.parentNode;null!=e&&e.removeChild(t)}function l(t,…e){const n=t.firstChild;for(const i of e)t.insertBefore(i,n)}function r(t,e){const n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector).call(t,e)}function c(t){return parseFloat(t)||0}function a(t){const e=getComputedStyle(t);return{border:{top:c(e.borderTopWidth),bottom:c(e.borderBottomWidth),left:c(e.borderLeftWidth),right:c(e.borderRightWidth)},margin:{top:c(e.marginTop),bottom:c(e.marginBottom),left:c(e.marginLeft),right:c(e.marginRight)},padding:{top:c(e.paddingTop),bottom:c(e.paddingBottom),left:c(e.paddingLeft),right:c(e.paddingRight)}}}function h(t){const e=t.getBoundingClientRect();return{width:Math.ceil(e.width),height:Math.ceil(e.height)}}n.createElement=function(t,e,…n){return s(t)(e,…n)},n.div=s("div"),n.span=s("span"),n.canvas=s("canvas"),n.link=s("link"),n.style=s("style"),n.a=s("a"),n.p=s("p"),n.i=s("i"),n.pre=s("pre"),n.button=s("button"),n.label=s("label"),n.input=s("input"),n.select=s("select"),n.option=s("option"),n.optgroup=s("optgroup"),n.textarea=s("textarea"),n.nbsp=function(){return document.createTextNode(" ")},n.append=function(t,…e){for(const n of e)t.appendChild(n)},n.remove=o,n.removeElement=o,n.replaceWith=function(t,e){const n=t.parentNode;null!=n&&n.replaceChild(e,t)},n.prepend=l,n.empty=function(t){let e;for(;e=t.firstChild;)t.removeChild(e)},n.display=function(t){t.style.display=""},n.undisplay=function(t){t.style.display="none"},n.show=function(t){t.style.visibility=""},n.hide=function(t){t.style.visibility="hidden"},n.offset=function(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset-document.documentElement.clientTop,left:e.left+window.pageXOffset-document.documentElement.clientLeft}},n.matches=r,n.parent=function(t,e){let n=t;for(;n=n.parentElement;)if(r(n,e))return n;return null},n.extents=a,n.size=h,n.scroll_size=function(t){return{width:Math.ceil(t.scrollWidth),height:Math.ceil(t.scrollHeight)}},n.outer_size=function(t){const{margin:{left:e,right:n,top:i,bottom:s}}=a(t),{width:o,height:l}=h(t);return{width:Math.ceil(o+e+n),height:Math.ceil(l+i+s)}},n.content_size=function(t){const{left:e,top:n}=t.getBoundingClientRect(),{padding:i}=a(t);let s=0,o=0;for(const l of t.children){const t=l.getBoundingClientRect();s=Math.max(s,Math.ceil(t.left-e-i.left+t.width)),o=Math.max(o,Math.ceil(t.top-n-i.top+t.height))}return{width:s,height:o}},n.position=function(t,e,n){const{style:i}=t;if(i.left=`${e.x}px`,i.top=`${e.y}px`,i.width=`${e.width}px`,i.height=`${e.height}px`,null==n)i.margin="";else{const{top:t,right:e,bottom:s,left:o}=n;i.margin=`${t}px ${e}px ${s}px ${o}px`}},n.children=function(t){return Array.from(t.children)};class d{constructor(t){this.el=t,this.classList=t.classList}get values(){const t=[];for(let e=0;e<this.classList.length;e++){const n=this.classList.item(e);null!=n&&t.push(n)}return t}has(t){return this.classList.contains(t)}add(…t){for(const e of t)this.classList.add(e);return this}remove(…t){for(const e of t)this.classList.remove(e);return this}clear(){for(const t of this.values)"bk"!=t&&this.classList.remove(t);return this}toggle(t,e){return(null!=e?e:!this.has(t))?this.add(t):this.remove(t),this}}var p;function u(t,e,n){const{width:i,height:s,position:o,display:l}=t.style;t.style.position="absolute",t.style.display="",t.style.width=null!=e.width&&e.width!=1/0?`${e.width}px`:"auto",t.style.height=null!=e.height&&e.height!=1/0?`${e.height}px`:"auto";try{return n()}finally{t.style.position=o,t.style.display=l,t.style.width=i,t.style.height=s}}n.ClassList=d,d.__name__="ClassList",n.classes=function(t){return new d(t)},(p=n.Keys||(n.Keys={}))[p.Backspace=8]="Backspace",p[p.Tab=9]="Tab",p[p.Enter=13]="Enter",p[p.Esc=27]="Esc",p[p.PageUp=33]="PageUp",p[p.PageDown=34]="PageDown",p[p.Left=37]="Left",p[p.Up=38]="Up",p[p.Right=39]="Right",p[p.Down=40]="Down",p[p.Delete=46]="Delete",n.undisplayed=function(t,e){const{display:n}=t.style;t.style.display="none";try{return e()}finally{t.style.display=n}},n.unsized=function(t,e){return u(t,{},e)},n.sized=u;class f{constructor(){this.style=n.style({type:"text/css"}),l(document.head,this.style)}append(t){this.style.appendChild(document.createTextNode(t))}}n.StyleSheet=f,f.__name__="StyleSheet",n.styles=new f},n”, ” function _(n,o,e){Object.defineProperty(e,"__esModule",{value:!0}),n(1).__importStar(n(66)).styles.append(".bk-root {\n position: relative;\n width: auto;\n height: auto;\n z-index: 0;\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n}\n.bk-root .bk,\n.bk-root .bk:before,\n.bk-root .bk:after {\n box-sizing: inherit;\n margin: 0;\n border: 0;\n padding: 0;\n background-image: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.42857143;\n}\n.bk-root pre.bk {\n font-family: Courier, monospace;\n}\n"),e.bk_root="bk-root"},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1).__importStar(e(18)),l=e(21);function c(e,t,a){e.moveTo(0,a+.5),e.lineTo(t,a+.5),e.stroke()}function i(e,t,a){e.moveTo(a+.5,0),e.lineTo(a+.5,t),e.stroke()}function h(e,t){e.moveTo(0,t),e.lineTo(t,0),e.stroke(),e.moveTo(0,0),e.lineTo(t,t),e.stroke()}function o(e,t,a,s){const l=a,o=l/2,n=o/2,r=function(e){const t=document.createElement("canvas");return t.width=e,t.height=e,t}(a),_=r.getContext("2d");switch(_.strokeStyle=t,_.lineCap="square",_.fillStyle=t,_.lineWidth=s,e){case" ":case"blank":break;case".":case"dot":_.arc(o,o,o/2,0,2*Math.PI,!0),_.fill();break;case"o":case"ring":_.arc(o,o,o/2,0,2*Math.PI,!0),_.stroke();break;case"-":case"horizontal_line":c(_,l,o);break;case"|\":case\"vertical_line\":i(_,l,o);break;case\"+\":case\"cross\":c(_,l,o),i(_,l,o);break;case'\"':case\"horizontal_dash\":c(_,o,o);break;case\":\":case\"vertical_dash\":i(_,o,o);break;case\"@\":case\"spiral\":const e=l/30;_.moveTo(o,o);for(let t=0;t<360;t++){const a=.1*t,s=o+e*a*Math.cos(a),l=o+e*a*Math.sin(a);_.lineTo(s,l)}_.stroke();break;case\"/\":case\"right_diagonal_line\":_.moveTo(.5-n,l),_.lineTo(n+.5,0),_.stroke(),_.moveTo(n+.5,l),_.lineTo(3*n+.5,0),_.stroke(),_.moveTo(3*n+.5,l),_.lineTo(5*n+.5,0),_.stroke(),_.stroke();break;case\"\\\\\":case\"left_diagonal_line\":_.moveTo(n+.5,l),_.lineTo(.5-n,0),_.stroke(),_.moveTo(3*n+.5,l),_.lineTo(n+.5,0),_.stroke(),_.moveTo(5*n+.5,l),_.lineTo(3*n+.5,0),_.stroke(),_.stroke();break;case\"x\":case\"diagonal_cross\":h(_,l);break;case\",\":case\"right_diagonal_dash\":_.moveTo(n+.5,3*n+.5),_.lineTo(3*n+.5,n+.5),_.stroke();break;case\"`\":case\"left_diagonal_dash\":_.moveTo(n+.5,n+.5),_.lineTo(3*n+.5,3*n+.5),_.stroke();break;case\"v\":case\"horizontal_wave\":_.moveTo(0,n),_.lineTo(o,3*n),_.lineTo(l,n),_.stroke();break;case\">\":case\"vertical_wave\":_.moveTo(n,0),_.lineTo(3*n,o),_.lineTo(n,l),_.stroke();break;case\"*\":case\"criss_cross\":h(_,l),c(_,l,o),i(_,l,o)}return r}class n{constructor(e,t=\"\"){this.obj=e,this.prefix=t,this.cache={};for(const a of this.attrs)this[a]=e.properties[t+a]}warm_cache(e){for(const t of this.attrs){const a=this.obj.properties[this.prefix+t];if(void 0!==a.spec.value)this.cache[t]=a.spec.value;else{if(null==e)throw new Error(\"source is required with a vectorized visual property\");this.cache[t+\"_array\"]=a.array(e)}}}cache_select(e,t){const a=this.obj.properties[this.prefix+e];let s;return void 0!==a.spec.value?this.cache[e]=s=a.spec.value:this.cache[e]=s=this.cache[e+\"_array\"][t],s}set_vectorize(e,t){null!=this.all_indices?this._set_vectorize(e,this.all_indices[t]):this._set_vectorize(e,t)}}a.ContextProperties=n,n.__name__=\"ContextProperties\";class r extends n{set_value(e){e.strokeStyle=this.line_color.value(),e.globalAlpha=this.line_alpha.value(),e.lineWidth=this.line_width.value(),e.lineJoin=this.line_join.value(),e.lineCap=this.line_cap.value(),e.setLineDash(this.line_dash.value()),e.setLineDashOffset(this.line_dash_offset.value())}get doit(){return!(null===this.line_color.spec.value||0==this.line_alpha.spec.value||0==this.line_width.spec.value)}_set_vectorize(e,t){this.cache_select(\"line_color\",t),e.strokeStyle!==this.cache.line_color&&(e.strokeStyle=this.cache.line_color),this.cache_select(\"line_alpha\",t),e.globalAlpha!==this.cache.line_alpha&&(e.globalAlpha=this.cache.line_alpha),this.cache_select(\"line_width\",t),e.lineWidth!==this.cache.line_width&&(e.lineWidth=this.cache.line_width),this.cache_select(\"line_join\",t),e.lineJoin!==this.cache.line_join&&(e.lineJoin=this.cache.line_join),this.cache_select(\"line_cap\",t),e.lineCap!==this.cache.line_cap&&(e.lineCap=this.cache.line_cap),this.cache_select(\"line_dash\",t),e.getLineDash()!==this.cache.line_dash&&e.setLineDash(this.cache.line_dash),this.cache_select(\"line_dash_offset\",t),e.getLineDashOffset()!==this.cache.line_dash_offset&&e.setLineDashOffset(this.cache.line_dash_offset)}color_value(){const[e,t,a,s]=l.color2rgba(this.line_color.value(),this.line_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Line=r,r.__name__=\"Line\",r.prototype.attrs=Object.keys(s.line());class _ extends n{set_value(e){e.fillStyle=this.fill_color.value(),e.globalAlpha=this.fill_alpha.value()}get doit(){return!(null===this.fill_color.spec.value||0==this.fill_alpha.spec.value)}_set_vectorize(e,t){this.cache_select(\"fill_color\",t),e.fillStyle!==this.cache.fill_color&&(e.fillStyle=this.cache.fill_color),this.cache_select(\"fill_alpha\",t),e.globalAlpha!==this.cache.fill_alpha&&(e.globalAlpha=this.cache.fill_alpha)}color_value(){const[e,t,a,s]=l.color2rgba(this.fill_color.value(),this.fill_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Fill=_,_.__name__=\"Fill\",_.prototype.attrs=Object.keys(s.fill());class p extends n{cache_select(e,t){let a;if(\"pattern\"==e){this.cache_select(\"hatch_color\",t),this.cache_select(\"hatch_scale\",t),this.cache_select(\"hatch_pattern\",t),this.cache_select(\"hatch_weight\",t);const{hatch_color:e,hatch_scale:a,hatch_pattern:s,hatch_weight:l,hatch_extra:c}=this.cache;if(null!=c&&c.hasOwnProperty(s)){const t=c[s];this.cache.pattern=t.get_pattern(e,a,l)}else this.cache.pattern=t=>{const c=o(s,e,a,l);return t.createPattern(c,\"repeat\")}}else a=super.cache_select(e,t);return a}_try_defer(e){const{hatch_pattern:t,hatch_extra:a}=this.cache;if(null!=a&&a.hasOwnProperty(t)){a[t].onload(e)}}get doit(){return!(null===this.hatch_color.spec.value||0==this.hatch_alpha.spec.value||" "==this.hatch_pattern.spec.value||"blank"==this.hatch_pattern.spec.value||null===this.hatch_pattern.spec.value)}doit2(e,t,a,s){if(!this.doit)return;this.cache_select("pattern",t),null==this.cache.pattern(e)?this._try_defer(s):(this.set_vectorize(e,t),a())}_set_vectorize(e,t){this.cache_select("pattern",t),e.fillStyle=this.cache.pattern(e),this.cache_select("hatch_alpha",t),e.globalAlpha!==this.cache.hatch_alpha&&(e.globalAlpha=this.cache.hatch_alpha)}color_value(){const[e,t,a,s]=l.color2rgba(this.hatch_color.value(),this.hatch_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Hatch=p,p.__name__="Hatch",p.prototype.attrs=Object.keys(s.hatch());class u extends n{cache_select(e,t){let a;if("font"==e){super.cache_select("text_font_style",t),super.cache_select("text_font_size",t),super.cache_select("text_font",t);const{text_font_style:e,text_font_size:s,text_font:l}=this.cache;this.cache.font=a=`${e} ${s} ${l}`}else a=super.cache_select(e,t);return a}font_value(){const e=this.text_font.value(),t=this.text_font_size.value();return this.text_font_style.value()+" "+t+" "+e}color_value(){const[e,t,a,s]=l.color2rgba(this.text_color.value(),this.text_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}set_value(e){e.font=this.font_value(),e.fillStyle=this.text_color.value(),e.globalAlpha=this.text_alpha.value(),e.textAlign=this.text_align.value(),e.textBaseline=this.text_baseline.value()}get doit(){return!(null===this.text_color.spec.value||0==this.text_alpha.spec.value)}_set_vectorize(e,t){this.cache_select("font",t),e.font!==this.cache.font&&(e.font=this.cache.font),this.cache_select("text_color",t),e.fillStyle!==this.cache.text_color&&(e.fillStyle=this.cache.text_color),this.cache_select("text_alpha",t),e.globalAlpha!==this.cache.text_alpha&&(e.globalAlpha=this.cache.text_alpha),this.cache_select("text_align",t),e.textAlign!==this.cache.text_align&&(e.textAlign=this.cache.text_align),this.cache_select("text_baseline",t),e.textBaseline!==this.cache.text_baseline&&(e.textBaseline=this.cache.text_baseline)}}a.Text=u,u.__name__="Text",u.prototype.attrs=Object.keys(s.text());class f{constructor(e){for(const t of e.mixins){const[a,s=""]=t.split(":");let l;switch(a){case"line":l=r;break;case"fill":l=_;break;case"hatch":l=p;break;case"text":l=u;break;default:throw new Error(unknown visual: ${a})}this[s+a]=new l(e,s)}}warm_cache(e){for(const t in this)if(this.hasOwnProperty(t)){const a=this[t];a instanceof n&&a.warm_cache(e)}}set_all_indices(e){for(const t in this)if(this.hasOwnProperty(t)){const a=this[t];a instanceof n&&(a.all_indices=e)}}}a.Visuals=f,f.__name__="Visuals"},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),c=e(13),r=n.__importStar(e(19)),a=e(8),i=e(24),o=e(70);class _ extends c.HasProps{constructor(e){super(e)}static init_Model(){this.define({tags:[r.Array,[]],name:[r.String],js_property_callbacks:[r.Any,{}],js_event_callbacks:[r.Any,{}],subscribed_events:[r.Array,[]]})}connect_signals(){super.connect_signals(),this._update_property_callbacks(),this.connect(this.properties.js_property_callbacks.change,()=>this._update_property_callbacks()),this.connect(this.properties.js_event_callbacks.change,()=>this._update_event_callbacks()),this.connect(this.properties.subscribed_events.change,()=>this._update_event_callbacks())}_process_event(e){for(const t of this.js_event_callbacks[e.event_name]||[])t.execute(e);null!=this.document&&this.subscribed_events.some(t=>t==e.event_name)&&this.document.event_manager.send_event(e)}trigger_event(e){null!=this.document&&(e.origin=this,this.document.event_manager.trigger(e))}_update_event_callbacks(){null!=this.document?this.document.event_manager.subscribed_models.add(this.id):o.logger.warn("WARNING: Document not defined for updating event callbacks")}_update_property_callbacks(){const e=e=>{const[t,s=null]=e.split(":");return null!=s?this.properties[s][t]:this[t]};for(const t in this._js_callbacks){const s=this._js_callbacks[t],n=e(t);for(const e of s)this.disconnect(n,e)}this._js_callbacks={};for(const t in this.js_property_callbacks){const s=this.js_property_callbacks[t].map(e=>()=>e.execute(this));this._js_callbacks[t]=s;const n=e(t);for(const e of s)this.connect(n,e)}}_doc_attached(){i.isEmpty(this.js_event_callbacks)&&i.isEmpty(this.subscribed_events)||this._update_event_callbacks()}select(e){if(a.isString(e))return this.references().filter(t=>t instanceof _&&t.name===e);if(e.prototype instanceof c.HasProps)return this.references().filter(t=>t instanceof e);throw new Error("invalid selector")}select_one(e){const t=this.select(e);switch(t.length){case 0:return null;case 1:return t[0];default:throw new Error("found more than one object matching given selector")}}}s.Model=_,_.__name__="Model",_.init_Model()},n”, ” function _(e,l,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(8),t={};class s{constructor(e,l){this.name=e,this.level=l}}o.LogLevel=s,s.__name__="LogLevel";class g{constructor(e,l=g.INFO){this._name=e,this.set_level(l)}static get levels(){return Object.keys(g.log_levels)}static get(e,l=g.INFO){if(e.length>0){let o=t[e];return null==o&&(t[e]=o=new g(e,l)),o}throw new TypeError("Logger.get() expects a non-empty string name and an optional log-level")}get level(){return this.get_level()}get_level(){return this._log_level}set_level(e){if(e instanceof s)this._log_level=e;else{if(!n.isString(e)||null==g.log_levels[e])throw new Error("Logger.set_level() expects a log-level object or a string name of a log-level");this._log_level=g.log_levels[e]}const l=`[${this._name}]`;for(const e in g.log_levels){g.log_levels[e].level<this._log_level.level||this._log_level.level===g.OFF.level?this[e]=function(){}:this[e]=r(e,l)}}trace(…e){}debug(…e){}info(…e){}warn(…e){}error(…e){}}function r(e,l){return null!=console[e]?console[e].bind(console,l):null!=console.log?console.log.bind(console,l):function(){}}function i(e){const l=o.logger.level;return n.isString(e)&&null==g.log_levels[e]?(console.log([bokeh] unrecognized logging level ‘${e}’ passed to Bokeh.set_log_level(), ignoring),console.log([bokeh] valid log levels are: ${g.levels.join(", ")})):(console.log([bokeh] setting log level to: ‘${n.isString(e)?e:e.level}’),o.logger.set_level(e)),l}o.Logger=g,g.__name__="Logger",g.TRACE=new s("trace",0),g.DEBUG=new s("debug",1),g.INFO=new s("info",2),g.WARN=new s("warn",6),g.ERROR=new s("error",7),g.FATAL=new s("fatal",8),g.OFF=new s("off",9),g.log_levels={trace:g.TRACE,debug:g.DEBUG,info:g.INFO,warn:g.WARN,error:g.ERROR,fatal:g.FATAL,off:g.OFF},o.logger=g.get("bokeh"),o.set_log_level=i,o.with_log_level=function(e,l){const o=i(e);try{l()}finally{i(o)}}},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),a=t(29),n=t(72),r=t(73),o=i.__importStar(t(19)),_=t(10);class l extends a.AnnotationView{initialize(){super.initialize(),null==this.model.source&&(this.model.source=new r.ColumnDataSource),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.set_data(this.model.source)),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source))}set_data(t){super.set_data(t),this.visuals.warm_cache(t),this.plot_view.request_render()}_map_data(){const{frame:t}=this.plot_view;let e,s,i,a;return"data"==this.model.start_units?(e=t.xscales[this.model.x_range_name].v_compute(this._x_start),s=t.yscales[this.model.y_range_name].v_compute(this._y_start)):(e=t.xview.v_compute(this._x_start),s=t.yview.v_compute(this._y_start)),"data"==this.model.end_units?(i=t.xscales[this.model.x_range_name].v_compute(this._x_end),a=t.yscales[this.model.y_range_name].v_compute(this._y_end)):(i=t.xview.v_compute(this._x_end),a=t.yview.v_compute(this._y_end)),[[e,s],[i,a]]}render(){if(!this.model.visible)return;const{ctx:t}=this.plot_view.canvas_view;t.save();const[e,s]=this._map_data();null!=this.model.end&&this._arrow_head(t,"render",this.model.end,e,s),null!=this.model.start&&this._arrow_head(t,"render",this.model.start,s,e),t.beginPath();const{x:i,y:a,width:n,height:r}=this.plot_view.frame.bbox;t.rect(i,a,n,r),null!=this.model.end&&this._arrow_head(t,"clip",this.model.end,e,s),null!=this.model.start&&this._arrow_head(t,"clip",this.model.start,s,e),t.closePath(),t.clip(),this._arrow_body(t,e,s),t.restore()}_arrow_head(t,e,s,i,a){for(let n=0,r=this._x_start.length;n<r;n++){const r=Math.PI/2+_.atan2([i[0][n],i[1][n]],[a[0][n],a[1][n]]);t.save(),t.translate(a[0][n],a[1][n]),t.rotate(r),"render"==e?s.render(t,n):"clip"==e&&s.clip(t,n),t.restore()}}_arrow_body(t,e,s){if(this.visuals.line.doit)for(let i=0,a=this._x_start.length;i<a;i++)this.visuals.line.set_vectorize(t,i),t.beginPath(),t.moveTo(e[0][i],e[1][i]),t.lineTo(s[0][i],s[1][i]),t.stroke()}}s.ArrowView=l,l.__name__="ArrowView";class h extends a.Annotation{constructor(t){super(t)}static init_Arrow(){this.prototype.default_view=l,this.mixins(["line"]),this.define({x_start:[o.NumberSpec],y_start:[o.NumberSpec],start_units:[o.SpatialUnits,"data"],start:[o.Instance,null],x_end:[o.NumberSpec],y_end:[o.NumberSpec],end_units:[o.SpatialUnits,"data"],end:[o.Instance,()=>new n.OpenHead({})],source:[o.Instance],x_range_name:[o.String,"default"],y_range_name:[o.String,"default"]})}}s.Arrow=h,h.__name__="Arrow",h.init_Arrow()},n”, ” function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),l=i(29),n=i(68),o=t.__importStar(i(19));class h extends l.Annotation{constructor(i){super(i)}static init_ArrowHead(){this.define({size:[o.Number,25]})}initialize(){super.initialize(),this.visuals=new n.Visuals(this)}}s.ArrowHead=h,h.__name__="ArrowHead",h.init_ArrowHead();class a extends h{constructor(i){super(i)}static init_OpenHead(){this.mixins(["line"])}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(0,0),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.stroke())}}s.OpenHead=a,a.__name__="OpenHead",a.init_OpenHead();class r extends h{constructor(i){super(i)}static init_NormalHead(){this.mixins(["line","fill"]),this.override({fill_color:"black"})}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(i,e),this._normal(i,e),i.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),this._normal(i,e),i.stroke())}_normal(i,e){i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.closePath()}}s.NormalHead=r,r.__name__="NormalHead",r.init_NormalHead();class z extends h{constructor(i){super(i)}static init_VeeHead(){this.mixins(["line","fill"]),this.override({fill_color:"black"})}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(0,.5*this.size),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(i,e),this._vee(i,e),i.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),this._vee(i,e),i.stroke())}_vee(i,e){i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.lineTo(0,.5*this.size),i.closePath()}}s.VeeHead=z,z.__name__="VeeHead",z.init_VeeHead();class _ extends h{constructor(i){super(i)}static init_TeeHead(){this.mixins(["line"])}render(i,e){this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),i.beginPath(),i.moveTo(.5*this.size,0),i.lineTo(-.5*this.size,0),i.stroke())}clip(i,e){}}s.TeeHead=_,_.__name__="TeeHead",_.init_TeeHead()},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const s=t(1),a=t(74),o=t(13),i=s.__importStar(t(19)),r=t(15),l=t(100),u=t(8),c=s.__importStar(t(102)),_=t(24),h=t(103);function d(t,e,n){if(u.isArray(t)){const s=t.concat(e);return null!=n&&s.length>n?s.slice(-n):s}if(u.isTypedArray(t)){const s=t.length+e.length;if(null!=n&&s>n){const a=s-n,o=t.length;let i;t.length<n?(i=new t.constructor(n),i.set(t,0)):i=t;for(let t=a,e=o;t<e;t++)i[t-a]=i[t];for(let t=0,n=e.length;t<n;t++)i[t+(o-a)]=e[t];return i}{const n=new t.constructor(e);return c.concat(t,n)}}throw new Error("unsupported array types")}function m(t,e){let n,s,a;return u.isNumber(t)?(n=t,a=t+1,s=1):(n=null!=t.start?t.start:0,a=null!=t.stop?t.stop:e,s=null!=t.step?t.step:1),[n,a,s]}function f(t,e,n){const s=new r.Set;let a=!1;for(const[o,i]of e){let e,r,l,c;if(u.isArray(o)){const[a]=o;s.add(a),r=n[a],e=t[a],c=i,2===o.length?(r=[1,r[0]],l=[o[0],0,o[1]]):l=o}else u.isNumber(o)?(c=[i],s.add(o)):(c=i,a=!0),l=[0,0,o],r=[1,t.length],e=t;let _=0;const[h,d,f]=m(l[1],r[0]),[p,g,y]=m(l[2],r[1]);for(let t=h;t<d;t+=f)for(let n=p;n<g;n+=y)a&&s.add(n),e[t*r[1]+n]=c[_],_++}return s}n.stream_to_column=d,n.slice=m,n.patch_to_column=f;class p extends a.ColumnarDataSource{constructor(t){super(t)}static init_ColumnDataSource(){this.define({data:[i.Any,{}]})}initialize(){super.initialize(),[this.data,this._shapes]=l.decode_column_data(this.data)}attributes_as_json(t=!0,e=p._value_to_json){const n={},s=this.serializable_attributes();for(const e of _.keys(s)){let a=s[e];"data"===e&&(a=l.encode_column_data(a,this._shapes)),(t||e in this._set_after_defaults)&&(n[e]=a)}return e("attributes",n,this)}static _value_to_json(t,e,n){return u.isPlainObject(e)&&"data"===t?l.encode_column_data(e,n._shapes):o.HasProps._value_to_json(t,e,n)}stream(t,e,n){const{data:s}=this;for(const n in t)s[n]=d(s[n],t[n],e);if(this.setv({data:s},{silent:!0}),this.streaming.emit(),null!=this.document){const s=new h.ColumnsStreamedEvent(this.document,this.ref(),t,e);this.document._notify_change(this,"data",null,null,{setter_id:n,hint:s})}}patch(t,e){const{data:n}=this;let s=new r.Set;for(const e in t){const a=t[e];s=s.union(f(n[e],a,this._shapes[e]))}if(this.setv({data:n},{silent:!0}),this.patching.emit(s.values),null!=this.document){const n=new h.ColumnsPatchedEvent(this.document,this.ref(),t);this.document._notify_change(this,"data",null,null,{setter_id:e,hint:n})}}}n.ColumnDataSource=p,p.__name__="ColumnDataSource",p.init_ColumnDataSource()},n”, ” function _(t,n,e){Object.defineProperty(e,"__esModule",{value:!0});const a=t(1),s=t(75),i=t(14),r=t(70),c=t(77),l=a.__importStar(t(19)),o=t(8),u=t(9),h=t(24),g=t(76),_=t(99);class d extends s.DataSource{constructor(t){super(t)}get_array(t){let n=this.data[t];return null==n?this.data[t]=n=[]:o.isArray(n)||(this.data[t]=n=Array.from(n)),n}static init_ColumnarDataSource(){this.define({selection_policy:[l.Instance,()=>new _.UnionRenderers]}),this.internal({selection_manager:[l.Instance,t=>new c.SelectionManager({source:t})],inspected:[l.Instance,()=>new g.Selection],_shapes:[l.Any,{}]})}initialize(){super.initialize(),this._select=new i.Signal0(this,"select"),this.inspect=new i.Signal(this,"inspect"),this.streaming=new i.Signal0(this,"streaming"),this.patching=new i.Signal(this,"patching")}get_column(t){const n=this.data[t];return null!=n?n:null}columns(){return h.keys(this.data)}get_length(t=!0){const n=u.uniq(h.values(this.data).map(t=>t.length));switch(n.length){case 0:return null;case 1:return n[0];default:{const e="data source has columns of inconsistent lengths";if(t)return r.logger.warn(e),n.sort()[0];throw new Error(e)}}}get_indices(){const t=this.get_length();return u.range(0,null!=t?t:1)}clear(){const t={};for(const n of this.columns())t[n]=new this.data[n].constructor(0);this.data=t}}e.ColumnarDataSource=d,d.__name__="ColumnarDataSource",d.init_ColumnarDataSource()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const c=e(1),n=e(69),o=e(76),i=c.__importStar(e(19));class r extends n.Model{constructor(e){super(e)}static init_DataSource(){this.define({selected:[i.Instance,()=>new o.Selection]})}}a.DataSource=r,r.__name__="DataSource",r.init_DataSource()},n”, ” function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),n=i(69),l=t.__importStar(i(19)),_=i(9),h=i(24);class c extends n.Model{constructor(i){super(i)}static init_Selection(){this.define({indices:[l.Array,[]],line_indices:[l.Array,[]],multiline_indices:[l.Any,{}]}),this.internal({final:[l.Boolean],selected_glyphs:[l.Array,[]],get_view:[l.Any],image_indices:[l.Array,[]]})}initialize(){super.initialize(),this.get_view=()=>null}get selected_glyph(){return this.selected_glyphs.length>0?this.selected_glyphs[0]:null}add_to_selected_glyphs(i){this.selected_glyphs.push(i)}update(i,e,s){this.final=e,s?this.update_through_union(i):(this.indices=i.indices,this.line_indices=i.line_indices,this.selected_glyphs=i.selected_glyphs,this.get_view=i.get_view,this.multiline_indices=i.multiline_indices,this.image_indices=i.image_indices)}clear(){this.final=!0,this.indices=[],this.line_indices=[],this.multiline_indices={},this.get_view=()=>null,this.selected_glyphs=[]}is_empty(){return 0==this.indices.length&&0==this.line_indices.length&&0==this.image_indices.length}update_through_union(i){this.indices=_.union(i.indices,this.indices),this.selected_glyphs=_.union(i.selected_glyphs,this.selected_glyphs),this.line_indices=_.union(i.line_indices,this.line_indices),this.get_view()||(this.get_view=i.get_view),this.multiline_indices=h.merge(i.multiline_indices,this.multiline_indices)}update_through_intersection(i){this.indices=_.intersection(i.indices,this.indices),this.selected_glyphs=_.union(i.selected_glyphs,this.selected_glyphs),this.line_indices=_.union(i.line_indices,this.line_indices),this.get_view()||(this.get_view=i.get_view),this.multiline_indices=h.merge(i.multiline_indices,this.multiline_indices)}}s.Selection=c,c.__name__="Selection",c.init_Selection()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(13),o=e(76),c=e(78),r=e(97),l=s.__importStar(e(19));class _ extends n.HasProps{constructor(e){super(e),this.inspectors={}}static init_SelectionManager(){this.internal({source:[l.Any]})}select(e,t,i,s=!1){const n=[],o=[];for(const t of e)t instanceof c.GlyphRendererView?n.push(t):t instanceof r.GraphRendererView&&o.push(t);let l=!1;for(const e of o){const n=e.model.selection_policy.hit_test(t,e);l=l||e.model.selection_policy.do_selection(n,e.model,i,s)}if(n.length>0){const e=this.source.selection_policy.hit_test(t,n);l=l||this.source.selection_policy.do_selection(e,this.source,i,s)}return l}inspect(e,t){let i=!1;if(e instanceof c.GlyphRendererView){const s=e.hit_test(t);if(null!=s){i=!s.is_empty();const n=this.get_or_create_inspector(e.model);n.update(s,!0,!1),this.source.setv({inspected:n},{silent:!0}),this.source.inspect.emit([e,{geometry:t}])}}else if(e instanceof r.GraphRendererView){const s=e.model.inspection_policy.hit_test(t,e);i=i||e.model.inspection_policy.do_inspection(s,t,e,!1,!1)}return i}clear(e){this.source.selected.clear(),null!=e&&this.get_or_create_inspector(e.model).clear()}get_or_create_inspector(e){return null==this.inspectors[e.id]&&(this.inspectors[e.id]=new o.Selection),this.inspectors[e.id]}}i.SelectionManager=_,_.__name__="SelectionManager",_.init_SelectionManager()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=e(79),n=e(80),h=e(91),o=e(92),a=e(94),r=e(95),_=e(70),d=s.__importStar(e(19)),c=e(12),g=e(9),p=e(24),y=e(96),u=e(88),m={fill:{},line:{}},v={fill:{fill_alpha:.3,fill_color:"grey"},line:{line_alpha:.3,line_color:"grey"}},f={fill:{fill_alpha:.2},line:{}};class w extends l.DataRendererView{async lazy_initialize(){await super.lazy_initialize();const e=this.model.glyph,t=g.includes(e.mixins,"fill"),i=g.includes(e.mixins,"line"),s=p.clone(e.attributes);function l(l){const n=p.clone(s);return t&&p.extend(n,l.fill),i&&p.extend(n,l.line),new e.constructor(n)}delete s.id,this.glyph=await this.build_glyph_view(e);let{selection_glyph:n}=this.model;null==n?n=l({fill:{},line:{}}):"auto"===n&&(n=l(m)),this.selection_glyph=await this.build_glyph_view(n);let{nonselection_glyph:h}=this.model;null==h?h=l({fill:{},line:{}}):"auto"===h&&(h=l(f)),this.nonselection_glyph=await this.build_glyph_view(h);const{hover_glyph:o}=this.model;null!=o&&(this.hover_glyph=await this.build_glyph_view(o));const{muted_glyph:a}=this.model;null!=a&&(this.muted_glyph=await this.build_glyph_view(a));const r=l(v);this.decimated_glyph=await this.build_glyph_view(r),this.xscale=this.plot_view.frame.xscales[this.model.x_range_name],this.yscale=this.plot_view.frame.yscales[this.model.y_range_name],this.set_data(!1)}async build_glyph_view(e){return y.build_view(e,{parent:this})}remove(){var e,t;this.glyph.remove(),this.selection_glyph.remove(),this.nonselection_glyph.remove(),null===(e=this.hover_glyph)||void 0===e||e.remove(),null===(t=this.muted_glyph)||void 0===t||t.remove(),this.decimated_glyph.remove(),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render()),this.connect(this.model.glyph.change,()=>this.set_data()),this.connect(this.model.data_source.change,()=>this.set_data()),this.connect(this.model.data_source.streaming,()=>this.set_data()),this.connect(this.model.data_source.patching,e=>this.set_data(!0,e)),this.connect(this.model.data_source.selected.change,()=>this.request_render()),this.connect(this.model.data_source._select,()=>this.request_render()),null!=this.hover_glyph&&this.connect(this.model.data_source.inspect,()=>this.request_render()),this.connect(this.model.properties.view.change,()=>this.set_data()),this.connect(this.model.view.change,()=>this.set_data()),this.connect(this.model.properties.visible.change,()=>this.plot_view.update_dataranges());const{x_ranges:e,y_ranges:t}=this.plot_view.frame;for(const t in e){const i=e[t];i instanceof u.FactorRange&&this.connect(i.change,()=>this.set_data())}for(const e in t){const i=t[e];i instanceof u.FactorRange&&this.connect(i.change,()=>this.set_data())}this.connect(this.model.glyph.transformchange,()=>this.set_data())}have_selection_glyphs(){return null!=this.selection_glyph&&null!=this.nonselection_glyph}set_data(e=!0,t=null){const i=Date.now(),s=this.model.data_source;this.all_indices=this.model.view.indices,this.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0}),this.glyph.set_data(s,this.all_indices,t),this.glyph.set_visuals(s),this.decimated_glyph.set_visuals(s),this.have_selection_glyphs()&&(this.selection_glyph.set_visuals(s),this.nonselection_glyph.set_visuals(s)),null!=this.hover_glyph&&this.hover_glyph.set_visuals(s),null!=this.muted_glyph&&this.muted_glyph.set_visuals(s);const{lod_factor:l}=this.plot_model;this.decimated=[];for(let e=0,t=Math.floor(this.all_indices.length/l);e<t;e++)this.decimated.push(e*l);const n=Date.now()-i;_.logger.debug(${this.glyph.model.type} GlyphRenderer (${this.model.id}): set_data finished in ${n}ms),this.set_data_timestamp=Date.now(),e&&this.request_render()}get has_webgl(){return this.glyph.has_webgl}render(){if(!this.model.visible)return;const e=Date.now(),t=this.has_webgl;this.glyph.map_data();const i=Date.now()-e,s=Date.now();let l=this.glyph.mask_data(this.all_indices);l.length===this.all_indices.length&&(l=g.range(0,this.all_indices.length));const r=Date.now()-s,{ctx:d}=this.plot_view.canvas_view;d.save();const{selected:p}=this.model.data_source;let y;y=!p||p.is_empty()?[]:this.glyph instanceof n.LineView&&p.selected_glyph===this.glyph.model?this.model.view.convert_indices_from_subset(l):p.indices;const{inspected:u}=this.model.data_source,m=new Set((()=>!u||u.is_empty()?[]:u.selected_glyph?this.model.view.convert_indices_from_subset(l):u.indices.length>0?u.indices:c.map(Object.keys(u.multiline_indices),e=>parseInt(e)))()),v=c.filter(l,e=>m.has(this.all_indices[e])),{lod_threshold:f}=this.plot_model;let w,b,x;null!=this.model.document&&this.model.document.interactive_duration()>0&&!t&&null!=f&&this.all_indices.length>f?(l=this.decimated,w=this.decimated_glyph,b=this.decimated_glyph,x=this.selection_glyph):(w=this.model.muted&&null!=this.muted_glyph?this.muted_glyph:this.glyph,b=this.nonselection_glyph,x=this.selection_glyph),null!=this.hover_glyph&&v.length&&(l=g.difference(l,v));let D,R=null;if(y.length&&this.have_selection_glyphs()){const e=Date.now(),t={};for(const e of y)t[e]=!0;const i=new Array,s=new Array;if(this.glyph instanceof n.LineView)for(const e of this.all_indices)null!=t[e]?i.push(e):s.push(e);else for(const e of l)null!=t[this.all_indices[e]]?i.push(e):s.push(e);R=Date.now()-e,D=Date.now(),b.render(d,s,this.glyph),x.render(d,i,this.glyph),null!=this.hover_glyph&&(this.glyph instanceof n.LineView?this.hover_glyph.render(d,this.model.view.convert_indices_from_subset(v),this.glyph):this.hover_glyph.render(d,v,this.glyph))}else if(D=Date.now(),this.glyph instanceof n.LineView)this.hover_glyph&&v.length?this.hover_glyph.render(d,this.model.view.convert_indices_from_subset(v),this.glyph):w.render(d,this.all_indices,this.glyph);else if(this.glyph instanceof h.PatchView||this.glyph instanceof o.HAreaView||this.glyph instanceof a.VAreaView)if(0==u.selected_glyphs.length||null==this.hover_glyph)w.render(d,this.all_indices,this.glyph);else for(const e of u.selected_glyphs)e.id==this.glyph.model.id&&this.hover_glyph.render(d,this.all_indices,this.glyph);else w.render(d,l,this.glyph),this.hover_glyph&&v.length&&this.hover_glyph.render(d,v,this.glyph);const V=Date.now()-D;this.last_dtrender=V;const $=Date.now()-e;_.logger.debug(${this.glyph.model.type} GlyphRenderer (${this.model.id}): render finished in ${$}ms),_.logger.trace(` - map_data finished in : ${i}ms`),_.logger.trace(` - mask_data finished in : ${r}ms`),null!=R&&_.logger.trace(` - selection mask finished in : ${R}ms`),_.logger.trace(` - glyph renders finished in : ${V}ms`),d.restore()}draw_legend(e,t,i,s,l,n,h,o){null==o&&(o=this.model.get_reference_point(n,h)),this.glyph.draw_legend_for_index(e,{x0:t,x1:i,y0:s,y1:l},o)}hit_test(e){if(!this.model.visible)return null;const t=this.glyph.hit_test(e);return null==t?null:this.model.view.convert_selection_from_subset(t)}}i.GlyphRendererView=w,w.__name__="GlyphRendererView";class b extends l.DataRenderer{constructor(e){super(e)}static init_GlyphRenderer(){this.prototype.default_view=w,this.define({data_source:[d.Instance],view:[d.Instance,()=>new r.CDSView],glyph:[d.Instance],hover_glyph:[d.Instance],nonselection_glyph:[d.Any,"auto"],selection_glyph:[d.Any,"auto"],muted_glyph:[d.Instance],muted:[d.Boolean,!1]})}initialize(){super.initialize(),null==this.view.source&&(this.view.source=this.data_source,this.view.compute_indices())}get_reference_point(e,t){let i=0;if(null!=e){const s=this.data_source.get_column(e);if(null!=s){const e=c.indexOf(s,t);-1!=e&&(i=e)}}return i}get_selection_manager(){return this.data_source.selection_manager}}i.GlyphRenderer=b,b.__name__="GlyphRenderer",b.init_GlyphRenderer()},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),a=e(63),_=t.__importStar(e(19));class i extends a.RendererView{}n.DataRendererView=i,i.__name__="DataRendererView";class d extends a.Renderer{constructor(e){super(e)}static init_DataRenderer(){this.define({x_range_name:[_.String,"default"],y_range_name:[_.String,"default"]}),this.override({level:"glyph"})}}n.DataRenderer=d,d.__name__="DataRenderer",d.init_DataRenderer()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(81),_=e(90),l=s.__importStar(e(87));class r extends n.XYGlyphView{_render(e,t,{sx:i,sy:s}){let n=!1,_=null;this.visuals.line.set_value(e);for(const l of t){if(n){if(!isFinite(i[l]+s[l])){e.stroke(),e.beginPath(),n=!1,_=l;continue}null!=_&&l-_>1&&(e.stroke(),n=!1)}n?e.lineTo(i[l],s[l]):(e.beginPath(),e.moveTo(i[l],s[l]),n=!0),_=l}n&&e.stroke()}_hit_point(e){const t=l.create_empty_hit_test_result(),i={x:e.sx,y:e.sy};let s=9999;const n=Math.max(2,this.visuals.line.line_width.value()/2);for(let e=0,_=this.sx.length-1;e<_;e++){const _={x:this.sx[e],y:this.sy[e]},r={x:this.sx[e+1],y:this.sy[e+1]},h=l.dist_to_segment(i,_,r);h<n&&h<s&&(s=h,t.add_to_selected_glyphs(this.model),t.get_view=()=>this,t.line_indices=[e])}return t}_hit_span(e){const{sx:t,sy:i}=e,s=l.create_empty_hit_test_result();let n,_;"v"==e.direction?(n=this.renderer.yscale.invert(i),_=this._y):(n=this.renderer.xscale.invert(t),_=this._x);for(let e=0,t=_.length-1;e<t;e++)(_[e]<=n&&n<=_[e+1]||_[e+1]<=n&&n<=_[e])&&(s.add_to_selected_glyphs(this.model),s.get_view=()=>this,s.line_indices.push(e));return s}get_interpolation_hit(e,t){const[i,s,n,l]=[this._x[e],this._y[e],this._x[e+1],this._y[e+1]];return _.line_interpolation(this.renderer,t,i,s,n,l)}draw_legend_for_index(e,t,i){_.generic_line_legend(this.visuals,e,t,i)}}i.LineView=r,r.__name__="LineView";class h extends n.XYGlyph{constructor(e){super(e)}static init_Line(){this.prototype.default_view=r,this.mixins(["line"])}}i.Line=h,h.__name__="Line",h.init_Line()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(82),n=e(86);class _ extends n.GlyphView{_index_data(){const e=[];for(let t=0,s=this._x.length;t<s;t++){const s=this._x[t],i=this._y[t];!isNaN(s+i)&&isFinite(s+i)&&e.push({x0:s,y0:i,x1:s,y1:i,i:t})}return new i.SpatialIndex(e)}scenterx(e){return this.sx[e]}scentery(e){return this.sy[e]}}s.XYGlyphView=_,_.__name__="XYGlyphView";class h extends n.Glyph{constructor(e){super(e)}static init_XYGlyph(){this.coords([["x","y"]])}}s.XYGlyph=h,h.__name__="XYGlyph",h.init_XYGlyph()},n”, ” function _(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=n(1).__importDefault(n(83)),s=n(85);class r{constructor(n){if(this.points=n,this.index=null,n.length>0){this.index=new e.default(n.length);for(const t of n){const{x0:n,y0:i,x1:e,y1:s}=t;this.index.add(n,i,e,s)}this.index.finish()}}_normalize(n){let{x0:t,y0:i,x1:e,y1:s}=n;return t>e&&([t,e]=[e,t]),i>s&&([i,s]=[s,i]),{x0:t,y0:i,x1:e,y1:s}}get bbox(){if(null==this.index)return s.empty();{const{minX:n,minY:t,maxX:i,maxY:e}=this.index;return{x0:n,y0:t,x1:i,y1:e}}}search(n){if(null==this.index)return[];{const{x0:t,y0:i,x1:e,y1:s}=this._normalize(n);return this.index.search(t,i,e,s).map(n=>this.points[n])}}indices(n){return this.search(n).map(({i:n})=>n)}}i.SpatialIndex=r,r.__name__="SpatialIndex"},n”, ” function _(t,s,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1).__importDefault(t(84)),h=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class n{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[s,i]=new Uint8Array(t,0,2);if(251!==s)throw new Error("Data does not appear to be in a Flatbush format.");if(i>>4!=3)throw new Error(Got v${i>>4} data when expected v3.);const[e]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new n(o,e,h[15&i],t)}constructor(t,s=16,i=Float64Array,n){if(void 0===t)throw new Error("Missing required argument: numItems.");if(isNaN(t)||t<=0)throw new Error(Unpexpected numItems value: ${t}.);this.numItems=+t,this.nodeSize=Math.min(Math.max(+s,2),65535);let o=t,r=o;this._levelBounds=[4*o];do{o=Math.ceil(o/this.nodeSize),r+=o,this._levelBounds.push(4*r)}while(1!==o);this.ArrayType=i||Float64Array,this.IndexArrayType=r<16384?Uint16Array:Uint32Array;const a=h.indexOf(this.ArrayType),_=4*r*this.ArrayType.BYTES_PER_ELEMENT;if(a<0)throw new Error(Unexpected typed array class: ${i}.);n&&n instanceof ArrayBuffer?(this.data=n,this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),this._pos=4*r,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new ArrayBuffer(8+_+r*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+a]),new Uint16Array(this.data,2,1)[0]=s,new Uint32Array(this.data,4,1)[0]=t),this._queue=new e.default}add(t,s,i,e){const h=this._pos>>2;return this._indices[h]=h,this._boxes[this._pos++]=t,this._boxes[this._pos++]=s,this._boxes[this._pos++]=i,this._boxes[this._pos++]=e,t<this.minX&&(this.minX=t),s<this.minY&&(this.minY=s),i>this.maxX&&(this.maxX=i),e>this.maxY&&(this.maxY=e),h}finish(){if(this._pos>>2!==this.numItems)throw new Error(Added ${this._pos>>2} items when expected ${this.numItems}.);const t=this.maxX-this.minX,s=this.maxY-this.minY,i=new Uint32Array(this.numItems);for(let e=0;e<this.numItems;e++){let h=4*e;const n=this._boxes[h++],o=this._boxes[h++],r=this._boxes[h++],a=this._boxes[h++],d=Math.floor(65535*((n+r)/2-this.minX)/t),l=Math.floor(65535*((o+a)/2-this.minY)/s);i[e]=_(d,l)}!function t(s,i,e,h,n){if(h>=n)return;const o=s[h+n>>1];let r=h-1,_=n+1;for(;;){do{r++}while(s[r]<o);do{_–}while(s[_]>o);if(r>=_)break;a(s,i,e,r,_)}t(s,i,e,h,_),t(s,i,e,_+1,n)}(i,this._boxes,this._indices,0,this.numItems-1);for(let t=0,s=0;t<this._levelBounds.length-1;t++){const i=this._levelBounds[t];for(;s<i;){let t=1/0,e=1/0,h=-1/0,n=-1/0;const o=s;for(let o=0;o<this.nodeSize&&s<i;o++){const i=this._boxes[s++],o=this._boxes[s++],r=this._boxes[s++],a=this._boxes[s++];i<t&&(t=i),o<e&&(e=o),r>h&&(h=r),a>n&&(n=a)}this._indices[this._pos>>2]=o,this._boxes[this._pos++]=t,this._boxes[this._pos++]=e,this._boxes[this._pos++]=h,this._boxes[this._pos++]=n}}}search(t,s,i,e,h){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let n=this._boxes.length-4,o=this._levelBounds.length-1;const r=[],a=[];for(;void 0!==n;){const _=Math.min(n+4*this.nodeSize,this._levelBounds[o]);for(let d=n;d<_;d+=4){const _=0|this._indices[d>>2];i<this._boxes[d]||(e<this._boxes[d+1]||t>this._boxes[d+2]||s>this._boxes[d+3]||(n<4*this.numItems?(void 0===h||h(_))&&a.push(_):(r.push(_),r.push(o-1))))}o=r.pop(),n=r.pop()}return a}neighbors(t,s,i=1/0,e=1/0,h){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let n=this._boxes.length-4;const a=this._queue,_=[],d=e*e;for(;void 0!==n;){const e=Math.min(n+4*this.nodeSize,r(n,this._levelBounds));for(let i=n;i<e;i+=4){const e=0|this._indices[i>>2],r=o(t,this._boxes[i],this._boxes[i+2]),_=o(s,this._boxes[i+1],this._boxes[i+3]),d=r*r+_*_;n<4*this.numItems?(void 0===h||h(e))&&a.push(-e-1,d):a.push(e,d)}for(;a.length&&a.peek()<0;){if(a.peekValue()>d)return a.clear(),_;if(_.push(-a.pop()-1),_.length===i)return a.clear(),_}n=a.pop()}return a.clear(),_}}function o(t,s,i){return t<s?s-t:t<=i?0:t-i}function r(t,s){let i=0,e=s.length-1;for(;i<e;){const h=i+e>>1;s[h]>t?e=h:i=h+1}return s[i]}function a(t,s,i,e,h){const n=t[e];t[e]=t[h],t[h]=n;const o=4*e,r=4*h,a=s[o],_=s[o+1],d=s[o+2],l=s[o+3];s[o]=s[r],s[o+1]=s[r+1],s[o+2]=s[r+2],s[o+3]=s[r+3],s[r]=a,s[r+1]=_,s[r+2]=d,s[r+3]=l;const u=i[e];i[e]=i[h],i[h]=u}function _(t,s){let i=t^s,e=65535^i,h=65535^(t|s),n=t&(65535^s),o=i|e>>1,r=i>>1^i,a=h>>1^e&n>>1^h,_=i&h>>1^n>>1^n;i=o,e=r,h=a,n=_,o=i&i>>2^e&e>>2,r=i&e>>2^e&(i^e)>>2,a^=i&h>>2^e&n>>2,_^=e&h>>2^(i^e)&n>>2,i=o,e=r,h=a,n=_,o=i&i>>4^e&e>>4,r=i&e>>4^e&(i^e)>>4,a^=i&h>>4^e&n>>4,_^=e&h>>4^(i^e)&n>>4,i=o,e=r,h=a,n=_,a^=i&h>>8^e&n>>8,_^=e&h>>8^(i^e)&n>>8,i=a^a>>1,e=_^_>>1;let d=t^s,l=e|65535^(d|i);return d=16711935&(d|d<<8),d=252645135&(d|d<<4),d=858993459&(d|d<<2),d=1431655765&(d|d<<1),l=16711935&(l|l<<8),l=252645135&(l|l<<4),l=858993459&(l|l<<2),l=1431655765&(l|l<<1),(l<<1|d)>>>0}i.default=n},n”, ” function _(s,t,i){Object.defineProperty(i,"__esModule",{value:!0});i.default=class{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(s,t){let i=this.length++;for(this.ids[i]=s,this.values[i]=t;i>0;){const s=i-1>>1,e=this.values[s];if(t>=e)break;this.ids[i]=this.ids[s],this.values[i]=e,i=s}this.ids[i]=s,this.values[i]=t}pop(){if(0===this.length)return;const s=this.ids[0];if(this.length–,this.length>0){const s=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],i=this.length>>1;let e=0;for(;e<i;){let s=1+(e<<1);const i=s+1;let h=this.ids[s],l=this.values[s];const n=this.values[i];if(i<this.length&&n<l&&(s=i,h=this.ids[i],l=n),l>=t)break;this.ids[e]=h,this.values[e]=l,e=s}this.ids[e]=s,this.values[e]=t}return s}peek(){return this.ids[0]}peekValue(){return this.values[0]}}},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const{min:h,max:r}=Math;e.empty=function(){return{x0:1/0,y0:1/0,x1:-1/0,y1:-1/0}},e.positive_x=function(){return{x0:Number.MIN_VALUE,y0:-1/0,x1:1/0,y1:1/0}},e.positive_y=function(){return{x0:-1/0,y0:Number.MIN_VALUE,x1:1/0,y1:1/0}},e.union=function(t,i){return{x0:h(t.x0,i.x0),x1:r(t.x1,i.x1),y0:h(t.y0,i.y0),y1:r(t.y1,i.y1)}};class s{constructor(t){if(null==t)this.x0=0,this.y0=0,this.x1=0,this.y1=0;else if("x0"in t){const{x0:i,y0:e,x1:h,y1:r}=t;if(!(i<=h&&e<=r))throw new Error(invalid bbox {x0: ${i}, y0: ${e}, x1: ${h}, y1: ${r}});this.x0=i,this.y0=e,this.x1=h,this.y1=r}else if("x"in t){const{x:i,y:e,width:h,height:r}=t;if(!(h>=0&&r>=0))throw new Error(invalid bbox {x: ${i}, y: ${e}, width: ${h}, height: ${r}});this.x0=i,this.y0=e,this.x1=i+h,this.y1=e+r}else{let i,e,h,r;if("width"in t)if("left"in t)i=t.left,e=i+t.width;else if("right"in t)e=t.right,i=e-t.width;else{const h=t.width/2;i=t.hcenter-h,e=t.hcenter+h}else i=t.left,e=t.right;if("height"in t)if("top"in t)h=t.top,r=h+t.height;else if("bottom"in t)r=t.bottom,h=r-t.height;else{const i=t.height/2;h=t.vcenter-i,r=t.vcenter+i}else h=t.top,r=t.bottom;if(!(i<=e&&h<=r))throw new Error(invalid bbox {left: ${i}, top: ${h}, right: ${e}, bottom: ${r}});this.x0=i,this.y0=h,this.x1=e,this.y1=r}}toString(){return`BBox({left: ${this.left}, top: ${this.top}, width: ${this.width}, height: ${this.height}})`}get left(){return this.x0}get top(){return this.y0}get right(){return this.x1}get bottom(){return this.y1}get p0(){return[this.x0,this.y0]}get p1(){return[this.x1,this.y1]}get x(){return this.x0}get y(){return this.y0}get width(){return this.x1-this.x0}get height(){return this.y1-this.y0}get rect(){return{x0:this.x0,y0:this.y0,x1:this.x1,y1:this.y1}}get box(){return{x:this.x,y:this.y,width:this.width,height:this.height}}get h_range(){return{start:this.x0,end:this.x1}}get v_range(){return{start:this.y0,end:this.y1}}get ranges(){return[this.h_range,this.v_range]}get aspect(){return this.width/this.height}get hcenter(){return(this.left+this.right)/2}get vcenter(){return(this.top+this.bottom)/2}contains(t,i){return t>=this.x0&&t<=this.x1&&i>=this.y0&&i<=this.y1}clip(t,i){return t<this.x0?t=this.x0:t>this.x1&&(t=this.x1),i<this.y0?i=this.y0:i>this.y1&&(i=this.y1),[t,i]}union(t){return new s({x0:h(this.x0,t.x0),y0:h(this.y0,t.y0),x1:r(this.x1,t.x1),y1:r(this.y1,t.y1)})}equals(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1}get xview(){return{compute:t=>this.left+t,v_compute:t=>{const i=new Float64Array(t.length),e=this.left;for(let h=0;h<t.length;h++)i[h]=e+t[h];return i}}}get yview(){return{compute:t=>this.bottom-t,v_compute:t=>{const i=new Float64Array(t.length),e=this.bottom;for(let h=0;h<t.length;h++)i[h]=e-t[h];return i}}}}e.BBox=s,s.__name__="BBox"},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=i.__importStar(t(87)),r=i.__importStar(t(19)),a=i.__importStar(t(85)),_=i.__importStar(t(30)),l=i.__importStar(t(68)),o=t(65),h=t(69),c=t(70),d=t(12),p=t(24),y=t(8),u=t(80),g=t(88);class m extends o.View{constructor(){super(…arguments),this._nohit_warned=new Set}get renderer(){return this.parent}get has_webgl(){return null!=this.glglyph}initialize(){super.initialize(),this.visuals=new l.Visuals(this.model)}async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e){let s=null;try{s=await Promise.resolve().then(()=>i.__importStar(t(358)))}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t;c.logger.warn("WebGL was requested and is supported, but bokeh-gl(.min).js is not available, falling back to 2D rendering.")}if(null!=s){const t=s[this.model.type+"GLGlyph"];null!=t&&(this.glglyph=new t(e.gl,this))}}}set_visuals(t){this.visuals.warm_cache(t),null!=this.glglyph&&this.glglyph.set_visuals_changed()}render(t,e,s){t.beginPath(),null!=this.glglyph&&this.glglyph.render(t,e,s)||this._render(t,e,s)}has_finished(){return!0}notify_finished(){this.renderer.notify_finished()}_bounds(t){return t}bounds(){return this._bounds(this.index.bbox)}log_bounds(){const t=a.empty(),e=this.index.search(a.positive_x());for(const s of e)s.x0<t.x0&&(t.x0=s.x0),s.x1>t.x1&&(t.x1=s.x1);const s=this.index.search(a.positive_y());for(const e of s)e.y0<t.y0&&(t.y0=e.y0),e.y1>t.y1&&(t.y1=e.y1);return this._bounds(t)}get_anchor_point(t,e,[s,i]){switch(t){case"center":return{x:this.scenterx(e,s,i),y:this.scentery(e,s,i)};default:return null}}sdist(t,e,s,i="edge",n=!1){let r,a;const _=e.length;if("center"==i){const t=d.map(s,t=>t/2);r=new Float64Array(_);for(let s=0;s<_;s++)r[s]=e[s]-t[s];a=new Float64Array(_);for(let s=0;s<_;s++)a[s]=e[s]+t[s]}else{r=e,a=new Float64Array(_);for(let t=0;t<_;t++)a[t]=r[t]+s[t]}const l=t.v_compute(r),o=t.v_compute(a);return n?d.map(l,(t,e)=>Math.ceil(Math.abs(o[e]-l[e]))):d.map(l,(t,e)=>Math.abs(o[e]-l[e]))}draw_legend_for_index(t,e,s){}hit_test(t){switch(t.type){case"point":if(null!=this._hit_point)return this._hit_point(t);break;case"span":if(null!=this._hit_span)return this._hit_span(t);break;case"rect":if(null!=this._hit_rect)return this._hit_rect(t);break;case"poly":if(null!=this._hit_poly)return this._hit_poly(t)}return this._nohit_warned.has(t.type)||(c.logger.debug(‘${t.type}’ selection not available for ${this.model.type}),this._nohit_warned.add(t.type)),null}_hit_rect_against_index(t){const{sx0:e,sx1:s,sy0:i,sy1:r}=t,[a,_]=this.renderer.xscale.r_invert(e,s),[l,o]=this.renderer.yscale.r_invert(i,r),h=n.create_empty_hit_test_result();return h.indices=this.index.indices({x0:a,x1:_,y0:l,y1:o}),h}set_data(t,e,s){let i=this.model.materialize_dataspecs(t);if(this.visuals.set_all_indices(e),e&&!(this instanceof u.LineView)){const t={};for(const s in i){const n=i[s];"_"===s.charAt(0)?t[s]=e.map(t=>n[t]):t[s]=n}i=t}const n=this;if(p.extend(n,i),this.renderer.plot_view.model.use_map&&(null!=n._x&&([n._x,n._y]=_.project_xy(n._x,n._y)),null!=n._xs&&([n._xs,n._ys]=_.project_xsys(n._xs,n._ys)),null!=n._x0&&([n._x0,n._y0]=_.project_xy(n._x0,n._y0)),null!=n._x1&&([n._x1,n._y1]=_.project_xy(n._x1,n._y1))),null!=this.renderer.plot_view.frame.x_ranges){const t=this.renderer.plot_view.frame.x_ranges[this.model.x_range_name],e=this.renderer.plot_view.frame.y_ranges[this.model.y_range_name];for(let[s,i]of this.model._coords)s=`_${s}`,i=`_${i}`,null!=n._xs?(t instanceof g.FactorRange&&(n[s]=d.map(n[s],e=>t.v_synthetic(e))),e instanceof g.FactorRange&&(n[i]=d.map(n[i],t=>e.v_synthetic(t)))):(t instanceof g.FactorRange&&(n[s]=t.v_synthetic(n[s])),e instanceof g.FactorRange&&(n[i]=e.v_synthetic(n[i])))}null!=this.glglyph&&this.glglyph.set_data_changed(n._x.length),this._set_data(s),this.index_data()}_set_data(t){}index_data(){this.index=this._index_data()}mask_data(t){return null!=this.glglyph||null==this._mask_data?t:this._mask_data()}map_data(){const t=this;for(let[e,s]of this.model._coords){const i=`s${e}`,n=`s${s}`;if(e=`_${e}`,s=`_${s}`,null!=t[e]&&(y.isArray(t[e][0])||y.isTypedArray(t[e][0]))){const r=t[e].length;t[i]=new Array(r),t[n]=new Array(r);for(let a=0;a<r;a++){const[r,_]=this.map_to_screen(t[e][a],t[s][a]);t[i][a]=r,t[n][a]=_}}else[t[i],t[n]]=this.map_to_screen(t[e],t[s])}this._map_data()}_map_data(){}map_to_screen(t,e){return this.renderer.plot_view.map_to_screen(t,e,this.model.x_range_name,this.model.y_range_name)}}s.GlyphView=m,m.__name__="GlyphView";class x extends h.Model{constructor(t){super(t)}static init_Glyph(){this.prototype._coords=[],this.internal({x_range_name:[r.String,"default"],y_range_name:[r.String,"default"]})}static coords(t){const e=this.prototype._coords.concat(t);this.prototype._coords=e;const s={};for(const[e,i]of t)s[e]=[r.CoordinateSpec],s[i]=[r.CoordinateSpec];this.define(s)}}s.Glyph=x,x.__name__="Glyph",x.init_Glyph()},n”, ” function _(t,n,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(9),r=t(76);function s(t){return t*t}function o(t,n){return s(t.x-n.x)+s(t.y-n.y)}function c(t,n,e){const i=o(n,e);if(0==i)return o(t,n);const r=((t.x-n.x)*(e.x-n.x)+(t.y-n.y)*(e.y-n.y))/i;return o(t,r<0?n:r>1?e:{x:n.x+r*(e.x-n.x),y:n.y+r*(e.y-n.y)})}e.point_in_poly=function(t,n,e,i){let r=!1,s=e[e.length-1],o=i[i.length-1];for(let c=0;c<e.length;c++){const u=e[c],_=i[c];o<n!=_<n&&s+(n-o)/(_-o)*(u-s)<t&&(r=!r),s=u,o=_}return r},e.point_in_ellipse=function(t,n,e,i,r,s,o){return((Math.cos(e)/r)**2+(Math.sin(e)/i)**2)*(t-s)**2+2*Math.cos(e)*Math.sin(e)*((1/r)**2-(1/i)**2)*(t-s)*(n-o)+((Math.cos(e)/i)**2+(Math.sin(e)/r)**2)*(n-o)**2<=1},e.create_empty_hit_test_result=function(){return new r.Selection},e.create_hit_test_result_from_hits=function(t){const n=new r.Selection;return n.indices=i.sort_by(t,([t,n])=>n).map(([t,n])=>t),n},e.dist_2_pts=o,e.dist_to_segment_squared=c,e.dist_to_segment=function(t,n,e){return Math.sqrt(c(t,n,e))},e.check_2_segments_intersect=function(t,n,e,i,r,s,o,c){const u=(c-s)*(e-t)-(o-r)*(i-n);if(0==u)return{hit:!1,x:null,y:null};{let _=n-s,l=t-r;const h=(e-t)*_-(i-n)*l;return _=((o-r)*_-(c-s)*l)/u,l=h/u,{hit:_>0&&_<1&&l>0&&l<1,x:t+_*(e-t),y:n+_*(i-n)}}}},n”, ” function _(t,n,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(89),r=s.__importStar(t(19)),a=t(12),o=t(9),p=t(8),h=t(11);function g(t,n,i=0){const s={};for(let e=0;e<t.length;e++){const r=t[e];if(r in s)throw new Error(duplicate factor or subfactor: ${r});s[r]={value:.5+e*(1+n)+i}}return[s,(t.length-1)*n]}function c(t,n,i,s=0){const e={},r={},a=[];for(const[n,i]of t)n in r||(r[n]=[],a.push(n)),r[n].push(i);let p=s,h=0;for(const t of a){const s=r[t].length,[a,c]=g(r[t],i,p);h+=c;const u=o.sum(r[t].map(t=>a[t].value));e[t]={value:u/s,mapping:a},p+=s+n+c}return[e,a,(a.length-1)*n+h]}function u(t,n,i,s,e=0){const r={},a={},p=[];for(const[n,i,s]of t)n in a||(a[n]=[],p.push(n)),a[n].push([i,s]);const h=[];let g=e,u=0;for(const t of p){const e=a[t].length,[p,l,_]=c(a[t],i,s,g);for(const n of l)h.push([t,n]);u+=_;const d=o.sum(a[t].map(([t])=>p[t].value));r[t]={value:d/e,mapping:p},g+=e+n+_}return[r,p,h,(p.length-1)*n+u]}i.map_one_level=g,i.map_two_levels=c,i.map_three_levels=u;class l extends e.Range{constructor(t){super(t)}static init_FactorRange(){this.define({factors:[r.Array,[]],factor_padding:[r.Number,0],subgroup_padding:[r.Number,.8],group_padding:[r.Number,1.4],range_padding:[r.Number,0],range_padding_units:[r.PaddingUnits,"percent"],start:[r.Number],end:[r.Number]}),this.internal({levels:[r.Number],mids:[r.Array,null],tops:[r.Array,null],tops_groups:[r.Array]})}get min(){return this.start}get max(){return this.end}initialize(){super.initialize(),this._init(!0)}connect_signals(){super.connect_signals(),this.connect(this.properties.factors.change,()=>this.reset()),this.connect(this.properties.factor_padding.change,()=>this.reset()),this.connect(this.properties.group_padding.change,()=>this.reset()),this.connect(this.properties.subgroup_padding.change,()=>this.reset()),this.connect(this.properties.range_padding.change,()=>this.reset()),this.connect(this.properties.range_padding_units.change,()=>this.reset())}reset(){this._init(!1),this.change.emit()}_lookup(t){if(1==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])?n[t[0]].value:NaN}if(2==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])&&n[t[0]].mapping.hasOwnProperty(t[1])?n[t[0]].mapping[t[1]].value:NaN}if(3==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])&&n[t[0]].mapping.hasOwnProperty(t[1])&&n[t[0]].mapping[t[1]].mapping.hasOwnProperty(t[2])?n[t[0]].mapping[t[1]].mapping[t[2]].value:NaN}h.unreachable()}synthetic(t){if(p.isNumber(t))return t;if(p.isString(t))return this._lookup([t]);let n=0;const i=t[t.length-1];return p.isNumber(i)&&(n=i,t=t.slice(0,-1)),this._lookup(t)+n}v_synthetic(t){return a.map(t,t=>this.synthetic(t))}_init(t){let n,i;this.tops=null,this.mids=null,o.every(this.factors,p.isString)?(n=1,[this._mapping,i]=g(this.factors,this.factor_padding)):o.every(this.factors,t=>p.isArray(t)&&2==t.length&&p.isString(t[0])&&p.isString(t[1]))?(n=2,[this._mapping,this.tops,i]=c(this.factors,this.group_padding,this.factor_padding)):o.every(this.factors,t=>p.isArray(t)&&3==t.length&&p.isString(t[0])&&p.isString(t[1])&&p.isString(t[2]))?(n=3,[this._mapping,this.tops,this.mids,i]=u(this.factors,this.group_padding,this.subgroup_padding,this.factor_padding)):h.unreachable();let s=0,e=this.factors.length+i;if("percent"==this.range_padding_units){const t=(e-s)*this.range_padding/2;s-=t,e+=t}else s-=this.range_padding,e+=this.range_padding;this.setv({start:s,end:e,levels:n},{silent:t}),"auto"==this.bounds&&this.setv({bounds:[s,e]},{silent:!0})}}i.FactorRange=l,l.__name__="FactorRange",l.init_FactorRange()},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),a=e(69),r=i.__importStar(e(19));class s extends a.Model{constructor(e){super(e),this.have_updated_interactively=!1}static init_Range(){this.define({bounds:[r.Any],min_interval:[r.Any],max_interval:[r.Any]}),this.internal({plots:[r.Array,[]]})}get is_reversed(){return this.start>this.end}}n.Range=s,s.__name__="Range",s.init_Range()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1).__importStar(e(87));i.generic_line_legend=function(e,t,{x0:i,x1:n,y0:c,y1:o},r){t.save(),t.beginPath(),t.moveTo(i,(c+o)/2),t.lineTo(n,(c+o)/2),e.line.doit&&(e.line.set_vectorize(t,r),t.stroke()),t.restore()},i.generic_area_legend=function(e,t,{x0:i,x1:n,y0:c,y1:o},r){const l=.1*Math.abs(n-i),a=.1*Math.abs(o-c),s=i+l,_=n-l,h=c+a,v=o-a;e.fill.doit&&(e.fill.set_vectorize(t,r),t.fillRect(s,h,_-s,v-h)),null!=e.hatch&&e.hatch.doit&&(e.hatch.set_vectorize(t,r),t.fillRect(s,h,_-s,v-h)),e.line&&e.line.doit&&(t.beginPath(),t.rect(s,h,_-s,v-h),e.line.set_vectorize(t,r),t.stroke())},i.line_interpolation=function(e,t,i,c,o,r){const{sx:l,sy:a}=t;let s,_,h,v;"point"==t.type?([h,v]=e.yscale.r_invert(a-1,a+1),[s,_]=e.xscale.r_invert(l-1,l+1)):"v"==t.direction?([h,v]=e.yscale.r_invert(a,a),[s,_]=[Math.min(i-1,o-1),Math.max(i+1,o+1)]):([s,_]=e.xscale.r_invert(l,l),[h,v]=[Math.min(c-1,r-1),Math.max(c+1,r+1)]);const{x,y}=n.check_2_segments_intersect(s,h,_,v,i,c,o,r);return[x,y]}},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=e(81),_=e(90),n=s.__importStar(e(87));class a extends l.XYGlyphView{_inner_loop(e,t,i,s,l){for(const _ of t)0!=_?isNaN(i[_]+s[_])?(e.closePath(),l.apply(e),e.beginPath()):e.lineTo(i[_],s[_]):(e.beginPath(),e.moveTo(i[_],s[_]));e.closePath(),l.call(e)}_render(e,t,{sx:i,sy:s}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner_loop(e,t,i,s,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner_loop(e,t,i,s,e.fill),()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_value(e),this._inner_loop(e,t,i,s,e.stroke))}draw_legend_for_index(e,t,i){_.generic_area_legend(this.visuals,e,t,i)}_hit_point(e){const t=n.create_empty_hit_test_result();return n.point_in_poly(e.sx,e.sy,this.sx,this.sy)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}}i.PatchView=a,a.__name__="PatchView";class o extends l.XYGlyph{constructor(e){super(e)}static init_Patch(){this.prototype.default_view=a,this.mixins(["line","fill","hatch"])}}i.Patch=o,o.__name__="Patch",o.init_Patch()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(93),n=e(82),_=i.__importStar(e(87)),a=i.__importStar(e(19));class h extends r.AreaView{_index_data(){const e=[];for(let t=0,s=this._x1.length;t<s;t++){const s=this._x1[t],i=this._x2[t],r=this._y[t];!isNaN(s+i+r)&&isFinite(s+i+r)&&e.push({x0:Math.min(s,i),y0:r,x1:Math.max(s,i),y1:r,i:t})}return new n.SpatialIndex(e)}_inner(e,t,s,i,r){e.beginPath();for(let s=0,r=t.length;s<r;s++)e.lineTo(t[s],i[s]);for(let t=s.length-1;t>=0;t–)e.lineTo(s[t],i[t]);e.closePath(),r.call(e)}_render(e,t,{sx1:s,sx2:i,sy:r}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner(e,s,i,r,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner(e,s,i,r,e.fill),()=>this.renderer.request_render())}_hit_point(e){const t=_.create_empty_hit_test_result(),s=this.sy.length,i=new Float64Array(2*s),r=new Float64Array(2*s);for(let e=0,t=s;e<t;e++)i[e]=this.sx1[e],r[e]=this.sy[e],i[s+e]=this.sx2[s-e-1],r[s+e]=this.sy[s-e-1];return _.point_in_poly(e.sx,e.sy,i,r)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}scenterx(e){return(this.sx1[e]+this.sx2[e])/2}scentery(e){return this.sy[e]}_map_data(){this.sx1=this.renderer.xscale.v_compute(this._x1),this.sx2=this.renderer.xscale.v_compute(this._x2),this.sy=this.renderer.yscale.v_compute(this._y)}}s.HAreaView=h,h.__name__="HAreaView";class l extends r.Area{constructor(e){super(e)}static init_HArea(){this.prototype.default_view=h,this.define({x1:[a.CoordinateSpec],x2:[a.CoordinateSpec],y:[a.CoordinateSpec]})}}s.HArea=l,l.__name__="HArea",l.init_HArea()},n”, ” function _(e,i,_){Object.defineProperty(_,"__esModule",{value:!0});const a=e(86),n=e(90);class s extends a.GlyphView{draw_legend_for_index(e,i,_){n.generic_area_legend(this.visuals,e,i,_)}}_.AreaView=s,s.__name__="AreaView";class r extends a.Glyph{constructor(e){super(e)}static init_Area(){this.mixins(["fill","hatch"])}}_.Area=r,r.__name__="Area",r.init_Area()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(93),n=e(82),_=i.__importStar(e(87)),a=i.__importStar(e(19));class h extends r.AreaView{_index_data(){const e=[];for(let t=0,s=this._x.length;t<s;t++){const s=this._x[t],i=this._y1[t],r=this._y2[t];!isNaN(s+i+r)&&isFinite(s+i+r)&&e.push({x0:s,y0:Math.min(i,r),x1:s,y1:Math.max(i,r),i:t})}return new n.SpatialIndex(e)}_inner(e,t,s,i,r){e.beginPath();for(let i=0,r=s.length;i<r;i++)e.lineTo(t[i],s[i]);for(let s=i.length-1;s>=0;s–)e.lineTo(t[s],i[s]);e.closePath(),r.call(e)}_render(e,t,{sx:s,sy1:i,sy2:r}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner(e,s,i,r,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner(e,s,i,r,e.fill),()=>this.renderer.request_render())}scenterx(e){return this.sx[e]}scentery(e){return(this.sy1[e]+this.sy2[e])/2}_hit_point(e){const t=_.create_empty_hit_test_result(),s=this.sx.length,i=new Float64Array(2*s),r=new Float64Array(2*s);for(let e=0,t=s;e<t;e++)i[e]=this.sx[e],r[e]=this.sy1[e],i[s+e]=this.sx[s-e-1],r[s+e]=this.sy2[s-e-1];return _.point_in_poly(e.sx,e.sy,i,r)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sy1=this.renderer.yscale.v_compute(this._y1),this.sy2=this.renderer.yscale.v_compute(this._y2)}}s.VAreaView=h,h.__name__="VAreaView";class l extends r.Area{constructor(e){super(e)}static init_VArea(){this.prototype.default_view=h,this.define({x:[a.CoordinateSpec],y1:[a.CoordinateSpec],y2:[a.CoordinateSpec]})}}s.VArea=l,l.__name__="VArea",l.init_VArea()},n”, ” function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),n=i(69),c=t.__importStar(i(19)),o=i(76),r=i(9),_=i(74);class h extends n.Model{constructor(i){super(i)}static init_CDSView(){this.define({filters:[c.Array,[]],source:[c.Instance]}),this.internal({indices:[c.Array,[]],indices_map:[c.Any,{}]})}initialize(){super.initialize(),this.compute_indices()}connect_signals(){super.connect_signals(),this.connect(this.properties.filters.change,()=>{this.compute_indices(),this.change.emit()});const i=()=>{const i=()=>this.compute_indices();null!=this.source&&(this.connect(this.source.change,i),this.source instanceof _.ColumnarDataSource&&(this.connect(this.source.streaming,i),this.connect(this.source.patching,i)))};let e=null!=this.source;e?i():this.connect(this.properties.source.change,()=>{e||(i(),e=!0)})}compute_indices(){const i=this.filters.map(i=>i.compute_indices(this.source)).filter(i=>null!=i);i.length>0?this.indices=r.intersection.apply(this,i):this.source instanceof _.ColumnarDataSource&&(this.indices=this.source.get_indices()),this.indices_map_to_subset()}indices_map_to_subset(){this.indices_map={};for(let i=0;i<this.indices.length;i++)this.indices_map[this.indices[i]]=i}convert_selection_from_subset(i){const e=new o.Selection;e.update_through_union(i);const s=i.indices.map(i=>this.indices[i]);return e.indices=s,e.image_indices=i.image_indices,e}convert_selection_to_subset(i){const e=new o.Selection;e.update_through_union(i);const s=i.indices.map(i=>this.indices_map[i]);return e.indices=s,e.image_indices=i.image_indices,e}convert_indices_from_subset(i){return i.map(i=>this.indices[i])}}s.CDSView=h,h.__name__="CDSView",h.init_CDSView()},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(9);async function o(e,n,t){const i=new e(Object.assign(Object.assign({},t),{model:n}));return i.initialize(),await i.lazy_initialize(),i}t.build_view=async function(e,n={parent:null},t=(e=>e.default_view)){const i=await o(t(e),e,n);return i.connect_signals(),i},t.build_views=async function(e,n,t={parent:null},c=(e=>e.default_view)){const s=i.difference(Object.keys(e),n.map(e=>e.id));for(const n of s)e[n].remove(),delete e[n];const a=[],l=n.filter(n=>null==e[n.id]);for(const n of l){const i=await o(c(n),n,t);e[n.id]=i,a.push(i)}for(const e of a)e.connect_signals();return a},t.remove_views=function(e){for(const n in e)e[n].remove(),delete e[n]}},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(1),r=e(79),a=e(98),i=s.__importStar(e(19)),d=e(96);class _ extends r.DataRendererView{initialize(){super.initialize(),this.xscale=this.plot_view.frame.xscales.default,this.yscale=this.plot_view.frame.yscales.default,this._renderer_views={}}async lazy_initialize(){[this.node_view,this.edge_view]=await d.build_views(this._renderer_views,[this.model.node_renderer,this.model.edge_renderer],{parent:this.parent}),this.set_data()}connect_signals(){super.connect_signals(),this.connect(this.model.layout_provider.change,()=>this.set_data()),this.connect(this.model.node_renderer.data_source._select,()=>this.set_data()),this.connect(this.model.node_renderer.data_source.inspect,()=>this.set_data()),this.connect(this.model.node_renderer.data_source.change,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source._select,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source.inspect,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source.change,()=>this.set_data());const{x_ranges:e,y_ranges:t}=this.plot_view.frame;for(const t in e){const n=e[t];this.connect(n.change,()=>this.set_data())}for(const e in t){const n=t[e];this.connect(n.change,()=>this.set_data())}}set_data(e=!0){this.node_view.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0}),this.edge_view.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0});const t=this.node_view.glyph;[t._x,t._y]=this.model.layout_provider.get_node_coordinates(this.model.node_renderer.data_source);const n=this.edge_view.glyph;[n._xs,n._ys]=this.model.layout_provider.get_edge_coordinates(this.model.edge_renderer.data_source),t.index_data(),n.index_data(),e&&this.request_render()}render(){this.edge_view.render(),this.node_view.render()}}n.GraphRendererView=_,_.__name__="GraphRendererView";class o extends r.DataRenderer{constructor(e){super(e)}static init_GraphRenderer(){this.prototype.default_view=_,this.define({layout_provider:[i.Instance],node_renderer:[i.Instance],edge_renderer:[i.Instance],selection_policy:[i.Instance,()=>new a.NodesOnly],inspection_policy:[i.Instance,()=>new a.NodesOnly]})}get_selection_manager(){return this.node_renderer.data_source.selection_manager}}n.GraphRenderer=o,o.__name__="GraphRenderer",o.init_GraphRenderer()},n”, ” function _(e,t,d){Object.defineProperty(d,"__esModule",{value:!0});const n=e(69),s=e(12),o=e(9),_=e(87);class i extends n.Model{constructor(e){super(e)}_hit_test_nodes(e,t){if(!t.model.visible)return null;const d=t.node_view.glyph.hit_test(e);return null==d?null:t.node_view.model.view.convert_selection_from_subset(d)}_hit_test_edges(e,t){if(!t.model.visible)return null;const d=t.edge_view.glyph.hit_test(e);return null==d?null:t.edge_view.model.view.convert_selection_from_subset(d)}}d.GraphHitTestPolicy=i,i.__name__="GraphHitTestPolicy";class r extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_nodes(e,t)}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;return s.update(e,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.model.get_selection_manager().get_or_create_inspector(d.node_view.model);return o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view,{geometry:t}]),!o.is_empty()}}d.NodesOnly=r,r.__name__="NodesOnly";class c extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_nodes(e,t)}get_linked_edges(e,t,d){let n=[];"selection"==d?n=e.selected.indices.map(t=>e.data.index[t]):"inspection"==d&&(n=e.inspected.indices.map(t=>e.data.index[t]));const s=[];for(let e=0;e<t.data.start.length;e++)(o.contains(n,t.data.start[e])||o.contains(n,t.data.end[e]))&&s.push(e);const i=_.create_empty_hit_test_result();for(const e of s)i.multiline_indices[e]=[0];return i.indices=s,i}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;s.update(e,d,n);const o=t.edge_renderer.data_source.selected,_=this.get_linked_edges(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.update(_,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model);o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0});const _=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model),i=this.get_linked_edges(d.node_view.model.data_source,d.edge_view.model.data_source,"inspection");return _.update(i,n,s),d.edge_view.model.data_source.setv({inspected:_},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view,{geometry:t}]),!o.is_empty()}}d.NodesAndLinkedEdges=c,c.__name__="NodesAndLinkedEdges";class a extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_edges(e,t)}get_linked_nodes(e,t,d){let n=[];"selection"==d?n=t.selected.indices:"inspection"==d&&(n=t.inspected.indices);const i=[];for(const e of n)i.push(t.data.start[e]),i.push(t.data.end[e]);const r=o.uniq(i).map(t=>s.indexOf(e.data.index,t)),c=_.create_empty_hit_test_result();return c.indices=r,c}do_selection(e,t,d,n){if(null==e)return!1;const s=t.edge_renderer.data_source.selected;s.update(e,d,n);const o=t.node_renderer.data_source.selected,_=this.get_linked_nodes(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.update(_,d,n),t.edge_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model);o.update(e,n,s),d.edge_view.model.data_source.setv({inspected:o},{silent:!0});const _=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model),i=this.get_linked_nodes(d.node_view.model.data_source,d.edge_view.model.data_source,"inspection");return _.update(i,n,s),d.node_view.model.data_source.setv({inspected:_},{silent:!0}),d.edge_view.model.data_source.inspect.emit([d.edge_view,{geometry:t}]),!o.is_empty()}}d.EdgesAndLinkedNodes=a,a.__name__="EdgesAndLinkedNodes"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(69);class o extends s.Model{do_selection(e,t,n,s){return null!==e&&(t.selected.update(e,n,s),t._select.emit(),!t.selected.is_empty())}}n.SelectionPolicy=o,o.__name__="SelectionPolicy";class r extends o{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!==t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_intersection(t);return e}return null}}n.IntersectRenderers=r,r.__name__="IntersectRenderers";class c extends o{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!==t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_union(t);return e}return null}}n.UnionRenderers=c,c.__name__="UnionRenderers"},n”, ” function _(r,n,t){Object.defineProperty(t,"__esModule",{value:!0});const e=r(8),a=r(101);function o(r){const n=new Uint8Array(r.buffer,r.byteOffset,2*r.length);for(let r=0,t=n.length;r<t;r+=2){const t=n[r];n[r]=n[r+1],n[r+1]=t}}function i(r){const n=new Uint8Array(r.buffer,r.byteOffset,4*r.length);for(let r=0,t=n.length;r<t;r+=4){let t=n[r];n[r]=n[r+3],n[r+3]=t,t=n[r+1],n[r+1]=n[r+2],n[r+2]=t}}function s(r){const n=new Uint8Array(r.buffer,r.byteOffset,8*r.length);for(let r=0,t=n.length;r<t;r+=8){let t=n[r];n[r]=n[r+7],n[r+7]=t,t=n[r+1],n[r+1]=n[r+6],n[r+6]=t,t=n[r+2],n[r+2]=n[r+5],n[r+5]=t,t=n[r+3],n[r+3]=n[r+4],n[r+4]=t}}function c(r,n){const e=r.order!==t.BYTE_ORDER,{shape:a}=r;let c=null;for(const t of n){if(JSON.parse(t[0]).id===r.__buffer__){c=t[1];break}}const f=new t.ARRAY_TYPES[r.dtype](c);return e&&(2===f.BYTES_PER_ELEMENT?o(f):4===f.BYTES_PER_ELEMENT?i(f):8===f.BYTES_PER_ELEMENT&&s(f)),[f,a]}function f(r,n){return e.isObject(r)&&"__ndarray__"in r?A(r):e.isObject(r)&&"__buffer__"in r?c(r,n):e.isArray(r)||e.isTypedArray(r)?[r,[]]:void 0}function u(r){const n=new Uint8Array(r),t=Array.from(n).map(r=>String.fromCharCode(r));return btoa(t.join(""))}function y(r){const n=atob(r),t=n.length,e=new Uint8Array(t);for(let r=0,a=t;r<a;r++)e[r]=n.charCodeAt(r);return e.buffer}function A(r){const n=y(r.__ndarray__),e=r.dtype,a=r.shape;let o;if(!(e in t.ARRAY_TYPES))throw new Error(unknown dtype: ${e});return o=new t.ARRAY_TYPES[e](n),[o,a]}function l(r,n){const e=u(r.buffer),a=function(r){if("name"in r.constructor)return r.constructor.name;switch(!0){case r instanceof Uint8Array:return"Uint8Array";case r instanceof Int8Array:return"Int8Array";case r instanceof Uint16Array:return"Uint16Array";case r instanceof Int16Array:return"Int16Array";case r instanceof Uint32Array:return"Uint32Array";case r instanceof Int32Array:return"Int32Array";case r instanceof Float32Array:return"Float32Array";case r instanceof Float64Array:return"Float64Array";default:throw new Error("unsupported typed array")}}(r);let o;if(!(a in t.DTYPES))throw new Error(unknown array type: ${a});return o=t.DTYPES[a],{__ndarray__:e,shape:n,dtype:o}}function _(r,n){if(0==r.length||!e.isObject(r[0])&&!e.isArray(r[0]))return[r,[]];const t=[],a=[];for(const o of r){const[r,i]=e.isArray(o)?_(o,n):f(o,n);t.push(r),a.push(i)}return[t,a.map(r=>r.filter(r=>0!=r.length))]}function d(r,n){const t=[];for(let a=0,o=r.length;a<o;a++){const o=r[a];if(e.isTypedArray(o)){const r=n[a]?n[a]:void 0;t.push(l(o,r))}else e.isArray(o)?t.push(d(o,n?n[a]:[])):t.push(o)}return t}t.ARRAY_TYPES={uint8:Uint8Array,int8:Int8Array,uint16:Uint16Array,int16:Int16Array,uint32:Uint32Array,int32:Int32Array,float32:Float32Array,float64:Float64Array},t.DTYPES={Uint8Array:"uint8",Int8Array:"int8",Uint16Array:"uint16",Int16Array:"int16",Uint32Array:"uint32",Int32Array:"int32",Float32Array:"float32",Float64Array:"float64"},t.BYTE_ORDER=a.is_little_endian?"little":"big",t.swap16=o,t.swap32=i,t.swap64=s,t.process_buffer=c,t.process_array=f,t.arrayBufferToBase64=u,t.base64ToArrayBuffer=y,t.decode_base64=A,t.encode_base64=l,t.decode_column_data=function(r,n=[]){const t={},a={};for(const o in r){const i=r[o];if(e.isArray(i)){if(0==i.length||!e.isObject(i[0])&&!e.isArray(i[0])){t[o]=i;continue}const[r,s]=_(i,n);t[o]=r,a[o]=s}else{const[r,e]=f(i,n);t[o]=r,a[o]=e}}return[t,a]},t.encode_column_data=function(r,n){const t={};for(const a in r){const o=r[a],i=null!=n?n[a]:void 0;let s;s=e.isTypedArray(o)?l(o,i):e.isArray(o)?d(o,i||[]):o,t[a]=s}return t}},n”, ” function _(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.is_ie=(()=>{const e="undefined"!=typeof navigator?navigator.userAgent:"";return e.indexOf("MSIE")>=0||e.indexOf("Trident")>0||e.indexOf("Edge")>0})(),i.is_mobile="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0),i.is_little_endian=(()=>{const e=new ArrayBuffer(4),n=new Uint8Array(e);new Uint32Array(e)[1]=168496141;let i=!0;return 10==n[4]&&11==n[5]&&12==n[6]&&13==n[7]&&(i=!1),i})()},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.concat=function(t,…e){let n=t.length;for(const t of e)n+=t.length;const o=new t.constructor(n);o.set(t,0);let c=t.length;for(const t of e)o.set(t,c),c+=t.length;return o}},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(13);class o{constructor(e){this.document=e}}s.DocumentChangedEvent=o,o.__name__="DocumentChangedEvent";class r extends o{constructor(e,t,s){super(e),this.msg_type=t,this.msg_data=s}json(e){const t=this.msg_data,s=n.HasProps._value_to_json("",t,null);return n.HasProps._value_record_references(t,{},!0),{kind:"MessageSent",msg_type:this.msg_type,msg_data:s}}}s.MessageSentEvent=r,r.__name__="MessageSentEvent";class d extends o{constructor(e,t,s,n,o,r,d){super(e),this.model=t,this.attr=s,this.old=n,this.new_=o,this.setter_id=r,this.hint=d}json(e){if("id"===this.attr)throw new Error("’id’ field should never change, whatever code just set it is wrong");if(null!=this.hint)return this.hint.json(e);const t=this.new_,s=n.HasProps._value_to_json(this.attr,t,this.model),o={};n.HasProps._value_record_references(t,o,!0),this.model.id in o&&this.model!==t&&delete o[this.model.id];for(const t in o)e[t]=o[t];return{kind:"ModelChanged",model:this.model.ref(),attr:this.attr,new:s}}}s.ModelChangedEvent=d,d.__name__="ModelChangedEvent";class i extends o{constructor(e,t,s){super(e),this.column_source=t,this.patches=s}json(e){return{kind:"ColumnsPatched",column_source:this.column_source,patches:this.patches}}}s.ColumnsPatchedEvent=i,i.__name__="ColumnsPatchedEvent";class _ extends o{constructor(e,t,s,n){super(e),this.column_source=t,this.data=s,this.rollover=n}json(e){return{kind:"ColumnsStreamed",column_source:this.column_source,data:this.data,rollover:this.rollover}}}s.ColumnsStreamedEvent=_,_.__name__="ColumnsStreamedEvent";class a extends o{constructor(e,t,s){super(e),this.title=t,this.setter_id=s}json(e){return{kind:"TitleChanged",title:this.title}}}s.TitleChangedEvent=a,a.__name__="TitleChangedEvent";class l extends o{constructor(e,t,s){super(e),this.model=t,this.setter_id=s}json(e){return n.HasProps._value_record_references(this.model,e,!0),{kind:"RootAdded",model:this.model.ref()}}}s.RootAddedEvent=l,l.__name__="RootAddedEvent";class h extends o{constructor(e,t,s){super(e),this.model=t,this.setter_id=s}json(e){return{kind:"RootRemoved",model:this.model.ref()}}}s.RootRemovedEvent=h,h.__name__="RootRemovedEvent"},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),_=e(29),o=e(73),l=i.__importStar(e(19));class a extends _.AnnotationView{initialize(){super.initialize(),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source)),this.connect(this.model.source.change,()=>this.set_data(this.model.source))}set_data(e){super.set_data(e),this.visuals.warm_cache(e),this.plot_view.request_render()}_map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=e.xscales[this.model.x_range_name],i=e.yscales[this.model.y_range_name],_="height"==t?i:s,o="height"==t?s:i,l="height"==t?e.yview:e.xview,a="height"==t?e.xview:e.yview;let n,h,r;n="data"==this.model.properties.lower.units?_.v_compute(this._lower):l.v_compute(this._lower),h="data"==this.model.properties.upper.units?_.v_compute(this._upper):l.v_compute(this._upper),r="data"==this.model.properties.base.units?o.v_compute(this._base):a.v_compute(this._base);const[c,p]="height"==t?[1,0]:[0,1],u=[n,r],d=[h,r];this._lower_sx=u[c],this._lower_sy=u[p],this._upper_sx=d[c],this._upper_sy=d[p]}render(){if(!this.model.visible)return;this._map_data();const{ctx:e}=this.plot_view.canvas_view;e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let t=0,s=this._lower_sx.length;t<s;t++)e.lineTo(this._lower_sx[t],this._lower_sy[t]);for(let t=this._upper_sx.length-1;t>=0;t–)e.lineTo(this._upper_sx[t],this._upper_sy[t]);e.closePath(),this.visuals.fill.doit&&(this.visuals.fill.set_value(e),e.fill()),e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let t=0,s=this._lower_sx.length;t<s;t++)e.lineTo(this._lower_sx[t],this._lower_sy[t]);this.visuals.line.doit&&(this.visuals.line.set_value(e),e.stroke()),e.beginPath(),e.moveTo(this._upper_sx[0],this._upper_sy[0]);for(let t=0,s=this._upper_sx.length;t<s;t++)e.lineTo(this._upper_sx[t],this._upper_sy[t]);this.visuals.line.doit&&(this.visuals.line.set_value(e),e.stroke())}}s.BandView=a,a.__name__="BandView";class n extends _.Annotation{constructor(e){super(e)}static init_Band(){this.prototype.default_view=a,this.mixins(["line","fill"]),this.define({lower:[l.DistanceSpec],upper:[l.DistanceSpec],base:[l.DistanceSpec],dimension:[l.Dimension,"height"],source:[l.Instance,()=>new o.ColumnDataSource],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}}s.Band=n,n.__name__="Band",n.init_Band()},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(1),l=t(29),o=t(14),n=t(66),a=s.__importStar(t(19)),h=t(85),r=t(106);e.EDGE_TOLERANCE=2.5;class d extends l.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),this.el.classList.add(r.bk_shading),n.undisplay(this.el)}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?(this.connect(this.model.change,()=>this.render()),this.connect(this.model.data_update,()=>this.render())):(this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.data_update,()=>this.plot_view.request_render()))}render(){if(this.model.visible||"css"!=this.model.render_mode||n.undisplay(this.el),!this.model.visible)return;if(null==this.model.left&&null==this.model.right&&null==this.model.top&&null==this.model.bottom)return void n.undisplay(this.el);const{frame:t}=this.plot_view,i=t.xscales[this.model.x_range_name],e=t.yscales[this.model.y_range_name],s=(t,i,e,s,l)=>{let o;return o=null!=t?this.model.screen?t:"data"==i?e.compute(t):s.compute(t):l,o};this.sleft=s(this.model.left,this.model.left_units,i,t.xview,t._left.value),this.sright=s(this.model.right,this.model.right_units,i,t.xview,t._right.value),this.stop=s(this.model.top,this.model.top_units,e,t.yview,t._top.value),this.sbottom=s(this.model.bottom,this.model.bottom_units,e,t.yview,t._bottom.value),("css"==this.model.render_mode?this._css_box.bind(this):this._canvas_box.bind(this))(this.sleft,this.sright,this.sbottom,this.stop)}_css_box(t,i,e,s){const l=this.model.properties.line_width.value(),o=Math.floor(i-t)-l,a=Math.floor(e-s)-l;this.el.style.left=`${t}px`,this.el.style.width=`${o}px`,this.el.style.top=`${s}px`,this.el.style.height=`${a}px`,this.visuals.line.doit&&(this.el.style.borderWidth=`${l}px`,this.el.style.borderColor=this.model.properties.line_color.value()),this.visuals.fill.doit&&(this.el.style.backgroundColor=this.model.properties.fill_color.value(),this.el.style.opacity=this.model.properties.fill_alpha.value());const h=this.model.properties.line_dash.value().length<2?"solid":"dashed";this.el.style.borderStyle=h,n.display(this.el)}_canvas_box(t,i,e,s){const{ctx:l}=this.plot_view.canvas_view;l.save(),l.beginPath(),l.rect(t,s,i-t,e-s),this.visuals.fill.doit&&(this.visuals.fill.set_value(l),l.fill()),this.visuals.line.doit&&(this.visuals.line.set_value(l),l.stroke()),l.restore()}interactive_bbox(){const t=this.model.properties.line_width.value()+e.EDGE_TOLERANCE;return new h.BBox({x0:this.sleft-t,y0:this.stop-t,x1:this.sright+t,y1:this.sbottom+t})}interactive_hit(t,i){if(null==this.model.in_cursor)return!1;return this.interactive_bbox().contains(t,i)}cursor(t,i){return Math.abs(t-this.sleft)<3||Math.abs(t-this.sright)<3?this.model.ew_cursor:Math.abs(i-this.sbottom)<3||Math.abs(i-this.stop)<3?this.model.ns_cursor:t>this.sleft&&t<this.sright&&i>this.stop&&i<this.sbottom?this.model.in_cursor:null}}e.BoxAnnotationView=d,d.__name__="BoxAnnotationView";class _ extends l.Annotation{constructor(t){super(t)}static init_BoxAnnotation(){this.prototype.default_view=d,this.mixins(["line","fill"]),this.define({render_mode:[a.RenderMode,"canvas"],x_range_name:[a.String,"default"],y_range_name:[a.String,"default"],top:[a.Number,null],top_units:[a.SpatialUnits,"data"],bottom:[a.Number,null],bottom_units:[a.SpatialUnits,"data"],left:[a.Number,null],left_units:[a.SpatialUnits,"data"],right:[a.Number,null],right_units:[a.SpatialUnits,"data"]}),this.internal({screen:[a.Boolean,!1],ew_cursor:[a.String,null],ns_cursor:[a.String,null],in_cursor:[a.String,null]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}initialize(){super.initialize(),this.data_update=new o.Signal0(this,"data_update")}update({left:t,right:i,top:e,bottom:s}){this.setv({left:t,right:i,top:e,bottom:s,screen:!0},{silent:!0}),this.data_update.emit()}}e.BoxAnnotation=_,_.__name__="BoxAnnotation",_.init_BoxAnnotation()},n”, ” function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const a=n(1);n(67),a.__importStar(n(66)).styles.append(".bk-root .bk-shading {\n position: absolute;\n display: block;\n border: 1px dashed green;\n}\n"),t.bk_annotation="bk-annotation",t.bk_shading="bk-shading",t.bk_annotation_child="bk-annotation-child"},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1),s=t(29),a=t(108),l=t(112),r=t(114),n=t(119),_=t(129),h=t(130),m=o.__importStar(t(19)),d=o.__importStar(t(131)),c=t(9),u=t(12),p=t(24),g=t(8),f=t(11);class b extends s.AnnotationView{initialize(){super.initialize(),this._set_canvas_image()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.visible.change,()=>this.plot_view.request_render()),this.connect(this.model.ticker.change,()=>this.plot_view.request_render()),this.connect(this.model.formatter.change,()=>this.plot_view.request_render()),null!=this.model.color_mapper&&this.connect(this.model.color_mapper.change,()=>{this._set_canvas_image(),this.plot_view.request_render()})}_get_size(){if(null==this.model.color_mapper)return{width:0,height:0};{const{width:t,height:e}=this.compute_legend_dimensions();return{width:t,height:e}}}_set_canvas_image(){if(null==this.model.color_mapper)return;let t,e,{palette:i}=this.model.color_mapper;switch("vertical"==this.model.orientation&&(i=c.reversed(i)),this.model.orientation){case"vertical":[t,e]=[1,i.length];break;case"horizontal":[t,e]=[i.length,1]}const o=document.createElement("canvas");o.width=t,o.height=e;const s=o.getContext("2d"),a=s.getImageData(0,0,t,e),l=new r.LinearColorMapper({palette:i}).rgba_mapper.v_compute(c.range(0,i.length));a.data.set(l),s.putImageData(a,0,0),this.image=o}compute_legend_dimensions(){const t=this._computed_image_dimensions(),[e,i]=[t.height,t.width],o=this._get_label_extent(),s=this._title_extent(),a=this._tick_extent(),{padding:l}=this.model;let r,n;switch(this.model.orientation){case"vertical":r=e+s+2*l,n=i+a+o+2*l;break;case"horizontal":r=e+s+a+o+2*l,n=i+2*l}return{width:n,height:r}}compute_legend_location(){const t=this.compute_legend_dimensions(),[e,i]=[t.height,t.width],o=this.model.margin,s=null!=this.panel?this.panel:this.plot_view.frame,[a,l]=s.bbox.ranges,{location:r}=this.model;let n,_;if(g.isString(r))switch(r){case"top_left":n=a.start+o,_=l.start+o;break;case"top_center":n=(a.end+a.start)/2-i/2,_=l.start+o;break;case"top_right":n=a.end-o-i,_=l.start+o;break;case"bottom_right":n=a.end-o-i,_=l.end-o-e;break;case"bottom_center":n=(a.end+a.start)/2-i/2,_=l.end-o-e;break;case"bottom_left":n=a.start+o,_=l.end-o-e;break;case"center_left":n=a.start+o,_=(l.end+l.start)/2-e/2;break;case"center":n=(a.end+a.start)/2-i/2,_=(l.end+l.start)/2-e/2;break;case"center_right":n=a.end-o-i,_=(l.end+l.start)/2-e/2}else if(g.isArray(r)&&2==r.length){const[t,i]=r;n=s.xview.compute(t),_=s.yview.compute(i)-e}else f.unreachable();return{sx:n,sy:_}}render(){if(!this.model.visible||null==this.model.color_mapper)return;const{ctx:t}=this.plot_view.canvas_view;t.save();const{sx:e,sy:i}=this.compute_legend_location();t.translate(e,i),this._draw_bbox(t);const o=this._get_image_offset();if(t.translate(o.x,o.y),this._draw_image(t),null!=this.model.color_mapper.low&&null!=this.model.color_mapper.high){const e=this.tick_info();this._draw_major_ticks(t,e),this._draw_minor_ticks(t,e),this._draw_major_labels(t,e)}this.model.title&&this._draw_title(t),t.restore()}_draw_bbox(t){const e=this.compute_legend_dimensions();t.save(),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(0,0,e.width,e.height)),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.strokeRect(0,0,e.width,e.height)),t.restore()}_draw_image(t){const e=this._computed_image_dimensions();t.save(),t.setImageSmoothingEnabled(!1),t.globalAlpha=this.model.scale_alpha,t.drawImage(this.image,0,0,e.width,e.height),this.visuals.bar_line.doit&&(this.visuals.bar_line.set_value(t),t.strokeRect(0,0,e.width,e.height)),t.restore()}_draw_major_ticks(t,e){if(!this.visuals.major_tick_line.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],[r,n]=e.coords.major,_=this.model.major_tick_in,h=this.model.major_tick_out;t.save(),t.translate(a,l),this.visuals.major_tick_line.set_value(t);for(let e=0,s=r.length;e<s;e++)t.beginPath(),t.moveTo(Math.round(r[e]+i*h),Math.round(n[e]+o*h)),t.lineTo(Math.round(r[e]-i*_),Math.round(n[e]-o*_)),t.stroke();t.restore()}_draw_minor_ticks(t,e){if(!this.visuals.minor_tick_line.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],[r,n]=e.coords.minor,_=this.model.minor_tick_in,h=this.model.minor_tick_out;t.save(),t.translate(a,l),this.visuals.minor_tick_line.set_value(t);for(let e=0,s=r.length;e<s;e++)t.beginPath(),t.moveTo(Math.round(r[e]+i*h),Math.round(n[e]+o*h)),t.lineTo(Math.round(r[e]-i*_),Math.round(n[e]-o*_)),t.stroke();t.restore()}_draw_major_labels(t,e){if(!this.visuals.major_label_text.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],r=this.model.label_standoff+this._tick_extent(),[n,_]=[r*i,r*o],[h,m]=e.coords.major,d=e.labels.major;this.visuals.major_label_text.set_value(t),t.save(),t.translate(a+n,l+_);for(let e=0,s=h.length;e<s;e++)t.fillText(d[e],Math.round(h[e]+i*this.model.label_standoff),Math.round(m[e]+o*this.model.label_standoff));t.restore()}_draw_title(t){this.visuals.title_text.doit&&(t.save(),this.visuals.title_text.set_value(t),t.fillText(this.model.title,0,-this.model.title_standoff),t.restore())}_get_label_extent(){const t=this.tick_info().labels.major;let e;if(null==this.model.color_mapper.low||null==this.model.color_mapper.high||p.isEmpty(t))e=0;else{const{ctx:i}=this.plot_view.canvas_view;switch(i.save(),this.visuals.major_label_text.set_value(i),this.model.orientation){case"vertical":e=c.max(t.map(t=>i.measureText(t.toString()).width));break;case"horizontal":e=d.measure_font(this.visuals.major_label_text.font_value()).height}e+=this.model.label_standoff,i.restore()}return e}_get_image_offset(){return{x:this.model.padding,y:this.model.padding+this._title_extent()}}_normals(){return"vertical"==this.model.orientation?[1,0]:[0,1]}_title_extent(){const t=this.model.title_text_font+" "+this.model.title_text_font_size+" "+this.model.title_text_font_style;return this.model.title?d.measure_font(t).height+this.model.title_standoff:0}_tick_extent(){return null!=this.model.color_mapper.low&&null!=this.model.color_mapper.high?c.max([this.model.major_tick_out,this.model.minor_tick_out]):0}_computed_image_dimensions(){const t=this.plot_view.frame._height.value,e=this.plot_view.frame._width.value,i=this._title_extent();let o,s;switch(this.model.orientation){case"vertical":"auto"==this.model.height?null!=this.panel?o=t-2*this.model.padding-i:(o=c.max([25*this.model.color_mapper.palette.length,.3*t]),o=c.min([o,.8*t-2*this.model.padding-i])):o=this.model.height,s="auto"==this.model.width?25:this.model.width;break;case"horizontal":o="auto"==this.model.height?25:this.model.height,"auto"==this.model.width?null!=this.panel?s=e-2*this.model.padding:(s=c.max([25*this.model.color_mapper.palette.length,.3*e]),s=c.min([s,.8*e-2*this.model.padding])):s=this.model.width}return{width:s,height:o}}_tick_coordinate_scale(t){const e={source_range:new h.Range1d({start:this.model.color_mapper.low,end:this.model.color_mapper.high}),target_range:new h.Range1d({start:0,end:t})};switch(this.model.color_mapper.type){case"LinearColorMapper":return new n.LinearScale(e);case"LogColorMapper":return new _.LogScale(e);default:f.unreachable()}}_format_major_labels(t,e){const i=this.model.formatter.doFormat(t,null);for(let t=0,o=e.length;t<o;t++)e[t]in this.model.major_label_overrides&&(i[t]=this.model.major_label_overrides[e[t]]);return i}tick_info(){const t=this._computed_image_dimensions();let e;switch(this.model.orientation){case"vertical":e=t.height;break;case"horizontal":e=t.width}const i=this._tick_coordinate_scale(e),[o,s]=this._normals(),[a,l]=[this.model.color_mapper.low,this.model.color_mapper.high],r=this.model.ticker.get_ticks(a,l,null,null,this.model.ticker.desired_num_ticks),n=r.major,_=r.minor,h=[[],[]],m=[[],[]];for(let t=0,e=n.length;t<e;t++)n[t]<a||n[t]>l||(h[o].push(n[t]),h[s].push(0));for(let t=0,e=_.length;t<e;t++)_[t]<a||_[t]>l||(m[o].push(_[t]),m[s].push(0));const d={major:this._format_major_labels(h[o],n)},c={major:[[],[]],minor:[[],[]]};return c.major[o]=i.v_compute(h[o]),c.minor[o]=i.v_compute(m[o]),c.major[s]=h[s],c.minor[s]=m[s],"vertical"==this.model.orientation&&(c.major[o]=u.map(c.major[o],t=>e-t),c.minor[o]=u.map(c.minor[o],t=>e-t)),{coords:c,labels:d}}}i.ColorBarView=b,b.__name__="ColorBarView";class v extends s.Annotation{constructor(t){super(t)}static init_ColorBar(){this.prototype.default_view=b,this.mixins(["text:major_label_","text:title_","line:major_tick_","line:minor_tick_","line:border_","line:bar_","fill:background_"]),this.define({location:[m.Any,"top_right"],orientation:[m.Orientation,"vertical"],title:[m.String],title_standoff:[m.Number,2],width:[m.Any,"auto"],height:[m.Any,"auto"],scale_alpha:[m.Number,1],ticker:[m.Instance,()=>new a.BasicTicker],formatter:[m.Instance,()=>new l.BasicTickFormatter],major_label_overrides:[m.Any,{}],color_mapper:[m.Instance],label_standoff:[m.Number,5],margin:[m.Number,30],padding:[m.Number,10],major_tick_in:[m.Number,5],major_tick_out:[m.Number,0],minor_tick_in:[m.Number,0],minor_tick_out:[m.Number,0]}),this.override({background_fill_color:"#ffffff",background_fill_alpha:.95,bar_line_color:null,border_line_color:null,major_label_text_align:"center",major_label_text_baseline:"middle",major_label_text_font_size:"11px",major_tick_line_color:"#ffffff",minor_tick_line_color:null,title_text_font_size:"13px",title_text_font_style:"italic"})}}i.ColorBar=v,v.__name__="ColorBar",v.init_ColorBar()},n”, ” function _(e,c,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(109);class r extends i.AdaptiveTicker{constructor(e){super(e)}}s.BasicTicker=r,r.__name__="BasicTicker"},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const a=t(1),s=t(110),n=t(9),r=a.__importStar(t(19));class _ extends s.ContinuousTicker{constructor(t){super(t)}static init_AdaptiveTicker(){this.define({base:[r.Number,10],mantissas:[r.Array,[1,2,5]],min_interval:[r.Number,0],max_interval:[r.Number]})}initialize(){super.initialize();const t=n.nth(this.mantissas,-1)/this.base,i=n.nth(this.mantissas,0)*this.base;this.extended_mantissas=[t,…this.mantissas,i],this.base_factor=0===this.get_min_interval()?1:this.get_min_interval()}get_interval(t,i,e){const a=i-t,s=this.get_ideal_interval(t,i,e),r=Math.floor(function(t,i=Math.E){return Math.log(t)/Math.log(i)}(s/this.base_factor,this.base)),_=this.base**r*this.base_factor,h=this.extended_mantissas,m=h.map(t=>Math.abs(e-a/(t*_))),o=h[n.argmin(m)];return c=o*_,l=this.get_min_interval(),u=this.get_max_interval(),Math.max(l,Math.min(u,c));var c,l,u}}e.AdaptiveTicker=_,_.__name__="AdaptiveTicker",_.init_AdaptiveTicker()},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const n=t(1),r=t(111),s=n.__importStar(t(19)),o=t(9),_=t(8);class c extends r.Ticker{constructor(t){super(t)}static init_ContinuousTicker(){this.define({num_minor_ticks:[s.Number,5],desired_num_ticks:[s.Number,6]})}get_ticks(t,i,e,n,r){return this.get_ticks_no_defaults(t,i,n,this.desired_num_ticks)}get_ticks_no_defaults(t,i,e,n){const r=this.get_interval(t,i,n),s=Math.floor(t/r),c=Math.ceil(i/r);let u;u=_.isStrictNaN(s)||_.isStrictNaN(c)?[]:o.range(s,c+1);const a=u.map(t=>t*r).filter(e=>t<=e&&e<=i),l=this.num_minor_ticks,m=[];if(l>0&&a.length>0){const e=r/l,n=o.range(0,l).map(t=>t*e);for(const e of n.slice(1)){const n=a[0]-e;t<=n&&n<=i&&m.push(n)}for(const e of a)for(const r of n){const n=e+r;t<=n&&n<=i&&m.push(n)}}return{major:a,minor:m}}get_min_interval(){return this.min_interval}get_max_interval(){return null!=this.max_interval?this.max_interval:1/0}get_ideal_interval(t,i,e){return(i-t)/e}}e.ContinuousTicker=c,c.__name__="ContinuousTicker",c.init_ContinuousTicker()},n”, ” function _(e,c,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(69);class r extends o.Model{constructor(e){super(e)}}n.Ticker=r,r.__name__="Ticker"},n”, ” function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=i(1),s=i(113),n=r.__importStar(i(19));class o extends s.TickFormatter{constructor(i){super(i),this.last_precision=3}static init_BasicTickFormatter(){this.define({precision:[n.Any,"auto"],use_scientific:[n.Boolean,!0],power_limit_high:[n.Number,5],power_limit_low:[n.Number,-3]})}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}_need_sci(i){if(!this.use_scientific)return!1;const{scientific_limit_high:t}=this,{scientific_limit_low:e}=this,r=i.length<2?0:Math.abs(i[1]-i[0])/1e4;for(const s of i){const i=Math.abs(s);if(!(i<=r)&&(i>=t||i<=e))return!0}return!1}_format_with_precision(i,t,e){const r=new Array(i.length);if(t)for(let t=0,s=i.length;t<s;t++)r[t]=i[t].toExponential(e);else for(let t=0,s=i.length;t<s;t++)r[t]=i[t].toFixed(e).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");return r}_auto_precision(i,t){const e=new Array(i.length),r=this.last_precision<=15;i:for(let s=this.last_precision;r?s<=15:s>=1;r?s++:s–){if(t){e[0]=i[0].toExponential(s);for(let t=1;t<i.length;t++)if(e[t]==e[t-1])continue i;this.last_precision=s;break}e[0]=i[0].toFixed(s).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");for(let t=1;t<i.length;t++)if(e[t]=i[t].toFixed(s).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,""),e[t]==e[t-1])continue i;this.last_precision=s;break}return this.last_precision}doFormat(i,t){if(0==i.length)return[];const e=this._need_sci(i),r="auto"==this.precision?this._auto_precision(i,e):this.precision;return this._format_with_precision(i,e,r)}}e.BasicTickFormatter=o,o.__name__="BasicTickFormatter",o.init_BasicTickFormatter()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(69);class c extends r.Model{constructor(e){super(e)}}o.TickFormatter=c,c.__name__="TickFormatter"},n”, ” function _(o,n,l){Object.defineProperty(l,"__esModule",{value:!0});const e=o(115),t=o(12);class i extends e.ContinuousColorMapper{constructor(o){super(o)}_v_compute(o,n,l,e){const{nan_color:i,low_color:r,high_color:s}=e,c=null!=this.low?this.low:t.min(o),h=null!=this.high?this.high:t.max(o),u=l.length-1,a=1/(h-c),_=1/l.length;for(let e=0,t=o.length;e<t;e++){const t=o[e];if(isNaN(t)){n[e]=i;continue}if(t==h){n[e]=l[u];continue}const p=(t-c)*a,f=Math.floor(p/_);n[e]=f<0?null!=r?r:l[0]:f>u?null!=s?s:l[u]:l[f]}}}l.LinearColorMapper=i,i.__name__="LinearColorMapper"},n”, ” function _(o,r,l){Object.defineProperty(l,"__esModule",{value:!0});const i=o(1),t=o(116),e=i.__importStar(o(19));class s extends t.ColorMapper{constructor(o){super(o)}static init_ContinuousColorMapper(){this.define({high:[e.Number],low:[e.Number],high_color:[e.Color],low_color:[e.Color]})}_colors(o){return Object.assign(Object.assign({},super._colors(o)),{low_color:null!=this.low_color?o(this.low_color):void 0,high_color:null!=this.high_color?o(this.high_color):void 0})}}l.ContinuousColorMapper=s,s.__name__="ContinuousColorMapper",s.init_ContinuousColorMapper()},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const n=t(1),o=t(117),_=n.__importStar(t(19)),i=t(8),l=t(21),c=t(101);function a(t){return i.isNumber(t)?t:("#"!=t[0]&&(t=l.color2hex(t)),9!=t.length&&(t+="ff"),parseInt(t.slice(1),16))}function s(t){const e=new Uint32Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=a(t[r]);return e}function p(t){if(c.is_little_endian){const e=new DataView(t.buffer);for(let r=0,n=t.length;r<n;r++)e.setUint32(4*r,t[r])}return new Uint8Array(t.buffer)}r._convert_color=a,r._convert_palette=s,r._uint32_to_rgba=p;class u extends o.Mapper{constructor(t){super(t)}static init_ColorMapper(){this.define({palette:[_.Any],nan_color:[_.Color,"gray"]})}v_compute(t){const e=new Array(t.length);return this._v_compute(t,e,this.palette,this._colors(t=>t)),e}get rgba_mapper(){const t=this,e=s(this.palette),r=this._colors(a);return{v_compute(n){const o=new Uint32Array(n.length);return t._v_compute(n,o,e,r),p(o)}}}_colors(t){return{nan_color:t(this.nan_color)}}}r.ColorMapper=u,u.__name__="ColorMapper",u.init_ColorMapper()},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(118);class s extends o.Transform{constructor(e){super(e)}compute(e){throw new Error("mapping single values is not supported")}}n.Mapper=s,s.__name__="Mapper"},n”, ” function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(69);class s extends r.Model{constructor(e){super(e)}}o.Transform=s,s.__name__="Transform"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e(120);class _ extends r.ContinuousScale{constructor(e){super(e)}compute(e){return this._linear_compute(e)}v_compute(e){return this._linear_v_compute(e)}invert(e){return this._linear_invert(e)}v_invert(e){return this._linear_v_invert(e)}}n.LinearScale=_,_.__name__="LinearScale"},n”, ” function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});const c=e(121);class s extends c.Scale{constructor(e){super(e)}}o.ContinuousScale=s,s.__name__="ContinuousScale"},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const n=t(1),_=t(122),s=n.__importStar(t(19));class i extends _.Transform{constructor(t){super(t)}static init_Scale(){this.internal({source_range:[s.Any],target_range:[s.Any]})}r_compute(t,e){return this.target_range.is_reversed?[this.compute(e),this.compute(t)]:[this.compute(t),this.compute(e)]}r_invert(t,e){return this.target_range.is_reversed?[this.invert(e),this.invert(t)]:[this.invert(t),this.invert(e)]}_linear_compute(t){const[e,r]=this._linear_compute_state();return e*t+r}_linear_v_compute(t){const[e,r]=this._linear_compute_state(),n=new Float64Array(t.length);for(let _=0;_<t.length;_++)n[_]=e*t[_]+r;return n}_linear_invert(t){const[e,r]=this._linear_compute_state();return(t-r)/e}_linear_v_invert(t){const[e,r]=this._linear_compute_state(),n=new Float64Array(t.length);for(let _=0;_<t.length;_++)n[_]=(t[_]-r)/e;return n}_linear_compute_state(){const t=this.source_range.start,e=this.source_range.end,r=this.target_range.start,n=(this.target_range.end-r)/(e-t);return[n,-n*t+r]}}r.Scale=i,i.__name__="Scale",i.init_Scale()},n”, ” function _(r,o,t){Object.defineProperty(t,"__esModule",{value:!0});var e=r(123);t.CustomJSTransform=e.CustomJSTransform;var a=r(124);t.Dodge=a.Dodge;var n=r(125);t.Interpolator=n.Interpolator;var p=r(126);t.Jitter=p.Jitter;var l=r(127);t.LinearInterpolator=l.LinearInterpolator;var v=r(128);t.StepInterpolator=v.StepInterpolator;var s=r(118);t.Transform=s.Transform},n”, ” function _(t,r,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),e=t(118),a=n.__importStar(t(19)),o=t(24),u=t(26);class i extends e.Transform{constructor(t){super(t)}static init_CustomJSTransform(){this.define({args:[a.Any,{}],func:[a.String,""],v_func:[a.String,""]})}get names(){return o.keys(this.args)}get values(){return o.values(this.args)}_make_transform(t,r){return new Function(…this.names,t,u.use_strict(r))}get scalar_transform(){return this._make_transform("x",this.func)}get vector_transform(){return this._make_transform("xs",this.v_func)}compute(t){return this.scalar_transform(…this.values,t)}v_compute(t){return this.vector_transform(…this.values,t)}}s.CustomJSTransform=i,i.__name__="CustomJSTransform",i.init_CustomJSTransform()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(1),o=e(118),i=e(88),s=n.__importStar(e(19)),a=e(8);class c extends o.Transform{constructor(e){super(e)}static init_Dodge(){this.define({value:[s.Number,0],range:[s.Instance]})}v_compute(e){let t;if(this.range instanceof i.FactorRange)t=this.range.v_synthetic(e);else{if(!a.isArrayableOf(e,a.isNumber))throw new Error("unexpected");t=e}const r=new Float64Array(t.length);for(let e=0;e<t.length;e++){const n=t[e];r[e]=this._compute(n)}return r}compute(e){if(this.range instanceof i.FactorRange)return this._compute(this.range.synthetic(e));if(a.isNumber(e))return this._compute(e);throw new Error("unexpected")}_compute(e){return e+this.value}}r.Dodge=c,c.__name__="Dodge",c.init_Dodge()},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const s=t(1),o=t(118),n=s.__importStar(t(19)),i=t(9),a=t(8);class h extends o.Transform{constructor(t){super(t),this._sorted_dirty=!0}static init_Interpolator(){this.define({x:[n.Any],y:[n.Any],data:[n.Any],clip:[n.Boolean,!0]})}connect_signals(){super.connect_signals(),this.connect(this.change,()=>this._sorted_dirty=!0)}v_compute(t){const e=new Float64Array(t.length);for(let r=0;r<t.length;r++){const s=t[r];e[r]=this.compute(s)}return e}sort(t=!1){if(!this._sorted_dirty)return;let e,r;if(a.isString(this.x)&&a.isString(this.y)&&null!=this.data){const t=this.data.columns();if(!i.includes(t,this.x))throw new Error("The x parameter does not correspond to a valid column name defined in the data parameter");if(!i.includes(t,this.y))throw new Error("The y parameter does not correspond to a valid column name defined in the data parameter");e=this.data.get_column(this.x),r=this.data.get_column(this.y)}else{if(!a.isArray(this.x)||!a.isArray(this.y))throw new Error("parameters ‘x’ and ‘y’ must be both either string fields or arrays");e=this.x,r=this.y}if(e.length!==r.length)throw new Error("The length for x and y do not match");if(e.length<2)throw new Error("x and y must have at least two elements to support interpolation");const s=[];for(const t in e)s.push({x:e[t],y:r[t]});t?s.sort((t,e)=>t.x>e.x?-1:t.x==e.x?0:1):s.sort((t,e)=>t.x<e.x?-1:t.x==e.x?0:1),this._x_sorted=[],this._y_sorted=[];for(const{x:t,y:e}of s)this._x_sorted.push(t),this._y_sorted.push(e);this._sorted_dirty=!1}}r.Interpolator=h,h.__name__="Interpolator",h.init_Interpolator()},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),n=t(118),s=t(88),o=t(8),u=i.__importStar(t(19)),a=i.__importStar(t(10));class h extends n.Transform{constructor(t){super(t)}static init_Jitter(){this.define({mean:[u.Number,0],width:[u.Number,1],distribution:[u.Distribution,"uniform"],range:[u.Instance]}),this.internal({previous_values:[u.Array]})}v_compute(t){if(null!=this.previous_values&&this.previous_values.length==t.length)return this.previous_values;let e;if(this.range instanceof s.FactorRange)e=this.range.v_synthetic(t);else{if(!o.isArrayableOf(t,o.isNumber))throw new Error("unexpected");e=t}const r=new Float64Array(e.length);for(let t=0;t<e.length;t++){const i=e[t];r[t]=this._compute(i)}return this.previous_values=r,r}compute(t){if(this.range instanceof s.FactorRange)return this._compute(this.range.synthetic(t));if(o.isNumber(t))return this._compute(t);throw new Error("unexpected")}_compute(t){switch(this.distribution){case"uniform":return t+this.mean+(a.random()-.5)*this.width;case"normal":return t+a.rnorm(this.mean,this.width)}}}r.Jitter=h,h.__name__="Jitter",h.init_Jitter()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const _=t(9),r=t(125);class o extends r.Interpolator{constructor(t){super(t)}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}if(t==this._x_sorted[0])return this._y_sorted[0];const s=_.find_last_index(this._x_sorted,s=>s<t),e=this._x_sorted[s],r=this._x_sorted[s+1],o=this._y_sorted[s],i=this._y_sorted[s+1];return o+(t-e)/(r-e)*(i-o)}}e.LinearInterpolator=o,o.__name__="LinearInterpolator"},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const s=t(1),o=t(125),_=s.__importStar(t(19)),i=t(9);class n extends o.Interpolator{constructor(t){super(t)}static init_StepInterpolator(){this.define({mode:[_.StepMode,"after"]})}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}let e;switch(this.mode){case"after":e=i.find_last_index(this._x_sorted,e=>t>=e);break;case"before":e=i.find_index(this._x_sorted,e=>t<=e);break;case"center":{const r=this._x_sorted.map(e=>Math.abs(e-t)),s=i.min(r);e=i.find_index(r,t=>s===t);break}default:throw new Error(unknown mode: ${this.mode})}return-1!=e?this._y_sorted[e]:NaN}}r.StepInterpolator=n,n.__name__="StepInterpolator",n.init_StepInterpolator()},n”, ” function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const a=t(120);class s extends a.ContinuousScale{constructor(t){super(t)}compute(t){const[e,o,a,s]=this._compute_state();let n;if(0==a)n=0;else{const r=(Math.log(t)-s)/a;n=isFinite(r)?r*e+o:NaN}return n}v_compute(t){const[e,o,a,s]=this._compute_state(),n=new Float64Array(t.length);if(0==a)for(let e=0;e<t.length;e++)n[e]=0;else for(let r=0;r<t.length;r++){const l=(Math.log(t[r])-s)/a;let c;c=isFinite(l)?l*e+o:NaN,n[r]=c}return n}invert(t){const[e,o,a,s]=this._compute_state(),n=(t-o)/e;return Math.exp(a*n+s)}v_invert(t){const[e,o,a,s]=this._compute_state(),n=new Float64Array(t.length);for(let r=0;r<t.length;r++){const l=(t[r]-o)/e;n[r]=Math.exp(a*l+s)}return n}_get_safe_factor(t,e){let o=t<0?0:t,a=e<0?0:e;if(o==a)if(0==o)[o,a]=[1,10];else{const t=Math.log(o)/Math.log(10);o=10**Math.floor(t),a=Math.ceil(t)!=Math.floor(t)?10**Math.ceil(t):10**(Math.ceil(t)+1)}return[o,a]}_compute_state(){const t=this.source_range.start,e=this.source_range.end,o=this.target_range.start,a=this.target_range.end-o,[s,n]=this._get_safe_factor(t,e);let r,l;return 0==s?(r=Math.log(n),l=0):(r=Math.log(n)-Math.log(s),l=Math.log(s)),[a,o,r,l]}}o.LogScale=s,s.__name__="LogScale"},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(89),r=i.__importStar(t(19));class a extends n.Range{constructor(t){super(t)}static init_Range1d(){this.define({start:[r.Number,0],end:[r.Number,1],reset_start:[r.Number],reset_end:[r.Number]})}_set_auto_bounds(){if("auto"==this.bounds){const t=Math.min(this.reset_start,this.reset_end),e=Math.max(this.reset_start,this.reset_end);this.setv({bounds:[t,e]},{silent:!0})}}initialize(){super.initialize(),null==this.reset_start&&(this.reset_start=this.start),null==this.reset_end&&(this.reset_end=this.end),this._set_auto_bounds()}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}reset(){this._set_auto_bounds(),this.start!=this.reset_start||this.end!=this.reset_end?this.setv({start:this.reset_start,end:this.reset_end}):this.change.emit()}}s.Range1d=a,a.__name__="Range1d",a.init_Range1d()},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const o=t(66),i={};n.measure_font=function(t){if(null!=i[t])return i[t];const e=o.span({style:{font:t}},"Hg"),n=o.div({style:{display:"inline-block",width:"1px",height:"0px"}}),l=o.div({},e,n);document.body.appendChild(l);try{n.style.verticalAlign="baseline";const s=o.offset(n).top-o.offset(e).top;n.style.verticalAlign="bottom";const d=o.offset(n).top-o.offset(e).top,c={height:d,ascent:s,descent:d-s};return i[t]=c,c}finally{document.body.removeChild(l)}};const l={};n.measure_text=function(t,e){const n=l[e];if(null!=n){const e=n[t];if(null!=e)return e}else l[e]={};const i=o.div({style:{display:"inline-block","white-space":"nowrap",font:e}},t);document.body.appendChild(i);try{const{width:n,height:o}=i.getBoundingClientRect();return l[e][t]={width:n,height:o},{width:n,height:o}}finally{document.body.removeChild(i)}}},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),a=e(133),l=e(66),n=s.__importStar(e(19));class o extends a.TextAnnotationView{initialize(){super.initialize(),this.visuals.warm_cache()}_get_size(){const{ctx:e}=this.plot_view.canvas_view;this.visuals.text.set_value(e);const{width:t,ascent:i}=e.measureText(this.model.text);return{width:t,height:i}}render(){if(this.model.visible||"css"!=this.model.render_mode||l.undisplay(this.el),!this.model.visible)return;let e;switch(this.model.angle_units){case"rad":e=-this.model.angle;break;case"deg":e=-this.model.angle*Math.PI/180}const t=null!=this.panel?this.panel:this.plot_view.frame,i=this.plot_view.frame.xscales[this.model.x_range_name],s=this.plot_view.frame.yscales[this.model.y_range_name];let a="data"==this.model.x_units?i.compute(this.model.x):t.xview.compute(this.model.x),n="data"==this.model.y_units?s.compute(this.model.y):t.yview.compute(this.model.y);a+=this.model.x_offset,n-=this.model.y_offset,("canvas"==this.model.render_mode?this._canvas_text.bind(this):this._css_text.bind(this))(this.plot_view.canvas_view.ctx,this.model.text,a,n,e)}}i.LabelView=o,o.__name__="LabelView";class _ extends a.TextAnnotation{constructor(e){super(e)}static init_Label(){this.prototype.default_view=o,this.mixins(["text","line:border_","fill:background_"]),this.define({x:[n.Number],x_units:[n.SpatialUnits,"data"],y:[n.Number],y_units:[n.SpatialUnits,"data"],text:[n.String],angle:[n.Angle,0],angle_units:[n.AngleUnits,"rad"],x_offset:[n.Number,0],y_offset:[n.Number,0],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({background_fill_color:null,border_line_color:null})}}i.Label=_,_.__name__="Label",_.init_Label()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),l=e(29),a=e(66),n=i.__importStar(e(19)),o=e(131),r=e(106),_=e(11);class h extends l.AnnotationView{constructor(){super(…arguments),this.rotate=!0}initialize(){super.initialize(),"css"==this.model.render_mode&&(this.el.classList.add(r.bk_annotation),this.plot_view.canvas_view.add_overlay(this.el))}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?this.connect(this.model.change,()=>this.render()):this.connect(this.model.change,()=>this.plot_view.request_render())}_calculate_text_dimensions(e,t){const{width:s}=e.measureText(t),{height:i}=o.measure_font(this.visuals.text.font_value());return[s,i]}_calculate_bounding_box_dimensions(e,t){const[s,i]=this._calculate_text_dimensions(e,t);let l,a;switch(e.textAlign){case"left":l=0;break;case"center":l=-s/2;break;case"right":l=-s;break;default:_.unreachable()}switch(e.textBaseline){case"top":a=0;break;case"middle":a=-.5*i;break;case"bottom":a=-1*i;break;case"alphabetic":a=-.8*i;break;case"hanging":a=-.17*i;break;case"ideographic":a=-.83*i;break;default:_.unreachable()}return[l,a,s,i]}_canvas_text(e,t,s,i,l){this.visuals.text.set_value(e);const a=this._calculate_bounding_box_dimensions(e,t);e.save(),e.beginPath(),e.translate(s,i),l&&e.rotate(l),e.rect(a[0],a[1],a[2],a[3]),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(e),e.fill()),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(e),e.stroke()),this.visuals.text.doit&&(this.visuals.text.set_value(e),e.fillText(t,0,0)),e.restore()}_css_text(e,t,s,i,l){a.undisplay(this.el),this.visuals.text.set_value(e);const n=this._calculate_bounding_box_dimensions(e,t),o=this.visuals.border_line.line_dash.value().length<2?"solid":"dashed";this.visuals.border_line.set_value(e),this.visuals.background_fill.set_value(e),this.el.style.position="absolute",this.el.style.left=`${s+n[0]}px`,this.el.style.top=`${i+n[1]}px`,this.el.style.color=`${this.visuals.text.text_color.value()}`,this.el.style.opacity=`${this.visuals.text.text_alpha.value()}`,this.el.style.font=`${this.visuals.text.font_value()}`,this.el.style.lineHeight="normal",l&&(this.el.style.transform=`rotate(${l}rad)`),this.visuals.background_fill.doit&&(this.el.style.backgroundColor=`${this.visuals.background_fill.color_value()}`),this.visuals.border_line.doit&&(this.el.style.borderStyle=`${o}`,this.el.style.borderWidth=`${this.visuals.border_line.line_width.value()}px`,this.el.style.borderColor=`${this.visuals.border_line.color_value()}`),this.el.textContent=t,a.display(this.el)}}s.TextAnnotationView=h,h.__name__="TextAnnotationView";class c extends l.Annotation{constructor(e){super(e)}static init_TextAnnotation(){this.define({render_mode:[n.RenderMode,"canvas"]})}}s.TextAnnotation=c,c.__name__="TextAnnotation",c.init_TextAnnotation()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),l=t(133),o=t(73),a=t(66),n=i.__importStar(t(19)),r=t(106);class _ extends l.TextAnnotationView{initialize(){if(super.initialize(),this.set_data(this.model.source),"css"==this.model.render_mode)for(let t=0,e=this._text.length;t<e;t++){const t=a.div({class:r.bk_annotation_child,style:{display:"none"}});this.el.appendChild(t)}}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?(this.connect(this.model.change,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.streaming,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.patching,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.change,()=>{this.set_data(this.model.source),this.render()})):(this.connect(this.model.change,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.streaming,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.patching,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.change,()=>{this.set_data(this.model.source),this.plot_view.request_render()}))}set_data(t){super.set_data(t),this.visuals.warm_cache(t)}_map_data(){const t=this.plot_view.frame.xscales[this.model.x_range_name],e=this.plot_view.frame.yscales[this.model.y_range_name],s=null!=this.panel?this.panel:this.plot_view.frame;return["data"==this.model.x_units?t.v_compute(this._x):s.xview.v_compute(this._x),"data"==this.model.y_units?e.v_compute(this._y):s.yview.v_compute(this._y)]}render(){if(this.model.visible||"css"!=this.model.render_mode||a.undisplay(this.el),!this.model.visible)return;const t="canvas"==this.model.render_mode?this._v_canvas_text.bind(this):this._v_css_text.bind(this),{ctx:e}=this.plot_view.canvas_view,[s,i]=this._map_data();for(let l=0,o=this._text.length;l<o;l++)t(e,l,this._text[l],s[l]+this._x_offset[l],i[l]-this._y_offset[l],this._angle[l])}_get_size(){const{ctx:t}=this.plot_view.canvas_view;this.visuals.text.set_value(t);const{width:e,ascent:s}=t.measureText(this._text[0]);return{width:e,height:s}}_v_canvas_text(t,e,s,i,l,o){this.visuals.text.set_vectorize(t,e);const a=this._calculate_bounding_box_dimensions(t,s);t.save(),t.beginPath(),t.translate(i,l),t.rotate(o),t.rect(a[0],a[1],a[2],a[3]),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_vectorize(t,e),t.fill()),this.visuals.border_line.doit&&(this.visuals.border_line.set_vectorize(t,e),t.stroke()),this.visuals.text.doit&&(this.visuals.text.set_vectorize(t,e),t.fillText(s,0,0)),t.restore()}_v_css_text(t,e,s,i,l,o){const n=this.el.children[e];n.textContent=s,this.visuals.text.set_vectorize(t,e);const r=this._calculate_bounding_box_dimensions(t,s),_=this.visuals.border_line.line_dash.value().length<2?"solid":"dashed";this.visuals.border_line.set_vectorize(t,e),this.visuals.background_fill.set_vectorize(t,e),n.style.position="absolute",n.style.left=`${i+r[0]}px`,n.style.top=`${l+r[1]}px`,n.style.color=`${this.visuals.text.text_color.value()}`,n.style.opacity=`${this.visuals.text.text_alpha.value()}`,n.style.font=`${this.visuals.text.font_value()}`,n.style.lineHeight="normal",o&&(n.style.transform=`rotate(${o}rad)`),this.visuals.background_fill.doit&&(n.style.backgroundColor=`${this.visuals.background_fill.color_value()}`),this.visuals.border_line.doit&&(n.style.borderStyle=`${_}`,n.style.borderWidth=`${this.visuals.border_line.line_width.value()}px`,n.style.borderColor=`${this.visuals.border_line.color_value()}`),a.display(n)}}s.LabelSetView=_,_.__name__="LabelSetView";class h extends l.TextAnnotation{constructor(t){super(t)}static init_LabelSet(){this.prototype.default_view=_,this.mixins(["text","line:border_","fill:background_"]),this.define({x:[n.NumberSpec],y:[n.NumberSpec],x_units:[n.SpatialUnits,"data"],y_units:[n.SpatialUnits,"data"],text:[n.StringSpec,{field:"text"}],angle:[n.AngleSpec,0],x_offset:[n.NumberSpec,{value:0}],y_offset:[n.NumberSpec,{value:0}],source:[n.Instance,()=>new o.ColumnDataSource],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({background_fill_color:null,border_line_color:null})}}s.LabelSet=h,h.__name__="LabelSet",h.init_LabelSet()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),l=t(29),n=s.__importStar(t(19)),h=t(14),a=t(131),_=t(85),o=t(9),r=t(24),d=t(8),c=t(11);class m extends l.AnnotationView{cursor(t,e){return"none"==this.model.click_policy?null:"pointer"}get legend_padding(){return null!=this.visuals.border_line.line_color.value()?this.model.padding:0}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.item_change,()=>this.plot_view.request_render())}compute_legend_bbox(){const t=this.model.get_legend_names(),{glyph_height:e,glyph_width:i}=this.model,{label_height:s,label_width:l}=this.model;this.max_label_height=o.max([a.measure_font(this.visuals.label_text.font_value()).height,s,e]);const{ctx:n}=this.plot_view.canvas_view;n.save(),this.visuals.label_text.set_value(n),this.text_widths={};for(const e of t)this.text_widths[e]=o.max([n.measureText(e).width,l]);this.visuals.title_text.set_value(n),this.title_height=this.model.title?a.measure_font(this.visuals.title_text.font_value()).height+this.model.title_standoff:0,this.title_width=this.model.title?n.measureText(this.model.title).width:0,n.restore();const h=Math.max(o.max(r.values(this.text_widths)),0),m=this.model.margin,{legend_padding:g}=this,b=this.model.spacing,{label_standoff:f}=this.model;let u,x;if("vertical"==this.model.orientation)u=t.length*this.max_label_height+Math.max(t.length-1,0)*b+2*g+this.title_height,x=o.max([h+i+f+2*g,this.title_width+2*g]);else{let e=2*g+Math.max(t.length-1,0)*b;for(const t in this.text_widths){const s=this.text_widths[t];e+=o.max([s,l])+i+f}x=o.max([this.title_width+2*g,e]),u=this.max_label_height+this.title_height+2*g}const p=null!=this.panel?this.panel:this.plot_view.frame,[v,w]=p.bbox.ranges,{location:y}=this.model;let k,N;if(d.isString(y))switch(y){case"top_left":k=v.start+m,N=w.start+m;break;case"top_center":k=(v.end+v.start)/2-x/2,N=w.start+m;break;case"top_right":k=v.end-m-x,N=w.start+m;break;case"bottom_right":k=v.end-m-x,N=w.end-m-u;break;case"bottom_center":k=(v.end+v.start)/2-x/2,N=w.end-m-u;break;case"bottom_left":k=v.start+m,N=w.end-m-u;break;case"center_left":k=v.start+m,N=(w.end+w.start)/2-u/2;break;case"center":k=(v.end+v.start)/2-x/2,N=(w.end+w.start)/2-u/2;break;case"center_right":k=v.end-m-x,N=(w.end+w.start)/2-u/2}else if(d.isArray(y)&&2==y.length){const[t,e]=y;k=p.xview.compute(t),N=p.yview.compute(e)-u}else c.unreachable();return new _.BBox({left:k,top:N,width:x,height:u})}interactive_bbox(){return this.compute_legend_bbox()}interactive_hit(t,e){return this.interactive_bbox().contains(t,e)}on_hit(t,e){let i;const{glyph_width:s}=this.model,{legend_padding:l}=this,n=this.model.spacing,{label_standoff:h}=this.model;let a=i=l;const o=this.compute_legend_bbox(),r="vertical"==this.model.orientation;for(const d of this.model.items){const c=d.get_labels_list_from_label_prop();for(const m of c){const c=o.x+a,g=o.y+i+this.title_height;let b,f;if([b,f]=r?[o.width-2*l,this.max_label_height]:[this.text_widths[m]+s+h,this.max_label_height],new _.BBox({left:c,top:g,width:b,height:f}).contains(t,e)){switch(this.model.click_policy){case"hide":for(const t of d.renderers)t.visible=!t.visible;break;case"mute":for(const t of d.renderers)t.muted=!t.muted}return!0}r?i+=this.max_label_height+n:a+=this.text_widths[m]+s+h+n}}return!1}render(){if(!this.model.visible)return;if(0==this.model.items.length)return;for(const t of this.model.items)t.legend=this.model;const{ctx:t}=this.plot_view.canvas_view,e=this.compute_legend_bbox();t.save(),this._draw_legend_box(t,e),this._draw_legend_items(t,e),this.model.title&&this._draw_title(t,e),t.restore()}_draw_legend_box(t,e){t.beginPath(),t.rect(e.x,e.y,e.width,e.height),this.visuals.background_fill.set_value(t),t.fill(),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.stroke())}_draw_legend_items(t,e){const{glyph_width:i,glyph_height:s}=this.model,{legend_padding:l}=this,n=this.model.spacing,{label_standoff:h}=this.model;let a=l,_=l;const r="vertical"==this.model.orientation;for(const d of this.model.items){const c=d.get_labels_list_from_label_prop(),m=d.get_field_from_label_prop();if(0==c.length)continue;const g=(()=>{switch(this.model.click_policy){case"none":return!0;case"hide":return o.every(d.renderers,t=>t.visible);case"mute":return o.every(d.renderers,t=>!t.muted)}})();for(const o of c){const c=e.x+a,b=e.y+_+this.title_height,f=c+i,u=b+s;r?_+=this.max_label_height+n:a+=this.text_widths[o]+i+h+n,this.visuals.label_text.set_value(t),t.fillText(o,f+h,b+this.max_label_height/2);for(const e of d.renderers){this.plot_view.renderer_views[e.id].draw_legend(t,c,f,b,u,m,o,d.index)}if(!g){let s,n;[s,n]=r?[e.width-2*l,this.max_label_height]:[this.text_widths[o]+i+h,this.max_label_height],t.beginPath(),t.rect(c,b,s,n),this.visuals.inactive_fill.set_value(t),t.fill()}}}}_draw_title(t,e){this.visuals.title_text.doit&&(t.save(),t.translate(e.x0,e.y0+this.title_height),this.visuals.title_text.set_value(t),t.fillText(this.model.title,this.legend_padding,this.legend_padding-this.model.title_standoff),t.restore())}_get_size(){const{width:t,height:e}=this.compute_legend_bbox();return{width:t+2*this.model.margin,height:e+2*this.model.margin}}}i.LegendView=m,m.__name__="LegendView";class g extends l.Annotation{constructor(t){super(t)}initialize(){super.initialize(),this.item_change=new h.Signal0(this,"item_change")}static init_Legend(){this.prototype.default_view=m,this.mixins(["text:label_","text:title_","fill:inactive_","line:border_","fill:background_"]),this.define({orientation:[n.Orientation,"vertical"],location:[n.Any,"top_right"],title:[n.String],title_standoff:[n.Number,5],label_standoff:[n.Number,5],glyph_height:[n.Number,20],glyph_width:[n.Number,20],label_height:[n.Number,20],label_width:[n.Number,20],margin:[n.Number,10],padding:[n.Number,10],spacing:[n.Number,3],items:[n.Array,[]],click_policy:[n.Any,"none"]}),this.override({border_line_color:"#e5e5e5",border_line_alpha:.5,border_line_width:1,background_fill_color:"#ffffff",background_fill_alpha:.95,inactive_fill_color:"white",inactive_fill_alpha:.7,label_text_font_size:"13px",label_text_baseline:"middle",title_text_font_size:"13px",title_text_font_style:"italic"})}get_legend_names(){const t=[];for(const e of this.items){const i=e.get_labels_list_from_label_prop();t.push(…i)}return t}}i.Legend=g,g.__name__="Legend",g.init_Legend()},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),l=e(69),i=e(74),s=e(137),_=t.__importStar(e(19)),o=e(70),a=e(9);class u extends l.Model{constructor(e){super(e)}static init_LegendItem(){this.define({label:[_.StringSpec,null],renderers:[_.Array,[]],index:[_.Number,null]})}_check_data_sources_on_renderers(){if(null!=this.get_field_from_label_prop()){if(this.renderers.length<1)return!1;const e=this.renderers[0].data_source;if(null!=e)for(const r of this.renderers)if(r.data_source!=e)return!1}return!0}_check_field_label_on_data_source(){const e=this.get_field_from_label_prop();if(null!=e){if(this.renderers.length<1)return!1;const r=this.renderers[0].data_source;if(null!=r&&!a.includes(r.columns(),e))return!1}return!0}initialize(){super.initialize(),this.legend=null,this.connect(this.change,()=>{null!=this.legend&&this.legend.item_change.emit()}),this._check_data_sources_on_renderers()||o.logger.error("Non matching data sources on legend item renderers"),this._check_field_label_on_data_source()||o.logger.error(Bad column name on label: ${this.label})}get_field_from_label_prop(){const{label:e}=this;return s.isField(e)?e.field:null}get_labels_list_from_label_prop(){if(s.isValue(this.label)){const{value:e}=this.label;return null!=e?[e]:[]}const e=this.get_field_from_label_prop();if(null!=e){let r;if(!this.renderers[0]||null==this.renderers[0].data_source)return["No source found"];if(r=this.renderers[0].data_source,r instanceof i.ColumnarDataSource){const n=r.get_column(e);return null!=n?a.uniq(Array.from(n)):["Invalid field"]}}return[]}}n.LegendItem=u,u.__name__="LegendItem",u.init_LegendItem()},n”, ” function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(8);n.isValue=function(e){return t.isPlainObject(e)&&"value"in e},n.isField=function(e){return t.isPlainObject(e)&&"field"in e}},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1),s=t(29),l=t(14),o=n.__importStar(t(19));class a extends s.AnnotationView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.data_update,()=>this.plot_view.request_render())}render(){if(!this.model.visible)return;const{xs:t,ys:e}=this.model;if(t.length!=e.length)return;if(t.length<3||e.length<3)return;const{frame:i}=this.plot_view,{ctx:n}=this.plot_view.canvas_view;for(let s=0,l=t.length;s<l;s++){let l,o;if("screen"!=this.model.xs_units)throw new Error("not implemented");if(l=this.model.screen?t[s]:i.xview.compute(t[s]),"screen"!=this.model.ys_units)throw new Error("not implemented");o=this.model.screen?e[s]:i.yview.compute(e[s]),0==s?(n.beginPath(),n.moveTo(l,o)):n.lineTo(l,o)}n.closePath(),this.visuals.line.doit&&(this.visuals.line.set_value(n),n.stroke()),this.visuals.fill.doit&&(this.visuals.fill.set_value(n),n.fill())}}i.PolyAnnotationView=a,a.__name__="PolyAnnotationView";class r extends s.Annotation{constructor(t){super(t)}static init_PolyAnnotation(){this.prototype.default_view=a,this.mixins(["line","fill"]),this.define({xs:[o.Array,[]],xs_units:[o.SpatialUnits,"data"],ys:[o.Array,[]],ys_units:[o.SpatialUnits,"data"],x_range_name:[o.String,"default"],y_range_name:[o.String,"default"]}),this.internal({screen:[o.Boolean,!1]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}initialize(){super.initialize(),this.data_update=new l.Signal0(this,"data_update")}update({xs:t,ys:e}){this.setv({xs:t,ys:e,screen:!0},{silent:!0}),this.data_update.emit()}}i.PolyAnnotation=r,r.__name__="PolyAnnotation",r.init_PolyAnnotation()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(29),l=n.__importStar(e(19));class o extends s.AnnotationView{initialize(){super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render())}render(){this.model.visible&&this._draw_slope()}_draw_slope(){const e=this.model.gradient,t=this.model.y_intercept;if(null==e||null==t)return;const{frame:i}=this.plot_view,n=i.xscales[this.model.x_range_name],s=i.yscales[this.model.y_range_name],l=i._top.value,o=l+i._height.value,a=(s.invert(l)-t)/e,_=(s.invert(o)-t)/e,r=n.compute(a),c=n.compute(_),{ctx:u}=this.plot_view.canvas_view;u.save(),u.beginPath(),this.visuals.line.set_value(u),u.moveTo(r,l),u.lineTo(c,o),u.stroke(),u.restore()}}i.SlopeView=o,o.__name__="SlopeView";class a extends s.Annotation{constructor(e){super(e)}static init_Slope(){this.prototype.default_view=o,this.mixins(["line"]),this.define({gradient:[l.Number,null],y_intercept:[l.Number,null],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"]}),this.override({line_color:"black"})}}i.Slope=a,a.__name__="Slope",a.init_Slope()},n”, ” function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),o=e(29),n=e(66),l=s.__importStar(e(19));class a extends o.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),this.el.style.position="absolute",n.undisplay(this.el)}connect_signals(){super.connect_signals(),this.model.for_hover?this.connect(this.model.properties.computed_location.change,()=>this._draw_span()):"canvas"==this.model.render_mode?(this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.properties.location.change,()=>this.plot_view.request_render())):(this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.location.change,()=>this._draw_span()))}render(){this.model.visible||"css"!=this.model.render_mode||n.undisplay(this.el),this.model.visible&&this._draw_span()}_draw_span(){const e=this.model.for_hover?this.model.computed_location:this.model.location;if(null==e)return void n.undisplay(this.el);const{frame:i}=this.plot_view,t=i.xscales[this.model.x_range_name],s=i.yscales[this.model.y_range_name],o=(i,t)=>this.model.for_hover?this.model.computed_location:"data"==this.model.location_units?i.compute(e):t.compute(e);let l,a,h,d;if("width"==this.model.dimension?(h=o(s,i.yview),a=i._left.value,d=i._width.value,l=this.model.properties.line_width.value()):(h=i._top.value,a=o(t,i.xview),d=this.model.properties.line_width.value(),l=i._height.value),"css"==this.model.render_mode)this.el.style.top=`${h}px`,this.el.style.left=`${a}px`,this.el.style.width=`${d}px`,this.el.style.height=`${l}px`,this.el.style.backgroundColor=this.model.properties.line_color.value(),this.el.style.opacity=this.model.properties.line_alpha.value(),n.display(this.el);else if("canvas"==this.model.render_mode){const{ctx:e}=this.plot_view.canvas_view;e.save(),e.beginPath(),this.visuals.line.set_value(e),e.moveTo(a,h),"width"==this.model.dimension?e.lineTo(a+d,h):e.lineTo(a,h+l),e.stroke(),e.restore()}}}t.SpanView=a,a.__name__="SpanView";class h extends o.Annotation{constructor(e){super(e)}static init_Span(){this.prototype.default_view=a,this.mixins(["line"]),this.define({render_mode:[l.RenderMode,"canvas"],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"],location:[l.Number,null],location_units:[l.SpatialUnits,"data"],dimension:[l.Dimension,"width"]}),this.override({line_color:"black"}),this.internal({for_hover:[l.Boolean,!1],computed_location:[l.Number,null]})}}t.Span=h,h.__name__="Span",h.init_Span()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1),a=e(133),s=e(66),n=e(68),o=l.__importStar(e(19));class r extends a.TextAnnotationView{initialize(){super.initialize(),this.visuals.text=new n.Text(this.model)}_get_location(){const e=this.panel,t=this.model.offset;let i,l;switch(e.side){case"above":case"below":switch(this.model.vertical_align){case"top":l=e._top.value+5;break;case"middle":l=e._vcenter.value;break;case"bottom":l=e._bottom.value-5}switch(this.model.align){case"left":i=e._left.value+t;break;case"center":i=e._hcenter.value;break;case"right":i=e._right.value-t}break;case"left":switch(this.model.vertical_align){case"top":i=e._left.value-5;break;case"middle":i=e._hcenter.value;break;case"bottom":i=e._right.value+5}switch(this.model.align){case"left":l=e._bottom.value-t;break;case"center":l=e._vcenter.value;break;case"right":l=e._top.value+t}break;case"right":switch(this.model.vertical_align){case"top":i=e._right.value-5;break;case"middle":i=e._hcenter.value;break;case"bottom":i=e._left.value+5}switch(this.model.align){case"left":l=e._top.value+t;break;case"center":l=e._vcenter.value;break;case"right":l=e._bottom.value-t}}return[i,l]}render(){if(!this.model.visible)return void("css"==this.model.render_mode&&s.undisplay(this.el));const{text:e}=this.model;if(null==e||0==e.length)return;this.model.text_baseline=this.model.vertical_align,this.model.text_align=this.model.align;const[t,i]=this._get_location(),l=this.panel.get_label_angle_heuristic("parallel");("canvas"==this.model.render_mode?this._canvas_text.bind(this):this._css_text.bind(this))(this.plot_view.canvas_view.ctx,e,t,i,l)}_get_size(){const{text:e}=this.model;if(null==e||0==e.length)return{width:0,height:0};{this.visuals.text.set_value(this.ctx);const{width:t,ascent:i}=this.ctx.measureText(e);return{width:t,height:i*this.visuals.text.text_line_height.value()+10}}}}i.TitleView=r,r.__name__="TitleView";class c extends a.TextAnnotation{constructor(e){super(e)}static init_Title(){this.prototype.default_view=r,this.mixins(["line:border_","fill:background_"]),this.define({text:[o.String],text_font:[o.Font,"helvetica"],text_font_size:[o.FontSizeSpec,"13px"],text_font_style:[o.FontStyle,"bold"],text_color:[o.ColorSpec,"#444444"],text_alpha:[o.NumberSpec,1],text_line_height:[o.Number,1],vertical_align:[o.VerticalAlign,"bottom"],align:[o.TextAlign,"left"],offset:[o.Number,0]}),this.override({background_fill_color:null,border_line_color:null}),this.internal({text_align:[o.TextAlign,"left"],text_baseline:[o.TextBaseline,"bottom"]})}}i.Title=c,c.__name__="Title",c.init_Title()},n”, ” function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(1),l=e(29),s=e(96),a=e(66),n=o.__importStar(e(19));class r extends l.AnnotationView{constructor(){super(…arguments),this.rotate=!0}initialize(){super.initialize(),this.plot_view.canvas_view.add_event(this.el)}async lazy_initialize(){this._toolbar_view=await s.build_view(this.model.toolbar,{parent:this}),this.plot_view.visibility_callbacks.push(e=>this._toolbar_view.set_visibility(e))}remove(){this._toolbar_view.remove(),super.remove()}render(){super.render(),this.model.visible?(this.el.style.position="absolute",this.el.style.overflow="hidden",a.position(this.el,this.panel.bbox),this._toolbar_view.render(),a.empty(this.el),this.el.appendChild(this._toolbar_view.el),a.display(this.el)):a.undisplay(this.el)}_get_size(){const{tools:e,logo:i}=this.model.toolbar;return{width:30*e.length+(null!=i?25:0),height:30}}}t.ToolbarPanelView=r,r.__name__="ToolbarPanelView";class _ extends l.Annotation{constructor(e){super(e)}static init_ToolbarPanel(){this.prototype.default_view=r,this.define({toolbar:[n.Instance]})}}t.ToolbarPanel=_,_.__name__="ToolbarPanel",_.init_ToolbarPanel()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),l=t(29),o=t(66),a=i.__importStar(t(19)),h=t(144),n=t(145);function c(t,e,s,i,l){switch(t){case"horizontal":return e<i?"right":"left";case"vertical":return s<l?"below":"above";default:return t}}s.compute_side=c;class r extends l.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),o.undisplay(this.el)}connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,()=>this._draw_tips())}css_classes(){return super.css_classes().concat(h.bk_tooltip)}render(){this.model.visible&&this._draw_tips()}_draw_tips(){const{data:t}=this.model;if(o.empty(this.el),o.undisplay(this.el),this.model.custom?this.el.classList.add(h.bk_tooltip_custom):this.el.classList.remove(h.bk_tooltip_custom),0==t.length)return;const{frame:e}=this.plot_view;for(const[s,i,l]of t){if(this.model.inner_only&&!e.bbox.contains(s,i))continue;const t=o.div({},l);this.el.appendChild(t)}const[s,i]=t[t.length-1],l=c(this.model.attachment,s,i,e._hcenter.value,e._vcenter.value);this.el.classList.remove(n.bk_right),this.el.classList.remove(n.bk_left),this.el.classList.remove(n.bk_above),this.el.classList.remove(n.bk_below);let a;o.display(this.el);let r=0,d=0;switch(l){case"right":this.el.classList.add(n.bk_left),r=s+(this.el.offsetWidth-this.el.clientWidth)+10,a=i-this.el.offsetHeight/2;break;case"left":this.el.classList.add(n.bk_right),d=this.plot_view.layout.bbox.width-s+10,a=i-this.el.offsetHeight/2;break;case"below":this.el.classList.add(n.bk_above),a=i+(this.el.offsetHeight-this.el.clientHeight)+10,r=Math.round(s-this.el.offsetWidth/2);break;case"above":this.el.classList.add(n.bk_below),a=i-this.el.offsetHeight-10,r=Math.round(s-this.el.offsetWidth/2)}this.model.show_arrow&&this.el.classList.add(h.bk_tooltip_arrow),this.el.childNodes.length>0?(this.el.style.top=`${a}px`,this.el.style.left=r?`${r}px`:"auto",this.el.style.right=d?`${d}px`:"auto"):o.undisplay(this.el)}}s.TooltipView=r,r.__name__="TooltipView";class d extends l.Annotation{constructor(t){super(t)}static init_Tooltip(){this.prototype.default_view=r,this.define({attachment:[a.TooltipAttachment,"horizontal"],inner_only:[a.Boolean,!0],show_arrow:[a.Boolean,!0]}),this.override({level:"overlay"}),this.internal({data:[a.Any,[]],custom:[a.Any]})}clear(){this.data=[]}add(t,e,s){this.data=this.data.concat([[t,e,s]])}}s.Tooltip=d,d.__name__="Tooltip",d.init_Tooltip()},n”, ” function _(o,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=o(1);o(67),r.__importStar(o(66)).styles.append(‘.bk-root {\n /* Same border color used everywhere /\n / Gray of icons /\n}\n.bk-root .bk-tooltip {\n font-weight: 300;\n font-size: 12px;\n position: absolute;\n padding: 5px;\n border: 1px solid #e5e5e5;\n color: #2f2f2f;\n background-color: white;\n pointer-events: none;\n opacity: 0.95;\n z-index: 100;\n}\n.bk-root .bk-tooltip > div:not(:first-child) {\n / gives space when multiple elements are being hovered over /\n margin-top: 5px;\n border-top: #e5e5e5 1px dashed;\n}\n.bk-root .bk-tooltip.bk-left.bk-tooltip-arrow::before {\n position: absolute;\n margin: -7px 0 0 0;\n top: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 7px 0 7px 0;\n border-color: transparent;\n content: " ";\n display: block;\n left: -10px;\n border-right-width: 10px;\n border-right-color: #909599;\n}\n.bk-root .bk-tooltip.bk-left::before {\n left: -10px;\n border-right-width: 10px;\n border-right-color: #909599;\n}\n.bk-root .bk-tooltip.bk-right.bk-tooltip-arrow::after {\n position: absolute;\n margin: -7px 0 0 0;\n top: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 7px 0 7px 0;\n border-color: transparent;\n content: " ";\n display: block;\n right: -10px;\n border-left-width: 10px;\n border-left-color: #909599;\n}\n.bk-root .bk-tooltip.bk-right::after {\n right: -10px;\n border-left-width: 10px;\n border-left-color: #909599;\n}\n.bk-root .bk-tooltip.bk-above::before {\n position: absolute;\n margin: 0 0 0 -7px;\n left: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 7px 0 7px;\n border-color: transparent;\n content: " ";\n display: block;\n top: -10px;\n border-bottom-width: 10px;\n border-bottom-color: #909599;\n}\n.bk-root .bk-tooltip.bk-below::after {\n position: absolute;\n margin: 0 0 0 -7px;\n left: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 7px 0 7px;\n border-color: transparent;\n content: " ";\n display: block;\n bottom: -10px;\n border-top-width: 10px;\n border-top-color: #909599;\n}\n.bk-root .bk-tooltip-row-label {\n text-align: right;\n color: #26aae1;\n / blue from toolbar highlighting /\n}\n.bk-root .bk-tooltip-row-value {\n color: default;\n / seems to be necessary for notebook /\n}\n.bk-root .bk-tooltip-color-block {\n width: 12px;\n height: 12px;\n margin-left: 5px;\n margin-right: 5px;\n outline: #dddddd solid 1px;\n display: inline-block;\n}\n’),n.bk_tooltip="bk-tooltip",n.bk_tooltip_arrow="bk-tooltip-arrow",n.bk_tooltip_custom="bk-tooltip-custom",n.bk_tooltip_row_label="bk-tooltip-row-label",n.bk_tooltip_row_value="bk-tooltip-row-value",n.bk_tooltip_color_block="bk-tooltip-color-block"},n”, ” function _(e,b,t){Object.defineProperty(t,"__esModule",{value:!0}),e(1).__importStar(e(66)).styles.append(""),t.bk_active="bk-active",t.bk_inline="bk-inline",t.bk_left="bk-left",t.bk_right="bk-right",t.bk_above="bk-above",t.bk_below="bk-below",t.bk_up="bk-up",t.bk_down="bk-down",t.bk_side=function(e){switch(e){case"above":return t.bk_above;case"below":return t.bk_below;case"left":return t.bk_left;case"right":return t.bk_right}}},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(29),o=e(73),a=e(72),n=i.__importStar(e(19));class h extends r.AnnotationView{initialize(){super.initialize(),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source)),this.connect(this.model.source.change,()=>this.set_data(this.model.source))}set_data(e){super.set_data(e),this.visuals.warm_cache(e),this.plot_view.request_render()}_map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=e.xscales[this.model.x_range_name],i=e.yscales[this.model.y_range_name],r="height"==t?i:s,o="height"==t?s:i,a="height"==t?e.yview:e.xview,n="height"==t?e.xview:e.yview;let h,_,l;h="data"==this.model.properties.lower.units?r.v_compute(this._lower):a.v_compute(this._lower),_="data"==this.model.properties.upper.units?r.v_compute(this._upper):a.v_compute(this._upper),l="data"==this.model.properties.base.units?o.v_compute(this._base):n.v_compute(this._base);const[d,p]="height"==t?[1,0]:[0,1],c=[h,l],u=[_,l];this._lower_sx=c[d],this._lower_sy=c[p],this._upper_sx=u[d],this._upper_sy=u[p]}render(){if(!this.model.visible)return;this._map_data();const{ctx:e}=this.plot_view.canvas_view;if(this.visuals.line.doit)for(let t=0,s=this._lower_sx.length;t<s;t++)this.visuals.line.set_vectorize(e,t),e.beginPath(),e.moveTo(this._lower_sx[t],this._lower_sy[t]),e.lineTo(this._upper_sx[t],this._upper_sy[t]),e.stroke();const t="height"==this.model.dimension?0:Math.PI/2;if(null!=this.model.lower_head)for(let s=0,i=this._lower_sx.length;s<i;s++)e.save(),e.translate(this._lower_sx[s],this._lower_sy[s]),e.rotate(t+Math.PI),this.model.lower_head.render(e,s),e.restore();if(null!=this.model.upper_head)for(let s=0,i=this._upper_sx.length;s<i;s++)e.save(),e.translate(this._upper_sx[s],this._upper_sy[s]),e.rotate(t),this.model.upper_head.render(e,s),e.restore()}}s.WhiskerView=h,h.__name__="WhiskerView";class _ extends r.Annotation{constructor(e){super(e)}static init_Whisker(){this.prototype.default_view=h,this.mixins(["line"]),this.define({lower:[n.DistanceSpec],lower_head:[n.Instance,()=>new a.TeeHead({level:"underlay",size:10})],upper:[n.DistanceSpec],upper_head:[n.Instance,()=>new a.TeeHead({level:"underlay",size:10})],base:[n.DistanceSpec],dimension:[n.Dimension,"height"],source:[n.Instance,()=>new o.ColumnDataSource],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({level:"underlay"})}}s.Whisker=_,_.__name__="Whisker",_.init_Whisker()},n”, ” function _(i,a,e){Object.defineProperty(e,"__esModule",{value:!0});var r=i(148);e.Axis=r.Axis;var s=i(150);e.CategoricalAxis=s.CategoricalAxis;var x=i(153);e.ContinuousAxis=x.ContinuousAxis;var A=i(154);e.DatetimeAxis=A.DatetimeAxis;var o=i(155);e.LinearAxis=o.LinearAxis;var t=i(168);e.LogAxis=t.LogAxis;var n=i(171);e.MercatorAxis=n.MercatorAxis},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),a=e(149),l=s.__importStar(e(19)),n=e(9),o=e(8),r=e(88),{abs:_,min:h,max:c}=Math;class m extends a.GuideRendererView{constructor(){super(…arguments),this.rotate=!0}get panel(){return this.layout}render(){if(!this.model.visible)return;const e={tick:this._tick_extent(),tick_label:this._tick_label_extents(),axis_label:this._axis_label_extent()},t=this.tick_coords,i=this.plot_view.canvas_view.ctx;i.save(),this._draw_rule(i,e),this._draw_major_ticks(i,e,t),this._draw_minor_ticks(i,e,t),this._draw_major_labels(i,e,t),this._draw_axis_label(i,e,t),null!=this._render&&this._render(i,e,t),i.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_paint());const e=this.model.properties;this.on_change(e.visible,()=>this.plot_view.request_layout())}get_size(){if(this.model.visible&&null==this.model.fixed_location){const e=this._get_size();return{width:0,height:Math.round(e)}}return{width:0,height:0}}_get_size(){return this._tick_extent()+this._tick_label_extent()+this._axis_label_extent()}get needs_clip(){return null!=this.model.fixed_location}_draw_rule(e,t){if(!this.visuals.axis_line.doit)return;const[i,s]=this.rule_coords,[a,l]=this.plot_view.map_to_screen(i,s,this.model.x_range_name,this.model.y_range_name),[n,o]=this.normals,[r,_]=this.offsets;this.visuals.axis_line.set_value(e),e.beginPath(),e.moveTo(Math.round(a[0]+n*r),Math.round(l[0]+o*_));for(let t=1;t<a.length;t++){const i=Math.round(a[t]+n*r),s=Math.round(l[t]+o*_);e.lineTo(i,s)}e.stroke()}_draw_major_ticks(e,t,i){const s=this.model.major_tick_in,a=this.model.major_tick_out,l=this.visuals.major_tick_line;this._draw_ticks(e,i.major,s,a,l)}_draw_minor_ticks(e,t,i){const s=this.model.minor_tick_in,a=this.model.minor_tick_out,l=this.visuals.minor_tick_line;this._draw_ticks(e,i.minor,s,a,l)}_draw_major_labels(e,t,i){const s=i.major,a=this.compute_labels(s[this.dimension]),l=this.model.major_label_orientation,n=t.tick+this.model.major_label_standoff,o=this.visuals.major_label_text;this._draw_oriented_labels(e,a,s,l,this.panel.side,n,o)}_draw_axis_label(e,t,i){if(null==this.model.axis_label||0==this.model.axis_label.length||null!=this.model.fixed_location)return;let s,a;switch(this.panel.side){case"above":s=this.panel._hcenter.value,a=this.panel._bottom.value;break;case"below":s=this.panel._hcenter.value,a=this.panel._top.value;break;case"left":s=this.panel._right.value,a=this.panel._vcenter.value;break;case"right":s=this.panel._left.value,a=this.panel._vcenter.value;break;default:throw new Error(`unknown side: ${this.panel.side}`)}const l=[[s],[a]],o=t.tick+n.sum(t.tick_label)+this.model.axis_label_standoff,r=this.visuals.axis_label_text;this._draw_oriented_labels(e,[this.model.axis_label],l,"parallel",this.panel.side,o,r,"screen")}_draw_ticks(e,t,i,s,a){if(!a.doit)return;const[l,n]=t,[o,r]=this.plot_view.map_to_screen(l,n,this.model.x_range_name,this.model.y_range_name),[_,h]=this.normals,[c,m]=this.offsets,[d,u]=[_*(c-i),h*(m-i)],[b,x]=[_*(c+s),h*(m+s)];a.set_value(e);for(let t=0;t<o.length;t++){const i=Math.round(o[t]+b),s=Math.round(r[t]+x),a=Math.round(o[t]+d),l=Math.round(r[t]+u);e.beginPath(),e.moveTo(i,s),e.lineTo(a,l),e.stroke()}}_draw_oriented_labels(e,t,i,s,a,l,n,r="data"){if(!n.doit||0==t.length)return;let _,h,c,m;if("screen"==r)[_,h]=i,[c,m]=[0,0];else{const[e,t]=i;[_,h]=this.plot_view.map_to_screen(e,t,this.model.x_range_name,this.model.y_range_name),[c,m]=this.offsets}const[d,u]=this.normals,b=d*(c+l),x=u*(m+l);let p;n.set_value(e),this.panel.apply_label_text_heuristics(e,s),p=o.isString(s)?this.panel.get_label_angle_heuristic(s):-s;for(let i=0;i<_.length;i++){const s=Math.round(_[i]+b),a=Math.round(h[i]+x);e.translate(s,a),e.rotate(p),e.fillText(t[i],0,0),e.rotate(-p),e.translate(-s,-a)}}_axis_label_extent(){if(null==this.model.axis_label||""==this.model.axis_label)return 0;const e=this.model.axis_label_standoff,t=this.visuals.axis_label_text;return this._oriented_labels_extent([this.model.axis_label],"parallel",this.panel.side,e,t)}_tick_extent(){return this.model.major_tick_out}_tick_label_extent(){return n.sum(this._tick_label_extents())}_tick_label_extents(){const e=this.tick_coords.major,t=this.compute_labels(e[this.dimension]),i=this.model.major_label_orientation,s=this.model.major_label_standoff,a=this.visuals.major_label_text;return[this._oriented_labels_extent(t,i,this.panel.side,s,a)]}_oriented_labels_extent(e,t,i,s,a){if(0==e.length)return 0;const l=this.plot_view.canvas_view.ctx;let n,r;a.set_value(l),o.isString(t)?(n=1,r=this.panel.get_label_angle_heuristic(t)):(n=2,r=-t),r=Math.abs(r);const _=Math.cos(r),h=Math.sin(r);let c=0;for(let t=0;t<e.length;t++){const s=1.1*l.measureText(e[t]).width,a=.9*l.measureText(e[t]).ascent;let o;o="above"==i||"below"==i?s*h+a/n*_:s*_+a/n*h,o>c&&(c=o)}return c>0&&(c+=s),c}get normals(){return this.panel.normals}get dimension(){return this.panel.dimension}compute_labels(e){const t=this.model.formatter.doFormat(e,this);for(let i=0;i<e.length;i++)e[i]in this.model.major_label_overrides&&(t[i]=this.model.major_label_overrides[e[i]]);return t}get offsets(){if(null!=this.model.fixed_location)return[0,0];const{frame:e}=this.plot_view;let[t,i]=[0,0];switch(this.panel.side){case"below":i=_(this.panel._top.value-e._bottom.value);break;case"above":i=_(this.panel._bottom.value-e._top.value);break;case"right":t=_(this.panel._left.value-e._right.value);break;case"left":t=_(this.panel._right.value-e._left.value)}return[t,i]}get ranges(){const e=this.dimension,t=(e+1)%2,{frame:i}=this.plot_view,s=[i.x_ranges[this.model.x_range_name],i.y_ranges[this.model.y_range_name]];return[s[e],s[t]]}get computed_bounds(){const[e]=this.ranges,t=this.model.bounds,i=[e.min,e.max];if("auto"==t)return[e.min,e.max];if(o.isArray(t)){let e,s;const[a,l]=t,[n,o]=i;return _(a-l)>_(n-o)?(e=c(h(a,l),n),s=h(c(a,l),o)):(e=h(a,l),s=c(a,l)),[e,s]}throw new Error(`user bounds ‘${t}’ not understood`)}get rule_coords(){const e=this.dimension,t=(e+1)%2,[i]=this.ranges,[s,a]=this.computed_bounds,l=[new Array(2),new Array(2)];return l[e][0]=Math.max(s,i.min),l[e][1]=Math.min(a,i.max),l[e][0]>l[e][1]&&(l[e][0]=l[e][1]=NaN),l[t][0]=this.loc,l[t][1]=this.loc,l}get tick_coords(){const e=this.dimension,t=(e+1)%2,[i]=this.ranges,[s,a]=this.computed_bounds,l=this.model.ticker.get_ticks(s,a,i,this.loc,{}),n=l.major,o=l.minor,r=[[],[]],_=[[],[]],[h,c]=[i.min,i.max];for(let i=0;i<n.length;i++)n[i]<h||n[i]>c||(r[e].push(n[i]),r[t].push(this.loc));for(let i=0;i<o.length;i++)o[i]<h||o[i]>c||(_[e].push(o[i]),_[t].push(this.loc));return{major:r,minor:_}}get loc(){const{fixed_location:e}=this.model;if(null!=e){if(o.isNumber(e))return e;const[,t]=this.ranges;if(t instanceof r.FactorRange)return t.synthetic(e);throw new Error("unexpected")}const[,t]=this.ranges;switch(this.panel.side){case"left":case"below":return t.start;case"right":case"above":return t.end}}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.layout.bbox.box})}}i.AxisView=m,m.__name__="AxisView";class d extends a.GuideRenderer{constructor(e){super(e)}static init_Axis(){this.prototype.default_view=m,this.mixins(["line:axis_","line:major_tick_","line:minor_tick_","text:major_label_","text:axis_label_"]),this.define({bounds:[l.Any,"auto"],ticker:[l.Instance],formatter:[l.Instance],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"],axis_label:[l.String,""],axis_label_standoff:[l.Int,5],major_label_standoff:[l.Int,5],major_label_orientation:[l.Any,"horizontal"],major_label_overrides:[l.Any,{}],major_tick_in:[l.Number,2],major_tick_out:[l.Number,6],minor_tick_in:[l.Number,0],minor_tick_out:[l.Number,4],fixed_location:[l.Any,null]}),this.override({axis_line_color:"black",major_tick_line_color:"black",minor_tick_line_color:"black",major_label_text_font_size:"11px",major_label_text_align:"center",major_label_text_baseline:"alphabetic",axis_label_text_font_size:"13px",axis_label_text_font_style:"italic"})}}i.Axis=d,d.__name__="Axis",d.init_Axis()},n”, ” function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});const n=e(63);class i extends n.RendererView{}d.GuideRendererView=i,i.__name__="GuideRendererView";class t extends n.Renderer{constructor(e){super(e)}static init_GuideRenderer(){this.override({level:"overlay"})}}d.GuideRenderer=t,t.__name__="GuideRenderer",t.init_GuideRenderer()},n”, ” function _(t,s,o){Object.defineProperty(o,"__esModule",{value:!0});const e=t(1),i=t(148),r=t(151),a=t(152),l=e.__importStar(t(19));class _ extends i.AxisView{_render(t,s,o){this._draw_group_separators(t,s,o)}_draw_group_separators(t,s,o){const[e]=this.ranges,[i,r]=this.computed_bounds;if(!e.tops||e.tops.length<2||!this.visuals.separator_line.doit)return;const a=this.dimension,l=(a+1)%2,_=[[],[]];let n=0;for(let t=0;t<e.tops.length-1;t++){let s,o;for(let i=n;i<e.factors.length;i++)if(e.factors[i][0]==e.tops[t+1]){[s,o]=[e.factors[i-1],e.factors[i]],n=i;break}const h=(e.synthetic(s)+e.synthetic(o))/2;h>i&&h<r&&(_[a].push(h),_[l].push(this.loc))}const h=this._tick_label_extent();this._draw_ticks(t,_,-3,h-6,this.visuals.separator_line)}_draw_major_labels(t,s,o){const e=this._get_factor_info();let i=s.tick+this.model.major_label_standoff;for(let o=0;o<e.length;o++){const[r,a,l,_]=e[o];this._draw_oriented_labels(t,r,a,l,this.panel.side,i,_),i+=s.tick_label[o]}}_tick_label_extents(){const t=this._get_factor_info(),s=[];for(const[o,,e,i]of t){const t=this._oriented_labels_extent(o,e,this.panel.side,this.model.major_label_standoff,i);s.push(t)}return s}_get_factor_info(){const[t]=this.ranges,[s,o]=this.computed_bounds,e=this.loc,i=this.model.ticker.get_ticks(s,o,t,e,{}),r=this.tick_coords,a=[];if(1==t.levels){const t=i.major,s=this.model.formatter.doFormat(t,this);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text])}else if(2==t.levels){const t=i.major.map(t=>t[1]),s=this.model.formatter.doFormat(t,this);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([i.tops,r.tops,this.model.group_label_orientation,this.visuals.group_text])}else if(3==t.levels){const t=i.major.map(t=>t[2]),s=this.model.formatter.doFormat(t,this),o=i.mids.map(t=>t[1]);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([o,r.mids,this.model.subgroup_label_orientation,this.visuals.subgroup_text]),a.push([i.tops,r.tops,this.model.group_label_orientation,this.visuals.group_text])}return a}get tick_coords(){const t=this.dimension,s=(t+1)%2,[o]=this.ranges,[e,i]=this.computed_bounds,r=this.model.ticker.get_ticks(e,i,o,this.loc,{}),a={major:[[],[]],mids:[[],[]],tops:[[],[]],minor:[[],[]]};return a.major[t]=r.major,a.major[s]=r.major.map(t=>this.loc),3==o.levels&&(a.mids[t]=r.mids,a.mids[s]=r.mids.map(t=>this.loc)),o.levels>1&&(a.tops[t]=r.tops,a.tops[s]=r.tops.map(t=>this.loc)),a}}o.CategoricalAxisView=_,_.__name__="CategoricalAxisView";class n extends i.Axis{constructor(t){super(t)}static init_CategoricalAxis(){this.prototype.default_view=_,this.mixins(["line:separator_","text:group_","text:subgroup_"]),this.define({group_label_orientation:[l.Any,"parallel"],subgroup_label_orientation:[l.Any,"parallel"]}),this.override({ticker:()=>new r.CategoricalTicker,formatter:()=>new a.CategoricalTickFormatter,separator_line_color:"lightgrey",separator_line_width:2,group_text_font_style:"bold",group_text_font_size:"11px",group_text_color:"grey",subgroup_text_font_style:"bold",subgroup_text_font_size:"11px"})}}o.CategoricalAxis=n,n.__name__="CategoricalAxis",n.init_CategoricalAxis()},n”, ” function _(t,c,e){Object.defineProperty(e,"__esModule",{value:!0});const o=t(111);class s extends o.Ticker{constructor(t){super(t)}get_ticks(t,c,e,o,s){return{major:this._collect(e.factors,e,t,c),minor:[],tops:this._collect(e.tops||[],e,t,c),mids:this._collect(e.mids||[],e,t,c)}}_collect(t,c,e,o){const s=[];for(const r of t){const t=c.synthetic(r);t>e&&t<o&&s.push(r)}return s}}e.CategoricalTicker=s,s.__name__="CategoricalTicker"},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(113),c=e(9);class a extends o.TickFormatter{constructor(e){super(e)}doFormat(e,t){return c.copy(e)}}r.CategoricalTickFormatter=a,a.__name__="CategoricalTickFormatter"},n”, ” function _(s,e,n){Object.defineProperty(n,"__esModule",{value:!0});const o=s(148);class t extends o.Axis{constructor(s){super(s)}}n.ContinuousAxis=t,t.__name__="ContinuousAxis"},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(155),a=e(156),r=e(161);class n extends s.LinearAxisView{}i.DatetimeAxisView=n,n.__name__="DatetimeAxisView";class _ extends s.LinearAxis{constructor(e){super(e)}static init_DatetimeAxis(){this.prototype.default_view=n,this.override({ticker:()=>new r.DatetimeTicker,formatter:()=>new a.DatetimeTickFormatter})}}i.DatetimeAxis=_,_.__name__="DatetimeAxis",_.init_DatetimeAxis()},n”, ” function _(e,i,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(148),n=e(153),r=e(112),a=e(108);class _ extends t.AxisView{}s.LinearAxisView=_,_.__name__="LinearAxisView";class c extends n.ContinuousAxis{constructor(e){super(e)}static init_LinearAxis(){this.prototype.default_view=_,this.override({ticker:()=>new a.BasicTicker,formatter:()=>new r.BasicTickFormatter})}}s.LinearAxis=c,c.__name__="LinearAxis",c.init_LinearAxis()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const r=t(1),i=r.__importDefault(t(157)),n=t(113),o=t(70),a=r.__importStar(t(19)),c=t(158),m=t(9),u=t(8);function h(t){return i.default(t,"%Y %m %d %H %M %S").split(/\s+/).map(t=>parseInt(t,10))}function d(t,s){if(u.isFunction(s))return s(t);{const e=c.sprintf("$1%06d",function(t){return Math.round(t/1e3%1*1e6)}(t));return-1==(s=s.replace(/((^|[^%])(%%))%f/,e)).indexOf("%")?s:i.default(t,s)}}const l=["microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"];class _ extends n.TickFormatter{constructor(t){super(t),this.strip_leading_zeros=!0}static init_DatetimeTickFormatter(){this.define({microseconds:[a.Array,["%fus"]],milliseconds:[a.Array,["%3Nms","%S.%3Ns"]],seconds:[a.Array,["%Ss"]],minsec:[a.Array,[":%M:%S"]],minutes:[a.Array,[":%M","%Mm"]],hourmin:[a.Array,["%H:%M"]],hours:[a.Array,["%Hh","%H:%M"]],days:[a.Array,["%m/%d","%a%d"]],months:[a.Array,["%m/%Y","%b %Y"]],years:[a.Array,["%Y"]]})}initialize(){super.initialize(),this._update_width_formats()}_update_width_formats(){const t=+i.default(new Date),s=function(s){const e=s.map(s=>d(t,s).length),r=m.sort_by(m.zip(e,s),([t])=>t);return m.unzip(r)};this._width_formats={microseconds:s(this.microseconds),milliseconds:s(this.milliseconds),seconds:s(this.seconds),minsec:s(this.minsec),minutes:s(this.minutes),hourmin:s(this.hourmin),hours:s(this.hours),days:s(this.days),months:s(this.months),years:s(this.years)}}_get_resolution_str(t,s){const e=1.1*t;switch(!1){case!(e<.001):return"microseconds";case!(e<1):return"milliseconds";case!(e<60):return s>=60?"minsec":"seconds";case!(e<3600):return s>=3600?"hourmin":"minutes";case!(e<86400):return"hours";case!(e<2678400):return"days";case!(e<31536e3):return"months";default:return"years"}}doFormat(t,s){if(0==t.length)return[];const e=Math.abs(t[t.length-1]-t[0])/1e3,r=e/(t.length-1),i=this._get_resolution_str(r,e),[,[n]]=this._width_formats[i],a=[],c=l.indexOf(i),m={};for(const t of l)m[t]=0;m.seconds=5,m.minsec=4,m.minutes=4,m.hourmin=3,m.hours=3;for(const s of t){let t,e;try{e=h(s),t=d(s,n)}catch(t){o.logger.warn(unable to format tick for timestamp value ${s}),o.logger.warn(` - ${t}`),a.push("ERR");continue}let r=!1,u=c;for(;0==e[m[l[u]]];){let n;if(u+=1,u==l.length)break;if(("minsec"==i||"hourmin"==i)&&!r){if("minsec"==i&&0==e[4]&&0!=e[5]||"hourmin"==i&&0==e[3]&&0!=e[4]){n=this._width_formats[l[c-1]][1][0],t=d(s,n);break}r=!0}n=this._width_formats[l[u]][1][0],t=d(s,n)}if(this.strip_leading_zeros){let s=t.replace(/^0+/g,"");s!=t&&isNaN(parseInt(s))&&(s=`0${s}`),a.push(s)}else a.push(t)}return a}}e.DatetimeTickFormatter=_,_.__name__="DatetimeTickFormatter",_.init_DatetimeTickFormatter()},n”, ” function _(e,t,n){!function(e){"object"==typeof t&&t.exports?t.exports=e():"function"==typeof define?define(e):this.tz=e()}((function(){function e(e,t,n){var r,o=t.day[1];do{r=new Date(Date.UTC(n,t.month,Math.abs(o++)))}while(t.day[0]<7&&r.getUTCDay()!=t.day[0]);return(r={clock:t.clock,sort:r.getTime(),rule:t,save:6e4*t.save,offset:e.offset})[r.clock]=r.sort+6e4*t.time,r.posix?r.wallclock=r[r.clock]+(e.offset+t.saved):r.posix=r[r.clock]-(e.offset+t.saved),r}function t(t,n,r){var o,a,u,i,l,s,c,f=t[t.zone],h=[],T=new Date(r).getUTCFullYear(),g=1;for(o=1,a=f.length;o<a&&!(f[o][n]<=r);o++);if((u=f[o]).rules){for(s=t[u.rules],c=T+1;c>=T-g;–c)for(o=0,a=s.length;o<a;o++)s[o].from<=c&&c<=s[o].to?h.push(e(u,s[o],c)):s[o].to<c&&1==g&&(g=c-s[o].to);for(h.sort((function(e,t){return e.sort-t.sort})),o=0,a=h.length;o<a;o++)r>=h[o][n]&&h[o][h[o].clock]>u[h[o].clock]&&(i=h[o])}return i&&((l=/^(.*)\/(.*)$/.exec(u.format))?i.abbrev=l[i.save?2:1]:i.abbrev=u.format.replace(/%s/,i.rule.letter)),i||u}function n(e,n){return"UTC"==e.zone?n:(e.entry=t(e,"posix",n),n+e.entry.offset+e.entry.save)}function r(e,n){return"UTC"==e.zone?n:(e.entry=r=t(e,"wallclock",n),0<(o=n-r.wallclock)&&o<r.save?null:n-r.offset-r.save);var r,o}function o(e,t,o){var a,i=+(o[1]+1),s=o[2]*i,c=u.indexOf(o[3].toLowerCase());if(c>9)t+=s*l[c-10];else{if(a=new Date(n(e,t)),c<7)for(;s;)a.setUTCDate(a.getUTCDate()+i),a.getUTCDay()==c&&(s-=i);else 7==c?a.setUTCFullYear(a.getUTCFullYear()+s):8==c?a.setUTCMonth(a.getUTCMonth()+s):a.setUTCDate(a.getUTCDate()+s);null==(t=r(e,a.getTime()))&&(t=r(e,a.getTime()+864e5*i)-864e5*i)}return t}var a={clock:function(){return+new Date},zone:"UTC",entry:{abbrev:"UTC",offset:0,save:0},UTC:1,z:function(e,t,n,r){var o,a,u=this.entry.offset+this.entry.save,i=Math.abs(u/1e3),l=[],s=3600;for(o=0;o<3;o++)l.push(("0"+Math.floor(i/s)).slice(-2)),i%=s,s/=60;return"^"!=n||u?("^"==n&&(r=3),3==r?(a=(a=l.join(":")).replace(/:00$/,""),"^"!=n&&(a=a.replace(/:00$/,""))):r?(a=l.slice(0,r+1).join(":"),"^"==n&&(a=a.replace(/:00$/,""))):a=l.slice(0,2).join(""),a=(a=(u<0?"-":"+")+a).replace(/([-+])(0)/,{_:" $1","-":"$1"}[n]||"$1$2")):"Z"},"%":function(e){return"%"},n:function(e){return"\n"},t:function(e){return"\t"},U:function(e){return s(e,0)},W:function(e){return s(e,1)},V:function(e){return c(e)[0]},G:function(e){return c(e)[1]},g:function(e){return c(e)[1]%100},j:function(e){return Math.floor((e.getTime()-Date.UTC(e.getUTCFullYear(),0))/864e5)+1},s:function(e){return Math.floor(e.getTime()/1e3)},C:function(e){return Math.floor(e.getUTCFullYear()/100)},N:function(e){return e.getTime()%1e3*1e6},m:function(e){return e.getUTCMonth()+1},Y:function(e){return e.getUTCFullYear()},y:function(e){return e.getUTCFullYear()%100},H:function(e){return e.getUTCHours()},M:function(e){return e.getUTCMinutes()},S:function(e){return e.getUTCSeconds()},e:function(e){return e.getUTCDate()},d:function(e){return e.getUTCDate()},u:function(e){return e.getUTCDay()||7},w:function(e){return e.getUTCDay()},l:function(e){return e.getUTCHours()%12||12},I:function(e){return e.getUTCHours()%12||12},k:function(e){return e.getUTCHours()},Z:function(e){return this.entry.abbrev},a:function(e){return this[this.locale].day.abbrev[e.getUTCDay()]},A:function(e){return this[this.locale].day.full[e.getUTCDay()]},h:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},b:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},B:function(e){return this[this.locale].month.full[e.getUTCMonth()]},P:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)].toLowerCase()},p:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)]},R:function(e,t){return this.convert([t,"%H:%M"])},T:function(e,t){return this.convert([t,"%H:%M:%S"])},D:function(e,t){return this.convert([t,"%m/%d/%y"])},F:function(e,t){return this.convert([t,"%Y-%m-%d"])},x:function(e,t){return this.convert([t,this[this.locale].date])},r:function(e,t){return this.convert([t,this[this.locale].time12||"%I:%M:%S"])},X:function(e,t){return this.convert([t,this[this.locale].time24])},c:function(e,t){return this.convert([t,this[this.locale].dateTime])},convert:function(e){if(!e.length)return"1.0.23";var t,a,u,l,s,c=Object.create(this),f=[];for(t=0;t<e.length;t++)if(l=e[t],Array.isArray(l))t||isNaN(l[1])?l.splice.apply(e,[t–,1].concat(l)):s=l;else if(isNaN(l)){if("string"==(u=typeof l))~l.indexOf("%")?c.format=l:t||""!=l?!t&&(u=/^(\d{4})-(\d{2})-(\d{2})(?:[T\s](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|(([+-])(\d{2}(:\d{2}){0,2})))?)?$/.exec(l))?((s=[]).push.apply(s,u.slice(1,8)),u[9]?(s.push(u[10]+1),s.push.apply(s,u[11].split(/:/))):u[8]&&s.push(1)):/^\w{2,3}_\w{2}$/.test(l)?c.locale=l:(u=i.exec(l))?f.push(u):c.zone=l:s=l;else if("function"==u){if(u=l.call(c))return u}else if(/^\w{2,3}_\w{2}$/.test(l.name))c[l.name]=l;else if(l.zones){for(u in l.zones)c[u]=l.zones[u];for(u in l.rules)c[u]=l.rules[u]}}else t||(s=l);if(c[c.locale]||delete c.locale,c[c.zone]||delete c.zone,null!=s){if(""==s)s=c.clock();else if(Array.isArray(s)){for(u=[],a=!s[7],t=0;t<11;t++)u[t]=+(s[t]||0);–u[1],s=Date.UTC.apply(Date.UTC,u)+-u[7]*(36e5*u[8]+6e4*u[9]+1e3*u[10])}else s=Math.floor(s);if(!isNaN(s)){if(a&&(s=r(c,s)),null==s)return s;for(t=0,a=f.length;t<a;t++)s=o(c,s,f[t]);return c.format?(u=new Date(n(c,s)),c.format.replace(/%([-0_^]?)(:{0,3})(\d*)(.)/g,(function(e,t,n,r,o){var a,i,l="0";if(a=c[o]){for(e=String(a.call(c,u,s,t,n.length)),"_"==(t||a.style)&&(l=" "),i="-"==t?0:a.pad||0;e.length<i;)e=l+e;for(i="-"==t?0:r||a.pad;e.length<i;)e=l+e;"N"==o&&i<e.length&&(e=e.slice(0,i)),"^"==t&&(e=e.toUpperCase())}return e}))):s}}return function(){return c.convert(arguments)}},locale:"en_US",en_US:{date:"%m/%d/%Y",time24:"%I:%M:%S %p",time12:"%I:%M:%S %p",dateTime:"%a %d %b %Y %I:%M:%S %p %Z",meridiem:["AM","PM"],month:{abbrev:"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|\"),full:\"January|February|March|April|May|June|July|August|September|October|November|December\".split(\"|")},day:{abbrev:"Sun|Mon|Tue|Wed|Thu|Fri|Sat".split("|\"),full:\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday\".split(\"|")}}},u="Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond",i=new RegExp("^\\s*([+-])(\\d+)\\s+("+u+")s?\\s*$","i"),l=[36e5,6e4,1e3,1];function s(e,t){var n,r,o;return r=new Date(Date.UTC(e.getUTCFullYear(),0)),n=Math.floor((e.getTime()-r.getTime())/864e5),r.getUTCDay()==t?o=0:8==(o=7-r.getUTCDay()+t)&&(o=1),n>=o?Math.floor((n-o)/7)+1:0}function c(e){var t,n,r;return n=e.getUTCFullYear(),t=new Date(Date.UTC(n,0)).getUTCDay(),(r=s(e,1)+(t>1&&t<=4?1:0))?53!=r||4==t||3==t&&29==new Date(n,1,29).getDate()?[r,e.getUTCFullYear()]:[1,e.getUTCFullYear()+1]:(n=e.getUTCFullYear()-1,[r=4==(t=new Date(Date.UTC(n,0)).getUTCDay())||3==t&&29==new Date(n,1,29).getDate()?53:52,e.getUTCFullYear()-1])}return u=u.toLowerCase().split("|\"),\"delmHMSUWVgCIky\".replace(/./g,(function(e){a[e].pad=2})),a.N.pad=9,a.j.pad=3,a.k.style=\"_\",a.l.style=\"_\",a.e.style=\"_\",function(){return a.convert(arguments)}}))},\n", " function _(r,n,e){Object.defineProperty(e,\"__esModule\",{value:!0});const t=r(1),i=t.__importStar(r(159)),u=r(160),a=t.__importDefault(r(157)),f=r(26),o=r(8);function l(r,...n){return u.sprintf(r,...n)}function s(r,n,e){if(o.isNumber(r)){return l((()=>{switch(!1){case Math.floor(r)!=r:return\"%d\";case!(Math.abs(r)>.1&&Math.abs(r)<1e3):return\"%0.3f\";default:return\"%0.3e\"}})(),r)}return`${r}`}function c(r,n,t){if(null==n)return s;if(null!=t&&r in t){const n=t[r];if(o.isString(n)){if(n in e.DEFAULT_FORMATTERS)return e.DEFAULT_FORMATTERS[n];throw new Error(`Unknown tooltip field formatter type '${n}'`)}return function(r,e,t){return n.format(r,e,t)}}return e.DEFAULT_FORMATTERS.numeral}function m(r,n,e,t){if(\"$\"==r[0]){return function(r,n){if(r in n)return n[r];throw new Error(`Unknown special variable '$${r}'`)}(r.substring(1),t)}return function(r,n,e){const t=n.get_column(r);if(null==t)return null;if(o.isNumber(e))return t[e];const i=t[e.index];if(o.isTypedArray(i)||o.isArray(i)){if(o.isArray(i[0])){return i[e.dim2][e.dim1]}return i[e.flat_index]}return i}(r.substring(1).replace(/[{}]/g,\"\"),n,e)}e.DEFAULT_FORMATTERS={numeral:(r,n,e)=>i.format(r,n),datetime:(r,n,e)=>a.default(r,n),printf:(r,n,e)=>l(n,r)},e.sprintf=l,e.basic_formatter=s,e.get_formatter=c,e.get_value=m,e.replace_placeholders=function(r,n,e,t,i={}){return r=(r=r.replace(/@\\$name/g,r=>`@{${i.name}}`)).replace(/((?:\\$\\w+)|(?:@\\w+)|(?:@{(?:[^{}]+)}))(?:{([^{}]+)})?/g,(r,u,a)=>{const o=m(u,n,e,i);if(null==o)return`${f.escape(\"???\")}`;if(\"safe\"==a)return`${o}`;const l=c(u,a,t);return`${f.escape(l(o,a,i))}`})}},\n", " function _(e,n,t){\n", " /*!\n", " * numbro.js\n", " * version : 1.6.2\n", " * author : Företagsplatsen AB\n", " * license : MIT\n", " * http://www.foretagsplatsen.se\n", " */\n", " var r,i={},a=i,o=\"en-US\",l=null,u=\"0,0\";void 0!==n&&n.exports;function c(e){this._value=e}function s(e){var n,t=\"\";for(n=0;n<e;n++)t+=\"0\";return t}function f(e,n,t,r){var i,a,o=Math.pow(10,n);return a=e.toFixed(0).search(\"e\")>-1?function(e,n){var t,r,i,a;return t=(a=e.toString()).split(\"e\")[0],i=a.split(\"e\")[1],a=t.split(\".\")[0]+(r=t.split(\".\")[1]||"")+s(i-r.length),n>0&&(a+="."+s(n)),a}(e,n):(t(e*o)/o).toFixed(n),r&&(i=new RegExp("0{1,"+r+"}$"),a=a.replace(i,"")),a}function d(e,n,t){return n.indexOf("$")>-1?function(e,n,t){var r,a,l=n,u=l.indexOf("$"),c=l.indexOf("("),s=l.indexOf("+"),f=l.indexOf("-"),d="",p="";-1===l.indexOf("$")?"infix"===i[o].currency.position?(p=i[o].currency.symbol,i[o].currency.spaceSeparated&&(p=" "+p+" ")):i[o].currency.spaceSeparated&&(d=" "):l.indexOf(" $")>-1?(d=" ",l=l.replace(" $","")):l.indexOf("$ ")>-1?(d=" ",l=l.replace("$ ","")):l=l.replace("$","");if(a=h(e,l,t,p),-1===n.indexOf("$"))switch(i[o].currency.position){case"postfix":a.indexOf(")")>-1?((a=a.split("")).splice(-1,0,d+i[o].currency.symbol),a=a.join("")):a=a+d+i[o].currency.symbol;break;case"infix":break;case"prefix":a.indexOf("(")>-1||a.indexOf("-")>-1?(a=a.split(""),r=Math.max(c,f)+1,a.splice(r,0,i[o].currency.symbol+d),a=a.join("")):a=i[o].currency.symbol+d+a;break;default:throw Error(‘Currency position should be among ["prefix", "infix", "postfix"]’)}else u<=1?a.indexOf("(")>-1||a.indexOf("+")>-1||a.indexOf("-")>-1?(a=a.split(""),r=1,(u<c||u<s||u<f)&&(r=0),a.splice(r,0,i[o].currency.symbol+d),a=a.join("")):a=i[o].currency.symbol+d+a:a.indexOf(")")>-1?((a=a.split("")).splice(-1,0,d+i[o].currency.symbol),a=a.join("")):a=a+d+i[o].currency.symbol;return a}(e,n,t):n.indexOf("%")>-1?function(e,n,t){var r,i="";e*=100,n.indexOf(" %")>-1?(i=" ",n=n.replace(" %","")):n=n.replace("%","");(r=h(e,n,t)).indexOf(")")>-1?((r=r.split("")).splice(-1,0,i+"%"),r=r.join("")):r=r+i+"%";return r}(e,n,t):n.indexOf(":")>-1?function(e){var n=Math.floor(e/60/60),t=Math.floor((e-60*n*60)/60),r=Math.round(e-60*n*60-60*t);return n+":"+(t<10?"0"+t:t)+":"+(r<10?"0"+r:r)}(e):h(e,n,t)}function h(e,n,t,r){var a,u,c,s,d,h,p,m,x,g,O,b,w,y,M,v,$,B=!1,E=!1,F=!1,k="",U=!1,N=!1,S=!1,j=!1,D=!1,C="",L="",T=Math.abs(e),K=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],G=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],I="",P=!1,R=!1;if(0===e&&null!==l)return l;if(!isFinite(e))return""+e;if(0===n.indexOf("{")){var W=n.indexOf("}");if(-1===W)throw Error(‘Format should also contain a "}"’);b=n.slice(1,W),n=n.slice(W+1)}else b="";if(n.indexOf("}")===n.length-1){var Y=n.indexOf("{");if(-1===Y)throw Error(‘Format should also contain a "{"’);w=n.slice(Y+1,-1),n=n.slice(0,Y+1)}else w="";if(v=null===($=-1===n.indexOf(".")?n.match(/([0-9]+).*/):n.match(/([0-9]+)\..*/))?-1:$[1].length,-1!==n.indexOf("-")&&(P=!0),n.indexOf("(")>-1?(B=!0,n=n.slice(1,-1)):n.indexOf("+")>-1&&(E=!0,n=n.replace(/\+/g,"")),n.indexOf("a")>-1){if(g=n.split(".")[0].match(/[0-9]+/g)||["0"],g=parseInt(g[0],10),U=n.indexOf("aK")>=0,N=n.indexOf("aM")>=0,S=n.indexOf("aB")>=0,j=n.indexOf("aT")>=0,D=U||N||S||j,n.indexOf(" a")>-1?(k=" ",n=n.replace(" a","")):n=n.replace("a",""),p=0===(p=(d=Math.floor(Math.log(T)/Math.LN10)+1)%3)?3:p,g&&0!==T&&(h=Math.floor(Math.log(T)/Math.LN10)+1-g,m=3*~~((Math.min(g,d)-p)/3),T/=Math.pow(10,m),-1===n.indexOf(".")&&g>3))for(n+="[.]",M=(M=0===h?0:3*~~(h/3)-h)<0?M+3:M,a=0;a<M;a++)n+="0";Math.floor(Math.log(Math.abs(e))/Math.LN10)+1!==g&&(T>=Math.pow(10,12)&&!D||j?(k+=i[o].abbreviations.trillion,e/=Math.pow(10,12)):T<Math.pow(10,12)&&T>=Math.pow(10,9)&&!D||S?(k+=i[o].abbreviations.billion,e/=Math.pow(10,9)):T<Math.pow(10,9)&&T>=Math.pow(10,6)&&!D||N?(k+=i[o].abbreviations.million,e/=Math.pow(10,6)):(T<Math.pow(10,6)&&T>=Math.pow(10,3)&&!D||U)&&(k+=i[o].abbreviations.thousand,e/=Math.pow(10,3)))}if(n.indexOf("b")>-1)for(n.indexOf(" b")>-1?(C=" ",n=n.replace(" b","")):n=n.replace("b",""),s=0;s<=K.length;s++)if(u=Math.pow(1024,s),c=Math.pow(1024,s+1),e>=u&&e<c){C+=K[s],u>0&&(e/=u);break}if(n.indexOf("d")>-1)for(n.indexOf(" d")>-1?(C=" ",n=n.replace(" d","")):n=n.replace("d",""),s=0;s<=G.length;s++)if(u=Math.pow(1e3,s),c=Math.pow(1e3,s+1),e>=u&&e<c){C+=G[s],u>0&&(e/=u);break}if(n.indexOf("o")>-1&&(n.indexOf(" o")>-1?(L=" ",n=n.replace(" o","")):n=n.replace("o",""),i[o].ordinal&&(L+=i[o].ordinal(e))),n.indexOf("[.]")>-1&&(F=!0,n=n.replace("[.]",".")),x=e.toString().split(".")[0],O=n.split(".")[1],y=n.indexOf(","),O){if(x=(I=-1!==O.indexOf("")?f(e,e.toString().split(".")[1].length,t):O.indexOf("[")>-1?f(e,(O=(O=O.replace("]","")).split("["))[0].length+O[1].length,t,O[1].length):f(e,O.length,t)).split(".")[0],I.split(".")[1].length)I=(r?k+r:i[o].delimiters.decimal)+I.split(".")[1];else I="";F&&0===Number(I.slice(1))&&(I="")}else x=f(e,null,t);return x.indexOf("-")>-1&&(x=x.slice(1),R=!0),x.length<v&&(x=new Array(v-x.length+1).join("0")+x),y>-1&&(x=x.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i[o].delimiters.thousands)),0===n.indexOf(".")&&(x=""),b+(n.indexOf("(")<n.indexOf("-")?(B&&R?"(":"")+(P&&R||!B&&R?"-":""):(P&&R||!B&&R?"-":"")+(B&&R?"(":""))+(!R&&E&&0!==e?"+":"")+x+I+(L||"")+(k&&!r?k:"")+(C||"")+(B&&R?")":"")+w}function p(e,n){i[e]=n}function m(e){o=e;var n=i[e].defaults;n&&n.format&&r.defaultFormat(n.format),n&&n.currencyFormat&&r.defaultCurrencyFormat(n.currencyFormat)}(r=function(e){return r.isNumbro(e)?e=e.value():0===e||void 0===e?e=0:Number(e)||(e=r.fn.unformat(e)),new c(Number(e))}).version="1.6.2",r.isNumbro=function(e){return e instanceof c},r.setLanguage=function(e,n){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var t=e,r=e.split("-")[0],i=null;a[t]||(Object.keys(a).forEach((function(e){i||e.split("-")[0]!==r||(i=e)})),t=i||n||"en-US"),m(t)},r.setCulture=function(e,n){var t=e,r=e.split("-")[1],a=null;i[t]||(r&&Object.keys(i).forEach((function(e){a||e.split("-")[1]!==r||(a=e)})),t=a||n||"en-US"),m(t)},r.language=function(e,n){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!e)return o;if(e&&!n){if(!a[e])throw new Error("Unknown language : "+e);m(e)}return!n&&a[e]||p(e,n),r},r.culture=function(e,n){if(!e)return o;if(e&&!n){if(!i[e])throw new Error("Unknown culture : "+e);m(e)}return!n&&i[e]||p(e,n),r},r.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return a[o];if(!a[e])throw new Error("Unknown language : "+e);return a[e]},r.cultureData=function(e){if(!e)return i[o];if(!i[e])throw new Error("Unknown culture : "+e);return i[e]},r.culture("en-US",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var n=e%10;return 1==~~(e%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}}),r.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),a},r.cultures=function(){return i},r.zeroFormat=function(e){l="string"==typeof e?e:null},r.defaultFormat=function(e){u="string"==typeof e?e:"0.0"},r.defaultCurrencyFormat=function(e){"string"==typeof e?e:"0$"},r.validate=function(e,n){var t,i,a,o,l,u,c,s;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;if(""===e)return!1;try{c=r.cultureData(n)}catch(e){c=r.cultureData(r.culture())}return a=c.currency.symbol,l=c.abbreviations,t=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(s=e.match(/^[^\d]+/))||(e=e.substr(1),s[0]===a))&&((null===(s=e.match(/[^\d]+$/))||(e=e.slice(0,-1),s[0]===l.thousand||s[0]===l.million||s[0]===l.billion||s[0]===l.trillion))&&(u=new RegExp(i+"{2}"),!e.match(/[^\d.,]/g)&&(!((o=e.split(t)).length>2)&&(o.length<2?!!o[0].match(/^\d+.\d$/)&&!o[0].match(u):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))))},n.exports={format:function(e,n,t,i){return null!=t&&t!==r.culture()&&r.setCulture(t),d(Number(e),null!=n?n:u,null==i?Math.round:i)}}},n”, ” function _(e,n,t){!function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|’[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(e){return i(a(e),arguments)}function r(e,t){return n.apply(null,[e].concat(t||[]))}function i(t,r){var i,s,a,o,p,c,l,u,f,d=1,g=t.length,y="";for(s=0;s<g;s++)if("string"==typeof t[s])y+=t[s];else if("object"==typeof t[s]){if((o=t[s]).keys)for(i=r[d],a=0;a<o.keys.length;a++){if(null==i)throw new Error(n(‘[sprintf] Cannot access property "%s" of undefined value "%s"’,o.keys[a],o.keys[a-1]));i=i[o.keys[a]]}else i=o.param_no?r[o.param_no]:r[d++];if(e.not_type.test(o.type)&&e.not_primitive.test(o.type)&&i instanceof Function&&(i=i()),e.numeric_arg.test(o.type)&&"number"!=typeof i&&isNaN(i))throw new TypeError(n("[sprintf] expecting number but found %T",i));switch(e.number.test(o.type)&&(u=i>=0),o.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,o.width?parseInt(o.width):0);break;case"e":i=o.precision?parseFloat(i).toExponential(o.precision):parseFloat(i).toExponential();break;case"f":i=o.precision?parseFloat(i).toFixed(o.precision):parseFloat(i);break;case"g":i=o.precision?String(Number(i.toPrecision(o.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}e.json.test(o.type)?y+=i:(!e.number.test(o.type)||u&&!o.sign?f="":(f=u?"+":"-",i=i.toString().replace(e.sign,"")),c=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",l=o.width-(f+i).length,p=o.width&&l>0?c.repeat(l):"",y+=o.align?f+i+p:"0"===c?f+p+i:p+f+i)}return y}var s=Object.create(null);function a(n){if(s[n])return s[n];for(var t,r=n,i=[],a=0;r;){if(null!==(t=e.text.exec(r)))i.push(t[0]);else if(null!==(t=e.modulo.exec(r)))i.push("%");else{if(null===(t=e.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var o=[],p=t[2],c=[];if(null===(c=e.key.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(p=p.substring(c[0].length));)if(null!==(c=e.key_access.exec(p)))o.push(c[1]);else{if(null===(c=e.index_access.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}t[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return s[n]=i}void 0!==t&&(t.sprintf=n,t.vsprintf=r),"undefined"!=typeof window&&(window.sprintf=n,window.vsprintf=r,"function"==typeof define&&define.amd&&define((function(){return{sprintf:n,vsprintf:r}})))}()},n”, ” function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(9),a=e(109),s=e(162),r=e(163),c=e(166),_=e(167),m=e(165);class k extends s.CompositeTicker{constructor(e){super(e)}static init_DatetimeTicker(){this.override({num_minor_ticks:0,tickers:()=>[new a.AdaptiveTicker({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*m.ONE_MILLI,num_minor_ticks:0}),new a.AdaptiveTicker({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:m.ONE_SECOND,max_interval:30*m.ONE_MINUTE,num_minor_ticks:0}),new a.AdaptiveTicker({mantissas:[1,2,4,6,8,12],base:24,min_interval:m.ONE_HOUR,max_interval:12*m.ONE_HOUR,num_minor_ticks:0}),new r.DaysTicker({days:t.range(1,32)}),new r.DaysTicker({days:t.range(1,31,3)}),new r.DaysTicker({days:[1,8,15,22]}),new r.DaysTicker({days:[1,15]}),new c.MonthsTicker({months:t.range(0,12,1)}),new c.MonthsTicker({months:t.range(0,12,2)}),new c.MonthsTicker({months:t.range(0,12,4)}),new c.MonthsTicker({months:t.range(0,12,6)}),new _.YearsTicker({})]})}}n.DatetimeTicker=k,k.__name__="DatetimeTicker",k.init_DatetimeTicker()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(1),s=t(110),n=r.__importStar(t(19)),_=t(9),a=t(24);class c extends s.ContinuousTicker{constructor(t){super(t)}static init_CompositeTicker(){this.define({tickers:[n.Array,[]]})}get min_intervals(){return this.tickers.map(t=>t.get_min_interval())}get max_intervals(){return this.tickers.map(t=>t.get_max_interval())}get min_interval(){return this.min_intervals[0]}get max_interval(){return this.max_intervals[0]}get_best_ticker(t,e,i){const r=e-t,s=this.get_ideal_interval(t,e,i),n=[_.sorted_index(this.min_intervals,s)-1,_.sorted_index(this.max_intervals,s)],c=[this.min_intervals[n[0]],this.max_intervals[n[1]]].map(t=>Math.abs(i-r/t));let l;if(a.isEmpty(c.filter(t=>!isNaN(t))))l=this.tickers[0];else{const t=n[_.argmin(c)];l=this.tickers[t]}return l}get_interval(t,e,i){return this.get_best_ticker(t,e,i).get_interval(t,e,i)}get_ticks_no_defaults(t,e,i,r){return this.get_best_ticker(t,e,r).get_ticks_no_defaults(t,e,i,r)}}i.CompositeTicker=c,c.__name__="CompositeTicker",c.init_CompositeTicker()},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),s=t(164),a=t(165),o=i.__importStar(t(19)),r=t(9);class _ extends s.SingleIntervalTicker{constructor(t){super(t)}static init_DaysTicker(){this.define({days:[o.Array,[]]}),this.override({num_minor_ticks:0})}initialize(){super.initialize();const t=this.days;t.length>1?this.interval=(t[1]-t[0])*a.ONE_DAY:this.interval=31*a.ONE_DAY}get_ticks_no_defaults(t,e,n,i){const s=function(t,e){const n=a.last_month_no_later_than(new Date(t)),i=a.last_month_no_later_than(new Date(e));i.setUTCMonth(i.getUTCMonth()+1);const s=[],o=n;for(;s.push(a.copy_date(o)),o.setUTCMonth(o.getUTCMonth()+1),!(o>i););return s}(t,e),o=this.days,_=this.interval;return{major:r.concat(s.map(t=>((t,e)=>{const n=t.getUTCMonth(),i=[];for(const s of o){const o=a.copy_date(t);o.setUTCDate(s),new Date(o.getTime()+e/2).getUTCMonth()==n&&i.push(o)}return i})(t,_))).map(t=>t.getTime()).filter(n=>t<=n&&n<=e),minor:[]}}}n.DaysTicker=_,_.__name__="DaysTicker",_.init_DaysTicker()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),r=e(110),l=n.__importStar(e(19));class a extends r.ContinuousTicker{constructor(e){super(e)}static init_SingleIntervalTicker(){this.define({interval:[l.Number]})}get_interval(e,t,i){return this.interval}get min_interval(){return this.interval}get max_interval(){return this.interval}}i.SingleIntervalTicker=a,a.__name__="SingleIntervalTicker",a.init_SingleIntervalTicker()},n”, ” function _(t,e,n){function _(t){return new Date(t.getTime())}function O(t){const e=_(t);return e.setUTCDate(1),e.setUTCHours(0),e.setUTCMinutes(0),e.setUTCSeconds(0),e.setUTCMilliseconds(0),e}Object.defineProperty(n,"__esModule",{value:!0}),n.ONE_MILLI=1,n.ONE_SECOND=1e3,n.ONE_MINUTE=60*n.ONE_SECOND,n.ONE_HOUR=60*n.ONE_MINUTE,n.ONE_DAY=24*n.ONE_HOUR,n.ONE_MONTH=30*n.ONE_DAY,n.ONE_YEAR=365*n.ONE_DAY,n.copy_date=_,n.last_month_no_later_than=O,n.last_year_no_later_than=function(t){const e=O(t);return e.setUTCMonth(0),e}},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),i=t(164),s=t(165),a=r.__importStar(t(19)),o=t(9);class _ extends i.SingleIntervalTicker{constructor(t){super(t)}static init_MonthsTicker(){this.define({months:[a.Array,[]]})}initialize(){super.initialize();const t=this.months;t.length>1?this.interval=(t[1]-t[0])*s.ONE_MONTH:this.interval=12*s.ONE_MONTH}get_ticks_no_defaults(t,e,n,r){const i=function(t,e){const n=s.last_year_no_later_than(new Date(t)),r=s.last_year_no_later_than(new Date(e));r.setUTCFullYear(r.getUTCFullYear()+1);const i=[],a=n;for(;i.push(s.copy_date(a)),a.setUTCFullYear(a.getUTCFullYear()+1),!(a>r););return i}(t,e),a=this.months;return{major:o.concat(i.map(t=>a.map(e=>{const n=s.copy_date(t);return n.setUTCMonth(e),n}))).map(t=>t.getTime()).filter(n=>t<=n&&n<=e),minor:[]}}}n.MonthsTicker=_,_.__name__="MonthsTicker",_.init_MonthsTicker()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(108),r=e(164),n=e(165);class _ extends r.SingleIntervalTicker{constructor(e){super(e)}initialize(){super.initialize(),this.interval=n.ONE_YEAR,this.basic_ticker=new i.BasicTicker({num_minor_ticks:0})}get_ticks_no_defaults(e,t,a,i){const r=n.last_year_no_later_than(new Date(e)).getUTCFullYear(),_=n.last_year_no_later_than(new Date(t)).getUTCFullYear();return{major:this.basic_ticker.get_ticks_no_defaults(r,_,a,i).major.map(e=>Date.UTC(e,0,1)).filter(a=>e<=a&&a<=t),minor:[]}}}a.YearsTicker=_,_.__name__="YearsTicker"},n”, ” function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(148),o=e(153),n=e(169),r=e(170);class _ extends s.AxisView{}t.LogAxisView=_,_.__name__="LogAxisView";class c extends o.ContinuousAxis{constructor(e){super(e)}static init_LogAxis(){this.prototype.default_view=_,this.override({ticker:()=>new r.LogTicker,formatter:()=>new n.LogTickFormatter})}}t.LogAxis=c,c.__name__="LogAxis",c.init_LogAxis()},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),o=t(113),a=t(112),n=i.__importStar(t(19));class c extends o.TickFormatter{constructor(t){super(t)}static init_LogTickFormatter(){this.define({ticker:[n.Instance,null]})}initialize(){super.initialize(),this.basic_formatter=new a.BasicTickFormatter}doFormat(t,e){if(0==t.length)return[];const r=null!=this.ticker?this.ticker.base:10;let i=!1;const o=new Array(t.length);for(let e=0,a=t.length;e<a;e++)if(o[e]=`${r}^${Math.round(Math.log(t[e])/Math.log(r))}`,e>0&&o[e]==o[e-1]){i=!0;break}return i?this.basic_formatter.doFormat(t,e):o}}r.LogTickFormatter=c,c.__name__="LogTickFormatter",c.init_LogTickFormatter()},n”, ” function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(109),s=t(9);class n extends i.AdaptiveTicker{constructor(t){super(t)}static init_LogTicker(){this.override({mantissas:[1,5]})}get_ticks_no_defaults(t,o,e,i){const n=this.num_minor_ticks,r=[],c=this.base,a=Math.log(t)/Math.log(c),f=Math.log(o)/Math.log(c),l=f-a;let h;if(isFinite(l))if(l<2){const e=this.get_interval(t,o,i),c=Math.floor(t/e),a=Math.ceil(o/e);if(h=s.range(c,a+1).filter(t=>0!=t).map(t=>t*e).filter(e=>t<=e&&e<=o),n>0&&h.length>0){const t=e/n,o=s.range(0,n).map(o=>o*t);for(const t of o.slice(1))r.push(h[0]-t);for(const t of h)for(const e of o)r.push(t+e)}}else{const t=Math.ceil(.999999*a),o=Math.floor(1.000001*f),e=Math.ceil((o-t)/9);if(h=s.range(t-1,o+1,e).map(t=>c**t),n>0&&h.length>0){const t=c**e/n,o=s.range(1,n+1).map(o=>o*t);for(const t of o)r.push(h[0]/t);r.push(h[0]);for(const t of h)for(const e of o)r.push(t*e)}}else h=[];return{major:h.filter(e=>t<=e&&e<=o),minor:r.filter(e=>t<=e&&e<=o)}}}e.LogTicker=n,n.__name__="LogTicker",n.init_LogTicker()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(148),s=e(155),o=e(172),a=e(173);class c extends i.AxisView{}r.MercatorAxisView=c,c.__name__="MercatorAxisView";class n extends s.LinearAxis{constructor(e){super(e)}static init_MercatorAxis(){this.prototype.default_view=c,this.override({ticker:()=>new a.MercatorTicker({dimension:"lat"}),formatter:()=>new o.MercatorTickFormatter({dimension:"lat"})})}}r.MercatorAxis=n,n.__name__="MercatorAxis",n.init_MercatorAxis()},n”, ” function _(r,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=r(1),n=r(112),i=o.__importStar(r(19)),c=r(30);class s extends n.BasicTickFormatter{constructor(r){super(r)}static init_MercatorTickFormatter(){this.define({dimension:[i.LatLon]})}doFormat(r,t){if(null==this.dimension)throw new Error("MercatorTickFormatter.dimension not configured");if(0==r.length)return[];const e=r.length,o=new Array(e);if("lon"==this.dimension)for(let n=0;n<e;n++){const[e]=c.wgs84_mercator.inverse([r[n],t.loc]);o[n]=e}else for(let n=0;n<e;n++){const[,e]=c.wgs84_mercator.inverse([t.loc,r[n]]);o[n]=e}return super.doFormat(o,t)}}e.MercatorTickFormatter=s,s.__name__="MercatorTickFormatter",s.init_MercatorTickFormatter()},n”, ” function _(r,o,e){Object.defineProperty(e,"__esModule",{value:!0});const n=r(1),s=r(108),i=n.__importStar(r(19)),t=r(30);class c extends s.BasicTicker{constructor(r){super(r)}static init_MercatorTicker(){this.define({dimension:[i.LatLon]})}get_ticks_no_defaults(r,o,e,n){if(null==this.dimension)throw new Error("MercatorTicker.dimension not configured");let s,i,c;[r,o]=t.clip_mercator(r,o,this.dimension),"lon"===this.dimension?([s,c]=t.wgs84_mercator.inverse([r,e]),[i,c]=t.wgs84_mercator.inverse([o,e])):([c,s]=t.wgs84_mercator.inverse([e,r]),[c,i]=t.wgs84_mercator.inverse([e,o]));const a=super.get_ticks_no_defaults(s,i,e,n),_=[],f=[];if("lon"===this.dimension){for(const r of a.major)if(t.in_bounds(r,"lon")){const[o]=t.wgs84_mercator.forward([r,c]);_.push(o)}for(const r of a.minor)if(t.in_bounds(r,"lon")){const[o]=t.wgs84_mercator.forward([r,c]);f.push(o)}}else{for(const r of a.major)if(t.in_bounds(r,"lat")){const[,o]=t.wgs84_mercator.forward([c,r]);_.push(o)}for(const r of a.minor)if(t.in_bounds(r,"lat")){const[,o]=t.wgs84_mercator.forward([c,r]);f.push(o)}}return{major:_,minor:f}}}e.MercatorTicker=c,c.__name__="MercatorTicker",c.init_MercatorTicker()},n”, ” function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});var t=e(175);o.CustomJS=t.CustomJS;var u=e(177);o.OpenURL=u.OpenURL},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),u=t(176),c=n.__importStar(t(19)),r=t(24),a=t(26);class i extends u.Callback{constructor(t){super(t)}static init_CustomJS(){this.define({args:[c.Any,{}],code:[c.String,""]})}get names(){return r.keys(this.args)}get values(){return r.values(this.args)}get func(){const t=a.use_strict(this.code);return new Function(…this.names,"cb_obj","cb_data",t)}execute(t,e={}){return this.func.apply(t,this.values.concat(t,e))}}s.CustomJS=i,i.__name__="CustomJS",i.init_CustomJS()},n”, ” function _(e,c,l){Object.defineProperty(l,"__esModule",{value:!0});const a=e(69);class n extends a.Model{constructor(e){super(e)}}l.Callback=n,n.__name__="Callback"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(1),s=e(176),i=e(158),c=o.__importStar(e(19));class r extends s.Callback{constructor(e){super(e)}static init_OpenURL(){this.define({url:[c.String,"http://"],same_tab:[c.Boolean,!1]})}execute(e,{source:t}){const n=e=>{const n=i.replace_placeholders(this.url,t,e);this.same_tab?window.location.href=n:window.open(n)},{selected:o}=t;for(const e of o.indices)n(e);for(const e of o.line_indices)n(e)}}n.OpenURL=r,r.__name__="OpenURL",r.init_OpenURL()},n”, ” function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=a(179);r.Canvas=n.Canvas;var s=a(183);r.CartesianFrame=s.CartesianFrame},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const a=e(1),i=e(13),n=e(64),l=e(70),o=a.__importStar(e(19)),c=e(66),d=e(85),h=e(180),_=e(181),r=(()=>{const e=document.createElement("canvas"),t=e.getContext("webgl",{premultipliedAlpha:!0});return null!=t?{canvas:e,gl:t}:void l.logger.trace("WebGL is not supported")})(),v=a.__importDefault(e(182));class p extends n.DOMView{get ctx(){return this._ctx}initialize(){super.initialize();const e={position:"absolute",top:"0",left:"0",width:"100%",height:"100%"};switch(this.model.output_backend){case"webgl":this.webgl=r;case"canvas":{this.canvas_el=c.canvas({class:_.bk_canvas,style:e});const t=this.canvas_el.getContext("2d");if(null==t)throw new Error("unable to obtain 2D rendering context");this._ctx=t;break}case"svg":{const e=new v.default;this._ctx=e,this.canvas_el=e.getSvg();break}}this.underlays_el=c.div({class:_.bk_canvas_underlays,style:e}),this.overlays_el=c.div({class:_.bk_canvas_overlays,style:e}),this.events_el=c.div({class:_.bk_canvas_events,style:e}),c.append(this.el,this.underlays_el,this.canvas_el,this.overlays_el,this.events_el),h.fixup_ctx(this._ctx),l.logger.debug("CanvasView initialized")}add_underlay(e){this.underlays_el.appendChild(e)}add_overlay(e){this.overlays_el.appendChild(e)}add_event(e){this.events_el.appendChild(e)}prepare_canvas(e,t){this.bbox=new d.BBox({left:0,top:0,width:e,height:t}),this.el.style.width=`${e}px`,this.el.style.height=`${t}px`;const{use_hidpi:s,output_backend:a}=this.model,i=s&&"svg"!=a?devicePixelRatio:1;this.model.pixel_ratio=i,this.canvas_el.style.width=`${e}px`,this.canvas_el.style.height=`${t}px`,this.canvas_el.setAttribute("width",`${e*i}`),this.canvas_el.setAttribute("height",`${t*i}`),l.logger.debug(Rendering CanvasView with width: ${e}, height: ${t}, pixel ratio: ${i})}save(e){if(this.canvas_el instanceof HTMLCanvasElement){const t=this.canvas_el;if(null!=t.msToBlob){const s=t.msToBlob();window.navigator.msSaveBlob(s,e)}else{const s=document.createElement("a");s.href=t.toDataURL("image/png"),s.download=e+".png",s.target="_blank",s.dispatchEvent(new MouseEvent("click"))}}else{const t=this._ctx.getSerializedSvg(!0),s=new Blob([t],{type:"text/plain"}),a=document.createElement("a");a.download=e+".svg",a.innerHTML="Download svg",a.href=window.URL.createObjectURL(s),a.onclick=e=>document.body.removeChild(e.target),a.style.display="none",document.body.appendChild(a),a.click()}}}s.CanvasView=p,p.__name__="CanvasView";class u extends i.HasProps{constructor(e){super(e)}static init_Canvas(){this.prototype.default_view=p,this.internal({use_hidpi:[o.Boolean,!0],pixel_ratio:[o.Number,1],output_backend:[o.OutputBackend,"canvas"]})}}s.Canvas=u,u.__name__="Canvas",u.init_Canvas()},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fixup_ctx=function(e){!function(e){e.setLineDash||(e.setLineDash=t=>{e.mozDash=t,e.webkitLineDash=t}),e.getLineDash||(e.getLineDash=()=>e.mozDash)}(e),function(e){e.setLineDashOffset=t=>{e.lineDashOffset=t,e.mozDashOffset=t,e.webkitLineDashOffset=t},e.getLineDashOffset=()=>e.mozDashOffset}(e),function(e){e.setImageSmoothingEnabled=t=>{e.imageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.oImageSmoothingEnabled=t,e.webkitImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t},e.getImageSmoothingEnabled=()=>{const t=e.imageSmoothingEnabled;return null==t||t}}(e),function(e){e.measureText&&null==e.html5MeasureText&&(e.html5MeasureText=e.measureText,e.measureText=t=>{const n=e.html5MeasureText(t);return n.ascent=1.6*e.html5MeasureText("m").width,n})}(e),function(e){e.ellipse||(e.ellipse=function(t,n,a,o,s,i,m,h=!1){const l=.551784;e.translate(t,n),e.rotate(s);let u=a,r=o;h&&(u=-a,r=-o),e.moveTo(-u,0),e.bezierCurveTo(-u,r*l,-u*l,r,0,r),e.bezierCurveTo(u*l,r,u,r*l,u,0),e.bezierCurveTo(u,-r*l,u*l,-r,0,-r),e.bezierCurveTo(-u*l,-r,-u,-r*l,-u,0),e.rotate(-s),e.translate(-t,-n)})}(e)}},n”, ” function _(a,e,n){Object.defineProperty(n,"__esModule",{value:!0}),a(67),n.bk_canvas="bk-canvas",n.bk_canvas_underlays="bk-canvas-underlays",n.bk_canvas_overlays="bk-canvas-overlays",n.bk_canvas_events="bk-canvas-events"},n”, ” function _(t,e,r){var i,n,s,a,o;function h(t,e){var r,i=Object.keys(e);for(r=0;r<i.length;r++)t=t.replace(new RegExp("\\{"+i[r]+"\\}","gi"),e[i[r]]);return t}function l(t){var e,r,i;if(!t)throw new Error("cannot create a random attribute name for an undefined object");e="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",r="";do{for(r="",i=0;i<12;i++)r+=e[Math.floor(Math.random()*e.length)]}while(t[r]);return r}function c(t){var e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}n”, ” /!!n”, ” * Canvas 2 Svg v1.0.21n”, ” * A low level canvas to SVG converter. Uses a mock canvas context to build an SVG document.n”, ” *n”, ” * Licensed under the MIT license:n”, ” * http://www.opensource.org/licenses/mit-license.phpn”, ” *n”, ” * Author:n”, ” * Kerry Liun”, ” *n”, ” * Copyright (c) 2014 Gliffy Inc.n”, ” */n”, ” Object.defineProperty(r,"__esModule",{value:!0}),o=function(t,e){var r,i,n,s={};for(t=t.split(","),e=e||10,r=0;r<t.length;r+=2)i="&"+t[r+1]+";",n=parseInt(t[r],e),s[i]="&#"+n+";";return s["\\xa0"]=" ",s}("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),i={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}},(s=function(t,e){this.__root=t,this.__ctx=e}).prototype.addColorStop=function(t,e){var r,i=this.__ctx.__createElement("stop");i.setAttribute("offset",t),-1!==e.indexOf("rgba")?(r=/rgba\(\s*(\d+)\s,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e),i.setAttribute("stop-color",h("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),i.setAttribute("stop-opacity",r[4])):i.setAttribute("stop-color",e),this.__root.appendChild(i)},a=function(t,e){this.__root=t,this.__ctx=e},(n=function(t){var e,r={width:500,height:500,enableMirroring:!1};if(arguments.length>1?((e=r).width=arguments[0],e.height=arguments[1]):e=t||r,!(this instanceof n))return new n(e);this.width=e.width||r.width,this.height=e.height||r.height,this.enableMirroring=void 0!==e.enableMirroring?e.enableMirroring:r.enableMirroring,this.canvas=this,this.__document=e.document||document,e.ctx?this.__ctx=e.ctx:(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d")),this.__setDefaultStyles(),this.__stack=[this.__getStyleState()],this.__groupStack=[],this.__root=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__root.setAttribute("version",1.1),this.__root.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__root.setAttribute("width",this.width),this.__root.setAttribute("height",this.height),this.__ids={},this.__defs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__root.appendChild(this.__defs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__root.appendChild(this.__currentElement)}).prototype.__createElement=function(t,e,r){void 0===e&&(e={});var i,n,s=this.__document.createElementNS("http://www.w3.org/2000/svg",t),a=Object.keys(e);for(r&&(s.setAttribute("fill","none"),s.setAttribute("stroke","none")),i=0;i<a.length;i++)n=a[i],s.setAttribute(n,e[n]);return s},n.prototype.__setDefaultStyles=function(){var t,e,r=Object.keys(i);for(t=0;t<r.length;t++)this[e=r[t]]=i[e].canvas},n.prototype.__applyStyleState=function(t){var e,r,i=Object.keys(t);for(e=0;e<i.length;e++)this[r=i[e]]=t[r]},n.prototype.__getStyleState=function(){var t,e,r={},n=Object.keys(i);for(t=0;t<n.length;t++)r[e=n[t]]=this[e];return r},n.prototype.__applyStyleToCurrentElement=function(t){var e=this.__currentElement,r=this.__currentElementsToStyle;r&&(e.setAttribute(t,""),e=r.element,r.children.forEach((function(e){e.setAttribute(t,"")})));var n,o,l,c,p,_=Object.keys(i);for(n=0;n<_.length;n++)if(o=i[_[n]],l=this[_[n]],o.apply)if(l instanceof a){if(l.__ctx)for(;l.__ctx.__defs.childNodes.length;)c=l.__ctx.__defs.childNodes[0].getAttribute("id"),this.__ids[c]=c,this.__defs.appendChild(l.__ctx.__defs.childNodes[0]);e.setAttribute(o.apply,h("url(#{id})",{id:l.__root.getAttribute("id")}))}else if(l instanceof s)e.setAttribute(o.apply,h("url(#{id})",{id:l.__root.getAttribute("id")}));else if(-1!==o.apply.indexOf(t)&&o.svg!==l)if("stroke"!==o.svgAttr&&"fill"!==o.svgAttr||-1===l.indexOf("rgba")){var u=o.svgAttr;if("globalAlpha"===_[n]&&(u=t+"-"+o.svgAttr,e.getAttribute(u)))continue;e.setAttribute(u,l)}else{p=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(l),e.setAttribute(o.svgAttr,h("rgb({r},{g},{b})",{r:p[1],g:p[2],b:p[3]}));var d=p[4],g=this.globalAlpha;null!=g&&(d*=g),e.setAttribute(o.svgAttr+"-opacity",d)}},n.prototype.__closestGroupOrSvg=function(t){return"g"===(t=t||this.__currentElement).nodeName||"svg"===t.nodeName?t:this.__closestGroupOrSvg(t.parentNode)},n.prototype.getSerializedSvg=function(t){var e,r,i,n,s,a=(new XMLSerializer).serializeToString(this.__root);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(a)&&(a=a.replace(‘xmlns="http://www.w3.org/2000/svg’,’xmlns:xlink="http://www.w3.org/1999/xlink’)),t)for(e=Object.keys(o),r=0;r<e.length;r++)i=e[r],n=o[i],(s=new RegExp(i,"gi")).test(a)&&(a=a.replace(s,n));return a},n.prototype.getSvg=function(){return this.__root},n.prototype.save=function(){var t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__stack.push(this.__getStyleState())},n.prototype.restore=function(){this.__currentElement=this.__groupStack.pop(),this.__currentElementsToStyle=null,this.__currentElement||(this.__currentElement=this.__root.childNodes[1]);var t=this.__stack.pop();this.__applyStyleState(t)},n.prototype.__addTransform=function(t){var e=this.__closestGroupOrSvg();if(e.childNodes.length>0){"path"===this.__currentElement.nodeName&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());var r=this.__createElement("g");e.appendChild(r),this.__currentElement=r}var i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=t,this.__currentElement.setAttribute("transform",i)},n.prototype.scale=function(t,e){void 0===e&&(e=t),this.__addTransform(h("scale({x},{y})",{x:t,y:e}))},n.prototype.rotate=function(t){var e=180*t/Math.PI;this.__addTransform(h("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))},n.prototype.translate=function(t,e){this.__addTransform(h("translate({x},{y})",{x:t,y:e}))},n.prototype.transform=function(t,e,r,i,n,s){this.__addTransform(h("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:r,d:i,e:n,f:s}))},n.prototype.beginPath=function(){var t;this.__currentDefaultPath="",this.__currentPosition={},t=this.__createElement("path",{},!0),this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t},n.prototype.__applyCurrentDefaultPath=function(){var t=this.__currentElement;"path"===t.nodeName?t.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",t.nodeName)},n.prototype.__addPathCommand=function(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t},n.prototype.moveTo=function(t,e){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(h("M {x} {y}",{x:t,y:e}))},n.prototype.closePath=function(){this.__currentDefaultPath&&this.__addPathCommand("Z")},n.prototype.lineTo=function(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(h("L {x} {y}",{x:t,y:e})):this.__addPathCommand(h("M {x} {y}",{x:t,y:e}))},n.prototype.bezierCurveTo=function(t,e,r,i,n,s){this.__currentPosition={x:n,y:s},this.__addPathCommand(h("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:r,cp2y:i,x:n,y:s}))},n.prototype.quadraticCurveTo=function(t,e,r,i){this.__currentPosition={x:r,y:i},this.__addPathCommand(h("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:r,y:i}))};var p=function(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]};n.prototype.arcTo=function(t,e,r,i,n){var s=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(void 0!==s&&void 0!==a){if(n<0)throw new Error("IndexSizeError: The radius provided ("+n+") is negative.");if(s===t&&a===e||t===r&&e===i||0===n)this.lineTo(t,e);else{var o=p([s-t,a-e]),h=p([r-t,i-e]);if(o[0]*h[1]!=o[1]*h[0]){var l=o[0]*h[0]+o[1]*h[1],c=Math.acos(Math.abs(l)),_=p([o[0]+h[0],o[1]+h[1]]),u=n/Math.sin(c/2),d=t+u*_[0],g=e+u*_[1],m=[-o[1],o[0]],f=[h[1],-h[0]],y=function(t){var e=t[0];return t[1]>=0?Math.acos(e):-Math.acos(e)},v=y(m),b=y(f);this.lineTo(d+m[0]*n,g+m[1]*n),this.arc(d,g,n,v,b)}else this.lineTo(t,e)}}},n.prototype.stroke=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")},n.prototype.fill=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")},n.prototype.rect=function(t,e,r,i){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()},n.prototype.fillRect=function(t,e,r,i){var n;n=this.__createElement("rect",{x:t,y:e,width:r,height:i},!0),this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("fill")},n.prototype.strokeRect=function(t,e,r,i){var n;n=this.__createElement("rect",{x:t,y:e,width:r,height:i},!0),this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("stroke")},n.prototype.__clearCanvas=function(){for(var t=this.__closestGroupOrSvg().getAttribute("transform"),e=this.__root.childNodes[1],r=e.childNodes,i=r.length-1;i>=0;i–)r[i]&&e.removeChild(r[i]);this.__currentElement=e,this.__groupStack=[],t&&this.__addTransform(t)},n.prototype.clearRect=function(t,e,r,i){if(0!==t||0!==e||r!==this.width||i!==this.height){var n,s=this.__closestGroupOrSvg();n=this.__createElement("rect",{x:t,y:e,width:r,height:i,fill:"#FFFFFF"},!0),s.appendChild(n)}else this.__clearCanvas()},n.prototype.createLinearGradient=function(t,e,r,i){var n=this.__createElement("linearGradient",{id:l(this.__ids),x1:t+"px",x2:r+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(n),new s(n,this)},n.prototype.createRadialGradient=function(t,e,r,i,n,a){var o=this.__createElement("radialGradient",{id:l(this.__ids),cx:i+"px",cy:n+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(o),new s(o,this)},n.prototype.__parseFont=function(){var t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\’\"\sa-z0-9]+?)\s*$/i.exec(this.font),e={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return"underline"===this.__fontUnderline&&(e.decoration="underline"),this.__fontHref&&(e.href=this.__fontHref),e},n.prototype.__wrapTextLink=function(t,e){if(t.href){var r=this.__createElement("a");return r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),r.appendChild(e),r}return e},n.prototype.__applyText=function(t,e,r,i){var n,s,a=this.__parseFont(),o=this.__closestGroupOrSvg(),h=this.__createElement("text",{"font-family":a.family,"font-size":a.size,"font-style":a.style,"font-weight":a.weight,"text-decoration":a.decoration,x:e,y:r,"text-anchor":(n=this.textAlign,s={left:"start",right:"end",center:"middle",start:"start",end:"end"},s[n]||s.start),"dominant-baseline":c(this.textBaseline)},!0);h.appendChild(this.__document.createTextNode(t)),this.__currentElement=h,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(a,h))},n.prototype.fillText=function(t,e,r){this.__applyText(t,e,r,"fill")},n.prototype.strokeText=function(t,e,r){this.__applyText(t,e,r,"stroke")},n.prototype.measureText=function(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)},n.prototype.arc=function(t,e,r,i,n,s){if(i!==n){(i%=2*Math.PI)===(n%=2*Math.PI)&&(n=(n+2*Math.PI-.001*(s?-1:1))%(2*Math.PI));var a=t+r*Math.cos(n),o=e+r*Math.sin(n),l=t+r*Math.cos(i),c=e+r*Math.sin(i),p=s?0:1,_=0,u=n-i;u<0&&(u+=2*Math.PI),_=s?u>Math.PI?0:1:u>Math.PI?1:0,this.lineTo(l,c),this.__addPathCommand(h("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:r,ry:r,xAxisRotation:0,largeArcFlag:_,sweepFlag:p,endX:a,endY:o})),this.__currentPosition={x:a,y:o}}},n.prototype.clip=function(){var t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),r=l(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",r),e.appendChild(this.__currentElement),this.__defs.appendChild(e),t.setAttribute("clip-path",h("url(#{id})",{id:r})),t.appendChild(i),this.__currentElement=i},n.prototype.drawImage=function(){var t,e,r,i,s,a,o,h,l,c,p,_,u,d,g=Array.prototype.slice.call(arguments),m=g[0],f=0,y=0;if(3===g.length)t=g[1],e=g[2],r=s=m.width,i=a=m.height;else if(5===g.length)t=g[1],e=g[2],r=g[3],i=g[4],s=m.width,a=m.height;else{if(9!==g.length)throw new Error("Inavlid number of arguments passed to drawImage: "+arguments.length);f=g[1],y=g[2],s=g[3],a=g[4],t=g[5],e=g[6],r=g[7],i=g[8]}o=this.__closestGroupOrSvg(),this.__currentElement;var v="translate("+t+", "+e+")";if(m instanceof n){if((h=m.getSvg().cloneNode(!0)).childNodes&&h.childNodes.length>1){for(l=h.childNodes[0];l.childNodes.length;)d=l.childNodes[0].getAttribute("id"),this.__ids[d]=d,this.__defs.appendChild(l.childNodes[0]);if(c=h.childNodes[1]){var b,x=c.getAttribute("transform");b=x?x+" "+v:v,c.setAttribute("transform",b),o.appendChild(c)}}}else"IMG"===m.nodeName?((p=this.__createElement("image")).setAttribute("width",r),p.setAttribute("height",i),p.setAttribute("preserveAspectRatio","none"),(f||y||s!==m.width||a!==m.height)&&((_=this.__document.createElement("canvas")).width=r,_.height=i,(u=_.getContext("2d")).drawImage(m,f,y,s,a,0,0,r,i),m=_),p.setAttribute("transform",v),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===m.nodeName?m.toDataURL():m.getAttribute("src")),o.appendChild(p)):"CANVAS"===m.nodeName&&((p=this.__createElement("image")).setAttribute("width",r),p.setAttribute("height",i),p.setAttribute("preserveAspectRatio","none"),(_=this.__document.createElement("canvas")).width=r,_.height=i,(u=_.getContext("2d")).imageSmoothingEnabled=!1,u.mozImageSmoothingEnabled=!1,u.oImageSmoothingEnabled=!1,u.webkitImageSmoothingEnabled=!1,u.drawImage(m,f,y,s,a,0,0,r,i),m=_,p.setAttribute("transform",v),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m.toDataURL()),o.appendChild(p))},n.prototype.createPattern=function(t,e){var r,i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),s=l(this.__ids);return i.setAttribute("id",s),i.setAttribute("width",t.width),i.setAttribute("height",t.height),"CANVAS"===t.nodeName||"IMG"===t.nodeName?((r=this.__document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("width",t.width),r.setAttribute("height",t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===t.nodeName?t.toDataURL():t.getAttribute("src")),i.appendChild(r),this.__defs.appendChild(i)):t instanceof n&&(i.appendChild(t.__root.childNodes[1]),this.__defs.appendChild(i)),new a(i,this)},n.prototype.setLineDash=function(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null},n.prototype.drawFocusRing=function(){},n.prototype.createImageData=function(){},n.prototype.getImageData=function(){},n.prototype.putImageData=function(){},n.prototype.globalCompositeOperation=function(){},n.prototype.setTransform=function(){},r.default=n},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const a=e(184),_=e(120),n=e(129),r=e(130),i=e(185),g=e(88),c=e(187);class h extends c.LayoutItem{constructor(e,t,s,a,_={},n={}){super(),this.x_scale=e,this.y_scale=t,this.x_range=s,this.y_range=a,this.extra_x_ranges=_,this.extra_y_ranges=n,this._configure_scales()}map_to_screen(e,t,s="default",a="default"){return[this.xscales[s].v_compute(e),this.yscales[a].v_compute(t)]}_get_ranges(e,t){return Object.assign(Object.assign({},t),{default:e})}_get_scales(e,t,s){const c={};for(const h in t){const o=t[h];if((o instanceof i.DataRange1d||o instanceof r.Range1d)&&!(e instanceof _.ContinuousScale))throw new Error(Range ${o.type} is incompatible is Scale ${e.type});if(o instanceof g.FactorRange&&!(e instanceof a.CategoricalScale))throw new Error(Range ${o.type} is incompatible is Scale ${e.type});e instanceof n.LogScale&&o instanceof i.DataRange1d&&(o.scale_hint="log");const l=e.clone();l.setv({source_range:o,target_range:s}),c[h]=l}return c}_configure_frame_ranges(){this._h_target=new r.Range1d({start:this._left.value,end:this._right.value}),this._v_target=new r.Range1d({start:this._bottom.value,end:this._top.value})}_configure_scales(){this._configure_frame_ranges(),this._x_ranges=this._get_ranges(this.x_range,this.extra_x_ranges),this._y_ranges=this._get_ranges(this.y_range,this.extra_y_ranges),this._xscales=this._get_scales(this.x_scale,this._x_ranges,this._h_target),this._yscales=this._get_scales(this.y_scale,this._y_ranges,this._v_target)}_update_scales(){this._configure_frame_ranges();for(const e in this._xscales){this._xscales[e].target_range=this._h_target}for(const e in this._yscales){this._yscales[e].target_range=this._v_target}}_set_geometry(e,t){super._set_geometry(e,t),this._update_scales()}get x_ranges(){return this._x_ranges}get y_ranges(){return this._y_ranges}get xscales(){return this._xscales}get yscales(){return this._yscales}}s.CartesianFrame=h,h.__name__="CartesianFrame"},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(121);class _ extends n.Scale{constructor(e){super(e)}compute(e){return super._linear_compute(this.source_range.synthetic(e))}v_compute(e){return super._linear_v_compute(this.source_range.v_synthetic(e))}invert(e){return this._linear_invert(e)}v_invert(e){return this._linear_v_invert(e)}}t.CategoricalScale=_,_.__name__="CategoricalScale"},n”, ” function _(t,i,n){Object.defineProperty(n,"__esModule",{value:!0});const e=t(1),a=t(186),s=t(78),l=t(70),_=e.__importStar(t(19)),o=e.__importStar(t(85)),r=t(9);class d extends a.DataRange{constructor(t){super(t),this._plot_bounds={},this.have_updated_interactively=!1}static init_DataRange1d(){this.define({start:[_.Number],end:[_.Number],range_padding:[_.Number,.1],range_padding_units:[_.PaddingUnits,"percent"],flipped:[_.Boolean,!1],follow:[_.StartEnd],follow_interval:[_.Number],default_span:[_.Number,2],only_visible:[_.Boolean,!1]}),this.internal({scale_hint:[_.String,"auto"]})}initialize(){super.initialize(),this._initial_start=this.start,this._initial_end=this.end,this._initial_range_padding=this.range_padding,this._initial_range_padding_units=this.range_padding_units,this._initial_follow=this.follow,this._initial_follow_interval=this.follow_interval,this._initial_default_span=this.default_span}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}computed_renderers(){const t=this.names;let i=this.renderers;if(0==i.length)for(const t of this.plots){const n=t.renderers.filter(t=>t instanceof s.GlyphRenderer);i=i.concat(n)}t.length>0&&(i=i.filter(i=>r.includes(t,i.name))),l.logger.debug(computed ${i.length} renderers for DataRange1d ${this.id});for(const t of i)l.logger.trace(` - ${t.type} ${t.id}`);return i}_compute_plot_bounds(t,i){let n=o.empty();for(const e of t)null==i[e.id]||!e.visible&&this.only_visible||(n=o.union(n,i[e.id]));return n}adjust_bounds_for_aspect(t,i){const n=o.empty();let e=t.x1-t.x0;e<=0&&(e=1);let a=t.y1-t.y0;a<=0&&(a=1);const s=.5*(t.x1+t.x0),l=.5*(t.y1+t.y0);return e<i*a?e=i*a:a=e/i,n.x1=s+.5*e,n.x0=s-.5*e,n.y1=l+.5*a,n.y0=l-.5*a,n}_compute_min_max(t,i){let n,e,a=o.empty();for(const i in t){const n=t[i];a=o.union(a,n)}return[n,e]=0==i?[a.x0,a.x1]:[a.y0,a.y1],[n,e]}_compute_range(t,i){const n=this.range_padding;let e,a;if(null!=this._initial_start&&(t=this._initial_start),null!=this._initial_end&&(i=this._initial_end),"log"==this.scale_hint){let s,_;if((isNaN(t)||!isFinite(t)||t<=0)&&(t=isNaN(i)||!isFinite(i)||i<=0?.1:i/100,l.logger.warn(could not determine minimum data value for log axis, DataRange1d using value ${t})),(isNaN(i)||!isFinite(i)||i<=0)&&(i=isNaN(t)||!isFinite(t)||t<=0?10:100*t,l.logger.warn(could not determine maximum data value for log axis, DataRange1d using value ${i})),i==t)_=this.default_span+.001,s=Math.log(t)/Math.log(10);else{let e,a;"percent"==this.range_padding_units?(e=Math.log(t)/Math.log(10),a=Math.log(i)/Math.log(10),_=(a-e)*(1+n)):(e=Math.log(t-n)/Math.log(10),a=Math.log(i+n)/Math.log(10),_=a-e),s=(e+a)/2}e=10**(s-_/2),a=10**(s+_/2)}else{let s;s=i==t?this.default_span:"percent"==this.range_padding_units?(i-t)*(1+n):i-t+2*n;const l=(i+t)/2;e=l-s/2,a=l+s/2}let s=1;this.flipped&&([e,a]=[a,e],s=-1);const _=this.follow_interval;return null!=_&&Math.abs(e-a)>_&&("start"==this.follow?a=e+s*_:"end"==this.follow&&(e=a-s*_)),[e,a]}update(t,i,n,e){if(this.have_updated_interactively)return;const a=this.computed_renderers();let s=this._compute_plot_bounds(a,t);null!=e&&(s=this.adjust_bounds_for_aspect(s,e)),this._plot_bounds[n]=s;const[l,_]=this._compute_min_max(this._plot_bounds,i);let[o,r]=this._compute_range(l,_);null!=this._initial_start&&("log"==this.scale_hint?this._initial_start>0&&(o=this._initial_start):o=this._initial_start),null!=this._initial_end&&("log"==this.scale_hint?this._initial_end>0&&(r=this._initial_end):r=this._initial_end);const[d,h]=[this.start,this.end];if(o!=d||r!=h){const t={};o!=d&&(t.start=o),r!=h&&(t.end=r),this.setv(t)}"auto"==this.bounds&&this.setv({bounds:[o,r]},{silent:!0}),this.change.emit()}reset(){this.have_updated_interactively=!1,this.setv({range_padding:this._initial_range_padding,range_padding_units:this._initial_range_padding_units,follow:this._initial_follow,follow_interval:this._initial_follow_interval,default_span:this._initial_default_span},{silent:!0}),this.change.emit()}}n.DataRange1d=d,d.__name__="DataRange1d",d.init_DataRange1d()},n”, ” function _(e,a,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),r=e(89),s=n.__importStar(e(19));class _ extends r.Range{constructor(e){super(e)}static init_DataRange(){this.define({names:[s.Array,[]],renderers:[s.Array,[]]})}}t.DataRange=_,_.__name__="DataRange",_.init_DataRange()},n”, ” function _(a,o,t){Object.defineProperty(t,"__esModule",{value:!0});var e=a(188);t.Sizeable=e.Sizeable;var r=a(189);t.Layoutable=r.Layoutable,t.LayoutItem=r.LayoutItem;var n=a(190);t.HStack=n.HStack,t.VStack=n.VStack,t.AnchorLayout=n.AnchorLayout;var u=a(191);t.Grid=u.Grid,t.Row=u.Row,t.Column=u.Column;var c=a(192);t.ContentBox=c.ContentBox,t.VariadicBox=c.VariadicBox},n”, ” function _(h,t,i){Object.defineProperty(i,"__esModule",{value:!0});const{min:e,max:w}=Math;class d{constructor(h={}){this.width=null!=h.width?h.width:0,this.height=null!=h.height?h.height:0}bounded_to({width:h,height:t}){return new d({width:this.width==1/0&&null!=h?h:this.width,height:this.height==1/0&&null!=t?t:this.height})}expanded_to({width:h,height:t}){return new d({width:h!=1/0?w(this.width,h):this.width,height:t!=1/0?w(this.height,t):this.height})}expand_to({width:h,height:t}){this.width=w(this.width,h),this.height=w(this.height,t)}narrowed_to({width:h,height:t}){return new d({width:e(this.width,h),height:e(this.height,t)})}narrow_to({width:h,height:t}){this.width=e(this.width,h),this.height=e(this.height,t)}grow_by({left:h,right:t,top:i,bottom:e}){const w=this.width+h+t,s=this.height+i+e;return new d({width:w,height:s})}shrink_by({left:h,right:t,top:i,bottom:e}){const s=w(this.width-h-t,0),n=w(this.height-i-e,0);return new d({width:s,height:n})}map(h,t){return new d({width:h(this.width),height:(null!=t?t:h)(this.height)})}}i.Sizeable=d,d.__name__="Sizeable"},n”, ” function _(i,t,h){Object.defineProperty(h,"__esModule",{value:!0});const e=i(188),s=i(85),{min:n,max:g,round:a}=Math;class r{constructor(){this._bbox=new s.BBox,this._inner_bbox=new s.BBox;const i=this;this._top={get value(){return i.bbox.top}},this._left={get value(){return i.bbox.left}},this._width={get value(){return i.bbox.width}},this._height={get value(){return i.bbox.height}},this._right={get value(){return i.bbox.right}},this._bottom={get value(){return i.bbox.bottom}},this._hcenter={get value(){return i.bbox.hcenter}},this._vcenter={get value(){return i.bbox.vcenter}}}get bbox(){return this._bbox}get inner_bbox(){return this._inner_bbox}get sizing(){return this._sizing}set_sizing(i){const t=i.width_policy||"fit",h=i.width,e=null!=i.min_width?i.min_width:0,s=null!=i.max_width?i.max_width:1/0,n=i.height_policy||"fit",g=i.height,a=null!=i.min_height?i.min_height:0,r=null!=i.max_height?i.max_height:1/0,l=i.aspect,_=i.margin||{top:0,right:0,bottom:0,left:0},d=!1!==i.visible,o=i.halign||"start",u=i.valign||"start";this._sizing={width_policy:t,min_width:e,width:h,max_width:s,height_policy:n,min_height:a,height:g,max_height:r,aspect:l,margin:_,visible:d,halign:o,valign:u,size:{width:h,height:g},min_size:{width:e,height:a},max_size:{width:s,height:r}},this._init()}_init(){}_set_geometry(i,t){this._bbox=i,this._inner_bbox=t}set_geometry(i,t){this._set_geometry(i,t||i)}is_width_expanding(){return"max"==this.sizing.width_policy}is_height_expanding(){return"max"==this.sizing.height_policy}apply_aspect(i,{width:t,height:h}){const{aspect:e}=this.sizing;if(null!=e){const{width_policy:s,height_policy:n}=this.sizing,g=(i,t)=>{const h={max:4,fit:3,min:2,fixed:1};return h[i]>h[t]};if("fixed"!=s&&"fixed"!=n)if(s==n){const s=t,n=a(t/e),g=a(h*e),r=h;Math.abs(i.width-s)+Math.abs(i.height-n)<=Math.abs(i.width-g)+Math.abs(i.height-r)?(t=s,h=n):(t=g,h=r)}else g(s,n)?h=a(t/e):t=a(h*e);else"fixed"==s?h=a(t/e):"fixed"==n&&(t=a(h*e))}return{width:t,height:h}}measure(i){if(!this.sizing.visible)return{width:0,height:0};const t=i=>"fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:i,h=i=>"fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:i,s=new e.Sizeable(i).shrink_by(this.sizing.margin).map(t,h),n=this._measure(s),g=this.clip_size(n),a=t(g.width),r=h(g.height),l=this.apply_aspect(s,{width:a,height:r});return Object.assign(Object.assign({},n),l)}compute(i={}){const t=this.measure({width:null!=i.width&&this.is_width_expanding()?i.width:1/0,height:null!=i.height&&this.is_height_expanding()?i.height:1/0}),{width:h,height:e}=t,n=new s.BBox({left:0,top:0,width:h,height:e});let g=void 0;if(null!=t.inner){const{left:i,top:n,right:a,bottom:r}=t.inner;g=new s.BBox({left:i,top:n,right:h-a,bottom:e-r})}this.set_geometry(n,g)}get xview(){return this.bbox.xview}get yview(){return this.bbox.yview}clip_width(i){return g(this.sizing.min_width,n(i,this.sizing.max_width))}clip_height(i){return g(this.sizing.min_height,n(i,this.sizing.max_height))}clip_size({width:i,height:t}){return{width:this.clip_width(i),height:this.clip_height(t)}}}h.Layoutable=r,r.__name__="Layoutable";class l extends r{_measure(i){const{width_policy:t,height_policy:h}=this.sizing;let e,s;if(i.width==1/0)e=null!=this.sizing.width?this.sizing.width:0;else switch(t){case"fixed":e=null!=this.sizing.width?this.sizing.width:0;break;case"min":e=null!=this.sizing.width?n(i.width,this.sizing.width):0;break;case"fit":e=null!=this.sizing.width?n(i.width,this.sizing.width):i.width;break;case"max":e=null!=this.sizing.width?g(i.width,this.sizing.width):i.width}if(i.height==1/0)s=null!=this.sizing.height?this.sizing.height:0;else switch(h){case"fixed":s=null!=this.sizing.height?this.sizing.height:0;break;case"min":s=null!=this.sizing.height?n(i.height,this.sizing.height):0;break;case"fit":s=null!=this.sizing.height?n(i.height,this.sizing.height):i.height;break;case"max":s=null!=this.sizing.height?g(i.height,this.sizing.height):i.height}return{width:e,height:s}}}h.LayoutItem=l,l.__name__="LayoutItem";class _ extends r{_measure(i){const t=this._content_size(),h=i.bounded_to(this.sizing.size).bounded_to(t);return{width:(()=>{switch(this.sizing.width_policy){case"fixed":return null!=this.sizing.width?this.sizing.width:t.width;case"min":return t.width;case"fit":return h.width;case"max":return Math.max(t.width,h.width)}})(),height:(()=>{switch(this.sizing.height_policy){case"fixed":return null!=this.sizing.height?this.sizing.height:t.height;case"min":return t.height;case"fit":return h.height;case"max":return Math.max(t.height,h.height)}})()}}}h.ContentLayoutable=_,_.__name__="ContentLayoutable"},n”, ” function _(t,e,h){Object.defineProperty(h,"__esModule",{value:!0});const o=t(189),r=t(85);class i extends o.Layoutable{constructor(){super(…arguments),this.children=[]}}h.Stack=i,i.__name__="Stack";class s extends i{_measure(t){let e=0,h=0;for(const t of this.children){const o=t.measure({width:0,height:0});e+=o.width,h=Math.max(h,o.height)}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);const{top:h,bottom:o}=t;let{left:i}=t;for(const t of this.children){const{width:e}=t.measure({width:0,height:0});t.set_geometry(new r.BBox({left:i,width:e,top:h,bottom:o})),i+=e}}}h.HStack=s,s.__name__="HStack";class n extends i{_measure(t){let e=0,h=0;for(const t of this.children){const o=t.measure({width:0,height:0});e=Math.max(e,o.width),h+=o.height}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);const{left:h,right:o}=t;let{top:i}=t;for(const t of this.children){const{height:e}=t.measure({width:0,height:0});t.set_geometry(new r.BBox({top:i,height:e,left:h,right:o})),i+=e}}}h.VStack=n,n.__name__="VStack";class c extends o.Layoutable{constructor(){super(…arguments),this.children=[]}_measure(t){let e=0,h=0;for(const{layout:o}of this.children){const r=o.measure(t);e=Math.max(e,r.width),h=Math.max(h,r.height)}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);for(const{layout:e,anchor:h,margin:o}of this.children){const{left:i,right:s,top:n,bottom:c,hcenter:a,vcenter:_}=t,{width:g,height:d}=e.measure(t);let m;switch(h){case"top_left":m=new r.BBox({left:i+o,top:n+o,width:g,height:d});break;case"top_center":m=new r.BBox({hcenter:a,top:n+o,width:g,height:d});break;case"top_right":m=new r.BBox({right:s-o,top:n+o,width:g,height:d});break;case"bottom_right":m=new r.BBox({right:s-o,bottom:c-o,width:g,height:d});break;case"bottom_center":m=new r.BBox({hcenter:a,bottom:c-o,width:g,height:d});break;case"bottom_left":m=new r.BBox({left:i+o,bottom:c-o,width:g,height:d});break;case"center_left":m=new r.BBox({left:i+o,vcenter:_,width:g,height:d});break;case"center":m=new r.BBox({hcenter:a,vcenter:_,width:g,height:d});break;case"center_right":m=new r.BBox({right:s-o,vcenter:_,width:g,height:d})}e.set_geometry(m)}}}h.AnchorLayout=c,c.__name__="AnchorLayout"},n”, ” function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const e=t(188),o=t(189),n=t(8),r=t(85),h=t(9),{max:l,round:c}=Math;class a{constructor(t){this.def=t,this._map=new Map}get(t){let i=this._map.get(t);return void 0===i&&(i=this.def(),this._map.set(t,i)),i}apply(t,i){const s=this.get(t);this._map.set(t,i(s))}}a.__name__="DefaultMap";class g{constructor(){this._items=[],this._nrows=0,this._ncols=0}get nrows(){return this._nrows}get ncols(){return this._ncols}add(t,i){const{r1:s,c1:e}=t;this._nrows=l(this._nrows,s+1),this._ncols=l(this._ncols,e+1),this._items.push({span:t,data:i})}at(t,i){return this._items.filter(({span:s})=>s.r0<=t&&t<=s.r1&&s.c0<=i&&i<=s.c1).map(({data:t})=>t)}row(t){return this._items.filter(({span:i})=>i.r0<=t&&t<=i.r1).map(({data:t})=>t)}col(t){return this._items.filter(({span:i})=>i.c0<=t&&t<=i.c1).map(({data:t})=>t)}foreach(t){for(const{span:i,data:s}of this._items)t(i,s)}map(t){const i=new g;for(const{span:s,data:e}of this._items)i.add(s,t(s,e));return i}}g.__name__="Container";class p extends o.Layoutable{constructor(t=[]){super(),this.items=t,this.rows="auto",this.cols="auto",this.spacing=0,this.absolute=!1}is_width_expanding(){if(super.is_width_expanding())return!0;if("fixed"==this.sizing.width_policy)return!1;const{cols:t}=this._state;return h.some(t,t=>"max"==t.policy)}is_height_expanding(){if(super.is_height_expanding())return!0;if("fixed"==this.sizing.height_policy)return!1;const{rows:t}=this._state;return h.some(t,t=>"max"==t.policy)}_init(){super._init();const t=new g;for(const{layout:i,row:s,col:e,row_span:o,col_span:n}of this.items)if(i.sizing.visible){const r=s,h=e,l=s+(null!=o?o:1)-1,c=e+(null!=n?n:1)-1;t.add({r0:r,c0:h,r1:l,c1:c},i)}const{nrows:i,ncols:s}=t,e=new Array(i);for(let s=0;s<i;s++){const i=(()=>{const t=n.isPlainObject(this.rows)?this.rows[s]||this.rows[""]:this.rows;return null==t?{policy:"auto"}:n.isNumber(t)?{policy:"fixed",height:t}:n.isString(t)?{policy:t}:t})(),o=i.align||"auto";if("fixed"==i.policy)e[s]={policy:"fixed",height:i.height,align:o};else if("min"==i.policy)e[s]={policy:"min",align:o};else if("fit"==i.policy||"max"==i.policy)e[s]={policy:i.policy,flex:i.flex||1,align:o};else{if("auto"!=i.policy)throw new Error("unrechable");h.some(t.row(s),t=>t.is_height_expanding())?e[s]={policy:"max",flex:1,align:o}:e[s]={policy:"min",align:o}}}const o=new Array(s);for(let i=0;i<s;i++){const s=(()=>{const t=n.isPlainObject(this.cols)?this.cols[i]||this.cols[""]:this.cols;return null==t?{policy:"auto"}:n.isNumber(t)?{policy:"fixed",width:t}:n.isString(t)?{policy:t}:t})(),e=s.align||"auto";if("fixed"==s.policy)o[i]={policy:"fixed",width:s.width,align:e};else if("min"==s.policy)o[i]={policy:"min",align:e};else if("fit"==s.policy||"max"==s.policy)o[i]={policy:s.policy,flex:s.flex||1,align:e};else{if("auto"!=s.policy)throw new Error("unrechable");h.some(t.col(i),t=>t.is_width_expanding())?o[i]={policy:"max",flex:1,align:e}:o[i]={policy:"min",align:e}}}const[r,l]=n.isNumber(this.spacing)?[this.spacing,this.spacing]:this.spacing;this._state={items:t,nrows:i,ncols:s,rows:e,cols:o,rspacing:r,cspacing:l}}_measure_totals(t,i){const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state;return{height:h.sum(t)+(s-1)*o,width:h.sum(i)+(e-1)*n}}_measure_cells(t){const{items:i,nrows:s,ncols:o,rows:n,cols:r,rspacing:h,cspacing:a}=this._state,p=new Array(s);for(let t=0;t<s;t++){const i=n[t];p[t]="fixed"==i.policy?i.height:0}const _=new Array(o);for(let t=0;t<o;t++){const i=r[t];_[t]="fixed"==i.policy?i.width:0}const f=new g;return i.foreach((i,s)=>{const{r0:o,c0:g,r1:d,c1:w}=i,u=(d-o)*h,m=(w-g)*a;let y=0;for(let i=o;i<=d;i++)y+=t(i,g).height;y+=u;let x=0;for(let i=g;i<=w;i++)x+=t(o,i).width;x+=m;const b=s.measure({width:x,height:y});f.add(i,{layout:s,size_hint:b});const z=new e.Sizeable(b).grow_by(s.sizing.margin);z.height-=u,z.width-=m;const j=[];for(let t=o;t<=d;t++){const i=n[t];"fixed"==i.policy?z.height-=i.height:j.push(t)}if(z.height>0){const t=c(z.height/j.length);for(const i of j)p[i]=l(p[i],t)}const O=[];for(let t=g;t<=w;t++){const i=r[t];"fixed"==i.policy?z.width-=i.width:O.push(t)}if(z.width>0){const t=c(z.width/O.length);for(const i of O)_[i]=l(_[i],t)}}),{size:this._measure_totals(p,_),row_heights:p,col_widths:_,size_hints:f}}_measure_grid(t){const{nrows:i,ncols:s,rows:e,cols:o,rspacing:n,cspacing:r}=this._state,h=this._measure_cells((t,i)=>{const s=e[t],n=o[i];return{width:"fixed"==n.policy?n.width:1/0,height:"fixed"==s.policy?s.height:1/0}});let a;a="fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:t.height!=1/0&&this.is_height_expanding()?t.height:h.size.height;let g,p=0;for(let t=0;t<i;t++){const i=e[t];"fit"==i.policy||"max"==i.policy?p+=i.flex:a-=h.row_heights[t]}if(a-=(i-1)*n,0!=p&&a>0)for(let t=0;t<i;t++){const i=e[t];if("fit"==i.policy||"max"==i.policy){const s=c(a*(i.flex/p));a-=s,h.row_heights[t]=s,p-=i.flex}}else if(a<0){let t=0;for(let s=0;s<i;s++){"fixed"!=e[s].policy&&t++}let s=-a;for(let o=0;o<i;o++){if("fixed"!=e[o].policy){const i=h.row_heights[o],e=c(s/t);h.row_heights[o]=l(i-e,0),s-=e>i?i:e,t–}}}g="fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:t.width!=1/0&&this.is_width_expanding()?t.width:h.size.width;let _=0;for(let t=0;t<s;t++){const i=o[t];"fit"==i.policy||"max"==i.policy?_+=i.flex:g-=h.col_widths[t]}if(g-=(s-1)*r,0!=_&&g>0)for(let t=0;t<s;t++){const i=o[t];if("fit"==i.policy||"max"==i.policy){const s=c(g*(i.flex/_));g-=s,h.col_widths[t]=s,_-=i.flex}}else if(g<0){let t=0;for(let i=0;i<s;i++){"fixed"!=o[i].policy&&t++}let i=-g;for(let e=0;e<s;e++){if("fixed"!=o[e].policy){const s=h.col_widths[e],o=c(i/t);h.col_widths[e]=l(s-o,0),i-=o>s?s:o,t–}}}const{row_heights:f,col_widths:d,size_hints:w}=this._measure_cells((t,i)=>({width:h.col_widths[i],height:h.row_heights[t]}));return{size:this._measure_totals(f,d),row_heights:f,col_widths:d,size_hints:w}}_measure(t){const{size:i}=this._measure_grid(t);return i}_set_geometry(t,i){super._set_geometry(t,i);const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state,{row_heights:h,col_widths:g,size_hints:p}=this._measure_grid(t),_=this._state.rows.map((t,i)=>Object.assign(Object.assign({},t),{top:0,height:h[i],get bottom(){return this.top+this.height}})),f=this._state.cols.map((t,i)=>Object.assign(Object.assign({},t),{left:0,width:g[i],get right(){return this.left+this.width}})),d=p.map((t,i)=>Object.assign(Object.assign({},i),{outer:new r.BBox,inner:new r.BBox}));for(let i=0,e=this.absolute?t.top:0;i<s;i++){const t=_[i];t.top=e,e+=t.height+o}for(let i=0,s=this.absolute?t.left:0;i<e;i++){const t=f[i];t.left=s,s+=t.width+n}d.foreach(({r0:t,c0:i,r1:s,c1:e},h)=>{const{layout:l,size_hint:a}=h,{sizing:g}=l,{width:p,height:d}=a,w=function(t,i){let s=(i-t)*n;for(let e=t;e<=i;e++)s+=f[e].width;return s}(i,e),u=function(t,i){let s=(i-t)*o;for(let e=t;e<=i;e++)s+=_[e].height;return s}(t,s),m=i==e&&"auto"!=f[i].align?f[i].align:g.halign,y=t==s&&"auto"!=_[t].align?_[t].align:g.valign;let x=f[i].left;"start"==m?x+=g.margin.left:"center"==m?x+=c((w-p)/2):"end"==m&&(x+=w-g.margin.right-p);let b=_[t].top;"start"==y?b+=g.margin.top:"center"==y?b+=c((u-d)/2):"end"==y&&(b+=u-g.margin.bottom-d),h.outer=new r.BBox({left:x,top:b,width:p,height:d})});const w=_.map(()=>({start:new a(()=>0),end:new a(()=>0)})),u=f.map(()=>({start:new a(()=>0),end:new a(()=>0)}));d.foreach(({r0:t,c0:i,r1:s,c1:e},{size_hint:o,outer:n})=>{const{inner:r}=o;null!=r&&(w[t].start.apply(n.top,t=>l(t,r.top)),w[s].end.apply(_[s].bottom-n.bottom,t=>l(t,r.bottom)),u[i].start.apply(n.left,t=>l(t,r.left)),u[e].end.apply(f[e].right-n.right,t=>l(t,r.right)))}),d.foreach(({r0:t,c0:i,r1:s,c1:e},o)=>{const{size_hint:n,outer:h}=o;function l({left:t,right:i,top:s,bottom:e}){const o=h.width-t-i,n=h.height-s-e;return new r.BBox({left:t,top:s,width:o,height:n})}if(null!=n.inner){let r=l(n.inner);if(!1!==n.align){const o=w[t].start.get(h.top),n=w[s].end.get(_[s].bottom-h.bottom),c=u[i].start.get(h.left),a=u[e].end.get(f[e].right-h.right);try{r=l({top:o,bottom:n,left:c,right:a})}catch(t){}}o.inner=r}else o.inner=h}),d.foreach((t,{layout:i,outer:s,inner:e})=>{i.set_geometry(s,e)})}}s.Grid=p,p.__name__="Grid";class _ extends p{constructor(t){super(),this.items=t.map((t,i)=>({layout:t,row:0,col:i})),this.rows="fit"}}s.Row=_,_.__name__="Row";class f extends p{constructor(t){super(),this.items=t.map((t,i)=>({layout:t,row:i,col:0})),this.cols="fit"}}s.Column=f,f.__name__="Column"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(189),i=e(188),o=e(66);class r extends s.ContentLayoutable{constructor(e){super(),this.content_size=o.unsized(e,()=>new i.Sizeable(o.size(e)))}_content_size(){return this.content_size}}n.ContentBox=r,r.__name__="ContentBox";class a extends s.Layoutable{constructor(e){super(),this.el=e}_measure(e){const t=new i.Sizeable(e).bounded_to(this.sizing.size);return o.sized(this.el,t,()=>{const e=new i.Sizeable(o.content_size(this.el)),{border:t,padding:n}=o.extents(this.el);return e.grow_by(t).grow_by(n).map(Math.ceil)})}}n.VariadicBox=a,a.__name__="VariadicBox"},n”, ” function _(e,r,u){Object.defineProperty(u,"__esModule",{value:!0});var a=e(194);u.Expression=a.Expression;var n=e(195);u.Stack=n.Stack;var o=e(196);u.CumSum=o.CumSum},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(69);class n extends s.Model{constructor(e){super(e),this._connected={},this._result={}}initialize(){super.initialize(),this._connected={},this._result={}}v_compute(e){null==this._connected[e.id]&&(this.connect(e.change,()=>delete this._result[e.id]),this.connect(e.patching,()=>delete this._result[e.id]),this.connect(e.streaming,()=>delete this._result[e.id]),this._connected[e.id]=!0);let t=this._result[e.id];return null==t&&(this._result[e.id]=t=this._v_compute(e)),t}}i.Expression=n,n.__name__="Expression"},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),o=t(194),r=i.__importStar(t(19));class s extends o.Expression{constructor(t){super(t)}static init_Stack(){this.define({fields:[r.Array,[]]})}_v_compute(t){var e;const n=null!==(e=t.get_length())&&void 0!==e?e:0,i=new Float64Array(n);for(const e of this.fields){const o=t.data[e];if(null!=o)for(let t=0,e=Math.min(n,o.length);t<e;t++)i[t]+=o[t]}return i}}n.Stack=s,s.__name__="Stack",s.init_Stack()},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),u=e(194),o=i.__importStar(e(19));class r extends u.Expression{constructor(e){super(e)}static init_CumSum(){this.define({field:[o.String],include_zero:[o.Boolean,!1]})}_v_compute(e){const t=new Float64Array(e.get_length()||0),n=e.data[this.field],i=this.include_zero?1:0;t[0]=this.include_zero?0:n[0];for(let e=1;e<t.length;e++)t[e]=t[e-1]+n[e-i];return t}}n.CumSum=r,r.__name__="CumSum",r.init_CumSum()},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});var l=e(198);t.BooleanFilter=l.BooleanFilter;var i=e(200);t.CustomJSFilter=i.CustomJSFilter;var o=e(199);t.Filter=o.Filter;var F=e(201);t.GroupFilter=F.GroupFilter;var a=e(202);t.IndexFilter=a.IndexFilter},n”, ” function _(e,o,l){Object.defineProperty(l,"__esModule",{value:!0});const n=e(1),t=e(199),i=n.__importStar(e(19)),r=e(70),a=e(9),s=e(8);class g extends t.Filter{constructor(e){super(e)}static init_BooleanFilter(){this.define({booleans:[i.Array,null]})}compute_indices(e){const o=this.booleans;return null!=o&&o.length>0?a.every(o,s.isBoolean)?(o.length!==e.get_length()&&r.logger.warn(BooleanFilter ${this.id}: length of booleans doesn’t match data source),a.range(0,o.length).filter(e=>!0===o[e])):(r.logger.warn(BooleanFilter ${this.id}: booleans should be array of booleans, defaulting to no filtering),null):(null!=o&&0==o.length?r.logger.warn(BooleanFilter ${this.id}: booleans is empty, defaulting to no filtering):r.logger.warn(BooleanFilter ${this.id}: booleans was not set, defaulting to no filtering),null)}}l.BooleanFilter=g,g.__name__="BooleanFilter",g.init_BooleanFilter()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1),l=e(69),n=i.__importStar(e(19)),o=e(8),s=e(9),a=e(70);class f extends l.Model{constructor(e){super(e)}static init_Filter(){this.define({filter:[n.Array,null]})}compute_indices(e){const t=this.filter;return null!=t?o.isArrayOf(t,o.isBoolean)?s.range(0,t.length).filter(e=>!0===t[e]):o.isArrayOf(t,o.isInteger)?t:(a.logger.warn(Filter ${this.id}: filter should either be array of only booleans or only integers, defaulting to no filtering),null):(a.logger.warn(Filter ${this.id}: filter was not set to be an array, defaulting to no filtering),null)}}r.Filter=f,f.__name__="Filter",f.init_Filter()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),r=t(199),n=i.__importStar(t(19)),u=t(24),c=t(26);class o extends r.Filter{constructor(t){super(t)}static init_CustomJSFilter(){this.define({args:[n.Any,{}],code:[n.String,""]})}get names(){return u.keys(this.args)}get values(){return u.values(this.args)}get func(){const t=c.use_strict(this.code);return new Function(…this.names,"source",t)}compute_indices(t){return this.filter=this.func(…this.values,t),super.compute_indices(t)}}s.CustomJSFilter=o,o.__name__="CustomJSFilter",o.init_CustomJSFilter()},n”, ” function _(t,n,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1),r=t(199),o=e.__importStar(t(19)),u=t(70),l=t(9);class s extends r.Filter{constructor(t){super(t),this.indices=null}static init_GroupFilter(){this.define({column_name:[o.String],group:[o.String]})}compute_indices(t){const n=t.get_column(this.column_name);return null==n?(u.logger.warn("group filter: groupby column not found in data source"),null):(this.indices=l.range(0,t.get_length()||0).filter(t=>n[t]===this.group),0===this.indices.length&&u.logger.warn(group filter: group ‘${this.group}’ did not match any values in column ‘${this.column_name}’),this.indices)}}i.GroupFilter=s,s.__name__="GroupFilter",s.init_GroupFilter()},n”, ” function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),r=e(199),s=t.__importStar(e(19)),l=e(70),d=e(8),o=e(9);class c extends r.Filter{constructor(e){super(e)}static init_IndexFilter(){this.define({indices:[s.Array,null]})}compute_indices(e){return null!=this.indices?o.every(this.indices,d.isInteger)?this.indices:(l.logger.warn(IndexFilter ${this.id}: indices should be array of integers, defaulting to no filtering),null):(l.logger.warn(IndexFilter ${this.id}: indices was not set, defaulting to no filtering),null)}}n.IndexFilter=c,c.__name__="IndexFilter",c.init_IndexFilter()},n”, ” function _(r,t,a){Object.defineProperty(a,"__esModule",{value:!0});var e=r(112);a.BasicTickFormatter=e.BasicTickFormatter;var c=r(152);a.CategoricalTickFormatter=c.CategoricalTickFormatter;var i=r(156);a.DatetimeTickFormatter=i.DatetimeTickFormatter;var o=r(204);a.FuncTickFormatter=o.FuncTickFormatter;var m=r(169);a.LogTickFormatter=m.LogTickFormatter;var F=r(172);a.MercatorTickFormatter=F.MercatorTickFormatter;var k=r(205);a.NumeralTickFormatter=k.NumeralTickFormatter;var T=r(206);a.PrintfTickFormatter=T.PrintfTickFormatter;var v=r(113);a.TickFormatter=v.TickFormatter},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),s=t(113),i=r.__importStar(t(19)),c=t(24),a=t(26);class u extends s.TickFormatter{constructor(t){super(t)}static init_FuncTickFormatter(){this.define({args:[i.Any,{}],code:[i.String,""]})}get names(){return c.keys(this.args)}get values(){return c.values(this.args)}_make_func(){const t=a.use_strict(this.code);return new Function("tick","index","ticks",…this.names,t)}doFormat(t,e){const n=this._make_func().bind({});return t.map((t,e,r)=>n(t,e,r,…this.values))}}n.FuncTickFormatter=u,u.__name__="FuncTickFormatter",u.init_FuncTickFormatter()},n”, ” function _(r,t,n){Object.defineProperty(n,"__esModule",{value:!0});const e=r(1),o=e.__importStar(r(159)),a=r(113),i=e.__importStar(r(19));class u extends a.TickFormatter{constructor(r){super(r)}static init_NumeralTickFormatter(){this.define({format:[i.String,"0,0"],language:[i.String,"en"],rounding:[i.RoundingFunction,"round"]})}get _rounding_fn(){switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}doFormat(r,t){const{format:n,language:e,_rounding_fn:a}=this;return r.map(r=>o.format(r,n,e,a))}}n.NumeralTickFormatter=u,u.__name__="NumeralTickFormatter",u.init_NumeralTickFormatter()},n”, ” function _(t,r,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1),n=t(113),o=t(158),a=e.__importStar(t(19));class c extends n.TickFormatter{constructor(t){super(t)}static init_PrintfTickFormatter(){this.define({format:[a.String,"%s"]})}doFormat(t,r){return t.map(t=>o.sprintf(this.format,t))}}i.PrintfTickFormatter=c,c.__name__="PrintfTickFormatter",c.init_PrintfTickFormatter()},n”, ” function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var v=a(208);r.AnnularWedge=v.AnnularWedge;var l=a(209);r.Annulus=l.Annulus;var t=a(210);r.Arc=t.Arc;var i=a(211);r.Bezier=i.Bezier;var n=a(212);r.Circle=n.Circle;var u=a(213);r.CenterRotatable=u.CenterRotatable;var c=a(214);r.Ellipse=c.Ellipse;var g=a(215);r.EllipseOval=g.EllipseOval;var A=a(86);r.Glyph=A.Glyph;var p=a(92);r.HArea=p.HArea;var s=a(216);r.HBar=s.HBar;var d=a(218);r.HexTile=d.HexTile;var R=a(219);r.Image=R.Image;var o=a(221);r.ImageRGBA=o.ImageRGBA;var y=a(222);r.ImageURL=y.ImageURL;var h=a(80);r.Line=h.Line;var m=a(224);r.MultiLine=m.MultiLine;var B=a(225);r.MultiPolygons=B.MultiPolygons;var P=a(226);r.Oval=P.Oval;var G=a(91);r.Patch=G.Patch;var H=a(227);r.Patches=H.Patches;var I=a(228);r.Quad=I.Quad;var L=a(229);r.Quadratic=L.Quadratic;var M=a(230);r.Ray=M.Ray;var O=a(231);r.Rect=O.Rect;var x=a(232);r.Segment=x.Segment;var C=a(233);r.Step=C.Step;var E=a(234);r.Text=E.Text;var Q=a(94);r.VArea=Q.VArea;var S=a(235);r.VBar=S.VBar;var T=a(236);r.Wedge=T.Wedge;var V=a(81);r.XYGlyph=V.XYGlyph},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(81),n=e(90),a=i.__importStar(e(87)),_=i.__importStar(e(19)),o=e(10);class h extends r.XYGlyphView{_map_data(){"data"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this._inner_radius):this.sinner_radius=this._inner_radius,"data"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this._outer_radius):this.souter_radius=this._outer_radius,this._angle=new Float32Array(this._start_angle.length);for(let e=0,t=this._start_angle.length;e<t;e++)this._angle[e]=this._end_angle[e]-this._start_angle[e]}_render(e,t,{sx:s,sy:i,_start_angle:r,_angle:n,sinner_radius:a,souter_radius:_}){const o=this.model.properties.direction.value();for(const h of t)isNaN(s[h]+i[h]+a[h]+_[h]+r[h]+n[h])||(e.translate(s[h],i[h]),e.rotate(r[h]),e.moveTo(_[h],0),e.beginPath(),e.arc(0,0,_[h],0,n[h],o),e.rotate(n[h]),e.lineTo(a[h],0),e.arc(0,0,a[h],0,-n[h],!o),e.closePath(),e.rotate(-n[h]-r[h]),e.translate(-s[h],-i[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,h),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,h),e.stroke()))}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(s);let n,_,h,u;if("data"==this.model.properties.outer_radius.units)n=i-this.max_outer_radius,h=i+this.max_outer_radius,_=r-this.max_outer_radius,u=r+this.max_outer_radius;else{const e=t-this.max_outer_radius,i=t+this.max_outer_radius;[n,h]=this.renderer.xscale.r_invert(e,i);const r=s-this.max_outer_radius,a=s+this.max_outer_radius;[_,u]=this.renderer.yscale.r_invert(r,a)}const l=[];for(const e of this.index.indices({x0:n,x1:h,y0:_,y1:u})){const t=this.souter_radius[e]**2,s=this.sinner_radius[e]**2,[n,a]=this.renderer.xscale.r_compute(i,this._x[e]),[_,o]=this.renderer.yscale.r_compute(r,this._y[e]),h=(n-a)**2+(_-o)**2;h<=t&&h>=s&&l.push([e,h])}const d=this.model.properties.direction.value(),c=[];for(const[e,i]of l){const r=Math.atan2(s-this.sy[e],t-this.sx[e]);o.angle_between(-r,-this._start_angle[e],-this._end_angle[e],d)&&c.push([e,i])}return a.create_hit_test_result_from_hits(c)}draw_legend_for_index(e,t,s){n.generic_area_legend(this.visuals,e,t,s)}_scenterxy(e){const t=(this.sinner_radius[e]+this.souter_radius[e])/2,s=(this._start_angle[e]+this._end_angle[e])/2;return{x:this.sx[e]+t*Math.cos(s),y:this.sy[e]+t*Math.sin(s)}}scenterx(e){return this._scenterxy(e).x}scentery(e){return this._scenterxy(e).y}}s.AnnularWedgeView=h,h.__name__="AnnularWedgeView";class u extends r.XYGlyph{constructor(e){super(e)}static init_AnnularWedge(){this.prototype.default_view=h,this.mixins(["line","fill"]),this.define({direction:[_.Direction,"anticlock"],inner_radius:[_.DistanceSpec],outer_radius:[_.DistanceSpec],start_angle:[_.AngleSpec],end_angle:[_.AngleSpec]})}}s.AnnularWedge=u,u.__name__="AnnularWedge",u.init_AnnularWedge()},n”, ” function _(s,i,t){Object.defineProperty(t,"__esModule",{value:!0});const e=s(1),r=s(81),a=e.__importStar(s(87)),n=e.__importStar(s(19)),_=s(101);class u extends r.XYGlyphView{_map_data(){"data"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this._inner_radius):this.sinner_radius=this._inner_radius,"data"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this._outer_radius):this.souter_radius=this._outer_radius}_render(s,i,{sx:t,sy:e,sinner_radius:r,souter_radius:a}){for(const n of i)if(!isNaN(t[n]+e[n]+r[n]+a[n])){if(this.visuals.fill.doit){if(this.visuals.fill.set_vectorize(s,n),s.beginPath(),_.is_ie)for(const i of[!1,!0])s.arc(t[n],e[n],r[n],0,Math.PI,i),s.arc(t[n],e[n],a[n],Math.PI,0,!i);else s.arc(t[n],e[n],r[n],0,2*Math.PI,!0),s.arc(t[n],e[n],a[n],2*Math.PI,0,!1);s.fill()}this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,n),s.beginPath(),s.arc(t[n],e[n],r[n],0,2*Math.PI),s.moveTo(t[n]+a[n],e[n]),s.arc(t[n],e[n],a[n],0,2*Math.PI),s.stroke())}}_hit_point(s){const{sx:i,sy:t}=s,e=this.renderer.xscale.invert(i),r=this.renderer.yscale.invert(t);let n,_,u,o;if("data"==this.model.properties.outer_radius.units)n=e-this.max_outer_radius,u=e+this.max_outer_radius,_=r-this.max_outer_radius,o=r+this.max_outer_radius;else{const s=i-this.max_outer_radius,e=i+this.max_outer_radius;[n,u]=this.renderer.xscale.r_invert(s,e);const r=t-this.max_outer_radius,a=t+this.max_outer_radius;[_,o]=this.renderer.yscale.r_invert(r,a)}const h=[];for(const s of this.index.indices({x0:n,x1:u,y0:_,y1:o})){const i=this.souter_radius[s]**2,t=this.sinner_radius[s]**2,[a,n]=this.renderer.xscale.r_compute(e,this._x[s]),[_,u]=this.renderer.yscale.r_compute(r,this._y[s]),o=(a-n)**2+(_-u)**2;o<=i&&o>=t&&h.push([s,o])}return a.create_hit_test_result_from_hits(h)}draw_legend_for_index(s,{x0:i,y0:t,x1:e,y1:r},a){const n=a+1,_=new Array(n);_[a]=(i+e)/2;const u=new Array(n);u[a]=(t+r)/2;const o=.5*Math.min(Math.abs(e-i),Math.abs(r-t)),h=new Array(n);h[a]=.4*o;const d=new Array(n);d[a]=.8*o,this._render(s,[a],{sx:_,sy:u,sinner_radius:h,souter_radius:d})}}t.AnnulusView=u,u.__name__="AnnulusView";class o extends r.XYGlyph{constructor(s){super(s)}static init_Annulus(){this.prototype.default_view=u,this.mixins(["line","fill"]),this.define({inner_radius:[n.DistanceSpec],outer_radius:[n.DistanceSpec]})}}t.Annulus=o,o.__name__="Annulus",o.init_Annulus()},n”, ” function _(e,i,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(1),r=e(81),n=e(90),a=t.__importStar(e(19));class _ extends r.XYGlyphView{_map_data(){"data"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius):this.sradius=this._radius}_render(e,i,{sx:s,sy:t,sradius:r,_start_angle:n,_end_angle:a}){if(this.visuals.line.doit){const _=this.model.properties.direction.value();for(const c of i)isNaN(s[c]+t[c]+r[c]+n[c]+a[c])||(e.beginPath(),e.arc(s[c],t[c],r[c],n[c],a[c],_),this.visuals.line.set_vectorize(e,c),e.stroke())}}draw_legend_for_index(e,i,s){n.generic_line_legend(this.visuals,e,i,s)}}s.ArcView=_,_.__name__="ArcView";class c extends r.XYGlyph{constructor(e){super(e)}static init_Arc(){this.prototype.default_view=_,this.mixins(["line"]),this.define({direction:[a.Direction,"anticlock"],radius:[a.DistanceSpec],start_angle:[a.AngleSpec],end_angle:[a.AngleSpec]})}}s.Arc=c,c.__name__="Arc",c.init_Arc()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(82),n=t(86),c=t(90);function o(t,e,i,s,n,c,o,h){const r=[],_=[[],[]];for(let _=0;_<=2;_++){let a,x,l;if(0===_?(x=6*t-12*i+6*n,a=-3*t+9*i-9*n+3*o,l=3*i-3*t):(x=6*e-12*s+6*c,a=-3*e+9*s-9*c+3*h,l=3*s-3*e),Math.abs(a)<1e-12){if(Math.abs(x)<1e-12)continue;const t=-l/x;0<t&&t<1&&r.push(t);continue}const y=x*x-4*l*a,u=Math.sqrt(y);if(y<0)continue;const d=(-x+u)/(2*a);0<d&&d<1&&r.push(d);const f=(-x-u)/(2*a);0<f&&f<1&&r.push(f)}let a=r.length;const x=a;for(;a–;){const x=r[a],l=1-x,y=l*l*l*t+3*l*l*x*i+3*l*x*x*n+x*x*x*o;_[0][a]=y;const u=l*l*l*e+3*l*l*x*s+3*l*x*x*c+x*x*x*h;_[1][a]=u}return _[0][x]=t,_[1][x]=e,_[0][x+1]=o,_[1][x+1]=h,[Math.min(…_[0]),Math.max(…_[1]),Math.max(…_[0]),Math.min(…_[1])]}class h extends n.GlyphView{_index_data(){const t=[];for(let e=0,i=this._x0.length;e<i;e++){if(isNaN(this._x0[e]+this._x1[e]+this._y0[e]+this._y1[e]+this._cx0[e]+this._cy0[e]+this._cx1[e]+this._cy1[e]))continue;const[i,s,n,c]=o(this._x0[e],this._y0[e],this._x1[e],this._y1[e],this._cx0[e],this._cy0[e],this._cx1[e],this._cy1[e]);t.push({x0:i,y0:s,x1:n,y1:c,i:e})}return new s.SpatialIndex(t)}_render(t,e,{sx0:i,sy0:s,sx1:n,sy1:c,scx0:o,scy0:h,scx1:r,scy1:_}){if(this.visuals.line.doit)for(const a of e)isNaN(i[a]+s[a]+n[a]+c[a]+o[a]+h[a]+r[a]+_[a])||(t.beginPath(),t.moveTo(i[a],s[a]),t.bezierCurveTo(o[a],h[a],r[a],_[a],n[a],c[a]),this.visuals.line.set_vectorize(t,a),t.stroke())}draw_legend_for_index(t,e,i){c.generic_line_legend(this.visuals,t,e,i)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}i.BezierView=h,h.__name__="BezierView";class r extends n.Glyph{constructor(t){super(t)}static init_Bezier(){this.prototype.default_view=h,this.coords([["x0","y0"],["x1","y1"],["cx0","cy0"],["cx1","cy1"]]),this.mixins(["line"])}}i.Bezier=r,r.__name__="Bezier",r.init_Bezier()},n”, ” function _(s,i,e){Object.defineProperty(e,"__esModule",{value:!0});const t=s(1),r=s(81),a=t.__importStar(s(87)),n=t.__importStar(s(19)),h=s(9),d=s(12);class _ extends r.XYGlyphView{_map_data(){if(null!=this._radius)if("data"==this.model.properties.radius.spec.units){switch(this.model.properties.radius_dimension.spec.value){case"x":this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius);break;case"y":this.sradius=this.sdist(this.renderer.yscale,this._y,this._radius);break;case"max":{const s=this.sdist(this.renderer.xscale,this._x,this._radius),i=this.sdist(this.renderer.yscale,this._y,this._radius);this.sradius=d.map(s,(s,e)=>Math.max(s,i[e]));break}case"min":{const s=this.sdist(this.renderer.xscale,this._x,this._radius),i=this.sdist(this.renderer.yscale,this._y,this._radius);this.sradius=d.map(s,(s,e)=>Math.min(s,i[e]));break}}}else this.sradius=this._radius,this.max_size=2*this.max_radius;else this.sradius=d.map(this._size,s=>s/2)}_mask_data(){const[s,i]=this.renderer.plot_view.frame.bbox.ranges;let e,t,r,a;if(null!=this._radius&&"data"==this.model.properties.radius.units){const n=s.start,h=s.end;[e,r]=this.renderer.xscale.r_invert(n,h),e-=this.max_radius,r+=this.max_radius;const d=i.start,_=i.end;[t,a]=this.renderer.yscale.r_invert(d,_),t-=this.max_radius,a+=this.max_radius}else{const n=s.start-this.max_size,h=s.end+this.max_size;[e,r]=this.renderer.xscale.r_invert(n,h);const d=i.start-this.max_size,_=i.end+this.max_size;[t,a]=this.renderer.yscale.r_invert(d,_)}return this.index.indices({x0:e,x1:r,y0:t,y1:a})}_render(s,i,{sx:e,sy:t,sradius:r}){for(const a of i)isNaN(e[a]+t[a]+r[a])||(s.beginPath(),s.arc(e[a],t[a],r[a],0,2*Math.PI,!1),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(s,a),s.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,a),s.stroke()))}_hit_point(s){const{sx:i,sy:e}=s,t=this.renderer.xscale.invert(i),r=this.renderer.yscale.invert(e);let n,h,d,_;if(null!=this._radius&&"data"==this.model.properties.radius.units)n=t-this.max_radius,h=t+this.max_radius,d=r-this.max_radius,_=r+this.max_radius;else{const s=i-this.max_size,t=i+this.max_size;[n,h]=this.renderer.xscale.r_invert(s,t);const r=e-this.max_size,a=e+this.max_size;[d,_]=this.renderer.yscale.r_invert(r,a)}const l=this.index.indices({x0:n,x1:h,y0:d,y1:_}),c=[];if(null!=this._radius&&"data"==this.model.properties.radius.units)for(const s of l){const i=this.sradius[s]**2,[e,a]=this.renderer.xscale.r_compute(t,this._x[s]),[n,h]=this.renderer.yscale.r_compute(r,this._y[s]),d=(e-a)**2+(n-h)**2;d<=i&&c.push([s,d])}else for(const s of l){const t=this.sradius[s]**2,r=(this.sx[s]-i)**2+(this.sy[s]-e)**2;r<=t&&c.push([s,r])}return a.create_hit_test_result_from_hits(c)}_hit_span(s){const{sx:i,sy:e}=s,t=this.bounds(),r=a.create_empty_hit_test_result();let n,h,d,_;if("h"==s.direction){let s,e;if(d=t.y0,_=t.y1,null!=this._radius&&"data"==this.model.properties.radius.units)s=i-this.max_radius,e=i+this.max_radius,[n,h]=this.renderer.xscale.r_invert(s,e);else{const t=this.max_size/2;s=i-t,e=i+t,[n,h]=this.renderer.xscale.r_invert(s,e)}}else{let s,i;if(n=t.x0,h=t.x1,null!=this._radius&&"data"==this.model.properties.radius.units)s=e-this.max_radius,i=e+this.max_radius,[d,_]=this.renderer.yscale.r_invert(s,i);else{const t=this.max_size/2;s=e-t,i=e+t,[d,_]=this.renderer.yscale.r_invert(s,i)}}const l=this.index.indices({x0:n,x1:h,y0:d,y1:_});return r.indices=l,r}_hit_rect(s){const{sx0:i,sx1:e,sy0:t,sy1:r}=s,[n,h]=this.renderer.xscale.r_invert(i,e),[d,_]=this.renderer.yscale.r_invert(t,r),l=a.create_empty_hit_test_result();return l.indices=this.index.indices({x0:n,x1:h,y0:d,y1:_}),l}_hit_poly(s){const{sx:i,sy:e}=s,t=h.range(0,this.sx.length),r=[];for(let s=0,n=t.length;s<n;s++){const n=t[s];a.point_in_poly(this.sx[s],this.sy[s],i,e)&&r.push(n)}const n=a.create_empty_hit_test_result();return n.indices=r,n}draw_legend_for_index(s,{x0:i,y0:e,x1:t,y1:r},a){const n=a+1,h=new Array(n);h[a]=(i+t)/2;const d=new Array(n);d[a]=(e+r)/2;const _=new Array(n);_[a]=.2*Math.min(Math.abs(t-i),Math.abs(r-e)),this._render(s,[a],{sx:h,sy:d,sradius:_})}}e.CircleView=_,_.__name__="CircleView";class l extends r.XYGlyph{constructor(s){super(s)}static init_Circle(){this.prototype.default_view=_,this.mixins(["line","fill"]),this.define({angle:[n.AngleSpec,0],size:[n.DistanceSpec,{units:"screen",value:4}],radius:[n.DistanceSpec],radius_dimension:[n.RadiusDimension,"x"]})}initialize(){super.initialize(),this.properties.radius.optional=!0}}e.Circle=l,l.__name__="Circle",l.init_Circle()},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const a=e(1),i=e(81),l=a.__importStar(e(19));class s extends i.XYGlyphView{}n.CenterRotatableView=s,s.__name__="CenterRotatableView";class _ extends i.XYGlyph{constructor(e){super(e)}static init_CenterRotatable(){this.mixins(["line","fill"]),this.define({angle:[l.AngleSpec,0],width:[l.DistanceSpec],height:[l.DistanceSpec]})}}n.CenterRotatable=_,_.__name__="CenterRotatable",_.init_CenterRotatable()},n”, ” function _(e,l,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(215);class t extends s.EllipseOvalView{}i.EllipseView=t,t.__name__="EllipseView";class _ extends s.EllipseOval{constructor(e){super(e)}static init_Ellipse(){this.prototype.default_view=t}}i.Ellipse=_,_.__name__="Ellipse",_.init_Ellipse()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(213),r=i.__importStar(t(87));class a extends h.CenterRotatableView{_set_data(){this.max_w2=0,"data"==this.model.properties.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,"data"==this.model.properties.height.units&&(this.max_h2=this.max_height/2)}_map_data(){"data"==this.model.properties.width.units?this.sw=this.sdist(this.renderer.xscale,this._x,this._width,"center"):this.sw=this._width,"data"==this.model.properties.height.units?this.sh=this.sdist(this.renderer.yscale,this._y,this._height,"center"):this.sh=this._height}_render(t,s,{sx:e,sy:i,sw:h,sh:r,_angle:a}){for(const _ of s)isNaN(e[_]+i[_]+h[_]+r[_]+a[_])||(t.beginPath(),t.ellipse(e[_],i[_],h[_]/2,r[_]/2,a[_],0,2*Math.PI),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,_),t.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,_),t.stroke()))}_hit_point(t){let s,e,i,h,a,_,n,l,d,o;const{sx:x,sy:m}=t,c=this.renderer.xscale.invert(x),w=this.renderer.yscale.invert(m);"data"==this.model.properties.width.units?(s=c-this.max_width,e=c+this.max_width):(n=x-this.max_width,l=x+this.max_width,[s,e]=this.renderer.xscale.r_invert(n,l)),"data"==this.model.properties.height.units?(i=w-this.max_height,h=w+this.max_height):(d=m-this.max_height,o=m+this.max_height,[i,h]=this.renderer.yscale.r_invert(d,o));const p=this.index.indices({x0:s,x1:e,y0:i,y1:h}),y=[];for(const t of p)a=r.point_in_ellipse(x,m,this._angle[t],this.sh[t]/2,this.sw[t]/2,this.sx[t],this.sy[t]),a&&([n,l]=this.renderer.xscale.r_compute(c,this._x[t]),[d,o]=this.renderer.yscale.r_compute(w,this._y[t]),_=(n-l)**2+(d-o)**2,y.push([t,_]));return r.create_hit_test_result_from_hits(y)}draw_legend_for_index(t,{x0:s,y0:e,x1:i,y1:h},r){const a=r+1,_=new Array(a);_[r]=(s+i)/2;const n=new Array(a);n[r]=(e+h)/2;const l=this.sw[r]/this.sh[r],d=.8*Math.min(Math.abs(i-s),Math.abs(h-e)),o=new Array(a),x=new Array(a);l>1?(o[r]=d,x[r]=d/l):(o[r]=d*l,x[r]=d),this._render(t,[r],{sx:_,sy:n,sw:o,sh:x,_angle:[0]})}_bounds({x0:t,x1:s,y0:e,y1:i}){return{x0:t-this.max_w2,x1:s+this.max_w2,y0:e-this.max_h2,y1:i+this.max_h2}}}e.EllipseOvalView=a,a.__name__="EllipseOvalView";class _ extends h.CenterRotatable{constructor(t){super(t)}}e.EllipseOval=_,_.__name__="EllipseOval"},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(217),r=i.__importStar(t(19));class _ extends h.BoxView{scenterx(t){return(this.sleft[t]+this.sright[t])/2}scentery(t){return this.sy[t]}_index_data(){return this._index_box(this._y.length)}_lrtb(t){return[Math.min(this._left[t],this._right[t]),Math.max(this._left[t],this._right[t]),this._y[t]+.5*this._height[t],this._y[t]-.5*this._height[t]]}_map_data(){this.sy=this.renderer.yscale.v_compute(this._y),this.sh=this.sdist(this.renderer.yscale,this._y,this._height,"center"),this.sleft=this.renderer.xscale.v_compute(this._left),this.sright=this.renderer.xscale.v_compute(this._right);const t=this.sy.length;this.stop=new Float64Array(t),this.sbottom=new Float64Array(t);for(let s=0;s<t;s++)this.stop[s]=this.sy[s]-this.sh[s]/2,this.sbottom[s]=this.sy[s]+this.sh[s]/2;this._clamp_viewport()}}e.HBarView=_,_.__name__="HBarView";class a extends h.Box{constructor(t){super(t)}static init_HBar(){this.prototype.default_view=_,this.coords([["left","y"]]),this.define({height:[r.NumberSpec],right:[r.CoordinateSpec]}),this.override({left:0})}}e.HBar=a,a.__name__="HBar",a.init_HBar()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),r=t(82),n=t(86),h=t(90),a=i.__importStar(t(87));class o extends n.GlyphView{get_anchor_point(t,e,s){const i=Math.min(this.sleft[e],this.sright[e]),r=Math.max(this.sright[e],this.sleft[e]),n=Math.min(this.stop[e],this.sbottom[e]),h=Math.max(this.sbottom[e],this.stop[e]);switch(t){case"top_left":return{x:i,y:n};case"top_center":return{x:(i+r)/2,y:n};case"top_right":return{x:r,y:n};case"bottom_left":return{x:i,y:h};case"bottom_center":return{x:(i+r)/2,y:h};case"bottom_right":return{x:r,y:h};case"center_left":return{x:i,y:(n+h)/2};case"center":return{x:(i+r)/2,y:(n+h)/2};case"center_right":return{x:r,y:(n+h)/2};default:return null}}_index_box(t){const e=[];for(let s=0;s<t;s++){const[t,i,r,n]=this._lrtb(s);!isNaN(t+i+r+n)&&isFinite(t+i+r+n)&&e.push({x0:Math.min(t,i),y0:Math.min(r,n),x1:Math.max(i,t),y1:Math.max(r,n),i:s})}return new r.SpatialIndex(e)}_render(t,e,{sleft:s,sright:i,stop:r,sbottom:n}){for(const h of e)isNaN(s[h]+r[h]+i[h]+n[h])||(t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,h),t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.fill()),this.visuals.hatch.doit2(t,h,()=>{t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.fill()},()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,h),t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.stroke()))}_clamp_viewport(){const t=this.renderer.plot_view.frame.bbox.h_range,e=this.renderer.plot_view.frame.bbox.v_range,s=this.stop.length;for(let i=0;i<s;i++)this.stop[i]=Math.max(this.stop[i],e.start),this.sbottom[i]=Math.min(this.sbottom[i],e.end),this.sleft[i]=Math.max(this.sleft[i],t.start),this.sright[i]=Math.min(this.sright[i],t.end)}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){const{sx:e,sy:s}=t,i=this.renderer.xscale.invert(e),r=this.renderer.yscale.invert(s),n=this.index.indices({x0:i,y0:r,x1:i,y1:r}),h=a.create_empty_hit_test_result();return h.indices=n,h}_hit_span(t){const{sx:e,sy:s}=t;let i;if("v"==t.direction){const t=this.renderer.yscale.invert(s),e=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(e.start,e.end);i=this.index.indices({x0:r,y0:t,x1:n,y1:t})}else{const t=this.renderer.xscale.invert(e),s=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(s.start,s.end);i=this.index.indices({x0:t,y0:r,x1:t,y1:n})}const r=a.create_empty_hit_test_result();return r.indices=i,r}draw_legend_for_index(t,e,s){h.generic_area_legend(this.visuals,t,e,s)}}s.BoxView=o,o.__name__="BoxView";class _ extends n.Glyph{constructor(t){super(t)}static init_Box(){this.mixins(["line","fill","hatch"])}}s.Box=_,_.__name__="Box",_.init_Box()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(86),n=i.__importStar(e(87)),a=i.__importStar(e(19)),h=e(82),_=e(90);class l extends r.GlyphView{scenterx(e){return this.sx[e]}scentery(e){return this.sy[e]}_set_data(){const e=this._q.length,t=this.model.size,s=this.model.aspect_scale;if(this._x=new Float64Array(e),this._y=new Float64Array(e),"pointytop"==this.model.orientation)for(let i=0;i<e;i++)this._x[i]=t*Math.sqrt(3)*(this._q[i]+this._r[i]/2)/s,this._y[i]=3*-t/2*this._r[i];else for(let i=0;i<e;i++)this._x[i]=3*t/2*this._q[i],this._y[i]=-t*Math.sqrt(3)*(this._r[i]+this._q[i]/2)*s}_index_data(){let e=this.model.size,t=Math.sqrt(3)*e/2;"flattop"==this.model.orientation?([t,e]=[e,t],e*=this.model.aspect_scale):t/=this.model.aspect_scale;const s=[];for(let i=0;i<this._x.length;i++){const r=this._x[i],n=this._y[i];!isNaN(r+n)&&isFinite(r+n)&&s.push({x0:r-t,y0:n-e,x1:r+t,y1:n+e,i})}return new h.SpatialIndex(s)}map_data(){[this.sx,this.sy]=this.map_to_screen(this._x,this._y),[this.svx,this.svy]=this._get_unscaled_vertices()}_get_unscaled_vertices(){const e=this.model.size,t=this.model.aspect_scale;if("pointytop"==this.model.orientation){const s=this.renderer.yscale,i=this.renderer.xscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))/t,a=r/2;return[[0,-n,-n,0,n,n],[r,a,-a,-r,-a,a]]}{const s=this.renderer.xscale,i=this.renderer.yscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))*t,a=r/2;return[[r,a,-a,-r,-a,a],[0,-n,-n,0,n,n]]}}_render(e,t,{sx:s,sy:i,svx:r,svy:n,_scale:a}){for(const h of t)if(!isNaN(s[h]+i[h]+a[h])){e.translate(s[h],i[h]),e.beginPath();for(let t=0;t<6;t++)e.lineTo(r[t]*a[h],n[t]*a[h]);e.closePath(),e.translate(-s[h],-i[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,h),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,h),e.stroke())}}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(s),a=this.index.indices({x0:i,y0:r,x1:i,y1:r}),h=[];for(const e of a)n.point_in_poly(t-this.sx[e],s-this.sy[e],this.svx,this.svy)&&h.push(e);const _=n.create_empty_hit_test_result();return _.indices=h,_}_hit_span(e){const{sx:t,sy:s}=e;let i;if("v"==e.direction){const e=this.renderer.yscale.invert(s),t=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(t.start,t.end);i=this.index.indices({x0:r,y0:e,x1:n,y1:e})}else{const e=this.renderer.xscale.invert(t),s=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(s.start,s.end);i=this.index.indices({x0:e,y0:r,x1:e,y1:n})}const r=n.create_empty_hit_test_result();return r.indices=i,r}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:r}=e,[a,h]=this.renderer.xscale.r_invert(t,s),[_,l]=this.renderer.yscale.r_invert(i,r),o=n.create_empty_hit_test_result();return o.indices=this.index.indices({x0:a,x1:h,y0:_,y1:l}),o}draw_legend_for_index(e,t,s){_.generic_area_legend(this.visuals,e,t,s)}}s.HexTileView=l,l.__name__="HexTileView";class o extends r.Glyph{constructor(e){super(e)}static init_HexTile(){this.prototype.default_view=l,this.coords([["r","q"]]),this.mixins(["line","fill"]),this.define({size:[a.Number,1],aspect_scale:[a.Number,1],scale:[a.NumberSpec,1],orientation:[a.HexTileOrientation,"pointytop"]}),this.override({line_color:null})}}s.HexTile=o,o.__name__="HexTile",o.init_HexTile()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(1),s=e(220),_=e(114),n=i.__importStar(e(19)),h=e(9);class o extends s.ImageBaseView{initialize(){super.initialize(),this.connect(this.model.color_mapper.change,()=>this._update_image()),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_update_image(){null!=this.image_data&&(this._set_data(),this.renderer.plot_view.request_render())}_set_data(){this._set_width_heigh_data();const e=this.model.color_mapper.rgba_mapper;for(let t=0,a=this._image.length;t<a;t++){let a;if(null!=this._image_shape&&this._image_shape[t].length>0){a=this._image[t];const e=this._image_shape[t];this._height[t]=e[0],this._width[t]=e[1]}else{const e=this._image[t];a=h.concat(e),this._height[t]=e.length,this._width[t]=e[0].length}const i=e.v_compute(a);this._set_image_data_from_buffer(t,i)}}_render(e,t,{image_data:a,sx:i,sy:s,sw:_,sh:n}){const h=e.getImageSmoothingEnabled();e.setImageSmoothingEnabled(!1),e.globalAlpha=this.model.global_alpha;for(const h of t){if(null==a[h])continue;if(isNaN(i[h]+s[h]+_[h]+n[h]))continue;const t=s[h];e.translate(0,t),e.scale(1,-1),e.translate(0,-t),e.drawImage(a[h],0|i[h],0|s[h],_[h],n[h]),e.translate(0,t),e.scale(1,-1),e.translate(0,-t)}e.setImageSmoothingEnabled(h)}}a.ImageView=o,o.__name__="ImageView";class l extends s.ImageBase{constructor(e){super(e)}static init_Image(){this.prototype.default_view=o,this.define({color_mapper:[n.Instance,()=>new _.LinearColorMapper({palette:["#000000","#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0","#ffffff"]})]})}}a.Image=l,l.__name__="Image",l.init_Image()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),h=e(81),a=s.__importStar(e(19)),_=s.__importStar(e(87)),r=e(82);class n extends h.XYGlyphView{_render(e,t,i){}_index_data(){const e=[];for(let t=0,i=this._x.length;t<i;t++){const[i,s,h,a]=this._lrtb(t);!isNaN(i+s+h+a)&&isFinite(i+s+h+a)&&e.push({x0:i,y0:a,x1:s,y1:h,i:t})}return new r.SpatialIndex(e)}_lrtb(e){const t=this.renderer.xscale.source_range,i=this._x[e],s=t.is_reversed?i-this._dw[e]:i+this._dw[e],h=this.renderer.yscale.source_range,a=this._y[e],_=h.is_reversed?a-this._dh[e]:a+this._dh[e],[r,n]=i<s?[i,s]:[s,i],[d,g]=a<_?[a,_]:[_,a];return[r,n,g,d]}_set_width_heigh_data(){null!=this.image_data&&this.image_data.length==this._image.length||(this.image_data=new Array(this._image.length)),null!=this._width&&this._width.length==this._image.length||(this._width=new Array(this._image.length)),null!=this._height&&this._height.length==this._image.length||(this._height=new Array(this._image.length))}_get_or_create_canvas(e){const t=this.image_data[e];if(null!=t&&t.width==this._width[e]&&t.height==this._height[e])return t;{const t=document.createElement("canvas");return t.width=this._width[e],t.height=this._height[e],t}}_set_image_data_from_buffer(e,t){const i=this._get_or_create_canvas(e),s=i.getContext("2d"),h=s.getImageData(0,0,this._width[e],this._height[e]);h.data.set(t),s.putImageData(h,0,0),this.image_data[e]=i}_map_data(){switch(this.model.properties.dw.units){case"data":this.sw=this.sdist(this.renderer.xscale,this._x,this._dw,"edge",this.model.dilate);break;case"screen":this.sw=this._dw}switch(this.model.properties.dh.units){case"data":this.sh=this.sdist(this.renderer.yscale,this._y,this._dh,"edge",this.model.dilate);break;case"screen":this.sh=this._dh}}_image_index(e,t,i){const[s,h,a,_]=this._lrtb(e),r=this._width[e],n=this._height[e],d=(h-s)/r,g=(a-_)/n;let l=Math.floor((t-s)/d),c=Math.floor((i-_)/g);return this.renderer.xscale.source_range.is_reversed&&(l=r-l-1),this.renderer.yscale.source_range.is_reversed&&(c=n-c-1),{index:e,dim1:l,dim2:c,flat_index:c*r+l}}_hit_point(e){const{sx:t,sy:i}=e,s=this.renderer.xscale.invert(t),h=this.renderer.yscale.invert(i),a=this.index.indices({x0:s,x1:s,y0:h,y1:h}),r=_.create_empty_hit_test_result();r.image_indices=[];for(const e of a)t!=1/0&&i!=1/0&&r.image_indices.push(this._image_index(e,s,h));return r}}i.ImageBaseView=n,n.__name__="ImageBaseView";class d extends h.XYGlyph{constructor(e){super(e)}static init_ImageBase(){this.prototype.default_view=n,this.define({image:[a.NumberSpec],dw:[a.DistanceSpec],dh:[a.DistanceSpec],dilate:[a.Boolean,!1],global_alpha:[a.Number,1]})}}i.ImageBase=d,d.__name__="ImageBase",d.init_ImageBase()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(220),s=e(9);class n extends i.ImageBaseView{initialize(){super.initialize(),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_set_data(e){this._set_width_heigh_data();for(let t=0,a=this._image.length;t<a;t++){if(null!=e&&e.indexOf(t)<0)continue;let a;if(null!=this._image_shape&&this._image_shape[t].length>0){a=this._image[t].buffer;const e=this._image_shape[t];this._height[t]=e[0],this._width[t]=e[1]}else{const e=this._image[t],i=s.concat(e);a=new ArrayBuffer(4*i.length);const n=new Uint32Array(a);for(let e=0,t=i.length;e<t;e++)n[e]=i[e];this._height[t]=e.length,this._width[t]=e[0].length}const i=new Uint8Array(a);this._set_image_data_from_buffer(t,i)}}_render(e,t,{image_data:a,sx:i,sy:s,sw:n,sh:h}){const _=e.getImageSmoothingEnabled();e.setImageSmoothingEnabled(!1),e.globalAlpha=this.model.global_alpha;for(const _ of t){if(isNaN(i[_]+s[_]+n[_]+h[_]))continue;const t=s[_];e.translate(0,t),e.scale(1,-1),e.translate(0,-t),e.drawImage(a[_],0|i[_],0|s[_],n[_],h[_]),e.translate(0,t),e.scale(1,-1),e.translate(0,-t)}e.setImageSmoothingEnabled(_)}}a.ImageRGBAView=n,n.__name__="ImageRGBAView";class h extends i.ImageBase{constructor(e){super(e)}static init_ImageRGBA(){this.prototype.default_view=n}}a.ImageRGBA=h,h.__name__="ImageRGBA",h.init_ImageRGBA()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(81),a=i.__importStar(e(19)),n=e(12),h=e(82),l=e(223);class _ extends r.XYGlyphView{constructor(){super(…arguments),this._images_rendered=!1}initialize(){super.initialize(),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_index_data(){return new h.SpatialIndex([])}_set_data(){null!=this.image&&this.image.length==this._url.length||(this.image=n.map(this._url,()=>null));const{retry_attempts:e,retry_timeout:t}=this.model;for(let s=0,i=this._url.length;s<i;s++){const i=this._url[s];null!=i&&""!=i&&new l.ImageLoader(i,{loaded:e=>{this.image[s]=e,this.renderer.request_render()},attempts:e+1,timeout:t})}const s="data"==this.model.properties.w.units,i="data"==this.model.properties.h.units,r=this._x.length,a=new Array(s?2*r:r),h=new Array(i?2*r:r);for(let e=0;e<r;e++)a[e]=this._x[e],h[e]=this._y[e];if(s)for(let e=0;e<r;e++)a[r+e]=this._x[e]+this._w[e];if(i)for(let e=0;e<r;e++)h[r+e]=this._y[e]+this._h[e];const _=n.min(a),o=n.max(a),d=n.min(h),c=n.max(h);this._bounds_rect={x0:_,x1:o,y0:d,y1:c}}has_finished(){return super.has_finished()&&1==this._images_rendered}_map_data(){const e=null!=this.model.w?this._w:n.map(this._x,()=>NaN),t=null!=this.model.h?this._h:n.map(this._x,()=>NaN);switch(this.model.properties.w.units){case"data":this.sw=this.sdist(this.renderer.xscale,this._x,e,"edge",this.model.dilate);break;case"screen":this.sw=e}switch(this.model.properties.h.units){case"data":this.sh=this.sdist(this.renderer.yscale,this._y,t,"edge",this.model.dilate);break;case"screen":this.sh=t}}_render(e,t,{image:s,sx:i,sy:r,sw:a,sh:n,_angle:h}){const{frame:l}=this.renderer.plot_view;e.rect(l._left.value+1,l._top.value+1,l._width.value-2,l._height.value-2),e.clip();let _=!0;for(const l of t){if(isNaN(i[l]+r[l]+h[l]))continue;const t=s[l];null!=t?this._render_image(e,l,t,i,r,a,n,h):_=!1}_&&!this._images_rendered&&(this._images_rendered=!0,this.notify_finished())}_final_sx_sy(e,t,s,i,r){switch(e){case"top_left":return[t,s];case"top_center":return[t-i/2,s];case"top_right":return[t-i,s];case"center_right":return[t-i,s-r/2];case"bottom_right":return[t-i,s-r];case"bottom_center":return[t-i/2,s-r];case"bottom_left":return[t,s-r];case"center_left":return[t,s-r/2];case"center":return[t-i/2,s-r/2]}}_render_image(e,t,s,i,r,a,n,h){isNaN(a[t])&&(a[t]=s.width),isNaN(n[t])&&(n[t]=s.height);const{anchor:l}=this.model,[_,o]=this._final_sx_sy(l,i[t],r[t],a[t],n[t]);e.save(),e.globalAlpha=this.model.global_alpha;const d=a[t]/2,c=n[t]/2;h[t]?(e.translate(_,o),e.translate(d,c),e.rotate(h[t]),e.translate(-d,-c),e.drawImage(s,0,0,a[t],n[t]),e.translate(d,c),e.rotate(-h[t]),e.translate(-d,-c),e.translate(-_,-o)):e.drawImage(s,_,o,a[t],n[t]),e.restore()}bounds(){return this._bounds_rect}}s.ImageURLView=_,_.__name__="ImageURLView";class o extends r.XYGlyph{constructor(e){super(e)}static init_ImageURL(){this.prototype.default_view=_,this.define({url:[a.StringSpec],anchor:[a.Anchor,"top_left"],global_alpha:[a.Number,1],angle:[a.AngleSpec,0],w:[a.DistanceSpec],h:[a.DistanceSpec],dilate:[a.Boolean,!1],retry_attempts:[a.Number,0],retry_timeout:[a.Number,0]})}}s.ImageURL=o,o.__name__="ImageURL",o.init_ImageURL()},n”, ” function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const s=i(70);class a{constructor(i,e={}){this._image=new Image,this._finished=!1;const{attempts:t=1,timeout:a=1}=e;this.promise=new Promise((o,n)=>{this._image.crossOrigin="anonymous";let r=0;this._image.onerror=()=>{if(++r==t){const a=`unable to load ${i} image after ${t} attempts`;if(s.logger.warn(a),null==this._image.crossOrigin)return void(null!=e.failed&&e.failed());s.logger.warn(attempting to load ${i} without a cross origin policy),this._image.crossOrigin=null,r=0}setTimeout(()=>this._image.src=i,a)},this._image.onload=()=>{this._finished=!0,null!=e.loaded&&e.loaded(this._image),o(this._image)},this._image.src=i})}get finished(){return this._finished}get image(){return this._image}}t.ImageLoader=a,a.__name__="ImageLoader"},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(82),r=i.__importStar(t(87)),l=t(24),o=t(9),_=t(8),h=t(86),c=t(90);class a extends h.GlyphView{_index_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++){if(null==this._xs[e]||0===this._xs[e].length)continue;const s=this._xs[e],i=[];for(let t=0,e=s.length;t<e;t++){const e=s[t];_.isStrictNaN(e)||i.push(e)}const n=this._ys[e],r=[];for(let t=0,e=n.length;t<e;t++){const e=n[t];_.isStrictNaN(e)||r.push(e)}const[l,h]=[o.min(i),o.max(i)],[c,a]=[o.min(r),o.max(r)];t.push({x0:l,y0:c,x1:h,y1:a,i:e})}return new n.SpatialIndex(t)}_render(t,e,{sxs:s,sys:i}){for(const n of e){const[e,r]=[s[n],i[n]];this.visuals.line.set_vectorize(t,n);for(let s=0,i=e.length;s<i;s++)0!=s?isNaN(e[s])||isNaN(r[s])?(t.stroke(),t.beginPath()):t.lineTo(e[s],r[s]):(t.beginPath(),t.moveTo(e[s],r[s]));t.stroke()}}_hit_point(t){const e=r.create_empty_hit_test_result(),s={x:t.sx,y:t.sy};let i=9999;const n={};for(let t=0,e=this.sxs.length;t<e;t++){const e=Math.max(2,this.visuals.line.cache_select("line_width",t)/2);let l=null;for(let n=0,o=this.sxs[t].length-1;n<o;n++){const o={x:this.sxs[t][n],y:this.sys[t][n]},_={x:this.sxs[t][n+1],y:this.sys[t][n+1]},h=r.dist_to_segment(s,o,_);h<e&&h<i&&(i=h,l=[n])}l&&(n[t]=l)}return e.indices=l.keys(n).map(t=>parseInt(t,10)),e.multiline_indices=n,e}_hit_span(t){const{sx:e,sy:s}=t,i=r.create_empty_hit_test_result();let n,o;"v"===t.direction?(n=this.renderer.yscale.invert(s),o=this._ys):(n=this.renderer.xscale.invert(e),o=this._xs);const _={};for(let t=0,e=o.length;t<e;t++){const e=[];for(let s=0,i=o[t].length-1;s<i;s++)o[t][s]<=n&&n<=o[t][s+1]&&e.push(s);e.length>0&&(_[t]=e)}return i.indices=l.keys(_).map(t=>parseInt(t,10)),i.multiline_indices=_,i}get_interpolation_hit(t,e,s){const[i,n,r,l]=[this._xs[t][e],this._ys[t][e],this._xs[t][e+1],this._ys[t][e+1]];return c.line_interpolation(this.renderer,s,i,n,r,l)}draw_legend_for_index(t,e,s){c.generic_line_legend(this.visuals,t,e,s)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}s.MultiLineView=a,a.__name__="MultiLineView";class x extends h.Glyph{constructor(t){super(t)}static init_MultiLine(){this.prototype.default_view=a,this.coords([["xs","ys"]]),this.mixins(["line"])}}s.MultiLine=x,x.__name__="MultiLine",x.init_MultiLine()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(82),r=t(86),l=t(90),o=t(9),h=t(12),_=i.__importStar(t(87)),a=t(8),c=t(11);class d extends r.GlyphView{_index_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++)for(let s=0,i=this._xs[e].length;s<i;s++){const i=this._xs[e][s][0],n=this._ys[e][s][0];0!=i.length&&t.push({x0:o.min(i),y0:o.min(n),x1:o.max(i),y1:o.max(n),i:e})}return this.hole_index=this._index_hole_data(),new n.SpatialIndex(t)}_index_hole_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++)for(let s=0,i=this._xs[e].length;s<i;s++)if(this._xs[e][s].length>1)for(let i=1,n=this._xs[e][s].length;i<n;i++){const n=this._xs[e][s][i],r=this._ys[e][s][i];0!=n.length&&t.push({x0:o.min(n),y0:o.min(r),x1:o.max(n),y1:o.max(r),i:e})}return new n.SpatialIndex(t)}_mask_data(){const t=this.renderer.plot_view.frame.x_ranges.default,[e,s]=[t.min,t.max],i=this.renderer.plot_view.frame.y_ranges.default,[n,r]=[i.min,i.max];return this.index.indices({x0:e,x1:s,y0:n,y1:r}).sort((t,e)=>t-e).filter((t,e,s)=>0===e||t!==s[e-1])}_inner_loop(t,e,s){t.beginPath();for(let i=0,n=e.length;i<n;i++)for(let n=0,r=e[i].length;n<r;n++){const r=e[i][n],l=s[i][n];for(let e=0,s=r.length;e<s;e++)0!=e?t.lineTo(r[e],l[e]):t.moveTo(r[e],l[e]);t.closePath()}}_render(t,e,{sxs:s,sys:i}){if(this.visuals.fill.doit||this.visuals.line.doit)for(const n of e){const[e,r]=[s[n],i[n]];this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,n),this._inner_loop(t,e,r),t.fill("evenodd")),this.visuals.hatch.doit2(t,n,()=>{this._inner_loop(t,e,r),t.fill("evenodd")},()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,n),this._inner_loop(t,e,r),t.stroke())}}_hit_rect(t){const{sx0:e,sx1:s,sy0:i,sy1:n}=t,r=[e,s,s,e],l=[i,i,n,n],[o,h]=this.renderer.xscale.r_invert(e,s),[a,c]=this.renderer.yscale.r_invert(i,n),d=this.index.indices({x0:o,x1:h,y0:a,y1:c}),x=[];for(let t=0,e=d.length;t<e;t++){const e=d[t],s=this.sxs[e],i=this.sys[e];let n=!0;for(let t=0,e=s.length;t<e;t++){for(let e=0,o=s[t][0].length;e<o;e++){const o=s[t][0][e],h=i[t][0][e];if(!_.point_in_poly(o,h,r,l)){n=!1;break}}if(!n)break}n&&x.push(e)}const y=_.create_empty_hit_test_result();return y.indices=x,y}_hit_point(t){const{sx:e,sy:s}=t,i=this.renderer.xscale.invert(e),n=this.renderer.yscale.invert(s),r=this.index.indices({x0:i,y0:n,x1:i,y1:n}),l=this.hole_index.indices({x0:i,y0:n,x1:i,y1:n}),o=[];for(let t=0,i=r.length;t<i;t++){const i=r[t],n=this.sxs[i],h=this.sys[i];for(let t=0,r=n.length;t<r;t++){const r=n[t].length;if(_.point_in_poly(e,s,n[t][0],h[t][0]))if(1==r)o.push(i);else if(-1==l.indexOf(i))o.push(i);else if(r>1){let l=!1;for(let i=1;i<r;i++){const r=n[t][i],o=h[t][i];if(_.point_in_poly(e,s,r,o)){l=!0;break}}l||o.push(i)}}}const h=_.create_empty_hit_test_result();return h.indices=o,h}_get_snap_coord(t){return h.sum(t)/t.length}scenterx(t,e,s){if(1==this.sxs[t].length)return this._get_snap_coord(this.sxs[t][0][0]);{const i=this.sxs[t],n=this.sys[t];for(let t=0,r=i.length;t<r;t++)if(_.point_in_poly(e,s,i[t][0],n[t][0]))return this._get_snap_coord(i[t][0])}c.unreachable()}scentery(t,e,s){if(1==this.sys[t].length)return this._get_snap_coord(this.sys[t][0][0]);{const i=this.sxs[t],n=this.sys[t];for(let t=0,r=i.length;t<r;t++)if(_.point_in_poly(e,s,i[t][0],n[t][0]))return this._get_snap_coord(n[t][0])}c.unreachable()}map_data(){const t=this;for(let[e,s]of this.model._coords){const i=`s${e}`,n=`s${s}`;if(e=`_${e}`,s=`_${s}`,null!=t[e]&&(a.isArray(t[e][0])||a.isTypedArray(t[e][0]))){const r=t[e].length;t[i]=new Array(r),t[n]=new Array(r);for(let l=0;l<r;l++){const r=t[e][l].length;t[i][l]=new Array(r),t[n][l]=new Array(r);for(let o=0;o<r;o++){const r=t[e][l][o].length;t[i][l][o]=new Array(r),t[n][l][o]=new Array(r);for(let h=0;h<r;h++){const[r,_]=this.map_to_screen(t[e][l][o][h],t[s][l][o][h]);t[i][l][o][h]=r,t[n][l][o][h]=_}}}}}}draw_legend_for_index(t,e,s){l.generic_area_legend(this.visuals,t,e,s)}}s.MultiPolygonsView=d,d.__name__="MultiPolygonsView";class x extends r.Glyph{constructor(t){super(t)}static init_MultiPolygons(){this.prototype.default_view=d,this.coords([["xs","ys"]]),this.mixins(["line","fill","hatch"])}}s.MultiPolygons=x,x.__name__="MultiPolygons",x.init_MultiPolygons()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const l=e(215);class s extends l.EllipseOvalView{_map_data(){super._map_data();const{sw:e}=this,t=e.length;for(let a=0;a<t;a++)e[a]*=.75}}a.OvalView=s,s.__name__="OvalView";class _ extends l.EllipseOval{constructor(e){super(e)}static init_Oval(){this.prototype.default_view=s}}a.Oval=_,_.__name__="Oval",_.init_Oval()},n”, ” function _(s,t,e){Object.defineProperty(e,"__esModule",{value:!0});const i=s(1),n=s(82),r=s(86),o=s(90),_=s(9),l=s(12),h=s(8),c=i.__importStar(s(87)),a=s(11);class d extends r.GlyphView{_build_discontinuous_object(s){const t=[];for(let e=0,i=s.length;e<i;e++){t[e]=[];let i=_.copy(s[e]);for(;i.length>0;){const s=_.find_last_index(i,s=>h.isStrictNaN(s));let n;s>=0?n=i.splice(s):(n=i,i=[]);const r=n.filter(s=>!h.isStrictNaN(s));t[e].push(r)}}return t}_index_data(){const s=this._build_discontinuous_object(this._xs),t=this._build_discontinuous_object(this._ys),e=[];for(let i=0,n=this._xs.length;i<n;i++)for(let n=0,r=s[i].length;n<r;n++){const r=s[i][n],o=t[i][n];0!=r.length&&e.push({x0:_.min(r),y0:_.min(o),x1:_.max(r),y1:_.max(o),i})}return new n.SpatialIndex(e)}_mask_data(){const s=this.renderer.plot_view.frame.x_ranges.default,[t,e]=[s.min,s.max],i=this.renderer.plot_view.frame.y_ranges.default,[n,r]=[i.min,i.max];return this.index.indices({x0:t,x1:e,y0:n,y1:r}).sort((s,t)=>s-t)}_inner_loop(s,t,e,i){for(let n=0,r=t.length;n<r;n++)0!=n?isNaN(t[n]+e[n])?(s.closePath(),i.apply(s),s.beginPath()):s.lineTo(t[n],e[n]):(s.beginPath(),s.moveTo(t[n],e[n]));s.closePath(),i.call(s)}_render(s,t,{sxs:e,sys:i}){this.sxss=this._build_discontinuous_object(e),this.syss=this._build_discontinuous_object(i);for(const n of t){const[t,r]=[e[n],i[n]];this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(s,n),this._inner_loop(s,t,r,s.fill)),this.visuals.hatch.doit2(s,n,()=>this._inner_loop(s,t,r,s.fill),()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,n),this._inner_loop(s,t,r,s.stroke))}}_hit_rect(s){const{sx0:t,sx1:e,sy0:i,sy1:n}=s,r=[t,e,e,t],o=[i,i,n,n],[_,l]=this.renderer.xscale.r_invert(t,e),[h,a]=this.renderer.yscale.r_invert(i,n),d=this.index.indices({x0:_,x1:l,y0:h,y1:a}),u=[];for(let s=0,t=d.length;s<t;s++){const t=d[s],e=this.sxs[t],i=this.sys[t];let n=!0;for(let s=0,t=e.length;s<t;s++){const t=e[s],_=i[s];if(!c.point_in_poly(t,_,r,o)){n=!1;break}}n&&u.push(t)}const x=c.create_empty_hit_test_result();return x.indices=u,x}_hit_point(s){const{sx:t,sy:e}=s,i=this.renderer.xscale.invert(t),n=this.renderer.yscale.invert(e),r=this.index.indices({x0:i,y0:n,x1:i,y1:n}),o=[];for(let s=0,i=r.length;s<i;s++){const i=r[s],n=this.sxss[i],_=this.syss[i];for(let s=0,r=n.length;s<r;s++)c.point_in_poly(t,e,n[s],_[s])&&o.push(i)}const _=c.create_empty_hit_test_result();return _.indices=o,_}_get_snap_coord(s){return l.sum(s)/s.length}scenterx(s,t,e){if(1==this.sxss[s].length)return this._get_snap_coord(this.sxs[s]);{const i=this.sxss[s],n=this.syss[s];for(let s=0,r=i.length;s<r;s++)if(c.point_in_poly(t,e,i[s],n[s]))return this._get_snap_coord(i[s])}a.unreachable()}scentery(s,t,e){if(1==this.syss[s].length)return this._get_snap_coord(this.sys[s]);{const i=this.sxss[s],n=this.syss[s];for(let s=0,r=i.length;s<r;s++)if(c.point_in_poly(t,e,i[s],n[s]))return this._get_snap_coord(n[s])}a.unreachable()}draw_legend_for_index(s,t,e){o.generic_area_legend(this.visuals,s,t,e)}}e.PatchesView=d,d.__name__="PatchesView";class u extends r.Glyph{constructor(s){super(s)}static init_Patches(){this.prototype.default_view=d,this.coords([["xs","ys"]]),this.mixins(["line","fill","hatch"])}}e.Patches=u,u.__name__="Patches",u.init_Patches()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(217);class _ extends i.BoxView{scenterx(t){return(this.sleft[t]+this.sright[t])/2}scentery(t){return(this.stop[t]+this.sbottom[t])/2}_index_data(){return this._index_box(this._right.length)}_lrtb(t){return[this._left[t],this._right[t],this._top[t],this._bottom[t]]}}s.QuadView=_,_.__name__="QuadView";class o extends i.Box{constructor(t){super(t)}static init_Quad(){this.prototype.default_view=_,this.coords([["right","bottom"],["left","top"]])}}s.Quad=o,o.__name__="Quad",o.init_Quad()},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(82),n=t(86),r=t(90);function _(t,i,e){if(i==(t+e)/2)return[t,e];{const s=(t-i)/(t-2*i+e),n=t*(1-s)**2+2*i*(1-s)*s+e*s**2;return[Math.min(t,e,n),Math.max(t,e,n)]}}class a extends n.GlyphView{_index_data(){const t=[];for(let i=0,e=this._x0.length;i<e;i++){if(isNaN(this._x0[i]+this._x1[i]+this._y0[i]+this._y1[i]+this._cx[i]+this._cy[i]))continue;const[e,s]=_(this._x0[i],this._cx[i],this._x1[i]),[n,r]=_(this._y0[i],this._cy[i],this._y1[i]);t.push({x0:e,y0:n,x1:s,y1:r,i})}return new s.SpatialIndex(t)}_render(t,i,{sx0:e,sy0:s,sx1:n,sy1:r,scx:_,scy:a}){if(this.visuals.line.doit)for(const c of i)isNaN(e[c]+s[c]+n[c]+r[c]+_[c]+a[c])||(t.beginPath(),t.moveTo(e[c],s[c]),t.quadraticCurveTo(_[c],a[c],n[c],r[c]),this.visuals.line.set_vectorize(t,c),t.stroke())}draw_legend_for_index(t,i,e){r.generic_line_legend(this.visuals,t,i,e)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}e.QuadraticView=a,a.__name__="QuadraticView";class c extends n.Glyph{constructor(t){super(t)}static init_Quadratic(){this.prototype.default_view=a,this.coords([["x0","y0"],["x1","y1"],["cx","cy"]]),this.mixins(["line"])}}e.Quadratic=c,c.__name__="Quadratic",c.init_Quadratic()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(81),a=e(90),l=s.__importStar(e(19));class r extends n.XYGlyphView{_map_data(){"data"==this.model.properties.length.units?this.slength=this.sdist(this.renderer.xscale,this._x,this._length):this.slength=this._length}_render(e,t,{sx:i,sy:s,slength:n,_angle:a}){if(this.visuals.line.doit){const l=2*(this.renderer.plot_view.frame._width.value+this.renderer.plot_view.frame._height.value);for(let e=0,t=n.length;e<t;e++)0==n[e]&&(n[e]=l);for(const l of t)isNaN(i[l]+s[l]+a[l]+n[l])||(e.translate(i[l],s[l]),e.rotate(a[l]),e.beginPath(),e.moveTo(0,0),e.lineTo(n[l],0),this.visuals.line.set_vectorize(e,l),e.stroke(),e.rotate(-a[l]),e.translate(-i[l],-s[l]))}}draw_legend_for_index(e,t,i){a.generic_line_legend(this.visuals,e,t,i)}}i.RayView=r,r.__name__="RayView";class _ extends n.XYGlyph{constructor(e){super(e)}static init_Ray(){this.prototype.default_view=r,this.mixins(["line"]),this.define({length:[l.DistanceSpec],angle:[l.AngleSpec]})}}i.Ray=_,_.__name__="Ray",_.init_Ray()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(213),a=t(90),r=i.__importStar(t(87)),n=i.__importStar(t(19)),_=t(12);class o extends h.CenterRotatableView{_set_data(){this.max_w2=0,"data"==this.model.properties.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,"data"==this.model.properties.height.units&&(this.max_h2=this.max_height/2)}_map_data(){if("data"==this.model.properties.width.units)[this.sw,this.sx0]=this._map_dist_corner_for_data_side_length(this._x,this._width,this.renderer.xscale);else{this.sw=this._width;const t=this.sx.length;this.sx0=new Float64Array(t);for(let s=0;s<t;s++)this.sx0[s]=this.sx[s]-this.sw[s]/2}if("data"==this.model.properties.height.units)[this.sh,this.sy1]=this._map_dist_corner_for_data_side_length(this._y,this._height,this.renderer.yscale);else{this.sh=this._height;const t=this.sy.length;this.sy1=new Float64Array(t);for(let s=0;s<t;s++)this.sy1[s]=this.sy[s]-this.sh[s]/2}const t=this.sw.length;this.ssemi_diag=new Float64Array(t);for(let s=0;s<t;s++)this.ssemi_diag[s]=Math.sqrt(this.sw[s]/2*this.sw[s]/2+this.sh[s]/2*this.sh[s]/2)}_render(t,s,{sx:e,sy:i,sx0:h,sy1:a,sw:r,sh:n,_angle:_}){if(this.visuals.fill.doit)for(const o of s)isNaN(e[o]+i[o]+h[o]+a[o]+r[o]+n[o]+_[o])||(this.visuals.fill.set_vectorize(t,o),_[o]?(t.translate(e[o],i[o]),t.rotate(_[o]),t.fillRect(-r[o]/2,-n[o]/2,r[o],n[o]),t.rotate(-_[o]),t.translate(-e[o],-i[o])):t.fillRect(h[o],a[o],r[o],n[o]));if(this.visuals.line.doit){t.beginPath();for(const o of s)isNaN(e[o]+i[o]+h[o]+a[o]+r[o]+n[o]+_[o])||0!=r[o]&&0!=n[o]&&(_[o]?(t.translate(e[o],i[o]),t.rotate(_[o]),t.rect(-r[o]/2,-n[o]/2,r[o],n[o]),t.rotate(-_[o]),t.translate(-e[o],-i[o])):t.rect(h[o],a[o],r[o],n[o]),this.visuals.line.set_vectorize(t,o),t.stroke(),t.beginPath());t.stroke()}}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){let{sx:s,sy:e}=t;const i=this.renderer.xscale.invert(s),h=this.renderer.yscale.invert(e),a=[];for(let t=0,s=this.sx0.length;t<s;t++)a.push(this.sx0[t]+this.sw[t]/2);const n=[];for(let t=0,s=this.sy1.length;t<s;t++)n.push(this.sy1[t]+this.sh[t]/2);const o=_.max(this._ddist(0,a,this.ssemi_diag)),l=_.max(this._ddist(1,n,this.ssemi_diag)),d=i-o,c=i+o,x=h-l,y=h+l,m=[];for(const t of this.index.indices({x0:d,x1:c,y0:x,y1:y})){let i,h;if(this._angle[t]){const a=Math.sin(-this._angle[t]),r=Math.cos(-this._angle[t]),n=r*(s-this.sx[t])-a*(e-this.sy[t])+this.sx[t],_=a*(s-this.sx[t])+r*(e-this.sy[t])+this.sy[t];s=n,e=_,h=Math.abs(this.sx[t]-s)<=this.sw[t]/2,i=Math.abs(this.sy[t]-e)<=this.sh[t]/2}else h=s-this.sx0[t]<=this.sw[t]&&s-this.sx0[t]>=0,i=e-this.sy1[t]<=this.sh[t]&&e-this.sy1[t]>=0;i&&h&&m.push(t)}const f=r.create_empty_hit_test_result();return f.indices=m,f}_map_dist_corner_for_data_side_length(t,s,e){const i=t.length,h=new Float64Array(i),a=new Float64Array(i);for(let e=0;e<i;e++)h[e]=Number(t[e])-s[e]/2,a[e]=Number(t[e])+s[e]/2;const r=e.v_compute(h),n=e.v_compute(a),_=this.sdist(e,h,s,"edge",this.model.dilate);let o=r;for(let t=0,s=r.length;t<s;t++)if(r[t]!=n[t]){o=r[t]<n[t]?r:n;break}return[_,o]}_ddist(t,s,e){const i=0==t?this.renderer.xscale:this.renderer.yscale,h=s,a=h.length,r=new Float64Array(a);for(let t=0;t<a;t++)r[t]=h[t]+e[t];const n=i.v_invert(h),_=i.v_invert(r),o=n.length,l=new Float64Array(o);for(let t=0;t<o;t++)l[t]=Math.abs(_[t]-n[t]);return l}draw_legend_for_index(t,s,e){a.generic_area_legend(this.visuals,t,s,e)}_bounds({x0:t,x1:s,y0:e,y1:i}){return{x0:t-this.max_w2,x1:s+this.max_w2,y0:e-this.max_h2,y1:i+this.max_h2}}}e.RectView=o,o.__name__="RectView";class l extends h.CenterRotatable{constructor(t){super(t)}static init_Rect(){this.prototype.default_view=o,this.define({dilate:[n.Boolean,!1]})}}e.Rect=l,l.__name__="Rect",l.init_Rect()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1).__importStar(e(87)),n=e(82),r=e(86),h=e(90);class _ extends r.GlyphView{_index_data(){const e=[];for(let t=0,s=this._x0.length;t<s;t++){const s=this._x0[t],i=this._x1[t],n=this._y0[t],r=this._y1[t];isNaN(s+i+n+r)||e.push({x0:Math.min(s,i),y0:Math.min(n,r),x1:Math.max(s,i),y1:Math.max(n,r),i:t})}return new n.SpatialIndex(e)}_render(e,t,{sx0:s,sy0:i,sx1:n,sy1:r}){if(this.visuals.line.doit)for(const h of t)isNaN(s[h]+i[h]+n[h]+r[h])||(e.beginPath(),e.moveTo(s[h],i[h]),e.lineTo(n[h],r[h]),this.visuals.line.set_vectorize(e,h),e.stroke())}_hit_point(e){const{sx:t,sy:s}=e,n={x:t,y:s},r=[],[h,_]=this.renderer.xscale.r_invert(t-2,t+2),[a,c]=this.renderer.yscale.r_invert(s-2,s+2),o=this.index.indices({x0:h,y0:a,x1:_,y1:c});for(const e of o){const t=Math.max(2,this.visuals.line.cache_select("line_width",e)/2)**2,s={x:this.sx0[e],y:this.sy0[e]},h={x:this.sx1[e],y:this.sy1[e]};i.dist_to_segment_squared(n,s,h)<t&&r.push(e)}const x=i.create_empty_hit_test_result();return x.indices=r,x}_hit_span(e){const[t,s]=this.renderer.plot_view.frame.bbox.ranges,{sx:n,sy:r}=e;let h,_,a;"v"==e.direction?(a=this.renderer.yscale.invert(r),[h,_]=[this._y0,this._y1]):(a=this.renderer.xscale.invert(n),[h,_]=[this._x0,this._x1]);const c=[],[o,x]=this.renderer.xscale.r_invert(t.start,t.end),[l,d]=this.renderer.yscale.r_invert(s.start,s.end),y=this.index.indices({x0:o,y0:l,x1:x,y1:d});for(const t of y){(h[t]<=a&&a<=_[t]||_[t]<=a&&a<=h[t])&&c.push(t);const s=1.5+this.visuals.line.cache_select("line_width",t)/2;h[t]==_[t]&&("h"==e.direction?Math.abs(this.sx0[t]-n)<=s&&c.push(t):Math.abs(this.sy0[t]-r)<=s&&c.push(t))}const u=i.create_empty_hit_test_result();return u.indices=c,u}scenterx(e){return(this.sx0[e]+this.sx1[e])/2}scentery(e){return(this.sy0[e]+this.sy1[e])/2}draw_legend_for_index(e,t,s){h.generic_line_legend(this.visuals,e,t,s)}}s.SegmentView=_,_.__name__="SegmentView";class a extends r.Glyph{constructor(e){super(e)}static init_Segment(){this.prototype.default_view=_,this.coords([["x0","y0"],["x1","y1"]]),this.mixins(["line"])}}s.Segment=a,a.__name__="Segment",a.init_Segment()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(81),o=e(90),r=n.__importStar(e(19));class l extends s.XYGlyphView{_render(e,t,{sx:i,sy:n}){let s=!1,o=null;this.visuals.line.set_value(e);const r=t.length;if(!(r<2)){e.beginPath(),e.moveTo(i[0],n[0]);for(const r of t){let t,l,a,_;switch(this.model.mode){case"before":[t,a]=[i[r-1],n[r]],[l,_]=[i[r],n[r]];break;case"after":[t,a]=[i[r],n[r-1]],[l,_]=[i[r],n[r]];break;case"center":{const e=(i[r-1]+i[r])/2;[t,a]=[e,n[r-1]],[l,_]=[e,n[r]];break}default:throw new Error("unexpected")}if(s){if(!isFinite(i[r]+n[r])){e.stroke(),e.beginPath(),s=!1,o=r;continue}null!=o&&r-o>1&&(e.stroke(),s=!1)}s?(e.lineTo(t,a),e.lineTo(l,_)):(e.beginPath(),e.moveTo(i[r],n[r]),s=!0),o=r}e.lineTo(i[r-1],n[r-1]),e.stroke()}}draw_legend_for_index(e,t,i){o.generic_line_legend(this.visuals,e,t,i)}}i.StepView=l,l.__name__="StepView";class a extends s.XYGlyph{constructor(e){super(e)}static init_Step(){this.prototype.default_view=l,this.mixins(["line"]),this.define({mode:[r.StepMode,"before"]})}}i.Step=a,a.__name__="Step",a.init_Step()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),_=t(81),n=i.__importStar(t(87)),o=i.__importStar(t(19)),h=t(131);class r extends _.XYGlyphView{_rotate_point(t,s,e,i,_){return[(t-e)*Math.cos(_)-(s-i)*Math.sin(_)+e,(t-e)*Math.sin(_)+(s-i)*Math.cos(_)+i]}_text_bounds(t,s,e,i){return[[t,t+e,t+e,t,t],[s,s,s-i,s-i,s]]}_render(t,s,{sx:e,sy:i,_x_offset:_,_y_offset:n,_angle:o,_text:r}){this._sys=[],this._sxs=[];for(const l of s)if(!isNaN(e[l]+i[l]+_[l]+n[l]+o[l])&&null!=r[l]&&(this._sxs[l]=[],this._sys[l]=[],this.visuals.text.doit)){const s=`${r[l]}`;t.save(),t.translate(e[l]+_[l],i[l]+n[l]),t.rotate(o[l]),this.visuals.text.set_vectorize(t,l);const a=this.visuals.text.cache_select("font",l),{height:x}=h.measure_font(a),c=this.visuals.text.text_line_height.value()*x;if(-1==s.indexOf("\n")){t.fillText(s,0,0);const o=e[l]+_[l],h=i[l]+n[l],r=t.measureText(s).width,[a,x]=this._text_bounds(o,h,r,c);this._sxs[l].push(a),this._sys[l].push(x)}else{const o=s.split("\n"),h=c*o.length,r=this.visuals.text.cache_select("text_baseline",l);let a;switch(r){case"top":a=0;break;case"middle":a=-h/2+c/2;break;case"bottom":a=-h+c;break;default:a=0,console.warn(‘${r}’ baseline not supported with multi line text)}for(const s of o){t.fillText(s,0,a);const o=e[l]+_[l],h=a+i[l]+n[l],r=t.measureText(s).width,[x,u]=this._text_bounds(o,h,r,c);this._sxs[l].push(x),this._sys[l].push(u),a+=c}}t.restore()}}_hit_point(t){const{sx:s,sy:e}=t,i=[];for(let t=0;t<this._sxs.length;t++){const _=this._sxs[t],o=this._sys[t],h=_.length;for(let r=0,l=h;r<l;r++){const[l,a]=this._rotate_point(s,e,_[h-1][0],o[h-1][0],-this._angle[t]);n.point_in_poly(l,a,_[r],o[r])&&i.push(t)}}const _=n.create_empty_hit_test_result();return _.indices=i,_}_scenterxy(t){const s=this._sxs[t][0][0],e=this._sys[t][0][0],i=(this._sxs[t][0][2]+s)/2,_=(this._sys[t][0][2]+e)/2,[n,o]=this._rotate_point(i,_,s,e,this._angle[t]);return{x:n,y:o}}scenterx(t){return this._scenterxy(t).x}scentery(t){return this._scenterxy(t).y}}e.TextView=r,r.__name__="TextView";class l extends _.XYGlyph{constructor(t){super(t)}static init_Text(){this.prototype.default_view=r,this.mixins(["text"]),this.define({text:[o.NullStringSpec,{field:"text"}],angle:[o.AngleSpec,0],x_offset:[o.NumberSpec,0],y_offset:[o.NumberSpec,0]})}}e.Text=l,l.__name__="Text",l.init_Text()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(217),r=i.__importStar(t(19));class o extends h.BoxView{scenterx(t){return this.sx[t]}scentery(t){return(this.stop[t]+this.sbottom[t])/2}_index_data(){return this._index_box(this._x.length)}_lrtb(t){return[this._x[t]-this._width[t]/2,this._x[t]+this._width[t]/2,Math.max(this._top[t],this._bottom[t]),Math.min(this._top[t],this._bottom[t])]}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sw=this.sdist(this.renderer.xscale,this._x,this._width,"center"),this.stop=this.renderer.yscale.v_compute(this._top),this.sbottom=this.renderer.yscale.v_compute(this._bottom);const t=this.sx.length;this.sleft=new Float64Array(t),this.sright=new Float64Array(t);for(let s=0;s<t;s++)this.sleft[s]=this.sx[s]-this.sw[s]/2,this.sright[s]=this.sx[s]+this.sw[s]/2;this._clamp_viewport()}}e.VBarView=o,o.__name__="VBarView";class _ extends h.Box{constructor(t){super(t)}static init_VBar(){this.prototype.default_view=o,this.coords([["x","bottom"]]),this.define({width:[r.NumberSpec],top:[r.CoordinateSpec]}),this.override({bottom:0})}}e.VBar=_,_.__name__="VBar",_.init_VBar()},n”, ” function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(1),r=e(81),n=e(90),a=i.__importStar(e(87)),_=i.__importStar(e(19)),d=e(10);class l extends r.XYGlyphView{_map_data(){"data"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius):this.sradius=this._radius}_render(e,s,{sx:t,sy:i,sradius:r,_start_angle:n,_end_angle:a}){const _=this.model.properties.direction.value();for(const d of s)isNaN(t[d]+i[d]+r[d]+n[d]+a[d])||(e.beginPath(),e.arc(t[d],i[d],r[d],n[d],a[d],_),e.lineTo(t[d],i[d]),e.closePath(),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,d),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,d),e.stroke()))}_hit_point(e){let s,t,i,r,n,_,l,h,o;const{sx:c,sy:u}=e,p=this.renderer.xscale.invert(c),x=this.renderer.yscale.invert(u),g=2*this.max_radius;"data"===this.model.properties.radius.units?(_=p-g,l=p+g,h=x-g,o=x+g):(t=c-g,i=c+g,[_,l]=this.renderer.xscale.r_invert(t,i),r=u-g,n=u+g,[h,o]=this.renderer.yscale.r_invert(r,n));const y=[];for(const e of this.index.indices({x0:_,x1:l,y0:h,y1:o})){const a=this.sradius[e]**2;[t,i]=this.renderer.xscale.r_compute(p,this._x[e]),[r,n]=this.renderer.yscale.r_compute(x,this._y[e]),s=(t-i)**2+(r-n)**2,s<=a&&y.push([e,s])}const f=this.model.properties.direction.value(),v=[];for(const[e,s]of y){const t=Math.atan2(u-this.sy[e],c-this.sx[e]);d.angle_between(-t,-this._start_angle[e],-this._end_angle[e],f)&&v.push([e,s])}return a.create_hit_test_result_from_hits(v)}draw_legend_for_index(e,s,t){n.generic_area_legend(this.visuals,e,s,t)}_scenterxy(e){const s=this.sradius[e]/2,t=(this._start_angle[e]+this._end_angle[e])/2;return{x:this.sx[e]+s*Math.cos(t),y:this.sy[e]+s*Math.sin(t)}}scenterx(e){return this._scenterxy(e).x}scentery(e){return this._scenterxy(e).y}}t.WedgeView=l,l.__name__="WedgeView";class h extends r.XYGlyph{constructor(e){super(e)}static init_Wedge(){this.prototype.default_view=l,this.mixins(["line","fill"]),this.define({direction:[_.Direction,"anticlock"],radius:[_.DistanceSpec],start_angle:[_.AngleSpec],end_angle:[_.AngleSpec]})}}t.Wedge=h,h.__name__="Wedge",h.init_Wedge()},n”, ” function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const r=e(1);r.__exportStar(e(98),_),r.__exportStar(e(238),_),r.__exportStar(e(239),_)},n”, ” function _(e,o,r){Object.defineProperty(r,"__esModule",{value:!0});const t=e(69);class n extends t.Model{constructor(e){super(e)}}r.LayoutProvider=n,n.__name__="LayoutProvider"},n”, ” function _(t,a,e){Object.defineProperty(e,"__esModule",{value:!0});const o=t(1),r=t(238),s=o.__importStar(t(19));class n extends r.LayoutProvider{constructor(t){super(t)}static init_StaticLayoutProvider(){this.define({graph_layout:[s.Any,{}]})}get_node_coordinates(t){const a=[],e=[],o=t.data.index;for(let t=0,r=o.length;t<r;t++){const r=this.graph_layout[o[t]],[s,n]=null!=r?r:[NaN,NaN];a.push(s),e.push(n)}return[a,e]}get_edge_coordinates(t){const a=[],e=[],o=t.data.start,r=t.data.end,s=null!=t.data.xs&&null!=t.data.ys;for(let n=0,u=o.length;n<u;n++){const u=null!=this.graph_layout[o[n]]&&null!=this.graph_layout[r[n]];if(s&&u)a.push(t.data.xs[n]),e.push(t.data.ys[n]);else{let t,s;[s,t]=u?[this.graph_layout[o[n]],this.graph_layout[r[n]]]:[[NaN,NaN],[NaN,NaN]],a.push([s[0],t[0]]),e.push([s[1],t[1]])}}return[a,e]}}e.StaticLayoutProvider=n,n.__name__="StaticLayoutProvider",n.init_StaticLayoutProvider()},n”, ” function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});var i=e(241);d.Grid=i.Grid},n”, ” function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),s=e(149),r=n.__importStar(e(19)),_=e(8);class o extends s.GuideRendererView{render(){if(!this.model.visible)return;const e=this.plot_view.canvas_view.ctx;e.save(),this._draw_regions(e),this._draw_minor_grids(e),this._draw_grids(e),e.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render())}_draw_regions(e){if(!this.visuals.band_fill.doit&&!this.visuals.band_hatch.doit)return;this.visuals.band_fill.set_value(e);const[i,t]=this.grid_coords("major",!1);for(let n=0;n<i.length-1;n++){if(n%2!=1)continue;const[s,r]=this.plot_view.map_to_screen(i[n],t[n],this.model.x_range_name,this.model.y_range_name),[_,o]=this.plot_view.map_to_screen(i[n+1],t[n+1],this.model.x_range_name,this.model.y_range_name);this.visuals.band_fill.doit&&e.fillRect(s[0],r[0],_[1]-s[0],o[1]-r[0]),this.visuals.band_hatch.doit2(e,n,()=>{e.fillRect(s[0],r[0],_[1]-s[0],o[1]-r[0])},()=>this.request_render())}}_draw_grids(e){if(!this.visuals.grid_line.doit)return;const[i,t]=this.grid_coords("major");this._draw_grid_helper(e,this.visuals.grid_line,i,t)}_draw_minor_grids(e){if(!this.visuals.minor_grid_line.doit)return;const[i,t]=this.grid_coords("minor");this._draw_grid_helper(e,this.visuals.minor_grid_line,i,t)}_draw_grid_helper(e,i,t,n){i.set_value(e);for(let i=0;i<t.length;i++){const[s,r]=this.plot_view.map_to_screen(t[i],n[i],this.model.x_range_name,this.model.y_range_name);e.beginPath(),e.moveTo(Math.round(s[0]),Math.round(r[0]));for(let i=1;i<s.length;i++)e.lineTo(Math.round(s[i]),Math.round(r[i]));e.stroke()}}ranges(){const e=this.model.dimension,i=(e+1)%2,t=this.plot_view.frame,n=[t.x_ranges[this.model.x_range_name],t.y_ranges[this.model.y_range_name]];return[n[e],n[i]]}computed_bounds(){const[e]=this.ranges(),i=this.model.bounds,t=[e.min,e.max];let n,s;if(_.isArray(i))n=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]),n<t[0]&&(n=t[0]),s>t[1]&&(s=t[1]);else{[n,s]=t;for(const e of this.plot_view.axis_views)e.dimension==this.model.dimension&&e.model.x_range_name==this.model.x_range_name&&e.model.y_range_name==this.model.y_range_name&&([n,s]=e.computed_bounds)}return[n,s]}grid_coords(e,i=!0){const t=this.model.dimension,n=(t+1)%2,[s,r]=this.ranges();let[_,o]=this.computed_bounds();[_,o]=[Math.min(_,o),Math.max(_,o)];const a=[[],[]],l=this.model.get_ticker();if(null==l)return a;const d=l.get_ticks(_,o,s,r.min,{})[e],h=s.min,m=s.max,c=r.min,u=r.max;i||(d[0]!=h&&d.splice(0,0,h),d[d.length-1]!=m&&d.push(m));for(let e=0;e<d.length;e++){if((d[e]==h||d[e]==m)&&i)continue;const s=[],r=[],_=2;for(let i=0;i<_;i++){const t=c+(u-c)/(_-1)*i;s.push(d[e]),r.push(t)}a[t].push(s),a[n].push(r)}return a}}t.GridView=o,o.__name__="GridView";class a extends s.GuideRenderer{constructor(e){super(e)}static init_Grid(){this.prototype.default_view=o,this.mixins(["line:grid_","line:minor_grid_","fill:band_","hatch:band_"]),this.define({bounds:[r.Any,"auto"],dimension:[r.Any,0],axis:[r.Instance],ticker:[r.Instance],x_range_name:[r.String,"default"],y_range_name:[r.String,"default"]}),this.override({level:"underlay",band_fill_color:null,band_fill_alpha:0,grid_line_color:"#e5e5e5",minor_grid_line_color:null})}get_ticker(){return null!=this.ticker?this.ticker:null!=this.axis?this.axis.ticker:null}}t.Grid=a,a.__name__="Grid",a.init_Grid()},n”, ” function _(a,o,r){Object.defineProperty(r,"__esModule",{value:!0});var e=a(243);r.Box=e.Box;var v=a(245);r.Column=v.Column;var x=a(246);r.GridBox=x.GridBox;var B=a(247);r.HTMLBox=B.HTMLBox;var n=a(244);r.LayoutDOM=n.LayoutDOM;var t=a(248);r.Row=t.Row;var u=a(249);r.Spacer=u.Spacer;var d=a(250);r.Panel=d.Panel,r.Tabs=d.Tabs;var i=a(254);r.WidgetBox=i.WidgetBox},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(244),o=n.__importStar(e(19));class c extends s.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.children.change,()=>this.rebuild())}get child_models(){return this.model.children}}i.BoxView=c,c.__name__="BoxView";class r extends s.LayoutDOM{constructor(e){super(e)}static init_Box(){this.define({children:[o.Array,[]],spacing:[o.Number,0]})}}i.Box=r,r.__name__="Box",r.init_Box()},n”, ” function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const s=i(1),o=i(69),l=i(66),n=i(70),h=i(8),a=s.__importStar(i(19)),_=i(96),r=i(64),d=i(67);class u extends r.DOMView{constructor(){super(…arguments),this._idle_notified=!1,this._offset_parent=null,this._viewport={}}initialize(){super.initialize(),this.el.style.position=this.is_root?"relative":"absolute",this._child_views={}}async lazy_initialize(){await this.build_child_views()}remove(){for(const i of this.child_views)i.remove();this._child_views={},super.remove()}connect_signals(){super.connect_signals(),this.is_root&&(this._on_resize=()=>this.resize_layout(),window.addEventListener("resize",this._on_resize),this._parent_observer=setInterval(()=>{const i=this.el.offsetParent;this._offset_parent!=i&&(this._offset_parent=i,null!=i&&(this.compute_viewport(),this.invalidate_layout()))},250));const i=this.model.properties;this.on_change([i.width,i.height,i.min_width,i.min_height,i.max_width,i.max_height,i.margin,i.width_policy,i.height_policy,i.sizing_mode,i.aspect_ratio,i.visible],()=>this.invalidate_layout()),this.on_change([i.background,i.css_classes],()=>this.invalidate_render())}disconnect_signals(){null!=this._parent_observer&&clearTimeout(this._parent_observer),null!=this._on_resize&&window.removeEventListener("resize",this._on_resize),super.disconnect_signals()}css_classes(){return super.css_classes().concat(this.model.css_classes)}get child_views(){return this.child_models.map(i=>this._child_views[i.id])}async build_child_views(){await _.build_views(this._child_views,this.child_models,{parent:this})}render(){super.render(),l.empty(this.el);const{background:i}=this.model;this.el.style.backgroundColor=null!=i?i:"",l.classes(this.el).clear().add(…this.css_classes());for(const i of this.child_views)this.el.appendChild(i.el),i.render()}update_layout(){for(const i of this.child_views)i.update_layout();this._update_layout()}update_position(){this.el.style.display=this.model.visible?"block":"none";const i=this.is_root?this.layout.sizing.margin:void 0;l.position(this.el,this.layout.bbox,i);for(const i of this.child_views)i.update_position()}after_layout(){for(const i of this.child_views)i.after_layout();this._has_finished=!0}compute_viewport(){this._viewport=this._viewport_size()}renderTo(i){i.appendChild(this.el),this._offset_parent=this.el.offsetParent,this.compute_viewport(),this.build()}build(){return this.assert_root(),this.render(),this.update_layout(),this.compute_layout(),this}async rebuild(){await this.build_child_views(),this.invalidate_render()}compute_layout(){const i=Date.now();this.layout.compute(this._viewport),this.update_position(),this.after_layout(),n.logger.debug(layout computed in ${Date.now()-i} ms),this.notify_finished()}resize_layout(){this.root.compute_viewport(),this.root.compute_layout()}invalidate_layout(){this.root.update_layout(),this.root.compute_layout()}invalidate_render(){this.render(),this.invalidate_layout()}has_finished(){if(!super.has_finished())return!1;for(const i of this.child_views)if(!i.has_finished())return!1;return!0}notify_finished(){this.is_root?!this._idle_notified&&this.has_finished()&&null!=this.model.document&&(this._idle_notified=!0,this.model.document.notify_idle(this.model)):this.root.notify_finished()}_width_policy(){return null!=this.model.width?"fixed":"fit"}_height_policy(){return null!=this.model.height?"fixed":"fit"}box_sizing(){let{width_policy:i,height_policy:t,aspect_ratio:e}=this.model;"auto"==i&&(i=this._width_policy()),"auto"==t&&(t=this._height_policy());const{sizing_mode:s}=this.model;if(null!=s)if("fixed"==s)i=t="fixed";else if("stretch_both"==s)i=t="max";else if("stretch_width"==s)i="max";else if("stretch_height"==s)t="max";else switch(null==e&&(e="auto"),s){case"scale_width":i="max",t="min";break;case"scale_height":i="min",t="max";break;case"scale_both":i="max",t="max"}const o={width_policy:i,height_policy:t},{min_width:l,min_height:n}=this.model;null!=l&&(o.min_width=l),null!=n&&(o.min_height=n);const{width:a,height:_}=this.model;null!=a&&(o.width=a),null!=_&&(o.height=_);const{max_width:r,max_height:d}=this.model;null!=r&&(o.max_width=r),null!=d&&(o.max_height=d),"auto"==e&&null!=a&&null!=_?o.aspect=a/_:h.isNumber(e)&&(o.aspect=e);const{margin:u}=this.model;if(null!=u)if(h.isNumber(u))o.margin={top:u,right:u,bottom:u,left:u};else if(2==u.length){const[i,t]=u;o.margin={top:i,right:t,bottom:i,left:t}}else{const[i,t,e,s]=u;o.margin={top:i,right:t,bottom:e,left:s}}o.visible=this.model.visible;const{align:c}=this.model;return h.isArray(c)?[o.halign,o.valign]=c:o.halign=o.valign=c,o}_viewport_size(){return l.undisplayed(this.el,()=>{let i=this.el;for(;i=i.parentElement;){if(i.classList.contains(d.bk_root))continue;if(i==document.body){const{margin:{left:i,right:t,top:e,bottom:s}}=l.extents(document.body);return{width:Math.ceil(document.documentElement.clientWidth-i-t),height:Math.ceil(document.documentElement.clientHeight-e-s)}}const{padding:{left:t,right:e,top:s,bottom:o}}=l.extents(i),{width:n,height:h}=i.getBoundingClientRect(),a=Math.ceil(n-t-e),_=Math.ceil(h-s-o);if(a>0||_>0)return{width:a>0?a:void 0,height:_>0?_:void 0}}return{}})}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.layout.bbox.box,children:this.child_views.map(i=>i.serializable_state())})}}e.LayoutDOMView=u,u.__name__="LayoutDOMView";class c extends o.Model{constructor(i){super(i)}static init_LayoutDOM(){this.define({width:[a.Number,null],height:[a.Number,null],min_width:[a.Number,null],min_height:[a.Number,null],max_width:[a.Number,null],max_height:[a.Number,null],margin:[a.Any,[0,0,0,0]],width_policy:[a.Any,"auto"],height_policy:[a.Any,"auto"],aspect_ratio:[a.Any,null],sizing_mode:[a.SizingMode,null],visible:[a.Boolean,!0],disabled:[a.Boolean,!1],align:[a.Any,"start"],background:[a.Color,null],css_classes:[a.Array,[]]})}}e.LayoutDOM=c,c.__name__="LayoutDOM",c.init_LayoutDOM()},n”, ” function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(243),n=t(191),l=s.__importStar(t(19));class u extends e.BoxView{_update_layout(){const t=this.child_views.map(t=>t.layout);this.layout=new n.Column(t),this.layout.rows=this.model.rows,this.layout.spacing=[this.model.spacing,0],this.layout.set_sizing(this.box_sizing())}}i.ColumnView=u,u.__name__="ColumnView";class _ extends e.Box{constructor(t){super(t)}static init_Column(){this.prototype.default_view=u,this.define({rows:[l.Any,"auto"]})}}i.Column=_,_.__name__="Column",_.init_Column()},n”, ” function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t(1),e=t(244),n=t(191),l=o.__importStar(t(19));class r extends e.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.children.change,()=>this.rebuild())}get child_models(){return this.model.children.map(([t])=>t)}_update_layout(){this.layout=new n.Grid,this.layout.rows=this.model.rows,this.layout.cols=this.model.cols,this.layout.spacing=this.model.spacing;for(const[t,i,s,o,e]of this.model.children){const n=this._child_views[t.id];this.layout.items.push({layout:n.layout,row:i,col:s,row_span:o,col_span:e})}this.layout.set_sizing(this.box_sizing())}}s.GridBoxView=r,r.__name__="GridBoxView";class a extends e.LayoutDOM{constructor(t){super(t)}static init_GridBox(){this.prototype.default_view=r,this.define({children:[l.Array,[]],rows:[l.Any,"auto"],cols:[l.Any,"auto"],spacing:[l.Any,0]})}}s.GridBox=a,a.__name__="GridBox",a.init_GridBox()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(244),_=e(187);class n extends s.LayoutDOMView{get child_models(){return[]}_update_layout(){this.layout=new _.ContentBox(this.el),this.layout.set_sizing(this.box_sizing())}}o.HTMLBoxView=n,n.__name__="HTMLBoxView";class i extends s.LayoutDOM{constructor(e){super(e)}}o.HTMLBox=i,i.__name__="HTMLBox"},n”, ” function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(243),_=t(191),a=s.__importStar(t(19));class n extends e.BoxView{_update_layout(){const t=this.child_views.map(t=>t.layout);this.layout=new _.Row(t),this.layout.cols=this.model.cols,this.layout.spacing=[0,this.model.spacing],this.layout.set_sizing(this.box_sizing())}}i.RowView=n,n.__name__="RowView";class l extends e.Box{constructor(t){super(t)}static init_Row(){this.prototype.default_view=n,this.define({cols:[a.Any,"auto"]})}}i.Row=l,l.__name__="Row",l.init_Row()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(244),s=e(187);class _ extends i.LayoutDOMView{get child_models(){return[]}_update_layout(){this.layout=new s.LayoutItem,this.layout.set_sizing(this.box_sizing())}}a.SpacerView=_,_.__name__="SpacerView";class o extends i.LayoutDOM{constructor(e){super(e)}static init_Spacer(){this.prototype.default_view=_}}a.Spacer=o,o.__name__="Spacer",o.init_Spacer()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),a=e(187),l=e(66),h=e(9),o=i.__importStar(e(19)),c=e(244),d=e(69),n=e(145),r=e(251),_=e(252),b=e(253);class p extends c.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.tabs.change,()=>this.rebuild()),this.connect(this.model.properties.active.change,()=>this.on_active_change())}get child_models(){return this.model.tabs.map(e=>e.child)}_update_layout(){const e=this.model.tabs_location,t="above"==e||"below"==e,{scroll_el:s,headers_el:i}=this;this.header=new class extends a.ContentBox{_measure(e){const a=l.size(s),o=l.children(i).slice(0,3).map(e=>l.size(e)),{width:c,height:d}=super._measure(e);if(t){const t=a.width+h.sum(o.map(e=>e.width));return{width:e.width!=1/0?e.width:t,height:d}}{const t=a.height+h.sum(o.map(e=>e.height));return{width:c,height:e.height!=1/0?e.height:t}}}}(this.header_el),t?this.header.set_sizing({width_policy:"fit",height_policy:"fixed"}):this.header.set_sizing({width_policy:"fixed",height_policy:"fit"});let o=1,c=1;switch(e){case"above":o-=1;break;case"below":o+=1;break;case"left":c-=1;break;case"right":c+=1}const d={layout:this.header,row:o,col:c},n=this.child_views.map(e=>({layout:e.layout,row:1,col:1}));this.layout=new a.Grid([d,…n]),this.layout.set_sizing(this.box_sizing())}update_position(){super.update_position(),this.header_el.style.position="absolute",l.position(this.header_el,this.header.bbox);const e=this.model.tabs_location,t="above"==e||"below"==e,s=l.size(this.scroll_el),i=l.scroll_size(this.headers_el);if(t){const{width:e}=this.header.bbox;i.width>e?(this.wrapper_el.style.maxWidth=`${e-s.width}px`,l.display(this.scroll_el)):(this.wrapper_el.style.maxWidth="",l.undisplay(this.scroll_el))}else{const{height:e}=this.header.bbox;i.height>e?(this.wrapper_el.style.maxHeight=`${e-s.height}px`,l.display(this.scroll_el)):(this.wrapper_el.style.maxHeight="",l.undisplay(this.scroll_el))}const{child_views:a}=this;for(const e of a)l.hide(e.el);const h=a[this.model.active];null!=h&&l.show(h.el)}render(){super.render();const{active:e}=this.model,t=this.model.tabs_location,s="above"==t||"below"==t,i=this.model.tabs.map((t,s)=>{const i=l.div({class:[r.bk_tab,s==e?n.bk_active:null]},t.title);if(i.addEventListener("click",e=>{e.target==e.currentTarget&&this.change_active(s)}),t.closable){const e=l.div({class:r.bk_close});e.addEventListener("click",e=>{if(e.target==e.currentTarget){this.model.tabs=h.remove_at(this.model.tabs,s);const e=this.model.tabs.length;this.model.active>e-1&&(this.model.active=e-1)}}),i.appendChild(e)}return i});this.headers_el=l.div({class:[r.bk_headers]},i),this.wrapper_el=l.div({class:r.bk_headers_wrapper},this.headers_el);const a=l.div({class:[_.bk_btn,_.bk_btn_default],disabled:""},l.div({class:[b.bk_caret,n.bk_left]})),o=l.div({class:[_.bk_btn,_.bk_btn_default]},l.div({class:[b.bk_caret,n.bk_right]}));let c=0;const d=e=>()=>{const t=this.model.tabs.length;c="left"==e?Math.max(c-1,0):Math.min(c+1,t-1),0==c?a.setAttribute("disabled",""):a.removeAttribute("disabled"),c==t-1?o.setAttribute("disabled",""):o.removeAttribute("disabled");const i=l.children(this.headers_el).slice(0,c).map(e=>e.getBoundingClientRect());if(s){const e=-h.sum(i.map(e=>e.width));this.headers_el.style.left=`${e}px`}else{const e=-h.sum(i.map(e=>e.height));this.headers_el.style.top=`${e}px`}};a.addEventListener("click",d("left")),o.addEventListener("click",d("right")),this.scroll_el=l.div({class:_.bk_btn_group},a,o),this.header_el=l.div({class:[r.bk_tabs_header,n.bk_side(t)]},this.scroll_el,this.wrapper_el),this.el.appendChild(this.header_el)}change_active(e){e!=this.model.active&&(this.model.active=e)}on_active_change(){const e=this.model.active,t=l.children(this.headers_el);for(const e of t)e.classList.remove(n.bk_active);t[e].classList.add(n.bk_active);const{child_views:s}=this;for(const e of s)l.hide(e.el);l.show(s[e].el)}}s.TabsView=p,p.__name__="TabsView";class u extends c.LayoutDOM{constructor(e){super(e)}static init_Tabs(){this.prototype.default_view=p,this.define({tabs:[o.Array,[]],tabs_location:[o.Location,"above"],active:[o.Number,0]})}}s.Tabs=u,u.__name__="Tabs",u.init_Tabs();class m extends d.Model{constructor(e){super(e)}static init_Panel(){this.define({title:[o.String,""],child:[o.Instance],closable:[o.Boolean,!1]})}}s.Panel=m,m.__name__="Panel",m.init_Panel()},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const b=e(1);e(67),b.__importStar(e(66)).styles.append(‘.bk-root .bk-tabs-header {\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n overflow: hidden;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-tabs-header .bk-btn-group {\n height: auto;\n margin-right: 5px;\n}\n.bk-root .bk-tabs-header .bk-btn-group > .bk-btn {\n flex-grow: 0;\n -webkit-flex-grow: 0;\n height: auto;\n padding: 4px 4px;\n}\n.bk-root .bk-tabs-header .bk-headers-wrapper {\n flex-grow: 1;\n -webkit-flex-grow: 1;\n overflow: hidden;\n color: #666666;\n}\n.bk-root .bk-tabs-header.bk-above .bk-headers-wrapper {\n border-bottom: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-right .bk-headers-wrapper {\n border-left: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-below .bk-headers-wrapper {\n border-top: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-left .bk-headers-wrapper {\n border-right: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-above,\n.bk-root .bk-tabs-header.bk-below {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-tabs-header.bk-above .bk-headers,\n.bk-root .bk-tabs-header.bk-below .bk-headers {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-tabs-header.bk-left,\n.bk-root .bk-tabs-header.bk-right {\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-tabs-header.bk-left .bk-headers,\n.bk-root .bk-tabs-header.bk-right .bk-headers {\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-tabs-header .bk-headers {\n position: relative;\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n}\n.bk-root .bk-tabs-header .bk-tab {\n padding: 4px 8px;\n border: solid transparent;\n white-space: nowrap;\n cursor: pointer;\n}\n.bk-root .bk-tabs-header .bk-tab:hover {\n background-color: #f2f2f2;\n}\n.bk-root .bk-tabs-header .bk-tab.bk-active {\n color: #4d4d4d;\n background-color: white;\n border-color: #e6e6e6;\n}\n.bk-root .bk-tabs-header .bk-tab .bk-close {\n margin-left: 10px;\n}\n.bk-root .bk-tabs-header.bk-above .bk-tab {\n border-width: 3px 1px 0px 1px;\n border-radius: 4px 4px 0 0;\n}\n.bk-root .bk-tabs-header.bk-right .bk-tab {\n border-width: 1px 3px 1px 0px;\n border-radius: 0 4px 4px 0;\n}\n.bk-root .bk-tabs-header.bk-below .bk-tab {\n border-width: 0px 1px 3px 1px;\n border-radius: 0 0 4px 4px;\n}\n.bk-root .bk-tabs-header.bk-left .bk-tab {\n border-width: 1px 0px 1px 3px;\n border-radius: 4px 0 0 4px;\n}\n.bk-root .bk-close {\n display: inline-block;\n width: 10px;\n height: 10px;\n vertical-align: middle;\n background-image: url(\’data:image/svg+xml;utf8,\\\n <svg viewPort="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg">\\\n <line x1="1" y1="9" x2="9" y2="1" stroke="gray" stroke-width="2"/>\\\n <line x1="1" y1="1" x2="9" y2="9" stroke="gray" stroke-width="2"/>\\\n </svg>\’);\n}\n.bk-root .bk-close:hover {\n background-image: url(\’data:image/svg+xml;utf8,\\\n <svg viewPort="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg">\\\n <line x1="1" y1="9" x2="9" y2="1" stroke="red" stroke-width="2"/>\\\n <line x1="1" y1="1" x2="9" y2="9" stroke="red" stroke-width="2"/>\\\n </svg>\’);\n}\n’),n.bk_tabs_header="bk-tabs-header",n.bk_headers_wrapper="bk-headers-wrapper",n.bk_headers="bk-headers",n.bk_tab="bk-tab",n.bk_close="bk-close"},n”, ” function _(n,o,b){Object.defineProperty(b,"__esModule",{value:!0});const r=n(1);n(67),r.__importStar(n(66)).styles.append(".bk-root .bk-btn {\n height: 100%;\n display: inline-block;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n cursor: pointer;\n padding: 6px 12px;\n font-size: 12px;\n border: 1px solid transparent;\n border-radius: 4px;\n outline: 0;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-btn:hover,\n.bk-root .bk-btn:focus {\n text-decoration: none;\n}\n.bk-root .bk-btn:active,\n.bk-root .bk-btn.bk-active {\n background-image: none;\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.bk-root .bk-btn[disabled] {\n cursor: not-allowed;\n pointer-events: none;\n opacity: 0.65;\n box-shadow: none;\n}\n.bk-root .bk-btn-default {\n color: #333;\n background-color: #fff;\n border-color: #ccc;\n}\n.bk-root .bk-btn-default:hover {\n background-color: #f5f5f5;\n border-color: #b8b8b8;\n}\n.bk-root .bk-btn-default.bk-active {\n background-color: #ebebeb;\n border-color: #adadad;\n}\n.bk-root .bk-btn-default[disabled],\n.bk-root .bk-btn-default[disabled]:hover,\n.bk-root .bk-btn-default[disabled]:focus,\n.bk-root .bk-btn-default[disabled]:active,\n.bk-root .bk-btn-default[disabled].bk-active {\n background-color: #e6e6e6;\n border-color: #ccc;\n}\n.bk-root .bk-btn-primary {\n color: #fff;\n background-color: #428bca;\n border-color: #357ebd;\n}\n.bk-root .bk-btn-primary:hover {\n background-color: #3681c1;\n border-color: #2c699e;\n}\n.bk-root .bk-btn-primary.bk-active {\n background-color: #3276b1;\n border-color: #285e8e;\n}\n.bk-root .bk-btn-primary[disabled],\n.bk-root .bk-btn-primary[disabled]:hover,\n.bk-root .bk-btn-primary[disabled]:focus,\n.bk-root .bk-btn-primary[disabled]:active,\n.bk-root .bk-btn-primary[disabled].bk-active {\n background-color: #506f89;\n border-color: #357ebd;\n}\n.bk-root .bk-btn-success {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.bk-root .bk-btn-success:hover {\n background-color: #4eb24e;\n border-color: #409240;\n}\n.bk-root .bk-btn-success.bk-active {\n background-color: #47a447;\n border-color: #398439;\n}\n.bk-root .bk-btn-success[disabled],\n.bk-root .bk-btn-success[disabled]:hover,\n.bk-root .bk-btn-success[disabled]:focus,\n.bk-root .bk-btn-success[disabled]:active,\n.bk-root .bk-btn-success[disabled].bk-active {\n background-color: #667b66;\n border-color: #4cae4c;\n}\n.bk-root .bk-btn-warning {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.bk-root .bk-btn-warning:hover {\n background-color: #eea43b;\n border-color: #e89014;\n}\n.bk-root .bk-btn-warning.bk-active {\n background-color: #ed9c28;\n border-color: #d58512;\n}\n.bk-root .bk-btn-warning[disabled],\n.bk-root .bk-btn-warning[disabled]:hover,\n.bk-root .bk-btn-warning[disabled]:focus,\n.bk-root .bk-btn-warning[disabled]:active,\n.bk-root .bk-btn-warning[disabled].bk-active {\n background-color: #c89143;\n border-color: #eea236;\n}\n.bk-root .bk-btn-danger {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.bk-root .bk-btn-danger:hover {\n background-color: #d5433e;\n border-color: #bd2d29;\n}\n.bk-root .bk-btn-danger.bk-active {\n background-color: #d2322d;\n border-color: #ac2925;\n}\n.bk-root .bk-btn-danger[disabled],\n.bk-root .bk-btn-danger[disabled]:hover,\n.bk-root .bk-btn-danger[disabled]:focus,\n.bk-root .bk-btn-danger[disabled]:active,\n.bk-root .bk-btn-danger[disabled].bk-active {\n background-color: #a55350;\n border-color: #d43f3a;\n}\n.bk-root .bk-btn-group {\n height: 100%;\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-btn-group > .bk-btn {\n flex-grow: 1;\n -webkit-flex-grow: 1;\n}\n.bk-root .bk-btn-group > .bk-btn + .bk-btn {\n margin-left: -1px;\n}\n.bk-root .bk-btn-group > .bk-btn:first-child:not(:last-child) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):last-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.bk-root .bk-btn-group .bk-dropdown-toggle {\n flex: 0 0 0;\n -webkit-flex: 0 0 0;\n padding: 6px 6px;\n}\n"),b.bk_btn="bk-btn",b.bk_btn_group="bk-btn-group",b.bk_btn_default="bk-btn-default",b.bk_btn_primary="bk-btn-primary",b.bk_btn_success="bk-btn-success",b.bk_btn_warning="bk-btn-warning",b.bk_btn_danger="bk-btn-danger",b.bk_btn_type=function(n){switch(n){case"default":return b.bk_btn_default;case"primary":return b.bk_btn_primary;case"success":return b.bk_btn_success;case"warning":return b.bk_btn_warning;case"danger":return b.bk_btn_danger}},b.bk_dropdown_toggle="bk-dropdown-toggle"},n”, ” function _(n,o,r){Object.defineProperty(r,"__esModule",{value:!0});const b=n(1);n(67),b.__importStar(n(66)).styles.append(".bk-root .bk-menu {\n position: absolute;\n left: 0;\n width: 100%;\n z-index: 100;\n cursor: pointer;\n font-size: 12px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n}\n.bk-root .bk-menu.bk-above {\n bottom: 100%;\n}\n.bk-root .bk-menu.bk-below {\n top: 100%;\n}\n.bk-root .bk-menu > .bk-divider {\n height: 1px;\n margin: 7.5px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.bk-root .bk-menu > :not(.bk-divider) {\n padding: 6px 12px;\n}\n.bk-root .bk-menu > :not(.bk-divider):hover,\n.bk-root .bk-menu > :not(.bk-divider).bk-active {\n background-color: #e6e6e6;\n}\n.bk-root .bk-caret {\n display: inline-block;\n vertical-align: middle;\n width: 0;\n height: 0;\n margin: 0 5px;\n}\n.bk-root .bk-caret.bk-down {\n border-top: 4px solid;\n}\n.bk-root .bk-caret.bk-up {\n border-bottom: 4px solid;\n}\n.bk-root .bk-caret.bk-down,\n.bk-root .bk-caret.bk-up {\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n}\n.bk-root .bk-caret.bk-left {\n border-right: 4px solid;\n}\n.bk-root .bk-caret.bk-right {\n border-left: 4px solid;\n}\n.bk-root .bk-caret.bk-left,\n.bk-root .bk-caret.bk-right {\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n}\n"),r.bk_menu="bk-menu",r.bk_caret="bk-caret",r.bk_divider="bk-divider"},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const o=e(245);class _ extends o.ColumnView{}i.WidgetBoxView=_,_.__name__="WidgetBoxView";class n extends o.Column{constructor(e){super(e)}static init_WidgetBox(){this.prototype.default_view=_}}i.WidgetBox=n,n.__name__="WidgetBox",n.init_WidgetBox()},n”, ” function _(r,a,o){Object.defineProperty(o,"__esModule",{value:!0});var e=r(256);o.CategoricalColorMapper=e.CategoricalColorMapper;var p=r(258);o.CategoricalMarkerMapper=p.CategoricalMarkerMapper;var l=r(259);o.CategoricalPatternMapper=l.CategoricalPatternMapper;var C=r(115);o.ContinuousColorMapper=C.ContinuousColorMapper;var M=r(116);o.ColorMapper=M.ColorMapper;var t=r(114);o.LinearColorMapper=t.LinearColorMapper;var i=r(260);o.LogColorMapper=i.LogColorMapper},n”, ” function _(r,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=r(1),a=r(257),c=r(116),i=o.__importStar(r(19));class s extends c.ColorMapper{constructor(r){super(r)}static init_CategoricalColorMapper(){this.define({factors:[i.Array],start:[i.Number,0],end:[i.Number]})}_v_compute(r,t,e,{nan_color:o}){a.cat_v_compute(r,this.factors,e,t,this.start,this.end,o)}}e.CategoricalColorMapper=s,s.__name__="CategoricalColorMapper",s.init_CategoricalColorMapper()},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const l=e(12),i=e(8);function u(e,n){if(e.length!=n.length)return!1;for(let t=0,l=e.length;t<l;t++)if(e[t]!==n[t])return!1;return!0}t._cat_equals=u,t.cat_v_compute=function(e,n,t,c,f,o,r){for(let _=0,g=e.length;_<g;_++){let g,s,d=e[_];i.isString(d)?g=l.index_of(n,d):(null!=f?d=null!=o?d.slice(f,o):d.slice(f):null!=o&&(d=d.slice(0,o)),g=1==d.length?l.index_of(n,d[0]):l.find_index(n,e=>u(e,d))),s=g<0||g>=t.length?r:t[g],c[_]=s}}},n”, ” function _(r,e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=r(1),s=r(257),i=r(117),c=t.__importStar(r(19));class n extends i.Mapper{constructor(r){super(r)}static init_CategoricalMarkerMapper(){this.define({factors:[c.Array],markers:[c.Array],start:[c.Number,0],end:[c.Number],default_value:[c.MarkerType,"circle"]})}v_compute(r){const e=new Array(r.length);return s.cat_v_compute(r,this.factors,this.markers,e,this.start,this.end,this.default_value),e}}a.CategoricalMarkerMapper=n,n.__name__="CategoricalMarkerMapper",n.init_CategoricalMarkerMapper()},n”, ” function _(t,e,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t(1),n=t(257),s=t(117),i=r.__importStar(t(19));class c extends s.Mapper{constructor(t){super(t)}static init_CategoricalPatternMapper(){this.define({factors:[i.Array],patterns:[i.Array],start:[i.Number,0],end:[i.Number],default_value:[i.HatchPatternType," "]})}v_compute(t){const e=new Array(t.length);return n.cat_v_compute(t,this.factors,this.patterns,e,this.start,this.end,this.default_value),e}}a.CategoricalPatternMapper=c,c.__name__="CategoricalPatternMapper",c.init_CategoricalPatternMapper()},n”, ” function _(o,l,n){Object.defineProperty(n,"__esModule",{value:!0});const t=o(115),e=o(12);class i extends t.ContinuousColorMapper{constructor(o){super(o)}_v_compute(o,l,n,t){const{nan_color:i,low_color:h,high_color:c}=t,r=n.length,s=null!=this.low?this.low:e.min(o),u=null!=this.high?this.high:e.max(o),a=r/(Math.log(u)-Math.log(s)),g=n.length-1;for(let t=0,e=o.length;t<e;t++){const e=o[t];if(isNaN(e)){l[t]=i;continue}if(e>u){l[t]=null!=c?c:n[g];continue}if(e==u){l[t]=n[g];continue}if(e<s){l[t]=null!=h?h:n[0];continue}const r=Math.log(e)-Math.log(s);let _=Math.floor(r*a);_>g&&(_=g),l[t]=n[_]}}}n.LogColorMapper=i,i.__name__="LogColorMapper"},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0}),e(1).__exportStar(e(262),t);var a=e(263);t.Marker=a.Marker;var _=e(264);t.Scatter=_.Scatter},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e(263),s=Math.sqrt(3);function r(e,t){e.moveTo(-t,t),e.lineTo(t,-t),e.moveTo(-t,-t),e.lineTo(t,t)}function n(e,t){e.moveTo(0,t),e.lineTo(0,-t),e.moveTo(-t,0),e.lineTo(t,0)}function c(e,t){e.moveTo(0,t),e.lineTo(t/1.5,0),e.lineTo(0,-t),e.lineTo(-t/1.5,0),e.closePath()}function l(e,t){const o=t*s,i=o/3;e.moveTo(-t,i),e.lineTo(t,i),e.lineTo(0,i-o),e.closePath()}function a(e,t,o,i,s){const c=.65*o;n(e,o),r(e,c),i.doit&&(i.set_vectorize(e,t),e.stroke())}function d(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function _(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),r(e,o),e.stroke())}function v(e,t,o,i,s){n(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function f(e,t,o,i,s){c(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function u(e,t,o,i,s){c(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function T(e,t,o,i,r){!function(e,t){const o=t/2,i=s*o;e.moveTo(t,0),e.lineTo(o,-i),e.lineTo(-o,-i),e.lineTo(-t,0),e.lineTo(-o,i),e.lineTo(o,i),e.closePath()}(e,o),r.doit&&(r.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function z(e,t,o,i,s){e.rotate(Math.PI),l(e,o),e.rotate(-Math.PI),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function k(e,t,o,i,s){const r=2*o;e.rect(-o,-o,r,r),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function m(e,t,o,i,s){const r=2*o;e.rect(-o,-o,r,r),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function C(e,t,o,i,s){const n=2*o;e.rect(-o,-o,n,n),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),r(e,o),e.stroke())}function h(e,t,o,i,s){l(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function q(e,t,o,i,s){!function(e,t){e.moveTo(-t,0),e.lineTo(t,0)}(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function M(e,t,o,i,s){r(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function P(e,t){var o;const s=class extends i.MarkerView{static initClass(){this.prototype._render_one=t}};s.initClass();const r=((o=class extends i.Marker{static initClass(){this.prototype.default_view=s}}).__name__=e,o);return r.initClass(),r}o.Asterisk=P("Asterisk",a),o.CircleCross=P("CircleCross",d),o.CircleX=P("CircleX",_),o.Cross=P("Cross",v),o.Dash=P("Dash",q),o.Diamond=P("Diamond",f),o.DiamondCross=P("DiamondCross",u),o.Hex=P("Hex",T),o.InvertedTriangle=P("InvertedTriangle",z),o.Square=P("Square",k),o.SquareCross=P("SquareCross",m),o.SquareX=P("SquareX",C),o.Triangle=P("Triangle",h),o.X=P("X",M),o.marker_funcs={asterisk:a,circle:function(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())},circle_cross:d,circle_x:_,cross:v,diamond:f,diamond_cross:u,hex:T,inverted_triangle:z,square:k,square_cross:m,square_x:C,triangle:h,dash:q,x:M}},n”, ” function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(1),r=e(81),n=i.__importStar(e(87)),a=i.__importStar(e(19)),_=e(9);class h extends r.XYGlyphView{_render(e,s,{sx:t,sy:i,_size:r,_angle:n}){for(const a of s){if(isNaN(t[a]+i[a]+r[a]+n[a]))continue;const s=r[a]/2;e.beginPath(),e.translate(t[a],i[a]),n[a]&&e.rotate(n[a]),this._render_one(e,a,s,this.visuals.line,this.visuals.fill),n[a]&&e.rotate(-n[a]),e.translate(-t[a],-i[a])}}_mask_data(){const e=this.renderer.plot_view.frame.bbox.h_range,s=e.start-this.max_size,t=e.end+this.max_size,[i,r]=this.renderer.xscale.r_invert(s,t),n=this.renderer.plot_view.frame.bbox.v_range,a=n.start-this.max_size,_=n.end+this.max_size,[h,c]=this.renderer.yscale.r_invert(a,_);return this.index.indices({x0:i,x1:r,y0:h,y1:c})}_hit_point(e){const{sx:s,sy:t}=e,i=s-this.max_size,r=s+this.max_size,[a,_]=this.renderer.xscale.r_invert(i,r),h=t-this.max_size,c=t+this.max_size,[o,x]=this.renderer.yscale.r_invert(h,c),l=this.index.indices({x0:a,x1:_,y0:o,y1:x}),y=[];for(const e of l){const i=this._size[e]/2,r=Math.abs(this.sx[e]-s)+Math.abs(this.sy[e]-t);Math.abs(this.sx[e]-s)<=i&&Math.abs(this.sy[e]-t)<=i&&y.push([e,r])}return n.create_hit_test_result_from_hits(y)}_hit_span(e){const{sx:s,sy:t}=e,i=this.bounds(),r=this.max_size/2,a=n.create_empty_hit_test_result();let _,h,c,o;if("h"==e.direction){c=i.y0,o=i.y1;const e=s-r,t=s+r;[_,h]=this.renderer.xscale.r_invert(e,t)}else{_=i.x0,h=i.x1;const e=t-r,s=t+r;[c,o]=this.renderer.yscale.r_invert(e,s)}const x=this.index.indices({x0:_,x1:h,y0:c,y1:o});return a.indices=x,a}_hit_rect(e){const{sx0:s,sx1:t,sy0:i,sy1:r}=e,[a,_]=this.renderer.xscale.r_invert(s,t),[h,c]=this.renderer.yscale.r_invert(i,r),o=n.create_empty_hit_test_result();return o.indices=this.index.indices({x0:a,x1:_,y0:h,y1:c}),o}_hit_poly(e){const{sx:s,sy:t}=e,i=_.range(0,this.sx.length),r=[];for(let e=0,a=i.length;e<a;e++){const a=i[e];n.point_in_poly(this.sx[e],this.sy[e],s,t)&&r.push(a)}const a=n.create_empty_hit_test_result();return a.indices=r,a}draw_legend_for_index(e,{x0:s,x1:t,y0:i,y1:r},n){const a=n+1,_=new Array(a);_[n]=(s+t)/2;const h=new Array(a);h[n]=(i+r)/2;const c=new Array(a);c[n]=.4*Math.min(Math.abs(t-s),Math.abs(r-i));const o=new Array(a);o[n]=0,this._render(e,[n],{sx:_,sy:h,_size:c,_angle:o})}}t.MarkerView=h,h.__name__="MarkerView";class c extends r.XYGlyph{constructor(e){super(e)}static init_Marker(){this.mixins(["line","fill"]),this.define({size:[a.DistanceSpec,{units:"screen",value:4}],angle:[a.AngleSpec,0]})}}t.Marker=c,c.__name__="Marker",c.init_Marker()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=e(1),s=e(263),n=e(262),i=a.__importStar(e(19));class _ extends s.MarkerView{_render(e,t,{sx:r,sy:a,_size:s,_angle:i,_marker:_}){for(const c of t){if(isNaN(r[c]+a[c]+s[c]+i[c])||null==_[c])continue;const t=s[c]/2;e.beginPath(),e.translate(r[c],a[c]),i[c]&&e.rotate(i[c]),n.marker_funcs[_[c]](e,c,t,this.visuals.line,this.visuals.fill),i[c]&&e.rotate(-i[c]),e.translate(-r[c],-a[c])}}draw_legend_for_index(e,{x0:t,x1:r,y0:a,y1:s},n){const i=n+1,_=new Array(i);_[n]=(t+r)/2;const c=new Array(i);c[n]=(a+s)/2;const o=new Array(i);o[n]=.4*Math.min(Math.abs(r-t),Math.abs(s-a));const l=new Array(i);l[n]=0;const u=new Array(i);u[n]=this._marker[n],this._render(e,[n],{sx:_,sy:c,_size:o,_angle:l,_marker:u})}}r.ScatterView=_,_.__name__="ScatterView";class c extends s.Marker{constructor(e){super(e)}static init_Scatter(){this.prototype.default_view=_,this.define({marker:[i.MarkerSpec,{value:"circle"}]})}}r.Scatter=c,c.__name__="Scatter",c.init_Scatter()},n”, ” function _(a,o,p){Object.defineProperty(p,"__esModule",{value:!0});var t=a(266);p.MapOptions=t.MapOptions;var e=a(266);p.GMapOptions=e.GMapOptions;var n=a(266);p.GMapPlot=n.GMapPlot;var M=a(267);p.Plot=M.Plot},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1),n=t(70),a=t(267),s=o.__importStar(t(19)),p=t(69),r=t(130),_=t(287);i.GMapPlotView=_.GMapPlotView;class l extends p.Model{constructor(t){super(t)}static init_MapOptions(){this.define({lat:[s.Number],lng:[s.Number],zoom:[s.Number,12]})}}i.MapOptions=l,l.__name__="MapOptions",l.init_MapOptions();class c extends l{constructor(t){super(t)}static init_GMapOptions(){this.define({map_type:[s.String,"roadmap"],scale_control:[s.Boolean,!1],styles:[s.String],tilt:[s.Int,45]})}}i.GMapOptions=c,c.__name__="GMapOptions",c.init_GMapOptions();class u extends a.Plot{constructor(t){super(t)}static init_GMapPlot(){this.prototype.default_view=_.GMapPlotView,this.define({map_options:[s.Instance],api_key:[s.String]}),this.override({x_range:()=>new r.Range1d,y_range:()=>new r.Range1d})}initialize(){super.initialize(),this.use_map=!0,this.api_key||n.logger.error("api_key is required. See https://developers.google.com/maps/documentation/javascript/get-api-key for more information on how to obtain your own.")}}i.GMapPlot=u,u.__name__="GMapPlot",u.init_GMapPlot()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(1).__importStar(e(19)),o=e(14),i=e(9),a=e(24),l=e(8),s=e(244),_=e(141),h=e(119),c=e(268),u=e(73),d=e(78),b=e(185),g=e(280);r.PlotView=g.PlotView;class m extends s.LayoutDOM{constructor(e){super(e)}static init_Plot(){this.prototype.default_view=g.PlotView,this.mixins(["line:outline_","fill:background_","fill:border_"]),this.define({toolbar:[n.Instance,()=>new c.Toolbar],toolbar_location:[n.Location,"right"],toolbar_sticky:[n.Boolean,!0],plot_width:[n.Number,600],plot_height:[n.Number,600],frame_width:[n.Number,null],frame_height:[n.Number,null],title:[n.Any,()=>new _.Title({text:""})],title_location:[n.Location,"above"],above:[n.Array,[]],below:[n.Array,[]],left:[n.Array,[]],right:[n.Array,[]],center:[n.Array,[]],renderers:[n.Array,[]],x_range:[n.Instance,()=>new b.DataRange1d],extra_x_ranges:[n.Any,{}],y_range:[n.Instance,()=>new b.DataRange1d],extra_y_ranges:[n.Any,{}],x_scale:[n.Instance,()=>new h.LinearScale],y_scale:[n.Instance,()=>new h.LinearScale],lod_factor:[n.Number,10],lod_interval:[n.Number,300],lod_threshold:[n.Number,2e3],lod_timeout:[n.Number,500],hidpi:[n.Boolean,!0],output_backend:[n.OutputBackend,"canvas"],min_border:[n.Number,5],min_border_top:[n.Number,null],min_border_left:[n.Number,null],min_border_bottom:[n.Number,null],min_border_right:[n.Number,null],inner_width:[n.Number],inner_height:[n.Number],outer_width:[n.Number],outer_height:[n.Number],match_aspect:[n.Boolean,!1],aspect_scale:[n.Number,1],reset_policy:[n.ResetPolicy,"standard"]}),this.override({outline_line_color:"#e5e5e5",border_fill_color:"#ffffff",background_fill_color:"#ffffff"})}get width(){const e=this.getv("width");return null!=e?e:this.plot_width}get height(){const e=this.getv("height");return null!=e?e:this.plot_height}_doc_attached(){super._doc_attached(),this._tell_document_about_change("inner_height",null,this.inner_height,{}),this._tell_document_about_change("inner_width",null,this.inner_width,{})}initialize(){super.initialize(),this.reset=new o.Signal0(this,"reset");for(const e of a.values(this.extra_x_ranges).concat(this.x_range)){let t=e.plots;l.isArray(t)&&(t=t.concat(this),e.setv({plots:t},{silent:!0}))}for(const e of a.values(this.extra_y_ranges).concat(this.y_range)){let t=e.plots;l.isArray(t)&&(t=t.concat(this),e.setv({plots:t},{silent:!0}))}}add_layout(e,t="center"){this.setv({[t]:[…this.getv(t),e]})}remove_layout(e){const t=t=>{i.remove_by(t,t=>t==e)};t(this.left),t(this.right),t(this.above),t(this.below),t(this.center)}add_renderers(…e){this.renderers=this.renderers.concat(e)}add_glyph(e,t=new u.ColumnDataSource,r={}){const n=Object.assign(Object.assign({},r),{data_source:t,glyph:e}),o=new d.GlyphRenderer(n);return this.add_renderers(o),o}add_tools(…e){this.toolbar.tools=this.toolbar.tools.concat(e)}get panels(){return this.side_panels.concat(this.center)}get side_panels(){const{above:e,below:t,left:r,right:n}=this;return i.concat([e,t,r,n])}}r.Plot=m,m.__name__="Plot",m.init_Plot()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),c=t(8),o=t(9),n=t(269),a=t(274),l=t=>{switch(t){case"tap":return"active_tap";case"pan":return"active_drag";case"pinch":case"scroll":return"active_scroll";case"multi":return"active_multi"}return null},r=t=>"tap"==t||"pan"==t;class _ extends a.ToolbarBase{constructor(t){super(t)}static init_Toolbar(){this.prototype.default_view=a.ToolbarBaseView,this.define({active_drag:[i.Any,"auto"],active_inspect:[i.Any,"auto"],active_scroll:[i.Any,"auto"],active_tap:[i.Any,"auto"],active_multi:[i.Any,null]})}connect_signals(){super.connect_signals(),this.connect(this.properties.tools.change,()=>this._init_tools())}_init_tools(){if(super._init_tools(),"auto"==this.active_inspect);else if(this.active_inspect instanceof n.InspectTool){let t=!1;for(const s of this.inspectors)s!=this.active_inspect?s.active=!1:t=!0;t||(this.active_inspect=null)}else if(c.isArray(this.active_inspect)){const t=o.intersection(this.active_inspect,this.inspectors);t.length!=this.active_inspect.length&&(this.active_inspect=t);for(const t of this.inspectors)o.includes(this.active_inspect,t)||(t.active=!1)}else if(null==this.active_inspect)for(const t of this.inspectors)t.active=!1;const t=t=>{t.active?this._active_change(t):t.active=!0};for(const t in this.gestures){const s=this.gestures[t];s.tools=o.sort_by(s.tools,t=>t.default_order);for(const t of s.tools)this.connect(t.properties.active.change,this._active_change.bind(this,t))}for(const s in this.gestures){const e=l(s);if(e){const i=this[e];if("auto"==i){const e=this.gestures[s];0!=e.tools.length&&r(s)&&t(e.tools[0])}else null!=i&&(o.includes(this.tools,i)?t(i):this[e]=null)}}}}e.Toolbar=_,_.__name__="Toolbar",_.init_Toolbar()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(1),s=e(270),i=e(273),_=n.__importStar(e(19));class c extends s.ButtonToolView{}o.InspectToolView=c,c.__name__="InspectToolView";class l extends s.ButtonTool{constructor(e){super(e),this.event_type="move"}static init_InspectTool(){this.prototype.button_view=i.OnOffButtonView,this.define({toggleable:[_.Boolean,!0]}),this.override({active:!0})}}o.InspectTool=l,l.__name__="InspectTool",l.init_InspectTool()},n”, ” function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t(1),s=t(64),n=t(271),l=t(66),c=i.__importStar(t(19)),a=t(26),r=t(8),_=t(272);class u extends s.DOMView{initialize(){super.initialize(),this.connect(this.model.change,()=>this.render()),this.el.addEventListener("click",()=>this._clicked()),this.render()}css_classes(){return super.css_classes().concat(_.bk_toolbar_button)}render(){l.empty(this.el);const t=this.model.computed_icon;r.isString(t)&&(a.startsWith(t,"data:image")?this.el.style.backgroundImage="url(’"+t+"’)":this.el.classList.add(t)),this.el.title=this.model.tooltip}}o.ButtonToolButtonView=u,u.__name__="ButtonToolButtonView";class d extends n.ToolView{}o.ButtonToolView=d,d.__name__="ButtonToolView";class h extends n.Tool{constructor(t){super(t)}static init_ButtonTool(){this.internal({disabled:[c.Boolean,!1]})}get tooltip(){return this.tool_name}get computed_icon(){return this.icon}}o.ButtonTool=h,h.__name__="ButtonTool",h.init_ButtonTool()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1).__importStar(t(19)),o=t(65),s=t(9),a=t(69);class r extends o.View{get plot_view(){return this.parent}get plot_model(){return this.parent.model}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>{this.model.active?this.activate():this.deactivate()})}activate(){}deactivate(){}}i.ToolView=r,r.__name__="ToolView";class _ extends a.Model{constructor(t){super(t)}static init_Tool(){this.prototype._known_aliases=new Map,this.internal({active:[n.Boolean,!1]})}get synthetic_renderers(){return[]}_get_dim_tooltip(t,e){switch(e){case"width":return`${t} (x-axis)`;case"height":return`${t} (y-axis)`;case"both":return t}}_get_dim_limits([t,e],[i,n],o,a){const r=o.bbox.h_range;let _;"width"==a||"both"==a?(_=[s.min([t,i]),s.max([t,i])],_=[s.max([_[0],r.start]),s.min([_[1],r.end])]):_=[r.start,r.end];const l=o.bbox.v_range;let c;return"height"==a||"both"==a?(c=[s.min([e,n]),s.max([e,n])],c=[s.max([c[0],l.start]),s.min([c[1],l.end])]):c=[l.start,l.end],[_,c]}static register_alias(t,e){this.prototype._known_aliases.set(t,e)}static from_string(t){const e=this.prototype._known_aliases.get(t);if(null!=e)return e();{const e=[…this.prototype._known_aliases.keys()];throw new Error(unexpected tool name ‘${t}’, possible tools are ${e.join(", ")})}}}i.Tool=_,_.__name__="Tool",_.init_Tool()},n”, ” function _(o,b,t){Object.defineProperty(t,"__esModule",{value:!0});const n=o(1);o(67),n.__importStar(o(66)).styles.append(‘.bk-root .bk-toolbar-hidden {\n visibility: hidden;\n opacity: 0;\n transition: visibility 0.3s linear, opacity 0.3s linear;\n}\n.bk-root .bk-toolbar,\n.bk-root .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-toolbar .bk-logo {\n flex-shrink: 0;\n -webkit-flex-shrink: 0;\n}\n.bk-root .bk-toolbar.bk-above,\n.bk-root .bk-toolbar.bk-below {\n flex-direction: row;\n -webkit-flex-direction: row;\n justify-content: flex-end;\n -webkit-justify-content: flex-end;\n}\n.bk-root .bk-toolbar.bk-above .bk-button-bar,\n.bk-root .bk-toolbar.bk-below .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-toolbar.bk-above .bk-logo,\n.bk-root .bk-toolbar.bk-below .bk-logo {\n order: 1;\n -webkit-order: 1;\n margin-left: 5px;\n margin-right: 0px;\n}\n.bk-root .bk-toolbar.bk-left,\n.bk-root .bk-toolbar.bk-right {\n flex-direction: column;\n -webkit-flex-direction: column;\n justify-content: flex-start;\n -webkit-justify-content: flex-start;\n}\n.bk-root .bk-toolbar.bk-left .bk-button-bar,\n.bk-root .bk-toolbar.bk-right .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-toolbar.bk-left .bk-logo,\n.bk-root .bk-toolbar.bk-right .bk-logo {\n order: 0;\n -webkit-order: 0;\n margin-bottom: 5px;\n margin-top: 0px;\n}\n.bk-root .bk-toolbar-button {\n width: 30px;\n height: 30px;\n background-size: 60%;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center;\n}\n.bk-root .bk-toolbar-button:hover {\n background-color: #f9f9f9;\n}\n.bk-root .bk-toolbar-button:focus {\n outline: none;\n}\n.bk-root .bk-toolbar-button::-moz-focus-inner {\n border: 0;\n}\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button {\n border-bottom: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button.bk-active {\n border-bottom-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button {\n border-top: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button.bk-active {\n border-top-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button {\n border-left: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button.bk-active {\n border-left-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button {\n border-right: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button.bk-active {\n border-right-color: #26aae1;\n}\n.bk-root .bk-button-bar + .bk-button-bar:before {\n content: " ";\n display: inline-block;\n background-color: lightgray;\n}\n.bk-root .bk-toolbar.bk-above .bk-button-bar + .bk-button-bar:before,\n.bk-root .bk-toolbar.bk-below .bk-button-bar + .bk-button-bar:before {\n height: 10px;\n width: 1px;\n}\n.bk-root .bk-toolbar.bk-left .bk-button-bar + .bk-button-bar:before,\n.bk-root .bk-toolbar.bk-right .bk-button-bar + .bk-button-bar:before {\n height: 1px;\n width: 10px;\n}\n’),t.bk_toolbar="bk-toolbar",t.bk_toolbar_hidden="bk-toolbar-hidden",t.bk_toolbar_button="bk-toolbar-button",t.bk_button_bar="bk-button-bar",t.bk_toolbar_button_custom_action="bk-toolbar-button-custom-action"},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(270),n=e(145);class o extends s.ButtonToolButtonView{render(){super.render(),this.model.active?this.el.classList.add(n.bk_active):this.el.classList.remove(n.bk_active)}_clicked(){const e=this.model.active;this.model.active=!e}}i.OnOffButtonView=o,o.__name__="OnOffButtonView"},n”, ” function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),s=t(70),l=t(66),n=t(96),a=i.__importStar(t(19)),r=t(64),_=t(9),c=t(15),h=t(8),u=t(69),d=t(275),v=t(276),b=t(277),p=t(269),g=t(272),m=t(279),f=t(145);class w extends u.Model{constructor(t){super(t)}static init_ToolbarViewModel(){this.define({_visible:[a.Any,null],autohide:[a.Boolean,!1]})}get visible(){return!this.autohide||null!=this._visible&&this._visible}}e.ToolbarViewModel=w,w.__name__="ToolbarViewModel",w.init_ToolbarViewModel();class y extends r.DOMView{initialize(){super.initialize(),this._tool_button_views={},this._toolbar_view_model=new w({autohide:this.model.autohide})}async lazy_initialize(){await this._build_tool_button_views()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.tools.change,async()=>{await this._build_tool_button_views(),this.render()}),this.connect(this.model.properties.autohide.change,()=>{this._toolbar_view_model.autohide=this.model.autohide,this._on_visible_change()}),this.connect(this._toolbar_view_model.properties._visible.change,()=>this._on_visible_change())}remove(){n.remove_views(this._tool_button_views),super.remove()}async _build_tool_button_views(){const t=null!=this.model._proxied_tools?this.model._proxied_tools:this.model.tools;await n.build_views(this._tool_button_views,t,{parent:this},t=>t.button_view)}set_visibility(t){t!=this._toolbar_view_model._visible&&(this._toolbar_view_model._visible=t)}_on_visible_change(){const t=this._toolbar_view_model.visible,o=g.bk_toolbar_hidden;this.el.classList.contains(o)&&t?this.el.classList.remove(o):t||this.el.classList.add(o)}render(){if(l.empty(this.el),this.el.classList.add(g.bk_toolbar),this.el.classList.add(f.bk_side(this.model.toolbar_location)),this._toolbar_view_model.autohide=this.model.autohide,this._on_visible_change(),null!=this.model.logo){const t="grey"===this.model.logo?m.bk_grey:null,o=l.a({href:"https://bokeh.org/",target:"_blank",class:[m.bk_logo,m.bk_logo_small,t]});this.el.appendChild(o)}const t=[],o=t=>this._tool_button_views[t.id].el,{gestures:e}=this.model;for(const i in e)t.push(e[i].tools.map(o));t.push(this.model.actions.map(o)),t.push(this.model.inspectors.filter(t=>t.toggleable).map(o));for(const o of t)if(0!==o.length){const t=l.div({class:g.bk_button_bar},o);this.el.appendChild(t)}}update_layout(){}update_position(){}after_layout(){this._has_finished=!0}}function T(){return{pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}}}e.ToolbarBaseView=y,y.__name__="ToolbarBaseView";class k extends u.Model{constructor(t){super(t)}static init_ToolbarBase(){this.prototype.default_view=y,this.define({tools:[a.Array,[]],logo:[a.Logo,"normal"],autohide:[a.Boolean,!1]}),this.internal({gestures:[a.Any,T],actions:[a.Array,[]],inspectors:[a.Array,[]],help:[a.Array,[]],toolbar_location:[a.Location,"right"]})}initialize(){super.initialize(),this._init_tools()}_init_tools(){const t=function(t,o){if(t.length!=o.length)return!0;const e=new c.Set(o.map(t=>t.id));return _.some(t,t=>!e.has(t.id))},o=this.tools.filter(t=>t instanceof p.InspectTool);t(this.inspectors,o)&&(this.inspectors=o);const e=this.tools.filter(t=>t instanceof b.HelpTool);t(this.help,e)&&(this.help=e);const i=this.tools.filter(t=>t instanceof v.ActionTool);t(this.actions,i)&&(this.actions=i);const l=(t,o)=>{t in this.gestures||s.logger.warn(Toolbar: unknown event type ‘${t}’ for tool: ${o.type} (${o.id}))},n={pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}};for(const t of this.tools)if(t instanceof d.GestureTool&&t.event_type)if(h.isString(t.event_type))n[t.event_type].tools.push(t),l(t.event_type,t);else{n.multi.tools.push(t);for(const o of t.event_type)l(o,t)}for(const o of Object.keys(n)){const e=this.gestures[o];t(e.tools,n[o].tools)&&(e.tools=n[o].tools),e.active&&_.every(e.tools,t=>t.id!=e.active.id)&&(e.active=null)}}get horizontal(){return"above"===this.toolbar_location||"below"===this.toolbar_location}get vertical(){return"left"===this.toolbar_location||"right"===this.toolbar_location}_active_change(t){const{event_type:o}=t;if(null==o)return;const e=h.isString(o)?[o]:o;for(const o of e)if(t.active){const e=this.gestures[o].active;null!=e&&t!=e&&(s.logger.debug(Toolbar: deactivating tool: ${e.type} (${e.id}) for event type ‘${o}’),e.active=!1),this.gestures[o].active=t,s.logger.debug(Toolbar: activating tool: ${t.type} (${t.id}) for event type ‘${o}’)}else this.gestures[o].active=null}}e.ToolbarBase=k,k.__name__="ToolbarBase",k.init_ToolbarBase()},n”, ” function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(270),n=e(273);class u extends s.ButtonToolView{}t.GestureToolView=u,u.__name__="GestureToolView";class _ extends s.ButtonTool{constructor(e){super(e),this.button_view=n.OnOffButtonView}}t.GestureTool=_,_.__name__="GestureTool"},n”, ” function _(o,t,n){Object.defineProperty(n,"__esModule",{value:!0});const e=o(270),i=o(14);class s extends e.ButtonToolButtonView{_clicked(){this.model.do.emit()}}n.ActionToolButtonView=s,s.__name__="ActionToolButtonView";class c extends e.ButtonToolView{connect_signals(){super.connect_signals(),this.connect(this.model.do,()=>this.doit())}}n.ActionToolView=c,c.__name__="ActionToolView";class l extends e.ButtonTool{constructor(o){super(o),this.button_view=s,this.do=new i.Signal0(this,"do")}}n.ActionTool=l,l.__name__="ActionTool"},n”, ” function _(o,e,t){Object.defineProperty(t,"__esModule",{value:!0});const i=o(1),l=o(276),s=i.__importStar(o(19)),n=o(278);class _ extends l.ActionToolView{doit(){window.open(this.model.redirect)}}t.HelpToolView=_,_.__name__="HelpToolView";class r extends l.ActionTool{constructor(o){super(o),this.tool_name="Help",this.icon=n.bk_tool_icon_help}static init_HelpTool(){this.prototype.default_view=_,this.define({help_tooltip:[s.String,"Click the question mark to learn more about Bokeh plot tools."],redirect:[s.String,"https://docs.bokeh.org/en/latest/docs/user_guide/tools.html"]}),this.register_alias("help",()=>new r)}get tooltip(){return this.help_tooltip}}t.HelpTool=r,r.__name__="HelpTool",r.init_HelpTool()},n”, ” function _(A,g,o){Object.defineProperty(o,"__esModule",{value:!0});const C=A(1);A(67),C.__importStar(A(66)).styles.append(‘.bk-root .bk-tool-icon-box-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg0kduFrowAAAIdJREFUWMPtVtEKwCAI9KL//4e9DPZ3+wP3KgOjNZouFYI4C8q7s7DtB1lGIeMoRMRinCLXg/ML3EcFqpjjloOyZxRntxpwQ8HsgHYARKFAtSFrCg3TCdMFCE1BuuALEXJLjC4qENsFVXCESZw38/kWLOkC/K4PcOc/Hj03WkoDT3EaWW9egQul6CUbq90JTwAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-box-zoom {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg82t254aQAAAkBJREFUWMPN11+E1FEUB/DPTFn2qaeIpcSwr5NlUyJiKWVXWUqvlUh/iE3RY9mUekkPPURtLKNRrFJEeuphGfUUaVliiX1aVjGs6aG7+XX9ZnZ+d2fTl2vmnHvPPfeee/79Sk+may2/UQq/q7Qu+bAJoxjHIKqB/wlfUMcMVqI9bLZ+DGIKwzlzQ2GcxCx2xwvKOUKlaHTiX8bHNspjDONHkOmJBW5jIof/FvPh/06MZOb6cRc7cGn1AKUE5cdzlM/gAr5F/O24H3xkFRfxAbVygvK+cIsspjGWo1zgjeFpxL+BvnLw7laBA4xjIFJwrgu52DoVjKdY4HBEX8dSF3JLYe1fe6UcYCii3xWQjdfuSTnAtoheKCC7GNED5Zx4L4qt61jbTLHA94geKSC7P7ZeShQ0Inoi1IJuEOeORooFXkV0FZNdZs5qvFfKAeqYy7nZ6yg//HG0MBfffh71lFrQDCW2EvEP4mt4okZUDftz9rmGZkotmMxJRtlisy+MTniAWrty3AlXw0hFM2TD89l+oNsoOJXjbIs4EpqNtTCLXbiZ0g+M4mFObj8U3vsNjoZCVcmk60ZwthpepLZkB/AsivWfOJZxtpUQHfWib7KWDwzjeegBZJSdKFiE2qJTFFTwElsi/unQ/awXrU4WGMD7nOJxBY/1EO2iYConq93CHT1GOwucjdqnRyFz+VcHmMNefMY9nNkA3SWUOoXhQviSWQ4huLIRFlirFixnQq/XaKXUgg2xQNGv4V7x/RcW+AXPB3h7H1PaiQAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-zoom-in {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsUBmL8iQAAA2JJREFUWMO9l12IlFUYx3//MzPrLpSjkm5oN4FFIWVEl66IQlFYwtLOzozsjHdGRSCRF0sfBEXRVV0FQuQiLm5CZNBFgRRaRLVFhbJ2EdiN5gbK7toObTPn6eYdPTvNzPvOBz5Xh/ec5/n/n89zXtEHmZqeSXSuXBz/3zfdKvBWJHQrwZuRcP0El+QkbQXeBX6WZEgm6TtJk5lM5o4Lc+cV6qpf4Ga20Tm338zeATItVK9Ker6yvPzp4NDQ3+XieGsCU9MzTYumGbhz7m4ze9/MHgvBgItACrgfGAj2jgAvAYs3wlEujjc13kii8YyZrXXOfWhmo9GnFUlvOOemarVapVqtkslksmb2KjARqL62ecuWN9NxbRInzrldAXhV0uFSIfdew7G/gNLU9MwS8CwSmE3Oz88fcXG5blfpqVRq0Ix8VIAAX0XgrVL7HDCHGcCaWrV60LUBN8Dae58aQIxEqcA592I9M610JL0cpG/U9TIHJNKY3RV5z0R+7Nd4HZ0P1g/2RMBuegLAsRMnb4vT8d5vqKfMzOgtAlADrkmqGywmiMBTwfr3dC9j1Xv/r6Tvg/5/5ejxE6cO7M9faVbQZrYNOFSPmqQvVo9FKexvi5uWX58943aM7DwAfBDY+FbSCxP5sdkGx55GeguzrUEXPaSo2pFkAbiSZQCAzZJOmdkjwd6SpB/M7KykQTPbA2wDhoIzRzcNDx9MJwGNIXdJ0mEzmwbujL7dbma7gd03A7lKfnTOvf74nl0r6bonTUbujRSUCrm2d4L3/kvn3JPe+8+BDW2i9o+kT7z3kxP5sYsA6W47oE64TsR7P9tQL4vA2mh9WdIscKxUyJ0M7aR7acOGzikD65EQLEjaa2ZXzMwDFeB6qZBbbLTRE4EGeSaozNOZgYFf8qP7lmIvs354n0qlHpB0T7B9Ogl4IgJJrmjv/SiQjbrkD+BMUkfSbYATPdckrTOzkciWAXOlQu5cYgLdPEIapud9wMOR9zVJH3ViKx333mtHMJvNuoWFhZ3A+ojMcja77njXBEKwJJfTcqUyCIQ34Mf7nnh0paMnXacFuGoC1mr3AtuDfLzd8Zuyl+rfuGn4HLAD+Az4qZQf+61TAj0Noj8vX6oC35SL43u7teG6rf5+iXppwW7/JUL5D03qaFRvvUe+AAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-zoom-out {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsHgty9VwAAA0FJREFUWMO9l09oXFUUxn/fmXlpItppi22k7UJBRSlVkCytSAuKUloIdjKT0El3FXVXdVFKRVAQV7qQohsNwdA0UFvBhYtqUVyIVlRaogtFQVq7qSTVjA3z3nHzBq/jvPmTN/Ss7rv3nvN99/y794kByMzcfE/7picn/jenmwWeRUI3E7wdCRskuCSTdDfwBvCtJEdySV9KOhpF0e0/LF5SqKtBgbv7ZjObcvfXgShD9Zqk5+orKx8Oj4z8NT05kU1gZm6+bdK0Azezu9z9hLs/HoIBvwAF4H5gKFh7B3gBWFY3460kWve4+3oze9fdx9OpVUmvmNlMHMf1RqNBFEUldz8OHAxUX9q6bduryut+Sfvc/Wz62ZD0fK1afjND9y3gGSRwv1GMojstTxUUCoVhdyopEYDzKXjWwZ4FFnEHWBc3Goet00m7lZlZYQixKw0FZnakGZksHUnHgvCN5/KARBH37enpOVg58H13HV0Kxg/kIuD/ngSA2ZMLt3bTSZJkUzNk7k4+D0AM/CGpaXCyBw/sC8Y/qZd2GpZiuL9YLN4Sx/HpoP5/c/exQ1OVq+1yyt13SLoArEsJnMjlgfOffvK3u58Kprab2QezJxfG2iTzUzI70wRPG9jbmpmb95SNB9mpzp7/j2yVdNbdx4K565K+cvfPJQ27+x5gBzAS7Hlvy+jo4WIvoC3kWpcvS3rR3eeAO9K529x9N7C7zX6AC2b28hN7Hl1Vt44niVq13LUjmtlYkiQfA5s6eO+GpDNJkhw9NFX5ueNt2ARodyF1IHIN2JiOl4H16fiKpK+B2Vq1vBAqFAf4IJkGNiIhWJK0192vunsC1IE/a9XycquNXARa5OnApeeioaHvKuP7r3dTGsiLqFAo7JR0T7B8rhfwXARa2us4UEqr5Ffgs151i/08oTNKdIO770ptObBYq5Yv5ibQq/sl3Qc8lJ4+lnSqH1vFfp9koZRKJVtaWnqkWXqSVkqlDe+vmUDWpZMlK/X6MBDegKf3P/nYaj8ErN9fqZBYEsf3Ag8G8Xit33BaniTcvGX0IvAw8BHwTa1y4Md+CeRqRL9fudwAvpienNi7Vhu21uwflOT+L+i1X2TJP57iUvUFtHWsAAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-help {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABltpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPHRpZmY6Q29tcHJlc3Npb24+NTwvdGlmZjpDb21wcmVzc2lvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDNDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMTIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDMjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOnN1YmplY3Q+CiAgICAgICAgICAgIDxyZGY6U2VxLz4KICAgICAgICAgPC9kYzpzdWJqZWN0PgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxNjoxMToyOCAxMToxMTo4MjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+UGl4ZWxtYXRvciAzLjY8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cphjt2AAAAT7SURBVFgJxRdbaFxFdGb2bhui227BWrsVKYgf2kJUbP9EUPuzEB803WTXJjH61Q/7Ya1+CMYKEVTsh4J/EpvY7BoabUiNiA8s1p+4KIhpoUUEselHqyS76TbZ3HuP58ydc3d2u4+IkQxczpz3mZkzZ86VYpXjvenpjZsLhUcliE4AuUuASAgptmt1EFdwPiclzIIUUwubNn17OJlcXo1p2UpodHRiux9xB1Eug1+slbzhFxGOKc851tu7/0oznYYBDA8Pt0U2tL8KQryIq2tvZqQhD0QJHRz3yqWhgYGBpXpydQMwqz6NCnurleCSADkJEfgKfOePqL80R/wV1ZaQyr1LenKfkPCkEPKeaj0xg7vxVL3duCmA0Vyuw/fl52hgBxsBED+h4Cv9z3R/zbRm8MTJTx7HQN7GQB6w5C4L4SX7M5lfLBpurjXMyvNIShiyi0l1pL8n9b7EDGPR8fHxzSsQ6XDB3618/xqo6Pk25V5MpVJllgHM1BO58RdQ612kOYZ+GXdij70TYQB05mpj+1kU5G2fB+l3PZtOf8NGx6ambnMXb3yAxg8wjSEG6OKKR9oicBQD+ZvpH2Wzj0lQpxCPG9qMv1x6hHNCsSAlHM7ZOa682vlI9tRDbvHGbD3nZAPpDoD/3JIrLpAs26UFkC3EMUA99hpfGtEBfJjNJnS2Gwnadnvl+Xw+iuc3DAJuNyIaSCHpilVldyDjjUxj3WDZIAhxhHHyRcdNuA7AAfUaXzVKODpzFiZ4/uLvh5G+m2no+C/pyIf7MqlEJB7bpqR6nXkEUfbeawuLaZsW2ISfNQ2vtaktQlGFQyIVGT0o2+2EC4iQNGwjBIN9qdQ5Qg4mk4X4rW3vCClLtowE2FOFUxKDfNmiZci3ovKKRFPh4FK9q4Zbdr+lKKJiA13TcHR2dmLBgdmQ0GAS2MZaEowY+XbAk09IvgtYZGp16SyvFhaHcIUh645t8T9DBCcnz5zZ4hZLu3DzK2QlL1QQa0Y+pHiJKPSuOGj3PmZTheM5w2TwqBxnvBZOTk7G5gvXJ5Aelms8wnJURL+olSWcfEhf6gDoUXPMq6ZlqbzWU2pE+3hi4s6F68tfIj9cBMlikr7Z0/P0b/X0yIcUXsDCF1WhtL4OROHaXk+xlkbV0Cu732Nmhc4peaWSg73pA8dq5RkvO37ldUTfXCKZv2q45MkhvG87WQEzpCCUSvV1d9GONBy3lMvgKSwrZig8gjAietWY0QriylO2jIo4yVbOSb7KB/qmI9BPKjHpSSXYauRyn92Nq9/Kcrj13x3s3v8D481glQ/0raiNYgX9njPSBOImbrHZePl+tfFmc9sH+Xaoh8NjOKSVdDMhjjYzQLy+dFceH5+IJQf9VYXX4tROg4ZFU8m31M3mfPEqUoJqCGJfvWpo2xnNfdrhC28n06SCeSzNZxlvBINGRXCtKS7EY1uV6V7HWAm38y1cXaXsMcOCvr9ySPj+af7A1U2HJXHzVNvUXVLIGyPf+jV0pf8GHoN+TLAyPkidTCi2RpPApmnR0Bd1zGRaB/B8Oj2HSw7LLbVR1MmskW8RdEWVXSJf3JbpAMgRtc4IZoxTh9qotQjCasm46M0YX9pV1VmbpvRH5OwwgdRtSg2vKaAz/1dNKVtb17Y8DCL4HVufHxMOYl1/zTgIgiYvBnFKfaNp3YjTdPz3n9Na8//X7/k/O1tdwopcZlcAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-hover {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4oVHp0SwAAAQJJREFUWMPtlsENgzAMRb8RQ5VJItFDOgaZAMaAA0iZpN3KPZSoEEHSQBCViI/G8pfNt/KAFFcPshPdoAGgZkYVVYjQAFCyFLN8tlAbXRwAxp61nc9XCkGERpZCxRDvBl0zoxp7K98GAACxxH29srNNmPsK2l7zHoHHXZDr+/9vwDfB3kgeSB5IHkgeOH0DmesJjSXi6pUvkYt5u9teVy6aWREDM0D0BRvmGRV5N6DsQkMzI64FidtI5t3AOKWaFhuioY8dlYf9TO1PREUh/9HVeAqzIThHgWZ6MuNmC1jiL1mK4pAzlKUojEmNsxcmL0J60tazWjLZFpClPbd9BMJfL95145YajN5RHQAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-crosshair {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADEUlEQVRYR81XXVIaQRCeHqug8CXmBNETaE4gniDwIgpVspxAbxC9ATkBkCpQ8gKeQDiB5AQxNyAvUlrldr7eHxyGXZi1rMJ5opbp7m++7un+htSGF204vsoMoNXrlzSpfWa1oxQfhAegCZGaEtPorHo8znIoJwCt6+td8uk7ApUQCIHTF4BNAWzImq8ap6cP68CsBdDp9i9ZqXM7ML79g/EnCWD+jgMKENKqWT+tXK0CkQqgNRjs0OxpQIqKhoMxaG6/6JeRnK7T6yO2UvVqhYSlLX+ryORfgKn9ORDFIy7ky41yGcwsr0QAQfDH5zucOswx819fs4egI9OFCcD8DjBF7VNbEX0JzdWEt3NHSSASAcCxBDqMgt/623kvyTgNgNjJIfTjk4D4FqaJR1715MjmYAmA5Bx3AwUXQL+t105KaTlcBSC26XRvhjEIoLiq1yqXpr8FAGG16/ug4IT27fxBWu7EiQuAiImJpEMKE6nYM30uAIDDttSUOPfJP7JzbjPhAiBIh9QE67vIvoOi9WJfCwDavf40ulpjbCqmUf+W753ezURuh7Dg1SqflwAEHU6pgfyBq9Y4qx0LG++2fnZ/eUzcstmdM2AWH+jfc+liWdBJfSENf8Lifi3GVwC9mybOfi5dzatWVrbbLIHNva8p5h/16gkaFiLGGxbufkoE6XguwePiXLF3XmMfCUCUAqtKXU7sumd1CowOuJEi3Pg1FBpjitIGhyvVSfvmjci6ZR+rFQfDiPVE2jFYeICQ+PoewwjC5h7CZld6DBdyu6nDSKgzOyIMhmhK5TTqXYbRorZYM46TmpKAAOrGWwSJJekSB1yqJNOzp1Gs7YJ0EDeySDIMtJbQHh6Kf/uFfNFZkolJICRmz0P8DKWZuIG2g1hpok+Mk0Qphs0h9lzMtWRoNvYLuVImUWrmPJDlBKeRBDfATGOpHkhw670QSHWGLLckmF1PTsMlYqMJpyUbiO0weiMMceqLVTcotnMCYAYJJbcuQrVgZFP0NOOJYpr62pf3AmrHfWUG4O7abefGAfwH7EXSMJafOlYAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-lasso-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgwlGP1qdAAABMBJREFUWMO9V1uIVVUY/r61z57ZMx4DnbzgkbQXL5iCJphlWdpIGY4jpFBkEiU9ZNaDRRcITcIwMwgxoQtU2IMXdAZfMjFvpERXYiSbysyBEXFmyuHMnLP32uvrwT2xnY5nxvHQ93Jg7fWv71/r//7L4a59TRgqJk+Z6v3a+sv0OI5nk5wu6VaSVZImAThHsgjgrKTvM5nMUWvtmf5n8HodCIKgOgzDhc65pSTrJQWDsSNpJX1ljHnDOfdT37oZLLHv+8OMMasKhcIJ59xHAJYMlhwAJGUAzJfUTHLFuFzOG5QDU6dNMyQfs9Yedc5tBpAD4IYYNQGoBrDtQnt7/b0LFrJsCHzfn2itfQfAnZLiazytA3AaQAuAiwDaEgeNpGkkswAWSBqRONB38b88z5uTKePt6iiKXkk8jq+iJC5LOmiMaTLGHLPWhmWeHr7vV0dRtATAapAzIVmSo51zyzIlbm2stesFPA6pKk0r6Ryg93y/ek8YFvPOOTg3cDSiKCoC2OP7/rEoirYm4rUkF12lAWNM1lr7lqQn0+QA8gI2jBg5cj6Aj8OwmB+KAKIoukhyp6SRJAUgl0ndPLDWPi9pJQCbuviXvu+/GIZhW1dnJ24UJFuTjCCA2ADA8sYGWmsXS3qmL94kDYAtkh4Nw7ANlQJ5U6INT1KrAYC9zQdykl7nFSj5fXp5Y8NWVBhy7mUAjqShMYdMXV2dJ2klyRwAJ8lIeuGWCRMP7N7frEqSG2OmAFhKshNAp5wrmO7u7jEAngPQm1S2z2pqapr+OPt7XEly0oxwzq2RdFmSD2AMgKKJouhhAL4kA+Cs53l7e3t7uytJHgRBreTWkXwkKVJnJD0B4GAGwIJE9R6AFufc6UqSZ7PZbD6ff5dkA4CQZEHSqwAOISmXtwGIE+F1SeqqIP8d+Xz+C0mLJYWSAODteXffczjdDQNJ0BWMCoLg5gqIbRTJNwHsljQhUb0luWPM2LE7Thw/9m/5NCT/TByxAOYWi8X6/gdWV1dnfN8fNRBxJpMZTXKdc+6IpFVJWAEgkvSJpA0X2tvtVTaSjgOYBCAEEADYSHK87/sfhmEYA9gShuEDkgzJHyWtB/B1irQ2juP7ADxkrX0wOUOpzmdpzEY590HJ7Ni1r2kSyZOSiv2+hSRjSTXp/QAukzySNJOJkmalyNIl10hqMcasdc61XDNcQRD8BnITgNp+36r6kfcNFMMlLQGwTNLMEuQGQBfJl2bdPru+HDkAZAqFQux53jZHEsC6aw0eg2gylNRBcqcx5v04ji999+03AwsWAOI4Lsy9a94WkisAnE5a5WCJYwCfA1g7LJudI2lTHMeXBm1faiQzxkyRtF3S5CTupeAB+KG2tnZFT0/P30NO2VKLzrmfAbwGMipjG5Oc0dPTc0Md05SZ5U4Q2FxChErtEYD7jTGNQ3UgM8Asv90Yc9I5LSKRlXSI5CxJa0jWSALJjKRnAewfkniT+vwf7N7fXHK9rq7O7+jo+BTA/NRrdBpjnnLOnUrvXd7YMPQXSBunneno6IhIHgYwW1JtkgmBpBkATlVMAwOk3nFJ+VSoqgCMr6gIy2FcLtdKspAedyQN/98caDt/3kpyabUmf8WvG/8A1vODTBVE/0MAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-pan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4lKssI9gAAAOtJREFUWMPVll0KwyAMgNPgoc0JzDX2Mtgp3csKErSamGabIEUo/T6bHz0ezxdsjPJ5kvUDaROem7VJAp3gufkbtwtI+JYEOsHNEugIN0mgM1wtsVoF1MnyKtZHZBW4DVxoMh6jaAW0MTfnBAbALyUwCD6UwEB4VyJN4FXx4aqUAACgFLjzrsRP9AECAP4Cm88QtJeJrGivdeNdPpko+j1H7XzUB+6WYHmo4eDk4wj41XFMEfBZGXpK0F/eB+QhVcXslVo7i6eANjF5NYSojCN7wi05MJNgbfKiMaPZA75TBVKCrWWbnGrb3DPePZ9Bcbe/QecAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-xpan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4X4hxZdgAAAMpJREFUWMPtlsEKwjAMhr/pwOOedINJe/PobWXCfAIvgo/nA4heOiilZQqN2yE5lpD/I38SWt3uD9aMHSuHAiiAAmwaYCqoM/0KMABtQYDW11wEaHyiEei28bWb8LGOkk5C4iEEgE11YBQWDyHGuAMD0CeS30IQPfACbC3o+Vd2bOIOWMCtoO1mC+ap3CfmoCokFs/SZd6E0ILjnzrhvFbyEJ2FIZzXyB6iZ3AkjITn8WOdSbbAoaD4NSW+tIZdQYBOPyQKoAAKkIsPv0se4A/1UC0AAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-ypan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4anK0lywAAAMVJREFUWMPtlzEKwzAMRX/S7rlpIMXeOnaLaME36FLo8XqCdNFghGljyc4kgQi2Q/SUj0F/eL7eMMTKz6j9wNlYPGRrFcSoLH4XxQPvdQeYuPOlcLbw2dRTgqvoXEaolWM0aP4LYm0NkHYWzyFSSwlmzjw2sR6OvAXNwgEcwAEcwAEcwAEcoGYk20SiMCHlmVoCzACoojEqjHBmCeJOCOo1lgPA7Q8E8TvdjMmHuzsV3NFD4w+1t+Ai/gTx3qHuOFqdMQB8ASMwJX0IEHOeAAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-range {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABCJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjMyPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4zMjwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxkYzpzdWJqZWN0PgogICAgICAgICAgICA8cmRmOkJhZy8+CiAgICAgICAgIDwvZGM6c3ViamVjdD4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDQtMjhUMTQ6MDQ6NDk8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPlBpeGVsbWF0b3IgMy43PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrsrWBhAAAD60lEQVRYCcVWv2scRxSemZ097SHbSeWkcYwwclDhzr1Q5T6QE1LghP6BGNIYJGRWNlaZItiFK1mr+JAu4HQu0kjpU8sgF3ITAsaFg0hOvt2Zyfvmdsa7a610Unx44Zgf773vvfneezPHNzrbhn3CT3xC3wPXYOC8LDzqdi8YY/gwh4BeknS/2th6dr2kf94AOp3OFyWgMyziOPbMDxV9FTtJnl1ut795Xd0/YQ0/vtYQwMT1KXWCfr2IjOWwtNehwN4xL9ykTrm6Pzl58yLn3J+mKh9mXbT3uRjGEDph+O8/TjfP5dBp7Ha7AX7O3o5nZeD/0E/OGyXntDgzA0X6qmCnrVutVlrUWV9f/3xo+pwhGDhvEPHOjoxnZjJggXmMHzBQ7NGNp9vxk61fr0HR7e/u7pZzCGHlc7qwBYYTT7tJYSx1AQzppyFPft5apta9w7SKcn0b7P7+/jCsDQ5mbc0dCmIJGDN0ehdcjsmkm6A6KUeKFOTE11PLxrC7Ukqh3ylL2fT0NAP9q6ur6rRCJJYsbKB0JsbCKMuy+xREePDyxQPCz+Crlw062QcA5wBOOt1l6vIl2WiI9F1fN6Q+BBqit6hEC4Hk08GQJMn4myjSP7RavVxgdaVUh/3U6HCMsPr9pYnJKRziHtWQ+un58+hGs6nsjQSjpuTyKGN3CX+FBwHXSiEVgjP+O8X6N12kIePES+GzTKAkGbNp8yJsGUMVzz8jPKReiyAQRimy5/cjye5RpF8utFp/+nwmT7d/NMzcFkS7yjJNGDaPURQxIQThEQy0SyF4l5WJYYhBa816vZ6dU7A6CAhbZVow/pDe0O9hVOoCi13r4BgBAvJHqMSQL2vE/iH6IAXEwgrRVUmBoRRwnwJQT98xEeVeSUyB4dJ5nwJBKdCFFGRmUCcu7rwIYypCTblaChuNBhWODrman5ub+4v0rMNBt8z6Ezh7GksJQpCbm79cMQE7QBFm/X6f0rjWnv8WRYg/QdbUpwDAEBy8vPyA8rNGzg3a8MiElwiM7dAtRqNoNptjGPM1laVxP9umWEMGLOKhKUOJDtBwDmzsw9fC/CzHr9SGuCTi2LbbKvVtmqXpCjMihBFa79Wrt5fGx9PDzc3fmu32Lf8qFliwU9emKhBSp+kRKn/hu9k1COEDbFdt/BoKWOAkuEbdVYyoIXv8+I/QK9dMHEb1Knb7MHOv8LFFOsjzCVHWOD7Ltn+MXCRF4729vWMDK+p8rLkvwjLg4N4v741m5YuwCI9CvHp1Ha8gFdBoPnQAkGsYYGxxcfEI7QQlFCTGUXwjAz4tWF+EpymOWu7fglE7qsOvrYE6g4+9/x/vhRbMdLOCFgAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-polygon-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjc1OfiVKAAAAe1JREFUWMPt1r9rU1EUB/DPK0XbqphFHETo4OCiFhwF0V1KHbRSROLqon+AUMVRRFBwEbRFMBiV+mMW/wIxi5OD1kERRVKRJHUwLvfBTZrU5OWBGXLgQu7Jfe98z/ec7z0vKa88b2q1BDtRHdAPBaylm1NzsxsOjPnPNt6WSWprbft+/c3I3zOAjhT1Y4+fvcjEQJIXnVECSa+AhqIHqlHH5lWCZoe+Gk4GRgDG86j9SAUdlDBSQaZhlOkuHyoVdJmsw98D1S5fM4NYM1LCpqM+Lwa240oLgmZzpVZvzKT75VLZcqksSZKWlQeAy/iORVwIvh31xvotvK7VG3Px4aWHj3Jl4C2uYSvq+Bn8v6LLbaVWb9zsBiKLCvbiNG7gLm7jAYqbPHMJMziZ9lsKoh8GtqCEVVzHftwJn+TFHp4/hg8BSCYVfMOZoPEv2NZGdy9WCGUr9toDR3E2/H4V6nwRe/BmgN65H1ZhvMuB3XiKIyFoGefwO6ysVkUlrNUNsyAK/jli533Q+Y8cJFvAeXyMS1CI/jiMr/gUtD2LQwMGr4R3p7bY3oQHQ5b38CT4D2AXXg6YcQXHpyYnlqKsi5iOAVSwL9zd7zJ09r+Cpwq72omFMazjT9Dnibym0dTkRDUKrrgwH7MwXVyYB38BstaGDfLUTsgAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-redo {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4itK+dVQAAAaFJREFUWMPt1L1rFFEUBfDfJDaBBSslIFjbaSFp1FJQFMVCHkzhKIqdUYOCoBgErVz8rCwiTDMwBCIKipDWyip/gxAIWAmBgBC0eYFh2Gx2l9lFcA5M8e59782Zc84dWrT435Hs1siLchqn43MS0zgW22vYxjesYjVLw3YjBPKinMUTBOwf8J5fKLGYpWFjJAJ5Uc7gIW6jM6Kim3iNZ1katgYmEL/6I+YasvY7Lg6iRpIX5VF8wuEe/XV8wGf8jN6LWTiAc7iEQ7ucPZ+lYW0vAtfwvlbfwCKW9gpXDOv1mJvZHiSO91MiyYsyiQSuxtpXXM7SsDmM5nlRdrCMMz3sOJWl4Xevc/vwBzdwAl+yNNwZxfRI+GxelK9ikHcwh8d4NNR/YFRES1ZwoTYdR7I0rNf3TzVNIGbmSvR/Bx08mIgCFSVu4l2ltIWD9WxNGR+W8KOynqnZ0rwCeVG+wa0hjrxtWoF5dAfc28V8Mib/n+Nev5dnabg/zgw87aNEN/bHOwVRiRe4Wym9zNKwMKkpgIWKEt24njxiJlq0aPFv4i9ZWXMSPPhE/QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-reset {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4gWqH8eQAABLdJREFUWMPtlktsVGUUx3/nfvfOlLQaY2IiRRMQIRpI0PjamJhoVASDvNpCpYw1vJQYSVwZwIVQF6wwRHmkAUof9ElrI6VqDAXcID4TF0IiYQMkSlTokNCZ+b7jove2t+NMH7rQBWd3v+989/zP+Z8X3Jb/WGQySvUNTQBJESkNguAVYIWqzhaRhwBU9WcR+QXoymazn6jqzUQiMQSQzWZRVdal1vwzAI2tHQBPOuc2AbWTdOyQ53n7nHNfRwee51GzqoIQMCLDpr3x/tLQ0oZzrk5Vj0/BOEBt+KYuOlBVGlrahr0Wob27t3gEjnZ2AyQzmUwHsDgP6J/AYRE553neDwDOuUdU9QngNeCumK4TkRMhZUORcYC1qysLA6iuSQHIwkWLD6lqapQsuSmwTVV3h99I7EcAR462A2xR2Ilq6ehTaejvO1774kuLNALR33eclsaGsQDe3fYegHl43vyNwEeqGl1963mm2jl7YZRTQ82qlWP4HM6ZToC5ztkW4LHQoALru7s6Di5dvlIj/e6ujrEAWoZDn8hmMjXATMACGaAVuBjXTVVXFc/AxhaA+4zvn1DV+eHxVWPMAmvtb5GeMWZyZVhI2rt7qVy2pOh9U1snwIPW2vMi4oWJuBPYHkVAVScPoKmtkzVVK6cEMsyJraHhiCqJqJUwj/JRz7TW1iSSyR2rVyylqa0Ta+24Ic8vXaAEmDFc/l5Z2A/80OibuVyuz/f9ElUdHCmvw82t5HK5h6y1PYhsz2YyGw43t2KtBZHIGwB6+j4rCkBVUdV7gXrggnPuu8h4eP+xMeZS2D0rJYZ6AdAMzAt1b4nI26p6IFZOY8pugijcKSIHVLUK0LyST4vnrVfnWr3mjmP4QTATaERkXkypRFX3isjmuHdRJEK6Ckqquopp06bdKCkp2Sgi7XnGLcg7gzeutwNIiPYc8HixqIrIOlU9ONVIhHPEd851icgSVXUiskVV94gIqoonIt0i8gfQCfwae38e6BWRXuBZz5jZ8VbaOE4EIqlZVUEQBLlkMplS1QER2RwkEnsSyaREDUzyeNsvIhvCMqkH1kdIJ2o+k8iJB1LVVRfjZ6nqqlEAIbdVQGto8Lrv+/dbawcjAL7vc+6bs+zetetfLSHxniIFGofGGsU2oC7eOCbDfZ7nQawBOSAX74SF9oEPImOq+r7nmVmxb5raukZa8UReGmNmhbMkAwwBH467EYVZe49z7kdgenj8k7V2oTHm8kgdWcvrNdVFjR8cHkYzjDH9wLjDaEwEzpwa4MypgWvAjtjxfGNMj4jMiT+M+kFsZI/Q6Pv+HGNMT8w4wI7TAyevxXVPD5z8+zD64tRXAMHVK1eaVLUyVvuDqroV2BOnJF4ZIedviUidqt4Re9s+vbx8zZXLl7PR2+nl5Tz/zNOFp2FzxzGAklw22wUsLLaSKXwf8vhosZUM6PeDYEUum70VHfpBwKsVyyfeikOP6oBNwN1TrLbfgX3A1kKLzKeff8nLLzw38T5wZDgxn1LnNk5lLRfP26/OnR2hwfNYW2Atn9RCsrf+EECyrKysDFimqhXhyjY3VLkAXBKRDqA7nU6nS0tLhyIj6XSaN9bVclv+l/IXAmkwvZc+jNUAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-save {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4UexUIzAAAAIRJREFUWMNjXLhs5X+GAQRMDAMMWJDYjGhyf7CoIQf8x2H+f0KGM9M7BBio5FNcITo408CoA0YdQM1cwEhtB/ylgqMkCJmFLwrOQguj/xTg50hmkeyARAYGhlNUCIXjDAwM0eREwTUGBgbz0Ww46oBRB4w6YNQBow4YdcCIahP+H5EhAAAH2R8hH3Rg0QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-tap-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCOTJBQzE0RDQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCOTJBQzE0QzQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTQ0QzIwMUM1RjIxNjgxMUE3QkFFMzhGRjc2NTI3MjgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6eYZ88AAADLklEQVR42rSXf2TUYRzHv7tuGcfE6Vwb5zLSSjEj7Y9KWqfEmFZJP+yPMdKKmUrrn0iUfjhWlLFi6YfNrF+StBoTo39iYkTGco4xxxG59P7k/T2PT8/37nu3bx9ezvPj+zyf5/PreS78bGLS8SmrwE6yje3NHJsDBTALpknBz6JhH3NiYAB0gHqPOVv52wJ6QQ48BzdAttTioRJjdeA8mAHHS2xuk3p+M8M16ipVQE49Ds6CiFO9RLjGONf05QLx6wPQaBlbBlPgJVgkP0ETiIJ2sB/E1XfimjfgBOOlKDUqCGOcqBcQnw6BYW5YTo4wbvQhMmCfGRemC2rBiGXzWUb+kM/NRZ6CHWBM9ce5R61NgX6ayhSJ5EPlItlDRNkz4JbFHf06BkSzHjXxM+gDv1S/mPUo2AXWgt9UUHL/IVhS8yUV1/EbV3o4N+NaoE9Fu/i827K5pNYHnqAVJECShWmAaddpscYFFXwR7vnXBRGlnUN/L6kqKJlxnRUuDbaDBiL+vst5d4gpcpBrqk/2jIgCKVUolhntplzivHmwh4stGOPfwBWwl/2dpp8p7xjQZqFLiQJtauKkivYm+kzccpK57yXfOUe+P23JqAnVbhMFmlXntCWnxbT31am9ZJ4BJifsUmNTqt0cYhA5ypympPg7VkEKunPbVb8cIG+0kyHLJZNR7fUMooUKFHAPkfQo58VLK+RzwRDd4FdWG9mjpaAXzqkJa1R7kQttqEABWXMjOOxxVRfnhRm5URX1prk/0pQHwNcKlchZ+jdpC+hFdVqO0my9Hj5dkYgCn1Rfh/KdlNDHrJhPqlDih+IfBd6qwpOgEqYMsorJ2HtWxtagLJDn/W3KRfPOZhoeBJfZPgVeGKeKrkQBh5dLXl25Ny3pc4/1fkTdbvFqFQgbxWeYD0hXulhQ0pYiM1jG547fcbMQpVnHTZEn9W3ljsCzwHxCdVteNHIZvQa7/7cC7nV6zHIfyFP9EXjFa7YxKAVqPP4bxhhoLWW+z9JyCb6M/MREg59/RlmmXbmneIybB+YC/ay+yrffqEddDzwGvKxxDmzhc0tc80XVgblqFfgjwAAPubcGjAOl1wAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-undo {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4em8Dh0gAAAatJREFUWMPt1rFrFFEQBvDfGhACASshkL/ALpWVrSAKEQV5sIULWlgZNSgIFkGIVQ412gkBt1lYLERREFJqJRaW1oHAoZUQsDqwecWy7N3tbe6C4H2wxc682Zn3zTfvLXPM8b8j6RqYF+UCzsfnHBawGt3fMcAX7GEvS8NgKgXkRbmMxwg41TLsN0psZmnodyogL8pFPMIdLHUk7hA7eJKl4U/rAuKu3+HslFr/FZezNPSTFslX8QErDe4DvMVH/Iq9F7VwGpdwZUjsPtaSFjv/1vCBPjaxO0xcNbHejLpZrrlvJCMCT+JzA+2fcC1Lw+GE4l3CG1yIptfjCtiKoqtiJ0vD3aM0Py/K57iIMxgkQxat4EdN7e9xdRzlk+LEEPvDWvIDXJ928sYxjL36icWK+VaWhlezOIqbGFirJd/H7szugrwoX+D2BDEvszSsT5OBdfRaru/F9dPXQF6U27g/KnmWhgctxqyzBrZGMNGL/rHI0nDkKXiKexXTsywNGx0OnFbFNk3BRoWJXnw//j+ivCi32/S8CxPVNiWOAdUiJtXITIqYY45/Cn8B2D97FYW2H+IAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-wheel-pan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgswOmEYWAAABddJREFUWMO9l09oXNcVxn/n3vc0fzRjj2RHyIZ6ERuy6CarxJtS0pQSCsXNpqGFWK5tTHAwyqIGN7VdEts1LV04BEoxdlJnUbfNogtDCYWQRZOSxtAUCoFiJY0pWJVUjeTKM9LMe+9+Xcyb8ZMychuofeHCffeee7/vnXvOuefYlV/+mv932//tb91z/Y2rvxmMHQ+4FcEfOIGN4A+UwDDwoQScc7vM7AIwB8yZ2QXn3K77Ab6OgJnVgeOSbkqaBiaACUnTkm4Cx3OZzwf+qzcRQup1zNZ9RwDe+0YI4YKZTUn6zCGSMLOfAF/03r+QZdnyfwO+ePEiI6N1nPMgMDMkETLRbd2mXG8gCbd9YiIKIUxLKoLfBN7I+80+CUlTIYTp7RMT0b3Af37p8kh5y9gZcy4Fzt+5szqSaxkzUR7dwtrKMmaGW242d0t6vrD/He/90865o865o977p4F3Ctp4frnZ3L0Z+OryUrVSrZ0z8ZxhHjhcq1XPrS43q/0flDlK9XpPA2ma7gMeyvfPx3H8TJZlH4YQWiGEVpZlH8Zx/Awwn8s8lKbpvmq1ahvB641SXNk6dhLskNA2MIBtwKHK1vGTW8bKMRbAMgyPqWeETxUM8VSSJAv52JmZA0iSZMHMThWwnipXKp8hsLLcSaIR92oU8xjSayCQXotiHotG3Ku3m+0EOQwPQCDggMf7BzQajSs5eAk4B5zLx4O1vD2eJMmAQKliscgASJMw21pansFs1swQ/DNLmUmTMNuXX+taXHTDaj5OW612R1JZ0nFJJ/J+XFJ5aWmpA6S5bHV8fHsPHFU6q3pJCjtFxtrKMuXRLUUXXxdrRLazFOtUolZlsGhmACsgnHPTwJnCnjP5HMBKLotzxsTE9rgDL0t6LoriKsDIaB31ZEK+JxQJRHFUBR2NqLw8OTkZR0OC0ntm9k1JWU7OA4vD/mZ+YfElsANmNEKi75vztzB5M8uAr+bx48me88g757PQ1U5zNg52YH7hX8l6f+4Fi3c3BqHNmkI4YQOV2MGCNu9qHPYCewfzbrC+XSGcWEcgTRKA3wFfyzdDz5d+D3x9CIcfA4eBbQS9LscskgfLnHNPAnslvS/pbZDHLLPADpx9N9fqpSIBH8cxWZY9m6bpb4Ev5fN/iKLo2TRNgdx/eo8Wk5O7Ts/N/SOSdMjHdj4kmgkIEJLJzPZKetvMTkIvFLsR25Ml2gfuF5M7vnA66sdooJYkCSGERe/9VAjhzRxoKk3Tvg3U8nulVqvx8cyNpER2umM+SdOkbc5B8JhpqBdIgTRR24h+lpKen731aRIN7thscH9Zlv0d2F8YD2TIX7F2uw3A7ZWV1a0TYz9ca8cJZHRbuRuaDfUCw9/qJHamPOKToAwHtHN6lMvlSkH2o7wDMDo6WuGuQbbn5+YAKNcb3J5fSvrhtTY+vsOPuD1IOyRhMOkj9kSx29HfXB5RUnS964NT2+3vbGbxG9auO2cDNuV6A8NTb5TitBuOpQkfYD2vwOxgmvBB2g3Hto5X42EJyVsFlztbKpXGNgqVSqUxSWcLU2+tdToa9hasLjfPYlwGa+bTi8Dl1dvNsyvNtQQL9MO2w+HM7BqwlAtPdrvdq9773WAVsIr3fne3270KTOYyS2Z2bbXdHhogKmPj7YWF+VOSXs/v/9KdO+0fVBrjbRkgB/KIDBnYu9f/7D+ZmfmRxPd6qwB8YmZXcq1MAQ/nJhTM+OnDe/a8+PGNG9lm19V/D1Qw7HXZlcRa69+U6w38l5/4ipxzf5X0CPBILjcGPJH34pVcc8692FxcXLlXRnTwwH7+9P4f8aWe3fY59LIqo1NMyQBCCHNmdgx4BegUWefjDvCKmR0LIcz9L8nokSNH+PRvH4HC3YQ098pSbevg24qlmZmNmtmjkg4D3+j/tZldkvQXSa3PW5ptlpL3ZaIN99OS9F7+IgKUgSyEkNyv2nHT7DZX0dr9rpjua2l2r4rogRAYVqZvnPsPqVnpEXjEaB4AAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-wheel-zoom {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgskILvMJQAABTtJREFUWMPdl1+MXVUVxn/fPvf2zrSFmUKnoBCUdjRoVaIxEpO2JhilMYBCtBQS2hejpg1Uo2NUrIFAoyGmtiE+GHwQGtvQJhqDmKYRBv+URFsFDNCSptH60DJTO3dKnX/33rM/H7rvsDu9M20fDMaVnGTvtb69z7fWXmvtc/TEzqd4OyXwNsv/FwFJQVI/sA14SZKRLOlPkr5TrVYXHz70quYkEEK4TtI2YAgYkrQthHDdhV5uuw+43/ZrwCbgRttgY/tjtrc0m83X3/f+D6ydnJhYcB4BSZcBA7aP2d4ELAGW2N5k+xgwkDB0IH19CGGH7R8B1aQeAf4KvAw0ku4K2zu7uru3ApdPEyiKohd4TNKjtjt5h6RHgccSNrddbvuHtm9Jqoak7xVF8WFgdavV+pSk5cCObNmXgK++85prCj3z28HKqZMnH7D9YAY4BvwujT8BvCuL1INX9vVt+dfwcCvNb7f9q2RuSfrGvWu/sL2Nf3LX7pzvj4ENSGBPVarVd4fRkZFltjdmoMGiKO4IIWwIIWwoiuIOYDDzeOPoyMiyFLkum7WJCMDztrcrTTrIRuAQZ6NcK1utL4dWq/VZoC8BhqvV6l1lWb4YYxyLMY6VZflitVq9CxhOmL60hhCKeYiV7WMKIXw9jT1HpXw3c+bOAKzOjJubzebJrKQCQLPZPClpc7bP6rMYKtjXth2OMf7tIkr11Wz8oQDc1Fb09vY+kQw1YAuwJY2nbUluAnCWpKkaFl6IQIzxivaR2SYA89sJVK/Xp2x32R6w/a30DNjuqtfrU0ArYecDCEqgLqm94T0dEm9mBG7PxkdDlkBnkhebgIezNQ8nHcCZPL9ijE1Jf/bZZoPtzbavmqNZLbf9tSxq+yoduuJ+SZ+zXSZyBXCqU+d8fvC5yRUrV+0G2j3g2hDCLyXd/+Su3QdnvP/zCuH72LWsgf2k0oHlH2c2odlkxcpVEdgr6aDtjyb8x20/J+mA7T9I6rL9SWA5dne2/GdXLl58qNJh398An85yTMA+4DOz8Dgu6Zu2dwJXJ91ltm8Gbp7Fgb+EEB4aHhpq5CEtACqVyr3AC0AlPS8k3TSmQ2YPhhBuS/1/LpmS9JTtNTHGfwBU2uUALARotVqniqJYH2Pck85pfavVaufAwnQvnHc0McaDKVptebN94QAnJB0EdtjekydyZXqjs/0ZgLIs/w6sy8bnYGYJ63pgERKC05JutT1kOwITwL9tvzlzUQUYB+Zjs2DBgu6xsbGJZHstByZbezregcBXeCsEz1bnzXt5anLyzLq71zDLxTRdVgemdx0fv2e2w5thO5DbiqL4oKT3ZKpnpyYnz+SY2ZpTAPZmJfdIrVZbNBNUq9UW2X4kU+2dcf53Aj1pj2PA7y/6m1DS00A9za9uNBq7iqJYBuoGdRdFsazRaOzKSqye1rTbaa/tlbYrqXQP2X4FIA9/J1l39xrC0v7+w5IeB8XkwS1lWe6TGJAYKMty31tfO4qSHl/a3384I3CDpI+kzC4lnRfrue6GytEjR8oQwlY73gC0L4qlth/q0M1/LYWtR48cKQF6enrC6dOnVwGLEpnxnp7en4+O1i/tszzGOCTpPmB7ahb57QUwBWyXdF+McWg6MScmuoA8OX8xOlpvXGz422XYTsB/SnpA0h7bX5R0WzI9HUL4qe2XbI+dk3xl+V7gxoztD5jRI+YK/zkEEokx2/uB/RdzIfUtueqVN04cXwF8G3iHY3z9Urw/j8ClyhsnjrcS2Vv/J/8NLxT+/zqBTkcxU/cfEkyEAu3kmjAAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-box-edit {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4QfHjM1QAAAGRJREFUWMNjXLhsJcNAAiaGAQYsDAwM/+lsJ+OgCwGsLqMB+D8o08CoA0YdMOqAUQewDFQdMBoFIyoN/B/U7YFRB7DQIc7xyo9GwbBMA4xDqhxgISH1klXbDYk0QOseEeOgDgEAIS0JQleje6IAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-freehand-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADTElEQVRYCeWWTWwMYRjH/88721X1lZJIGxJxcEE4OOiBgzjXWh8TJKR76kWacOBGxdEJIdk4VChZI/phidRBHMRRIr7DSUiaSCRFRM3u88gz+o7Z6bBTdjmYZPf9eJ55fv/5zzvvDPC/H9QsA66Olo9Ga+/MdR+Ljm2/KQIULsz9FqItGdOfJKLhApLgVkiSCGODjWit7QpKWy+TNrFeXvzKVUT8NiTVaIgDcbiCFJ7GiT8WkARXAdYBK0Lbhi/CenArRNskuM7/tgNp4ArQ42dwjf3WY5gWTqC7O/NbNn2Xkfw/YwdSw/We14HP2IEZwX+y9cZ9SH0LmgFP7UCz4KkENBNeV0Cz4b8U8DfgKiDxMWwUXETqLvJpCQpXZfawbzS7t9v5pL19cHBwfja7YA0y/lyCM0+E5hv5+piZXwKYcF23as+37bTXsQVqgkL0p/34fHR7DcBtbetFsBmGDwMOJCggYG55yw7dMlk6DuC1Bdu2RsCU9TYWQq2IoGbsreZ5NzvEqfSBsIsIy8OTbcdgiRHeh4o8AFAEwDakbY2AaCCpH7V9aGhoUUUy3UyVbkPYFuYLDlUZH8XBpwxkK0Dbgxg5HcVi0ent7a0RULMIozaHBSMfF9b2SzdutFcFB2FkwMIJOG6qfteXOa1nHZ48tyefuwyfT9s6wtzZ3t7eZse2DR2I228TtHXzuWCx9g8MtK5cuHCZTH4tiHEOa4xFngvTyS8f35d6enomiCi4/foEXBkZaQuukChL4FYA2Whd7YcC4gEdW3CpdL3LtGAVCVYJywEyTpAuJKeMOKXZs/Bw947C50KhUFOG4cwz35cjWNBlHGeD53n3xsfHP/T19U1qciggar8Fa4I3PHobIotBWBtc2hSiChyZxVzM53Pv7FVH6Tp3uVy+g0r1ImD2GjIrQGYIxjnfuXTZGICS5k/bBwJoubwEFX4TLah9EXomJGMA3za+f9913Yl4TnzsDQ+vE6YTZOjHh4ngibstt1pzQwd04F0bPStEBpXqRoBeQ/AKghfBnOEKgS+Q7z91Xfdz/HGKg8Ox7z8iYD9z6wqTkZFgnvhMGP9VZ2or1XVkPM9z0mytSfVsHa1RLBZbLoyNzUnK+ydz3wC6I9x+lwbngwAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-poly-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjglo9eZgwAAAc5JREFUWMPt1zFrU1EUB/DfS4OmVTGDIChCP4BgnQXRxVHqIJUupp9AB8VBQcRBQUXIB9DWQoMRiXZzcnQSA34A7aAuHSJKkgo2LvfBrU3aJnlYkBy4vHcP557zP/9z3r33JdXa647N0kHSZd5Nn0rSxc8G3cXp85sMcnZZ8vge3osZ+l3vB8CWFA0iL14t79h210swAjACMAIwAjACkB90D/8/GchI9ve4nPwTBh5E9ws7OepzGWb9EddSn51Op9ZstadSg4VK1UKlKkmSDSMLALewiuNh/hVJq71Wxttmqz0dG88vPc+MgWP4grvYG3SLOBrZFFFrttqPe4HIDxh4GSei+98iSlusuYopXEAjBtEPA3tQwUpwluAbDm4TPJUz+BTW9l2Ce6G7L0X/Bw8D3T/7SKKIDzHg7QCcxjvcQAEtXAnrrg/RP0/DKPbqgcN4iVOR7gcO4dcQgRuoh7HSqwlP4n20m63jJu5n8MkWMYfP3UowhzdR8FU8w9iQwevBdyq3/27CMRzAE5yLuvsRLg+ZcR1nJ8YL81HWJUzGAPaFZwe/Q5MdyYDyNHgjzO90YyGHtVDncuiJchaHw8R4oREFV5qdiVmYLM3OgD9k5209/atmIAAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-point-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEiERGWPELgAAA4RJREFUWMO1lr1uG1cQhb9ztdRSP7AF1QxgwKlcuZSqRC9gWUUUINWqTh5AnaFOnVPEteQmRuhCURqWsSqqc9IolREXdEvQBElxtdw7KURSFEVKu4w8wAKLxdw9Z+bMnRmZGXfZ29//II8th4WwGVNyIoQLYB5vxA9Caq04iUd9A+7ZlsNC2I7TdSd2hZXMJKlnTqp9jtl/GBaqoyQ0noFKpUIzBicYYc+DEFpxkglc4oVJa5gvDn8v1xV2irG3FM4NSVwjUKlUaMcpJhCGmSEJQ6QGD8M5WnHCd8+f3QCXpPLx8WNwv0j6Bm9FMK7FJ3WBE+R/2t7c/GBmFvSBrzRTCsyTDjXrxUgEMtpxynJYmJoBJ4VAybwVARgvL7Oik0okCodnKpVKX7P0leiVMb0VvbJT+upznK4vh0GIeQwwQStJkHQD3MwsCALTJRG7Qrdrj5m/djgYaIa0hlkRdJk26XEgC9txurccBtVW3IudBImmZuACUP+ZlIDBt9FKcubYNTcAH/X0RYM1E7utJPlqe+uZzPxUcEkiSS4sTT95n15Mud0xWC0o2PAWOCdK3KYZlFxfM+tHOcnMzNr1es18ug+cgsVjP4yBU/Ppfrter1m/+l0+zYygML1xRVHU7TSb1cSzBzoBzszsH+AMdJJ49jrNZjWKou6wBnwOzcyndBpNbuueURR1Dw8Pq35p9cc5p/Dy9Dypt7jXrtdGwQECS9NPhr6Gq6txUzNigE6zydLK6lTw12/KT4FGFEUfJX2YJNONq5tVs4ODA7sD/DnwJ/BoADZuE3tHFs12dna6d4C/BI6AlbyzI8ii2TTw12/KK33gb2cdXsNZoAntbZC2SeO4c9592k/5eNQbiwvFd1kJuFGwLJr1wSPg/SwpvyFBHufOeXcFeAlE97U/uCxOY+P3b+Bn4B3Q+L8EdJfD4a+/AbC4UBzPxiPg3wlHZquB28Cn2IuR9x3gr3uV4DbwfvSDOvi4uFA8BDZmIRHkjHpS9Ht9iRqd8+5G3g05mAGcQbsdiX5QJ428G7Kygo8XYdb1/K4NWVmjzkNge2sz84bs+ELmpDDLtqWsNZBXgvmw8CTtpWVMT7x5YWBjLARnwZfKQNYN2U2LPvrh+5nBt7c2M2/It9bArCTKR8eZN+SJ13AScPnoODeRdqNenH+wul5w2gUr2WUjMFAt8bZ/0axX/wNnv4H8vTFb1QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-poly-edit {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gELFi46qJmxxAAABV9JREFUWMOdl19vFFUYxn9n9u9sCyylUIzWUoMQBAWCMdEEIt6xIRQSLIEKtvHe6AcA4yeQb7CAUNJy0daLeomJN8SEULAC2kBBapBKoLvbmdl/c14vdmY7u91tF95kknPOnHmf95znPc97Ro2OTeBbdjFDT3c32ZxVHUOE9kSMB0/m6ExuoJn1H+ur6Y+OTfD50SMN5168OgrAlyf7CfuD+z7+iDs3p8hkLUQ0iFQ/yFl5Nm/qonfHVva+s32Zw9GxCYILsZ08tpNfBhbs+1YN4OH9+7huGdECSBVfqUosbsllfmauBqiR+cCNwOr7AEo8pPHJnymXykhg5fUWjoQpl0vVvhZhbSzGoUOHqgBlt6B6uruj2Zy1E9jo0fhfeyL2x4Mnc8VErK0KUEOB64JSyptfG4RSytsJjUJVxw2lsFy3urL9nx1Qd25ObctkrVMi+jQivd7U2ZyV/3Hzpq7h3h1b/7p9Y0o8v8rwAbTWrGpSocN/FGDlbAI0Rl23PCBan0Ok158H9Ipwzi25A/Mzc9Gl/BYx/E4kYqC1NKRARNAaDCNUM27Z+Zr+ouXs0q4+LSLBHPYCFkTkC6uU39kwCdsS7WRKmaYUiAhdnZ3MPX2K4+QjQI+C94A93rMzm8ltMwyDeDzWjMZeEb2pYQDdW3vITU2jtUZ5QThOPgm8C7wP7J15OPsBsB3oWpGnVWisCeDS1VHj4vBI92+/3tgB7Ab2AruAXiDBK5oIOkhtkEYRNRuJhObrd8Dl9ewf4D5wG7hVLpen29vb5wzD+BrkbBMaL3d1dk5nsrnlFDTTFWAWmAZueWD3gCemGde2k2fw1Al1YXhEvjozoO49eczdqekrWmsc2zlrmvEKOGoW1GUjFLqSk2KpJrCLwyMCPAP+BO54QL8DM6YZX/ClsP9YnwKkXnIBP4jdIpJRpdJTCYdMwwi98KU0Hjc/dDILNyUcwTCWdOSMJ0TRmBktGRhLugu0xyLk7CIqVNm+0bGJptl1YXikD0grpY4Rjc4a8Fbgdab/6OGbAJeCUuyJnnHmZH9pbSyGuBXV8NUwlUpR1EWyixmSyTWEwqGlJ2Swbo2JXbAAfgDGgGQA9I1A9t1tlq0AxrXxn0ilUpw4fhQqYkH/sT41OTnJJwf2s6FjI5mshdYa7bqVR2uezr9MJmJt14FvGrh/O9D+e6UkM/xyCuCqEKCYnJyUTKFQrZDHjxzGshwWLQcRsOz8Hi85P23id0ug/XilAMLBmm4tPGdoaKjSH5+oAGrhwvBI9SjZTn4QSK9yenoD7dlrExPoJlXW8G8ytpNHxRKk02lGxsdRKFwXLNvx5yY94HQLGhGk4LFCYQSqaE0AwWM1eOoEbR0dKBSW7bC4mKuffxs4D/wCLKwQQPAUzIkslfp6cVomROWSolh0GjldAM4nzDi2k9/i5UAzC9aKfwNJ3zgJg9YEvN6+C7SHgKm69+sD7RfNnKTTaZRPQfAut4oFV//IS7gkcB34VlVo8kGzphlfB+DU+TfNGBpZtRastvrvARJmfMF28ge9sc2B9/PNnCilMIDwK6y8/ow/Ai4kvILTljAXvDvEvrqKSUs60KolzPjBxspavQD2tKqCAGF/Ba+xE/Wbilu54wZV8NEKF5fXzQHl/bh4hUsE0WAXSlDMYcQSrQXgCmsTseXHsJkNnjqBFGwKJaHsKlxtUHYVhbLCzr1kaOA4bcn1y1Swmb+iLpJKpVrfgdpfsiVVCYcgluwgnU7jEgJ4s5UkLFtWYyHyEg0/N1q1tmQH+YXnAMFr97Nmv3p+0QsHQRsF8qpBOE5+rb9Nkaj50tVQKjqh4OU3GNL/1/So3vuUgbAAAAAASUVORK5CYII=");\n}\n’),o.bk_tool_icon_box_select="bk-tool-icon-box-select",o.bk_tool_icon_box_zoom="bk-tool-icon-box-zoom",o.bk_tool_icon_zoom_in="bk-tool-icon-zoom-in",o.bk_tool_icon_zoom_out="bk-tool-icon-zoom-out",o.bk_tool_icon_help="bk-tool-icon-help",o.bk_tool_icon_hover="bk-tool-icon-hover",o.bk_tool_icon_crosshair="bk-tool-icon-crosshair",o.bk_tool_icon_lasso_select="bk-tool-icon-lasso-select",o.bk_tool_icon_pan="bk-tool-icon-pan",o.bk_tool_icon_xpan="bk-tool-icon-xpan",o.bk_tool_icon_ypan="bk-tool-icon-ypan",o.bk_tool_icon_range="bk-tool-icon-range",o.bk_tool_icon_polygon_select="bk-tool-icon-polygon-select",o.bk_tool_icon_redo="bk-tool-icon-redo",o.bk_tool_icon_reset="bk-tool-icon-reset",o.bk_tool_icon_save="bk-tool-icon-save",o.bk_tool_icon_tap_select="bk-tool-icon-tap-select",o.bk_tool_icon_undo="bk-tool-icon-undo",o.bk_tool_icon_wheel_pan="bk-tool-icon-wheel-pan",o.bk_tool_icon_wheel_zoom="bk-tool-icon-wheel-zoom",o.bk_tool_icon_box_edit="bk-tool-icon-box-edit",o.bk_tool_icon_freehand_draw="bk-tool-icon-freehand-draw",o.bk_tool_icon_poly_draw="bk-tool-icon-poly-draw",o.bk_tool_icon_point_draw="bk-tool-icon-point-draw",o.bk_tool_icon_poly_edit="bk-tool-icon-poly-edit"},n”, ” function _(o,l,g){Object.defineProperty(g,"__esModule",{value:!0});const n=o(1);o(67),n.__importStar(o(66)).styles.append(".bk-root .bk-logo {\n margin: 5px;\n position: relative;\n display: block;\n background-repeat: no-repeat;\n}\n.bk-root .bk-logo.bk-grey {\n filter: url(\"data:image/svg+xml;utf8,<svg xmlns=\\’http://www.w3.org/2000/svg\\’><filter id=\\’grayscale\\’><feColorMatrix type=\\’matrix\\’ values=\\’0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\\’/></filter></svg>#grayscale\");\n /* Firefox 10+, Firefox on Android /\n filter: gray;\n / IE6-9 /\n -webkit-filter: grayscale(100%);\n / Chrome 19+, Safari 6+, Safari 6+ iOS /\n}\n.bk-root .bk-logo-small {\n width: 20px;\n height: 20px;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAOkSURBVDiNjZRtaJVlGMd/1/08zzln5zjP1LWcU9N0NkN8m2CYjpgQYQXqSs0I84OLIC0hkEKoPtiH3gmKoiJDU7QpLgoLjLIQCpEsNJ1vqUOdO7ppbuec5+V+rj4ctwzd8IIbbi6u+8f1539dt3A78eXC7QizUF7gyV1fD1Yqg4JWz84yffhm0qkFqBogB9rM8tZdtwVsPUhWhGcFJngGeWrPzHm5oaMmkfEg1usvLFyc8jLRqDOMru7AyC8saQr7GG7f5fvDeH7Ej8CM66nIF+8yngt6HWaKh7k49Soy9nXurCi1o3qUbS3zWfrYeQDTB/Qj6kX6Ybhw4B+bOYoLKCC9H3Nu/leUTZ1JdRWkkn2ldcCamzrcf47KKXdAJllSlxAOkRgyHsGC/zRday5Qld9DyoM4/q/rUoy/CXh3jzOu3bHUVZeU+DEn8FInkPBFlu3+nW3Nw0mk6vCDiWg8CeJaxEwuHS3+z5RgY+YBR6V1Z1nxSOfoaPa4LASWxxdNp+VWTk7+4vzaou8v8PN+xo+KY2xsw6une2frhw05CTYOmQvsEhjhWjn0bmXPjpE1+kplmmkP3suftwTubK9Vq22qKmrBhpY4jvd5afdRA3wGjFAgcnTK2s4hY0/GPNIb0nErGMCRxWOOX64Z8RAC4oCXdklmEvcL8o0BfkNK4lUg9HTl+oPlQxdNo3Mg4Nv175e/1LDGzZen30MEjRUtmXSfiTVu1kK8W4txyV6BMKlbgk3lMwYCiusNy9fVfvvwMxv8Ynl6vxoByANLTWplvuj/nF9m2+PDtt1eiHPBr1oIfhCChQMBw6Aw0UulqTKZdfVvfG7VcfIqLG9bcldL/+pdWTLxLUy8Qq38heUIjh4XlzZxzQm19lLFlr8vdQ97rjZVOLf8nclzckbcD4wxXMidpX30sFd37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==);\n}\n.bk-root .bk-logo-notebook {\n display: inline-block;\n vertical-align: middle;\n margin-right: 5px;\n}\n"),g.bk_logo="bk-logo",g.bk_logo_notebook="bk-logo-notebook",g.bk_logo_small="bk-logo-small",g.bk_grey="bk-grey"},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});var s=this&&this.__rest||function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i};const n=t(183),a=t(179),o=t(185),r=t(78),l=t(244),h=t(141),_=t(148),d=t(142),u=t(281),c=t(14),p=t(96),g=t(282),m=t(68),b=t(70),f=t(285),w=t(8),v=t(9),y=t(24),x=t(187),O=t(190),z=t(286),S=t(191),M=t(85);class R extends x.Layoutable{constructor(){super(…arguments),this.min_border={left:0,top:0,right:0,bottom:0}}_measure(t){t=new x.Sizeable(t).bounded_to(this.sizing.size);const e=this.left_panel.measure({width:0,height:t.height}),i=Math.max(e.width,this.min_border.left),s=this.right_panel.measure({width:0,height:t.height}),n=Math.max(s.width,this.min_border.right),a=this.top_panel.measure({width:t.width,height:0}),o=Math.max(a.height,this.min_border.top),r=this.bottom_panel.measure({width:t.width,height:0}),l=Math.max(r.height,this.min_border.bottom),h=new x.Sizeable(t).shrink_by({left:i,right:n,top:o,bottom:l}),_=this.center_panel.measure(h);return{width:i+_.width+n,height:o+_.height+l,inner:{left:i,right:n,top:o,bottom:l},align:(()=>{const{width_policy:t,height_policy:e}=this.center_panel.sizing;return"fixed"!=t&&"fixed"!=e})()}}_set_geometry(t,e){super._set_geometry(t,e),this.center_panel.set_geometry(e);const i=this.left_panel.measure({width:0,height:t.height}),s=this.right_panel.measure({width:0,height:t.height}),n=this.top_panel.measure({width:t.width,height:0}),a=this.bottom_panel.measure({width:t.width,height:0}),{left:o,top:r,right:l,bottom:h}=e;this.top_panel.set_geometry(new M.BBox({left:o,right:l,bottom:r,height:n.height})),this.bottom_panel.set_geometry(new M.BBox({left:o,right:l,top:h,height:a.height})),this.left_panel.set_geometry(new M.BBox({top:r,bottom:h,right:o,width:i.width})),this.right_panel.set_geometry(new M.BBox({top:r,bottom:h,left:l,width:s.width}))}}i.PlotLayout=R,R.__name__="PlotLayout";class k extends l.LayoutDOMView{constructor(){super(…arguments),this._outer_bbox=new M.BBox,this._inner_bbox=new M.BBox,this._needs_paint=!0,this._needs_layout=!1}get is_paused(){return null!=this._is_paused&&0!==this._is_paused}get child_models(){return[]}pause(){null==this._is_paused?this._is_paused=1:this._is_paused+=1}unpause(t=!1){if(null==this._is_paused)throw new Error("wasn’t paused");this._is_paused-=1,0!=this._is_paused||t||this.request_paint()}request_render(){this.request_paint()}request_paint(){if(!this.is_paused){const t=this.throttled_paint();this._ready=this._ready.then(()=>t)}}request_layout(){this._needs_layout=!0,this.request_paint()}reset(){"standard"==this.model.reset_policy&&(this.clear_state(),this.reset_range(),this.reset_selection()),this.model.trigger_event(new u.Reset)}remove(){this.ui_event_bus.destroy(),p.remove_views(this.renderer_views),p.remove_views(this.tool_views),this.canvas_view.remove(),super.remove()}render(){super.render(),this.el.appendChild(this.canvas_view.el),this.canvas_view.render()}initialize(){this.pause(),super.initialize(),this.state_changed=new c.Signal0(this,"state_changed"),this.lod_started=!1,this.visuals=new m.Visuals(this.model),this._initial_state_info={selection:{},dimensions:{width:0,height:0}},this.visibility_callbacks=[],this.state={history:[],index:-1},this.canvas=new a.Canvas({use_hidpi:this.model.hidpi,output_backend:this.model.output_backend}),this.frame=new n.CartesianFrame(this.model.x_scale,this.model.y_scale,this.model.x_range,this.model.y_range,this.model.extra_x_ranges,this.model.extra_y_ranges),this.throttled_paint=f.throttle(()=>this.repaint(),1e3/60);const{title_location:t,title:e}=this.model;null!=t&&null!=e&&(this._title=e instanceof h.Title?e:new h.Title({text:e}));const{toolbar_location:i,toolbar:s}=this.model;null!=i&&null!=s&&(this._toolbar=new d.ToolbarPanel({toolbar:s}),s.toolbar_location=i),this.renderer_views={},this.tool_views={}}async lazy_initialize(){this.canvas_view=await p.build_view(this.canvas,{parent:this}),this.ui_event_bus=new g.UIEvents(this,this.model.toolbar,this.canvas_view.events_el),await this.build_renderer_views(),await this.build_tool_views(),this.update_dataranges(),this.unpause(!0),b.logger.debug("PlotView initialized")}_width_policy(){return null==this.model.frame_width?super._width_policy():"min"}_height_policy(){return null==this.model.frame_height?super._height_policy():"min"}_update_layout(){this.layout=new R,this.layout.set_sizing(this.box_sizing());const{frame_width:t,frame_height:e}=this.model;this.layout.center_panel=this.frame,this.layout.center_panel.set_sizing(Object.assign(Object.assign({},null!=t?{width_policy:"fixed",width:t}:{width_policy:"fit"}),null!=e?{height_policy:"fixed",height:e}:{height_policy:"fit"}));const i=v.copy(this.model.above),s=v.copy(this.model.below),n=v.copy(this.model.left),a=v.copy(this.model.right),o=t=>{switch(t){case"above":return i;case"below":return s;case"left":return n;case"right":return a}},{title_location:r,title:l}=this.model;null!=r&&null!=l&&o(r).push(this._title);const{toolbar_location:_,toolbar:u}=this.model;if(null!=_&&null!=u){const t=o(_);let e=!0;if(this.model.toolbar_sticky)for(let i=0;i<t.length;i++){const s=t[i];if(s instanceof h.Title){t[i]="above"==_||"below"==_?[s,this._toolbar]:[this._toolbar,s],e=!1;break}}e&&t.push(this._toolbar)}const c=(t,e)=>{const i=this.renderer_views[e.id];return i.layout=new z.SidePanel(t,i)},p=(t,e)=>{const i="above"==t||"below"==t,s=[];for(const n of e)if(w.isArray(n)){const e=n.map(e=>{const s=c(t,e);if(e instanceof d.ToolbarPanel){const t=i?"width_policy":"height_policy";s.set_sizing(Object.assign(Object.assign({},s.sizing),{[t]:"min"}))}return s});let a;i?(a=new S.Row(e),a.set_sizing({width_policy:"max",height_policy:"min"})):(a=new S.Column(e),a.set_sizing({width_policy:"min",height_policy:"max"})),a.absolute=!0,s.push(a)}else s.push(c(t,n));return s},g=null!=this.model.min_border?this.model.min_border:0;this.layout.min_border={left:null!=this.model.min_border_left?this.model.min_border_left:g,top:null!=this.model.min_border_top?this.model.min_border_top:g,right:null!=this.model.min_border_right?this.model.min_border_right:g,bottom:null!=this.model.min_border_bottom?this.model.min_border_bottom:g};const m=new O.VStack,b=new O.VStack,f=new O.HStack,y=new O.HStack;m.children=v.reversed(p("above",i)),b.children=p("below",s),f.children=v.reversed(p("left",n)),y.children=p("right",a),m.set_sizing({width_policy:"fit",height_policy:"min"}),b.set_sizing({width_policy:"fit",height_policy:"min"}),f.set_sizing({width_policy:"min",height_policy:"fit"}),y.set_sizing({width_policy:"min",height_policy:"fit"}),this.layout.top_panel=m,this.layout.bottom_panel=b,this.layout.left_panel=f,this.layout.right_panel=y}get axis_views(){const t=[];for(const e in this.renderer_views){const i=this.renderer_views[e];i instanceof _.AxisView&&t.push(i)}return t}set_cursor(t="default"){this.canvas_view.el.style.cursor=t}set_toolbar_visibility(t){for(const e of this.visibility_callbacks)e(t)}prepare_webgl(t,e){const{webgl:i}=this.canvas_view;if(null!=i){const{width:s,height:n}=this.canvas_view.bbox,{pixel_ratio:a}=this.canvas_view.model;i.canvas.width=a*s,i.canvas.height=a*n;const{gl:o}=i;o.enable(o.SCISSOR_TEST);const[r,l,h,_]=e,{xview:d,yview:u}=this.canvas_view.bbox,c=d.compute(r),p=u.compute(l+_);o.scissor(t*c,t*p,t*h,t*_),o.enable(o.BLEND),o.blendFuncSeparate(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA,o.ONE_MINUS_DST_ALPHA,o.ONE)}}clear_webgl(){const{webgl:t}=this.canvas_view;if(null!=t){const{gl:e,canvas:i}=t;e.viewport(0,0,i.width,i.height),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT||e.DEPTH_BUFFER_BIT)}}blit_webgl(){const{ctx:t,webgl:e}=this.canvas_view;if(null!=e&&(b.logger.debug("drawing with WebGL"),t.restore(),t.drawImage(e.canvas,0,0),t.save(),this.model.hidpi)){const e=this.canvas.pixel_ratio;t.scale(e,e),t.translate(.5,.5)}}update_dataranges(){const t={},e={};let i=!1;for(const t of y.values(this.frame.x_ranges).concat(y.values(this.frame.y_ranges)))t instanceof o.DataRange1d&&"log"==t.scale_hint&&(i=!0);for(const s in this.renderer_views){const n=this.renderer_views[s];if(n instanceof r.GlyphRendererView){const a=n.glyph.bounds();if(null!=a&&(t[s]=a),i){const t=n.glyph.log_bounds();null!=t&&(e[s]=t)}}}let s=!1,n=!1;const{width:a,height:l}=this.frame.bbox;let h;!1!==this.model.match_aspect&&0!=a&&0!=l&&(h=1/this.model.aspect_scale*(a/l));for(const i of y.values(this.frame.x_ranges)){if(i instanceof o.DataRange1d){const n="log"==i.scale_hint?e:t;i.update(n,0,this.model.id,h),i.follow&&(s=!0)}null!=i.bounds&&(n=!0)}for(const i of y.values(this.frame.y_ranges)){if(i instanceof o.DataRange1d){const n="log"==i.scale_hint?e:t;i.update(n,1,this.model.id,h),i.follow&&(s=!0)}null!=i.bounds&&(n=!0)}if(s&&n){b.logger.warn("Follow enabled so bounds are unset.");for(const t of y.values(this.frame.x_ranges))t.bounds=null;for(const t of y.values(this.frame.y_ranges))t.bounds=null}this.range_update_timestamp=Date.now()}map_to_screen(t,e,i="default",s="default"){return this.frame.map_to_screen(t,e,i,s)}push_state(t,e){const{history:i,index:s}=this.state,n=null!=i[s]?i[s].info:{},a=Object.assign(Object.assign(Object.assign({},this._initial_state_info),n),e);this.state.history=this.state.history.slice(0,this.state.index+1),this.state.history.push({type:t,info:a}),this.state.index=this.state.history.length-1,this.state_changed.emit()}clear_state(){this.state={history:[],index:-1},this.state_changed.emit()}can_undo(){return this.state.index>=0}can_redo(){return this.state.index<this.state.history.length-1}undo(){this.can_undo()&&(this.state.index-=1,this._do_state_change(this.state.index),this.state_changed.emit())}redo(){this.can_redo()&&(this.state.index+=1,this._do_state_change(this.state.index),this.state_changed.emit())}_do_state_change(t){const e=null!=this.state.history[t]?this.state.history[t].info:this._initial_state_info;null!=e.range&&this.update_range(e.range),null!=e.selection&&this.update_selection(e.selection)}get_selection(){const t={};for(const e of this.model.renderers)if(e instanceof r.GlyphRenderer){const{selected:i}=e.data_source;t[e.id]=i}return t}update_selection(t){for(const e of this.model.renderers){if(!(e instanceof r.GlyphRenderer))continue;const i=e.data_source;null!=t?null!=t[e.id]&&i.selected.update(t[e.id],!0,!1):i.selection_manager.clear()}}reset_selection(){this.update_selection(null)}_update_ranges_together(t){let e=1;for(const[i,s]of t)e=Math.min(e,this._get_weight_to_constrain_interval(i,s));if(e<1)for(const[i,s]of t)s.start=e*s.start+(1-e)*i.start,s.end=e*s.end+(1-e)*i.end}_update_ranges_individually(t,e,i,s){let n=!1;for(const[s,a]of t){if(!i){const t=this._get_weight_to_constrain_interval(s,a);t<1&&(a.start=t*a.start+(1-t)*s.start,a.end=t*a.end+(1-t)*s.end)}if(null!=s.bounds&&"auto"!=s.bounds){const[t,o]=s.bounds,r=Math.abs(a.end-a.start);s.is_reversed?(null!=t&&t>=a.end&&(n=!0,a.end=t,(e||i)&&(a.start=t+r)),null!=o&&o<=a.start&&(n=!0,a.start=o,(e||i)&&(a.end=o-r))):(null!=t&&t>=a.start&&(n=!0,a.start=t,(e||i)&&(a.end=t+r)),null!=o&&o<=a.end&&(n=!0,a.end=o,(e||i)&&(a.start=o-r)))}}if(!(i&&n&&s))for(const[e,i]of t)e.have_updated_interactively=!0,e.start==i.start&&e.end==i.end||e.setv(i)}_get_weight_to_constrain_interval(t,e){const{min_interval:i}=t;let{max_interval:s}=t;if(null!=t.bounds&&"auto"!=t.bounds){const[e,i]=t.bounds;if(null!=e&&null!=i){const t=Math.abs(i-e);s=null!=s?Math.min(s,t):t}}let n=1;if(null!=i||null!=s){const a=Math.abs(t.end-t.start),o=Math.abs(e.end-e.start);i>0&&o<i&&(n=(a-i)/(a-o)),s>0&&o>s&&(n=(s-a)/(o-a)),n=Math.max(0,Math.min(1,n))}return n}update_range(t,e=!1,i=!1,s=!0){this.pause();const{x_ranges:n,y_ranges:a}=this.frame;if(null==t){for(const t in n){n[t].reset()}for(const t in a){a[t].reset()}this.update_dataranges()}else{const o=[];for(const e in n){const i=n[e];o.push([i,t.xrs[e]])}for(const e in a){const i=a[e];o.push([i,t.yrs[e]])}i&&this._update_ranges_together(o),this._update_ranges_individually(o,e,i,s)}this.unpause()}reset_range(){this.update_range(null)}_invalidate_layout(){(()=>{for(const t of this.model.side_panels){if(this.renderer_views[t.id].layout.has_size_changed())return!0}return!1})()&&this.root.compute_layout()}get_renderer_views(){return this.computed_renderers.map(t=>this.renderer_views[t.id])}async build_renderer_views(){this.computed_renderers=[];const{above:t,below:e,left:i,right:s,center:n,renderers:a}=this.model;this.computed_renderers.push(…t,…e,…i,…s,…n,…a),null!=this._title&&this.computed_renderers.push(this._title),null!=this._toolbar&&this.computed_renderers.push(this._toolbar);for(const t of this.model.toolbar.tools)null!=t.overlay&&this.computed_renderers.push(t.overlay),this.computed_renderers.push(…t.synthetic_renderers);await p.build_views(this.renderer_views,this.computed_renderers,{parent:this})}async build_tool_views(){const t=this.model.toolbar.tools;(await p.build_views(this.tool_views,t,{parent:this})).map(t=>this.ui_event_bus.register_tool(t))}connect_signals(){super.connect_signals();const{x_ranges:t,y_ranges:e}=this.frame;for(const e in t){const i=t[e];this.connect(i.change,()=>{this._needs_layout=!0,this.request_paint()})}for(const t in e){const i=e[t];this.connect(i.change,()=>{this._needs_layout=!0,this.request_paint()})}const{above:i,below:s,left:n,right:a,center:o,renderers:r}=this.model.properties;this.on_change([i,s,n,a,o,r],async()=>await this.build_renderer_views()),this.connect(this.model.toolbar.properties.tools.change,async()=>{await this.build_renderer_views(),await this.build_tool_views()}),this.connect(this.model.change,()=>this.request_paint()),this.connect(this.model.reset,()=>this.reset())}set_initial_range(){let t=!0;const{x_ranges:e,y_ranges:i}=this.frame,s={},n={};for(const i in e){const{start:n,end:a}=e[i];if(null==n||null==a||w.isStrictNaN(n+a)){t=!1;break}s[i]={start:n,end:a}}if(t)for(const e in i){const{start:s,end:a}=i[e];if(null==s||null==a||w.isStrictNaN(s+a)){t=!1;break}n[e]={start:s,end:a}}t?(this._initial_state_info.range={xrs:s,yrs:n},b.logger.debug("initial ranges set")):b.logger.warn("could not set initial ranges")}has_finished(){if(!super.has_finished())return!1;for(const t in this.renderer_views){if(!this.renderer_views[t].has_finished())return!1}return!0}after_layout(){if(super.after_layout(),this._needs_layout=!1,this.model.setv({inner_width:Math.round(this.frame._width.value),inner_height:Math.round(this.frame._height.value),outer_width:Math.round(this.layout._width.value),outer_height:Math.round(this.layout._height.value)},{no_change:!0}),!1!==this.model.match_aspect&&(this.pause(),this.update_dataranges(),this.unpause(!0)),!this._outer_bbox.equals(this.layout.bbox)){const{width:t,height:e}=this.layout.bbox;this.canvas_view.prepare_canvas(t,e),this._outer_bbox=this.layout.bbox,this._needs_paint=!0}this._inner_bbox.equals(this.frame.inner_bbox)||(this._inner_bbox=this.layout.inner_bbox,this._needs_paint=!0),this._needs_paint&&(this._needs_paint=!1,this.paint())}repaint(){this._needs_layout&&this._invalidate_layout(),this.paint()}paint(){if(this.is_paused)return;b.logger.trace(`PlotView.paint() for ${this.model.id}`);const{document:t}=this.model;if(null!=t){const e=t.interactive_duration();e>=0&&e<this.model.lod_interval?setTimeout(()=>{t.interactive_duration()>this.model.lod_timeout&&t.interactive_stop(this.model),this.request_paint()},this.model.lod_timeout):t.interactive_stop(this.model)}for(const t in this.renderer_views){const e=this.renderer_views[t];if(null==this.range_update_timestamp||e instanceof r.GlyphRendererView&&e.set_data_timestamp>this.range_update_timestamp){this.update_dataranges();break}}const{ctx:e}=this.canvas_view,i=this.canvas.pixel_ratio;e.save(),this.model.hidpi&&(e.scale(i,i),e.translate(.5,.5));const s=[this.frame._left.value,this.frame._top.value,this.frame._width.value,this.frame._height.value];if(this._map_hook(e,s),this._paint_empty(e,s),this.prepare_webgl(i,s),this.clear_webgl(),this.visuals.outline_line.doit){e.save(),this.visuals.outline_line.set_value(e);let[t,i,n,a]=s;t+n==this.layout._width.value&&(n-=1),i+a==this.layout._height.value&&(a-=1),e.strokeRect(t,i,n,a),e.restore()}this._paint_levels(e,["image","underlay","glyph"],s,!0),this._paint_levels(e,["annotation"],s,!1),this._paint_levels(e,["overlay"],s,!1),null==this._initial_state_info.range&&this.set_initial_range(),e.restore()}_paint_levels(t,e,i,s){for(const n of e)for(const e of this.computed_renderers){if(e.level!=n)continue;const a=this.renderer_views[e.id];t.save(),(s||a.needs_clip)&&(t.beginPath(),t.rect(…i),t.clip()),a.render(),t.restore(),a.has_webgl&&(this.blit_webgl(),this.clear_webgl())}}_map_hook(t,e){}_paint_empty(t,e){const[i,s,n,a]=[0,0,this.layout._width.value,this.layout._height.value],[o,r,l,h]=e;t.clearRect(i,s,n,a),this.visuals.border_fill.doit&&(this.visuals.border_fill.set_value(t),t.fillRect(i,s,n,a),t.clearRect(o,r,l,h)),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(o,r,l,h))}save(t){this.canvas_view.save(t)}serializable_state(){const t=super.serializable_state(),{children:e}=t,i=s(t,["children"]),n=this.get_renderer_views().map(t=>t.serializable_state()).filter(t=>"bbox"in t);return Object.assign(Object.assign({},i),{children:[…e,…n]})}}i.PlotView=k,k.__name__="PlotView"},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});var n=this&&this.__decorate||function(e,t,s,n){var _,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,n);else for(var r=e.length-1;r>=0;r–)(_=e[r])&&(o=(a<3?_(o):a>3?_(t,s,o):_(t,s))||o);return a>3&&o&&Object.defineProperty(t,s,o),o};function _(e){return function(t){t.prototype.event_name=e}}class a{constructor(){this.origin=null}to_json(){const{event_name:e}=this;return{event_name:e,event_values:this._to_json()}}_to_json(){return{model:this.origin}}}s.BokehEvent=a,a.__name__="BokehEvent";let o=class extends a{};s.ButtonClick=o,o.__name__="ButtonClick",s.ButtonClick=o=n([_("button_click")],o);let r=class extends a{constructor(e){super(),this.item=e}_to_json(){const{item:e}=this;return Object.assign(Object.assign({},super._to_json()),{item:e})}};s.MenuItemClick=r,r.__name__="MenuItemClick",s.MenuItemClick=r=n([_("menu_item_click")],r);class c extends a{}s.UIEvent=c,c.__name__="UIEvent";let i=class extends c{};s.LODStart=i,i.__name__="LODStart",s.LODStart=i=n([_("lodstart")],i);let l=class extends c{};s.LODEnd=l,l.__name__="LODEnd",s.LODEnd=l=n([_("lodend")],l);let u=class extends c{constructor(e,t){super(),this.geometry=e,this.final=t}_to_json(){const{geometry:e,final:t}=this;return Object.assign(Object.assign({},super._to_json()),{geometry:e,final:t})}};s.SelectionGeometry=u,u.__name__="SelectionGeometry",s.SelectionGeometry=u=n([_("selectiongeometry")],u);let h=class extends c{};s.Reset=h,h.__name__="Reset",s.Reset=h=n([_("reset")],h);class d extends c{constructor(e,t,s,n){super(),this.sx=e,this.sy=t,this.x=s,this.y=n}_to_json(){const{sx:e,sy:t,x:s,y:n}=this;return Object.assign(Object.assign({},super._to_json()),{sx:e,sy:t,x:s,y:n})}}s.PointEvent=d,d.__name__="PointEvent";let m=class extends d{constructor(e,t,s,n,_,a){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.delta_x=_,this.delta_y=a}_to_json(){const{delta_x:e,delta_y:t}=this;return Object.assign(Object.assign({},super._to_json()),{delta_x:e,delta_y:t})}};s.Pan=m,m.__name__="Pan",s.Pan=m=n([_("pan")],m);let p=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.scale=_}_to_json(){const{scale:e}=this;return Object.assign(Object.assign({},super._to_json()),{scale:e})}};s.Pinch=p,p.__name__="Pinch",s.Pinch=p=n([_("pinch")],p);let x=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.rotation=_}_to_json(){const{rotation:e}=this;return Object.assign(Object.assign({},super._to_json()),{rotation:e})}};s.Rotate=x,x.__name__="Rotate",s.Rotate=x=n([_("rotate")],x);let j=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.delta=_}_to_json(){const{delta:e}=this;return Object.assign(Object.assign({},super._to_json()),{delta:e})}};s.MouseWheel=j,j.__name__="MouseWheel",s.MouseWheel=j=n([_("wheel")],j);let y=class extends d{};s.MouseMove=y,y.__name__="MouseMove",s.MouseMove=y=n([_("mousemove")],y);let P=class extends d{};s.MouseEnter=P,P.__name__="MouseEnter",s.MouseEnter=P=n([_("mouseenter")],P);let O=class extends d{};s.MouseLeave=O,O.__name__="MouseLeave",s.MouseLeave=O=n([_("mouseleave")],O);let b=class extends d{};s.Tap=b,b.__name__="Tap",s.Tap=b=n([_("tap")],b);let g=class extends d{};s.DoubleTap=g,g.__name__="DoubleTap",s.DoubleTap=g=n([_("doubletap")],g);let v=class extends d{};s.Press=v,v.__name__="Press",s.Press=v=n([_("press")],v);let E=class extends d{};s.PressUp=E,E.__name__="PressUp",s.PressUp=E=n([_("pressup")],E);let M=class extends d{};s.PanStart=M,M.__name__="PanStart",s.PanStart=M=n([_("panstart")],M);let f=class extends d{};s.PanEnd=f,f.__name__="PanEnd",s.PanEnd=f=n([_("panend")],f);let R=class extends d{};s.PinchStart=R,R.__name__="PinchStart",s.PinchStart=R=n([_("pinchstart")],R);let S=class extends d{};s.PinchEnd=S,S.__name__="PinchEnd",s.PinchEnd=S=n([_("pinchend")],S);let k=class extends d{};s.RotateStart=k,k.__name__="RotateStart",s.RotateStart=k=n([_("rotatestart")],k);let D=class extends d{};s.RotateEnd=D,D.__name__="RotateEnd",s.RotateEnd=D=n([_("rotateend")],D)},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),i=n.__importDefault(t(283)),r=t(14),a=t(70),h=t(66),_=t(284),o=t(9),c=t(24),l=t(8),p=t(101),u=n.__importStar(t(281));class d{constructor(t,e,s){this.plot_view=t,this.toolbar=e,this.hit_area=s,this.pan_start=new r.Signal(this,"pan:start"),this.pan=new r.Signal(this,"pan"),this.pan_end=new r.Signal(this,"pan:end"),this.pinch_start=new r.Signal(this,"pinch:start"),this.pinch=new r.Signal(this,"pinch"),this.pinch_end=new r.Signal(this,"pinch:end"),this.rotate_start=new r.Signal(this,"rotate:start"),this.rotate=new r.Signal(this,"rotate"),this.rotate_end=new r.Signal(this,"rotate:end"),this.tap=new r.Signal(this,"tap"),this.doubletap=new r.Signal(this,"doubletap"),this.press=new r.Signal(this,"press"),this.pressup=new r.Signal(this,"pressup"),this.move_enter=new r.Signal(this,"move:enter"),this.move=new r.Signal(this,"move"),this.move_exit=new r.Signal(this,"move:exit"),this.scroll=new r.Signal(this,"scroll"),this.keydown=new r.Signal(this,"keydown"),this.keyup=new r.Signal(this,"keyup"),this.hammer=new i.default(this.hit_area,{touchAction:"auto",inputClass:i.default.TouchMouseInput}),this._configure_hammerjs(),this.hit_area.addEventListener("mousemove",t=>this._mouse_move(t)),this.hit_area.addEventListener("mouseenter",t=>this._mouse_enter(t)),this.hit_area.addEventListener("mouseleave",t=>this._mouse_exit(t)),this.hit_area.addEventListener("wheel",t=>this._mouse_wheel(t)),document.addEventListener("keydown",this),document.addEventListener("keyup",this)}destroy(){this.hammer.destroy(),document.removeEventListener("keydown",this),document.removeEventListener("keyup",this)}handleEvent(t){"keydown"==t.type?this._key_down(t):"keyup"==t.type&&this._key_up(t)}_configure_hammerjs(){this.hammer.get("doubletap").recognizeWith("tap"),this.hammer.get("tap").requireFailure("doubletap"),this.hammer.get("doubletap").dropRequireFailure("tap"),this.hammer.on("doubletap",t=>this._doubletap(t)),this.hammer.on("tap",t=>this._tap(t)),this.hammer.on("press",t=>this._press(t)),this.hammer.on("pressup",t=>this._pressup(t)),this.hammer.get("pan").set({direction:i.default.DIRECTION_ALL}),this.hammer.on("panstart",t=>this._pan_start(t)),this.hammer.on("pan",t=>this._pan(t)),this.hammer.on("panend",t=>this._pan_end(t)),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("pinchstart",t=>this._pinch_start(t)),this.hammer.on("pinch",t=>this._pinch(t)),this.hammer.on("pinchend",t=>this._pinch_end(t)),this.hammer.get("rotate").set({enable:!0}),this.hammer.on("rotatestart",t=>this._rotate_start(t)),this.hammer.on("rotate",t=>this._rotate(t)),this.hammer.on("rotateend",t=>this._rotate_end(t))}register_tool(t){const e=t.model.event_type;null!=e&&(l.isString(e)?this._register_tool(t,e):e.forEach((e,s)=>this._register_tool(t,e,s<1)))}_register_tool(t,e,s=!0){const n=t,{id:i}=n.model,r=t=>e=>{e.id==i&&t(e.e)},h=t=>e=>{t(e.e)};switch(e){case"pan":null!=n._pan_start&&n.connect(this.pan_start,r(n._pan_start.bind(n))),null!=n._pan&&n.connect(this.pan,r(n._pan.bind(n))),null!=n._pan_end&&n.connect(this.pan_end,r(n._pan_end.bind(n)));break;case"pinch":null!=n._pinch_start&&n.connect(this.pinch_start,r(n._pinch_start.bind(n))),null!=n._pinch&&n.connect(this.pinch,r(n._pinch.bind(n))),null!=n._pinch_end&&n.connect(this.pinch_end,r(n._pinch_end.bind(n)));break;case"rotate":null!=n._rotate_start&&n.connect(this.rotate_start,r(n._rotate_start.bind(n))),null!=n._rotate&&n.connect(this.rotate,r(n._rotate.bind(n))),null!=n._rotate_end&&n.connect(this.rotate_end,r(n._rotate_end.bind(n)));break;case"move":null!=n._move_enter&&n.connect(this.move_enter,r(n._move_enter.bind(n))),null!=n._move&&n.connect(this.move,r(n._move.bind(n))),null!=n._move_exit&&n.connect(this.move_exit,r(n._move_exit.bind(n)));break;case"tap":null!=n._tap&&n.connect(this.tap,r(n._tap.bind(n)));break;case"press":null!=n._press&&n.connect(this.press,r(n._press.bind(n))),null!=n._pressup&&n.connect(this.pressup,r(n._pressup.bind(n)));break;case"scroll":null!=n._scroll&&n.connect(this.scroll,r(n._scroll.bind(n)));break;default:throw new Error(`unsupported event_type: ${e}`)}s&&(null!=n._doubletap&&n.connect(this.doubletap,h(n._doubletap.bind(n))),null!=n._keydown&&n.connect(this.keydown,h(n._keydown.bind(n))),null!=n._keyup&&n.connect(this.keyup,h(n._keyup.bind(n))),p.is_mobile&&null!=n._scroll&&"pinch"==e&&(a.logger.debug("Registering scroll on touch screen"),n.connect(this.scroll,r(n._scroll.bind(n)))))}_hit_test_renderers(t,e){const s=this.plot_view.get_renderer_views();for(const n of o.reversed(s)){const{level:s}=n.model;if(("annotation"==s||"overlay"==s)&&null!=n.interactive_hit&&n.interactive_hit(t,e))return n}return null}_hit_test_frame(t,e){return this.plot_view.frame.bbox.contains(t,e)}_hit_test_canvas(t,e){return this.plot_view.layout.bbox.contains(t,e)}_trigger(t,e,s){const n=this.toolbar.gestures,i=t.name.split(":")[0],r=this._hit_test_renderers(e.sx,e.sy),a=this._hit_test_canvas(e.sx,e.sy);switch(i){case"move":{const s=n[i].active;null!=s&&this.trigger(t,e,s.id);const h=this.toolbar.inspectors.filter(t=>t.active);let _="default";null!=r?(_=r.cursor(e.sx,e.sy)||_,c.isEmpty(h)||(t=this.move_exit)):this._hit_test_frame(e.sx,e.sy)&&(c.isEmpty(h)||(_="crosshair")),this.plot_view.set_cursor(_),this.plot_view.set_toolbar_visibility(a),h.map(s=>this.trigger(t,e,s.id));break}case"tap":{const{target:a}=s;if(null!=a&&a!=this.hit_area)return;null!=r&&null!=r.on_hit&&r.on_hit(e.sx,e.sy);const h=n[i].active;null!=h&&this.trigger(t,e,h.id);break}case"scroll":{const i=n[p.is_mobile?"pinch":"scroll"].active;null!=i&&(s.preventDefault(),s.stopPropagation(),this.trigger(t,e,i.id));break}case"pan":{const r=n[i].active;null!=r&&(s.preventDefault(),this.trigger(t,e,r.id));break}default:{const s=n[i].active;null!=s&&this.trigger(t,e,s.id)}}this._trigger_bokeh_event(e)}trigger(t,e,s=null){t.emit({id:s,e})}_trigger_bokeh_event(t){const e=(()=>{const e=this.plot_view.frame.xscales.default,s=this.plot_view.frame.yscales.default,{sx:n,sy:i}=t,r=e.invert(n),a=s.invert(i);switch(t.type){case"wheel":return new u.MouseWheel(n,i,r,a,t.delta);case"mousemove":return new u.MouseMove(n,i,r,a);case"mouseenter":return new u.MouseEnter(n,i,r,a);case"mouseleave":return new u.MouseLeave(n,i,r,a);case"tap":return new u.Tap(n,i,r,a);case"doubletap":return new u.DoubleTap(n,i,r,a);case"press":return new u.Press(n,i,r,a);case"pressup":return new u.PressUp(n,i,r,a);case"pan":return new u.Pan(n,i,r,a,t.deltaX,t.deltaY);case"panstart":return new u.PanStart(n,i,r,a);case"panend":return new u.PanEnd(n,i,r,a);case"pinch":return new u.Pinch(n,i,r,a,t.scale);case"pinchstart":return new u.PinchStart(n,i,r,a);case"pinchend":return new u.PinchEnd(n,i,r,a);case"rotate":return new u.Rotate(n,i,r,a,t.rotation);case"rotatestart":return new u.RotateStart(n,i,r,a);case"rotateend":return new u.RotateEnd(n,i,r,a);default:return}})();null!=e&&this.plot_view.model.trigger_event(e)}_get_sxy(t){const{pageX:e,pageY:s}=function(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}(t)?(0!=t.touches.length?t.touches:t.changedTouches)[0]:t,{left:n,top:i}=h.offset(this.hit_area);return{sx:e-n,sy:s-i}}_pan_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{deltaX:t.deltaX,deltaY:t.deltaY,shiftKey:t.srcEvent.shiftKey})}_pinch_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{scale:t.scale,shiftKey:t.srcEvent.shiftKey})}_rotate_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{rotation:t.rotation,shiftKey:t.srcEvent.shiftKey})}_tap_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{shiftKey:t.srcEvent.shiftKey})}_move_event(t){return Object.assign({type:t.type},this._get_sxy(t))}_scroll_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t)),{delta:_.getDeltaY(t)})}_key_event(t){return{type:t.type,keyCode:t.keyCode}}_pan_start(t){const e=this._pan_event(t);e.sx-=t.deltaX,e.sy-=t.deltaY,this._trigger(this.pan_start,e,t.srcEvent)}_pan(t){this._trigger(this.pan,this._pan_event(t),t.srcEvent)}_pan_end(t){this._trigger(this.pan_end,this._pan_event(t),t.srcEvent)}_pinch_start(t){this._trigger(this.pinch_start,this._pinch_event(t),t.srcEvent)}_pinch(t){this._trigger(this.pinch,this._pinch_event(t),t.srcEvent)}_pinch_end(t){this._trigger(this.pinch_end,this._pinch_event(t),t.srcEvent)}_rotate_start(t){this._trigger(this.rotate_start,this._rotate_event(t),t.srcEvent)}_rotate(t){this._trigger(this.rotate,this._rotate_event(t),t.srcEvent)}_rotate_end(t){this._trigger(this.rotate_end,this._rotate_event(t),t.srcEvent)}_tap(t){this._trigger(this.tap,this._tap_event(t),t.srcEvent)}_doubletap(t){const e=this._tap_event(t);this._trigger_bokeh_event(e),this.trigger(this.doubletap,e)}_press(t){this._trigger(this.press,this._tap_event(t),t.srcEvent)}_pressup(t){this._trigger(this.pressup,this._tap_event(t),t.srcEvent)}_mouse_enter(t){this._trigger(this.move_enter,this._move_event(t),t)}_mouse_move(t){this._trigger(this.move,this._move_event(t),t)}_mouse_exit(t){this._trigger(this.move_exit,this._move_event(t),t)}_mouse_wheel(t){this._trigger(this.scroll,this._scroll_event(t),t)}_key_down(t){this.trigger(this.keydown,this._key_event(t))}_key_up(t){this.trigger(this.keyup,this._key_event(t))}}s.UIEvents=d,d.__name__="UIEvents"},n”, ” function _(t,e,n){n”, ” /! Hammer.JS - v2.0.7 - 2016-04-22n”, ” * http://hammerjs.github.io/n”, ” n”, ” * Copyright (c) 2016 Jorik Tangelder;n”, ” * Licensed under the MIT license */n”, ” !function(t,n,i,r){"use strict";var s,o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),h=Math.round,u=Math.abs,c=Date.now;function l(t,e,n){return setTimeout(y(t,n),e)}function p(t,e,n){return!!Array.isArray(t)&&(f(t,n[e],n),!0)}function f(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function v(e,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,r,i),e.apply(this,arguments)}}s="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var d=v((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use assign."),m=v((function(t,e){return d(t,e,!0)}),"merge","Use assign.");function g(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&s(i,n)}function y(t,e){return function(){return t.apply(e,arguments)}}function T(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function E(t,e){return void 0===t?e:t}function I(t,e,n){f(S(e),(function(e){t.addEventListener(e,n,!1)}))}function A(t,e,n){f(S(e),(function(e){t.removeEventListener(e,n,!1)}))}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function C(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function b(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];b(r,o)<0&&i.push(t[s]),r[s]=o,s++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function D(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<o.length;){if((i=(n=o[s])?n+r:e)in t)return i;s++}}var w=1;function O(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var R="ontouchstart"in t,M=void 0!==D(t,"PointerEvent"),z=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N=["x","y"],X=["clientX","clientY"];function Y(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){T(t.options.enable,[t])&&n.handler(e)},this.init()}function F(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=W(e));r>1&&!n.firstMultiple?n.firstMultiple=W(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,h=e.center=q(i);e.timeStamp=c(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=U(a,h),e.distance=L(a,h),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=H(e.deltaX,e.deltaY);var l=k(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=u(l.x)>u(l.y)?l.x:l.y,e.scale=o?(p=o.pointers,f=i,L(f[0],f[1],X)/L(p[0],p[1],X)):1,e.rotation=o?function(t,e){return U(e[1],e[0],X)+U(t[1],t[0],X)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,o=t.lastInterval||e,a=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(a>25||void 0===o.velocity)){var h=e.deltaX-o.deltaX,c=e.deltaY-o.deltaY,l=k(a,h,c);i=l.x,r=l.y,n=u(l.x)>u(l.y)?l.x:l.y,s=H(h,c),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var p,f;var v=t.element;_(e.srcEvent.target,v)&&(v=e.srcEvent.target);e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:e,center:q(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:h(n/e),y:h(i/e)}}function k(t,e,n){return{x:e/t||0,y:n/t||0}}function H(t,e){return t===e?1:u(t)>=u(e)?t<0?2:4:e<0?8:16}function L(t,e,n){n||(n=N);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function U(t,e,n){n||(n=N);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}Y.prototype={handler:function(){},init:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(O(this.element),this.evWin,this.domHandler)}};var V={mousedown:1,mousemove:2,mouseup:4};function j(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,Y.apply(this,arguments)}g(j,Y,{handler:function(t){var e=V[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var G={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},B="pointerdown",$="pointermove pointerup pointercancel";function J(){this.evEl=B,this.evWin=$,Y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(B="MSPointerDown",$="MSPointerMove MSPointerUp MSPointerCancel"),g(J,Y,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=G[i],s=Z[t.pointerType]||t.pointerType,o="touch"==s,a=b(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var K={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Q(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Y.apply(this,arguments)}function tt(t,e){var n=x(t.touches),i=x(t.changedTouches);return 12&e&&(n=P(n.concat(i),"identifier",!0)),[n,i]}g(Q,Y,{handler:function(t){var e=K[t.type];if(1===e&&(this.started=!0),this.started){var n=tt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},Y.apply(this,arguments)}function it(t,e){var n=x(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=x(t.changedTouches),a=[],h=this.target;if(s=n.filter((function(t){return _(t.target,h)})),1===e)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),12&e&&delete i[o[r].identifier],r++;return a.length?[P(s.concat(a),"identifier",!0),a]:void 0}g(nt,Y,{handler:function(t){var e=et[t.type],n=it.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});function rt(){Y.apply(this,arguments);var t=y(this.handler,this);this.touch=new nt(this.manager,t),this.mouse=new j(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function st(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ot.call(this,e)):12&t&&ot.call(this,e)}function ot(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function at(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}g(rt,Y,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)st.call(this,e,n);else if(r&&at.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ht=D(a.style,"touchAction"),ut=void 0!==ht,ct=function(){if(!ut)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){e[i]=!n||t.CSS.supports("touch-action",i)})),e}();function lt(t,e){this.manager=t,this.set(e)}lt.prototype={set:function(t){"compute"==t&&(t=this.compute()),ut&&this.manager.element.style&&ct[t]&&(this.manager.element.style[ht]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,(function(e){T(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(C(t,"none"))return"none";var e=C(t,"pan-x"),n=C(t,"pan-y");if(e&&n)return"none";if(e||n)return e?"pan-x":"pan-y";if(C(t,"manipulation"))return"manipulation";return"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=C(i,"none")&&!ct.none,s=C(i,"pan-y")&&!ct["pan-y"],o=C(i,"pan-x")&&!ct["pan-x"];if(r){var a=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(a&&h&&u)return}if(!o||!s)return r||s&&6&n||o&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};function pt(t){this.options=s({},this.defaults,t||{}),this.id=w++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ft(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function vt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function dt(t,e){var n=e.manager;return n?n.get(t):t}function mt(){pt.apply(this,arguments)}function gt(){mt.apply(this,arguments),this.pX=null,this.pY=null}function yt(){mt.apply(this,arguments)}function Tt(){pt.apply(this,arguments),this._timer=null,this._input=null}function Et(){mt.apply(this,arguments)}function It(){mt.apply(this,arguments)}function At(){pt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function _t(t,e){return(e=e||{}).recognizers=E(e.recognizers,_t.defaults.preset),new Ct(t,e)}pt.prototype={defaults:{},set:function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(p(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=dt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return p(t,"dropRecognizeWith",this)||(t=dt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(p(t,"requireFailure",this))return this;var e=this.requireFail;return-1===b(e,t=dt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(p(t,"dropRequireFailure",this))return this;t=dt(t,this);var e=b(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+ft(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+ft(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=s({},t);if(!T(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},g(mt,pt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:32}}),g(gt,mt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return mt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=vt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),g(yt,mt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),g(Tt,pt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=l((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),g(Et,mt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),g(It,mt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return gt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=vt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),g(At,pt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||L(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=l((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),_t.VERSION="2.0.7",_t.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Et,{enable:!1}],[yt,{enable:!1},["rotate"]],[It,{direction:6}],[gt,{direction:6},["swipe"]],[At],[At,{event:"doubletap",taps:2},["tap"]],[Tt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ct(t,e){var n;this.options=s({},_t.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(M?J:z?nt:R?rt:j))(n,F),this.touchAction=new lt(this,this.options.touchAction),St(this,!0),f(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function St(t,e){var n,i=t.element;i.style&&(f(t.options.cssProps,(function(r,s){n=D(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Ct.prototype={set:function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof pt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(p(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(p(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=b(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return f(S(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return f(S(t),(function(t){e?n[t]&&n[t].splice(b(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var i=n.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<i.length;)i[r](e),r++}},destroy:function(){this.element&&St(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(_t,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ct,Input:Y,TouchAction:lt,TouchInput:nt,MouseInput:j,PointerEventInput:J,TouchMouseInput:rt,SingleTouchInput:Q,Recognizer:pt,AttrRecognizer:mt,Tap:At,Pan:gt,Swipe:It,Pinch:yt,Rotate:Et,Press:Tt,on:I,off:A,each:f,merge:m,extend:d,assign:s,inherit:g,bindFn:y,prefixed:D}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=_t,"function"==typeof define&&define.amd?define((function(){return _t})):void 0!==e&&e.exports?e.exports=_t:t.Hammer=_t}(window,document)},n”, ” function _(e,t,n){n”, ” /!n”, ” * jQuery Mousewheel 3.1.13n”, ” *n”, ” * Copyright jQuery Foundation and other contributorsn”, ” * Released under the MIT licensen”, ” * http://jquery.org/licensen”, ” */n”, ” function r(e){const t=getComputedStyle(e).fontSize;return null!=t?parseInt(t,10):null}Object.defineProperty(n,"__esModule",{value:!0}),n.getDeltaY=function(e){let t=-e.deltaY;if(e.target instanceof HTMLElement)switch(e.deltaMode){case e.DOM_DELTA_LINE:t*=r((n=e.target).offsetParent||document.body)||r(n)||16;break;case e.DOM_DELTA_PAGE:t*=function(e){return e.clientHeight}(e.target)}var n;return t}},n”, ” function _(n,e,o){Object.defineProperty(o,"__esModule",{value:!0});const t=("undefined"!=typeof window?window.requestAnimationFrame:void 0)||("undefined"!=typeof window?window.webkitRequestAnimationFrame:void 0)||("undefined"!=typeof window?window.mozRequestAnimationFrame:void 0)||("undefined"!=typeof window?window.msRequestAnimationFrame:void 0)||function(n){return n(Date.now()),-1};o.throttle=function(n,e){let o=null,i=0,u=!1;return function(){return new Promise((d,w)=>{const r=function(){i=Date.now(),o=null,u=!1;try{n(),d()}catch(n){w(n)}},a=Date.now(),f=e-(a-i);f<=0&&!u?(null!=o&&clearTimeout(o),u=!0,t(r)):o||u?d():o=setTimeout(()=>t(r),f)})}}},n”, ” function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const l=i(188),a=i(189),r=i(8),h=Math.PI/2,o="left",s="center",n={above:{parallel:0,normal:-h,horizontal:0,vertical:-h},below:{parallel:0,normal:h,horizontal:0,vertical:h},left:{parallel:-h,normal:0,horizontal:0,vertical:-h},right:{parallel:h,normal:0,horizontal:0,vertical:h}},d={above:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"alphabetic",vertical:"middle"},below:{justified:"bottom",parallel:"hanging",normal:"middle",horizontal:"hanging",vertical:"middle"},left:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"},right:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"}},_={above:{justified:s,parallel:s,normal:o,horizontal:s,vertical:o},below:{justified:s,parallel:s,normal:o,horizontal:s,vertical:o},left:{justified:s,parallel:s,normal:"right",horizontal:"right",vertical:s},right:{justified:s,parallel:s,normal:o,horizontal:o,vertical:s}},c={above:"right",below:o,left:"right",right:o},m={above:o,below:"right",left:"right",right:o};class g extends a.ContentLayoutable{constructor(i,t){switch(super(),this.side=i,this.obj=t,this.side){case"above":this._dim=0,this._normals=[0,-1];break;case"below":this._dim=0,this._normals=[0,1];break;case"left":this._dim=1,this._normals=[-1,0];break;case"right":this._dim=1,this._normals=[1,0]}this.is_horizontal?this.set_sizing({width_policy:"max",height_policy:"fixed"}):this.set_sizing({width_policy:"fixed",height_policy:"max"})}_content_size(){return new l.Sizeable(this.get_oriented_size())}get_oriented_size(){const{width:i,height:t}=this.obj.get_size();return!this.obj.rotate||this.is_horizontal?{width:i,height:t}:{width:t,height:i}}has_size_changed(){const{width:i,height:t}=this.get_oriented_size();return this.is_horizontal?this.bbox.height!=t:this.bbox.width!=i}get dimension(){return this._dim}get normals(){return this._normals}get is_horizontal(){return 0==this._dim}get is_vertical(){return 1==this._dim}apply_label_text_heuristics(i,t){const e=this.side;let l,a;r.isString(t)?(l=d[e][t],a=_[e][t]):0===t?(l="whatever",a="whatever"):t<0?(l="middle",a=c[e]):(l="middle",a=m[e]),i.textBaseline=l,i.textAlign=a}get_label_angle_heuristic(i){return n[this.side][i]}}e.SidePanel=g,g.__name__="SidePanel"},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(14),o=t(66),a=t(30),n=t(280),p=new i.Signal0({},"gmaps_ready");class l extends n.PlotView{initialize(){this.pause(),super.initialize(),this._tiles_loaded=!1,this.zoom_count=0;const{zoom:t,lat:e,lng:s}=this.model.map_options;if(this.initial_zoom=t,this.initial_lat=e,this.initial_lng=s,"undefined"==typeof google||null==google.maps){if(void 0===window._bokeh_gmaps_callback){!function(t){window._bokeh_gmaps_callback=()=>p.emit();const e=document.createElement("script");e.type="text/javascript",e.src=`https://maps.googleapis.com/maps/api/js?v=3.36&key=${t}&callback=_bokeh_gmaps_callback`,document.body.appendChild(e)}(atob(this.model.api_key))}p.connect(()=>this.request_render())}this.unpause()}remove(){o.remove(this.map_el),super.remove()}update_range(t){if(null==t)this.map.setCenter({lat:this.initial_lat,lng:this.initial_lng}),this.map.setOptions({zoom:this.initial_zoom}),super.update_range(null);else if(null!=t.sdx||null!=t.sdy)this.map.panBy(t.sdx||0,t.sdy||0),super.update_range(t);else if(null!=t.factor){if(10!==this.zoom_count)return void(this.zoom_count+=1);this.zoom_count=0,this.pause(),super.update_range(t);const e=t.factor<0?-1:1,s=this.map.getZoom(),i=s+e;if(i>=2){this.map.setZoom(i);const[t,e,,]=this._get_projected_bounds();e-t<0&&this.map.setZoom(s)}this.unpause()}this._set_bokeh_ranges()}_build_map(){const{maps:t}=google;this.map_types={satellite:t.MapTypeId.SATELLITE,terrain:t.MapTypeId.TERRAIN,roadmap:t.MapTypeId.ROADMAP,hybrid:t.MapTypeId.HYBRID};const e=this.model.map_options,s={center:new t.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:this.map_types[e.map_type],scaleControl:e.scale_control,tilt:e.tilt};null!=e.styles&&(s.styles=JSON.parse(e.styles)),this.map_el=o.div({style:{position:"absolute"}}),this.canvas_view.add_underlay(this.map_el),this.map=new t.Map(this.map_el,s),t.event.addListener(this.map,"idle",()=>this._set_bokeh_ranges()),t.event.addListener(this.map,"bounds_changed",()=>this._set_bokeh_ranges()),t.event.addListenerOnce(this.map,"tilesloaded",()=>this._render_finished()),this.connect(this.model.properties.map_options.change,()=>this._update_options()),this.connect(this.model.map_options.properties.styles.change,()=>this._update_styles()),this.connect(this.model.map_options.properties.lat.change,()=>this._update_center("lat")),this.connect(this.model.map_options.properties.lng.change,()=>this._update_center("lng")),this.connect(this.model.map_options.properties.zoom.change,()=>this._update_zoom()),this.connect(this.model.map_options.properties.map_type.change,()=>this._update_map_type()),this.connect(this.model.map_options.properties.scale_control.change,()=>this._update_scale_control()),this.connect(this.model.map_options.properties.tilt.change,()=>this._update_tilt())}_render_finished(){this._tiles_loaded=!0,this.notify_finished()}has_finished(){return super.has_finished()&&!0===this._tiles_loaded}_get_latlon_bounds(){const t=this.map.getBounds(),e=t.getNorthEast(),s=t.getSouthWest();return[s.lng(),e.lng(),s.lat(),e.lat()]}_get_projected_bounds(){const[t,e,s,i]=this._get_latlon_bounds(),[o,n]=a.wgs84_mercator.forward([t,s]),[p,l]=a.wgs84_mercator.forward([e,i]);return[o,p,n,l]}_set_bokeh_ranges(){const[t,e,s,i]=this._get_projected_bounds();this.frame.x_range.setv({start:t,end:e}),this.frame.y_range.setv({start:s,end:i})}_update_center(t){const e=this.map.getCenter().toJSON();e[t]=this.model.map_options[t],this.map.setCenter(e),this._set_bokeh_ranges()}_update_map_type(){this.map.setOptions({mapTypeId:this.map_types[this.model.map_options.map_type]})}_update_scale_control(){this.map.setOptions({scaleControl:this.model.map_options.scale_control})}_update_tilt(){this.map.setOptions({tilt:this.model.map_options.tilt})}_update_options(){this._update_styles(),this._update_center("lat"),this._update_center("lng"),this._update_zoom(),this._update_map_type()}_update_styles(){this.map.setOptions({styles:JSON.parse(this.model.map_options.styles)})}_update_zoom(){this.map.setOptions({zoom:this.model.map_options.zoom}),this._set_bokeh_ranges()}_map_hook(t,e){if(null==this.map&&"undefined"!=typeof google&&null!=google.maps&&this._build_map(),null!=this.map_el){const[t,s,i,o]=e;this.map_el.style.top=`${s}px`,this.map_el.style.left=`${t}px`,this.map_el.style.width=`${i}px`,this.map_el.style.height=`${o}px`}}_paint_empty(t,e){const s=this.layout._width.value,i=this.layout._height.value,[o,a,n,p]=e;t.clearRect(0,0,s,i),t.beginPath(),t.moveTo(0,0),t.lineTo(0,i),t.lineTo(s,i),t.lineTo(s,0),t.lineTo(0,0),t.moveTo(o,a),t.lineTo(o+n,a),t.lineTo(o+n,a+p),t.lineTo(o,a+p),t.lineTo(o,a),t.closePath(),null!=this.model.border_fill_color&&(t.fillStyle=this.model.border_fill_color,t.fill())}}s.GMapPlotView=l,l.__name__="GMapPlotView"},n”, ” function _(a,e,n){Object.defineProperty(n,"__esModule",{value:!0});var g=a(186);n.DataRange=g.DataRange;var R=a(185);n.DataRange1d=R.DataRange1d;var r=a(88);n.FactorRange=r.FactorRange;var t=a(89);n.Range=t.Range;var d=a(130);n.Range1d=d.Range1d},n”, ” function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});var n=e(78);d.GlyphRenderer=n.GlyphRenderer;var R=e(97);d.GraphRenderer=R.GraphRenderer;var a=e(149);d.GuideRenderer=a.GuideRenderer;var G=e(63);d.Renderer=G.Renderer},n”, ” function _(a,e,c){Object.defineProperty(c,"__esModule",{value:!0});var l=a(184);c.CategoricalScale=l.CategoricalScale;var o=a(120);c.ContinuousScale=o.ContinuousScale;var r=a(119);c.LinearScale=r.LinearScale;var S=a(129);c.LogScale=S.LogScale;var n=a(121);c.Scale=n.Scale},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),e(1).__exportStar(e(99),o);var n=e(76);o.Selection=n.Selection},n”, ” function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var o=a(293);r.ServerSentDataSource=o.ServerSentDataSource;var S=a(295);r.AjaxDataSource=S.AjaxDataSource;var u=a(73);r.ColumnDataSource=u.ColumnDataSource;var t=a(74);r.ColumnarDataSource=t.ColumnarDataSource;var c=a(95);r.CDSView=c.CDSView;var D=a(75);r.DataSource=D.DataSource;var v=a(296);r.GeoJSONDataSource=v.GeoJSONDataSource;var n=a(294);r.WebDataSource=n.WebDataSource},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const a=e(294);class s extends a.WebDataSource{constructor(e){super(e),this.initialized=!1}destroy(){super.destroy()}setup(){if(!this.initialized){this.initialized=!0,new EventSource(this.data_url).onmessage=e=>{this.load_data(JSON.parse(e.data),this.mode,this.max_size)}}}}i.ServerSentDataSource=s,s.__name__="ServerSentDataSource"},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const r=e(1),s=e(73),i=r.__importStar(e(19));class n extends s.ColumnDataSource{constructor(e){super(e)}get_column(e){const t=this.data[e];return null!=t?t:[]}initialize(){super.initialize(),this.setup()}load_data(e,t,a){const{adapter:r}=this;let s;switch(s=null!=r?r.execute(this,{response:e}):e,t){case"replace":this.data=s;break;case"append":{const e=this.data;for(const t of this.columns()){const r=Array.from(e[t]),i=Array.from(s[t]);s[t]=r.concat(i).slice(-a)}this.data=s;break}}}static init_WebDataSource(){this.define({mode:[i.UpdateMode,"replace"],max_size:[i.Number],adapter:[i.Any,null],data_url:[i.String]})}}a.WebDataSource=n,n.__name__="WebDataSource",n.init_WebDataSource()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),a=t(294),r=t(70),o=s.__importStar(t(19));class n extends a.WebDataSource{constructor(t){super(t),this.initialized=!1}static init_AjaxDataSource(){this.define({polling_interval:[o.Number],content_type:[o.String,"application/json"],http_headers:[o.Any,{}],method:[o.HTTPMethod,"POST"],if_modified:[o.Boolean,!1]})}destroy(){null!=this.interval&&clearInterval(this.interval),super.destroy()}setup(){if(!this.initialized&&(this.initialized=!0,this.get_data(this.mode),this.polling_interval)){const t=()=>this.get_data(this.mode,this.max_size,this.if_modified);this.interval=setInterval(t,this.polling_interval)}}get_data(t,e=0,i=!1){const s=this.prepare_request();s.addEventListener("load",()=>this.do_load(s,t,e)),s.addEventListener("error",()=>this.do_error(s)),s.send()}prepare_request(){const t=new XMLHttpRequest;t.open(this.method,this.data_url,!0),t.withCredentials=!1,t.setRequestHeader("Content-Type",this.content_type);const e=this.http_headers;for(const i in e){const s=e[i];t.setRequestHeader(i,s)}return t}do_load(t,e,i){if(200===t.status){const s=JSON.parse(t.responseText);this.load_data(s,e,i)}}do_error(t){r.logger.error(`Failed to fetch JSON from ${this.data_url} with code ${t.status}`)}}i.AjaxDataSource=n,n.__name__="AjaxDataSource",n.init_AjaxDataSource()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1),n=e(74),s=e(70),a=r.__importStar(e(19)),i=e(9);function l(e){return null!=e?e:NaN}class c extends n.ColumnarDataSource{constructor(e){super(e)}static init_GeoJSONDataSource(){this.define({geojson:[a.Any]}),this.internal({data:[a.Any,{}]})}initialize(){super.initialize(),this._update_data()}connect_signals(){super.connect_signals(),this.connect(this.properties.geojson.change,()=>this._update_data())}_update_data(){this.data=this.geojson_to_column_data()}_get_new_list_array(e){return i.range(0,e).map(e=>[])}_get_new_nan_array(e){return i.range(0,e).map(e=>NaN)}_add_properties(e,t,o,r){const n=e.properties||{};for(const e in n)t.hasOwnProperty(e)||(t[e]=this._get_new_nan_array(r)),t[e][o]=l(n[e])}_add_geometry(e,t,o){function r(e,t){return e.concat([[NaN,NaN,NaN]]).concat(t)}switch(e.type){case"Point":{const[r,n,s]=e.coordinates;t.x[o]=r,t.y[o]=n,t.z[o]=l(s);break}case"LineString":{const{coordinates:r}=e;for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"Polygon":{e.coordinates.length>1&&s.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used.");const r=e.coordinates[0];for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"MultiPoint":s.logger.warn("MultiPoint not supported in Bokeh");break;case"MultiLineString":{const n=e.coordinates.reduce(r);for(let e=0;e<n.length;e++){const[r,s,a]=n[e];t.xs[o][e]=r,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"MultiPolygon":{const n=[];for(const t of e.coordinates)t.length>1&&s.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used."),n.push(t[0]);const a=n.reduce(r);for(let e=0;e<a.length;e++){const[r,n,s]=a[e];t.xs[o][e]=r,t.ys[o][e]=n,t.zs[o][e]=l(s)}break}default:throw new Error(`Invalid GeoJSON geometry type: ${e.type}`)}}geojson_to_column_data(){const e=JSON.parse(this.geojson);let t;switch(e.type){case"GeometryCollection":if(null==e.geometries)throw new Error("No geometries found in GeometryCollection");if(0===e.geometries.length)throw new Error("geojson.geometries must have one or more items");t=e.geometries;break;case"FeatureCollection":if(null==e.features)throw new Error("No features found in FeaturesCollection");if(0==e.features.length)throw new Error("geojson.features must have one or more items");t=e.features;break;default:throw new Error("Bokeh only supports type GeometryCollection and FeatureCollection at top level")}let o=0;for(const e of t){const t="Feature"===e.type?e.geometry:e;"GeometryCollection"==t.type?o+=t.geometries.length:o+=1}const r={x:this._get_new_nan_array(o),y:this._get_new_nan_array(o),z:this._get_new_nan_array(o),xs:this._get_new_list_array(o),ys:this._get_new_list_array(o),zs:this._get_new_list_array(o)};let n=0;for(const e of t){const t="Feature"==e.type?e.geometry:e;if("GeometryCollection"==t.type)for(const s of t.geometries)this._add_geometry(s,r,n),"Feature"===e.type&&this._add_properties(e,r,n,o),n+=1;else this._add_geometry(t,r,n),"Feature"===e.type&&this._add_properties(e,r,n,o),n+=1}return r}}o.GeoJSONDataSource=c,c.__name__="GeoJSONDataSource",c.init_GeoJSONDataSource()},n”, ” function _(e,r,i){Object.defineProperty(i,"__esModule",{value:!0});var c=e(109);i.AdaptiveTicker=c.AdaptiveTicker;var a=e(108);i.BasicTicker=a.BasicTicker;var k=e(151);i.CategoricalTicker=k.CategoricalTicker;var T=e(162);i.CompositeTicker=T.CompositeTicker;var t=e(110);i.ContinuousTicker=t.ContinuousTicker;var o=e(161);i.DatetimeTicker=o.DatetimeTicker;var v=e(163);i.DaysTicker=v.DaysTicker;var n=e(298);i.FixedTicker=n.FixedTicker;var s=e(170);i.LogTicker=s.LogTicker;var l=e(173);i.MercatorTicker=l.MercatorTicker;var u=e(166);i.MonthsTicker=u.MonthsTicker;var d=e(164);i.SingleIntervalTicker=d.SingleIntervalTicker;var g=e(111);i.Ticker=g.Ticker;var C=e(167);i.YearsTicker=C.YearsTicker},n”, ” function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=i(1),n=i(110),s=r.__importStar(i(19));class _ extends n.ContinuousTicker{constructor(i){super(i),this.min_interval=0,this.max_interval=0}static init_FixedTicker(){this.define({ticks:[s.Array,[]],minor_ticks:[s.Array,[]]})}get_ticks_no_defaults(i,t,e,r){return{major:this.ticks,minor:this.minor_ticks}}get_interval(i,t,e){return 0}}e.FixedTicker=_,_.__name__="FixedTicker",_.init_FixedTicker()},n”, ” function _(e,r,o){Object.defineProperty(o,"__esModule",{value:!0});var T=e(300);o.BBoxTileSource=T.BBoxTileSource;var c=e(301);o.MercatorTileSource=c.MercatorTileSource;var i=e(304);o.QUADKEYTileSource=i.QUADKEYTileSource;var l=e(305);o.TileRenderer=l.TileRenderer;var S=e(302);o.TileSource=S.TileSource;var u=e(308);o.TMSTileSource=u.TMSTileSource;var a=e(306);o.WMTSTileSource=a.WMTSTileSource},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(1),i=e(301),l=o.__importStar(e(19));class _ extends i.MercatorTileSource{constructor(e){super(e)}static init_BBoxTileSource(){this.define({use_latlon:[l.Boolean,!1]})}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars);let i,l,_,n;return this.use_latlon?[l,n,i,_]=this.get_tile_geographic_bounds(e,t,r):[l,n,i,_]=this.get_tile_meter_bounds(e,t,r),o.replace("{XMIN}",l.toString()).replace("{YMIN}",n.toString()).replace("{XMAX}",i.toString()).replace("{YMAX}",_.toString())}}r.BBoxTileSource=_,_.__name__="BBoxTileSource",_.init_BBoxTileSource()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const _=t(1),s=t(302),r=_.__importStar(t(19)),o=t(9),n=t(303);class l extends s.TileSource{constructor(t){super(t)}static init_MercatorTileSource(){this.define({snap_to_zoom:[r.Boolean,!1],wrap_around:[r.Boolean,!0]}),this.override({x_origin_offset:20037508.34,y_origin_offset:20037508.34,initial_resolution:156543.03392804097})}initialize(){super.initialize(),this._resolutions=o.range(this.min_zoom,this.max_zoom+1).map(t=>this.get_resolution(t))}_computed_initial_resolution(){return null!=this.initial_resolution?this.initial_resolution:2*Math.PI*6378137/this.tile_size}is_valid_tile(t,e,i){return!(!this.wrap_around&&(t<0||t>=2**i))&&!(e<0||e>=2**i)}parent_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=_.substring(0,_.length-1);return this.quadkey_to_tile_xyz(s)}get_resolution(t){return this._computed_initial_resolution()/2**t}get_resolution_by_extent(t,e,i){return[(t[2]-t[0])/i,(t[3]-t[1])/e]}get_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s);let o=0;for(const t of this._resolutions){if(r>t){if(0==o)return 0;if(o>0)return o-1}o+=1}return o-1}get_closest_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s),o=this._resolutions.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t}));return this._resolutions.indexOf(o)}snap_to_zoom_level(t,e,i,_){const[s,r,o,n]=t,l=this._resolutions[_];let u=i*l,a=e*l;if(!this.snap_to_zoom){const t=(o-s)/u,e=(n-r)/a;t>e?(u=o-s,a*=t):(u*=e,a=n-r)}const h=(u-(o-s))/2,c=(a-(n-r))/2;return[s-h,r-c,o+h,n+c]}tms_to_wmts(t,e,i){return[t,2**i-1-e,i]}wmts_to_tms(t,e,i){return[t,2**i-1-e,i]}pixels_to_meters(t,e,i){const _=this.get_resolution(i);return[t*_-this.x_origin_offset,e*_-this.y_origin_offset]}meters_to_pixels(t,e,i){const _=this.get_resolution(i);return[(t+this.x_origin_offset)/_,(e+this.y_origin_offset)/_]}pixels_to_tile(t,e){let i=Math.ceil(t/this.tile_size);return i=0===i?i:i-1,[i,Math.max(Math.ceil(e/this.tile_size)-1,0)]}pixels_to_raster(t,e,i){return[t,(this.tile_size<<i)-e]}meters_to_tile(t,e,i){const[_,s]=this.meters_to_pixels(t,e,i);return this.pixels_to_tile(_,s)}get_tile_meter_bounds(t,e,i){const[_,s]=this.pixels_to_meters(t*this.tile_size,e*this.tile_size,i),[r,o]=this.pixels_to_meters((t+1)*this.tile_size,(e+1)*this.tile_size,i);return[_,s,r,o]}get_tile_geographic_bounds(t,e,i){const _=this.get_tile_meter_bounds(t,e,i),[s,r,o,l]=n.meters_extent_to_geographic(_);return[s,r,o,l]}get_tiles_by_extent(t,e,i=1){const[_,s,r,o]=t;let[n,l]=this.meters_to_tile(_,s,e),[u,a]=this.meters_to_tile(r,o,e);n-=i,l-=i,u+=i,a+=i;const h=[];for(let t=a;t>=l;t–)for(let i=n;i<=u;i++)this.is_valid_tile(i,t,e)&&h.push([i,t,e,this.get_tile_meter_bounds(i,t,e)]);return this.sort_tiles_from_center(h,[n,l,u,a]),h}quadkey_to_tile_xyz(t){let e=0,i=0;const _=t.length;for(let s=_;s>0;s–){const r=1<<s-1;switch(t.charAt(_-s)){case"0":continue;case"1":e|=r;break;case"2":i|=r;break;case"3":e|=r,i|=r;break;default:throw new TypeError(`Invalid Quadkey: ${t}`)}}return[e,i,_]}tile_xyz_to_quadkey(t,e,i){let _="";for(let s=i;s>0;s–){const i=1<<s-1;let r=0;0!=(t&i)&&(r+=1),0!=(e&i)&&(r+=2),_+=r.toString()}return _}children_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=[];for(let t=0;t<=3;t++){const[e,i,r]=this.quadkey_to_tile_xyz(_+t.toString()),o=this.get_tile_meter_bounds(e,i,r);s.push([e,i,r,o])}return s}get_closest_parent_by_tile_xyz(t,e,i){const _=this.calculate_world_x_by_tile_xyz(t,e,i);[t,e,i]=this.normalize_xyz(t,e,i);let s=this.tile_xyz_to_quadkey(t,e,i);for(;s.length>0;)if(s=s.substring(0,s.length-1),[t,e,i]=this.quadkey_to_tile_xyz(s),[t,e,i]=this.denormalize_xyz(t,e,i,_),this.tiles.has(this.tile_xyz_to_key(t,e,i)))return[t,e,i];return[0,0,0]}normalize_xyz(t,e,i){if(this.wrap_around){const _=2**i;return[(t%_+_)%_,e,i]}return[t,e,i]}denormalize_xyz(t,e,i,_){return[t+_*2**i,e,i]}denormalize_meters(t,e,i,_){return[t+2*_*Math.PI*6378137,e]}calculate_world_x_by_tile_xyz(t,e,i){return Math.floor(t/2**i)}}i.MercatorTileSource=l,l.__name__="MercatorTileSource",l.init_MercatorTileSource()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1),n=e(69),s=i.__importStar(e(19));class l extends n.Model{constructor(e){super(e)}static init_TileSource(){this.define({url:[s.String,""],tile_size:[s.Number,256],max_zoom:[s.Number,30],min_zoom:[s.Number,0],extra_url_vars:[s.Any,{}],attribution:[s.String,""],x_origin_offset:[s.Number],y_origin_offset:[s.Number],initial_resolution:[s.Number]})}initialize(){super.initialize(),this.tiles=new Map,this._normalize_case()}connect_signals(){super.connect_signals(),this.connect(this.change,()=>this._clear_cache())}string_lookup_replace(e,t){let r=e;for(const e in t){const i=t[e];r=r.replace(`{${e}}`,i)}return r}_normalize_case(){const e=this.url.replace("{x}","{X}").replace("{y}","{Y}").replace("{z}","{Z}").replace("{q}","{Q}").replace("{xmin}","{XMIN}").replace("{ymin}","{YMIN}").replace("{xmax}","{XMAX}").replace("{ymax}","{YMAX}");this.url=e}_clear_cache(){this.tiles=new Map}tile_xyz_to_key(e,t,r){return`${e}:${t}:${r}`}key_to_tile_xyz(e){const[t,r,i]=e.split(":").map(e=>parseInt(e));return[t,r,i]}sort_tiles_from_center(e,t){const[r,i,n,s]=t,l=(n-r)/2+r,a=(s-i)/2+i;e.sort((function(e,t){return Math.sqrt((l-e[0])**2+(a-e[1])**2)-Math.sqrt((l-t[0])**2+(a-t[1])**2)}))}get_image_url(e,t,r){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",t.toString()).replace("{Z}",r.toString())}}r.TileSource=l,l.__name__="TileSource",l.init_TileSource()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(30);function o(e,t){return n.wgs84_mercator.forward([e,t])}function c(e,t){return n.wgs84_mercator.inverse([e,t])}r.geographic_to_meters=o,r.meters_to_geographic=c,r.geographic_extent_to_meters=function(e){const[t,r,n,c]=e,[_,i]=o(t,r),[s,u]=o(n,c);return[_,i,s,u]},r.meters_extent_to_geographic=function(e){const[t,r,n,o]=e,[_,i]=c(t,r),[s,u]=c(n,o);return[_,i,s,u]}},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const _=e(301);class s extends _.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const _=this.string_lookup_replace(this.url,this.extra_url_vars),[s,o,u]=this.tms_to_wmts(e,t,r),c=this.tile_xyz_to_quadkey(s,o,u);return _.replace("{Q}",c)}}r.QUADKEYTileSource=s,s.__name__="QUADKEYTileSource"},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),_=e(306),a=e(79),n=e(130),r=e(66),h=s.__importStar(e(19)),l=e(223),o=e(9),d=e(8),m=e(77),c=e(73),u=e(307);class p extends a.DataRendererView{initialize(){this._tiles=[],super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render()),this.connect(this.model.tile_source.change,()=>this.request_render())}get_extent(){return[this.x_range.start,this.y_range.start,this.x_range.end,this.y_range.end]}get map_plot(){return this.plot_model}get map_canvas(){return this.plot_view.canvas_view.ctx}get map_frame(){return this.plot_view.frame}get x_range(){return this.map_plot.x_range}get y_range(){return this.map_plot.y_range}_set_data(){this.extent=this.get_extent(),this._last_height=void 0,this._last_width=void 0}_update_attribution(){null!=this.attribution_el&&r.removeElement(this.attribution_el);const{attribution:e}=this.model.tile_source;if(d.isString(e)&&e.length>0){const{layout:t,frame:i}=this.plot_view,s=t._width.value-i._right.value,_=t._height.value-i._bottom.value,a=i._width.value;this.attribution_el=r.div({class:u.bk_tile_attribution,style:{position:"absolute",right:`${s}px`,bottom:`${_}px`,"max-width":`${a-4}px`,padding:"2px","background-color":"rgba(255,255,255,0.5)","font-size":"9px","line-height":"1.05","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}}),this.plot_view.canvas_view.add_event(this.attribution_el),this.attribution_el.innerHTML=e,this.attribution_el.title=this.attribution_el.textContent.replace(/\s\n\s*/g," ")}}_map_data(){this.initial_extent=this.get_extent();const e=this.model.tile_source.get_level_by_extent(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value),t=this.model.tile_source.snap_to_zoom_level(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value,e);this.x_range.start=t[0],this.y_range.start=t[1],this.x_range.end=t[2],this.y_range.end=t[3],this.x_range instanceof n.Range1d&&(this.x_range.reset_start=t[0],this.x_range.reset_end=t[2]),this.y_range instanceof n.Range1d&&(this.y_range.reset_start=t[1],this.y_range.reset_end=t[3]),this._update_attribution()}_create_tile(e,t,i,s,_=!1){const[a,n,r]=this.model.tile_source.normalize_xyz(e,t,i),h={img:void 0,tile_coords:[e,t,i],normalized_coords:[a,n,r],quadkey:this.model.tile_source.tile_xyz_to_quadkey(e,t,i),cache_key:this.model.tile_source.tile_xyz_to_key(e,t,i),bounds:s,loaded:!1,finished:!1,x_coord:s[0],y_coord:s[3]},o=this.model.tile_source.get_image_url(a,n,r);new l.ImageLoader(o,{loaded:e=>{Object.assign(h,{img:e,loaded:!0}),_?(h.finished=!0,this.notify_finished()):this.request_render()},failed(){h.finished=!0}}),this.model.tile_source.tiles.set(h.cache_key,h),this._tiles.push(h)}_enforce_aspect_ratio(){if(this._last_height!==this.map_frame._height.value||this._last_width!==this.map_frame._width.value){const e=this.get_extent(),t=this.model.tile_source.get_level_by_extent(e,this.map_frame._height.value,this.map_frame._width.value),i=this.model.tile_source.snap_to_zoom_level(e,this.map_frame._height.value,this.map_frame._width.value,t);this.x_range.setv({start:i[0],end:i[2]}),this.y_range.setv({start:i[1],end:i[3]}),this.extent=i,this._last_height=this.map_frame._height.value,this._last_width=this.map_frame._width.value}}has_finished(){if(!super.has_finished())return!1;if(0===this._tiles.length)return!1;for(const e of this._tiles)if(!e.finished)return!1;return!0}render(){null==this.map_initialized&&(this._set_data(),this._map_data(),this.map_initialized=!0),this._enforce_aspect_ratio(),this._update(),null!=this.prefetch_timer&&clearTimeout(this.prefetch_timer),this.prefetch_timer=setTimeout(this._prefetch_tiles.bind(this),500),this.has_finished()&&this.notify_finished()}_draw_tile(e){const t=this.model.tile_source.tiles.get(e);if(null!=t&&t.loaded){const[[e],[i]]=this.plot_view.map_to_screen([t.bounds[0]],[t.bounds[3]]),[[s],[_]]=this.plot_view.map_to_screen([t.bounds[2]],[t.bounds[1]]),a=s-e,n=_-i,r=e,h=i,l=this.map_canvas.getImageSmoothingEnabled();this.map_canvas.setImageSmoothingEnabled(this.model.smoothing),this.map_canvas.drawImage(t.img,r,h,a,n),this.map_canvas.setImageSmoothingEnabled(l),t.finished=!0}}_set_rect(){const e=this.plot_model.properties.outline_line_width.value(),t=this.map_frame._left.value+e/2,i=this.map_frame._top.value+e/2,s=this.map_frame._width.value-e,_=this.map_frame._height.value-e;this.map_canvas.rect(t,i,s,_),this.map_canvas.clip()}_render_tiles(e){this.map_canvas.save(),this._set_rect(),this.map_canvas.globalAlpha=this.model.alpha;for(const t of e)this._draw_tile(t);this.map_canvas.restore()}_prefetch_tiles(){const{tile_source:e}=this.model,t=this.get_extent(),i=this.map_frame._height.value,s=this.map_frame._width.value,_=this.model.tile_source.get_level_by_extent(t,i,s),a=this.model.tile_source.get_tiles_by_extent(t,_);for(let t=0,i=Math.min(10,a.length);t<i;t++){const[i,s,_]=a[t],n=this.model.tile_source.children_by_tile_xyz(i,s,_);for(const t of n){const[i,s,_,a]=t;e.tiles.has(e.tile_xyz_to_key(i,s,_))||this._create_tile(i,s,_,a,!0)}}}_fetch_tiles(e){for(const t of e){const[e,i,s,_]=t;this._create_tile(e,i,s,_)}}_update(){const{tile_source:e}=this.model,{min_zoom:t}=e,{max_zoom:i}=e;let s=this.get_extent();const _=this.extent[2]-this.extent[0]<s[2]-s[0],a=this.map_frame._height.value,n=this.map_frame._width.value;let r=e.get_level_by_extent(s,a,n),h=!1;r<t?(s=this.extent,r=t,h=!0):r>i&&(s=this.extent,r=i,h=!0),h&&(this.x_range.setv({x_range:{start:s[0],end:s[2]}}),this.y_range.setv({start:s[1],end:s[3]})),this.extent=s;const l=e.get_tiles_by_extent(s,r),d=[],m=[],c=[],u=[];for(const t of l){const[i,s,a]=t,n=e.tile_xyz_to_key(i,s,a),r=e.tiles.get(n);if(null!=r&&r.loaded)m.push(n);else if(this.model.render_parents){const[t,n,r]=e.get_closest_parent_by_tile_xyz(i,s,a),h=e.tile_xyz_to_key(t,n,r),l=e.tiles.get(h);if(null!=l&&l.loaded&&!o.includes(c,h)&&c.push(h),_){const t=e.children_by_tile_xyz(i,s,a);for(const[i,s,_]of t){const t=e.tile_xyz_to_key(i,s,_);e.tiles.has(t)&&u.push(t)}}}null==r&&d.push(t)}this._render_tiles(c),this._render_tiles(u),this._render_tiles(m),null!=this.render_timer&&clearTimeout(this.render_timer),this.render_timer=setTimeout(()=>this._fetch_tiles(d),65)}}i.TileRendererView=p,p.__name__="TileRendererView";class g extends a.DataRenderer{constructor(e){super(e),this._selection_manager=new m.SelectionManager({source:new c.ColumnDataSource})}static init_TileRenderer(){this.prototype.default_view=p,this.define({alpha:[h.Number,1],smoothing:[h.Boolean,!0],tile_source:[h.Instance,()=>new _.WMTSTileSource],render_parents:[h.Boolean,!0]})}get_selection_manager(){return this._selection_manager}}i.TileRenderer=g,g.__name__="TileRenderer",g.init_TileRenderer()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(301);class s extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars),[s,c,_]=this.tms_to_wmts(e,t,r);return o.replace("{X}",s.toString()).replace("{Y}",c.toString()).replace("{Z}",_.toString())}}r.WMTSTileSource=s,s.__name__="WMTSTileSource"},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1);t(67),o.__importStar(t(66)).styles.append(".bk-root .bk-tile-attribution a {\n color: black;\n}\n"),i.bk_tile_attribution="bk-tile-attribution"},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(301);class c extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,r,t){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",r.toString()).replace("{Z}",t.toString())}}t.TMSTileSource=c,c.__name__="TMSTileSource"},n”, ” function _(e,r,a){Object.defineProperty(a,"__esModule",{value:!0});var t=e(310);a.CanvasTexture=t.CanvasTexture;var u=e(312);a.ImageURLTexture=u.ImageURLTexture;var v=e(311);a.Texture=v.Texture},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),c=t(311),s=r.__importStar(t(19)),i=t(26);class a extends c.Texture{constructor(t){super(t)}static init_CanvasTexture(){this.define({code:[s.String]})}get func(){const t=i.use_strict(this.code);return new Function("ctx","color","scale","weight",t)}get_pattern(t,e,n){return r=>{const c=document.createElement("canvas");c.width=e,c.height=e;const s=c.getContext("2d");return this.func.call(this,s,t,e,n),r.createPattern(c,this.repetition)}}}n.CanvasTexture=a,a.__name__="CanvasTexture",a.init_CanvasTexture()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),n=e(69),o=r.__importStar(e(19));class _ extends n.Model{constructor(e){super(e)}static init_Texture(){this.define({repetition:[o.TextureRepetition,"repeat"]})}onload(e){e()}}i.Texture=_,_.__name__="Texture",_.init_Texture()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),a=e(311),n=r.__importStar(e(19)),s=e(223);class o extends a.Texture{constructor(e){super(e)}static init_ImageURLTexture(){this.define({url:[n.String]})}initialize(){super.initialize(),this._loader=new s.ImageLoader(this.url)}get_pattern(e,t,i){return e=>this._loader.finished?e.createPattern(this._loader.image,this.repetition):null}onload(e){this._loader.promise.then(()=>e())}}i.ImageURLTexture=o,o.__name__="ImageURLTexture",o.init_ImageURLTexture()},n”, ” function _(o,l,T){Object.defineProperty(T,"__esModule",{value:!0});var a=o(276);T.ActionTool=a.ActionTool;var r=o(314);T.CustomAction=r.CustomAction;var e=o(277);T.HelpTool=e.HelpTool;var v=o(315);T.RedoTool=v.RedoTool;var t=o(316);T.ResetTool=t.ResetTool;var n=o(317);T.SaveTool=n.SaveTool;var s=o(318);T.UndoTool=s.UndoTool;var P=o(319);T.ZoomInTool=P.ZoomInTool;var c=o(321);T.ZoomOutTool=c.ZoomOutTool;var i=o(270);T.ButtonTool=i.ButtonTool;var d=o(322);T.EditTool=d.EditTool;var u=o(323);T.BoxEditTool=u.BoxEditTool;var y=o(324);T.FreehandDrawTool=y.FreehandDrawTool;var m=o(325);T.PointDrawTool=m.PointDrawTool;var x=o(326);T.PolyDrawTool=x.PolyDrawTool;var B=o(327);T.PolyTool=B.PolyTool;var S=o(328);T.PolyEditTool=S.PolyEditTool;var b=o(329);T.BoxSelectTool=b.BoxSelectTool;var h=o(332);T.BoxZoomTool=h.BoxZoomTool;var Z=o(275);T.GestureTool=Z.GestureTool;var p=o(333);T.LassoSelectTool=p.LassoSelectTool;var w=o(334);T.PanTool=w.PanTool;var C=o(335);T.PolySelectTool=C.PolySelectTool;var D=o(336);T.RangeTool=D.RangeTool;var E=o(330);T.SelectTool=E.SelectTool;var H=o(337);T.TapTool=H.TapTool;var R=o(338);T.WheelPanTool=R.WheelPanTool;var A=o(339);T.WheelZoomTool=A.WheelZoomTool;var I=o(340);T.CrosshairTool=I.CrosshairTool;var W=o(341);T.CustomJSHover=W.CustomJSHover;var O=o(342);T.HoverTool=O.HoverTool;var _=o(269);T.InspectTool=_.InspectTool;var f=o(271);T.Tool=f.Tool;var g=o(343);T.ToolProxy=g.ToolProxy;var F=o(268);T.Toolbar=F.Toolbar;var G=o(274);T.ToolbarBase=G.ToolbarBase;var J=o(344);T.ProxyToolbar=J.ProxyToolbar;var L=o(344);T.ToolbarBox=L.ToolbarBox},n”, ” function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1),s=t(276),e=n.__importStar(t(19)),c=t(272);class _ extends s.ActionToolButtonView{css_classes(){return super.css_classes().concat(c.bk_toolbar_button_custom_action)}}i.CustomActionButtonView=_,_.__name__="CustomActionButtonView";class l extends s.ActionToolView{doit(){null!=this.model.callback&&this.model.callback.execute(this.model)}}i.CustomActionView=l,l.__name__="CustomActionView";class u extends s.ActionTool{constructor(t){super(t),this.tool_name="Custom Action",this.button_view=_}static init_CustomAction(){this.prototype.default_view=l,this.define({action_tooltip:[e.String,"Perform a Custom Action"],callback:[e.Any],icon:[e.String]})}get tooltip(){return this.action_tooltip}}i.CustomAction=u,u.__name__="CustomAction",u.init_CustomAction()},n”, ” function _(o,e,t){Object.defineProperty(t,"__esModule",{value:!0});const i=o(276),s=o(278);class n extends i.ActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state_changed,()=>this.model.disabled=!this.plot_view.can_redo())}doit(){this.plot_view.redo()}}t.RedoToolView=n,n.__name__="RedoToolView";class _ extends i.ActionTool{constructor(o){super(o),this.tool_name="Redo",this.icon=s.bk_tool_icon_redo}static init_RedoTool(){this.prototype.default_view=n,this.override({disabled:!0}),this.register_alias("redo",()=>new _)}}t.RedoTool=_,_.__name__="RedoTool",_.init_RedoTool()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(276),i=e(278);class _ extends s.ActionToolView{doit(){this.plot_view.reset()}}o.ResetToolView=_,_.__name__="ResetToolView";class l extends s.ActionTool{constructor(e){super(e),this.tool_name="Reset",this.icon=i.bk_tool_icon_reset}static init_ResetTool(){this.prototype.default_view=_,this.register_alias("reset",()=>new l)}}o.ResetTool=l,l.__name__="ResetTool",l.init_ResetTool()},n”, ” function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(276),s=e(278);class _ extends i.ActionToolView{doit(){this.plot_view.save("bokeh_plot")}}t.SaveToolView=_,_.__name__="SaveToolView";class a extends i.ActionTool{constructor(e){super(e),this.tool_name="Save",this.icon=s.bk_tool_icon_save}static init_SaveTool(){this.prototype.default_view=_,this.register_alias("save",()=>new a)}}t.SaveTool=a,a.__name__="SaveTool",a.init_SaveTool()},n”, ” function _(o,t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=o(276),i=o(278);class s extends n.ActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state_changed,()=>this.model.disabled=!this.plot_view.can_undo())}doit(){this.plot_view.undo()}}e.UndoToolView=s,s.__name__="UndoToolView";class _ extends n.ActionTool{constructor(o){super(o),this.tool_name="Undo",this.icon=i.bk_tool_icon_undo}static init_UndoTool(){this.prototype.default_view=s,this.override({disabled:!0}),this.register_alias("undo",()=>new _)}}e.UndoTool=_,_.__name__="UndoTool",_.init_UndoTool()},n”, ” function _(o,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=o(1),n=o(276),s=o(320),_=e.__importStar(o(19)),m=o(278);class l extends n.ActionToolView{doit(){const o=this.plot_view.frame,t=this.model.dimensions,i="width"==t||"both"==t,e="height"==t||"both"==t,n=s.scale_range(o,this.model.factor,i,e);this.plot_view.push_state("zoom_out",{range:n}),this.plot_view.update_range(n,!1,!0),this.model.document&&this.model.document.interactive_start(this.plot_model)}}i.ZoomInToolView=l,l.__name__="ZoomInToolView";class h extends n.ActionTool{constructor(o){super(o),this.tool_name="Zoom In",this.icon=m.bk_tool_icon_zoom_in}static init_ZoomInTool(){this.prototype.default_view=l,this.define({factor:[_.Percent,.1],dimensions:[_.Dimensions,"both"]}),this.register_alias("zoom_in",()=>new h({dimensions:"both"})),this.register_alias("xzoom_in",()=>new h({dimensions:"width"})),this.register_alias("yzoom_in",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}i.ZoomInTool=h,h.__name__="ZoomInTool",h.init_ZoomInTool()},n”, ” function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=n(10);function r(n,t,e){const[o,r]=[n.start,n.end],c=null!=e?e:(r+o)/2;return[o-(o-c)*t,r-(r-c)*t]}function c(n,[t,e]){const o={};for(const r in n){const c=n[r],[s,l]=c.r_invert(t,e);o[r]={start:s,end:l}}return o}e.scale_highlow=r,e.get_info=c,e.scale_range=function(n,t,e=!0,s=!0,l){t=o.clamp(t,-.9,.9);const a=e?t:0,[u,i]=r(n.bbox.h_range,a,null!=l?l.x:void 0),_=c(n.xscales,[u,i]),f=s?t:0,[d,b]=r(n.bbox.v_range,f,null!=l?l.y:void 0);return{xrs:_,yrs:c(n.yscales,[d,b]),factor:t}}},n”, ” function _(o,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=o(1),s=o(276),n=o(320),_=e.__importStar(o(19)),m=o(278);class l extends s.ActionToolView{doit(){const o=this.plot_view.frame,t=this.model.dimensions,i="width"==t||"both"==t,e="height"==t||"both"==t,s=n.scale_range(o,-this.model.factor,i,e);this.plot_view.push_state("zoom_out",{range:s}),this.plot_view.update_range(s,!1,!0),this.model.document&&this.model.document.interactive_start(this.plot_model)}}i.ZoomOutToolView=l,l.__name__="ZoomOutToolView";class h extends s.ActionTool{constructor(o){super(o),this.tool_name="Zoom Out",this.icon=m.bk_tool_icon_zoom_out}static init_ZoomOutTool(){this.prototype.default_view=l,this.define({factor:[_.Percent,.1],dimensions:[_.Dimensions,"both"]}),this.register_alias("zoom_out",()=>new h({dimensions:"both"})),this.register_alias("xzoom_out",()=>new h({dimensions:"width"})),this.register_alias("yzoom_out",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}i.ZoomOutTool=h,h.__name__="ZoomOutTool",h.init_ZoomOutTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(1).__importStar(e(19)),n=e(9),i=e(8),_=e(275);class r extends _.GestureToolView{constructor(){super(…arguments),this._mouse_in_frame=!0}_move_enter(e){this._mouse_in_frame=!0}_move_exit(e){this._mouse_in_frame=!1}_map_drag(e,t,s){const o=this.plot_view.frame;return o.bbox.contains(e,t)?[o.xscales[s.x_range_name].invert(e),o.yscales[s.y_range_name].invert(t)]:null}_delete_selected(e){const t=e.data_source,s=t.selected.indices;s.sort();for(const e of t.columns()){const o=t.get_array(e);for(let e=0;e<s.length;e++){const t=s[e];o.splice(t-e,1)}}this._emit_cds_changes(t)}_pop_glyphs(e,t){const s=e.columns();if(t&&s.length)for(const o of s){let s=e.get_array(o);const n=s.length-t+1;n<1||(i.isArray(s)||(s=Array.from(s),e.data[o]=s),s.splice(0,n))}}_emit_cds_changes(e,t=!0,s=!0,o=!0){s&&e.selection_manager.clear(),t&&e.change.emit(),o&&(e.data=e.data,e.properties.data.change.emit())}_drag_points(e,t){if(null==this._basepoint)return;const[s,o]=this._basepoint;for(const n of t){const t=this._map_drag(s,o,n),i=this._map_drag(e.sx,e.sy,n);if(null==i||null==t)continue;const[_,r]=i,[a,c]=t,[l,d]=[_-a,r-c],m=n.glyph,u=n.data_source,[p,h]=[m.x.field,m.y.field];for(const e of u.selected.indices)p&&(u.data[p][e]+=l),h&&(u.data[h][e]+=d);u.change.emit()}this._basepoint=[e.sx,e.sy]}_pad_empty_columns(e,t){for(const s of e.columns())n.includes(t,s)||e.get_array(s).push(this.model.empty_value)}_select_event(e,t,s){const o=this.plot_view.frame,{sx:n,sy:i}=e;if(!o.bbox.contains(n,i))return[];const _={type:"point",sx:n,sy:i},r=[];for(const e of s){const s=e.get_selection_manager(),o=e.data_source,n=[this.plot_view.renderer_views[e.id]];s.select(n,_,!0,t)&&r.push(e),o.properties.selected.change.emit()}return r}}s.EditToolView=r,r.__name__="EditToolView";class a extends _.GestureTool{constructor(e){super(e)}static init_EditTool(){this.define({custom_icon:[o.String],custom_tooltip:[o.String],empty_value:[o.Any],renderers:[o.Array,[]]})}get tooltip(){return this.custom_tooltip||this.tool_name}get computed_icon(){return this.custom_icon||this.icon}}s.EditTool=a,a.__name__="EditTool",a.init_EditTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),_=e(66),o=i.__importStar(e(19)),n=e(322),a=e(278);class d extends n.EditToolView{_tap(e){if(null!=this._draw_basepoint||null!=this._basepoint)return;const t=e.shiftKey;this._select_event(e,t,this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)if(e.keyCode===_.Keys.Backspace)this._delete_selected(t);else if(e.keyCode==_.Keys.Esc){t.data_source.selection_manager.clear()}}_set_extent([e,t],[s,i],_,o=!1){const n=this.model.renderers[0],a=this.plot_view.frame,d=n.glyph,l=n.data_source,r=a.xscales[n.x_range_name],h=a.yscales[n.y_range_name],[p,u]=r.r_invert(e,t),[c,m]=h.r_invert(s,i),[f,b]=[(p+u)/2,(c+m)/2],[y,x]=[u-p,m-c],[w,g]=[d.x.field,d.y.field],[v,E]=[d.width.field,d.height.field];if(_)this._pop_glyphs(l,this.model.num_objects),w&&l.get_array(w).push(f),g&&l.get_array(g).push(b),v&&l.get_array(v).push(y),E&&l.get_array(E).push(x),this._pad_empty_columns(l,[w,g,v,E]);else{const e=l.data[w].length-1;w&&(l.data[w][e]=f),g&&(l.data[g][e]=b),v&&(l.data[v][e]=y),E&&(l.data[E][e]=x)}this._emit_cds_changes(l,!0,!1,o)}_update_box(e,t=!1,s=!1){if(null==this._draw_basepoint)return;const i=[e.sx,e.sy],_=this.plot_view.frame,o=this.model.dimensions,n=this.model._get_dim_limits(this._draw_basepoint,i,_,o);if(null!=n){const[e,i]=n;this._set_extent(e,i,t,s)}}_doubletap(e){this.model.active&&(null!=this._draw_basepoint?(this._update_box(e,!1,!0),this._draw_basepoint=null):(this._draw_basepoint=[e.sx,e.sy],this._select_event(e,!0,this.model.renderers),this._update_box(e,!0,!1)))}_move(e){this._update_box(e,!1,!1)}_pan_start(e){if(e.shiftKey){if(null!=this._draw_basepoint)return;this._draw_basepoint=[e.sx,e.sy],this._update_box(e,!0,!1)}else{if(null!=this._basepoint)return;this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy]}}_pan(e,t=!1,s=!1){if(e.shiftKey){if(null==this._draw_basepoint)return;this._update_box(e,t,s)}else{if(null==this._basepoint)return;this._drag_points(e,this.model.renderers)}}_pan_end(e){if(this._pan(e,!1,!0),e.shiftKey)this._draw_basepoint=null;else{this._basepoint=null;for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0)}}}s.BoxEditToolView=d,d.__name__="BoxEditToolView";class l extends n.EditTool{constructor(e){super(e),this.tool_name="Box Edit Tool",this.icon=a.bk_tool_icon_box_edit,this.event_type=["tap","pan","move"],this.default_order=1}static init_BoxEditTool(){this.prototype.default_view=d,this.define({dimensions:[o.Dimensions,"both"],num_objects:[o.Int,0]})}}s.BoxEditTool=l,l.__name__="BoxEditTool",l.init_BoxEditTool()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1),r=e(66),_=s.__importStar(e(19)),o=e(8),i=e(322),d=e(278);class n extends i.EditToolView{_draw(e,t,a=!1){if(!this.model.active)return;const s=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,s);if(null==r)return;const[_,i]=r,d=s.data_source,n=s.glyph,[h,l]=[n.xs.field,n.ys.field];if("new"==t)this._pop_glyphs(d,this.model.num_objects),h&&d.get_array(h).push([_]),l&&d.get_array(l).push([i]),this._pad_empty_columns(d,[h,l]);else if("add"==t){if(h){const e=d.data[h].length-1;let t=d.get_array(h)[e];o.isArray(t)||(t=Array.from(t),d.data[h][e]=t),t.push(_)}if(l){const e=d.data[l].length-1;let t=d.get_array(l)[e];o.isArray(t)||(t=Array.from(t),d.data[l][e]=t),t.push(i)}}this._emit_cds_changes(d,!0,!0,a)}_pan_start(e){this._draw(e,"new")}_pan(e){this._draw(e,"add")}_pan_end(e){this._draw(e,"add",!0)}_tap(e){this._select_event(e,e.shiftKey,this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===r.Keys.Esc?t.data_source.selection_manager.clear():e.keyCode===r.Keys.Backspace&&this._delete_selected(t)}}a.FreehandDrawToolView=n,n.__name__="FreehandDrawToolView";class h extends i.EditTool{constructor(e){super(e),this.tool_name="Freehand Draw Tool",this.icon=d.bk_tool_icon_freehand_draw,this.event_type=["pan","tap"],this.default_order=3}static init_FreehandDrawTool(){this.prototype.default_view=n,this.define({num_objects:[_.Int,0]})}}a.FreehandDrawTool=h,h.__name__="FreehandDrawTool",h.init_FreehandDrawTool()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(1),i=e(66),a=s.__importStar(e(19)),n=e(322),_=e(278);class r extends n.EditToolView{_tap(e){const t=e.shiftKey;if(this._select_event(e,t,this.model.renderers).length||!this.model.add)return;const o=this.model.renderers[0],s=this._map_drag(e.sx,e.sy,o);if(null==s)return;const i=o.glyph,a=o.data_source,[n,_]=[i.x.field,i.y.field],[r,d]=s;this._pop_glyphs(a,this.model.num_objects),n&&a.get_array(n).push(r),_&&a.get_array(_).push(d),this._pad_empty_columns(a,[n,_]),a.change.emit(),a.data=a.data,a.properties.data.change.emit()}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===i.Keys.Backspace?this._delete_selected(t):e.keyCode==i.Keys.Esc&&t.data_source.selection_manager.clear()}_pan_start(e){this.model.drag&&(this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){this.model.drag&&null!=this._basepoint&&this._drag_points(e,this.model.renderers)}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0);this._basepoint=null}}}o.PointDrawToolView=r,r.__name__="PointDrawToolView";class d extends n.EditTool{constructor(e){super(e),this.tool_name="Point Draw Tool",this.icon=_.bk_tool_icon_point_draw,this.event_type=["tap","pan","move"],this.default_order=2}static init_PointDrawTool(){this.prototype.default_view=r,this.define({add:[a.Boolean,!0],drag:[a.Boolean,!0],num_objects:[a.Int,0]})}}o.PointDrawTool=d,d.__name__="PointDrawTool",d.init_PointDrawTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(66),a=i.__importStar(e(19)),o=e(8),n=e(327),_=e(278);class d extends n.PolyToolView{constructor(){super(…arguments),this._drawing=!1,this._initialized=!1}_tap(e){this._drawing?this._draw(e,"add",!0):this._select_event(e,e.shiftKey,this.model.renderers)}_draw(e,t,s=!1){const i=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,i);if(this._initialized||this.activate(),null==r)return;const[a,n]=this._snap_to_vertex(e,…r),_=i.data_source,d=i.glyph,[l,h]=[d.xs.field,d.ys.field];if("new"==t)this._pop_glyphs(_,this.model.num_objects),l&&_.get_array(l).push([a,a]),h&&_.get_array(h).push([n,n]),this._pad_empty_columns(_,[l,h]);else if("edit"==t){if(l){const e=_.data[l][_.data[l].length-1];e[e.length-1]=a}if(h){const e=_.data[h][_.data[h].length-1];e[e.length-1]=n}}else if("add"==t){if(l){const e=_.data[l].length-1;let t=_.get_array(l)[e];const s=t[t.length-1];t[t.length-1]=a,o.isArray(t)||(t=Array.from(t),_.data[l][e]=t),t.push(s)}if(h){const e=_.data[h].length-1;let t=_.get_array(h)[e];const s=t[t.length-1];t[t.length-1]=n,o.isArray(t)||(t=Array.from(t),_.data[h][e]=t),t.push(s)}}this._emit_cds_changes(_,!0,!1,s)}_show_vertices(){if(!this.model.active)return;const e=[],t=[];for(let s=0;s<this.model.renderers.length;s++){const i=this.model.renderers[s],r=i.data_source,a=i.glyph,[o,n]=[a.xs.field,a.ys.field];if(o)for(const t of r.get_array(o))Array.prototype.push.apply(e,t);if(n)for(const e of r.get_array(n))Array.prototype.push.apply(t,e);this._drawing&&s==this.model.renderers.length-1&&(e.splice(e.length-1,1),t.splice(t.length-1,1))}this._set_vertices(e,t)}_doubletap(e){this.model.active&&(this._drawing?(this._drawing=!1,this._draw(e,"edit",!0)):(this._drawing=!0,this._draw(e,"new",!0)))}_move(e){this._drawing&&this._draw(e,"edit")}_remove(){const e=this.model.renderers[0],t=e.data_source,s=e.glyph,[i,r]=[s.xs.field,s.ys.field];if(i){const e=t.data[i].length-1,s=t.get_array(i)[e];s.splice(s.length-1,1)}if(r){const e=t.data[r].length-1,s=t.get_array(r)[e];s.splice(s.length-1,1)}this._emit_cds_changes(t)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===r.Keys.Backspace?this._delete_selected(t):e.keyCode==r.Keys.Esc&&(this._drawing&&(this._remove(),this._drawing=!1),t.data_source.selection_manager.clear())}_pan_start(e){this.model.drag&&(this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){if(null==this._basepoint||!this.model.drag)return;const[t,s]=this._basepoint;for(const i of this.model.renderers){const r=this._map_drag(t,s,i),a=this._map_drag(e.sx,e.sy,i);if(null==a||null==r)continue;const o=i.data_source,n=i.glyph,[_,d]=[n.xs.field,n.ys.field];if(!_&&!d)continue;const[l,h]=a,[c,g]=r,[p,f]=[l-c,h-g];for(const e of o.selected.indices){let t,s,i;_&&(s=o.data[_][e]),d?(i=o.data[d][e],t=i.length):t=s.length;for(let e=0;e<t;e++)s&&(s[e]+=p),i&&(i[e]+=f)}o.change.emit()}this._basepoint=[e.sx,e.sy]}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source);this._basepoint=null}}activate(){if(this.model.vertex_renderer&&this.model.active){if(this._show_vertices(),!this._initialized)for(const e of this.model.renderers){const t=e.data_source;t.connect(t.properties.data.change,()=>this._show_vertices())}this._initialized=!0}}deactivate(){this._drawing&&(this._remove(),this._drawing=!1),this.model.vertex_renderer&&this._hide_vertices()}}s.PolyDrawToolView=d,d.__name__="PolyDrawToolView";class l extends n.PolyTool{constructor(e){super(e),this.tool_name="Polygon Draw Tool",this.icon=_.bk_tool_icon_poly_draw,this.event_type=["pan","tap","move"],this.default_order=3}static init_PolyDrawTool(){this.prototype.default_view=d,this.define({drag:[a.Boolean,!0],num_objects:[a.Int,0]})}}s.PolyDrawTool=l,l.__name__="PolyDrawTool",l.init_PolyDrawTool()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(1).__importStar(e(19)),i=e(8),s=e(322);class _ extends s.EditToolView{_set_vertices(e,t){const r=this.model.vertex_renderer.glyph,o=this.model.vertex_renderer.data_source,[s,_]=[r.x.field,r.y.field];s&&(i.isArray(e)?o.data[s]=e:r.x={value:e}),_&&(i.isArray(t)?o.data[_]=t:r.y={value:t}),this._emit_cds_changes(o,!0,!0,!1)}_hide_vertices(){this._set_vertices([],[])}_snap_to_vertex(e,t,r){if(this.model.vertex_renderer){const o=this._select_event(e,!1,[this.model.vertex_renderer]),i=this.model.vertex_renderer.data_source,s=this.model.vertex_renderer.glyph,[_,l]=[s.x.field,s.y.field];if(o.length){const e=i.selected.indices[0];_&&(t=i.data[_][e]),l&&(r=i.data[l][e]),i.selection_manager.clear()}}return[t,r]}}r.PolyToolView=_,_.__name__="PolyToolView";class l extends s.EditTool{constructor(e){super(e)}static init_PolyTool(){this.prototype.default_view=_,this.define({vertex_renderer:[o.Instance]})}}r.PolyTool=l,l.__name__="PolyTool",l.init_PolyTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(66),i=e(8),_=e(327),d=e(278);class n extends _.PolyToolView{constructor(){super(…arguments),this._drawing=!1}_doubletap(e){if(!this.model.active)return;const t=this._map_drag(e.sx,e.sy,this.model.vertex_renderer);if(null==t)return;const[s,r]=t,i=this._select_event(e,!1,[this.model.vertex_renderer]),_=this.model.vertex_renderer.data_source,d=this.model.vertex_renderer.glyph,[n,l]=[d.x.field,d.y.field];if(i.length&&null!=this._selected_renderer){const e=_.selected.indices[0];this._drawing?(this._drawing=!1,_.selection_manager.clear()):(_.selected.indices=[e+1],n&&_.get_array(n).splice(e+1,0,s),l&&_.get_array(l).splice(e+1,0,r),this._drawing=!0),_.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}else this._show_vertices(e)}_show_vertices(e){if(!this.model.active)return;const t=this._select_event(e,!1,this.model.renderers);if(!t.length)return this._set_vertices([],[]),this._selected_renderer=null,void(this._drawing=!1);const s=t[0],r=s.glyph,_=s.data_source,d=_.selected.indices[0],[n,l]=[r.xs.field,r.ys.field];let a,c;n?(a=_.data[n][d],i.isArray(a)||(_.data[n][d]=a=Array.from(a))):a=r.xs.value,l?(c=_.data[l][d],i.isArray(c)||(_.data[l][d]=c=Array.from(c))):c=r.ys.value,this._selected_renderer=s,this._set_vertices(a,c)}_move(e){if(this._drawing&&null!=this._selected_renderer){const t=this.model.vertex_renderer,s=t.data_source,r=t.glyph,i=this._map_drag(e.sx,e.sy,t);if(null==i)return;let[_,d]=i;const n=s.selected.indices;[_,d]=this._snap_to_vertex(e,_,d),s.selected.indices=n;const[l,a]=[r.x.field,r.y.field],c=n[0];l&&(s.data[l][c]=_),a&&(s.data[a][c]=d),s.change.emit(),this._selected_renderer.data_source.change.emit()}}_tap(e){const t=this.model.vertex_renderer,s=this._map_drag(e.sx,e.sy,t);if(null==s)return;if(this._drawing&&this._selected_renderer){let[r,i]=s;const _=t.data_source,d=t.glyph,[n,l]=[d.x.field,d.y.field],a=_.selected.indices;[r,i]=this._snap_to_vertex(e,r,i);const c=a[0];if(_.selected.indices=[c+1],n){const e=_.get_array(n),t=e[c];e[c]=r,e.splice(c+1,0,t)}if(l){const e=_.get_array(l),t=e[c];e[c]=i,e.splice(c+1,0,t)}return _.change.emit(),void this._emit_cds_changes(this._selected_renderer.data_source,!0,!1,!0)}const r=e.shiftKey;this._select_event(e,r,[t]),this._select_event(e,r,this.model.renderers)}_remove_vertex(){if(!this._drawing||!this._selected_renderer)return;const e=this.model.vertex_renderer,t=e.data_source,s=e.glyph,r=t.selected.indices[0],[i,_]=[s.x.field,s.y.field];i&&t.get_array(i).splice(r,1),_&&t.get_array(_).splice(r,1),t.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}_pan_start(e){this._select_event(e,!0,[this.model.vertex_renderer]),this._basepoint=[e.sx,e.sy]}_pan(e){null!=this._basepoint&&(this._drag_points(e,[this.model.vertex_renderer]),this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&(this._drag_points(e,[this.model.vertex_renderer]),this._emit_cds_changes(this.model.vertex_renderer.data_source,!1,!0,!0),this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}_keyup(e){if(!this.model.active||!this._mouse_in_frame)return;let t;t=this._selected_renderer?[this.model.vertex_renderer]:this.model.renderers;for(const s of t)e.keyCode===r.Keys.Backspace?(this._delete_selected(s),this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source)):e.keyCode==r.Keys.Esc&&(this._drawing?(this._remove_vertex(),this._drawing=!1):this._selected_renderer&&this._hide_vertices(),s.data_source.selection_manager.clear())}deactivate(){this._selected_renderer&&(this._drawing&&(this._remove_vertex(),this._drawing=!1),this._hide_vertices())}}s.PolyEditToolView=n,n.__name__="PolyEditToolView";class l extends _.PolyTool{constructor(e){super(e),this.tool_name="Poly Edit Tool",this.icon=d.bk_tool_icon_poly_edit,this.event_type=["tap","pan","move"],this.default_order=4}static init_PolyEditTool(){this.prototype.default_view=n}}s.PolyEditTool=l,l.__name__="PolyEditTool",l.init_PolyEditTool()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(1),i=e(330),l=e(105),n=s.__importStar(e(19)),_=e(278);class c extends i.SelectToolView{_compute_limits(e){const t=this.plot_view.frame,o=this.model.dimensions;let s=this._base_point;if("center"==this.model.origin){const[t,o]=s,[i,l]=e;s=[t-(i-t),o-(l-o)]}return this.model._get_dim_limits(s,e,t,o)}_pan_start(e){const{sx:t,sy:o}=e;this._base_point=[t,o]}_pan(e){const{sx:t,sy:o}=e,s=[t,o],[i,l]=this._compute_limits(s);if(this.model.overlay.update({left:i[0],right:i[1],top:l[0],bottom:l[1]}),this.model.select_every_mousemove){const t=e.shiftKey;this._do_select(i,l,!1,t)}}_pan_end(e){const{sx:t,sy:o}=e,s=[t,o],[i,l]=this._compute_limits(s),n=e.shiftKey;this._do_select(i,l,!0,n),this.model.overlay.update({left:null,right:null,top:null,bottom:null}),this._base_point=null,this.plot_view.push_state("box_select",{selection:this.plot_view.get_selection()})}_do_select([e,t],[o,s],i,l=!1){const n={type:"rect",sx0:e,sx1:t,sy0:o,sy1:s};this._select(n,i,l)}}o.BoxSelectToolView=c,c.__name__="BoxSelectToolView";const a=()=>new l.BoxAnnotation({level:"overlay",render_mode:"css",top_units:"screen",left_units:"screen",bottom_units:"screen",right_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class r extends i.SelectTool{constructor(e){super(e),this.tool_name="Box Select",this.icon=_.bk_tool_icon_box_select,this.event_type="pan",this.default_order=30}static init_BoxSelectTool(){this.prototype.default_view=c,this.define({dimensions:[n.Dimensions,"both"],select_every_mousemove:[n.Boolean,!1],overlay:[n.Instance,a],origin:[n.BoxOrigin,"corner"]}),this.register_alias("box_select",()=>new r),this.register_alias("xbox_select",()=>new r({dimensions:"width"})),this.register_alias("ybox_select",()=>new r({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}o.BoxSelectTool=r,r.__name__="BoxSelectTool",r.init_BoxSelectTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(1),n=e(275),o=e(78),i=e(97),c=e(331),_=r.__importStar(e(19)),a=e(66),l=e(281);class d extends n.GestureToolView{get computed_renderers(){const e=this.model.renderers,t=this.plot_model.renderers,s=this.model.names;return c.compute_renderers(e,t,s)}_computed_renderers_by_data_source(){const e={};for(const t of this.computed_renderers){let s;if(t instanceof o.GlyphRenderer)s=t.data_source.id;else{if(!(t instanceof i.GraphRenderer))continue;s=t.node_renderer.data_source.id}s in e||(e[s]=[]),e[s].push(t)}return e}_keyup(e){if(e.keyCode==a.Keys.Esc){for(const e of this.computed_renderers)e.get_selection_manager().clear();this.plot_view.request_render()}}_select(e,t,s){const r=this._computed_renderers_by_data_source();for(const n in r){const o=r[n],i=o[0].get_selection_manager(),c=[];for(const e of o)e.id in this.plot_view.renderer_views&&c.push(this.plot_view.renderer_views[e.id]);i.select(c,e,t,s)}null!=this.model.callback&&this._emit_callback(e),this._emit_selection_event(e,t)}_emit_selection_event(e,t=!0){const{frame:s}=this.plot_view,r=s.xscales.default,n=s.yscales.default;let o;switch(e.type){case"point":{const{sx:t,sy:s}=e,i=r.invert(t),c=n.invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}case"span":{const{sx:t,sy:s}=e,i=r.invert(t),c=n.invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}case"rect":{const{sx0:t,sx1:s,sy0:i,sy1:c}=e,[_,a]=r.r_invert(t,s),[l,d]=n.r_invert(i,c);o=Object.assign(Object.assign({},e),{x0:_,y0:l,x1:a,y1:d});break}case"poly":{const{sx:t,sy:s}=e,i=r.v_invert(t),c=n.v_invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}}this.plot_model.trigger_event(new l.SelectionGeometry(o,t))}}s.SelectToolView=d,d.__name__="SelectToolView";class u extends n.GestureTool{constructor(e){super(e)}static init_SelectTool(){this.define({renderers:[_.Any,"auto"],names:[_.Array,[]]})}}s.SelectTool=u,u.__name__="SelectTool",u.init_SelectTool()},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const r=e(9);t.compute_renderers=function(e,n,t){if(null==e)return[];let u="auto"==e?n:e;return t.length>0&&(u=u.filter(e=>r.includes(t,e.name))),u}},n”, ” function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(1),i=t(275),n=t(105),a=s.__importStar(t(19)),_=t(278);class l extends i.GestureToolView{_match_aspect(t,o,e){const s=e.bbox.aspect,i=e.bbox.h_range.end,n=e.bbox.h_range.start,a=e.bbox.v_range.end,_=e.bbox.v_range.start;let l=Math.abs(t[0]-o[0]),r=Math.abs(t[1]-o[1]);const h=0==r?0:l/r,[c]=h>=s?[1,h/s]:[s/h,1];let m,p,d,u;return t[0]<=o[0]?(m=t[0],p=t[0]+l*c,p>i&&(p=i)):(p=t[0],m=t[0]-l*c,m<n&&(m=n)),l=Math.abs(p-m),t[1]<=o[1]?(u=t[1],d=t[1]+l/s,d>a&&(d=a)):(d=t[1],u=t[1]-l/s,u<_&&(u=_)),r=Math.abs(d-u),t[0]<=o[0]?p=t[0]+s*r:m=t[0]-s*r,[[m,p],[u,d]]}_compute_limits(t){const o=this.plot_view.frame,e=this.model.dimensions;let s,i,n=this._base_point;if("center"==this.model.origin){const[o,e]=n,[s,i]=t;n=[o-(s-o),e-(i-e)]}return this.model.match_aspect&&"both"==e?[s,i]=this._match_aspect(n,t,o):[s,i]=this.model._get_dim_limits(n,t,o,e),[s,i]}_pan_start(t){this._base_point=[t.sx,t.sy]}_pan(t){const o=[t.sx,t.sy],[e,s]=this._compute_limits(o);this.model.overlay.update({left:e[0],right:e[1],top:s[0],bottom:s[1]})}_pan_end(t){const o=[t.sx,t.sy],[e,s]=this._compute_limits(o);this._update(e,s),this.model.overlay.update({left:null,right:null,top:null,bottom:null}),this._base_point=null}_update([t,o],[e,s]){if(Math.abs(o-t)<=5||Math.abs(s-e)<=5)return;const{xscales:i,yscales:n}=this.plot_view.frame,a={};for(const e in i){const s=i[e],[n,_]=s.r_invert(t,o);a[e]={start:n,end:_}}const _={};for(const t in n){const o=n[t],[i,a]=o.r_invert(e,s);_[t]={start:i,end:a}}const l={xrs:a,yrs:_};this.plot_view.push_state("box_zoom",{range:l}),this.plot_view.update_range(l)}}e.BoxZoomToolView=l,l.__name__="BoxZoomToolView";const r=()=>new n.BoxAnnotation({level:"overlay",render_mode:"css",top_units:"screen",left_units:"screen",bottom_units:"screen",right_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class h extends i.GestureTool{constructor(t){super(t),this.tool_name="Box Zoom",this.icon=_.bk_tool_icon_box_zoom,this.event_type="pan",this.default_order=20}static init_BoxZoomTool(){this.prototype.default_view=l,this.define({dimensions:[a.Dimensions,"both"],overlay:[a.Instance,r],match_aspect:[a.Boolean,!1],origin:[a.BoxOrigin,"corner"]}),this.register_alias("box_zoom",()=>new h({dimensions:"both"})),this.register_alias("xbox_zoom",()=>new h({dimensions:"width"})),this.register_alias("ybox_zoom",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}e.BoxZoomTool=h,h.__name__="BoxZoomTool",h.init_BoxZoomTool()},n”, ” function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const l=e(1),a=e(330),o=e(138),i=e(66),_=l.__importStar(e(19)),c=e(278);class n extends a.SelectToolView{initialize(){super.initialize(),this.data=null}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._active_change())}_active_change(){this.model.active||this._clear_overlay()}_keyup(e){e.keyCode==i.Keys.Enter&&this._clear_overlay()}_pan_start(e){const{sx:s,sy:t}=e;this.data={sx:[s],sy:[t]}}_pan(e){const{sx:s,sy:t}=e,[l,a]=this.plot_view.frame.bbox.clip(s,t);if(this.data.sx.push(l),this.data.sy.push(a),this.model.overlay.update({xs:this.data.sx,ys:this.data.sy}),this.model.select_every_mousemove){const s=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!1,s)}}_pan_end(e){this._clear_overlay();const s=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!0,s),this.plot_view.push_state("lasso_select",{selection:this.plot_view.get_selection()})}_clear_overlay(){this.model.overlay.update({xs:[],ys:[]})}_do_select(e,s,t,l){const a={type:"poly",sx:e,sy:s};this._select(a,t,l)}}t.LassoSelectToolView=n,n.__name__="LassoSelectToolView";const h=()=>new o.PolyAnnotation({level:"overlay",xs_units:"screen",ys_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class r extends a.SelectTool{constructor(e){super(e),this.tool_name="Lasso Select",this.icon=c.bk_tool_icon_lasso_select,this.event_type="pan",this.default_order=12}static init_LassoSelectTool(){this.prototype.default_view=n,this.define({select_every_mousemove:[_.Boolean,!0],overlay:[_.Instance,h]}),this.register_alias("lasso_select",()=>new r)}}t.LassoSelectTool=r,r.__name__="LassoSelectTool",r.init_LassoSelectTool()},n”, ” function _(t,s,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),e=t(275),o=i.__importStar(t(19)),a=t(278);class _ extends e.GestureToolView{_pan_start(t){this.last_dx=0,this.last_dy=0;const{sx:s,sy:n}=t,i=this.plot_view.frame.bbox;if(!i.contains(s,n)){const t=i.h_range,e=i.v_range;(s<t.start||s>t.end)&&(this.v_axis_only=!0),(n<e.start||n>e.end)&&(this.h_axis_only=!0)}null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}_pan(t){this._update(t.deltaX,t.deltaY),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}_pan_end(t){this.h_axis_only=!1,this.v_axis_only=!1,null!=this.pan_info&&this.plot_view.push_state("pan",{range:this.pan_info})}_update(t,s){const n=this.plot_view.frame,i=t-this.last_dx,e=s-this.last_dy,o=n.bbox.h_range,a=o.start-i,_=o.end-i,h=n.bbox.v_range,l=h.start-e,r=h.end-e,d=this.model.dimensions;let c,p,m,u,x,y;"width"!=d&&"both"!=d||this.v_axis_only?(c=o.start,p=o.end,m=0):(c=a,p=_,m=-i),"height"!=d&&"both"!=d||this.h_axis_only?(u=h.start,x=h.end,y=0):(u=l,x=r,y=-e),this.last_dx=t,this.last_dy=s;const{xscales:v,yscales:b}=n,g={};for(const t in v){const s=v[t],[n,i]=s.r_invert(c,p);g[t]={start:n,end:i}}const w={};for(const t in b){const s=b[t],[n,i]=s.r_invert(u,x);w[t]={start:n,end:i}}this.pan_info={xrs:g,yrs:w,sdx:m,sdy:y},this.plot_view.update_range(this.pan_info,!0)}}n.PanToolView=_,_.__name__="PanToolView";class h extends e.GestureTool{constructor(t){super(t),this.tool_name="Pan",this.event_type="pan",this.default_order=10}static init_PanTool(){this.prototype.default_view=_,this.define({dimensions:[o.Dimensions,"both"]}),this.register_alias("pan",()=>new h({dimensions:"both"})),this.register_alias("xpan",()=>new h({dimensions:"width"})),this.register_alias("ypan",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip("Pan",this.dimensions)}get icon(){switch(this.dimensions){case"both":return a.bk_tool_icon_pan;case"width":return a.bk_tool_icon_xpan;case"height":return a.bk_tool_icon_ypan}}}n.PanTool=h,h.__name__="PanTool",h.init_PanTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const l=e(1),o=e(330),i=e(138),a=e(66),_=l.__importStar(e(19)),c=e(9),n=e(278);class h extends o.SelectToolView{initialize(){super.initialize(),this.data={sx:[],sy:[]}}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._active_change())}_active_change(){this.model.active||this._clear_data()}_keyup(e){e.keyCode==a.Keys.Enter&&this._clear_data()}_doubletap(e){const t=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!0,t),this.plot_view.push_state("poly_select",{selection:this.plot_view.get_selection()}),this._clear_data()}_clear_data(){this.data={sx:[],sy:[]},this.model.overlay.update({xs:[],ys:[]})}_tap(e){const{sx:t,sy:s}=e;this.plot_view.frame.bbox.contains(t,s)&&(this.data.sx.push(t),this.data.sy.push(s),this.model.overlay.update({xs:c.copy(this.data.sx),ys:c.copy(this.data.sy)}))}_do_select(e,t,s,l){const o={type:"poly",sx:e,sy:t};this._select(o,s,l)}}s.PolySelectToolView=h,h.__name__="PolySelectToolView";const y=()=>new i.PolyAnnotation({level:"overlay",xs_units:"screen",ys_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class d extends o.SelectTool{constructor(e){super(e),this.tool_name="Poly Select",this.icon=n.bk_tool_icon_polygon_select,this.event_type="tap",this.default_order=11}static init_PolySelectTool(){this.prototype.default_view=h,this.define({overlay:[_.Instance,y]}),this.register_alias("poly_select",()=>new d)}}s.PolySelectTool=d,d.__name__="PolySelectTool",d.init_PolySelectTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(105),l=e(70),a=i.__importStar(e(19)),r=e(275),o=e(278);function _(e){switch(e){case 1:return 2;case 2:return 1;case 4:return 5;case 5:return 4;default:return e}}function h(e,t,s,i){if(null==t)return!1;const n=s.compute(t);return Math.abs(e-n)<i}function d(e,t,s,i,n){let l=!0;if(null!=n.left&&null!=n.right){const t=s.invert(e);(t<n.left||t>n.right)&&(l=!1)}if(null!=n.bottom&&null!=n.top){const e=i.invert(t);(e<n.bottom||e>n.top)&&(l=!1)}return l}function u(e,t,s){let i=0;return e>=s.start&&e<=s.end&&(i+=1),t>=s.start&&t<=s.end&&(i+=1),i}function c(e,t,s,i){const n=t.compute(e),l=t.invert(n+s);return l>=i.start&&l<=i.end?l:e}function g(e,t,s){return e>t.start?(t.end=e,s):(t.end=t.start,t.start=e,_(s))}function y(e,t,s){return e<t.end?(t.start=e,s):(t.start=t.end,t.end=e,_(s))}function f(e,t,s,i){const[n,l]=t.r_compute(e.start,e.end),[a,r]=t.r_invert(n+s,l+s),o=u(e.start,e.end,i);u(a,r,i)>=o&&(e.start=a,e.end=r)}s.flip_side=_,s.is_near=h,s.is_inside=d,s.sides_inside=u,s.compute_value=c,s.update_range_end_side=g,s.update_range_start_side=y,s.update_range=f;class v extends r.GestureToolView{initialize(){super.initialize(),this.side=0,this.model.update_overlay_from_ranges()}connect_signals(){super.connect_signals(),null!=this.model.x_range&&this.connect(this.model.x_range.change,()=>this.model.update_overlay_from_ranges()),null!=this.model.y_range&&this.connect(this.model.y_range.change,()=>this.model.update_overlay_from_ranges())}_pan_start(e){this.last_dx=0,this.last_dy=0;const t=this.model.x_range,s=this.model.y_range,i=this.plot_view.frame,l=i.xscales.default,a=i.yscales.default,r=this.model.overlay,{left:o,right:_,top:u,bottom:c}=r,g=this.model.overlay.properties.line_width.value()+n.EDGE_TOLERANCE;null!=t&&this.model.x_interaction&&(h(e.sx,o,l,g)?this.side=1:h(e.sx,_,l,g)?this.side=2:d(e.sx,e.sy,l,a,r)&&(this.side=3)),null!=s&&this.model.y_interaction&&(0==this.side&&h(e.sy,c,a,g)&&(this.side=4),0==this.side&&h(e.sy,u,a,g)?this.side=5:d(e.sx,e.sy,l,a,this.model.overlay)&&(3==this.side?this.side=7:this.side=6))}_pan(e){const t=this.plot_view.frame,s=e.deltaX-this.last_dx,i=e.deltaY-this.last_dy,n=this.model.x_range,l=this.model.y_range,a=t.xscales.default,r=t.yscales.default;if(null!=n)if(3==this.side||7==this.side)f(n,a,s,t.x_range);else if(1==this.side){const e=c(n.start,a,s,t.x_range);this.side=y(e,n,this.side)}else if(2==this.side){const e=c(n.end,a,s,t.x_range);this.side=g(e,n,this.side)}if(null!=l)if(6==this.side||7==this.side)f(l,r,i,t.y_range);else if(4==this.side){const e=c(l.start,r,i,t.y_range);this.side=y(e,l,this.side)}else if(5==this.side){const e=c(l.end,r,i,t.y_range);this.side=g(e,l,this.side)}this.last_dx=e.deltaX,this.last_dy=e.deltaY}_pan_end(e){this.side=0}}s.RangeToolView=v,v.__name__="RangeToolView";const m=()=>new n.BoxAnnotation({level:"overlay",render_mode:"canvas",fill_color:"lightgrey",fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:.5},line_dash:[2,2]});class p extends r.GestureTool{constructor(e){super(e),this.tool_name="Range Tool",this.icon=o.bk_tool_icon_range,this.event_type="pan",this.default_order=1}static init_RangeTool(){this.prototype.default_view=v,this.define({x_range:[a.Instance,null],x_interaction:[a.Boolean,!0],y_range:[a.Instance,null],y_interaction:[a.Boolean,!0],overlay:[a.Instance,m]})}initialize(){super.initialize(),this.overlay.in_cursor="grab",this.overlay.ew_cursor=null!=this.x_range&&this.x_interaction?"ew-resize":null,this.overlay.ns_cursor=null!=this.y_range&&this.y_interaction?"ns-resize":null}update_overlay_from_ranges(){null==this.x_range&&null==this.y_range&&(this.overlay.left=null,this.overlay.right=null,this.overlay.bottom=null,this.overlay.top=null,l.logger.warn("RangeTool not configured with any Ranges.")),null==this.x_range?(this.overlay.left=null,this.overlay.right=null):(this.overlay.left=this.x_range.start,this.overlay.right=this.x_range.end),null==this.y_range?(this.overlay.bottom=null,this.overlay.top=null):(this.overlay.bottom=this.y_range.start,this.overlay.top=this.y_range.end)}}s.RangeTool=p,p.__name__="RangeTool",p.init_RangeTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),o=e(330),n=i.__importStar(e(19)),a=e(278);class _ extends o.SelectToolView{_tap(e){const{sx:t,sy:s}=e,i={type:"point",sx:t,sy:s},o=e.shiftKey;this._select(i,!0,o)}_select(e,t,s){const i=this.model.callback;if("select"==this.model.behavior){const o=this._computed_renderers_by_data_source();for(const n in o){const a=o[n],_=a[0].get_selection_manager(),c=a.map(e=>this.plot_view.renderer_views[e.id]);if(_.select(c,e,t,s)&&null!=i){const{frame:t}=this.plot_view,s=t.xscales[a[0].x_range_name],o=t.yscales[a[0].y_range_name],n=s.invert(e.sx),c=o.invert(e.sy),l={geometries:Object.assign(Object.assign({},e),{x:n,y:c}),source:_.source};i.execute(this.model,l)}}this._emit_selection_event(e),this.plot_view.push_state("tap",{selection:this.plot_view.get_selection()})}else for(const t of this.computed_renderers){const s=t.get_selection_manager();if(s.inspect(this.plot_view.renderer_views[t.id],e)&&null!=i){const{frame:o}=this.plot_view,n=o.xscales[t.x_range_name],a=o.yscales[t.y_range_name],_=n.invert(e.sx),c=a.invert(e.sy),l={geometries:Object.assign(Object.assign({},e),{x:_,y:c}),source:s.source};i.execute(this.model,l)}}}}s.TapToolView=_,_.__name__="TapToolView";class c extends o.SelectTool{constructor(e){super(e),this.tool_name="Tap",this.icon=a.bk_tool_icon_tap_select,this.event_type="tap",this.default_order=10}static init_TapTool(){this.prototype.default_view=_,this.define({behavior:[n.TapBehavior,"select"],callback:[n.Any]}),this.register_alias("click",()=>new c({behavior:"inspect"})),this.register_alias("tap",()=>new c)}}s.TapTool=c,c.__name__="TapTool",c.init_TapTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),o=e(275),i=n.__importStar(e(19)),a=e(278);class l extends o.GestureToolView{_scroll(e){let t=this.model.speed*e.delta;t>.9?t=.9:t<-.9&&(t=-.9),this._update_ranges(t)}_update_ranges(e){const{frame:t}=this.plot_view,s=t.bbox.h_range,n=t.bbox.v_range,[o,i]=[s.start,s.end],[a,l]=[n.start,n.end];let r,h,_,d;switch(this.model.dimension){case"height":{const t=Math.abs(l-a);r=o,h=i,_=a-t*e,d=l-t*e;break}case"width":{const t=Math.abs(i-o);r=o-t*e,h=i-t*e,_=a,d=l;break}default:throw new Error("this shouldn’t have happened")}const{xscales:c,yscales:p}=t,m={};for(const e in c){const t=c[e],[s,n]=t.r_invert(r,h);m[e]={start:s,end:n}}const u={};for(const e in p){const t=p[e],[s,n]=t.r_invert(_,d);u[e]={start:s,end:n}}const w={xrs:m,yrs:u,factor:e};this.plot_view.push_state("wheel_pan",{range:w}),this.plot_view.update_range(w,!1,!0),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}}s.WheelPanToolView=l,l.__name__="WheelPanToolView";class r extends o.GestureTool{constructor(e){super(e),this.tool_name="Wheel Pan",this.icon=a.bk_tool_icon_wheel_pan,this.event_type="scroll",this.default_order=12}static init_WheelPanTool(){this.prototype.default_view=l,this.define({dimension:[i.Dimension,"width"]}),this.internal({speed:[i.Number,.001]}),this.register_alias("xwheel_pan",()=>new r({dimension:"width"})),this.register_alias("ywheel_pan",()=>new r({dimension:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimension)}}s.WheelPanTool=r,r.__name__="WheelPanTool",r.init_WheelPanTool()},n”, ” function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),i=e(275),l=e(320),n=s.__importStar(e(19)),_=e(101),h=e(278);class a extends i.GestureToolView{_pinch(e){const{sx:o,sy:t,scale:s}=e;let i;i=s>=1?20*(s-1):-20/s,this._scroll({type:"wheel",sx:o,sy:t,delta:i})}_scroll(e){const{frame:o}=this.plot_view,t=o.bbox.h_range,s=o.bbox.v_range,{sx:i,sy:n}=e,_=this.model.dimensions,h=("width"==_||"both"==_)&&t.start<i&&i<t.end,a=("height"==_||"both"==_)&&s.start<n&&n<s.end;if(!(h&&a||this.model.zoom_on_axis))return;const m=this.model.speed*e.delta,r=l.scale_range(o,m,h,a,{x:i,y:n});this.plot_view.push_state("wheel_zoom",{range:r}),this.plot_view.update_range(r,!1,!0,this.model.maintain_focus),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}}t.WheelZoomToolView=a,a.__name__="WheelZoomToolView";class m extends i.GestureTool{constructor(e){super(e),this.tool_name="Wheel Zoom",this.icon=h.bk_tool_icon_wheel_zoom,this.event_type=_.is_mobile?"pinch":"scroll",this.default_order=10}static init_WheelZoomTool(){this.prototype.default_view=a,this.define({dimensions:[n.Dimensions,"both"],maintain_focus:[n.Boolean,!0],zoom_on_axis:[n.Boolean,!0],speed:[n.Number,1/600]}),this.register_alias("wheel_zoom",()=>new m({dimensions:"both"})),this.register_alias("xwheel_zoom",()=>new m({dimensions:"width"})),this.register_alias("ywheel_zoom",()=>new m({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}t.WheelZoomTool=m,m.__name__="WheelZoomTool",m.init_WheelZoomTool()},n”, ” function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),o=i(269),n=i(140),l=t.__importStar(i(19)),h=i(24),r=i(278);class _ extends o.InspectToolView{_move(i){if(!this.model.active)return;const{sx:e,sy:s}=i;this.plot_view.frame.bbox.contains(e,s)?this._update_spans(e,s):this._update_spans(null,null)}_move_exit(i){this._update_spans(null,null)}_update_spans(i,e){const s=this.model.dimensions;"width"!=s&&"both"!=s||(this.model.spans.width.computed_location=e),"height"!=s&&"both"!=s||(this.model.spans.height.computed_location=i)}}s.CrosshairToolView=_,_.__name__="CrosshairToolView";class a extends o.InspectTool{constructor(i){super(i),this.tool_name="Crosshair",this.icon=r.bk_tool_icon_crosshair}static init_CrosshairTool(){this.prototype.default_view=_,this.define({dimensions:[l.Dimensions,"both"],line_color:[l.Color,"black"],line_width:[l.Number,1],line_alpha:[l.Number,1]}),this.internal({location_units:[l.SpatialUnits,"screen"],render_mode:[l.RenderMode,"css"],spans:[l.Any]}),this.register_alias("crosshair",()=>new a)}get tooltip(){return this._get_dim_tooltip("Crosshair",this.dimensions)}get synthetic_renderers(){return h.values(this.spans)}initialize(){super.initialize(),this.spans={width:new n.Span({for_hover:!0,dimension:"width",render_mode:this.render_mode,location_units:this.location_units,line_color:this.line_color,line_width:this.line_width,line_alpha:this.line_alpha}),height:new n.Span({for_hover:!0,dimension:"height",render_mode:this.render_mode,location_units:this.location_units,line_color:this.line_color,line_width:this.line_width,line_alpha:this.line_alpha})}}}s.CrosshairTool=a,a.__name__="CrosshairTool",a.init_CrosshairTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(1),o=e(69),i=r.__importStar(e(19)),a=e(24),n=e(26);class u extends o.Model{constructor(e){super(e)}static init_CustomJSHover(){this.define({args:[i.Any,{}],code:[i.String,""]})}get values(){return a.values(this.args)}_make_code(e,t,s,r){return new Function(…a.keys(this.args),e,t,s,n.use_strict(r))}format(e,t,s){return this._make_code("value","format","special_vars",this.code)(…this.values,e,t,s)}}s.CustomJSHover=u,u.__name__="CustomJSHover",u.init_CustomJSHover()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),i=e(269),o=e(143),r=e(78),l=e(97),a=e(331),c=n.__importStar(e(87)),d=e(158),_=e(66),p=n.__importStar(e(19)),h=e(21),m=e(24),u=e(8),y=e(96),x=e(278),f=e(144);function v(e,t,s,n,i,o){const r={x:i[e],y:o[e]},l={x:i[e+1],y:o[e+1]};let a,d;if("span"==t.type)"h"==t.direction?(a=Math.abs(r.x-s),d=Math.abs(l.x-s)):(a=Math.abs(r.y-n),d=Math.abs(l.y-n));else{const e={x:s,y:n};a=c.dist_2_pts(r,e),d=c.dist_2_pts(l,e)}return a<d?[[r.x,r.y],e]:[[l.x,l.y],e+1]}function w(e,t,s){return[[e[s],t[s]],s]}s._nearest_line_hit=v,s._line_hit=w;class b extends i.InspectToolView{initialize(){super.initialize(),this.ttviews={}}remove(){y.remove_views(this.ttviews),super.remove()}connect_signals(){super.connect_signals();for(const e of this.computed_renderers)e instanceof r.GlyphRenderer?this.connect(e.data_source.inspect,this._update):e instanceof l.GraphRenderer&&(this.connect(e.node_renderer.data_source.inspect,this._update),this.connect(e.edge_renderer.data_source.inspect,this._update));this.connect(this.model.properties.renderers.change,()=>this._computed_renderers=this._ttmodels=null),this.connect(this.model.properties.names.change,()=>this._computed_renderers=this._ttmodels=null),this.connect(this.model.properties.tooltips.change,()=>this._ttmodels=null)}_compute_ttmodels(){const e={},t=this.model.tooltips;if(null!=t)for(const s of this.computed_renderers)if(s instanceof r.GlyphRenderer){const n=new o.Tooltip({custom:u.isString(t)||u.isFunction(t),attachment:this.model.attachment,show_arrow:this.model.show_arrow});e[s.id]=n}else if(s instanceof l.GraphRenderer){const n=new o.Tooltip({custom:u.isString(t)||u.isFunction(t),attachment:this.model.attachment,show_arrow:this.model.show_arrow});e[s.node_renderer.id]=n,e[s.edge_renderer.id]=n}return y.build_views(this.ttviews,m.values(e),{parent:this.plot_view}),e}get computed_renderers(){if(null==this._computed_renderers){const e=this.model.renderers,t=this.plot_model.renderers,s=this.model.names;this._computed_renderers=a.compute_renderers(e,t,s)}return this._computed_renderers}get ttmodels(){return null==this._ttmodels&&(this._ttmodels=this._compute_ttmodels()),this._ttmodels}_clear(){this._inspect(1/0,1/0);for(const e in this.ttmodels){this.ttmodels[e].clear()}}_move(e){if(!this.model.active)return;const{sx:t,sy:s}=e;this.plot_view.frame.bbox.contains(t,s)?this._inspect(t,s):this._clear()}_move_exit(){this._clear()}_inspect(e,t){let s;if("mouse"==this.model.mode)s={type:"point",sx:e,sy:t};else{s={type:"span",direction:"vline"==this.model.mode?"h":"v",sx:e,sy:t}}for(const e of this.computed_renderers){e.get_selection_manager().inspect(this.plot_view.renderer_views[e.id],s)}null!=this.model.callback&&this._emit_callback(s)}_update([e,{geometry:t}]){if(!this.model.active)return;if(!(e instanceof r.GlyphRendererView||e instanceof l.GraphRendererView))return;const{model:s}=e;if("ignore"==this.model.muted_policy&&s instanceof r.GlyphRenderer&&s.muted)return;const n=this.ttmodels[s.id];if(null==n)return;n.clear();const i=s.get_selection_manager();let o=i.inspectors[s.id];if(s instanceof r.GlyphRenderer&&(o=s.view.convert_selection_to_subset(o)),o.is_empty())return;const a=i.source,{frame:c}=this.plot_view,{sx:d,sy:_}=t,p=c.xscales[s.x_range_name],h=c.yscales[s.y_range_name],u=p.invert(d),y=h.invert(_),x=e.glyph;for(const s of o.line_indices){let i,r,l=x._x[s+1],c=x._y[s+1],m=s;switch(this.model.line_policy){case"interp":[l,c]=x.get_interpolation_hit(s,t),i=p.compute(l),r=h.compute(c);break;case"prev":[[i,r],m]=w(x.sx,x.sy,s);break;case"next":[[i,r],m]=w(x.sx,x.sy,s+1);break;case"nearest":[[i,r],m]=v(s,t,d,_,x.sx,x.sy),l=x._x[m],c=x._y[m];break;default:[i,r]=[d,_]}const f={index:m,x:u,y,sx:d,sy:_,data_x:l,data_y:c,rx:i,ry:r,indices:o.line_indices,name:e.model.name};n.add(i,r,this._render_tooltips(a,m,f))}for(const e of o.image_indices){const t={index:e.index,x:u,y,sx:d,sy:_},s=this._render_tooltips(a,e,t);n.add(d,_,s)}for(const i of o.indices)if(m.isEmpty(o.multiline_indices)){const t=null!=x._x?x._x[i]:void 0,l=null!=x._y?x._y[i]:void 0;let c,p,h;if("snap_to_data"==this.model.point_policy){let e=x.get_anchor_point(this.model.anchor,i,[d,_]);null==e&&(e=x.get_anchor_point("center",i,[d,_])),c=e.x,p=e.y}else[c,p]=[d,_];h=s instanceof r.GlyphRenderer?s.view.convert_indices_from_subset([i])[0]:i;const m={index:h,x:u,y,sx:d,sy:_,data_x:t,data_y:l,indices:o.indices,name:e.model.name};n.add(c,p,this._render_tooltips(a,h,m))}else for(const l of o.multiline_indices[i.toString()]){let c,m,f,b=x._xs[i][l],g=x._ys[i][l],k=l;switch(this.model.line_policy){case"interp":[b,g]=x.get_interpolation_hit(i,l,t),c=p.compute(b),m=h.compute(g);break;case"prev":[[c,m],k]=w(x.sxs[i],x.sys[i],l);break;case"next":[[c,m],k]=w(x.sxs[i],x.sys[i],l+1);break;case"nearest":[[c,m],k]=v(l,t,d,_,x.sxs[i],x.sys[i]),b=x._xs[i][k],g=x._ys[i][k];break;default:throw new Error("should’t have happened")}f=s instanceof r.GlyphRenderer?s.view.convert_indices_from_subset([i])[0]:i;const T={index:f,x:u,y,sx:d,sy:_,data_x:b,data_y:g,segment_index:k,indices:o.multiline_indices,name:e.model.name};n.add(c,m,this._render_tooltips(a,f,T))}}_emit_callback(e){for(const t of this.computed_renderers){const s=t.data_source.inspected,{frame:n}=this.plot_view,i=n.xscales[t.x_range_name],o=n.yscales[t.y_range_name],r=i.invert(e.sx),l=o.invert(e.sy),a=Object.assign({x:r,y:l},e);this.model.callback.execute(this.model,{index:s,geometry:a,renderer:t})}}_render_tooltips(e,t,s){const n=this.model.tooltips;if(u.isString(n)){const i=_.div();return i.innerHTML=d.replace_placeholders(n,e,t,this.model.formatters,s),i}if(u.isFunction(n))return n(e,s);{const i=_.div({style:{display:"table",borderSpacing:"2px"}});for(const[o,r]of n){const n=_.div({style:{display:"table-row"}});let l;if(i.appendChild(n),l=_.div({style:{display:"table-cell"},class:f.bk_tooltip_row_label},0!=o.length?`${o}: :""),n.appendChild(l),l=_.div({style:{display:"table-cell"},class:f.bk_tooltip_row_value}),n.appendChild(l),r.indexOf("$color")>=0){const[,s="",n]=r.match(/\$color(\[.*\])?:(\w*)/),i=e.get_column(n);if(null==i){const e=_.span({},`${n} unknown);l.appendChild(e);continue}const o=s.indexOf("hex")>=0,a=s.indexOf("swatch")>=0;let c=u.isNumber(t)?i[t]:null;if(null==c){const e=_.span({},"(null)");l.appendChild(e);continue}o&&(c=h.color2hex(c));let d=_.span({},c);l.appendChild(d),a&&(d=_.span({class:f.bk_tooltip_color_block,style:{backgroundColor:c}}," "),l.appendChild(d))}else{const n=_.span();n.innerHTML=d.replace_placeholders(r.replace("$~","$data_"),e,t,this.model.formatters,s),l.appendChild(n)}}return i}}}s.HoverToolView=b,b.__name__="HoverToolView";class g extends i.InspectTool{constructor(e){super(e),this.tool_name="Hover",this.icon=x.bk_tool_icon_hover}static init_HoverTool(){this.prototype.default_view=b,this.define({tooltips:[p.Any,[["index","$index"],["data (x, y)","($x, $y)"],["screen (x, y)","($sx, $sy)"]]],formatters:[p.Any,{}],renderers:[p.Any,"auto"],names:[p.Array,[]],mode:[p.HoverMode,"mouse"],muted_policy:[p.MutedPolicy,"show"],point_policy:[p.PointPolicy,"snap_to_data"],line_policy:[p.LinePolicy,"nearest"],show_arrow:[p.Boolean,!0],anchor:[p.Anchor,"center"],attachment:[p.TooltipAttachment,"horizontal"],callback:[p.Any]}),this.register_alias("hover",()=>new g)}}s.HoverTool=g,g.__name__="HoverTool",g.init_HoverTool()},n”, ” function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),s=t(14),n=t(69),l=t(269);class c extends n.Model{constructor(t){super(t)}static init_ToolProxy(){this.define({tools:[i.Array,[]],active:[i.Boolean,!1],disabled:[i.Boolean,!1]})}get button_view(){return this.tools[0].button_view}get event_type(){return this.tools[0].event_type}get tooltip(){return this.tools[0].tooltip}get tool_name(){return this.tools[0].tool_name}get icon(){return this.tools[0].computed_icon}get computed_icon(){return this.icon}get toggleable(){const t=this.tools[0];return t instanceof l.InspectTool&&t.toggleable}initialize(){super.initialize(),this.do=new s.Signal0(this,"do")}connect_signals(){super.connect_signals(),this.connect(this.do,()=>this.doit()),this.connect(this.properties.active.change,()=>this.set_active())}doit(){for(const t of this.tools)t.do.emit()}set_active(){for(const t of this.tools)t.active=this.active}}e.ToolProxy=c,c.__name__="ToolProxy",c.init_ToolProxy()},n”, ” function _(t,o,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),e=t(9),n=t(274),r=t(343),l=t(244),c=t(187);class h extends n.ToolbarBase{constructor(t){super(t)}static init_ProxyToolbar(){this.define({toolbars:[i.Array,[]]})}initialize(){super.initialize(),this._merge_tools()}_merge_tools(){this._proxied_tools=[];const t={},o={},s={},i=[],n=[];for(const t of this.help)e.includes(n,t.redirect)||(i.push(t),n.push(t.redirect));this._proxied_tools.push(…i),this.help=i;for(const t in this.gestures){const o=this.gestures[t];t in s||(s[t]={});for(const i of o.tools)i.type in s[t]||(s[t][i.type]=[]),s[t][i.type].push(i)}for(const o of this.inspectors)o.type in t||(t[o.type]=[]),t[o.type].push(o);for(const t of this.actions)t.type in o||(o[t.type]=[]),o[t.type].push(t);const l=(t,o=!1)=>{const s=new r.ToolProxy({tools:t,active:o});return this._proxied_tools.push(s),s};for(const t in s){const o=this.gestures[t];o.tools=[];for(const i in s[t]){const e=s[t][i];if(e.length>0)if("multi"==t)for(const t of e){const s=l([t]);o.tools.push(s),this.connect(s.properties.active.change,this._active_change.bind(this,s))}else{const t=l(e);o.tools.push(t),this.connect(t.properties.active.change,this._active_change.bind(this,t))}}}this.actions=[];for(const t in o){const s=o[t];if("CustomAction"==t)for(const t of s)this.actions.push(l([t]));else s.length>0&&this.actions.push(l(s))}this.inspectors=[];for(const o in t){const s=t[o];s.length>0&&this.inspectors.push(l(s,!0))}for(const t in this.gestures){const o=this.gestures[t];0!=o.tools.length&&(o.tools=e.sort_by(o.tools,t=>t.default_order),"pinch"!=t&&"scroll"!=t&&"multi"!=t&&(o.tools[0].active=!0))}}}s.ProxyToolbar=h,h.__name__="ProxyToolbar",h.init_ProxyToolbar();class a extends l.LayoutDOMView{initialize(){this.model.toolbar.toolbar_location=this.model.toolbar_location,super.initialize()}get child_models(){return[this.model.toolbar]}_update_layout(){this.layout=new c.ContentBox(this.child_views[0].el);const{toolbar:t}=this.model;t.horizontal?this.layout.set_sizing({width_policy:"fit",min_width:100,height_policy:"fixed"}):this.layout.set_sizing({width_policy:"fixed",height_policy:"fit",min_height:100})}}s.ToolbarBoxView=a,a.__name__="ToolbarBoxView";class _ extends l.LayoutDOM{constructor(t){super(t)}static init_ToolbarBox(){this.prototype.default_view=a,this.define({toolbar:[i.Instance],toolbar_location:[i.Location,"right"]})}}s.ToolbarBox=_,_.__name__="ToolbarBox",_.init_ToolbarBox()},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(5),i=e(64),d=e(96),c=e(66),l=e(346);t.index={},t.add_document_standalone=async function(e,n,s=[],a=!1){const u=new Map;async function r(o){let a;const r=e.roots().indexOf(o),f=s[r];null!=f?a=f:n.classList.contains(l.BOKEH_ROOT)?a=n:(a=c.div({class:l.BOKEH_ROOT}),n.appendChild(a));const v=await d.build_view(o,{parent:null});return v instanceof i.DOMView&&v.renderTo(a),u.set(o,v),t.index[o.id]=v,v}for(const n of e.roots())await r(n);return a&&(window.document.title=e.title()),e.on_change(e=>{e instanceof o.RootAddedEvent?r(e.model):e instanceof o.RootRemovedEvent?function(e){const n=u.get(e);null!=n&&(n.remove(),u.delete(e),delete t.index[e.id])}(e.model):a&&e instanceof o.TitleChangedEvent&&(window.document.title=e.title)}),[…u.values()]}},n”, ” function _(e,o,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(66),r=e(67);function l(e){let o=document.getElementById(e);if(null==o)throw new Error(Error rendering Bokeh model: could not find #${e} HTML tag);if(!document.body.contains(o))throw new Error(Error rendering Bokeh model: element #${e} must be under <body>);if("SCRIPT"==o.tagName){const e=t.div({class:n.BOKEH_ROOT});t.replaceWith(o,e),o=e}return o}n.BOKEH_ROOT=r.bk_root,n._resolve_element=function(e){const{elementid:o}=e;return null!=o?l(o):document.body},n._resolve_root_elements=function(e){const o=[];if(null!=e.root_ids&&null!=e.roots)for(const n of e.root_ids)o.push(l(e.roots[n]));return o}},n”, ” function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const e=n(348),s=n(70),c=n(345);t._get_ws_url=function(n,o){let t,e="ws:";return"https:"==window.location.protocol&&(e="wss:"),null!=o?(t=document.createElement("a"),t.href=o):t=window.location,null!=n?"/"==n&&(n=""):n=t.pathname.replace(/\/+$/,""),e+"//"+t.host+n+"/ws"};const r={};t.add_document_from_session=async function(n,o,t,a=[],i=!1){const l=window.location.search.substr(1);let d;try{d=await function(n,o,t){const s=e.parse_token(o).session_id;n in r||(r[n]={});const c=r[n];return s in c||(c[s]=e.pull_session(n,o,t)),c[s]}(n,o,l)}catch(n){const t=e.parse_token(o).session_id;throw s.logger.error(Failed to load Bokeh session ${t}: ${n}),n}return c.add_document_standalone(d.document,t,a,i)}},n”, ” function _(e,s,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(70),o=e(5),r=e(349),i=e(350),c=e(351);n.DEFAULT_SERVER_WEBSOCKET_URL="ws://localhost:5006/ws",n.DEFAULT_TOKEN="eyJzZXNzaW9uX2lkIjogImRlZmF1bHQifQ";let l=0;function _(e){let s=e.split(".")[0];const n=s.length%4;return 0!=n&&(s+="=".repeat(4-n)),JSON.parse(atob(s.replace(/_/g,"/").replace(/-/g,"+")))}n.parse_token=_;class h{constructor(e=n.DEFAULT_SERVER_WEBSOCKET_URL,s=n.DEFAULT_TOKEN,o=null){this.url=e,this.token=s,this.args_string=o,this._number=l++,this.socket=null,this.session=null,this.closed_permanently=!1,this._current_handler=null,this._pending_replies=new Map,this._pending_messages=[],this._receiver=new i.Receiver,this.id=_(s).session_id.split(".")[0],t.logger.debug(Creating websocket ${this._number} to ‘${this.url}’ session ‘${this.id}’)}async connect(){if(this.closed_permanently)throw new Error("Cannot connect() a closed ClientConnection");if(null!=this.socket)throw new Error("Already connected");this._current_handler=null,this._pending_replies.clear(),this._pending_messages=[];try{let e=`${this.url}`;return null!=this.args_string&&this.args_string.length>0&&(e+=`?${this.args_string}`),this.socket=new WebSocket(e,["bokeh",this.token]),new Promise((e,s)=>{this.socket.binaryType="arraybuffer",this.socket.onopen=()=>this._on_open(e,s),this.socket.onmessage=e=>this._on_message(e),this.socket.onclose=e=>this._on_close(e,s),this.socket.onerror=()=>this._on_error(s)})}catch(e){throw t.logger.error(websocket creation failed to url: ${this.url}),t.logger.error(` - ${e}`),e}}close(){this.closed_permanently||(t.logger.debug(Permanently closing websocket connection ${this._number}),this.closed_permanently=!0,null!=this.socket&&this.socket.close(1e3,`close method called on ClientConnection ${this._number}`),this.session._connection_closed())}_schedule_reconnect(e){setTimeout(()=>{this.closed_permanently||t.logger.info(Websocket connection ${this._number} disconnected, will not attempt to reconnect)},e)}send(e){if(null==this.socket)throw new Error(not connected so cannot send ${e});e.send(this.socket)}async send_with_reply(e){const s=await new Promise((s,n)=>{this._pending_replies.set(e.msgid(),{resolve:s,reject:n}),this.send(e)});if("ERROR"===s.msgtype())throw new Error(Error reply ${s.content.text});return s}async _pull_doc_json(){const e=r.Message.create("PULL-DOC-REQ",{}),s=await this.send_with_reply(e);if(!("doc"in s.content))throw new Error("No ‘doc’ field in PULL-DOC-REPLY");return s.content.doc}async _repull_session_doc(e,s){var n;t.logger.debug(this.session?"Repulling session":"Pulling session for first time");try{const n=await this._pull_doc_json();if(null==this.session)if(this.closed_permanently)t.logger.debug("Got new document after connection was already closed"),s(new Error("The connection has been closed"));else{const s=o.Document.from_json(n),i=o.Document._compute_patch_since_json(n,s);if(i.events.length>0){t.logger.debug(Sending ${i.events.length} changes from model construction back to server);const e=r.Message.create("PATCH-DOC",{},i);this.send(e)}this.session=new c.ClientSession(this,s,this.id);for(const e of this._pending_messages)this.session.handle(e);this._pending_messages=[],t.logger.debug("Created a new session from new pulled doc"),e(this.session)}else this.session.document.replace_with_json(n),t.logger.debug("Updated existing session with new pulled doc")}catch(e){null===(n=console.trace)||void 0===n||n.call(console,e),t.logger.error(Failed to repull session ${e}),s(e)}}_on_open(e,s){t.logger.info(Websocket connection ${this._number} is now open),this._current_handler=n=>{this._awaiting_ack_handler(n,e,s)}}_on_message(e){null==this._current_handler&&t.logger.error("Got a message with no current handler set");try{this._receiver.consume(e.data)}catch(e){this._close_bad_protocol(e.toString())}const s=this._receiver.message;if(null!=s){const e=s.problem();null!=e&&this._close_bad_protocol(e),this._current_handler(s)}}_on_close(e,s){t.logger.info(Lost websocket ${this._number} connection, ${e.code} (${e.reason})),this.socket=null,this._pending_replies.forEach(e=>e.reject("Disconnected")),this._pending_replies.clear(),this.closed_permanently||this._schedule_reconnect(2e3),s(new Error(Lost websocket connection, ${e.code} (${e.reason})))}_on_error(e){t.logger.debug(Websocket error on socket ${this._number});const s="Could not open websocket";t.logger.error(Failed to connect to Bokeh server: ${s}),e(new Error(s))}_close_bad_protocol(e){t.logger.error(Closing connection: ${e}),null!=this.socket&&this.socket.close(1002,e)}_awaiting_ack_handler(e,s,n){"ACK"===e.msgtype()?(this._current_handler=e=>this._steady_state_handler(e),this._repull_session_doc(s,n)):this._close_bad_protocol("First message was not an ACK")}_steady_state_handler(e){const s=e.reqid(),n=this._pending_replies.get(s);n?(this._pending_replies.delete(s),n.resolve(e)):this.session?this.session.handle(e):"PATCH-DOC"!=e.msgtype()&&this._pending_messages.push(e)}}n.ClientConnection=h,h.__name__="ClientConnection",n.pull_session=function(e,s,n){return new h(e,s,n).connect()}},n”, ” function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const r=e(26);class n{constructor(e,s,t){this.header=e,this.metadata=s,this.content=t,this.buffers=[]}static assemble(e,s,t){const r=JSON.parse(e),i=JSON.parse(s),h=JSON.parse(t);return new n(r,i,h)}assemble_buffer(e,s){if((null!=this.header.num_buffers?this.header.num_buffers:0)<=this.buffers.length)throw new Error("too many buffers received, expecting #{nb}");this.buffers.push([e,s])}static create(e,s,t={}){const r=n.create_header(e);return new n(r,s,t)}static create_header(e){return{msgid:r.uniqueId(),msgtype:e}}complete(){return null!=this.header&&null!=this.metadata&&null!=this.content&&(!("num_buffers"in this.header)||this.buffers.length===this.header.num_buffers)}send(e){if((null!=this.header.num_buffers?this.header.num_buffers:0)>0)throw new Error("BokehJS only supports receiving buffers, not sending");const s=JSON.stringify(this.header),t=JSON.stringify(this.metadata),r=JSON.stringify(this.content);e.send(s),e.send(t),e.send(r)}msgid(){return this.header.msgid}msgtype(){return this.header.msgtype}reqid(){return this.header.reqid}problem(){return"msgid"in this.header?"msgtype"in this.header?null:"No msgtype in header":"No msgid in header"}}t.Message=n,n.__name__="Message"},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const _=e(349);class r{constructor(){this.message=null,this._partial=null,this._fragments=[],this._buf_header=null,this._current_consumer=this._HEADER}consume(e){this._current_consumer(e)}_HEADER(e){this._assume_text(e),this.message=null,this._partial=null,this._fragments=[e],this._buf_header=null,this._current_consumer=this._METADATA}_METADATA(e){this._assume_text(e),this._fragments.push(e),this._current_consumer=this._CONTENT}_CONTENT(e){this._assume_text(e),this._fragments.push(e);const[t,s,r]=this._fragments.slice(0,3);this._partial=_.Message.assemble(t,s,r),this._check_complete()}_BUFFER_HEADER(e){this._assume_text(e),this._buf_header=e,this._current_consumer=this._BUFFER_PAYLOAD}_BUFFER_PAYLOAD(e){this._assume_binary(e),this._partial.assemble_buffer(this._buf_header,e),this._check_complete()}_assume_text(e){if(e instanceof ArrayBuffer)throw new Error("Expected text fragment but received binary fragment")}_assume_binary(e){if(!(e instanceof ArrayBuffer))throw new Error("Expected binary fragment but received text fragment")}_check_complete(){this._partial.complete()?(this.message=this._partial,this._current_consumer=this._HEADER):this._current_consumer=this._BUFFER_HEADER}}s.Receiver=r,r.__name__="Receiver"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(5),s=e(349),i=e(70);class c{constructor(e,t,n){this._connection=e,this.document=t,this.id=n,this._document_listener=e=>this._document_changed(e),this.document.on_change(this._document_listener)}handle(e){const t=e.msgtype();"PATCH-DOC"===t?this._handle_patch(e):"OK"===t?this._handle_ok(e):"ERROR"===t?this._handle_error(e):i.logger.debug(Doing nothing with message ${e.msgtype()})}close(){this._connection.close()}_connection_closed(){this.document.remove_on_change(this._document_listener)}async request_server_info(){const e=s.Message.create("SERVER-INFO-REQ",{});return(await this._connection.send_with_reply(e)).content}async force_roundtrip(){await this.request_server_info()}_document_changed(e){if(e.setter_id===this.id)return;if(e instanceof o.ModelChangedEvent&&!(e.attr in e.model.serializable_attributes()))return;const t=s.Message.create("PATCH-DOC",{},this.document.create_json_patch([e]));this._connection.send(t)}_handle_patch(e){this.document.apply_json_patch(e.content,e.buffers,this.id)}_handle_ok(e){i.logger.trace(Unhandled OK reply to ${e.reqid()})}_handle_error(e){i.logger.error(Unhandled ERROR reply to ${e.reqid()}: ${e.content.text})}}n.ClientSession=c,c.__name__="ClientSession"},n”, ” function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(5),r=e(350),s=e(70),i=e(24),c=e(345),l=e(346);function u(e,o){o.buffers.length>0?e.consume(o.buffers[0].buffer):e.consume(o.content.data);const t=e.message;null!=t&&this.apply_json_patch(t.content,t.buffers)}function g(e,o){if("undefined"!=typeof Jupyter&&null!=Jupyter.notebook.kernel){s.logger.info(Registering Jupyter comms for target ${e});const t=Jupyter.notebook.kernel.comm_manager;try{t.register_target(e,t=>{s.logger.info(Registering Jupyter comms for target ${e});const n=new r.Receiver;t.on_msg(u.bind(o,n))})}catch(e){s.logger.warn(Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e}))}}else if(o.roots()[0].id in t.kernels){s.logger.info(Registering JupyterLab comms for target ${e});const n=t.kernels[o.roots()[0].id];try{n.registerCommTarget(e,t=>{s.logger.info(Registering JupyterLab comms for target ${e});const n=new r.Receiver;t.onMsg=u.bind(o,n)})}catch(e){s.logger.warn(Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e}))}}else console.warn("Jupyter notebooks comms not available. push_notebook() will not function. If running JupyterLab ensure the latest @bokeh/jupyter_bokeh extension is installed. In an exported notebook this warning is expected.")}e(279),e(353),t.kernels={},t.embed_items_notebook=function(e,o){if(1!=i.size(e))throw new Error("embed_items_notebook expects exactly one document in docs_json");const t=n.Document.from_json(i.values(e)[0]);for(const e of o){null!=e.notebook_comms_target&&g(e.notebook_comms_target,t);const o=l._resolve_element(e),n=l._resolve_root_elements(e);c.add_document_standalone(t,o,n)}}},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(1);e(67),n.__importStar(e(66)).styles.append("/* notebook specific tweaks so no black outline and matching padding\n/* can’t be wrapped inside bk-root. here are the offending jupyter lines:\n/* https://github.com/jupyter/notebook/blob/master/notebook/static/notebook/less/renderedhtml.less#L59-L76 /\n.rendered_html .bk-root .bk-tooltip table,\n.rendered_html .bk-root .bk-tooltip tr,\n.rendered_html .bk-root .bk-tooltip th,\n.rendered_html .bk-root .bk-tooltip td {\n border: none;\n padding: 1px;\n}\n")},n”, ” function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const o=e(1);o.__exportStar(e(349),_),o.__exportStar(e(350),_)},n”, ” function _(e,t,n){function s(){const e=document.getElementsByTagName("body")[0],t=document.getElementsByClassName("bokeh-test-div");1==t.length&&(e.removeChild(t[0]),delete t[0]);const n=document.createElement("div");n.classList.add("bokeh-test-div"),n.style.display="none",e.insertBefore(n,e.firstChild)}Object.defineProperty(n,"__esModule",{value:!0}),n.results={},n.init=function(){s()},n.record0=function(e,t){n.results[e]=t},n.record=function(e,t){n.results[e]=t,s()},n.count=function(e){null==n.results[e]&&(n.results[e]=0),n.results[e]+=1,s()}},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.safely=function(e,t=!1){try{return e()}catch(e){if(function(e){const t=document.createElement("div");t.style.backgroundColor="#f2dede",t.style.border="1px solid #a94442",t.style.borderRadius="4px",t.style.display="inline-block",t.style.fontFamily="sans-serif",t.style.marginTop="5px",t.style.minWidth="200px",t.style.padding="5px 5px 5px 10px",t.classList.add("bokeh-error-box-into-flames");const o=document.createElement("span");o.style.backgroundColor="#a94442",o.style.borderRadius="0px 4px 0px 0px",o.style.color="white",o.style.cursor="pointer",o.style.cssFloat="right",o.style.fontSize="0.8em",o.style.margin="-6px -6px 0px 0px",o.style.padding="2px 5px 4px 5px",o.title="close",o.setAttribute("aria-label","close"),o.appendChild(document.createTextNode("x")),o.addEventListener("click",()=>r.removeChild(t));const n=document.createElement("h3");n.style.color="#a94442",n.style.margin="8px 0px 0px 0px",n.style.padding="0px",n.appendChild(document.createTextNode("Bokeh Error"));const l=document.createElement("pre");l.style.whiteSpace="unset",l.style.overflowX="auto";const s=e instanceof Error?e.message:e;l.appendChild(document.createTextNode(s)),t.appendChild(o),t.appendChild(n),t.appendChild(l);const r=document.getElementsByTagName("body")[0];r.insertBefore(t,r.firstChild)}(e),t)return;throw e}}},n”, ” ], 0, {"main":0,"tslib":1,"index":2,"version":3,"embed/index":4,"document/index":5,"document/document":6,"base":7,"core/util/types":8,"core/util/array":9,"core/util/math":10,"core/util/assert":11,"core/util/arrayable":12,"core/has_props":13,"core/signaling":14,"core/util/data_structures":15,"core/util/eq":16,"core/util/callback":17,"core/property_mixins":18,"core/properties":19,"core/enums":20,"core/util/color":21,"core/util/svg_colors":22,"core/settings":23,"core/util/object":24,"core/util/refs":25,"core/util/string":26,"models/index":27,"models/annotations/index":28,"models/annotations/annotation":29,"core/util/projections":30,"models/renderers/renderer":63,"core/dom_view":64,"core/view":65,"core/dom":66,"styles/root":67,"core/visuals":68,"model":69,"core/logging":70,"models/annotations/arrow":71,"models/annotations/arrow_head":72,"models/sources/column_data_source":73,"models/sources/columnar_data_source":74,"models/sources/data_source":75,"models/selections/selection":76,"core/selection_manager":77,"models/renderers/glyph_renderer":78,"models/renderers/data_renderer":79,"models/glyphs/line":80,"models/glyphs/xy_glyph":81,"core/util/spatial":82,"core/util/bbox":85,"models/glyphs/glyph":86,"core/hittest":87,"models/ranges/factor_range":88,"models/ranges/range":89,"models/glyphs/utils":90,"models/glyphs/patch":91,"models/glyphs/harea":92,"models/glyphs/area":93,"models/glyphs/varea":94,"models/sources/cds_view":95,"core/build_views":96,"models/renderers/graph_renderer":97,"models/graphs/graph_hit_test_policy":98,"models/selections/interaction_policy":99,"core/util/serialization":100,"core/util/compat":101,"core/util/typed_array":102,"document/events":103,"models/annotations/band":104,"models/annotations/box_annotation":105,"styles/annotations":106,"models/annotations/color_bar":107,"models/tickers/basic_ticker":108,"models/tickers/adaptive_ticker":109,"models/tickers/continuous_ticker":110,"models/tickers/ticker":111,"models/formatters/basic_tick_formatter":112,"models/formatters/tick_formatter":113,"models/mappers/linear_color_mapper":114,"models/mappers/continuous_color_mapper":115,"models/mappers/color_mapper":116,"models/mappers/mapper":117,"models/transforms/transform":118,"models/scales/linear_scale":119,"models/scales/continuous_scale":120,"models/scales/scale":121,"models/transforms/index":122,"models/transforms/customjs_transform":123,"models/transforms/dodge":124,"models/transforms/interpolator":125,"models/transforms/jitter":126,"models/transforms/linear_interpolator":127,"models/transforms/step_interpolator":128,"models/scales/log_scale":129,"models/ranges/range1d":130,"core/util/text":131,"models/annotations/label":132,"models/annotations/text_annotation":133,"models/annotations/label_set":134,"models/annotations/legend":135,"models/annotations/legend_item":136,"core/vectorization":137,"models/annotations/poly_annotation":138,"models/annotations/slope":139,"models/annotations/span":140,"models/annotations/title":141,"models/annotations/toolbar_panel":142,"models/annotations/tooltip":143,"styles/tooltips":144,"styles/mixins":145,"models/annotations/whisker":146,"models/axes/index":147,"models/axes/axis":148,"models/renderers/guide_renderer":149,"models/axes/categorical_axis":150,"models/tickers/categorical_ticker":151,"models/formatters/categorical_tick_formatter":152,"models/axes/continuous_axis":153,"models/axes/datetime_axis":154,"models/axes/linear_axis":155,"models/formatters/datetime_tick_formatter":156,"core/util/templating":158,"models/tickers/datetime_ticker":161,"models/tickers/composite_ticker":162,"models/tickers/days_ticker":163,"models/tickers/single_interval_ticker":164,"models/tickers/util":165,"models/tickers/months_ticker":166,"models/tickers/years_ticker":167,"models/axes/log_axis":168,"models/formatters/log_tick_formatter":169,"models/tickers/log_ticker":170,"models/axes/mercator_axis":171,"models/formatters/mercator_tick_formatter":172,"models/tickers/mercator_ticker":173,"models/callbacks/index":174,"models/callbacks/customjs":175,"models/callbacks/callback":176,"models/callbacks/open_url":177,"models/canvas/index":178,"models/canvas/canvas":179,"core/util/canvas":180,"styles/canvas":181,"models/canvas/cartesian_frame":183,"models/scales/categorical_scale":184,"models/ranges/data_range1d":185,"models/ranges/data_range":186,"core/layout/index":187,"core/layout/types":188,"core/layout/layoutable":189,"core/layout/alignments":190,"core/layout/grid":191,"core/layout/html":192,"models/expressions/index":193,"models/expressions/expression":194,"models/expressions/stack":195,"models/expressions/cumsum":196,"models/filters/index":197,"models/filters/boolean_filter":198,"models/filters/filter":199,"models/filters/customjs_filter":200,"models/filters/group_filter":201,"models/filters/index_filter":202,"models/formatters/index":203,"models/formatters/func_tick_formatter":204,"models/formatters/numeral_tick_formatter":205,"models/formatters/printf_tick_formatter":206,"models/glyphs/index":207,"models/glyphs/annular_wedge":208,"models/glyphs/annulus":209,"models/glyphs/arc":210,"models/glyphs/bezier":211,"models/glyphs/circle":212,"models/glyphs/center_rotatable":213,"models/glyphs/ellipse":214,"models/glyphs/ellipse_oval":215,"models/glyphs/hbar":216,"models/glyphs/box":217,"models/glyphs/hex_tile":218,"models/glyphs/image":219,"models/glyphs/image_base":220,"models/glyphs/image_rgba":221,"models/glyphs/image_url":222,"core/util/image":223,"models/glyphs/multi_line":224,"models/glyphs/multi_polygons":225,"models/glyphs/oval":226,"models/glyphs/patches":227,"models/glyphs/quad":228,"models/glyphs/quadratic":229,"models/glyphs/ray":230,"models/glyphs/rect":231,"models/glyphs/segment":232,"models/glyphs/step":233,"models/glyphs/text":234,"models/glyphs/vbar":235,"models/glyphs/wedge":236,"models/graphs/index":237,"models/graphs/layout_provider":238,"models/graphs/static_layout_provider":239,"models/grids/index":240,"models/grids/grid":241,"models/layouts/index":242,"models/layouts/box":243,"models/layouts/layout_dom":244,"models/layouts/column":245,"models/layouts/grid_box":246,"models/layouts/html_box":247,"models/layouts/row":248,"models/layouts/spacer":249,"models/layouts/tabs":250,"styles/tabs":251,"styles/buttons":252,"styles/menus":253,"models/layouts/widget_box":254,"models/mappers/index":255,"models/mappers/categorical_color_mapper":256,"models/mappers/categorical_mapper":257,"models/mappers/categorical_marker_mapper":258,"models/mappers/categorical_pattern_mapper":259,"models/mappers/log_color_mapper":260,"models/markers/index":261,"models/markers/defs":262,"models/markers/marker":263,"models/markers/scatter":264,"models/plots/index":265,"models/plots/gmap_plot":266,"models/plots/plot":267,"models/tools/toolbar":268,"models/tools/inspectors/inspect_tool":269,"models/tools/button_tool":270,"models/tools/tool":271,"styles/toolbar":272,"models/tools/on_off_button":273,"models/tools/toolbar_base":274,"models/tools/gestures/gesture_tool":275,"models/tools/actions/action_tool":276,"models/tools/actions/help_tool":277,"styles/icons":278,"styles/logo":279,"models/plots/plot_canvas":280,"core/bokeh_events":281,"core/ui_events":282,"core/util/wheel":284,"core/util/throttle":285,"core/layout/side_panel":286,"models/plots/gmap_plot_canvas":287,"models/ranges/index":288,"models/renderers/index":289,"models/scales/index":290,"models/selections/index":291,"models/sources/index":292,"models/sources/server_sent_data_source":293,"models/sources/web_data_source":294,"models/sources/ajax_data_source":295,"models/sources/geojson_data_source":296,"models/tickers/index":297,"models/tickers/fixed_ticker":298,"models/tiles/index":299,"models/tiles/bbox_tile_source":300,"models/tiles/mercator_tile_source":301,"models/tiles/tile_source":302,"models/tiles/tile_utils":303,"models/tiles/quadkey_tile_source":304,"models/tiles/tile_renderer":305,"models/tiles/wmts_tile_source":306,"styles/tiles":307,"models/tiles/tms_tile_source":308,"models/textures/index":309,"models/textures/canvas_texture":310,"models/textures/texture":311,"models/textures/image_url_texture":312,"models/tools/index":313,"models/tools/actions/custom_action":314,"models/tools/actions/redo_tool":315,"models/tools/actions/reset_tool":316,"models/tools/actions/save_tool":317,"models/tools/actions/undo_tool":318,"models/tools/actions/zoom_in_tool":319,"core/util/zoom":320,"models/tools/actions/zoom_out_tool":321,"models/tools/edit/edit_tool":322,"models/tools/edit/box_edit_tool":323,"models/tools/edit/freehand_draw_tool":324,"models/tools/edit/point_draw_tool":325,"models/tools/edit/poly_draw_tool":326,"models/tools/edit/poly_tool":327,"models/tools/edit/poly_edit_tool":328,"models/tools/gestures/box_select_tool":329,"models/tools/gestures/select_tool":330,"models/tools/util":331,"models/tools/gestures/box_zoom_tool":332,"models/tools/gestures/lasso_select_tool":333,"models/tools/gestures/pan_tool":334,"models/tools/gestures/poly_select_tool":335,"models/tools/gestures/range_tool":336,"models/tools/gestures/tap_tool":337,"models/tools/gestures/wheel_pan_tool":338,"models/tools/gestures/wheel_zoom_tool":339,"models/tools/inspectors/crosshair_tool":340,"models/tools/inspectors/customjs_hover":341,"models/tools/inspectors/hover_tool":342,"models/tools/tool_proxy":343,"models/tools/toolbar_box":344,"embed/standalone":345,"embed/dom":346,"embed/server":347,"client/connection":348,"protocol/message":349,"protocol/receiver":350,"client/session":351,"embed/notebook":352,"styles/notebook":353,"protocol/index":354,"testing":355,"safely":356}, {});n”, ” })n”, “n”, “n”, ” / END bokeh.min.js /n”, ” },n”, ” n”, ” function(Bokeh) {n”, ” / BEGIN bokeh-widgets.min.js /n”, ” /!n”, ” * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn”, ” * All rights reserved.n”, ” * n”, ” * Redistribution and use in source and binary forms, with or without modification,n”, ” * are permitted provided that the following conditions are met:n”, ” * n”, ” * Redistributions of source code must retain the above copyright notice,n”, ” * this list of conditions and the following disclaimer.n”, ” * n”, ” * Redistributions in binary form must reproduce the above copyright notice,n”, ” * this list of conditions and the following disclaimer in the documentationn”, ” * and/or other materials provided with the distribution.n”, ” * n”, ” * Neither the name of Anaconda nor the names of any contributorsn”, ” * may be used to endorse or promote products derived from this softwaren”, ” * without specific prior written permission.n”, ” * n”, ” * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n”, ” * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn”, ” * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn”, ” * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn”, ” * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn”, ” * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn”, ” * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn”, ” * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn”, ” * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n”, ” * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn”, ” * THE POSSIBILITY OF SUCH DAMAGE.n”, ” /n”, ” (function(root, factory) {n”, ” factory(root["Bokeh"], "2.0.2");n”, ” })(this, function(Bokeh, version) {n”, ” var define;n”, ” return (function(modules, entry, aliases, externals) {n”, ” const bokeh = typeof Bokeh !== "undefined" && (version != null ? Bokeh[version] : Bokeh);n”, ” if (bokeh != null) {n”, ” return bokeh.register_plugin(modules, entry, aliases);n”, ” } else {n”, ” throw new Error("Cannot find Bokeh " + version + ". You have to load it prior to loading plugins.");n”, ” }n”, ” })n”, ” ({n”, ” 376: function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1).__importStar(e(377));o.Widgets=r,e(7).register_models(r)},n”, ” 377: function _(r,e,t){Object.defineProperty(t,"__esModule",{value:!0});var a=r(378);t.AbstractButton=a.AbstractButton;var o=r(381);t.AbstractIcon=o.AbstractIcon;var u=r(382);t.AutocompleteInput=u.AutocompleteInput;var n=r(386);t.Button=n.Button;var i=r(387);t.CheckboxButtonGroup=i.CheckboxButtonGroup;var v=r(389);t.CheckboxGroup=v.CheckboxGroup;var p=r(391);t.ColorPicker=p.ColorPicker;var l=r(392);t.DatePicker=l.DatePicker;var c=r(395);t.DateRangeSlider=c.DateRangeSlider;var d=r(400);t.DateSlider=d.DateSlider;var g=r(401);t.Div=g.Div;var I=r(404);t.Dropdown=I.Dropdown;var S=r(405);t.FileInput=S.FileInput;var P=r(384);t.InputWidget=P.InputWidget;var k=r(402);t.Markup=k.Markup;var x=r(406);t.MultiSelect=x.MultiSelect;var D=r(407);t.Paragraph=D.Paragraph;var b=r(408);t.PasswordInput=b.PasswordInput;var s=r(409);t.MultiChoice=s.MultiChoice;var h=r(412);t.PreText=h.PreText;var A=r(413);t.RadioButtonGroup=A.RadioButtonGroup;var B=r(414);t.RadioGroup=B.RadioGroup;var C=r(415);t.RangeSlider=C.RangeSlider;var G=r(416);t.Select=G.Select;var R=r(417);t.Slider=R.Slider;var T=r(418);t.Spinner=T.Spinner;var M=r(383);t.TextInput=M.TextInput;var w=r(419);t.TextAreaInput=w.TextAreaInput;var W=r(420);t.Toggle=W.Toggle;var _=r(441);t.Widget=_.Widget},n”, ” 378: function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),s=t(66),o=t(96),l=t(379),r=t(252);class _ extends l.ControlView{async lazy_initialize(){await super.lazy_initialize();const{icon:t}=this.model;null!=t&&(this.icon_view=await o.build_view(t,{parent:this}))}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}remove(){null!=this.icon_view&&this.icon_view.remove(),super.remove()}_render_button(…t){return s.button({type:"button",disabled:this.model.disabled,class:[r.bk_btn,r.bk_btn_type(this.model.button_type)]},…t)}render(){super.render(),this.button_el=this._render_button(this.model.label),this.button_el.addEventListener("click",()=>this.click()),null!=this.icon_view&&(s.prepend(this.button_el,this.icon_view.el,s.nbsp()),this.icon_view.render()),this.group_el=s.div({class:r.bk_btn_group},this.button_el),this.el.appendChild(this.group_el)}click(){}}n.AbstractButtonView=_,_.__name__="AbstractButtonView";class c extends l.Control{constructor(t){super(t)}static init_AbstractButton(){this.define({label:[i.String,"Button"],icon:[i.Instance],button_type:[i.ButtonType,"default"]})}}n.AbstractButton=c,c.__name__="AbstractButton",c.init_AbstractButton()},n”, ” 379: function _(e,n,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(441);class o extends t.WidgetView{connect_signals(){super.connect_signals();const e=this.model.properties;this.on_change(e.disabled,()=>this.render())}}s.ControlView=o,o.__name__="ControlView";class i extends t.Widget{constructor(e){super(e)}}s.Control=i,i.__name__="Control"},n”, ” 441: function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=i(1),n=i(247),r=o.__importStar(i(19));class _ extends n.HTMLBoxView{_width_policy(){return"horizontal"==this.model.orientation?super._width_policy():"fixed"}_height_policy(){return"horizontal"==this.model.orientation?"fixed":super._height_policy()}box_sizing(){const i=super.box_sizing();return"horizontal"==this.model.orientation?null==i.width&&(i.width=this.model.default_size):null==i.height&&(i.height=this.model.default_size),i}}t.WidgetView=_,_.__name__="WidgetView";class s extends n.HTMLBox{constructor(i){super(i)}static init_Widget(){this.define({orientation:[r.Orientation,"horizontal"],default_size:[r.Number,300]}),this.override({margin:[5,5,5,5]})}}t.Widget=s,s.__name__="Widget",s.init_Widget()},n”, ” 381: function _(e,t,c){Object.defineProperty(c,"__esModule",{value:!0});const s=e(69),n=e(64);class o extends n.DOMView{}c.AbstractIconView=o,o.__name__="AbstractIconView";class _ extends s.Model{constructor(e){super(e)}}c.AbstractIcon=_,_.__name__="AbstractIcon"},n”, ” 382: function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),s=e(383),h=e(66),_=i.__importStar(e(19)),o=e(10),u=e(145),r=e(253);class c extends s.TextInputView{constructor(){super(…arguments),this._open=!1,this._last_value="",this._hover_index=0}render(){super.render(),this.input_el.addEventListener("keydown",e=>this._keydown(e)),this.input_el.addEventListener("keyup",e=>this._keyup(e)),this.menu=h.div({class:[r.bk_menu,u.bk_below]}),this.menu.addEventListener("click",e=>this._menu_click(e)),this.menu.addEventListener("mouseover",e=>this._menu_hover(e)),this.el.appendChild(this.menu),h.undisplay(this.menu)}change_input(){this._open&&this.menu.children.length>0&&(this.model.value=this.menu.children[this._hover_index].textContent,this.input_el.focus(),this._hide_menu())}_update_completions(e){h.empty(this.menu);for(const t of e){const e=h.div({},t);this.menu.appendChild(e)}e.length>0&&this.menu.children[0].classList.add(u.bk_active)}_show_menu(){if(!this._open){this._open=!0,this._hover_index=0,this._last_value=this.model.value,h.display(this.menu);const e=t=>{const{target:n}=t;n instanceof HTMLElement&&!this.el.contains(n)&&(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,h.undisplay(this.menu))}_menu_click(e){e.target!=e.currentTarget&&e.target instanceof Element&&(this.model.value=e.target.textContent,this.input_el.focus(),this._hide_menu())}_menu_hover(e){if(e.target!=e.currentTarget&&e.target instanceof Element){let t=0;for(t=0;t<this.menu.children.length&&this.menu.children[t].textContent!=e.target.textContent;t++);this._bump_hover(t)}}_bump_hover(e){const t=this.menu.children.length;this._open&&t>0&&(this.menu.children[this._hover_index].classList.remove(u.bk_active),this._hover_index=o.clamp(e,0,t-1),this.menu.children[this._hover_index].classList.add(u.bk_active))}_keydown(e){}_keyup(e){switch(e.keyCode){case h.Keys.Enter:this.change_input();break;case h.Keys.Esc:this._hide_menu();break;case h.Keys.Up:this._bump_hover(this._hover_index-1);break;case h.Keys.Down:this._bump_hover(this._hover_index+1);break;default:{const e=this.input_el.value;if(e.length<this.model.min_characters)return void this._hide_menu();const t=[];for(const n of this.model.completions)n.startsWith(e)&&t.push(n);this._update_completions(t),0==t.length?this._hide_menu():this._show_menu()}}}}n.AutocompleteInputView=c,c.__name__="AutocompleteInputView";class l extends s.TextInput{constructor(e){super(e)}static init_AutocompleteInput(){this.prototype.default_view=c,this.define({completions:[_.Array,[]],min_characters:[_.Int,2]})}}n.AutocompleteInput=l,l.__name__="AutocompleteInput",l.init_AutocompleteInput()},n”, ” 383: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(384),l=e(66),p=n.__importStar(e(19)),u=e(385);class a extends s.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.value.change,()=>this.input_el.value=this.model.value),this.connect(this.model.properties.value_input.change,()=>this.input_el.value=this.model.value_input),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled),this.connect(this.model.properties.placeholder.change,()=>this.input_el.placeholder=this.model.placeholder)}render(){super.render(),this.input_el=l.input({type:"text",class:u.bk_input,name:this.model.name,value:this.model.value,disabled:this.model.disabled,placeholder:this.model.placeholder}),this.input_el.addEventListener("change",()=>this.change_input()),this.input_el.addEventListener("input",()=>this.change_input_oninput()),this.group_el.appendChild(this.input_el)}change_input(){this.model.value=this.input_el.value,super.change_input()}change_input_oninput(){this.model.value_input=this.input_el.value,super.change_input()}}i.TextInputView=a,a.__name__="TextInputView";class h extends s.InputWidget{constructor(e){super(e)}static init_TextInput(){this.prototype.default_view=a,this.define({value:[p.String,""],value_input:[p.String,""],placeholder:[p.String,""]})}}i.TextInput=h,h.__name__="TextInput",h.init_TextInput()},n”, ” 384: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),l=e(379),s=e(66),_=n.__importStar(e(19)),o=e(385);class p extends l.ControlView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.title.change,()=>{this.label_el.textContent=this.model.title})}render(){super.render();const{title:e}=this.model;this.label_el=s.label({style:{display:0==e.length?"none":""}},e),this.group_el=s.div({class:o.bk_input_group},this.label_el),this.el.appendChild(this.group_el)}change_input(){}}i.InputWidgetView=p,p.__name__="InputWidgetView";class r extends l.Control{constructor(e){super(e)}static init_InputWidget(){this.define({title:[_.String,""]})}}i.InputWidget=r,r.__name__="InputWidget",r.init_InputWidget()},n”, ” 385: function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const e=n(1);n(67),e.__importStar(n(66)).styles.append(‘.bk-root .bk-input {\n display: inline-block;\n width: 100%;\n flex-grow: 1;\n -webkit-flex-grow: 1;\n min-height: 31px;\n padding: 0 12px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n.bk-root .bk-input:focus {\n border-color: #66afe9;\n outline: 0;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);\n}\n.bk-root .bk-input::placeholder,\n.bk-root .bk-input:-ms-input-placeholder,\n.bk-root .bk-input::-moz-placeholder,\n.bk-root .bk-input::-webkit-input-placeholder {\n color: #999;\n opacity: 1;\n}\n.bk-root .bk-input[disabled] {\n cursor: not-allowed;\n background-color: #eee;\n opacity: 1;\n}\n.bk-root select:not([multiple]).bk-input,\n.bk-root select:not([size]).bk-input {\n height: auto;\n appearance: none;\n -webkit-appearance: none;\n background-image: url(\’data:image/svg+xml;utf8,<svg version="1.1" viewBox="0 0 25 20" xmlns="http://www.w3.org/2000/svg"><path d="M 0,0 25,0 12.5,20 Z" fill="black" /></svg>\’);\n background-position: right 0.5em center;\n background-size: 8px 6px;\n background-repeat: no-repeat;\n}\n.bk-root select[multiple].bk-input,\n.bk-root select[size].bk-input,\n.bk-root textarea.bk-input {\n height: auto;\n}\n.bk-root .bk-input-group {\n width: 100%;\n height: 100%;\n display: inline-flex;\n display: -webkit-inline-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: start;\n -webkit-align-items: start;\n flex-direction: column;\n -webkit-flex-direction: column;\n white-space: nowrap;\n}\n.bk-root .bk-input-group.bk-inline {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-input-group.bk-inline > *:not(:first-child) {\n margin-left: 5px;\n}\n.bk-root .bk-input-group input[type="checkbox"] + span,\n.bk-root .bk-input-group input[type="radio"] + span {\n position: relative;\n top: -2px;\n margin-left: 3px;\n}\n’),t.bk_input="bk-input",t.bk_input_group="bk-input-group"},n”, ” 386: function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(378),o=t(281);class s extends n.AbstractButtonView{click(){this.model.clicks=this.model.clicks+1,this.model.trigger_event(new o.ButtonClick),super.click()}}i.ButtonView=s,s.__name__="ButtonView";class c extends n.AbstractButton{constructor(t){super(t)}static init_Button(){this.prototype.default_view=s,this.override({label:"Button"})}}i.Button=c,c.__name__="Button",c.init_Button()},n”, ” 387: function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t(1),c=t(388),n=t(66),s=t(15),u=i.__importStar(t(19)),a=t(145);class r extends c.ButtonGroupView{get active(){return new s.Set(this.model.active)}change_active(t){const{active:e}=this;e.toggle(t),this.model.active=e.values}_update_active(){const{active:t}=this;this._buttons.forEach((e,o)=>{n.classes(e).toggle(a.bk_active,t.has(o))})}}o.CheckboxButtonGroupView=r,r.__name__="CheckboxButtonGroupView";class _ extends c.ButtonGroup{constructor(t){super(t)}static init_CheckboxButtonGroup(){this.prototype.default_view=r,this.define({active:[u.Array,[]]})}}o.CheckboxButtonGroup=_,_.__name__="CheckboxButtonGroup",_.init_CheckboxButtonGroup()},n”, ” 388: function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const s=t(1),o=t(379),i=t(66),_=s.__importStar(t(19)),r=t(252);class a extends o.ControlView{connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.button_type,()=>this.render()),this.on_change(t.labels,()=>this.render()),this.on_change(t.active,()=>this._update_active())}render(){super.render(),this._buttons=this.model.labels.map((t,e)=>{const n=i.div({class:[r.bk_btn,r.bk_btn_type(this.model.button_type)],disabled:this.model.disabled},t);return n.addEventListener("click",()=>this.change_active(e)),n}),this._update_active();const t=i.div({class:r.bk_btn_group},this._buttons);this.el.appendChild(t)}}n.ButtonGroupView=a,a.__name__="ButtonGroupView";class u extends o.Control{constructor(t){super(t)}static init_ButtonGroup(){this.define({labels:[_.Array,[]],button_type:[_.ButtonType,"default"]})}}n.ButtonGroup=u,u.__name__="ButtonGroup",u.init_ButtonGroup()},n”, ” 389: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),o=e(390),s=e(66),c=e(9),l=e(15),a=n.__importStar(e(19)),r=e(145),d=e(385);class p extends o.InputGroupView{render(){super.render();const e=s.div({class:[d.bk_input_group,this.model.inline?r.bk_inline:null]});this.el.appendChild(e);const{active:t,labels:i}=this.model;for(let n=0;n<i.length;n++){const o=s.input({type:"checkbox",value:`${n}`});o.addEventListener("change",()=>this.change_active(n)),this.model.disabled&&(o.disabled=!0),c.includes(t,n)&&(o.checked=!0);const l=s.label({},o,s.span({},i[n]));e.appendChild(l)}}change_active(e){const t=new l.Set(this.model.active);t.toggle(e),this.model.active=t.values}}i.CheckboxGroupView=p,p.__name__="CheckboxGroupView";class u extends o.InputGroup{constructor(e){super(e)}static init_CheckboxGroup(){this.prototype.default_view=p,this.define({active:[a.Array,[]],labels:[a.Array,[]],inline:[a.Boolean,!1]})}}i.CheckboxGroup=u,u.__name__="CheckboxGroup",u.init_CheckboxGroup()},n”, ” 390: function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(379);class s extends o.ControlView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}}t.InputGroupView=s,s.__name__="InputGroupView";class c extends o.Control{constructor(e){super(e)}}t.InputGroup=c,c.__name__="InputGroup"},n”, ” 391: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),o=e(384),s=e(66),l=n.__importStar(e(19)),r=e(385);class c extends o.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.color.change,()=>this.input_el.value=this.model.color),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled)}render(){super.render(),this.input_el=s.input({type:"color",class:r.bk_input,name:this.model.name,value:this.model.color,disabled:this.model.disabled}),this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){this.model.color=this.input_el.value,super.change_input()}}t.ColorPickerView=c,c.__name__="ColorPickerView";class d extends o.InputWidget{constructor(e){super(e)}static init_ColorPicker(){this.prototype.default_view=c,this.define({color:[l.Color,"#000000"]})}}t.ColorPicker=d,d.__name__="ColorPicker",d.init_ColorPicker()},n”, ” 392: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),a=n.__importDefault(e(393)),s=e(384),l=e(66),o=n.__importStar(e(19)),d=e(8),r=e(385);function c(e){const t=[];for(const i of e)d.isString(i)?t.push(i):d.isArray(i)&&2==i.length&&t.push({from:i[0],to:i[1]});return t}e(394);class u extends s.InputWidgetView{connect_signals(){super.connect_signals();const{value:e,min_date:t,max_date:i,disabled_dates:n,enabled_dates:a,position:s,inline:l}=this.model.properties;this.connect(e.change,()=>{var t;return null===(t=this._picker)||void 0===t?void 0:t.setDate(e.value())}),this.connect(t.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("minDate",t.value())}),this.connect(i.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("maxDate",i.value())}),this.connect(n.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("disable",n.value())}),this.connect(a.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("enable",a.value())}),this.connect(s.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("position",s.value())}),this.connect(l.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("inline",l.value())})}render(){null==this._picker&&(super.render(),this.input_el=l.input({type:"text",class:r.bk_input,disabled:this.model.disabled}),this.group_el.appendChild(this.input_el),this._picker=a.default(this.input_el,{defaultDate:this.model.value,minDate:this.model.min_date,maxDate:this.model.max_date,inline:this.model.inline,position:this.model.position,disable:c(this.model.disabled_dates),enable:c(this.model.enabled_dates),onChange:(e,t,i)=>this._on_change(e,t,i)}))}_on_change(e,t,i){this.model.value=t,this.change_input()}}i.DatePickerView=u,u.__name__="DatePickerView";class _ extends s.InputWidget{constructor(e){super(e)}static init_DatePicker(){this.prototype.default_view=u,this.define({value:[o.Any],min_date:[o.Any],max_date:[o.Any],disabled_dates:[o.Any,[]],enabled_dates:[o.Any,[]],position:[o.CalendarPosition,"auto"],inline:[o.Boolean,!1]})}}i.DatePicker=_,_.__name__="DatePicker",_.init_DatePicker()},n”, ” 393: function _(e,t,n){n”, ” / flatpickr v4.6.3, @license MIT /var a,i;a=this,i=function(){"use strict";n”, ” /! *************************************************************************n”, ” Copyright (c) Microsoft Corporation. All rights reserved.n”, ” Licensed under the Apache License, Version 2.0 (the "License"); you may not usen”, ” this file except in compliance with the License. You may obtain a copy of then”, ” License at http://www.apache.org/licenses/LICENSE-2.0n”, ” n”, ” THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYn”, ” KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDn”, ” WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,n”, ” MERCHANTABLITY OR NON-INFRINGEMENT.n”, ” n”, ” See the Apache Version 2.0 License for specific language governing permissionsn”, ” and limitations under the License.n”, ” ************************************************************************* /var e=function(){return(e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version=’1.1’ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’ viewBox=’0 0 17 17’><g></g><path d=’M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z’ /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version=’1.1’ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’ viewBox=’0 0 17 17’><g></g><path d=’M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z’ /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},i=function(e){return("0"+e).slice(-2)},o=function(e){return!0===e?1:0};function r(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=window.setTimeout((function(){a=null,n||e.apply(i,o)}),t),n&&!a&&e.apply(i,o)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function s(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function u(e,t){var n=d("div","numInputWrapper"),a=d("input","numInput "+e),i=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}var f=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},g={D:f,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*o(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var a=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:f,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:f,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},p={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},h={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[h.w(e,t,n)]},F:function(e,t,n){return m(h.n(e,t,n)-1,!1,t)},G:function(e,t,n){return i(h.h(e,t,n))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},v=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,n){var a=n||r;return void 0!==i.formatDate?i.formatDate(e,t,a):t.split("").map((function(t,n,o){return h[t]&&"\\"!==o[n-1]?h[t](e,a,i):"\\"!==t?t:""})).join("")}},D=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,a,o){if(0===e||e){var l,c=o||r,d=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var s=t||(i||n).dateFormat,u=String(e).trim();if("today"===u)l=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else if(i&&i.parseDate)l=i.parseDate(e,s);else{l=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,m=[],h=0,v=0,D="";h<s.length;h++){var w=s[h],b="\\"===w,C="\\"===s[h-1]||b;if(p[w]&&!C){D+=p[w];var M=new RegExp(D).exec(e);M&&(f=!0)&&m["Y"!==w?"push":"unshift"]({fn:g[w],val:M[++v]})}else b||(D+=".");m.forEach((function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l}))}l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===a&&l.setHours(0,0,0,0),l;i.errorHandler(new Error("Invalid date provided: "+d))}}};function w(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var b=864e5;function C(f,g){var h={config:e({},n,y.defaultConfig),l10n:a};function C(e){return e.bind(h)}function M(){var e=h.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==h.calendarContainer&&(h.calendarContainer.style.visibility="hidden",h.calendarContainer.style.display="block"),void 0!==h.daysContainer){var t=(h.days.offsetWidth+1)*e.showMonths;h.daysContainer.style.width=t+"px",h.calendarContainer.style.width=t+(void 0!==h.weekWrapper?h.weekWrapper.offsetWidth:0)+"px",h.calendarContainer.style.removeProperty("visibility"),h.calendarContainer.style.removeProperty("display")}}))}function x(e){0===h.selectedDates.length&&ne(),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==h.amPM&&e.target===h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]);var a=parseFloat(n.getAttribute("min")),r=parseFloat(n.getAttribute("max")),l=parseFloat(n.getAttribute("step")),c=parseInt(n.value,10),d=e.delta||(t?38===e.which?1:-1:0),s=c+l*d;if(void 0!==n.value&&2===n.value.length){var u=n===h.hourElement,f=n===h.minuteElement;s<a?(s=r+s+o(!u)+(o(u)&&o(!h.amPM)),f&&Y(void 0,-1,h.hourElement)):s>r&&(s=n===h.hourElement?s-r-o(!h.amPM):a,f&&Y(void 0,1,h.hourElement)),h.amPM&&u&&(1===l?s+c===23:Math.abs(s-c)>l)&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]),n.value=i(s)}}(e);var t=h._input.value;E(),ve(),h._input.value!==t&&h._debouncedChange()}function E(){if(void 0!==h.hourElement&&void 0!==h.minuteElement){var e,t,n=(parseInt(h.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(h.minuteElement.value,10)||0)%60,i=void 0!==h.secondElement?(parseInt(h.secondElement.value,10)||0)%60:0;void 0!==h.amPM&&(e=n,t=h.amPM.textContent,n=e%12+12*o(t===h.l10n.amPM[1]));var r=void 0!==h.config.minTime||h.config.minDate&&h.minDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.minDate,!0);if(void 0!==h.config.maxTime||h.config.maxDate&&h.maxDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.maxDate,!0)){var l=void 0!==h.config.maxTime?h.config.maxTime:h.config.maxDate;(n=Math.min(n,l.getHours()))===l.getHours()&&(a=Math.min(a,l.getMinutes())),a===l.getMinutes()&&(i=Math.min(i,l.getSeconds()))}if(r){var c=void 0!==h.config.minTime?h.config.minTime:h.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(a=Math.max(a,c.getMinutes())),a===c.getMinutes()&&(i=Math.max(i,c.getSeconds()))}I(n,a,i)}}function T(e){var t=e||h.latestSelectedDateObj;t&&I(t.getHours(),t.getMinutes(),t.getSeconds())}function k(){var e=h.config.defaultHour,t=h.config.defaultMinute,n=h.config.defaultSeconds;if(void 0!==h.config.minDate){var a=h.config.minDate.getHours(),i=h.config.minDate.getMinutes();(e=Math.max(e,a))===a&&(t=Math.max(i,t)),e===a&&t===i&&(n=h.config.minDate.getSeconds())}if(void 0!==h.config.maxDate){var o=h.config.maxDate.getHours(),r=h.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(r,t)),e===o&&t===r&&(n=h.config.maxDate.getSeconds())}I(e,t,n)}function I(e,t,n){void 0!==h.latestSelectedDateObj&&h.latestSelectedDateObj.setHours(e%24,t,n||0,0),h.hourElement&&h.minuteElement&&!h.isMobile&&(h.hourElement.value=i(h.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),h.minuteElement.value=i(t),void 0!==h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(e>=12)]),void 0!==h.secondElement&&(h.secondElement.value=i(n)))}function S(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&V(t)}function O(e,t,n,a){return t instanceof Array?t.forEach((function(t){return O(e,t,n,a)})):e instanceof Array?e.forEach((function(e){return O(e,t,n,a)})):(e.addEventListener(t,n,a),void h._handlers.push({element:e,event:t,handler:n,options:a}))}function _(e){return function(t){1===t.which&&e(t)}}function F(){fe("onChange")}function N(e,t){var n=void 0!==e?h.parseDate(e):h.latestSelectedDateObj||(h.config.minDate&&h.config.minDate>h.now?h.config.minDate:h.config.maxDate&&h.config.maxDate<h.now?h.config.maxDate:h.now),a=h.currentYear,i=h.currentMonth;try{void 0!==n&&(h.currentYear=n.getFullYear(),h.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,h.config.errorHandler(e)}t&&h.currentYear!==a&&(fe("onYearChange"),B()),!t||h.currentYear===a&&h.currentMonth===i||fe("onMonthChange"),h.redraw()}function P(e){~e.target.className.indexOf("arrow")&&Y(e,e.target.classList.contains("arrowUp")?1:-1)}function Y(e,t,n){var a=e&&e.target,i=n||a&&a.parentNode&&a.parentNode.firstChild,o=me("increment");o.delta=t,i&&i.dispatchEvent(o)}function A(e,t,n,a){var i=Z(t,!0),o=d("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",h.formatDate(t,h.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,h.now)&&(h.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,ge(t)&&(o.classList.add("selected"),h.selectedDateElem=o,"range"===h.config.mode&&(c(o,"startRange",h.selectedDates[0]&&0===w(t,h.selectedDates[0],!0)),c(o,"endRange",h.selectedDates[1]&&0===w(t,h.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===h.config.mode&&function(e){return!("range"!==h.config.mode||h.selectedDates.length<2)&&w(e,h.selectedDates[0])>=0&&w(e,h.selectedDates[1])<=0}(t)&&!ge(t)&&o.classList.add("inRange"),h.weekNumbers&&1===h.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&h.weekNumbers.insertAdjacentHTML("beforeend","<span class=’flatpickr-day’>"+h.config.getWeek(t)+"</span>"),fe("onDayCreate",o),o}function j(e){e.focus(),"range"===h.config.mode&&ee(e)}function H(e){for(var t=e>0?0:h.config.showMonths-1,n=e>0?h.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=h.daysContainer.children[a],o=e>0?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&Z(c.dateObj))return c}}function L(e,t){var n=Q(document.activeElement||document.body),a=void 0!==e?e:n?document.activeElement:void 0!==h.selectedDateElem&&Q(h.selectedDateElem)?h.selectedDateElem:void 0!==h.todayDateElem&&Q(h.todayDateElem)?h.todayDateElem:H(t>0?1:-1);return void 0===a?h._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():h.currentMonth,a=t>0?h.config.showMonths:-1,i=t>0?1:-1,o=n-h.currentMonth;o!=a;o+=i)for(var r=h.daysContainer.children[o],l=n-h.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,d=l;d>=0&&d<c&&d!=(t>0?c:-1);d+=i){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&Z(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return j(s)}h.changeMonth(i),L(H(i),0)}(a,t):j(a)}function W(e,t){for(var n=(new Date(e,t,1).getDay()-h.l10n.firstDayOfWeek+7)%7,a=h.utils.getDaysInMonth((t-1+12)%12),i=h.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),r=h.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-n,u=0;s<=a;s++,u++)o.appendChild(A(l,new Date(e,t-1,s),s,u));for(s=1;s<=i;s++,u++)o.appendChild(A("",new Date(e,t,s),s,u));for(var f=i+1;f<=42-n&&(1===h.config.showMonths||u%7!=0);f++,u++)o.appendChild(A(c,new Date(e,t+1,f%i),f,u));var m=d("div","dayContainer");return m.appendChild(o),m}function R(){if(void 0!==h.daysContainer){s(h.daysContainer),h.weekNumbers&&s(h.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<h.config.showMonths;t++){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),e.appendChild(W(n.getFullYear(),n.getMonth()))}h.daysContainer.appendChild(e),h.days=h.daysContainer.firstChild,"range"===h.config.mode&&1===h.selectedDates.length&&ee()}}function B(){if(!(h.config.showMonths>1||"dropdown"!==h.config.monthSelectorType)){var e=function(e){return!(void 0!==h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&e<h.config.minDate.getMonth()||void 0!==h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()&&e>h.config.maxDate.getMonth())};h.monthsDropdownContainer.tabIndex=-1,h.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=d("option","flatpickr-monthDropdown-month");n.value=new Date(h.currentYear,t).getMonth().toString(),n.textContent=m(t,h.config.shorthandCurrentMonth,h.l10n),n.tabIndex=-1,h.currentMonth===t&&(n.selected=!0),h.monthsDropdownContainer.appendChild(n)}}}function J(){var e,t=d("div","flatpickr-month"),n=window.document.createDocumentFragment();h.config.showMonths>1||"static"===h.config.monthSelectorType?e=d("span","cur-month"):(h.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),O(h.monthsDropdownContainer,"change",(function(e){var t=e.target,n=parseInt(t.value,10);h.changeMonth(n-h.currentMonth),fe("onMonthChange")})),B(),e=h.monthsDropdownContainer);var a=u("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",h.l10n.yearAriaLabel),h.config.minDate&&i.setAttribute("min",h.config.minDate.getFullYear().toString()),h.config.maxDate&&(i.setAttribute("max",h.config.maxDate.getFullYear().toString()),i.disabled=!!h.config.minDate&&h.config.minDate.getFullYear()===h.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),t.appendChild(n),{container:t,yearElement:i,monthElement:e}}function K(){s(h.monthNav),h.monthNav.appendChild(h.prevMonthNav),h.config.showMonths&&(h.yearElements=[],h.monthElements=[]);for(var e=h.config.showMonths;e–;){var t=J();h.yearElements.push(t.yearElement),h.monthElements.push(t.monthElement),h.monthNav.appendChild(t.container)}h.monthNav.appendChild(h.nextMonthNav)}function U(){h.weekdayContainer?s(h.weekdayContainer):h.weekdayContainer=d("div","flatpickr-weekdays");for(var e=h.config.showMonths;e–;){var t=d("div","flatpickr-weekdaycontainer");h.weekdayContainer.appendChild(t)}return q(),h.weekdayContainer}function q(){if(h.weekdayContainer){var e=h.l10n.firstDayOfWeek,t=h.l10n.weekdays.shorthand.slice();e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=h.config.showMonths;n–;)h.weekdayContainer.children[n].innerHTML="\n <span class=’flatpickr-weekday’>\n "+t.join("</span><span class=’flatpickr-weekday’>")+"\n </span>\n "}}function $(e,t){void 0===t&&(t=!0);var n=t?e:e-h.currentMonth;n<0&&!0===h._hidePrevMonthArrow||n>0&&!0===h._hideNextMonthArrow||(h.currentMonth+=n,(h.currentMonth<0||h.currentMonth>11)&&(h.currentYear+=h.currentMonth>11?1:-1,h.currentMonth=(h.currentMonth+12)%12,fe("onYearChange"),B()),R(),fe("onMonthChange"),pe())}function z(e){return!(!h.config.appendTo||!h.config.appendTo.contains(e))||h.calendarContainer.contains(e)}function G(e){if(h.isOpen&&!h.config.inline){var t="function"==typeof(r=e).composedPath?r.composedPath()[0]:r.target,n=z(t),a=t===h.input||t===h.altInput||h.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(h.input)||~e.path.indexOf(h.altInput)),i="blur"===e.type?a&&e.relatedTarget&&!z(e.relatedTarget):!a&&!n&&!z(e.relatedTarget),o=!h.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&x(),h.close(),"range"===h.config.mode&&1===h.selectedDates.length&&(h.clear(!1),h.redraw()))}var r}function V(e){if(!(!e||h.config.minDate&&e<h.config.minDate.getFullYear()||h.config.maxDate&&e>h.config.maxDate.getFullYear())){var t=e,n=h.currentYear!==t;h.currentYear=t||h.currentYear,h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth=Math.min(h.config.maxDate.getMonth(),h.currentMonth):h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&(h.currentMonth=Math.max(h.config.minDate.getMonth(),h.currentMonth)),n&&(h.redraw(),fe("onYearChange"),B())}}function Z(e,t){void 0===t&&(t=!0);var n=h.parseDate(e,void 0,t);if(h.config.minDate&&n&&w(n,h.config.minDate,void 0!==t?t:!h.minDateHasTime)<0||h.config.maxDate&&n&&w(n,h.config.maxDate,void 0!==t?t:!h.maxDateHasTime)>0)return!1;if(0===h.config.enable.length&&0===h.config.disable.length)return!0;if(void 0===n)return!1;for(var a=h.config.enable.length>0,i=a?h.config.enable:h.config.disable,o=0,r=void 0;o<i.length;o++){if("function"==typeof(r=i[o])&&r(n))return a;if(r instanceof Date&&void 0!==n&&r.getTime()===n.getTime())return a;if("string"==typeof r&&void 0!==n){var l=h.parseDate(r,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof r&&void 0!==n&&r.from&&r.to&&n.getTime()>=r.from.getTime()&&n.getTime()<=r.to.getTime())return a}return!a}function Q(e){return void 0!==h.daysContainer&&-1===e.className.indexOf("hidden")&&h.daysContainer.contains(e)}function X(e){var t=e.target===h._input,n=h.config.allowInput,a=h.isOpen&&(!n||!t),i=h.config.inline&&t&&!n;if(13===e.keyCode&&t){if(n)return h.setDate(h._input.value,!0,e.target===h.altInput?h.config.altFormat:h.config.dateFormat),e.target.blur();h.open()}else if(z(e.target)||a||i){var o=!!h.timeContainer&&h.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?(e.preventDefault(),x(),le()):ce(e);break;case 27:e.preventDefault(),le();break;case 8:case 46:t&&!h.config.allowInput&&(e.preventDefault(),h.clear());break;case 37:case 39:if(o||t)h.hourElement&&h.hourElement.focus();else if(e.preventDefault(),void 0!==h.daysContainer&&(!1===n||document.activeElement&&Q(document.activeElement))){var r=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),$(r),L(H(1),0)):L(void 0,r)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;h.daysContainer&&void 0!==e.target.$i||e.target===h.input||e.target===h.altInput?e.ctrlKey?(e.stopPropagation(),V(h.currentYear-l),L(H(1),0)):o||L(void 0,7*l):e.target===h.currentYearElement?V(h.currentYear-l):h.config.enableTime&&(!o&&h.hourElement&&h.hourElement.focus(),x(e),h._debouncedChange());break;case 9:if(o){var c=[h.hourElement,h.minuteElement,h.secondElement,h.amPM].concat(h.pluginElements).filter((function(e){return e})),d=c.indexOf(e.target);if(-1!==d){var s=c[d+(e.shiftKey?-1:1)];e.preventDefault(),(s||h._input).focus()}}else!h.config.noCalendar&&h.daysContainer&&h.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),h._input.focus())}}if(void 0!==h.amPM&&e.target===h.amPM)switch(e.key){case h.l10n.amPM[0].charAt(0):case h.l10n.amPM[0].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[0],E(),ve();break;case h.l10n.amPM[1].charAt(0):case h.l10n.amPM[1].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[1],E(),ve()}(t||z(e.target))&&fe("onKeyDown",e)}function ee(e){if(1===h.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():h.days.firstElementChild.dateObj.getTime(),n=h.parseDate(h.selectedDates[0],void 0,!0).getTime(),a=Math.min(t,h.selectedDates[0].getTime()),i=Math.max(t,h.selectedDates[0].getTime()),o=!1,r=0,l=0,c=a;c<i;c+=b)Z(new Date(c),!0)||(o=o||c>a&&c<i,c<n&&(!r||c>r)?r=c:c>n&&(!l||c<l)&&(l=c));for(var d=0;d<h.config.showMonths;d++)for(var s=h.daysContainer.children[d],u=function(a,i){var c,d,u,f=s.children[a],m=f.dateObj.getTime(),g=r>0&&m<r||l>0&&m>l;return g?(f.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){f.classList.remove(e)})),"continue"):o&&!g?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){f.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=h.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&m===n?f.classList.add("startRange"):n>t&&m===n&&f.classList.add("endRange"),m>=r&&(0===l||m<=l)&&(d=n,u=t,(c=m)>Math.min(d,u)&&c<Math.max(d,u))&&f.classList.add("inRange"))))},f=0,m=s.children.length;f<m;f++)u(f)}}function te(){!h.isOpen||h.config.static||h.config.inline||oe()}function ne(){h.setDate(void 0!==h.config.minDate?new Date(h.config.minDate.getTime()):new Date,!0),k(),ve()}function ae(e){return function(t){var n=h.config["_"+e+"Date"]=h.parseDate(t,h.config.dateFormat),a=h.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(h["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),h.selectedDates&&(h.selectedDates=h.selectedDates.filter((function(e){return Z(e)})),h.selectedDates.length||"min"!==e||T(n),ve()),h.daysContainer&&(re(),void 0!==n?h.currentYearElement[e]=n.getFullYear().toString():h.currentYearElement.removeAttribute(e),h.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function ie(){"object"!=typeof h.config.locale&&void 0===y.l10ns[h.config.locale]&&h.config.errorHandler(new Error("flatpickr: invalid locale "+h.config.locale)),h.l10n=e({},y.l10ns.default,"object"==typeof h.config.locale?h.config.locale:"default"!==h.config.locale?y.l10ns[h.config.locale]:void 0),p.K="("+h.l10n.amPM[0]+"|\"+h.l10n.amPM[1]+\"|"+h.l10n.amPM[0].toLowerCase()+"|\"+h.l10n.amPM[1].toLowerCase()+\")\",void 0===e({},g,JSON.parse(JSON.stringify(f.dataset||{}))).time_24hr&&void 0===y.defaultConfig.time_24hr&&(h.config.time_24hr=h.l10n.time_24hr),h.formatDate=v(h),h.parseDate=D({config:h.config,l10n:h.l10n})}function oe(e){if(void 0!==h.calendarContainer){fe(\"onPreCalendarPosition\");var t=e||h._positionElement,n=Array.prototype.reduce.call(h.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),a=h.calendarContainer.offsetWidth,i=h.config.position.split(\" \"),o=i[0],r=i.length>1?i[1]:null,l=t.getBoundingClientRect(),d=window.innerHeight-l.bottom,s=\"above\"===o||"below"!==o&&d<n&&l.top>n,u=window.pageYOffset+l.top+(s?-n-2:t.offsetHeight+2);if(c(h.calendarContainer,"arrowTop",!s),c(h.calendarContainer,"arrowBottom",s),!h.config.inline){var f=window.pageXOffset+l.left-(null!=r&&"center"===r?(a-l.width)/2:0),m=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=f+a>window.document.body.offsetWidth,p=m+a>window.document.body.offsetWidth;if(c(h.calendarContainer,"rightMost",g),!h.config.static)if(h.calendarContainer.style.top=u+"px",g)if(p){var v=document.styleSheets[0];if(void 0===v)return;var D=window.document.body.offsetWidth,w=Math.max(0,D/2-a/2),b=v.cssRules.length,C="{left:"+l.left+"px;right:auto;}";c(h.calendarContainer,"rightMost",!1),c(h.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,b),h.calendarContainer.style.left=w+"px",h.calendarContainer.style.right="auto"}else h.calendarContainer.style.left="auto",h.calendarContainer.style.right=m+"px";else h.calendarContainer.style.left=f+"px",h.calendarContainer.style.right="auto"}}}function re(){h.config.noCalendar||h.isMobile||(pe(),R())}function le(){h._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(h.close,0):h.close()}function ce(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,a=h.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<h.currentMonth||a.getMonth()>h.currentMonth+h.config.showMonths-1)&&"range"!==h.config.mode;if(h.selectedDateElem=n,"single"===h.config.mode)h.selectedDates=[a];else if("multiple"===h.config.mode){var o=ge(a);o?h.selectedDates.splice(parseInt(o),1):h.selectedDates.push(a)}else"range"===h.config.mode&&(2===h.selectedDates.length&&h.clear(!1,!1),h.latestSelectedDateObj=a,h.selectedDates.push(a),0!==w(a,h.selectedDates[0],!0)&&h.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(E(),i){var r=h.currentYear!==a.getFullYear();h.currentYear=a.getFullYear(),h.currentMonth=a.getMonth(),r&&(fe("onYearChange"),B()),fe("onMonthChange")}if(pe(),R(),ve(),h.config.enableTime&&setTimeout((function(){return h.showTimeInput=!0}),50),i||"range"===h.config.mode||1!==h.config.showMonths?void 0!==h.selectedDateElem&&void 0===h.hourElement&&h.selectedDateElem&&h.selectedDateElem.focus():j(n),void 0!==h.hourElement&&void 0!==h.hourElement&&h.hourElement.focus(),h.config.closeOnSelect){var l="single"===h.config.mode&&!h.config.enableTime,c="range"===h.config.mode&&2===h.selectedDates.length&&!h.config.enableTime;(l||c)&&le()}F()}}h.parseDate=D({config:h.config,l10n:h.l10n}),h._handlers=[],h.pluginElements=[],h.loadedPlugins=[],h._bind=O,h._setHoursFromDate=T,h._positionCalendar=oe,h.changeMonth=$,h.changeYear=V,h.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),h.input.value="",void 0!==h.altInput&&(h.altInput.value=""),void 0!==h.mobileInput&&(h.mobileInput.value=""),h.selectedDates=[],h.latestSelectedDateObj=void 0,!0===t&&(h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth()),h.showTimeInput=!1,!0===h.config.enableTime&&k(),h.redraw(),e&&fe("onChange")},h.close=function(){h.isOpen=!1,h.isMobile||(void 0!==h.calendarContainer&&h.calendarContainer.classList.remove("open"),void 0!==h._input&&h._input.classList.remove("active")),fe("onClose")},h._createElement=d,h.destroy=function(){void 0!==h.config&&fe("onDestroy");for(var e=h._handlers.length;e–;){var t=h._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(h._handlers=[],h.mobileInput)h.mobileInput.parentNode&&h.mobileInput.parentNode.removeChild(h.mobileInput),h.mobileInput=void 0;else if(h.calendarContainer&&h.calendarContainer.parentNode)if(h.config.static&&h.calendarContainer.parentNode){var n=h.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else h.calendarContainer.parentNode.removeChild(h.calendarContainer);h.altInput&&(h.input.type="text",h.altInput.parentNode&&h.altInput.parentNode.removeChild(h.altInput),delete h.altInput),h.input&&(h.input.type=h.input._type,h.input.classList.remove("flatpickr-input"),h.input.removeAttribute("readonly"),h.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete h[e]}catch(e){}}))},h.isEnabled=Z,h.jumpToDate=N,h.open=function(e,t){if(void 0===t&&(t=h._positionElement),!0===h.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==h.mobileInput&&(h.mobileInput.focus(),h.mobileInput.click()),void fe("onOpen");if(!h._input.disabled&&!h.config.inline){var n=h.isOpen;h.isOpen=!0,n||(h.calendarContainer.classList.add("open"),h._input.classList.add("active"),fe("onOpen"),oe(t)),!0===h.config.enableTime&&!0===h.config.noCalendar&&(0===h.selectedDates.length&&ne(),!1!==h.config.allowInput||void 0!==e&&h.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return h.hourElement.select()}),50))}},h.redraw=re,h.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(h.config,e),e)void 0!==de[a]&&de[a].forEach((function(e){return e()}));else h.config[e]=n,void 0!==de[e]?de[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(h.config[e]=l(n));h.redraw(),ve(!1)},h.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=h.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return h.clear(t);se(e,n),h.showTimeInput=h.selectedDates.length>0,h.latestSelectedDateObj=h.selectedDates[h.selectedDates.length-1],h.redraw(),N(),T(),0===h.selectedDates.length&&h.clear(!1),ve(t),t&&fe("onChange")},h.toggle=function(e){if(!0===h.isOpen)return h.close();h.open(e)};var de={locale:[ie,q],showMonths:[K,M,U],minDate:[N],maxDate:[N]};function se(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return h.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[h.parseDate(e,t)];else if("string"==typeof e)switch(h.config.mode){case"single":case"time":n=[h.parseDate(e,t)];break;case"multiple":n=e.split(h.config.conjunction).map((function(e){return h.parseDate(e,t)}));break;case"range":n=e.split(h.l10n.rangeSeparator).map((function(e){return h.parseDate(e,t)}))}else h.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));h.selectedDates=n.filter((function(e){return e instanceof Date&&Z(e,!1)})),"range"===h.config.mode&&h.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ue(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?h.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:h.parseDate(e.from,void 0),to:h.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function fe(e,t){if(void 0!==h.config){var n=h.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](h.selectedDates,h.input.value,h,t);"onChange"===e&&(h.input.dispatchEvent(me("change")),h.input.dispatchEvent(me("input")))}}function me(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function ge(e){for(var t=0;t<h.selectedDates.length;t++)if(0===w(h.selectedDates[t],e))return""+t;return!1}function pe(){h.config.noCalendar||h.isMobile||!h.monthNav||(h.yearElements.forEach((function(e,t){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),h.config.showMonths>1||"static"===h.config.monthSelectorType?h.monthElements[t].textContent=m(n.getMonth(),h.config.shorthandCurrentMonth,h.l10n)+" ":h.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),h._hidePrevMonthArrow=void 0!==h.config.minDate&&(h.currentYear===h.config.minDate.getFullYear()?h.currentMonth<=h.config.minDate.getMonth():h.currentYear<h.config.minDate.getFullYear()),h._hideNextMonthArrow=void 0!==h.config.maxDate&&(h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth+1>h.config.maxDate.getMonth():h.currentYear>h.config.maxDate.getFullYear()))}function he(e){return h.selectedDates.map((function(t){return h.formatDate(t,e)})).filter((function(e,t,n){return"range"!==h.config.mode||h.config.enableTime||n.indexOf(e)===t})).join("range"!==h.config.mode?h.config.conjunction:h.l10n.rangeSeparator)}function ve(e){void 0===e&&(e=!0),void 0!==h.mobileInput&&h.mobileFormatStr&&(h.mobileInput.value=void 0!==h.latestSelectedDateObj?h.formatDate(h.latestSelectedDateObj,h.mobileFormatStr):""),h.input.value=he(h.config.dateFormat),void 0!==h.altInput&&(h.altInput.value=he(h.config.altFormat)),!1!==e&&fe("onValueUpdate")}function De(e){var t=h.prevMonthNav.contains(e.target),n=h.nextMonthNav.contains(e.target);t||n?$(t?-1:1):h.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?h.changeYear(h.currentYear+1):e.target.classList.contains("arrowDown")&&h.changeYear(h.currentYear-1)}return function(){h.element=h.input=f,h.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e({},g,JSON.parse(JSON.stringify(f.dataset||{}))),o={};h.config.parseDate=i.parseDate,h.config.formatDate=i.formatDate,Object.defineProperty(h.config,"enable",{get:function(){return h.config._enable},set:function(e){h.config._enable=ue(e)}}),Object.defineProperty(h.config,"disable",{get:function(){return h.config._disable},set:function(e){h.config._disable=ue(e)}});var r="time"===i.mode;if(!i.dateFormat&&(i.enableTime||r)){var c=y.defaultConfig.dateFormat||n.dateFormat;o.dateFormat=i.noCalendar||r?"H:i"+(i.enableSeconds?":S":""):c+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||r)&&!i.altFormat){var d=y.defaultConfig.altFormat||n.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):d+" h:i"+(i.enableSeconds?":S":"")+" K"}i.altInputClass||(h.config.altInputClass=h.input.className+" "+h.config.altInputClass),Object.defineProperty(h.config,"minDate",{get:function(){return h.config._minDate},set:ae("min")}),Object.defineProperty(h.config,"maxDate",{get:function(){return h.config._maxDate},set:ae("max")});var s=function(e){return function(t){h.config["min"===e?"_minTime":"_maxTime"]=h.parseDate(t,"H:i:S")}};Object.defineProperty(h.config,"minTime",{get:function(){return h.config._minTime},set:s("min")}),Object.defineProperty(h.config,"maxTime",{get:function(){return h.config._maxTime},set:s("max")}),"time"===i.mode&&(h.config.noCalendar=!0,h.config.enableTime=!0),Object.assign(h.config,o,i);for(var u=0;u<a.length;u++)h.config[a[u]]=!0===h.config[a[u]]||"true"===h.config[a[u]];for(t.filter((function(e){return void 0!==h.config[e]})).forEach((function(e){h.config[e]=l(h.config[e]||[]).map(C)})),h.isMobile=!h.config.disableMobile&&!h.config.inline&&"single"===h.config.mode&&!h.config.disable.length&&!h.config.enable.length&&!h.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),u=0;u<h.config.plugins.length;u++){var m=h.config.plugins[u](h)||{};for(var p in m)t.indexOf(p)>-1?h.config[p]=l(m[p]).map(C).concat(h.config[p]):void 0===i[p]&&(h.config[p]=m[p])}fe("onParseConfig")}(),ie(),h.input=h.config.wrap?f.querySelector("[data-input]"):f,h.input?(h.input._type=h.input.type,h.input.type="text",h.input.classList.add("flatpickr-input"),h._input=h.input,h.config.altInput&&(h.altInput=d(h.input.nodeName,h.config.altInputClass),h._input=h.altInput,h.altInput.placeholder=h.input.placeholder,h.altInput.disabled=h.input.disabled,h.altInput.required=h.input.required,h.altInput.tabIndex=h.input.tabIndex,h.altInput.type="text",h.input.setAttribute("type","hidden"),!h.config.static&&h.input.parentNode&&h.input.parentNode.insertBefore(h.altInput,h.input.nextSibling)),h.config.allowInput||h._input.setAttribute("readonly","readonly"),h._positionElement=h.config.positionElement||h._input):h.config.errorHandler(new Error("Invalid input element specified")),function(){h.selectedDates=[],h.now=h.parseDate(h.config.now)||new Date;var e=h.config.defaultDate||("INPUT"!==h.input.nodeName&&"TEXTAREA"!==h.input.nodeName||!h.input.placeholder||h.input.value!==h.input.placeholder?h.input.value:null);e&&se(e,h.config.dateFormat),h._initialDate=h.selectedDates.length>0?h.selectedDates[0]:h.config.minDate&&h.config.minDate.getTime()>h.now.getTime()?h.config.minDate:h.config.maxDate&&h.config.maxDate.getTime()<h.now.getTime()?h.config.maxDate:h.now,h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth(),h.selectedDates.length>0&&(h.latestSelectedDateObj=h.selectedDates[0]),void 0!==h.config.minTime&&(h.config.minTime=h.parseDate(h.config.minTime,"H:i")),void 0!==h.config.maxTime&&(h.config.maxTime=h.parseDate(h.config.maxTime,"H:i")),h.minDateHasTime=!!h.config.minDate&&(h.config.minDate.getHours()>0||h.config.minDate.getMinutes()>0||h.config.minDate.getSeconds()>0),h.maxDateHasTime=!!h.config.maxDate&&(h.config.maxDate.getHours()>0||h.config.maxDate.getMinutes()>0||h.config.maxDate.getSeconds()>0),Object.defineProperty(h,"showTimeInput",{get:function(){return h._showTimeInput},set:function(e){h._showTimeInput=e,h.calendarContainer&&c(h.calendarContainer,"showTimeInput",e),h.isOpen&&oe()}})}(),h.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=h.currentMonth),void 0===t&&(t=h.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:h.l10n.daysInMonth[e]}},h.isMobile||function(){var e=window.document.createDocumentFragment();if(h.calendarContainer=d("div","flatpickr-calendar"),h.calendarContainer.tabIndex=-1,!h.config.noCalendar){if(e.appendChild((h.monthNav=d("div","flatpickr-months"),h.yearElements=[],h.monthElements=[],h.prevMonthNav=d("span","flatpickr-prev-month"),h.prevMonthNav.innerHTML=h.config.prevArrow,h.nextMonthNav=d("span","flatpickr-next-month"),h.nextMonthNav.innerHTML=h.config.nextArrow,K(),Object.defineProperty(h,"_hidePrevMonthArrow",{get:function(){return h.__hidePrevMonthArrow},set:function(e){h.__hidePrevMonthArrow!==e&&(c(h.prevMonthNav,"flatpickr-disabled",e),h.__hidePrevMonthArrow=e)}}),Object.defineProperty(h,"_hideNextMonthArrow",{get:function(){return h.__hideNextMonthArrow},set:function(e){h.__hideNextMonthArrow!==e&&(c(h.nextMonthNav,"flatpickr-disabled",e),h.__hideNextMonthArrow=e)}}),h.currentYearElement=h.yearElements[0],pe(),h.monthNav)),h.innerContainer=d("div","flatpickr-innerContainer"),h.config.weekNumbers){var t=function(){h.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",h.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;h.innerContainer.appendChild(n),h.weekNumbers=a,h.weekWrapper=n}h.rContainer=d("div","flatpickr-rContainer"),h.rContainer.appendChild(U()),h.daysContainer||(h.daysContainer=d("div","flatpickr-days"),h.daysContainer.tabIndex=-1),R(),h.rContainer.appendChild(h.daysContainer),h.innerContainer.appendChild(h.rContainer),e.appendChild(h.innerContainer)}h.config.enableTime&&e.appendChild(function(){h.calendarContainer.classList.add("hasTime"),h.config.noCalendar&&h.calendarContainer.classList.add("noCalendar"),h.timeContainer=d("div","flatpickr-time"),h.timeContainer.tabIndex=-1;var e=d("span","flatpickr-time-separator",":"),t=u("flatpickr-hour",{"aria-label":h.l10n.hourAriaLabel});h.hourElement=t.getElementsByTagName("input")[0];var n=u("flatpickr-minute",{"aria-label":h.l10n.minuteAriaLabel});if(h.minuteElement=n.getElementsByTagName("input")[0],h.hourElement.tabIndex=h.minuteElement.tabIndex=-1,h.hourElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getHours():h.config.time_24hr?h.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(h.config.defaultHour)),h.minuteElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getMinutes():h.config.defaultMinute),h.hourElement.setAttribute("step",h.config.hourIncrement.toString()),h.minuteElement.setAttribute("step",h.config.minuteIncrement.toString()),h.hourElement.setAttribute("min",h.config.time_24hr?"0":"1"),h.hourElement.setAttribute("max",h.config.time_24hr?"23":"12"),h.minuteElement.setAttribute("min","0"),h.minuteElement.setAttribute("max","59"),h.timeContainer.appendChild(t),h.timeContainer.appendChild(e),h.timeContainer.appendChild(n),h.config.time_24hr&&h.timeContainer.classList.add("time24hr"),h.config.enableSeconds){h.timeContainer.classList.add("hasSeconds");var a=u("flatpickr-second");h.secondElement=a.getElementsByTagName("input")[0],h.secondElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getSeconds():h.config.defaultSeconds),h.secondElement.setAttribute("step",h.minuteElement.getAttribute("step")),h.secondElement.setAttribute("min","0"),h.secondElement.setAttribute("max","59"),h.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),h.timeContainer.appendChild(a)}return h.config.time_24hr||(h.amPM=d("span","flatpickr-am-pm",h.l10n.amPM[o((h.latestSelectedDateObj?h.hourElement.value:h.config.defaultHour)>11)]),h.amPM.title=h.l10n.toggleTitle,h.amPM.tabIndex=-1,h.timeContainer.appendChild(h.amPM)),h.timeContainer}()),c(h.calendarContainer,"rangeMode","range"===h.config.mode),c(h.calendarContainer,"animate",!0===h.config.animate),c(h.calendarContainer,"multiMonth",h.config.showMonths>1),h.calendarContainer.appendChild(e);var r=void 0!==h.config.appendTo&&void 0!==h.config.appendTo.nodeType;if((h.config.inline||h.config.static)&&(h.calendarContainer.classList.add(h.config.inline?"inline":"static"),h.config.inline&&(!r&&h.element.parentNode?h.element.parentNode.insertBefore(h.calendarContainer,h._input.nextSibling):void 0!==h.config.appendTo&&h.config.appendTo.appendChild(h.calendarContainer)),h.config.static)){var l=d("div","flatpickr-wrapper");h.element.parentNode&&h.element.parentNode.insertBefore(l,h.element),l.appendChild(h.element),h.altInput&&l.appendChild(h.altInput),l.appendChild(h.calendarContainer)}h.config.static||h.config.inline||(void 0!==h.config.appendTo?h.config.appendTo:window.document.body).appendChild(h.calendarContainer)}(),function(){if(h.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(h.element.querySelectorAll("[data-"+e+"]"),(function(t){return O(t,"click",h[e])}))})),h.isMobile)!function(){var e=h.config.enableTime?h.config.noCalendar?"time":"datetime-local":"date";h.mobileInput=d("input",h.input.className+" flatpickr-mobile"),h.mobileInput.step=h.input.getAttribute("step")||"any",h.mobileInput.tabIndex=1,h.mobileInput.type=e,h.mobileInput.disabled=h.input.disabled,h.mobileInput.required=h.input.required,h.mobileInput.placeholder=h.input.placeholder,h.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",h.selectedDates.length>0&&(h.mobileInput.defaultValue=h.mobileInput.value=h.formatDate(h.selectedDates[0],h.mobileFormatStr)),h.config.minDate&&(h.mobileInput.min=h.formatDate(h.config.minDate,"Y-m-d")),h.config.maxDate&&(h.mobileInput.max=h.formatDate(h.config.maxDate,"Y-m-d")),h.input.type="hidden",void 0!==h.altInput&&(h.altInput.type="hidden");try{h.input.parentNode&&h.input.parentNode.insertBefore(h.mobileInput,h.input.nextSibling)}catch(e){}O(h.mobileInput,"change",(function(e){h.setDate(e.target.value,!1,h.mobileFormatStr),fe("onChange"),fe("onClose")}))}();else{var e=r(te,50);h._debouncedChange=r(F,300),h.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&O(h.daysContainer,"mouseover",(function(e){"range"===h.config.mode&&ee(e.target)})),O(window.document.body,"keydown",X),h.config.inline||h.config.static||O(window,"resize",e),void 0!==window.ontouchstart?O(window.document,"touchstart",G):O(window.document,"mousedown",_(G)),O(window.document,"focus",G,{capture:!0}),!0===h.config.clickOpens&&(O(h._input,"focus",h.open),O(h._input,"mousedown",_(h.open))),void 0!==h.daysContainer&&(O(h.monthNav,"mousedown",_(De)),O(h.monthNav,["keyup","increment"],S),O(h.daysContainer,"mousedown",_(ce))),void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&(O(h.timeContainer,["increment"],x),O(h.timeContainer,"blur",x,{capture:!0}),O(h.timeContainer,"mousedown",_(P)),O([h.hourElement,h.minuteElement],["focus","click"],(function(e){return e.target.select()})),void 0!==h.secondElement&&O(h.secondElement,"focus",(function(){return h.secondElement&&h.secondElement.select()})),void 0!==h.amPM&&O(h.amPM,"mousedown",_((function(e){x(e),F()}))))}}(),(h.selectedDates.length||h.config.noCalendar)&&(h.config.enableTime&&T(h.config.noCalendar?h.latestSelectedDateObj||h.config.minDate:void 0),ve(!1)),M(),h.showTimeInput=h.selectedDates.length>0||h.config.noCalendar;var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!h.isMobile&&a&&oe(),fe("onReady")}(),h}function M(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=C(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},i=0,o=t;i<o.length;i++){var r=o[i];a(r)}return e}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return M(this,e)},HTMLElement.prototype.flatpickr=function(e){return M([this],e)});var y=function(e,t){return"string"==typeof e?M(window.document.querySelectorAll(e),t):e instanceof Node?M([e],t):M(e,t)};return y.defaultConfig={},y.l10ns={en:e({},a),default:e({},a)},y.localize=function(t){y.l10ns.default=e({},y.l10ns.default,t)},y.setDefaults=function(t){y.defaultConfig=e({},y.defaultConfig,t)},y.parseDate=D({}),y.formatDate=v({}),y.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return M(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=y),y},"object"==typeof n&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):(a=a||self).flatpickr=i()},n”, ” 394: function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const a=n(1);n(67),a.__importStar(n(66)).styles.append(‘.flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n background: #fff;\n -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);\n box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #e6e6e6;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: \’\’;\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #fff;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #fff;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n background: transparent;\n color: rgba(0, 0, 0, 0.9);\n fill: rgba(0, 0, 0, 0.9);\n height: 34px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0;\n height: 34px;\n padding: 10px;\n z-index: 3;\n color: rgba(0, 0, 0, 0.9);\n fill: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,\n.flatpickr-months .flatpickr-next-month.flatpickr-disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n /\n /*rtl:begin:ignore/\n /\n */\n left: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n /\n /*rtl:begin:ignore/\n /\n */\n right: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #959ea9;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(57, 57, 57, 0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0, 0, 0, 0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: "";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(57, 57, 57, 0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(57, 57, 57, 0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(0, 0, 0, 0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 7.48px 0 0 0;\n line-height: 1;\n height: 34px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(0, 0, 0, 0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months {\n appearance: menulist;\n background: transparent;\n border: none;\n border-radius: 0;\n box-sizing: border-box;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n height: auto;\n line-height: inherit;\n margin: -1px 0 0 0;\n outline: none;\n padding: 0 0 0 0.5ch;\n position: relative;\n vertical-align: initial;\n -webkit-box-sizing: border-box;\n -webkit-appearance: menulist;\n -moz-appearance: menulist;\n width: auto;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:focus,\n.flatpickr-current-month .flatpickr-monthDropdown-months:active {\n outline: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {\n background-color: transparent;\n outline: none;\n padding: 0;\n}\n.flatpickr-weekdays {\n background: transparent;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: transparent;\n color: rgba(0, 0, 0, 0.54);\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #e6e6e6;\n box-shadow: -1px 0 0 #e6e6e6;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #393939;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e6e6e6;\n border-color: #e6e6e6;\n}\n.flatpickr-day.today {\n border-color: #959ea9;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #959ea9;\n background: #959ea9;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #569ff7;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #569ff7;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #569ff7;\n box-shadow: -10px 0 0 #569ff7;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(57, 57, 57, 0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover {\n cursor: not-allowed;\n color: rgba(57, 57, 57, 0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n -webkit-box-shadow: 1px 0 0 #e6e6e6;\n box-shadow: 1px 0 0 #e6e6e6;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(57, 57, 57, 0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-time:after {\n content: "";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #393939;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #393939;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #393939;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n float: left;\n line-height: inherit;\n color: #393939;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eee;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n.flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n -webkit-box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);\n box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #eceef1;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-innerContainer {\n border-bottom: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n border: 1px solid #eceef1;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: \’\’;\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #eceef1;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #eceef1;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #eceef1;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #eceef1;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n border-radius: 5px 5px 0 0;\n background: #eceef1;\n color: #5a6171;\n fill: #5a6171;\n height: 34px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0;\n height: 34px;\n padding: 10px;\n z-index: 3;\n color: #5a6171;\n fill: #5a6171;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,\n.flatpickr-months .flatpickr-next-month.flatpickr-disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n /\n /*rtl:begin:ignore/\n /\n */\n left: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n /\n /*rtl:begin:ignore/\n /\n */\n right: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #bbb;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(72, 72, 72, 0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0, 0, 0, 0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: "";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(72, 72, 72, 0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(72, 72, 72, 0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(90, 97, 113, 0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 7.48px 0 0 0;\n line-height: 1;\n height: 34px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: #5a6171;\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: #5a6171;\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(90, 97, 113, 0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months {\n appearance: menulist;\n background: #eceef1;\n border: none;\n border-radius: 0;\n box-sizing: border-box;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n height: auto;\n line-height: inherit;\n margin: -1px 0 0 0;\n outline: none;\n padding: 0 0 0 0.5ch;\n position: relative;\n vertical-align: initial;\n -webkit-box-sizing: border-box;\n -webkit-appearance: menulist;\n -moz-appearance: menulist;\n width: auto;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:focus,\n.flatpickr-current-month .flatpickr-monthDropdown-months:active {\n outline: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {\n background-color: #eceef1;\n outline: none;\n padding: 0;\n}\n.flatpickr-weekdays {\n background: #eceef1;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: #eceef1;\n color: #5a6171;\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n border-left: 1px solid #eceef1;\n border-right: 1px solid #eceef1;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #eceef1;\n box-shadow: -1px 0 0 #eceef1;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #484848;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e2e2e2;\n border-color: #e2e2e2;\n}\n.flatpickr-day.today {\n border-color: #bbb;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #bbb;\n background: #bbb;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #ff5a5f;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #ff5a5f;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #ff5a5f;\n box-shadow: -10px 0 0 #ff5a5f;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;\n box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(72, 72, 72, 0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover {\n cursor: not-allowed;\n color: rgba(72, 72, 72, 0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;\n box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n border-left: 1px solid #eceef1;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(72, 72, 72, 0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n background: #fff;\n border-bottom: 1px solid #eceef1;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n background: #fff;\n border-radius: 0 0 5px 5px;\n}\n.flatpickr-time:after {\n content: "";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #484848;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #484848;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #484848;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n float: left;\n line-height: inherit;\n color: #484848;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eaeaea;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\nspan.flatpickr-day.selected {\n font-weight: bold;\n}\n’)},n”, ” 395: function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(1).__importDefault(e(157)),r=e(396);class n extends r.AbstractRangeSliderView{}a.DateRangeSliderView=n,n.__name__="DateRangeSliderView";class d extends r.AbstractSlider{constructor(e){super(e),this.behaviour="drag",this.connected=[!1,!0,!1]}static init_DateRangeSlider(){this.prototype.default_view=n,this.override({format:"%d %b %Y"})}_formatter(e,t){return i.default(e,t)}}a.DateRangeSlider=d,d.__name__="DateRangeSlider",d.init_DateRangeSlider()},n”, ” 396: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),l=i.__importStar(e(397)),r=i.__importStar(e(19)),o=e(66),n=e(9),a=e(379),d=e(398),h="bk-noUi-";class _ extends a.ControlView{get noUiSlider(){return this.slider_el.noUiSlider}initialize(){super.initialize()}connect_signals(){super.connect_signals();const{direction:e,orientation:t,tooltips:s}=this.model.properties;this.on_change([e,t,s],()=>this.render());const{start:i,end:l,value:r,step:o,title:n}=this.model.properties;this.on_change([i,l,r,o],()=>{const{start:e,end:t,value:s,step:i}=this._calc_to();this.noUiSlider.updateOptions({range:{min:e,max:t},start:s,step:i})});const{bar_color:a}=this.model.properties;this.on_change(a,()=>{this._set_bar_color()});const{show_value:d}=this.model.properties;this.on_change([r,n,d],()=>this._update_title())}_update_title(){o.empty(this.title_el);const e=null==this.model.title||0==this.model.title.length&&!this.model.show_value;if(this.title_el.style.display=e?"none":"",!e&&(0!=this.model.title.length&&(this.title_el.textContent=`${this.model.title}: ),this.model.show_value)){const{value:e}=this._calc_to(),t=e.map(e=>this.model.pretty(e)).join(" .. ");this.title_el.appendChild(o.span({class:d.bk_slider_value},t))}}_set_bar_color(){if(!this.model.disabled){this.slider_el.querySelector(.${h}connect`).style.backgroundColor=this.model.bar_color}}_keypress_handle(e,t=0){const{start:s,value:i,end:l,step:r}=this._calc_to(),o=2==i.length;let n=s,a=l;switch(o&&0==t?a=i[1]:o&&1==t&&(n=i[0]),e.which){case 37:i[t]=Math.max(i[t]-r,n);break;case 39:i[t]=Math.min(i[t]+r,a);break;default:return}this.model.value=o?i:i[0],this.model.properties.value.change.emit(),this.model.value_throttled=this.model.value,this.noUiSlider.set(i)}render(){super.render();const{start:e,end:t,value:s,step:i}=this._calc_to();let r;if(this.model.tooltips){const e={to:e=>this.model.pretty(e)};r=n.repeat(e,s.length)}else r=!1;if(null==this.slider_el){this.slider_el=o.div(),l.create(this.slider_el,{cssPrefix:h,range:{min:e,max:t},start:s,step:i,behaviour:this.model.behaviour,connect:this.model.connected,tooltips:r,orientation:this.model.orientation,direction:this.model.direction}),this.noUiSlider.on("slide",(e,t,s)=>this._slide(s)),this.noUiSlider.on("change",(e,t,s)=>this._change(s)),this._set_keypress_handles();const n=(e,t)=>{if(!r)return;this.slider_el.querySelectorAll(.${h}handle)[e].querySelector(.${h}tooltip).style.display=t?"block":""};this.noUiSlider.on("start",(e,t)=>n(t,!0)),this.noUiSlider.on("end",(e,t)=>n(t,!1))}else this.noUiSlider.updateOptions({range:{min:e,max:t},start:s,step:i});this._set_bar_color(),this.model.disabled?this.slider_el.setAttribute("disabled","true"):this.slider_el.removeAttribute("disabled"),this.title_el=o.div({class:d.bk_slider_title}),this._update_title(),this.group_el=o.div({class:d.bk_input_group},this.title_el,this.slider_el),this.el.appendChild(this.group_el)}_slide(e){this.model.value=this._calc_from(e)}_change(e){this.model.value=this._calc_from(e),this.model.value_throttled=this.model.value}}_.__name__="AbstractBaseSliderView";class c extends _{_calc_to(){return{start:this.model.start,end:this.model.end,value:[this.model.value],step:this.model.step}}_calc_from([e]){return Number.isInteger(this.model.start)&&Number.isInteger(this.model.end)&&Number.isInteger(this.model.step)?Math.round(e):e}_set_keypress_handles(){const e=this.slider_el.querySelector(.${h}handle);e.setAttribute("tabindex","0"),e.addEventListener("keydown",e=>this._keypress_handle(e))}}s.AbstractSliderView=c,c.__name__="AbstractSliderView";class u extends _{_calc_to(){return{start:this.model.start,end:this.model.end,value:this.model.value,step:this.model.step}}_calc_from(e){return e}_set_keypress_handles(){const e=this.slider_el.querySelector(.${h}handle-lower),t=this.slider_el.querySelector(.${h}handle-upper);e.setAttribute("tabindex","0"),e.addEventListener("keydown",e=>this._keypress_handle(e,0)),t.setAttribute("tabindex","1"),t.addEventListener("keydown",e=>this._keypress_handle(e,1))}}s.AbstractRangeSliderView=u,u.__name__="AbstractRangeSliderView";class m extends a.Control{constructor(e){super(e),this.connected=!1}static init_AbstractSlider(){this.define({title:[r.String,""],show_value:[r.Boolean,!0],start:[r.Any],end:[r.Any],value:[r.Any],value_throttled:[r.Any],step:[r.Number,1],format:[r.Any],direction:[r.Any,"ltr"],tooltips:[r.Boolean,!0],bar_color:[r.Color,"#e6e6e6"]})}_formatter(e,t){return`${e}`}pretty(e){return this._formatter(e,this.format)}}s.AbstractSlider=m,m.__name__="AbstractSlider",m.init_AbstractSlider()},n”, ” 397: function _(t,e,r){n”, ” /! nouislider - 10.1.0 - 2017-07-28 17:11:18 */var n;n=function(){"use strict";var t="10.1.0";function e(t){t.preventDefault()}function r(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function n(t,e,r){r>0&&(s(t,e),setTimeout((function(){a(t,e)}),r))}function i(t){return Array.isArray(t)?t:[t]}function o(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function s(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function a(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function l(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:r?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:r?t.documentElement.scrollTop:t.body.scrollTop}}function u(t,e){return 100/(e-t)}function c(t,e){return 100*e/(t[1]-t[0])}function p(t,e){for(var r=1;t>=e[r];)r+=1;return r}function f(t,e,r){if(r>=t.slice(-1)[0])return 100;var n,i,o,s,a=p(r,t);return n=t[a-1],i=t[a],o=e[a-1],s=e[a],o+function(t,e){return c(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}([n,i],r)/u(o,s)}function d(t,e,r,n){if(100===n)return n;var i,o,s=p(n,t);return r?n-(i=t[s-1])>((o=t[s])-i)/2?o:i:e[s-1]?t[s-1]+function(t,e){return Math.round(t/e)*e}(n-t[s-1],e[s-1]):n}function h(t,e,n){var i;if("number"==typeof e&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(e))throw new Error("noUiSlider (10.1.0): ‘range’ contains invalid value.");if(!r(i="min"===t?0:"max"===t?100:parseFloat(t))||!r(e[0]))throw new Error("noUiSlider (10.1.0): ‘range’ value isn’t numeric.");n.xPct.push(i),n.xVal.push(e[0]),i?n.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(n.xSteps[0]=e[1]),n.xHighestCompleteStep.push(0)}function m(t,e,r){if(!e)return!0;r.xSteps[t]=c([r.xVal[t],r.xVal[t+1]],e)/u(r.xPct[t],r.xPct[t+1]);var n=(r.xVal[t+1]-r.xVal[t])/r.xNumSteps[t],i=Math.ceil(Number(n.toFixed(3))-1),o=r.xVal[t]+r.xNumSteps[t]*i;r.xHighestCompleteStep[t]=o}function g(t,e,r){this.xPct=[],this.xVal=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var n,i=[];for(n in t)t.hasOwnProperty(n)&&i.push([t[n],n]);for(i.length&&"object"==typeof i[0][0]?i.sort((function(t,e){return t[0][0]-e[0][0]})):i.sort((function(t,e){return t[0]-e[0]})),n=0;n<i.length;n++)h(i[n][1],i[n][0],this);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)m(n,this.xNumSteps[n],this)}g.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!=0)throw new Error("noUiSlider (10.1.0): ‘limit’, ‘margin’ and ‘padding’ must be divisible by step.");return 2===this.xPct.length&&c(this.xVal,t)},g.prototype.toStepping=function(t){return t=f(this.xVal,this.xPct,t)},g.prototype.fromStepping=function(t){return function(t,e,r){if(r>=100)return t.slice(-1)[0];var n,i=p(r,e);return function(t,e){return e*(t[1]-t[0])/100+t[0]}([t[i-1],t[i]],(r-(n=e[i-1]))*u(n,e[i]))}(this.xVal,this.xPct,t)},g.prototype.getStep=function(t){return t=d(this.xPct,this.xSteps,this.snap,t)},g.prototype.getNearbySteps=function(t){var e=p(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},g.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(o);return Math.max.apply(null,t)},g.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var v={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};function b(t){if(function(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}(t))return!0;throw new Error("noUiSlider (10.1.0): ‘format’ requires ‘to’ and ‘from’ methods.")}function S(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘step’ is not numeric.");t.singleStep=e}function w(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider (10.1.0): ‘range’ is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider (10.1.0): Missing ‘min’ or ‘max’ in ‘range’.");if(e.min===e.max)throw new Error("noUiSlider (10.1.0): ‘range’ ‘min’ and ‘max’ cannot be equal.");t.spectrum=new g(e,t.snap,t.singleStep)}function x(t,e){if(e=i(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider (10.1.0): ‘start’ option is incorrect.");t.handles=e.length,t.start=e}function y(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘snap’ option must be a boolean.")}function E(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘animate’ option must be a boolean.")}function C(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘animationDuration’ option must be a number.")}function N(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider (10.1.0): ‘connect’ option doesn’t match handle count.");n=e}t.connect=n}function U(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider (10.1.0): ‘orientation’ option is invalid.")}}function P(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘margin’ option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider (10.1.0): ‘margin’ option is only supported on linear sliders.")}function A(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘limit’ option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit||t.handles<2)throw new Error("noUiSlider (10.1.0): ‘limit’ option is only supported on linear sliders with 2 or more handles.")}function M(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘padding’ option must be numeric.");if(0!==e){if(t.padding=t.spectrum.getMargin(e),!t.padding)throw new Error("noUiSlider (10.1.0): ‘padding’ option is only supported on linear sliders.");if(t.padding<0)throw new Error("noUiSlider (10.1.0): ‘padding’ option must be a positive number.");if(t.padding>=50)throw new Error("noUiSlider (10.1.0): ‘padding’ option must be less than half the range.")}}function O(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider (10.1.0): ‘direction’ option was not recognized.")}}function k(t,e){if("string"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘behaviour’ must be a string containing options.");var r=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider (10.1.0): ‘fixed’ behaviour must be used with 2 handles");P(t,t.start[1]-t.start[0])}t.events={tap:r||o,drag:n,fixed:i,snap:o,hover:s}}function V(t,e){if(t.multitouch=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘multitouch’ option must be a boolean.")}function F(t,e){if(!1!==e)if(!0===e){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(!0)}else{if(t.tooltips=i(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider (10.1.0): must pass a formatter for all handles.");t.tooltips.forEach((function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider (10.1.0): ‘tooltips’ must be passed a formatter or ‘false’.")}))}}function L(t,e){t.ariaFormat=e,b(e)}function z(t,e){t.format=e,b(e)}function j(t,e){if(void 0!==e&&"string"!=typeof e&&!1!==e)throw new Error("noUiSlider (10.1.0): ‘cssPrefix’ must be a string or `false`.");t.cssPrefix=e}function H(t,e){if(void 0!==e&&"object"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘cssClasses’ must be an object.");if("string"==typeof t.cssPrefix)for(var r in t.cssClasses={},e)e.hasOwnProperty(r)&&(t.cssClasses[r]=t.cssPrefix+e[r]);else t.cssClasses=e}function D(t,e){if(!0!==e&&!1!==e)throw new Error("noUiSlider (10.1.0): ‘useRequestAnimationFrame’ option should be true (default) or false.");t.useRequestAnimationFrame=e}function q(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:v,format:v},r={step:{r:!1,t:S},start:{r:!0,t:x},connect:{r:!0,t:N},direction:{r:!0,t:O},snap:{r:!1,t:y},animate:{r:!1,t:E},animationDuration:{r:!1,t:C},range:{r:!0,t:w},orientation:{r:!1,t:U},margin:{r:!1,t:P},limit:{r:!1,t:A},padding:{r:!1,t:M},behaviour:{r:!0,t:k},multitouch:{r:!0,t:V},ariaFormat:{r:!1,t:L},format:{r:!1,t:z},tooltips:{r:!1,t:F},cssPrefix:{r:!1,t:j},cssClasses:{r:!1,t:H},useRequestAnimationFrame:{r:!1,t:D}},n={connect:!1,direction:"ltr",behaviour:"tap",multitouch:!1,orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(r).forEach((function(i){if(void 0===t[i]&&void 0===n[i]){if(r[i].r)throw new Error("noUiSlider (10.1.0): ‘"+i+"’ is required.");return!0}r[i].t(e,void 0===t[i]?n[i]:t[i])})),e.pips=t.pips;var i=[["left","top"],["right","bottom"]];return e.style=i[e.dir][e.ort],e.styleOposite=i[e.dir?0:1][e.ort],e}function T(t,r,o){var u,c,p,f,d,h,m,g=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},v=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),b=t,S=[],w=[],x=0,y=r.spectrum,E=[],C={},N=t.ownerDocument,U=N.documentElement,P=N.body;function A(t,e){var r=N.createElement("div");return e&&s(r,e),t.appendChild(r),r}function M(t,e){var n=A(t,r.cssClasses.origin),i=A(n,r.cssClasses.handle);return i.setAttribute("data-handle",e),i.setAttribute("tabindex","0"),i.setAttribute("role","slider"),i.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),0===e?s(i,r.cssClasses.handleLower):e===r.handles-1&&s(i,r.cssClasses.handleUpper),n}function O(t,e){return!!e&&A(t,r.cssClasses.connect)}function k(t,e){return!!r.tooltips[e]&&A(t.firstChild,r.cssClasses.tooltip)}function V(t,e,n){var i=N.createElement("div"),o=[r.cssClasses.valueNormal,r.cssClasses.valueLarge,r.cssClasses.valueSub],a=[r.cssClasses.markerNormal,r.cssClasses.markerLarge,r.cssClasses.markerSub],l=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],u=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];function c(t,e){var n=e===r.cssClasses.value,i=n?o:a;return e+" "+(n?l:u)[r.ort]+" "+i[t]}return s(i,r.cssClasses.pips),s(i,0===r.ort?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical),Object.keys(t).forEach((function(o){!function(t,o){o[1]=o[1]&&e?e(o[0],o[1]):o[1];var s=A(i,!1);s.className=c(o[1],r.cssClasses.marker),s.style[r.style]=t+"%",o[1]&&((s=A(i,!1)).className=c(o[1],r.cssClasses.value),s.style[r.style]=t+"%",s.innerText=n.to(o[0]))}(o,t[o])})),i}function F(){var t;d&&((t=d).parentElement.removeChild(t),d=null)}function L(t){F();var e=t.mode,r=t.density||1,n=t.filter||!1,i=function(t,e,r){if("range"===t||"steps"===t)return y.xVal;if("count"===t){if(!e)throw new Error("noUiSlider (10.1.0): ‘values’ required for mode ‘count’.");var n,i=100/(e-1),o=0;for(e=[];(n=o++*i)<=100;)e.push(n);t="positions"}return"positions"===t?e.map((function(t){return y.fromStepping(r?y.getStep(t):t)})):"values"===t?r?e.map((function(t){return y.fromStepping(y.getStep(y.toStepping(t)))})):e:void 0}(e,t.values||!1,t.stepped||!1),o=function(t,e,r){var n,i={},o=y.xVal[0],s=y.xVal[y.xVal.length-1],a=!1,l=!1,u=0;return n=r.slice().sort((function(t,e){return t-e})),(r=n.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==o&&(r.unshift(o),a=!0),r[r.length-1]!==s&&(r.push(s),l=!0),r.forEach((function(n,o){var s,c,p,f,d,h,m,g,v,b=n,S=r[o+1];if("steps"===e&&(s=y.xNumSteps[o]),s||(s=S-b),!1!==b&&void 0!==S)for(s=Math.max(s,1e-7),c=b;c<=S;c=(c+s).toFixed(7)/1){for(m=(d=(f=y.toStepping(c))-u)/t,v=d/(g=Math.round(m)),p=1;p<=g;p+=1)i[(u+p*v).toFixed(5)]=["x",0];h=r.indexOf(c)>-1?1:"steps"===e?2:0,!o&&a&&(h=0),c===S&&l||(i[f.toFixed(5)]=[c,h]),u=f}})),i}(r,e,i),s=t.format||{to:Math.round};return d=b.appendChild(V(o,n,s))}function z(){var t=u.getBoundingClientRect(),e="offset"+["Width","Height"][r.ort];return 0===r.ort?t.width||u[e]:t.height||u[e]}function j(t,e,n,i){var o=function(o){return!b.hasAttribute("disabled")&&(s=b,a=r.cssClasses.tap,!(s.classList?s.classList.contains(a):new RegExp("\\b"+a+"\\b").test(s.className))&&!!(o=function(t,e,n){var i,o,s=0===t.type.indexOf("touch"),a=0===t.type.indexOf("mouse"),u=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(u=!0),s&&r.multitouch){var c=function(t){return t.target===n||n.contains(t.target)};if("touchstart"===t.type){var p=Array.prototype.filter.call(t.touches,c);if(p.length>1)return!1;i=p[0].pageX,o=p[0].pageY}else{var f=Array.prototype.find.call(t.changedTouches,c);if(!f)return!1;i=f.pageX,o=f.pageY}}else if(s){if(t.touches.length>1)return!1;i=t.changedTouches[0].pageX,o=t.changedTouches[0].pageY}return e=e||l(N),(a||u)&&(i=t.clientX+e.x,o=t.clientY+e.y),t.pageOffset=e,t.points=[i,o],t.cursor=a||u,t}(o,i.pageOffset,i.target||e))&&!(t===g.start&&void 0!==o.buttons&&o.buttons>1)&&(!i.hover||!o.buttons)&&(v||o.preventDefault(),o.calcPoint=o.points[r.ort],void n(o,i)));var s,a},s=[];return t.split(" ").forEach((function(t){e.addEventListener(t,o,!!v&&{passive:!0}),s.push([t,o])})),s}function H(t){var e,n,i,o,s,a,c=100*(t-(e=u,n=r.ort,i=e.getBoundingClientRect(),o=e.ownerDocument,s=o.documentElement,a=l(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?i.top+a.y-s.clientTop:i.left+a.x-s.clientLeft))/z();return r.dir?100-c:c}function D(t,e,r,n){var i=r.slice(),o=[!t,t],s=[t,!t];n=n.slice(),t&&n.reverse(),n.length>1?n.forEach((function(t,r){var n=W(i,t,i[t]+e,o[r],s[r],!1);!1===n?e=0:(e=n-i[t],i[t]=n)})):o=s=[!0];var a=!1;n.forEach((function(t,n){a=J(t,r[t]+e,o[n],s[n])||a})),a&&n.forEach((function(t){T("update",t),T("slide",t)}))}function T(t,e,n){Object.keys(C).forEach((function(i){var o=i.split(".")[0];t===o&&C[i].forEach((function(t){t.call(f,E.map(r.format.to),e,E.slice(),n||!1,S.slice())}))}))}function R(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&B(t,e)}function X(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return B(t,e);var n=(r.dir?-1:1)*(t.calcPoint-e.startCalcPoint);D(n>0,100*n/e.baseSize,e.locations,e.handleNumbers)}function B(t,n){n.handle&&(a(n.handle,r.cssClasses.active),x-=1),n.listeners.forEach((function(t){U.removeEventListener(t[0],t[1])})),0===x&&(a(b,r.cssClasses.drag),G(),t.cursor&&(P.style.cursor="",P.removeEventListener("selectstart",e))),n.handleNumbers.forEach((function(t){T("change",t),T("set",t),T("end",t)}))}function Y(t,n){var i;if(1===n.handleNumbers.length){var o=c[n.handleNumbers[0]];if(o.hasAttribute("disabled"))return!1;i=o.children[0],x+=1,s(i,r.cssClasses.active)}t.stopPropagation();var a=[],l=j(g.move,U,X,{target:t.target,handle:i,listeners:a,startCalcPoint:t.calcPoint,baseSize:z(),pageOffset:t.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:t.buttons,locations:S.slice()}),u=j(g.end,U,B,{target:t.target,handle:i,listeners:a,handleNumbers:n.handleNumbers}),p=j("mouseout",U,R,{target:t.target,handle:i,listeners:a,handleNumbers:n.handleNumbers});a.push.apply(a,l.concat(u,p)),t.cursor&&(P.style.cursor=getComputedStyle(t.target).cursor,c.length>1&&s(b,r.cssClasses.drag),P.addEventListener("selectstart",e,!1)),n.handleNumbers.forEach((function(t){T("start",t)}))}function _(t){t.stopPropagation();var e=H(t.calcPoint),i=function(t){var e=100,r=!1;return c.forEach((function(n,i){if(!n.hasAttribute("disabled")){var o=Math.abs(S[i]-t);o<e&&(r=i,e=o)}})),r}(e);if(!1===i)return!1;r.events.snap||n(b,r.cssClasses.tap,r.animationDuration),J(i,e,!0,!0),G(),T("slide",i,!0),T("update",i,!0),T("change",i,!0),T("set",i,!0),r.events.snap&&Y(t,{handleNumbers:[i]})}function I(t){var e=H(t.calcPoint),r=y.getStep(e),n=y.fromStepping(r);Object.keys(C).forEach((function(t){"hover"===t.split(".")[0]&&C[t].forEach((function(t){t.call(f,n)}))}))}function W(t,e,n,i,o,s){var a;return c.length>1&&(i&&e>0&&(n=Math.max(n,t[e-1]+r.margin)),o&&e<c.length-1&&(n=Math.min(n,t[e+1]-r.margin))),c.length>1&&r.limit&&(i&&e>0&&(n=Math.min(n,t[e-1]+r.limit)),o&&e<c.length-1&&(n=Math.max(n,t[e+1]-r.limit))),r.padding&&(0===e&&(n=Math.max(n,r.padding)),e===c.length-1&&(n=Math.min(n,100-r.padding))),n=y.getStep(n),a=n,!((n=Math.max(Math.min(a,100),0))===t[e]&&!s)&&n}function $(t){return t+"%"}function G(){w.forEach((function(t){var e=S[t]>50?-1:1,r=3+(c.length+e*t);c[t].childNodes[0].style.zIndex=r}))}function J(t,e,n,i){return!1!==(e=W(S,t,e,n,i,!1))&&(function(t,e){S[t]=e,E[t]=y.fromStepping(e);var n=function(){c[t].style[r.style]=$(e),K(t),K(t+1)};window.requestAnimationFrame&&r.useRequestAnimationFrame?window.requestAnimationFrame(n):n()}(t,e),!0)}function K(t){if(p[t]){var e=0,n=100;0!==t&&(e=S[t-1]),t!==p.length-1&&(n=S[t]),p[t].style[r.style]=$(e),p[t].style[r.styleOposite]=$(100-n)}}function Q(t,e){null!==t&&!1!==t&&("number"==typeof t&&(t=String(t)),!1===(t=r.format.from(t))||isNaN(t)||J(e,y.toStepping(t),!1,!1))}function Z(t,e){var o=i(t),s=void 0===S[0];e=void 0===e||!!e,o.forEach(Q),r.animate&&!s&&n(b,r.cssClasses.tap,r.animationDuration),w.forEach((function(t){J(t,S[t],!0,!1)})),G(),w.forEach((function(t){T("update",t),null!==o[t]&&e&&T("set",t)}))}function tt(){var t=E.map(r.format.to);return 1===t.length?t[0]:t}function et(t,e){C[t]=C[t]||[],C[t].push(e),"update"===t.split(".")[0]&&c.forEach((function(t,e){T("update",e)}))}if(b.noUiSlider)throw new Error("noUiSlider (10.1.0): Slider was already initialized.");return function(t){s(t,r.cssClasses.target),0===r.dir?s(t,r.cssClasses.ltr):s(t,r.cssClasses.rtl),0===r.ort?s(t,r.cssClasses.horizontal):s(t,r.cssClasses.vertical),u=A(t,r.cssClasses.base)}(b),function(t,e){c=[],(p=[]).push(O(e,t[0]));for(var n=0;n<r.handles;n++)c.push(M(e,n)),w[n]=n,p.push(O(e,t[n+1]))}(r.connect,u),f={destroy:function(){for(var t in r.cssClasses)r.cssClasses.hasOwnProperty(t)&&a(b,r.cssClasses[t]);for(;b.firstChild;)b.removeChild(b.firstChild);delete b.noUiSlider},steps:function(){return S.map((function(t,e){var r=y.getNearbySteps(t),n=E[e],i=r.thisStep.step,o=null;!1!==i&&n+i>r.stepAfter.startValue&&(i=r.stepAfter.startValue-n),o=n>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&n-r.stepBefore.highestStep,100===t?i=null:0===t&&(o=null);var s=y.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(s))),null!==o&&!1!==o&&(o=Number(o.toFixed(s))),[o,i]}))},on:et,off:function(t){var e=t&&t.split(".")[0],r=e&&t.substring(e.length);Object.keys(C).forEach((function(t){var n=t.split(".")[0],i=t.substring(n.length);e&&e!==n||r&&r!==i||delete C[t]}))},get:tt,set:Z,reset:function(t){Z(r.start,t)},__moveHandles:function(t,e,r){D(t,e,S,r)},options:o,updateOptions:function(t,e){var n=tt(),i=["margin","limit","padding","range","animate","snap","step","format"];i.forEach((function(e){void 0!==t[e]&&(o[e]=t[e])}));var s=q(o);i.forEach((function(e){void 0!==t[e]&&(r[e]=s[e])})),y=s.spectrum,r.margin=s.margin,r.limit=s.limit,r.padding=s.padding,r.pips&&L(r.pips),S=[],Z(t.start||n,e)},target:b,removePips:F,pips:L},(h=r.events).fixed||c.forEach((function(t,e){j(g.start,t.children[0],Y,{handleNumbers:[e]})})),h.tap&&j(g.start,u,_,{}),h.hover&&j(g.move,u,I,{hover:!0}),h.drag&&p.forEach((function(t,e){if(!1!==t&&0!==e&&e!==p.length-1){var n=c[e-1],i=c[e],o=[t];s(t,r.cssClasses.draggable),h.fixed&&(o.push(n.children[0]),o.push(i.children[0])),o.forEach((function(t){j(g.start,t,Y,{handles:[n,i],handleNumbers:[e-1,e]})}))}})),Z(r.start),r.pips&&L(r.pips),r.tooltips&&(m=c.map(k),et("update",(function(t,e,n){if(m[e]){var i=t[e];!0!==r.tooltips[e]&&(i=r.tooltips[e].to(n[e])),m[e].innerHTML=i}}))),et("update",(function(t,e,n,i,o){w.forEach((function(t){var e=c[t],i=W(S,t,0,!0,!0,!0),s=W(S,t,100,!0,!0,!0),a=o[t],l=r.ariaFormat.to(n[t]);e.children[0].setAttribute("aria-valuemin",i.toFixed(1)),e.children[0].setAttribute("aria-valuemax",s.toFixed(1)),e.children[0].setAttribute("aria-valuenow",a.toFixed(1)),e.children[0].setAttribute("aria-valuetext",l)}))})),f}return{version:t,create:function(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider (10.1.0): create requires a single element, got: "+t);var r=T(t,q(e),e);return t.noUiSlider=r,r}}},"function"==typeof define&&define.amd?define([],n):"object"==typeof r?e.exports=n():window.noUiSlider=n()},n”, ” 398: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1);e(67),e(399),l.__importStar(e(66)).styles.append(".bk-root .bk-slider-title {\n white-space: nowrap;\n}\n.bk-root .bk-slider-value {\n font-weight: 600;\n}\n"),i.bk_slider_value="bk-slider-value",i.bk_slider_title="bk-slider-title",i.bk_input_group="bk-input-group"},n”, ” 399: function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);n(67),r.__importStar(n(66)).styles.append(‘.bk-root {\n / Functional styling;\n * These styles are required for noUiSlider to function.\n * You don\’t need to change these rules to apply your design.\n /\n / Painting and performance;\n * Browsers can paint handles in their own layer.\n /\n / Slider size and handle placement;\n /\n / Styling;\n /\n / Handles and cursors;\n /\n / Handle stripes;\n /\n / Disabled state;\n /\n / Base;\n \n */\n / Values;\n \n */\n / Markings;\n \n */\n / Horizontal layout;\n \n */\n / Vertical layout;\n \n */\n}\n.bk-root .bk-noUi-target,\n.bk-root .bk-noUi-target * {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-user-select: none;\n -ms-touch-action: none;\n touch-action: none;\n -ms-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bk-root .bk-noUi-target {\n position: relative;\n direction: ltr;\n}\n.bk-root .bk-noUi-base {\n width: 100%;\n height: 100%;\n position: relative;\n z-index: 1;\n / Fix 401 /\n}\n.bk-root .bk-noUi-connect {\n position: absolute;\n right: 0;\n top: 0;\n left: 0;\n bottom: 0;\n}\n.bk-root .bk-noUi-origin {\n position: absolute;\n height: 0;\n width: 0;\n}\n.bk-root .bk-noUi-handle {\n position: relative;\n z-index: 1;\n}\n.bk-root .bk-noUi-state-tap .bk-noUi-connect,\n.bk-root .bk-noUi-state-tap .bk-noUi-origin {\n -webkit-transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\n transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\n}\n.bk-root .bk-noUi-state-drag * {\n cursor: inherit !important;\n}\n.bk-root .bk-noUi-base,\n.bk-root .bk-noUi-handle {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n.bk-root .bk-noUi-horizontal {\n height: 18px;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\n width: 34px;\n height: 28px;\n left: -17px;\n top: -6px;\n}\n.bk-root .bk-noUi-vertical {\n width: 18px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\n width: 28px;\n height: 34px;\n left: -6px;\n top: -17px;\n}\n.bk-root .bk-noUi-target {\n background: #FAFAFA;\n border-radius: 4px;\n border: 1px solid #D3D3D3;\n box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;\n}\n.bk-root .bk-noUi-connect {\n background: #3FB8AF;\n border-radius: 4px;\n box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45);\n -webkit-transition: background 450ms;\n transition: background 450ms;\n}\n.bk-root .bk-noUi-draggable {\n cursor: ew-resize;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-draggable {\n cursor: ns-resize;\n}\n.bk-root .bk-noUi-handle {\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #FFF;\n cursor: default;\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;\n}\n.bk-root .bk-noUi-active {\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;\n}\n.bk-root .bk-noUi-handle:before,\n.bk-root .bk-noUi-handle:after {\n content: "";\n display: block;\n position: absolute;\n height: 14px;\n width: 1px;\n background: #E8E7E6;\n left: 14px;\n top: 6px;\n}\n.bk-root .bk-noUi-handle:after {\n left: 17px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle:before,\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\n width: 14px;\n height: 1px;\n left: 6px;\n top: 14px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\n top: 17px;\n}\n.bk-root [disabled] .bk-noUi-connect {\n background: #B8B8B8;\n}\n.bk-root [disabled].bk-noUi-target,\n.bk-root [disabled].bk-noUi-handle,\n.bk-root [disabled] .bk-noUi-handle {\n cursor: not-allowed;\n}\n.bk-root .bk-noUi-pips,\n.bk-root .bk-noUi-pips * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bk-root .bk-noUi-pips {\n position: absolute;\n color: #999;\n}\n.bk-root .bk-noUi-value {\n position: absolute;\n white-space: nowrap;\n text-align: center;\n}\n.bk-root .bk-noUi-value-sub {\n color: #ccc;\n font-size: 10px;\n}\n.bk-root .bk-noUi-marker {\n position: absolute;\n background: #CCC;\n}\n.bk-root .bk-noUi-marker-sub {\n background: #AAA;\n}\n.bk-root .bk-noUi-marker-large {\n background: #AAA;\n}\n.bk-root .bk-noUi-pips-horizontal {\n padding: 10px 0;\n height: 80px;\n top: 100%;\n left: 0;\n width: 100%;\n}\n.bk-root .bk-noUi-value-horizontal {\n -webkit-transform: translate3d(-50%, 50%, 0);\n transform: translate3d(-50%, 50%, 0);\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker {\n margin-left: -1px;\n width: 2px;\n height: 5px;\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-sub {\n height: 10px;\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-large {\n height: 15px;\n}\n.bk-root .bk-noUi-pips-vertical {\n padding: 0 10px;\n height: 100%;\n top: 0;\n left: 100%;\n}\n.bk-root .bk-noUi-value-vertical {\n -webkit-transform: translate3d(0, 50%, 0);\n transform: translate3d(0, 50%, 0);\n padding-left: 25px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker {\n width: 5px;\n height: 2px;\n margin-top: -1px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-sub {\n width: 10px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-large {\n width: 15px;\n}\n.bk-root .bk-noUi-tooltip {\n display: block;\n position: absolute;\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #fff;\n color: #000;\n padding: 5px;\n text-align: center;\n white-space: nowrap;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-tooltip {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n left: 50%;\n bottom: 120%;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-tooltip {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n top: 50%;\n right: 120%;\n}\n.bk-root .bk-noUi-handle {\n cursor: grab;\n cursor: -webkit-grab;\n}\n.bk-root .bk-noUi-handle.bk-noUi-active {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n}\n.bk-root .bk-noUi-tooltip {\n display: none;\n white-space: nowrap;\n}\n.bk-root .bk-noUi-handle:hover .bk-noUi-tooltip {\n display: block;\n}\n.bk-root .bk-noUi-horizontal {\n width: 100%;\n height: 10px;\n}\n.bk-root .bk-noUi-horizontal.bk-noUi-target {\n margin: 5px 0px;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\n width: 14px;\n height: 18px;\n left: -7px;\n top: -5px;\n}\n.bk-root .bk-noUi-vertical {\n width: 10px;\n height: 100%;\n}\n.bk-root .bk-noUi-vertical.bk-noUi-target {\n margin: 0px 5px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\n width: 18px;\n height: 14px;\n left: -5px;\n top: -7px;\n}\n.bk-root .bk-noUi-handle:after,\n.bk-root .bk-noUi-handle:before {\n display: none;\n}\n.bk-root .bk-noUi-connect {\n box-shadow: none;\n}\n’)},n”, ” 400: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1).__importDefault(e(157)),a=e(396);class d extends a.AbstractSliderView{}i.DateSliderView=d,d.__name__="DateSliderView";class s extends a.AbstractSlider{constructor(e){super(e),this.behaviour="tap",this.connected=[!0,!1]}static init_DateSlider(){this.prototype.default_view=d,this.override({format:"%d %b %Y"})}_formatter(e,t){return r.default(e,t)}}i.DateSlider=s,s.__name__="DateSlider",s.init_DateSlider()},n”, ” 401: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),_=e(402),n=r.__importStar(e(19));class s extends _.MarkupView{render(){super.render(),this.model.render_as_text?this.markup_el.textContent=this.model.text:this.markup_el.innerHTML=this.model.text}}i.DivView=s,s.__name__="DivView";class a extends _.Markup{constructor(e){super(e)}static init_Div(){this.prototype.default_view=s,this.define({render_as_text:[n.Boolean,!1]})}}i.Div=a,a.__name__="Div",a.init_Div()},n”, ” 402: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(187),a=e(66),r=s.__importStar(e(19)),l=e(441),_=e(403);class c extends l.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>{this.render(),this.root.compute_layout()})}_update_layout(){this.layout=new n.VariadicBox(this.el),this.layout.set_sizing(this.box_sizing())}render(){super.render();const e=Object.assign(Object.assign({},this.model.style),{display:"inline-block"});this.markup_el=a.div({class:_.bk_clearfix,style:e}),this.el.appendChild(this.markup_el)}}i.MarkupView=c,c.__name__="MarkupView";class o extends l.Widget{constructor(e){super(e)}static init_Markup(){this.define({text:[r.String,""],style:[r.Any,{}]})}}i.Markup=o,o.__name__="Markup",o.init_Markup()},n”, ” 403: function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1);e(67),n.__importStar(e(66)).styles.append(‘.bk-root .bk-clearfix:before,\n.bk-root .bk-clearfix:after {\n content: "";\n display: table;\n}\n.bk-root .bk-clearfix:after {\n clear: both;\n}\n’),t.bk_clearfix="bk-clearfix"},n”, ” 404: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(378),o=e(281),_=e(66),d=n.__importStar(e(19)),l=e(8),r=e(145),c=e(252),u=e(253);class h extends s.AbstractButtonView{constructor(){super(…arguments),this._open=!1}render(){super.render();const e=_.div({class:[u.bk_caret,r.bk_down]});if(this.model.is_split){const t=this._render_button(e);t.classList.add(c.bk_dropdown_toggle),t.addEventListener("click",()=>this._toggle_menu()),this.group_el.appendChild(t)}else this.button_el.appendChild(e);const t=this.model.menu.map((e,t)=>{if(null==e)return _.div({class:u.bk_divider});{const i=l.isString(e)?e:e[0],n=_.div({},i);return n.addEventListener("click",()=>this._item_click(t)),n}});this.menu=_.div({class:[u.bk_menu,r.bk_below]},t),this.el.appendChild(this.menu),_.undisplay(this.menu)}_show_menu(){if(!this._open){this._open=!0,_.display(this.menu);const e=t=>{const{target:i}=t;i instanceof HTMLElement&&!this.el.contains(i)&&(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,_.undisplay(this.menu))}_toggle_menu(){this._open?this._hide_menu():this._show_menu()}click(){this.model.is_split?(this._hide_menu(),this.model.trigger_event(new o.ButtonClick),super.click()):this._toggle_menu()}_item_click(e){this._hide_menu();const t=this.model.menu[e];if(null!=t){const i=l.isString(t)?t:t[1];l.isString(i)?this.model.trigger_event(new o.MenuItemClick(i)):i.execute(this.model,{index:e})}}}i.DropdownView=h,h.__name__="DropdownView";class p extends s.AbstractButton{constructor(e){super(e)}static init_Dropdown(){this.prototype.default_view=h,this.define({split:[d.Boolean,!1],menu:[d.Array,[]]}),this.override({label:"Dropdown"})}get is_split(){return this.split}}i.Dropdown=p,p.__name__="Dropdown",p.init_Dropdown()},n”, ” 405: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1).__importStar(e(19)),s=e(441);class n extends s.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.width.change,()=>this.render())}render(){null==this.dialogEl&&(this.dialogEl=document.createElement("input"),this.dialogEl.type="file",this.dialogEl.multiple=this.model.multiple,this.dialogEl.onchange=()=>{const{files:e}=this.dialogEl;null!=e&&this.load_files(e)},this.el.appendChild(this.dialogEl)),null!=this.model.accept&&""!=this.model.accept&&(this.dialogEl.accept=this.model.accept),this.dialogEl.style.width="{this.model.width}px",this.dialogEl.disabled=this.model.disabled}async load_files(e){const t=[],i=[],l=[];let s;for(s=0;s<e.length;s++){i.push(e[s].name);const n=await this.readfile(e[s]),[,o,,a]=n.split(/[:;,]/,4);t.push(a),l.push(o)}this.model.multiple?(this.model.filename=i,this.model.mime_type=l,this.model.value=t):(this.model.filename=i[0],this.model.mime_type=l[0],this.model.value=t[0])}readfile(e){return new Promise((t,i)=>{const l=new FileReader;l.onload=()=>{var s;const{result:n}=l;null!=n?t(n):i(null!==(s=l.error)&&void 0!==s?s:new Error(`unable to read ‘${e.name}’`))},l.readAsDataURL(e)})}}i.FileInputView=n,n.__name__="FileInputView";class o extends s.Widget{constructor(e){super(e)}static init_FileInput(){this.prototype.default_view=n,this.define({value:[l.Any,""],mime_type:[l.Any,""],filename:[l.Any,""],accept:[l.String,""],multiple:[l.Boolean,!1]})}}i.FileInput=o,o.__name__="FileInput",o.init_FileInput()},n”, ” 406: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(66),l=e(8),o=e(15),r=i.__importStar(e(19)),c=e(384),h=e(385);class a extends c.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,()=>this.render_selection()),this.connect(this.model.properties.options.change,()=>this.render()),this.connect(this.model.properties.name.change,()=>this.render()),this.connect(this.model.properties.title.change,()=>this.render()),this.connect(this.model.properties.size.change,()=>this.render()),this.connect(this.model.properties.disabled.change,()=>this.render())}render(){super.render();const e=this.model.options.map(e=>{let t,s;return l.isString(e)?t=s=e:[t,s]=e,n.option({value:t},s)});this.select_el=n.select({multiple:!0,class:h.bk_input,name:this.model.name,disabled:this.model.disabled},e),this.select_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.select_el),this.render_selection()}render_selection(){const e=new o.Set(this.model.value);for(const t of Array.from(this.el.querySelectorAll("option")))t.selected=e.has(t.value);this.select_el.size=this.model.size}change_input(){const e=null!=this.el.querySelector("select:focus"),t=[];for(const e of Array.from(this.el.querySelectorAll("option")))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.select_el.focus()}}s.MultiSelectView=a,a.__name__="MultiSelectView";class d extends c.InputWidget{constructor(e){super(e)}static init_MultiSelect(){this.prototype.default_view=a,this.define({value:[r.Array,[]],options:[r.Array,[]],size:[r.Number,4]})}}s.MultiSelect=d,d.__name__="MultiSelect",d.init_MultiSelect()},n”, ” 407: function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});const t=a(402),p=a(66);class s extends t.MarkupView{render(){super.render();const a=p.p({style:{margin:0}},this.model.text);this.markup_el.appendChild(a)}}r.ParagraphView=s,s.__name__="ParagraphView";class i extends t.Markup{constructor(a){super(a)}static init_Paragraph(){this.prototype.default_view=s}}r.Paragraph=i,i.__name__="Paragraph",i.init_Paragraph()},n”, ” 408: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(383);class r extends n.TextInputView{render(){super.render(),this.input_el.type="password"}}s.PasswordInputView=r,r.__name__="PasswordInputView";class p extends n.TextInput{constructor(e){super(e)}static init_PasswordInput(){this.prototype.default_view=r}}s.PasswordInput=p,p.__name__="PasswordInput",p.init_PasswordInput()},n”, ” 409: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=s.__importDefault(e(410)),o=e(66),n=e(8),h=s.__importStar(e(19)),c=e(385);e(411);const r=e(384);class d extends r.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,()=>this.render_selection()),this.connect(this.model.properties.disabled.change,()=>this.set_disabled()),this.connect(this.model.properties.max_items.change,()=>this.render()),this.connect(this.model.properties.option_limit.change,()=>this.render()),this.connect(this.model.properties.delete_button.change,()=>this.render()),this.connect(this.model.properties.placeholder.change,()=>this.render()),this.connect(this.model.properties.options.change,()=>this.render()),this.connect(this.model.properties.name.change,()=>this.render()),this.connect(this.model.properties.title.change,()=>this.render())}render(){super.render();const e=this.model.options.map(e=>{let t,i;return n.isString(e)?t=i=e:[t,i]=e,o.option({value:t},i)});this.select_el=o.select({multiple:!0,class:c.bk_input,name:this.model.name,disabled:this.model.disabled},e),this.group_el.appendChild(this.select_el),this.render_selection();let t="choices__item",i="choices__button";this.model.solid?(t+=" solid",i+=" solid"):(t+=" light",i+=" light");const s={removeItemButton:this.model.delete_button,classNames:{item:t,button:i}};null!==this.model.placeholder&&(s.placeholderValue=this.model.placeholder),null!==this.model.max_items&&(s.maxItemCount=this.model.max_items),null!==this.model.option_limit&&(s.renderChoiceLimit=this.model.option_limit),this.choice_el=new l.default(this.select_el,s),this.select_el.addEventListener("change",()=>this.change_input())}render_selection(){const e=new Set(this.model.value);for(const t of Array.from(this.el.querySelectorAll("option")))t.selected=e.has(t.value)}set_disabled(){this.model.disabled?this.choice_el.disable():this.choice_el.enable()}change_input(){const e=null!=this.el.querySelector("select:focus"),t=[];for(const e of Array.from(this.el.querySelectorAll("option")))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.select_el.focus()}}i.MultiChoiceView=d,d.__name__="MultiChoiceView";class a extends r.InputWidget{constructor(e){super(e)}static init_MultiChoice(){this.prototype.default_view=d,this.define({value:[h.Array,[]],options:[h.Array,[]],max_items:[h.Number,null],delete_button:[h.Boolean,!0],placeholder:[h.String,null],option_limit:[h.Number,null],solid:[h.Boolean,!0]})}}i.MultiChoice=a,a.__name__="MultiChoice",a.init_MultiChoice()},n”, ” 410: function _(e,t,i){n”, ” /! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme /n”, ” var n,s;n=window,s=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/public/assets/scripts/",i(i.s=4)}([function(e,t,i){"use strict";var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function o(e,t,i){return e.concat(t).map((function(e){return r(e,i)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t,i){var n={};return i.isMergeableObject(e)&&a(e).forEach((function(t){n[t]=r(e[t],i)})),a(t).forEach((function(s){(function(e,t){try{return t in e&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}catch(e){return!1}})(e,s)||(i.isMergeableObject(t[s])&&e[s]?n[s]=function(e,t){if(!t.customMerge)return l;var i=t.customMerge(e);return"function"==typeof i?i:l}(s,i)(e[s],t[s],i):n[s]=r(t[s],i))})),n}function l(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||n,i.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(t);return s===Array.isArray(e)?s?i.arrayMerge(e,t,i):c(e,t,i):r(t,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return l(e,i,t)}),{})};var h=l;e.exports=h},function(e,t,i){"use strict";(function(e,n){var s,r=i(3);s="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var o=Object(r.a)(s);t.a=o}).call(this,i(5),i(6)(e))},function(e,t,i){n”, ” /!n”, ” * Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)n”, ” n”, ” * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)n”, ” * All Rights Reserved. Apache Software License 2.0n”, ” *n”, ” * http://www.apache.org/licenses/LICENSE-2.0n”, ” */n”, ” e.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,i){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=i(2),o=i(8),a=i(0),c=function(){function e(t,i){var n=i.location,s=void 0===n?0:n,r=i.distance,a=void 0===r?100:r,c=i.threshold,l=void 0===c?.6:c,h=i.maxPatternLength,u=void 0===h?32:h,d=i.caseSensitive,p=void 0!==d&&d,m=i.tokenSeparator,f=void 0===m?/ +/g:m,v=i.findAllMatches,g=void 0!==v&&v,_=i.minMatchCharLength,b=void 0===_?1:_,y=i.id,E=void 0===y?null:y,I=i.keys,S=void 0===I?[]:I,w=i.shouldSort,O=void 0===w||w,C=i.getFn,A=void 0===C?o:C,L=i.sortFn,T=void 0===L?function(e,t){return e.score-t.score}:L,x=i.tokenize,k=void 0!==x&&x,P=i.matchAllTokens,D=void 0!==P&&P,M=i.includeMatches,N=void 0!==M&&M,F=i.includeScore,j=void 0!==F&&F,K=i.verbose,R=void 0!==K&&K;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:l,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:f,findAllMatches:g,minMatchCharLength:b,id:E,keys:S,includeMatches:N,includeScore:j,shouldSort:O,getFn:A,sortFn:T,verbose:R,tokenize:k,matchAllTokens:D},this.setCollection(t)}var t,i;return t=e,(i=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log(’———\nSearch pattern: "’.concat(e,’"’));var i=this._prepareSearchers(e),n=i.tokenSearchers,s=i.fullSearcher,r=this._search(n,s),o=r.weights,a=r.results;return this._computeScore(o,a),this.options.shouldSort&&this._sort(a),t.limit&&"number"==typeof t.limit&&(a=a.slice(0,t.limit)),this._format(a)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var i=e.split(this.options.tokenSeparator),n=0,s=i.length;n<s;n+=1)t.push(new r(i[n],this.options));return{tokenSearchers:t,fullSearcher:new r(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,i=this.list,n={},s=[];if("string"==typeof i[0]){for(var r=0,o=i.length;r<o;r+=1)this._analyze({key:"",value:i[r],record:r,index:r},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t});return{weights:null,results:s}}for(var a={},c=0,l=i.length;c<l;c+=1)for(var h=i[c],u=0,d=this.options.keys.length;u<d;u+=1){var p=this.options.keys[u];if("string"!=typeof p){if(a[p.name]={weight:1-p.weight||1},p.weight<=0||p.weight>1)throw new Error("Key weight has to be > 0 and <= 1");p=p.name}else a[p]={weight:1};this._analyze({key:p,value:this.options.getFn(h,p),record:h,index:c},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t})}return{weights:a,results:s}}},{key:"_analyze",value:function(e,t){var i=e.key,n=e.arrayIndex,s=void 0===n?-1:n,r=e.value,o=e.record,c=e.index,l=t.tokenSearchers,h=void 0===l?[]:l,u=t.fullSearcher,d=void 0===u?[]:u,p=t.resultMap,m=void 0===p?{}:p,f=t.results,v=void 0===f?[]:f;if(null!=r){var g=!1,_=-1,b=0;if("string"==typeof r){this._log("\nKey: ".concat(""===i?"-":i));var y=d.search(r);if(this._log(‘Full text: "’.concat(r,’", score: ‘).concat(y.score)),this.options.tokenize){for(var E=r.split(this.options.tokenSeparator),I=[],S=0;S<h.length;S+=1){var w=h[S];this._log(’\nPattern: "’.concat(w.pattern,’"’));for(var O=!1,C=0;C<E.length;C+=1){var A=E[C],L=w.search(A),T={};L.isMatch?(T[A]=L.score,g=!0,O=!0,I.push(L.score)):(T[A]=1,this.options.matchAllTokens||I.push(1)),this._log(‘Token: "’.concat(A,’", score: ‘).concat(T[A]))}O&&(b+=1)}_=I[0];for(var x=I.length,k=1;k<x;k+=1)_+=I[k];_/=x,this._log("Token score average:",_)}var P=y.score;_>-1&&(P=(P+_)/2),this._log("Score average:",P);var D=!this.options.tokenize||!this.options.matchAllTokens||b>=h.length;if(this._log("\nCheck Matches: ".concat(D)),(g||y.isMatch)&&D){var M=m[c];M?M.output.push({key:i,arrayIndex:s,value:r,score:P,matchedIndices:y.matchedIndices}):(m[c]={item:o,output:[{key:i,arrayIndex:s,value:r,score:P,matchedIndices:y.matchedIndices}]},v.push(m[c]))}}else if(a(r))for(var N=0,F=r.length;N<F;N+=1)this._analyze({key:i,arrayIndex:N,value:r[N],record:o,index:c},{resultMap:m,results:v,tokenSearchers:h,fullSearcher:d})}}},{key:"_computeScore",value:function(e,t){this._log("\n\nComputing score:\n");for(var i=0,n=t.length;i<n;i+=1){for(var s=t[i].output,r=s.length,o=1,a=1,c=0;c<r;c+=1){var l=e?e[s[c].key].weight:1,h=(1===l?s[c].score:s[c].score||.001)*l;1!==l?a=Math.min(a,h):(s[c].nScore=h,o*=h)}t[i].score=1===a?o:a,this._log(t[i])}}},{key:"_sort",value:function(e){this._log("\n\nSorting…."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var i=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===n(t)&&null!==t){if(-1!==i.indexOf(t))return;i.push(t)}return t}))),i=null}var s=[];this.options.includeMatches&&s.push((function(e,t){var i=e.output;t.matches=[];for(var n=0,s=i.length;n<s;n+=1){var r=i[n];if(0!==r.matchedIndices.length){var o={indices:r.matchedIndices,value:r.value};r.key&&(o.key=r.key),r.hasOwnProperty("arrayIndex")&&r.arrayIndex>-1&&(o.arrayIndex=r.arrayIndex),t.matches.push(o)}}})),this.options.includeScore&&s.push((function(e,t){t.score=e.score}));for(var r=0,o=e.length;r<o;r+=1){var a=e[r];if(this.options.id&&(a.item=this.options.getFn(a.item,this.options.id)[0]),s.length){for(var c={item:a.item},l=0,h=s.length;l<h;l+=1)s[l](a,c);t.push(c)}else t.push(a.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&s(t.prototype,i),e}();e.exports=c},function(e,t,i){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=i(3),r=i(4),o=i(7),a=function(){function e(t,i){var n=i.location,s=void 0===n?0:n,r=i.distance,a=void 0===r?100:r,c=i.threshold,l=void 0===c?.6:c,h=i.maxPatternLength,u=void 0===h?32:h,d=i.isCaseSensitive,p=void 0!==d&&d,m=i.tokenSeparator,f=void 0===m?/ +/g:m,v=i.findAllMatches,g=void 0!==v&&v,_=i.minMatchCharLength,b=void 0===_?1:_;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:l,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:f,findAllMatches:g,minMatchCharLength:b},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=u&&(this.patternAlphabet=o(this.pattern))}var t,i;return t=e,(i=[{key:"search",value:function(e){if(this.options.isCaseSensitive||(e=e.toLowerCase()),this.pattern===e)return{isMatch:!0,score:0,matchedIndices:[[0,e.length-1]]};var t=this.options,i=t.maxPatternLength,n=t.tokenSeparator;if(this.pattern.length>i)return s(e,this.pattern,n);var o=this.options,a=o.location,c=o.distance,l=o.threshold,h=o.findAllMatches,u=o.minMatchCharLength;return r(e,this.pattern,this.patternAlphabet,{location:a,distance:c,threshold:l,findAllMatches:h,minMatchCharLength:u})}}])&&n(t.prototype,i),e}();e.exports=a},function(e,t){var i=/[\-\[\]\/\{\}\(\)\\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,s=new RegExp(t.replace(i,"\\$&").replace(n,"|\")),r=e.match(s),o=!!r,a=[];if(o)for(var c=0,l=r.length;c<l;c+=1){var h=r[c];a.push([e.indexOf(h),h.length-1])}return{score:o?.5:1,isMatch:o,matchedIndices:a}}},function(e,t,i){var n=i(5),s=i(6);e.exports=function(e,t,i,r){for(var o=r.location,a=void 0===o?0:o,c=r.distance,l=void 0===c?100:c,h=r.threshold,u=void 0===h?.6:h,d=r.findAllMatches,p=void 0!==d&&d,m=r.minMatchCharLength,f=void 0===m?1:m,v=a,g=e.length,_=u,b=e.indexOf(t,v),y=t.length,E=[],I=0;I<g;I+=1)E[I]=0;if(-1!==b){var S=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:l});if(_=Math.min(S,_),-1!==(b=e.lastIndexOf(t,v+y))){var w=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:l});_=Math.min(w,_)}}b=-1;for(var O=[],C=1,A=y+g,L=1<<y-1,T=0;T<y;T+=1){for(var x=0,k=A;x<k;)n(t,{errors:T,currentLocation:v+k,expectedLocation:v,distance:l})<=_?x=k:A=k,k=Math.floor((A-x)/2+x);A=k;var P=Math.max(1,v-k+1),D=p?g:Math.min(v+k,g)+y,M=Array(D+2);M[D+1]=(1<<T)-1;for(var N=D;N>=P;N-=1){var F=N-1,j=i[e.charAt(F)];if(j&&(E[F]=1),M[N]=(M[N+1]<<1|1)&j,0!==T&&(M[N]|=(O[N+1]|O[N])<<1|1|O[N+1]),M[N]&L&&(C=n(t,{errors:T,currentLocation:F,expectedLocation:v,distance:l}))<=_){if(_=C,(b=F)<=v)break;P=Math.max(1,2*v-b)}}if(n(t,{errors:T+1,currentLocation:v,expectedLocation:v,distance:l})>_)break;O=M}return{isMatch:b>=0,score:0===C?.001:C,matchedIndices:s(E,f)}}},function(e,t){e.exports=function(e,t){var i=t.errors,n=void 0===i?0:i,s=t.currentLocation,r=void 0===s?0:s,o=t.expectedLocation,a=void 0===o?0:o,c=t.distance,l=void 0===c?100:c,h=n/e.length,u=Math.abs(a-r);return l?h+u/l:u?1:h}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[],n=-1,s=-1,r=0,o=e.length;r<o;r+=1){var a=e[r];a&&-1===n?n=r:a||-1===n||((s=r-1)-n+1>=t&&i.push([n,s]),n=-1)}return e[r-1]&&r-n>=t&&i.push([n,r-1]),i}},function(e,t){e.exports=function(e){for(var t={},i=e.length,n=0;n<i;n+=1)t[e.charAt(n)]=0;for(var s=0;s<i;s+=1)t[e.charAt(s)]|=1<<i-s-1;return t}},function(e,t,i){var n=i(0);e.exports=function(e,t){return function e(t,i,s){if(i){var r=i.indexOf("."),o=i,a=null;-1!==r&&(o=i.slice(0,r),a=i.slice(r+1));var c=t[o];if(null!=c)if(a||"string"!=typeof c&&"number"!=typeof c)if(n(c))for(var l=0,h=c.length;l<h;l+=1)e(c[l],a,s);else a&&e(c,a,s);else s.push(c.toString())}else s.push(t);return s}(e,t,[])}}])},function(e,t,i){"use strict";function n(e){var t,i=e.Symbol;return"function"==typeof i?i.observable?t=i.observable:(t=i("observable"),i.observable=t):t="@@observable",t}i.d(t,"a",(function(){return n}))},function(e,t,i){e.exports=i(7)},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,i){"use strict";i.r(t);var n=i(2),s=i.n(n),r=i(0),o=i.n(r),a=i(1),c=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,i){var n;if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,r=t,o=[],c=o,d=!1;function p(){c===o&&(c=o.slice())}function m(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return r}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),c.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var i=c.indexOf(e);c.splice(i,1)}}}function v(e){if(!h(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error(‘Actions may not have an undefined "type" property. Have you misspelled a constant?’);if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,r=s(r,e)}finally{d=!1}for(var t=o=c,i=0;i<t.length;i++)(0,t[i])();return e}function g(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,v({type:l.REPLACE})}function _(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function i(){e.next&&e.next(m())}return i(),{unsubscribe:t(i)}}})[a.a]=function(){return this},e}return v({type:l.INIT}),(n={dispatch:v,subscribe:f,getState:m,replaceReducer:g})[a.a]=_,n}function d(e,t){var i=t&&t.type;return"Given "+(i&&’action "’+String(i)+’"’||"an action")+’, reducer "’+e+’" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.’}var p,m=[],f=[],v=[],g={loading:!1},_=function(e,t){switch(void 0===e&&(e=g),t.type){case"SET_IS_LOADING":return{loading:t.isLoading};default:return e}},b=function(e){return Array.from({length:e},(function(){return(e=0,t=36,Math.floor(Math.random()*(t-e)+e)).toString(36);var e,t})).join("")},y=function(e){return Object.prototype.toString.call(e).slice(8,-1)},E=function(e,t){return null!=t&&y(t)===e},I=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/</g,"<").replace(/"/g,""")},S=(p=document.createElement("div"),function(e){var t=e.trim();p.innerHTML=t;for(var i=p.children[0];p.firstChild;)p.removeChild(p.firstChild);return i}),w=function(e,t){return e.score-t.score},O=function(e){return JSON.parse(JSON.stringify(e))},C=function(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++){var s=t[n];"function"==typeof e[s]&&(i[s]=e[s])}var r,o=Object.keys(i);try{!function(e){Object.keys(e).forEach((function(t){var i=e[t];if(void 0===i(void 0,{type:l.INIT}))throw new Error(‘Reducer "’+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don’t want to set a value for this reducer, you can use null instead of undefined.");if(void 0===i(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(‘Reducer "’+t+"\" returned undefined when probed with a random type. Don’t try to handle "+l.INIT+’ or other actions in "redux/" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.’)}))}(i)}catch(e){r=e}return function(e,t){if(void 0===e&&(e={}),r)throw r;for(var n=!1,s={},a=0;a<o.length;a++){var c=o[a],l=i[c],h=e[c],u=l(h,t);if(void 0===u){var p=d(c,t);throw new Error(p)}s[c]=u,n=n||u!==h}return n?s:e}}({items:function(e,t){switch(void 0===e&&(e=m),t.type){case"ADD_ITEM":return[].concat(e,[{id:t.id,choiceId:t.choiceId,groupId:t.groupId,value:t.value,label:t.label,active:!0,highlighted:!1,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]).map((function(e){var t=e;return t.highlighted=!1,t}));case"REMOVE_ITEM":return e.map((function(e){var i=e;return i.id===t.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":return e.map((function(e){var i=e;return i.id===t.id&&(i.highlighted=t.highlighted),i}));default:return e}},groups:function(e,t){switch(void 0===e&&(e=f),t.type){case"ADD_GROUP":return[].concat(e,[{id:t.id,value:t.value,active:t.active,disabled:t.disabled}]);case"CLEAR_CHOICES":return[];default:return e}},choices:function(e,t){switch(void 0===e&&(e=v),t.type){case"ADD_CHOICE":return[].concat(e,[{id:t.id,elementId:t.elementId,groupId:t.groupId,value:t.value,label:t.label||t.value,disabled:t.disabled||!1,selected:!1,active:!0,score:9999,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return t.activateOptions?e.map((function(e){var i=e;return i.active=t.active,i})):t.choiceId>-1?e.map((function(e){var i=e;return i.id===parseInt(t.choiceId,10)&&(i.selected=!0),i})):e;case"REMOVE_ITEM":return t.choiceId>-1?e.map((function(e){var i=e;return i.id===parseInt(t.choiceId,10)&&(i.selected=!1),i})):e;case"FILTER_CHOICES":return e.map((function(e){var i=e;return i.active=t.results.some((function(e){var t=e.item,n=e.score;return t.id===i.id&&(i.score=n,!0)})),i}));case"ACTIVATE_CHOICES":return e.map((function(e){var i=e;return i.active=t.active,i}));case"CLEAR_CHOICES":return v;default:return e}},general:_}),A=function(e,t){var i=e;if("CLEAR_ALL"===t.type)i=void 0;else if("RESET_TO"===t.type)return O(t.state);return C(i,t)};function L(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var T=function(){function e(){this._store=u(A,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var t,i,n,s=e.prototype;return s.subscribe=function(e){this._store.subscribe(e)},s.dispatch=function(e){this._store.dispatch(e)},s.isLoading=function(){return this.state.general.loading},s.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},s.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},t=e,(i=[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter((function(e){return!0===e.active}))}},{key:"highlightedActiveItems",get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter((function(e){return!0===e.active}))}},{key:"selectableChoices",get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find((function(e){return!0===e.placeholder}))}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var i=!0===e.active&&!1===e.disabled,n=t.some((function(e){return!0===e.active&&!1===e.disabled}));return i&&n}),[])}}])&&L(t.prototype,i),n&&L(t,n),e}();function x(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var k=function(){function e(e){var t=e.element,i=e.type,n=e.classNames;this.element=t,this.classNames=n,this.type=i,this.isActive=!1}var t,i,n,s=e.prototype;return s.getChild=function(e){return this.element.querySelector(e)},s.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},s.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t=e,(i=[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}])&&x(t.prototype,i),n&&x(t,n),e}(),P={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:function(e,t){var i=e.value,n=e.label,s=void 0===n?i:n,r=t.value,o=t.label,a=void 0===o?r:o;return s.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading…",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return’Press Enter to add <b>"’+I(e)+’"</b>’},maxItemText:function(e){return"Only "+e+" values can be added"},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input–cloned",list:"choices__list",listItems:"choices__list–multiple",listSingle:"choices__list–single",listDropdown:"choices__list–dropdown",item:"choices__item",itemSelectable:"choices__item–selectable",itemDisabled:"choices__item–disabled",itemChoice:"choices__item–choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"}},D="showDropdown",M="hideDropdown",N="change",F="choice",j="search",K="addItem",R="removeItem",H="highlightItem",B="highlightChoice",V="ADD_CHOICE",G="FILTER_CHOICES",q="ACTIVATE_CHOICES",U="CLEAR_CHOICES",z="ADD_GROUP",W="ADD_ITEM",X="REMOVE_ITEM",$="HIGHLIGHT_ITEM",J=46,Y=8,Z=13,Q=65,ee=27,te=38,ie=40,ne=33,se=34,re=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,s=e.position;this.element=t,this.classNames=n,this.type=i,this.position=s,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t=e.prototype;return t.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.shouldFlip=function(e){if("number"!=typeof e)return!1;var t=!1;return"auto"===this.position?t=!window.matchMedia("(min-height: "+(e+1)+"px)").matches:"top"===this.position&&(t=!0),t},t.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},t.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.focus=function(){this.isFocussed||this.element.focus()},t.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),"select-one"===this.type&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),"select-one"===this.type&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.wrap=function(e){!function(e,t){void 0===t&&(t=document.createElement("div")),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)}(e,this.element)},t.unwrap=function(e){this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element)},t.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t._onFocus=function(){this.isFocussed=!0},t._onBlur=function(){this.isFocussed=!1},e}();function oe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ae=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,s=e.preventPaste;this.element=t,this.type=i,this.classNames=n,this.preventPaste=s,this.isFocussed=this.element===document.activeElement,this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t,i,n,s=e.prototype;return s.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},s.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},s.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},s.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},s.focus=function(){this.isFocussed||this.element.focus()},s.blur=function(){this.isFocussed&&this.element.blur()},s.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},s.setWidth=function(){var e=this.element,t=e.style,i=e.value,n=e.placeholder;t.minWidth=n.length+1+"ch",t.width=i.length+1+"ch"},s.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},s.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},s._onInput=function(){"select-one"!==this.type&&this.setWidth()},s._onPaste=function(e){this.preventPaste&&e.preventDefault()},s._onFocus=function(){this.isFocussed=!0},s._onBlur=function(){this.isFocussed=!1},t=e,(i=[{key:"placeholder",set:function(e){this.element.placeholder=e}},{key:"value",get:function(){return I(this.element.value)},set:function(e){this.element.value=e}}])&&oe(t.prototype,i),n&&oe(t,n),e}(),ce=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}var t=e.prototype;return t.clear=function(){this.element.innerHTML=""},t.append=function(e){this.element.appendChild(e)},t.getChild=function(e){return this.element.querySelector(e)},t.hasChildren=function(){return this.element.hasChildNodes()},t.scrollToTop=function(){this.element.scrollTop=0},t.scrollToChildElement=function(e,t){var i=this;if(e){var n=this.element.offsetHeight,s=this.element.scrollTop+n,r=e.offsetHeight,o=e.offsetTop+r,a=t>0?this.element.scrollTop+o-s:e.offsetTop;requestAnimationFrame((function(){i._animateScroll(a,t)}))}},t._scrollDown=function(e,t,i){var n=(i-e)/t,s=n>1?n:1;this.element.scrollTop=e+s},t._scrollUp=function(e,t,i){var n=(e-i)/t,s=n>1?n:1;this.element.scrollTop=e-s},t._animateScroll=function(e,t){var i=this,n=this.element.scrollTop,s=!1;t>0?(this._scrollDown(n,4,e),n<e&&(s=!0)):(this._scrollUp(n,4,e),n>e&&(s=!0)),s&&requestAnimationFrame((function(){i._animateScroll(e,t)}))},e}();function le(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var he=function(){function e(e){var t=e.element,i=e.classNames;if(this.element=t,this.classNames=i,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var t,i,n,s=e.prototype;return s.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},s.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},s.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},s.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},s.triggerEvent=function(e,t){!function(e,t,i){void 0===i&&(i=null);var n=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}(this.element,e,t)},t=e,(i=[{key:"isActive",get:function(){return"active"===this.element.dataset.choice}},{key:"dir",get:function(){return this.element.dir}},{key:"value",get:function(){return this.element.value},set:function(e){this.element.value=e}}])&&le(t.prototype,i),n&&le(t,n),e}();function ue(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var de=function(e){var t,i,n,s,r;function o(t){var i,n=t.element,s=t.classNames,r=t.delimiter;return(i=e.call(this,{element:n,classNames:s})||this).delimiter=r,i}return i=e,(t=o).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,n=o,(s=[{key:"value",get:function(){return this.element.value},set:function(e){var t=e.map((function(e){return e.value})).join(this.delimiter);this.element.setAttribute("value",t),this.element.value=t}}])&&ue(n.prototype,s),r&&ue(n,r),o}(he);function pe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var me=function(e){var t,i,n,s,r;function o(t){var i,n=t.element,s=t.classNames,r=t.template;return(i=e.call(this,{element:n,classNames:s})||this).template=r,i}return i=e,(t=o).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,o.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},n=o,(s=[{key:"placeholderOption",get:function(){return this.element.querySelector(‘option[value=""]’)||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach((function(e){return n=e,s=t.template(n),void i.appendChild(s);var n,s})),this.appendDocFragment(i)}}])&&pe(n.prototype,s),r&&pe(n,r),o}(he),fe={containerOuter:function(e,t,i,n,s,r){var o=e.containerOuter,a=Object.assign(document.createElement("div"),{className:o});return a.dataset.type=r,t&&(a.dir=t),n&&(a.tabIndex=0),i&&(a.setAttribute("role",s?"combobox":"listbox"),s&&a.setAttribute("aria-autocomplete","list")),a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"),a},containerInner:function(e){var t=e.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var i=e.list,n=e.listSingle,s=e.listItems;return Object.assign(document.createElement("div"),{className:i+" "+(t?n:s)})},placeholder:function(e,t){var i=e.placeholder;return Object.assign(document.createElement("div"),{className:i,innerHTML:t})},item:function(e,t,i){var n=e.item,s=e.button,r=e.highlightedState,o=e.itemSelectable,a=e.placeholder,c=t.id,l=t.value,h=t.label,u=t.customProperties,d=t.active,p=t.disabled,m=t.highlighted,f=t.placeholder,v=Object.assign(document.createElement("div"),{className:n,innerHTML:h});if(Object.assign(v.dataset,{item:"",id:c,value:l,customProperties:u}),d&&v.setAttribute("aria-selected","true"),p&&v.setAttribute("aria-disabled","true"),f&&v.classList.add(a),v.classList.add(m?r:o),i){p&&v.classList.remove(o),v.dataset.deletable="";var g=Object.assign(document.createElement("button"),{type:"button",className:s,innerHTML:"Remove item"});g.setAttribute("aria-label","Remove item: ‘"+l+"’"),g.dataset.button="",v.appendChild(g)}return v},choiceList:function(e,t){var i=e.list,n=Object.assign(document.createElement("div"),{className:i});return t||n.setAttribute("aria-multiselectable","true"),n.setAttribute("role","listbox"),n},choiceGroup:function(e,t){var i=e.group,n=e.groupHeading,s=e.itemDisabled,r=t.id,o=t.value,a=t.disabled,c=Object.assign(document.createElement("div"),{className:i+" "+(a?s:"")});return c.setAttribute("role","group"),Object.assign(c.dataset,{group:"",id:r,value:o}),a&&c.setAttribute("aria-disabled","true"),c.appendChild(Object.assign(document.createElement("div"),{className:n,innerHTML:o})),c},choice:function(e,t,i){var n=e.item,s=e.itemChoice,r=e.itemSelectable,o=e.selectedState,a=e.itemDisabled,c=e.placeholder,l=t.id,h=t.value,u=t.label,d=t.groupId,p=t.elementId,m=t.disabled,f=t.selected,v=t.placeholder,g=Object.assign(document.createElement("div"),{id:p,innerHTML:u,className:n+" "+s});return f&&g.classList.add(o),v&&g.classList.add(c),g.setAttribute("role",d>0?"treeitem":"option"),Object.assign(g.dataset,{choice:"",id:l,value:h,selectText:i}),m?(g.classList.add(a),g.dataset.choiceDisabled="",g.setAttribute("aria-disabled","true")):(g.classList.add(r),g.dataset.choiceSelectable=""),g},input:function(e,t){var i=e.input,n=e.inputCloned,s=Object.assign(document.createElement("input"),{type:"text",className:i+" "+n,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return s.setAttribute("role","textbox"),s.setAttribute("aria-autocomplete","list"),s.setAttribute("aria-label",t),s},dropdown:function(e){var t=e.list,i=e.listDropdown,n=document.createElement("div");return n.classList.add(t,i),n.setAttribute("aria-expanded","false"),n},notice:function(e,t,i){var n=e.item,s=e.itemChoice,r=e.noResults,o=e.noChoices;void 0===i&&(i="");var a=[n,s];return"no-choices"===i?a.push(o):"no-results"===i&&a.push(r),Object.assign(document.createElement("div"),{innerHTML:t,className:a.join(" ")})},option:function(e){var t=e.label,i=e.value,n=e.customProperties,s=e.active,r=e.disabled,o=new Option(t,i,!1,s);return n&&(o.dataset.customProperties=n),o.disabled=r,o}},ve=function(e){return void 0===e&&(e=!0),{type:q,active:e}},ge=function(e,t){return{type:$,id:e,highlighted:t}},_e=function(e){var t=e.value,i=e.id,n=e.active,s=e.disabled;return{type:z,value:t,id:i,active:n,disabled:s}},be=function(e){return{type:"SET_IS_LOADING",isLoading:e}};function ye(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ee="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Ie={},Se=function(){var e,t,i;function n(e,t){var i=this;void 0===e&&(e="[data-choice]"),void 0===t&&(t={}),this.config=o.a.all([P,n.defaults.options,t],{arrayMerge:function(e,t){return[].concat(t)}});var s,r,a,c,l=(s=this.config,r=P,a=Object.keys(s).sort(),c=Object.keys(r).sort(),a.filter((function(e){return c.indexOf(e)<0})));l.length&&console.warn("Unknown config option(s) passed",l.join(", "));var h="string"==typeof e?document.querySelector(e):e;if(!(h instanceof HTMLInputElement||h instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement="text"===h.type,this._isSelectOneElement="select-one"===h.type,this._isSelectMultipleElement="select-multiple"===h.type,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto"),t.addItemFilter&&"function"!=typeof t.addItemFilter){var u=t.addItemFilter instanceof RegExp?t.addItemFilter:new RegExp(t.addItemFilter);this.config.addItemFilter=u.test.bind(u)}if(this._isTextElement?this.passedElement=new de({element:h,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new me({element:h,classNames:this.config.classNames,template:function(e){return i._templates.option(e)}}),this.initialised=!1,this._store=new T,this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(e,t){var i=e.id||e.name&&e.name+"-"+b(2)||b(4);return i=t+"-"+(i=i.replace(/(:|\.|\[|\]|,)/g,""))}(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var d=window.getComputedStyle(this.passedElement.element).direction;d!==window.getComputedStyle(document.documentElement).direction&&(this._direction=d)}if(this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach((function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:e.getAttribute("data-custom-properties")})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),void(this.initialised=!0);this.init()}e=n,i=[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return Ie},get templates(){return fe}})}}],(t=null)&&ye(e.prototype,t),i&&ye(e,i);var r=n.prototype;return r.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=O(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},r.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=null,this.initialised=!1)},r.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},r.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},r.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e)return this;var i=e.id,n=e.groupId,s=void 0===n?-1:n,r=e.value,o=void 0===r?"":r,a=e.label,c=void 0===a?"":a,l=s>=0?this._store.getGroupById(s):null;return this._store.dispatch(ge(i,!0)),t&&this.passedElement.triggerEvent(H,{id:i,value:o,label:c,groupValue:l&&l.value?l.value:null}),this},r.unhighlightItem=function(e){if(!e)return this;var t=e.id,i=e.groupId,n=void 0===i?-1:i,s=e.value,r=void 0===s?"":s,o=e.label,a=void 0===o?"":o,c=n>=0?this._store.getGroupById(n):null;return this._store.dispatch(ge(t,!1)),this.passedElement.triggerEvent(H,{id:t,value:r,label:a,groupValue:c&&c.value?c.value:null}),this},r.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},r.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},r.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},r.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},r.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(i){t._removeItem(i),e&&t._triggerChange(i.value)})),this},r.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(D,{})})),this},r.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(M,{})})),this):this},r.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,i){var n=e?i.value:i;return t.push(n),t}),[]);return this._isSelectOneElement?t[0]:t},r.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},r.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},r.setChoices=function(e,t,i,n){var s=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===i&&(i="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can’t be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of ‘value’ field in passed objects");if(n&&this.clearChoices(),"function"==typeof e){var r=e(this);if("function"==typeof Promise&&r instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return s._handleLoadingState(!0)})).then((function(){return r})).then((function(e){return s.setChoices(e,t,i,n)})).catch((function(e){s.config.silent||console.error(e)})).then((function(){return s._handleLoadingState(!1)})).then((function(){return s}));if(!Array.isArray(r))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof r);return this.setChoices(r,t,i,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){e.choices?s._addGroup({id:parseInt(e.id,10)||null,group:e,valueKey:t,labelKey:i}):s._addChoice({value:e[t],label:e[i],isSelected:e.selected,isDisabled:e.disabled,customProperties:e.customProperties,placeholder:e.placeholder})})),this._stopLoading(),this},r.clearChoices=function(){return this._store.dispatch({type:U}),this},r.clearStore=function(){return this._store.dispatch({type:"CLEAR_ALL"}),this},r.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(ve(!0))),this},r._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState)}},r._renderChoices=function(){var e=this,t=this._store,i=t.activeGroups,n=t.activeChoices,s=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),i.length>=1&&!this._isSearching){var r=n.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));r.length>=1&&(s=this._createChoicesFragment(r,s)),s=this._createGroupsFragment(i,n,s)}else n.length>=1&&(s=this._createChoicesFragment(n,s));if(s.childNodes&&s.childNodes.length>0){var o=this._store.activeItems,a=this._canAddItem(o,this.input.value);a.response?(this.choiceList.append(s),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",a.notice))}else{var c,l;this._isSearching?(l="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,c=this._getTemplate("notice",l,"no-results")):(l="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,c=this._getTemplate("notice",l,"no-choices")),this.choiceList.append(c)}},r._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},r._createGroupsFragment=function(e,t,i){var n=this;return void 0===i&&(i=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var s=function(e){return t.filter((function(t){return n._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===n.config.renderSelectedChoices||!t.selected)}))}(e);if(s.length>=1){var r=n._getTemplate("choiceGroup",e);i.appendChild(r),n._createChoicesFragment(s,i,!0)}})),i},r._createChoicesFragment=function(e,t,i){var n=this;void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1);var s=this.config,r=s.renderSelectedChoices,o=s.searchResultLimit,a=s.renderChoiceLimit,c=this._isSearching?w:this.config.sorter,l=function(e){if("auto"!==r||n._isSelectOneElement||!e.selected){var i=n._getTemplate("choice",e,n.config.itemSelectText);t.appendChild(i)}},h=e;"auto"!==r||this._isSelectOneElement||(h=e.filter((function(e){return!e.selected})));var u=h.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),d=u.placeholderChoices,p=u.normalChoices;(this.config.shouldSort||this._isSearching)&&p.sort(c);var m=h.length,f=this._isSelectOneElement?[].concat(d,p):p;this._isSearching?m=o:a&&a>0&&!i&&(m=a);for(var v=0;v<m;v+=1)f[v]&&l(f[v]);return t},r._createItemsFragment=function(e,t){var i=this;void 0===t&&(t=document.createDocumentFragment());var n=this.config,s=n.shouldSortItems,r=n.sorter,o=n.removeItemButton;return s&&!this._isSelectOneElement&&e.sort(r),this._isTextElement?this.passedElement.value=e:this.passedElement.options=e,e.forEach((function(e){var n=i._getTemplate("item",e,o);t.appendChild(n)})),t},r._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(N,{value:e})},r._selectPlaceholderChoice=function(){var e=this._store.placeholderChoice;e&&(this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value))},r._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var i=t.parentNode.getAttribute("data-id"),n=e.find((function(e){return e.id===parseInt(i,10)}));this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},r._handleItemAction=function(e,t,i){var n=this;if(void 0===i&&(i=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var s=t.getAttribute("data-id");e.forEach((function(e){e.id!==parseInt(s,10)||e.highlighted?!i&&e.highlighted&&n.unhighlightItem(e):n.highlightItem(e)})),this.input.focus()}},r._handleChoiceAction=function(e,t){if(e&&t){var i=t.dataset.id,n=this._store.getChoiceById(i);if(n){var s=e[0]&&e[0].keyCode?e[0].keyCode:null,r=this.dropdown.isActive;n.keyCode=s,this.passedElement.triggerEvent(F,{choice:n}),n.selected||n.disabled||this._canAddItem(e,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),r&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},r._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],i=e.some((function(e){return e.highlighted}));this.config.editItems&&!i&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(i||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},r._startLoading=function(){this._store.dispatch(be(!0))},r._stopLoading=function(){this._store.dispatch(be(!1))},r._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild("."+this.config.classNames.placeholder);e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(t)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},r._handleSearch=function(e){if(e&&this.input.isFocussed){var t=this._store.choices,i=this.config,n=i.searchFloor,s=i.searchChoices,r=t.some((function(e){return!e.active}));if(e&&e.length>=n){var o=s?this._searchChoices(e):0;this.passedElement.triggerEvent(j,{value:e,resultCount:o})}else r&&(this._isSearching=!1,this._store.dispatch(ve(!0)))}},r._canAddItem=function(e,t){var i=!0,n="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var s=function(e,t,i){return void 0===i&&(i="value"),e.some((function(e){return"string"==typeof t?e[i]===t.trim():e[i]===t}))}(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(i=!1,n="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&s&&i&&(i=!1,n="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&i&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(i=!1,n="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:i,notice:n}},r._searchChoices=function(e){var t="string"==typeof e?e.trim():e,i="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t===i+" ")return 0;var n=this._store.searchableChoices,r=t,o=[].concat(this.config.searchFields),a=Object.assign(this.config.fuseOptions,{keys:o}),c=new s.a(n,a).search(r);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(function(e){return{type:G,results:e}}(c)),c.length},r._addEventListeners=function(){var e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},r._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},r._onKeyDown=function(e){var t,i=e.target,n=e.keyCode,s=e.ctrlKey,r=e.metaKey,o=this._store.activeItems,a=this.input.isFocussed,c=this.dropdown.isActive,l=this.itemList.hasChildren(),h=String.fromCharCode(n),u=J,d=Y,p=Z,m=Q,f=ee,v=te,g=ie,_=ne,b=se,y=s||r;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(h)&&this.showDropdown();var E=((t={})[m]=this._onAKey,t[p]=this._onEnterKey,t[f]=this._onEscapeKey,t[v]=this._onDirectionKey,t[_]=this._onDirectionKey,t[g]=this._onDirectionKey,t[b]=this._onDirectionKey,t[d]=this._onDeleteKey,t[u]=this._onDeleteKey,t);E[n]&&E[n]({event:e,target:i,keyCode:n,metaKey:r,activeItems:o,hasFocusedInput:a,hasActiveDropdown:c,hasItems:l,hasCtrlDownKeyPressed:y})},r._onKeyUp=function(e){var t=e.target,i=e.keyCode,n=this.input.value,s=this._store.activeItems,r=this._canAddItem(s,n),o=J,a=Y;if(this._isTextElement)if(r.notice&&n){var c=this._getTemplate("notice",r.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var l=(i===o||i===a)&&!t.value,h=!this._isTextElement&&this._isSearching,u=this._canSearch&&r.response;l&&h?(this._isSearching=!1,this._store.dispatch(ve(!0))):u&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},r._onAKey=function(e){var t=e.hasItems;e.hasCtrlDownKeyPressed&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},r._onEnterKey=function(e){var t=e.event,i=e.target,n=e.activeItems,s=e.hasActiveDropdown,r=Z,o=i.hasAttribute("data-button");if(this._isTextElement&&i.value){var a=this.input.value;this._canAddItem(n,a).response&&(this.hideDropdown(!0),this._addItem({value:a}),this._triggerChange(a),this.clearInput())}if(o&&(this._handleButtonAction(n,i),t.preventDefault()),s){var c=this.dropdown.getChild("."+this.config.classNames.highlightedState);c&&(n[0]&&(n[0].keyCode=r),this._handleChoiceAction(n,c)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},r._onEscapeKey=function(e){e.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())},r._onDirectionKey=function(e){var t,i,n,s=e.event,r=e.hasActiveDropdown,o=e.keyCode,a=e.metaKey,c=ie,l=ne,h=se;if(r||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var u,d=o===c||o===h?1:-1;if(a||o===h||o===l)u=d>0?this.dropdown.element.querySelector("[data-choice-selectable]:last-of-type"):this.dropdown.element.querySelector("[data-choice-selectable]");else{var p=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);u=p?function(e,t,i){if(void 0===i&&(i=1),e instanceof Element&&"string"==typeof t){for(var n=(i>0?"next":"previous")+"ElementSibling",s=e[n];s;){if(s.matches(t))return s;s=s[n]}return s}}(p,"[data-choice-selectable]",d):this.dropdown.element.querySelector("[data-choice-selectable]")}u&&(t=u,i=this.choiceList.element,void 0===(n=d)&&(n=1),t&&(n>0?i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=i.scrollTop)||this.choiceList.scrollToChildElement(u,d),this._highlightChoice(u)),s.preventDefault()}},r._onDeleteKey=function(e){var t=e.event,i=e.target,n=e.hasFocusedInput,s=e.activeItems;!n||i.value||this._isSelectOneElement||(this._handleBackspace(s),t.preventDefault())},r._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},r._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},r._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(Ee&&this.choiceList.element.contains(t)){var i=this.choiceList.element.firstElementChild,n="ltr"===this._direction?e.offsetX>=i.offsetWidth:e.offsetX<i.offsetLeft;this._isScrollingOnIe=n}if(t!==this.input.element){var s=t.closest("[data-button],[data-item],[data-choice]");if(s instanceof HTMLElement){var r=e.shiftKey,o=this._store.activeItems,a=s.dataset;"button"in a?this._handleButtonAction(o,s):"item"in a?this._handleItemAction(o,s,r):"choice"in a&&this._handleChoiceAction(o,s)}e.preventDefault()}}},r._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},r._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},r._onFocus=function(e){var t,i=this,n=e.target;this.containerOuter.element.contains(n)&&((t={}).text=function(){n===i.input.element&&i.containerOuter.addFocusState()},t["select-one"]=function(){i.containerOuter.addFocusState(),n===i.input.element&&i.showDropdown(!0)},t["select-multiple"]=function(){n===i.input.element&&(i.showDropdown(!0),i.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},r._onBlur=function(e){var t=this,i=e.target;if(this.containerOuter.element.contains(i)&&!this._isScrollingOnIe){var n,s=this._store.activeItems.some((function(e){return e.highlighted}));((n={}).text=function(){i===t.input.element&&(t.containerOuter.removeFocusState(),s&&t.unhighlightAll(),t.hideDropdown(!0))},n["select-one"]=function(){t.containerOuter.removeFocusState(),(i===t.input.element||i===t.containerOuter.element&&!t._canSearch)&&t.hideDropdown(!0)},n["select-multiple"]=function(){i===t.input.element&&(t.containerOuter.removeFocusState(),t.hideDropdown(!0),s&&t.unhighlightAll())},n)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},r._onFormReset=function(){this._store.dispatch({type:"RESET_TO",state:this._initialState})},r._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(i.length){var n=e;Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState)).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),n?this._highlightPosition=i.indexOf(n):(n=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||(n=i[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(B,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},r._addItem=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,s=e.choiceId,r=void 0===s?-1:s,o=e.groupId,a=void 0===o?-1:o,c=e.customProperties,l=void 0===c?null:c,h=e.placeholder,u=void 0!==h&&h,d=e.keyCode,p=void 0===d?null:d,m="string"==typeof t?t.trim():t,f=p,v=l,g=this._store.items,_=n||m,b=r||-1,y=a>=0?this._store.getGroupById(a):null,E=g?g.length+1:1;return this.config.prependValue&&(m=this.config.prependValue+m.toString()),this.config.appendValue&&(m+=this.config.appendValue.toString()),this._store.dispatch(function(e){var t=e.value,i=e.label,n=e.id,s=e.choiceId,r=e.groupId,o=e.customProperties,a=e.placeholder,c=e.keyCode;return{type:W,value:t,label:i,id:n,choiceId:s,groupId:r,customProperties:o,placeholder:a,keyCode:c}}({value:m,label:_,id:E,choiceId:b,groupId:a,customProperties:l,placeholder:u,keyCode:f})),this._isSelectOneElement&&this.removeActiveItems(E),this.passedElement.triggerEvent(K,{id:E,value:m,label:_,customProperties:v,groupValue:y&&y.value?y.value:void 0,keyCode:f}),this},r._removeItem=function(e){if(!e||!E("Object",e))return this;var t=e.id,i=e.value,n=e.label,s=e.choiceId,r=e.groupId,o=r>=0?this._store.getGroupById(r):null;return this._store.dispatch(function(e,t){return{type:X,id:e,choiceId:t}}(t,s)),o&&o.value?this.passedElement.triggerEvent(R,{id:t,value:i,label:n,groupValue:o.value}):this.passedElement.triggerEvent(R,{id:t,value:i,label:n}),this},r._addChoice=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,s=e.isSelected,r=void 0!==s&&s,o=e.isDisabled,a=void 0!==o&&o,c=e.groupId,l=void 0===c?-1:c,h=e.customProperties,u=void 0===h?null:h,d=e.placeholder,p=void 0!==d&&d,m=e.keyCode,f=void 0===m?null:m;if(null!=t){var v=this._store.choices,g=n||t,_=v?v.length+1:1,b=this._baseId+"-"+this._idNames.itemChoice+"-"+_;this._store.dispatch(function(e){var t=e.value,i=e.label,n=e.id,s=e.groupId,r=e.disabled,o=e.elementId,a=e.customProperties,c=e.placeholder,l=e.keyCode;return{type:V,value:t,label:i,id:n,groupId:s,disabled:r,elementId:o,customProperties:a,placeholder:c,keyCode:l}}({id:_,groupId:l,elementId:b,value:t,label:g,disabled:a,customProperties:u,placeholder:p,keyCode:f})),r&&this._addItem({value:t,label:g,choiceId:_,customProperties:u,placeholder:p,keyCode:f})}},r._addGroup=function(e){var t=this,i=e.group,n=e.id,s=e.valueKey,r=void 0===s?"value":s,o=e.labelKey,a=void 0===o?"label":o,c=E("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION")),l=n||Math.floor((new Date).valueOf()*Math.random()),h=!!i.disabled&&i.disabled;c?(this._store.dispatch(_e({value:i.label,id:l,active:!0,disabled:h})),c.forEach((function(e){var i=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[r],label:E("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:i,groupId:l,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch(_e({value:i.label,id:i.id,active:!1,disabled:i.disabled}))},r._getTemplate=function(e){var t;if(!e)return null;for(var i=this.config.classNames,n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return(t=this._templates[e]).call.apply(t,[this,i].concat(s))},r._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,S)),this._templates=o()(fe,t)},r._createElements=function(){this.containerOuter=new re({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new re({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new ae({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new ce({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new ce({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new k({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},r._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},r._addPredefinedGroups=function(e){var t=this,i=this.passedElement.placeholderOption;i&&"SELECT"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},r._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var i=e.some((function(e){return e.selected})),n=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,s){var r=e.value,o=e.label,a=e.customProperties,c=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var l=!(!t._isSelectOneElement||i||s!==n)||e.selected,h=e.disabled;t._addChoice({value:r,label:o,isSelected:l,isDisabled:h,customProperties:a,placeholder:c})}else t._addChoice({value:r,label:o,isSelected:e.selected,isDisabled:e.disabled,customProperties:a,placeholder:c})}))},r._addPredefinedItems=function(e){var t=this;e.forEach((function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})}))},r._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[y(e).toLowerCase()]()},r._findAndSelectChoiceByValue=function(e){var t=this,i=this._store.choices.find((function(i){return t.config.valueComparer(i.value,e)}));i&&!i.selected&&this._addItem({value:i.value,label:i.label,choiceId:i.id,groupId:i.groupId,customProperties:i.customProperties,placeholder:i.placeholder,keyCode:i.keyCode})},r._generatePlaceholderValue=function(){if(this._isSelectElement){var e=this.passedElement.placeholderOption;return!!e&&e.text}var t=this.config,i=t.placeholder,n=t.placeholderValue,s=this.passedElement.element.dataset;if(i){if(n)return n;if(s.placeholder)return s.placeholder}return!1},n}();t.default=Se}]).default},"object"==typeof i&&"object"==typeof t?t.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof i?i.Choices=s():n.Choices=s()},n”, ” 411: function _(n,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=n(1);n(67),i.__importStar(n(66)).styles.append(".bk-root {\n /*===============================\n= Choices =\n===============================/\n /===== End of Choices ======/\n}\n.bk-root .choices {\n position: relative;\n margin-bottom: 24px;\n font-size: 16px;\n}\n.bk-root .choices:focus {\n outline: none;\n}\n.bk-root .choices:last-child {\n margin-bottom: 0;\n}\n.bk-root .choices.is-disabled .choices__inner,\n.bk-root .choices.is-disabled .choices__input {\n background-color: #eaeaea;\n cursor: not-allowed;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.bk-root .choices.is-disabled .choices__item {\n cursor: not-allowed;\n}\n.bk-root .choices [hidden] {\n display: none !important;\n}\n.bk-root .choices[data-type*=’select-one’] {\n cursor: pointer;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__inner {\n padding-bottom: 7.5px;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__input {\n display: block;\n width: 100%;\n padding: 10px;\n border-bottom: 1px solid #dddddd;\n background-color: #ffffff;\n margin: 0;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n padding: 0;\n background-size: 8px;\n position: absolute;\n top: 50%;\n right: 0;\n margin-top: -10px;\n margin-right: 25px;\n height: 20px;\n width: 20px;\n border-radius: 10em;\n opacity: 0.5;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button:hover,\n.bk-root .choices[data-type*=’select-one’] .choices__button:focus {\n opacity: 1;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button:focus {\n box-shadow: 0px 0px 0px 2px #00bcd4;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__item[data-value=’’] .choices__button {\n display: none;\n}\n.bk-root .choices[data-type*=’select-one’]:after {\n content: ‘’;\n height: 0;\n width: 0;\n border-style: solid;\n border-color: #333333 transparent transparent transparent;\n border-width: 5px;\n position: absolute;\n right: 11.5px;\n top: 50%;\n margin-top: -2.5px;\n pointer-events: none;\n}\n.bk-root .choices[data-type*=’select-one’].is-open:after {\n border-color: transparent transparent #333333 transparent;\n margin-top: -7.5px;\n}\n.bk-root .choices[data-type*=’select-one’][dir=’rtl’]:after {\n left: 11.5px;\n right: auto;\n}\n.bk-root .choices[data-type*=’select-one’][dir=’rtl’] .choices__button {\n right: auto;\n left: 0;\n margin-left: 25px;\n margin-right: 0;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__inner,\n.bk-root .choices[data-type*=’text’] .choices__inner {\n cursor: text;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__button,\n.bk-root .choices[data-type*=’text’] .choices__button {\n position: relative;\n display: inline-block;\n margin-top: 0;\n margin-right: -4px;\n margin-bottom: 0;\n margin-left: 8px;\n padding-left: 16px;\n border-left: 1px solid #008fa1;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n background-size: 8px;\n width: 8px;\n line-height: 1;\n opacity: 0.75;\n border-radius: 0;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__button:hover,\n.bk-root .choices[data-type*=’select-multiple’] .choices__button:focus,\n.bk-root .choices[data-type*=’text’] .choices__button:hover,\n.bk-root .choices[data-type*=’text’] .choices__button:focus {\n opacity: 1;\n}\n.bk-root .choices__inner {\n display: inline-block;\n vertical-align: top;\n width: 100%;\n background-color: #f9f9f9;\n padding: 7.5px 7.5px 3.75px;\n border: 1px solid #dddddd;\n border-radius: 2.5px;\n font-size: 14px;\n min-height: 44px;\n overflow: hidden;\n}\n.bk-root .is-focused .choices__inner,\n.bk-root .is-open .choices__inner {\n border-color: #b7b7b7;\n}\n.bk-root .is-open .choices__inner {\n border-radius: 2.5px 2.5px 0 0;\n}\n.bk-root .is-flipped.is-open .choices__inner {\n border-radius: 0 0 2.5px 2.5px;\n}\n.bk-root .choices__list {\n margin: 0;\n padding-left: 0;\n list-style: none;\n}\n.bk-root .choices__list–single {\n display: inline-block;\n padding: 4px 16px 4px 4px;\n width: 100%;\n}\n.bk-root [dir=’rtl’] .choices__list–single {\n padding-right: 4px;\n padding-left: 16px;\n}\n.bk-root .choices__list–single .choices__item {\n width: 100%;\n}\n.bk-root .choices__list–multiple {\n display: inline;\n}\n.bk-root .choices__list–multiple .choices__item {\n display: inline-block;\n vertical-align: middle;\n border-radius: 20px;\n padding: 4px 10px;\n font-size: 12px;\n font-weight: 500;\n margin-right: 3.75px;\n margin-bottom: 3.75px;\n background-color: #00bcd4;\n border: 1px solid #00a5bb;\n color: #ffffff;\n word-break: break-all;\n box-sizing: border-box;\n}\n.bk-root .choices__list–multiple .choices__item[data-deletable] {\n padding-right: 5px;\n}\n.bk-root [dir=’rtl’] .choices__list–multiple .choices__item {\n margin-right: 0;\n margin-left: 3.75px;\n}\n.bk-root .choices__list–multiple .choices__item.is-highlighted {\n background-color: #00a5bb;\n border: 1px solid #008fa1;\n}\n.bk-root .is-disabled .choices__list–multiple .choices__item {\n background-color: #aaaaaa;\n border: 1px solid #919191;\n}\n.bk-root .choices__list–dropdown {\n visibility: hidden;\n z-index: 1;\n position: absolute;\n width: 100%;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n top: 100%;\n margin-top: -1px;\n border-bottom-left-radius: 2.5px;\n border-bottom-right-radius: 2.5px;\n overflow: hidden;\n word-break: break-all;\n will-change: visibility;\n}\n.bk-root .choices__list–dropdown.is-active {\n visibility: visible;\n}\n.bk-root .is-open .choices__list–dropdown {\n border-color: #b7b7b7;\n}\n.bk-root .is-flipped .choices__list–dropdown {\n top: auto;\n bottom: 100%;\n margin-top: 0;\n margin-bottom: -1px;\n border-radius: 0.25rem 0.25rem 0 0;\n}\n.bk-root .choices__list–dropdown .choices__list {\n position: relative;\n max-height: 300px;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n will-change: scroll-position;\n}\n.bk-root .choices__list–dropdown .choices__item {\n position: relative;\n padding: 10px;\n font-size: 14px;\n}\n.bk-root [dir=’rtl’] .choices__list–dropdown .choices__item {\n text-align: right;\n}\n@media (min-width: 640px) {\n .bk-root .choices__list–dropdown .choices__item–selectable {\n padding-right: 100px;\n }\n .bk-root .choices__list–dropdown .choices__item–selectable:after {\n content: attr(data-select-text);\n font-size: 12px;\n opacity: 0;\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n }\n .bk-root [dir=’rtl’] .choices__list–dropdown .choices__item–selectable {\n text-align: right;\n padding-left: 100px;\n padding-right: 10px;\n }\n .bk-root [dir=’rtl’] .choices__list–dropdown .choices__item–selectable:after {\n right: auto;\n left: 10px;\n }\n}\n.bk-root .choices__list–dropdown .choices__item–selectable.is-highlighted {\n background-color: #f2f2f2;\n}\n.bk-root .choices__list–dropdown .choices__item–selectable.is-highlighted:after {\n opacity: 0.5;\n}\n.bk-root .choices__item {\n cursor: default;\n}\n.bk-root .choices__item–selectable {\n cursor: pointer;\n}\n.bk-root .choices__item–disabled {\n cursor: not-allowed;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n opacity: 0.5;\n}\n.bk-root .choices__heading {\n font-weight: 600;\n font-size: 12px;\n padding: 10px;\n border-bottom: 1px solid #f7f7f7;\n color: gray;\n}\n.bk-root .choices__button {\n text-indent: -9999px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n cursor: pointer;\n}\n.bk-root .choices__button:focus {\n outline: none;\n}\n.bk-root .choices__input {\n display: inline-block;\n vertical-align: baseline;\n background-color: #f9f9f9;\n font-size: 14px;\n margin-bottom: 5px;\n border: 0;\n border-radius: 0;\n max-width: 100%;\n padding: 4px 0 4px 2px;\n}\n.bk-root .choices__input:focus {\n outline: 0;\n}\n.bk-root [dir=’rtl’] .choices__input {\n padding-right: 2px;\n padding-left: 0;\n}\n.bk-root .choices__placeholder {\n opacity: 0.5;\n}\n.bk-root .choices {\n width: 100%;\n}\n.bk-root .choices__inner .choices__item.light {\n background-color: rgba(0, 126, 255, 0.08);\n border-radius: 5px;\n border: 1px solid rgba(0, 126, 255, 0.24);\n color: #007eff;\n}\n.bk-root .choices__inner .choices__item.solid {\n background-color: #1f77b4;\n border: none;\n border-radius: 5px;\n color: white;\n}\n.bk-root .choices__inner .choices__item.solid .is-highlighted {\n background-color: #1f77b4;\n border: none;\n}\n.bk-root .choices__input {\n background-color: transparent;\n}\n.bk-root .choices__inner {\n background: transparent;\n border: 1px solid darkgray;\n border-radius: 5px;\n min-height: unset;\n}\n.bk-root .choices__list {\n white-space: initial;\n}\n.bk-root .choices[data-type*=select-multiple] .choices__button.light {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDA3ZWZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n}\n.bk-root .choices[data-type*=select-multiple] .choices__button.solid {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjZmZmZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n border-left: 1px solid white;\n opacity: 1;\n}\n")},n”, ” 412: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const s=e(402),i=e(66);class n extends s.MarkupView{render(){super.render();const e=i.pre({style:{overflow:"auto"}},this.model.text);this.markup_el.appendChild(e)}}r.PreTextView=n,n.__name__="PreTextView";class _ extends s.Markup{constructor(e){super(e)}static init_PreText(){this.prototype.default_view=n}}r.PreText=_,_.__name__="PreText",_.init_PreText()},n”, ” 413: function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),a=t(388),n=t(66),u=i.__importStar(t(19)),s=t(145);class _ extends a.ButtonGroupView{change_active(t){this.model.active!==t&&(this.model.active=t)}_update_active(){const{active:t}=this.model;this._buttons.forEach((o,e)=>{n.classes(o).toggle(s.bk_active,t===e)})}}e.RadioButtonGroupView=_,_.__name__="RadioButtonGroupView";class c extends a.ButtonGroup{constructor(t){super(t)}static init_RadioButtonGroup(){this.prototype.default_view=_,this.define({active:[u.Any,null]})}}e.RadioButtonGroup=c,c.__name__="RadioButtonGroup",c.init_RadioButtonGroup()},n”, ” 414: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),a=e(66),o=e(26),d=n.__importStar(e(19)),s=e(390),l=e(145),r=e(385);class p extends s.InputGroupView{render(){super.render();const e=a.div({class:[r.bk_input_group,this.model.inline?l.bk_inline:null]});this.el.appendChild(e);const i=o.uniqueId(),{active:t,labels:n}=this.model;for(let o=0;o<n.length;o++){const d=a.input({type:"radio",name:i,value:${o}});d.addEventListener("change",()=>this.change_active(o)),this.model.disabled&&(d.disabled=!0),o==t&&(d.checked=!0);const s=a.label({},d,a.span({},n[o]));e.appendChild(s)}}change_active(e){this.model.active=e}}t.RadioGroupView=p,p.__name__="RadioGroupView";class u extends s.InputGroup{constructor(e){super(e)}static init_RadioGroup(){this.prototype.default_view=p,this.define({active:[d.Number],labels:[d.Array,[]],inline:[d.Boolean,!1]})}}t.RadioGroup=u,u.__name__="RadioGroup",u.init_RadioGroup()},n”, ” 415: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1).__importStar(e(159)),a=e(396),n=e(8);class o extends a.AbstractRangeSliderView{}r.RangeSliderView=o,o.__name__="RangeSliderView";class s extends a.AbstractSlider{constructor(e){super(e),this.behaviour="drag",this.connected=[!1,!0,!1]}static init_RangeSlider(){this.prototype.default_view=o,this.override({format:"0[.]00"})}_formatter(e,t){return n.isString(t)?i.format(e,t):t.doFormat([e],{loc:0})[0]}}r.RangeSlider=s,s.__name__="RangeSlider",s.init_RangeSlider()},n”, ” 416: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(66),l=e(8),o=e(70),c=i.__importStar(e(19)),d=e(384),a=e(385);class r extends d.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}build_options(e){return e.map(e=>{let t,s;l.isString(e)?t=s=e:[t,s]=e;const i=this.model.value==t;return n.option({selected:i,value:t},s)})}render(){let e;if(super.render(),l.isArray(this.model.options))e=this.build_options(this.model.options);else{e=[];const t=this.model.options;for(const s in t){const i=t[s];e.push(n.optgroup({label:s},this.build_options(i)))}}this.select_el=n.select({class:a.bk_input,id:this.model.id,name:this.model.name,disabled:this.model.disabled},e),this.select_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.select_el)}change_input(){const e=this.select_el.value;o.logger.debug(selectbox: value = ${e}),this.model.value=e,super.change_input()}}s.SelectView=r,r.__name__="SelectView";class u extends d.InputWidget{constructor(e){super(e)}static init_Select(){this.prototype.default_view=r,this.define({value:[c.String,""],options:[c.Any,[]]})}}s.Select=u,u.__name__="Select",u.init_Select()},n”, ” 417: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1).__importStar(e(159)),o=e(396),s=e(8);class _ extends o.AbstractSliderView{}r.SliderView=_,_.__name__="SliderView";class a extends o.AbstractSlider{constructor(e){super(e),this.behaviour="tap",this.connected=[!0,!1]}static init_Slider(){this.prototype.default_view=_,this.override({format:"0[.]00"})}_formatter(e,t){return s.isString(t)?i.format(e,t):t.doFormat([e],{loc:0})[0]}}r.Slider=a,a.__name__="Slider",a.init_Slider()},n”, ” 418: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(384),l=e(66),h=n.__importStar(e(19)),o=e(385),{floor:p,max:d,min:u}=Math;function r(e){return p(e)!==e?e.toFixed(16).replace(/0+$/,"").split(".")[1].length:0}class a extends s.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.low.change,()=>{const{low:e}=this.model;null!=e&&(this.input_el.min=e.toFixed(16))}),this.connect(this.model.properties.high.change,()=>{const{high:e}=this.model;null!=e&&(this.input_el.max=e.toFixed(16))}),this.connect(this.model.properties.step.change,()=>{const{step:e}=this.model;this.input_el.step=e.toFixed(16)}),this.connect(this.model.properties.value.change,()=>{const{value:e,step:t}=this.model;this.input_el.value=e.toFixed(r(t)).replace(/(\.[0-9]*[1-9])0+$|\.0*$/,"$1")}),this.connect(this.model.properties.disabled.change,()=>{this.input_el.disabled=this.model.disabled})}render(){super.render(),this.input_el=l.input({type:"number",class:o.bk_input,name:this.model.name,min:this.model.low,max:this.model.high,value:this.model.value,step:this.model.step,disabled:this.model.disabled}),this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){if(this.input_el.value){const{step:e}=this.model;let t=Number(this.input_el.value);null!=this.model.low&&(t=d(t,this.model.low)),null!=this.model.high&&(t=u(t,this.model.high)),this.model.value=Number(t.toFixed(r(e))),super.change_input()}}}i.SpinnerView=a,a.__name__="SpinnerView";class c extends s.InputWidget{constructor(e){super(e)}static init_Spinner(){this.prototype.default_view=a,this.define({value:[h.Number,0],low:[h.Number,null],high:[h.Number,null],step:[h.Number,1]})}}i.Spinner=c,c.__name__="Spinner",c.init_Spinner()},n”, ” 419: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(383),l=e(384),h=e(66),o=s.__importStar(e(19)),a=e(385);class p extends l.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.value.change,()=>this.input_el.value=this.model.value),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled),this.connect(this.model.properties.placeholder.change,()=>this.input_el.placeholder=this.model.placeholder),this.connect(this.model.properties.rows.change,()=>this.input_el.rows=this.model.rows),this.connect(this.model.properties.cols.change,()=>this.input_el.cols=this.model.cols),this.connect(this.model.properties.max_length.change,()=>this.input_el.maxLength=this.model.max_length)}render(){super.render(),this.input_el=h.textarea({class:a.bk_input,name:this.model.name,disabled:this.model.disabled,placeholder:this.model.placeholder,cols:this.model.cols,rows:this.model.rows,maxLength:this.model.max_length}),this.input_el.textContent=this.model.value,this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){this.model.value=this.input_el.value,super.change_input()}}i.TextAreaInputView=p,p.__name__="TextAreaInputView";class r extends n.TextInput{constructor(e){super(e)}static init_TextAreaInput(){this.prototype.default_view=p,this.define({cols:[o.Number,20],rows:[o.Number,2],max_length:[o.Number,500]})}}i.TextAreaInput=r,r.__name__="TextAreaInput",r.init_TextAreaInput()},n”, ” 420: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),c=e(378),o=e(66),a=s.__importStar(e(19)),n=e(145);class l extends c.AbstractButtonView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._update_active())}render(){super.render(),this._update_active()}click(){this.model.active=!this.model.active,super.click()}_update_active(){o.classes(this.button_el).toggle(n.bk_active,this.model.active)}}i.ToggleView=l,l.__name__="ToggleView";class _ extends c.AbstractButton{constructor(e){super(e)}static init_Toggle(){this.prototype.default_view=l,this.define({active:[a.Boolean,!1]}),this.override({label:"Toggle"})}}i.Toggle=_,_.__name__="Toggle",_.init_Toggle()},n”, ” }, 376, {"models/widgets/main":376,"models/widgets/index":377,"models/widgets/abstract_button":378,"models/widgets/control":379,"models/widgets/widget":441,"models/widgets/abstract_icon":381,"models/widgets/autocomplete_input":382,"models/widgets/text_input":383,"models/widgets/input_widget":384,"styles/widgets/inputs":385,"models/widgets/button":386,"models/widgets/checkbox_button_group":387,"models/widgets/button_group":388,"models/widgets/checkbox_group":389,"models/widgets/input_group":390,"models/widgets/color_picker":391,"models/widgets/date_picker":392,"styles/widgets/flatpickr":394,"models/widgets/date_range_slider":395,"models/widgets/abstract_slider":396,"styles/widgets/sliders":398,"styles/widgets/nouislider":399,"models/widgets/date_slider":400,"models/widgets/div":401,"models/widgets/markup":402,"styles/clearfix":403,"models/widgets/dropdown":404,"models/widgets/file_input":405,"models/widgets/multiselect":406,"models/widgets/paragraph":407,"models/widgets/password_input":408,"models/widgets/multichoice":409,"styles/widgets/choices":411,"models/widgets/pretext":412,"models/widgets/radio_button_group":413,"models/widgets/radio_group":414,"models/widgets/range_slider":415,"models/widgets/selectbox":416,"models/widgets/slider":417,"models/widgets/spinner":418,"models/widgets/textarea_input":419,"models/widgets/toggle":420}, {});n”, ” })n”, “n”, “n”, ” /* END bokeh-widgets.min.js /n”, ” },n”, ” n”, ” function(Bokeh) {n”, ” / BEGIN bokeh-tables.min.js /n”, ” /!n”, ” * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn”, ” * All rights reserved.n”, ” * n”, ” * Redistribution and use in source and binary forms, with or without modification,n”, ” * are permitted provided that the following conditions are met:n”, ” * n”, ” * Redistributions of source code must retain the above copyright notice,n”, ” * this list of conditions and the following disclaimer.n”, ” * n”, ” * Redistributions in binary form must reproduce the above copyright notice,n”, ” * this list of conditions and the following disclaimer in the documentationn”, ” * and/or other materials provided with the distribution.n”, ” * n”, ” * Neither the name of Anaconda nor the names of any contributorsn”, ” * may be used to endorse or promote products derived from this softwaren”, ” * without specific prior written permission.n”, ” * n”, ” * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n”, ” * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn”, ” * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn”, ” * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn”, ” * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn”, ” * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn”, ” * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn”, ” * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn”, ” * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n”, ” * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn”, ” * THE POSSIBILITY OF SUCH DAMAGE.n”, ” /n”, ” (function(root, factory) {n”, ” factory(root["Bokeh"], "2.0.2");n”, ” })(this, function(Bokeh, version) {n”, ” var define;n”, ” return (function(modules, entry, aliases, externals) {n”, ” const bokeh = typeof Bokeh !== "undefined" && (version != null ? Bokeh[version] : Bokeh);n”, ” if (bokeh != null) {n”, ” return bokeh.register_plugin(modules, entry, aliases);n”, ” } else {n”, ” throw new Error("Cannot find Bokeh " + version + ". You have to load it prior to loading plugins.");n”, ” }n”, ” })n”, ” ({n”, ” 421: function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1).__importStar(e(422));o.Tables=r,e(7).register_models(r)},n”, ” 422: function _(a,g,r){Object.defineProperty(r,"__esModule",{value:!0});const e=a(1);e.__exportStar(a(423),r),e.__exportStar(a(444),r);var t=a(424);r.DataTable=t.DataTable;var o=a(447);r.TableColumn=o.TableColumn;var n=a(440);r.TableWidget=n.TableWidget;var u=a(448);r.AvgAggregator=u.AvgAggregator,r.MinAggregator=u.MinAggregator,r.MaxAggregator=u.MaxAggregator,r.SumAggregator=u.SumAggregator;var l=a(449);r.GroupingInfo=l.GroupingInfo,r.DataCube=l.DataCube},n”, ” 423: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1).__importStar(e(19)),r=e(66),a=e(64),n=e(69),l=e(424),u=e(442);class d extends a.DOMView{constructor(e){super(Object.assign({model:e.column.model},e)),this.args=e,this.initialize(),this.render()}get emptyValue(){return null}initialize(){super.initialize(),this.inputEl=this._createInput(),this.defaultValue=null}async lazy_initialize(){throw new Error("unsupported")}css_classes(){return super.css_classes().concat(u.bk_cell_editor)}render(){super.render(),this.args.container.append(this.el),this.el.appendChild(this.inputEl),this.renderEditor(),this.disableNavigation()}renderEditor(){}disableNavigation(){this.inputEl.addEventListener("keydown",e=>{switch(e.keyCode){case r.Keys.Left:case r.Keys.Right:case r.Keys.Up:case r.Keys.Down:case r.Keys.PageUp:case r.Keys.PageDown:e.stopImmediatePropagation()}})}destroy(){this.remove()}focus(){this.inputEl.focus()}show(){}hide(){}position(){}getValue(){return this.inputEl.value}setValue(e){this.inputEl.value=e}serializeValue(){return this.getValue()}isValueChanged(){return!(""==this.getValue()&&null==this.defaultValue)&&this.getValue()!==this.defaultValue}applyValue(e,t){const i=this.args.grid.getData(),s=i.index.indexOf(e[l.DTINDEX_NAME]);i.setField(s,this.args.column.field,t)}loadValue(e){const t=e[this.args.column.field];this.defaultValue=null!=t?t:this.emptyValue,this.setValue(this.defaultValue)}validateValue(e){if(this.args.column.validator){const t=this.args.column.validator(e);if(!t.valid)return t}return{valid:!0,msg:null}}validate(){return this.validateValue(this.getValue())}}i.CellEditorView=d,d.__name__="CellEditorView";class o extends n.Model{}i.CellEditor=o,o.__name__="CellEditor";class _ extends d{get emptyValue(){return""}_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}}i.StringEditorView=_,_.__name__="StringEditorView";class c extends o{static init_StringEditor(){this.prototype.default_view=_,this.define({completions:[s.Array,[]]})}}i.StringEditor=c,c.__name__="StringEditor",c.init_StringEditor();class p extends d{_createInput(){return r.textarea()}}i.TextEditorView=p,p.__name__="TextEditorView";class h extends o{static init_TextEditor(){this.prototype.default_view=p}}i.TextEditor=h,h.__name__="TextEditor",h.init_TextEditor();class E extends d{_createInput(){return r.select()}renderEditor(){for(const e of this.model.options)this.inputEl.appendChild(r.option({value:e},e));this.focus()}}i.SelectEditorView=E,E.__name__="SelectEditorView";class V extends o{static init_SelectEditor(){this.prototype.default_view=E,this.define({options:[s.Array,[]]})}}i.SelectEditor=V,V.__name__="SelectEditor",V.init_SelectEditor();class m extends d{_createInput(){return r.input({type:"text"})}}i.PercentEditorView=m,m.__name__="PercentEditorView";class f extends o{static init_PercentEditor(){this.prototype.default_view=m}}i.PercentEditor=f,f.__name__="PercentEditor",f.init_PercentEditor();class x extends d{_createInput(){return r.input({type:"checkbox",value:"true"})}renderEditor(){this.focus()}loadValue(e){this.defaultValue=!!e[this.args.column.field],this.inputEl.checked=this.defaultValue}serializeValue(){return this.inputEl.checked}}i.CheckboxEditorView=x,x.__name__="CheckboxEditorView";class w extends o{static init_CheckboxEditor(){this.prototype.default_view=x}}i.CheckboxEditor=w,w.__name__="CheckboxEditor",w.init_CheckboxEditor();class g extends d{_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){return parseInt(this.getValue(),10)||0}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return isNaN(e)?{valid:!1,msg:"Please enter a valid integer"}:super.validateValue(e)}}i.IntEditorView=g,g.__name__="IntEditorView";class v extends o{static init_IntEditor(){this.prototype.default_view=g,this.define({step:[s.Number,1]})}}i.IntEditor=v,v.__name__="IntEditor",v.init_IntEditor();class y extends d{_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){return parseFloat(this.getValue())||0}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return isNaN(e)?{valid:!1,msg:"Please enter a valid number"}:super.validateValue(e)}}i.NumberEditorView=y,y.__name__="NumberEditorView";class b extends o{static init_NumberEditor(){this.prototype.default_view=y,this.define({step:[s.Number,.01]})}}i.NumberEditor=b,b.__name__="NumberEditor",b.init_NumberEditor();class I extends d{_createInput(){return r.input({type:"text"})}}i.TimeEditorView=I,I.__name__="TimeEditorView";class N extends o{static init_TimeEditor(){this.prototype.default_view=I}}i.TimeEditor=N,N.__name__="TimeEditor",N.init_TimeEditor();class C extends d{_createInput(){return r.input({type:"text"})}get emptyValue(){return new Date}renderEditor(){this.inputEl.focus(),this.inputEl.select()}destroy(){super.destroy()}show(){super.show()}hide(){super.hide()}position(){return super.position()}getValue(){}setValue(e){}}i.DateEditorView=C,C.__name__="DateEditorView";class D extends o{static init_DateEditor(){this.prototype.default_view=C}}i.DateEditor=D,D.__name__="DateEditor",D.init_DateEditor()},n”, ” 424: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),o=e(425),n=e(429),l=e(430),r=e(431),d=s.__importStar(e(19)),a=e(26),h=e(8),c=e(9),u=e(24),_=e(70),m=e(187),g=e(440),p=e(441),b=e(442);i.DTINDEX_NAME="__bkdt_internal_index__";class w{constructor(e,t){this.init(e,t)}init(e,t){if(i.DTINDEX_NAME in e.data)throw new Error(`special name ${i.DTINDEX_NAME} cannot be used as a data table column`);this.source=e,this.view=t,this.index=this.view.indices}getLength(){return this.index.length}getItem(e){const t={};for(const i of u.keys(this.source.data))t[i]=this.source.data[i][this.index[e]];return t[i.DTINDEX_NAME]=this.index[e],t}getField(e,t){return t==i.DTINDEX_NAME?this.index[e]:this.source.data[t][this.index[e]]}setField(e,t,i){const s=this.index[e];this.source.patch({[t]:[[s,i]]})}getItemMetadata(e){return null}getRecords(){return c.range(0,this.getLength()).map(e=>this.getItem(e))}sort(e){let t=e.map(e=>[e.sortCol.field,e.sortAsc?1:-1]);0==t.length&&(t=[[i.DTINDEX_NAME,1]]);const s=this.getRecords(),o=this.index.slice();this.index.sort((function(e,i){for(const[n,l]of t){const t=s[o.indexOf(e)][n],r=s[o.indexOf(i)][n],d=t==r?0:t>r?l:-l;if(0!=d)return d}return 0}))}}i.TableDataProvider=w,w.__name__="TableDataProvider";class x extends p.WidgetView{constructor(){super(…arguments),this._in_selection_update=!1,this._warned_not_reorderable=!1}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.source.streaming,()=>this.updateGrid()),this.connect(this.model.source.patching,()=>this.updateGrid()),this.connect(this.model.source.change,()=>this.updateGrid()),this.connect(this.model.source.properties.data.change,()=>this.updateGrid()),this.connect(this.model.source.selected.change,()=>this.updateSelection()),this.connect(this.model.source.selected.properties.indices.change,()=>this.updateSelection())}_update_layout(){this.layout=new m.LayoutItem,this.layout.set_sizing(this.box_sizing())}update_position(){super.update_position(),this.grid.resizeCanvas()}updateGrid(){if(this.model.view.compute_indices(),this.data.init(this.model.source,this.model.view),this.model.sortable){const e=this.grid.getColumns(),t=this.grid.getSortColumns().map(t=>({sortCol:{field:e[this.grid.getColumnIndex(t.columnId)].field},sortAsc:t.sortAsc}));this.data.sort(t)}this.grid.invalidate(),this.grid.render()}updateSelection(){if(this._in_selection_update)return;const{selected:e}=this.model.source,t=e.indices.map(e=>this.data.index.indexOf(e)).sort();this._in_selection_update=!0,this.grid.setSelectedRows(t),this._in_selection_update=!1;const i=this.grid.getViewport(),s=this.model.get_scroll_index(i,t);null!=s&&this.grid.scrollRowToTop(s)}newIndexColumn(){return{id:a.uniqueId(),name:this.model.index_header,field:i.DTINDEX_NAME,width:this.model.index_width,behavior:"select",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:b.bk_cell_index,headerCssClass:b.bk_header_index}}css_classes(){return super.css_classes().concat(b.bk_data_table)}render(){let e,t=this.model.columns.map(e=>e.toColumn());if("checkbox"==this.model.selectable&&(e=new n.CheckboxSelectColumn({cssClass:b.bk_cell_select}),t.unshift(e.getColumnDefinition())),null!=this.model.index_position){const e=this.model.index_position,i=this.newIndexColumn();-1==e?t.push(i):e<-1?t.splice(e+1,0,i):t.splice(e,0,i)}let{reorderable:i}=this.model;!i||"undefined"!=typeof $&&null!=$.fn&&null!=$.fn.sortable||(this._warned_not_reorderable||(_.logger.warn("jquery-ui is required to enable DataTable.reorderable"),this._warned_not_reorderable=!0),i=!1);const s={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:i,forceFitColumns:this.model.fit_columns,multiColumnSort:this.model.sortable,editable:this.model.editable,autoEdit:!1,rowHeight:this.model.row_height};if(this.data=new w(this.model.source,this.model.view),this.grid=new r.Grid(this.el,this.data,t,s),this.grid.onSort.subscribe((e,i)=>{this.model.sortable&&(t=i.sortCols,this.data.sort(t),this.grid.invalidate(),this.updateSelection(),this.grid.render(),this.model.header_row||this._hide_header(),this.model.update_sort_columns(t))}),!1!==this.model.selectable){this.grid.setSelectionModel(new o.RowSelectionModel({selectActiveRow:null==e})),null!=e&&this.grid.registerPlugin(e);const t={dataItemColumnValueExtractor(e,t){let i=e[t.field];return h.isString(i)&&(i=i.replace(/\n/g,"\\n")),i},includeHeaderWhenCopying:!1};this.grid.registerPlugin(new l.CellExternalCopyManager(t)),this.grid.onSelectedRowsChanged.subscribe((e,t)=>{this._in_selection_update||(this.model.source.selected.indices=t.rows.map(e=>this.data.index[e]))}),this.updateSelection(),this.model.header_row||this._hide_header()}}_hide_header(){for(const e of Array.from(this.el.querySelectorAll(".slick-header-columns")))e.style.height="0px";this.grid.resizeCanvas()}}i.DataTableView=x,x.__name__="DataTableView";class f extends g.TableWidget{constructor(e){super(e),this._sort_columns=[]}get sort_columns(){return this._sort_columns}static init_DataTable(){this.prototype.default_view=x,this.define({columns:[d.Array,[]],fit_columns:[d.Boolean,!0],sortable:[d.Boolean,!0],reorderable:[d.Boolean,!0],editable:[d.Boolean,!1],selectable:[d.Any,!0],index_position:[d.Int,0],index_header:[d.String,"#"],index_width:[d.Int,40],scroll_to_selection:[d.Boolean,!0],header_row:[d.Boolean,!0],row_height:[d.Int,25]}),this.override({width:600,height:400})}update_sort_columns(e){return this._sort_columns=e.map(e=>({field:e.sortCol.field,sortAsc:e.sortAsc})),null}get_scroll_index(e,t){return this.scroll_to_selection&&0!=t.length?c.some(t,t=>e.top<=t&&t<=e.bottom)?null:Math.max(0,Math.min(…t)-1):null}}i.DataTable=f,f.__name__="DataTable",f.init_DataTable()},n”, ” 425: function _(e,t,n){var o=e(426),r=e(428);t.exports={RowSelectionModel:function(e){var t,n,l,i=[],c=this,u=new r.EventHandler,s={selectActiveRow:!0};function a(e){return function(){n||(n=!0,e.apply(this,arguments),n=!1)}}function f(e){for(var t=[],n=0;n<e.length;n++)for(var o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}function h(e){for(var n=[],o=t.getColumns().length-1,l=0;l<e.length;l++)n.push(new r.Range(e[l],0,e[l],o));return n}function w(){return f(i)}function g(e){(i&&0!==i.length||e&&0!==e.length)&&(i=e,c.onSelectedRangesChanged.notify(i))}function v(e,n){l.selectActiveRow&&null!=n.row&&g([new r.Range(n.row,0,n.row,t.getColumns().length-1)])}function p(e){var n=t.getActiveCell();if(t.getOptions().multiSelect&&n&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which==r.keyCode.UP||e.which==r.keyCode.DOWN)){var o=w();o.sort((function(e,t){return e-t})),o.length||(o=[n.row]);var l,i=o[0],c=o[o.length-1];if((l=e.which==r.keyCode.DOWN?n.row<c||i==c?++c:++i:n.row<c?–c:–i)>=0&&l<t.getDataLength())t.scrollRowIntoView(l),g(h(function(e,t){var n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}(i,c)));e.preventDefault(),e.stopPropagation()}}function y(e){var n=t.getCellFromEvent(e);if(!n||!t.canCellBeActive(n.row,n.cell))return!1;if(!t.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;var r=f(i),l=o.inArray(n.row,r);if(-1===l&&(e.ctrlKey||e.metaKey))r.push(n.row),t.setActiveCell(n.row,n.cell);else if(-1!==l&&(e.ctrlKey||e.metaKey))r=o.grep(r,(function(e,t){return e!==n.row})),t.setActiveCell(n.row,n.cell);else if(r.length&&e.shiftKey){var c=r.pop(),u=Math.min(n.row,c),s=Math.max(n.row,c);r=[];for(var a=u;a<=s;a++)a!==c&&r.push(a);r.push(c),t.setActiveCell(n.row,n.cell)}return g(h(r)),e.stopImmediatePropagation(),!0}o.extend(this,{getSelectedRows:w,setSelectedRows:function(e){g(h(e))},getSelectedRanges:function(){return i},setSelectedRanges:g,init:function(n){l=o.extend(!0,{},s,e),t=n,u.subscribe(t.onActiveCellChanged,a(v)),u.subscribe(t.onKeyDown,a(p)),u.subscribe(t.onClick,a(y))},destroy:function(){u.unsubscribeAll()},onSelectedRangesChanged:new r.Event})}}},n”, ” 426: function _(e,n,f){n.exports="undefined"!=typeof $?$:e(427)},n”, ” 427: function _(e,t,n){n”, ” /!n”, ” * jQuery JavaScript Library v3.4.1n”, ” * https://jquery.com/n”, ” n”, ” * Includes Sizzle.jsn”, ” * https://sizzlejs.com/n”, ” *n”, ” * Copyright JS Foundation and other contributorsn”, ” * Released under the MIT licensen”, ” * https://jquery.org/licensen”, ” *n”, ” * Date: 2019-05-01T21:04Zn”, ” */n”, ” !function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var i,o,a=(n=n||r).createElement("script");if(a.text=e,t)for(i in y)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,o);n.head.appendChild(a).parentNode.removeChild(a)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}b.fn=b.prototype={jquery:"3.4.1",constructor:b,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return b.each(this,e)},map:function(e){return this.pushStack(b.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},b.extend=b.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s–);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(b.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||b.isPlainObject(n)?n:{},i=!1,a[t]=b.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},b.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===d)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){m(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(w,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?b.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(T(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(b.fn[Symbol.iterator]=n[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var C=n”, ” /!n”, ” * Sizzle CSS Selector Engine v2.3.4n”, ” * https://sizzlejs.com/n”, ” n”, ” * Copyright JS Foundation and other contributorsn”, ” * Released under the MIT licensen”, ” * https://js.foundation/n”, ” *n”, ” * Date: 2019-04-08n”, ” */n”, ” function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ue(),k=ue(),S=ue(),N=ue(),A=function(e,t){return e===t&&(f=!0),0},D={}.hasOwnProperty,j=[],q=j.pop,L=j.push,H=j.push,O=j.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:’((?:\\\\.|[^\\\\’]))’|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+I+\"))|)"+M+"\\]",$=":("+I+")(?:\\(((‘((?:\\\\.|[^\\\\’]))’|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+","+M+""),z=new RegExp("^"+M+"([>+~]|"+M+")"+M+""),U=new RegExp(M+"|>\"),X=new RegExp($),V=new RegExp(\"^\"+I+\"$\"),G={ID:new RegExp(\"^#(\"+I+\")\"),CLASS:new RegExp(\"^\\\\.(\"+I+\")\"),TAG:new RegExp(\"^(\"+I+\"|[*])\"),ATTR:new RegExp(\"^\"+W),PSEUDO:new RegExp(\"^\"+$),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+M+\"*(even|odd|(([+-]|)(\\d*)n|)"+M+"(?:([+-]|)"+M+"*(\\d+)|))"+M+"\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d)"+M+"\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{H.apply(j=O.call(w.childNodes),w.childNodes),j[w.childNodes.length].nodeType}catch(e){H={apply:j.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=Z.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!N[e+" "]&&(!v||!v.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===T&&U.test(e)){for((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=b),s=(h=a(e)).length;s–;)h[s]="#"+c+" "+xe(h[s]);y=h.join(","),m=ee.test(e)&&ye(t.parentNode)||t}try{return H.apply(r,m.querySelectorAll(y)),r}catch(t){N(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|\"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return\"input\"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return(\"input\"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a–;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if(""===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){h.appendChild(e).innerHTML="<a id=’"+b+"’></a><select id=’"+b+"-\r\\’ msallowcapture=’’><option selected=’’></option></select>",e.querySelectorAll("[msallowcapture^=’’]").length&&v.push("[^$]="+M+"*(?:’’|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+").length||v.push(".#.+[+~]")})),ce((function(e){e.innerHTML="<a href=’’ disabled=’disabled’></a><select disabled=’disabled’><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll(",:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=m.call(e,""),m.call(e,"[s!=’’]:x"),y.push("!=",$)})),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?P(c,e)-P(c,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),n.matchesSelector&&g&&!N[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){N(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&D.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(A),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i–;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return""===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)\"))&&E(e,(function(e){return t.test(\"string\"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute(\"class\")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a–;)e[r=P(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s–;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;–r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i–;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le((function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:Te(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=Te(y,d),r(l,[],s,u),c=l.length;c–;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c–;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c–;)(f=y[c])&&(l=i?P(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else y=Te(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)}))}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=be((function(e){return e===t}),s,!0),f=be((function(e){return P(t,e)>-1}),s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[be(we(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Ce(u>1&&we(p),u>1&&xe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"":""})).replace(B,"$1"),n,u<i&&Ee(e.slice(u,i)),i<o&&Ee(e=e.slice(i)),i<o&&xe(e))}p.push(n)}return we(p)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=se.tokenize=function(e,t){var n,i,o,a,s,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=_.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):k(e,u).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n–;)(s=Ee(t[n]))[b]?i.push(s):o.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,v,y=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument===d||(p(f),s=!g);v=e[h++];)if(v(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!v&&f)&&y–,o&&x.push(f))}if(y+=m,n&&m!==y){for(h=0;v=t[h++];)v(x,b,a,s);if(o){if(y>0)for(;m–;)x[m]||b[m]||(b[m]=q.call(u));b=Te(b)}H.apply(u,b),c&&!o&&b.length>0&&y+t.length>1&&se.uniqueSort(u)}return c&&(T=E,l=w),x};return n?le(o):o}(o,i))).selector=e}return s},u=se.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=G.needsContext.test(e)?0:u.length;o–&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&xe(u)))return H.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split("").sort(A).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href=’#’></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);b.find=C,b.expr=C.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=C.uniqueSort,b.text=C.getText,b.isXMLDoc=C.isXML,b.contains=C.contains,b.escapeSelector=C.escape;var E=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&b(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=b.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return g(t)?b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?b.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?b.grep(e,(function(e){return u.call(t,e)>-1!==n})):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},b.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<r;t++)if(b.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,i[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&S.test(e)?b(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),A.test(i[1])&&b.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,j=b(r);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&b(e);if(!S.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?b.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(b(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(N(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},(function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),this.length>1&&(H[e]||b.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}}));var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(P)||[],(function(e,n){t[n]=!0})),t}(e):b.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){b.each(n,(function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&u()),this},remove:function(){return b.each(arguments,(function(e,t){for(var n;(n=b.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s–})),this},has:function(e){return e?b.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},b.extend({Deferred:function(t){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return b.Deferred((function(t){b.each(n,(function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,g(l)?i?l.call(e,a(o,n,R,i),a(o,n,M,i)):(o++,l.call(e,a(o,n,R,i),a(o,n,M,i),a(o,n,R,n.notifyWith))):(r!==R&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(r!==M&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(b.Deferred.getStackHook&&(c.stackTrace=b.Deferred.getStackHook()),e.setTimeout(c))}}return b.Deferred((function(e){n[0][3].add(a(0,e,g(i)?i:R,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:R)),n[2][3].add(a(0,e,g(r)?r:M))})).promise()},promise:function(e){return null!=e?b.extend(e,i):i}},o={};return b.each(n,(function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=b.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,–t||a.resolveWith(r,i)}};if(t<=1&&(I(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();for(;n–;)I(i[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},b.readyException=function(t){e.setTimeout((function(){throw t}))};var $=b.Deferred();function F(){r.removeEventListener("DOMContentLoaded",F),e.removeEventListener("load",F),b.ready()}b.fn.ready=function(e){return $.then(e).catch((function(e){b.readyException(e)})),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?–b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&–b.readyWait>0||$.resolveWith(r,[b]))}}),b.ready.then=$.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(b.ready):(r.addEventListener("DOMContentLoaded",F),e.addEventListener("load",F));var B=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)B(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(b(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=b.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;for(;n–;)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(n=a.length;n–;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Q.set(this,e)})):B(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))||void 0!==(n=Z(o,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r–),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){b.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:b.Callbacks("once memory").add((function(){Y.remove(e,[t+"queue",n])}))})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n–),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each((function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=b.Deferred(),o=this,a=this.length,s=function(){–r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a–;)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=r.documentElement,ie=function(e){return b.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===b.css(e,"display")},se=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},u=s(),l=n&&n[3]||(b.cssNumber[t]?"":"px"),c=e.nodeType&&(b.cssNumber[t]||"px"!==l&&+u)&&te.exec(b.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a–;)b.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,b.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var le={};function ce(e){var t,n=e.ownerDocument,r=e.nodeName,i=le[r];return i||(t=n.body.appendChild(n.createElement(r)),i=b.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),le[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Y.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ae(r)&&(i[o]=ce(r))):"none"!==n&&(i[o]="none",Y.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}b.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ae(this)?b(this).show():b(this).hide()}))}});var pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,"<select multiple=’multiple’>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||""):void 0!==e.querySelectorAll?e.querySelectorAll(t||""):[],void 0===t||t&&N(e,t)?b.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var me,xe,be=/<|&#?\\w+;/;function we(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if(\"object\"===x(o))b.merge(p,o.nodeType?[o]:o);else if(be.test(o)){for(a=a||f.appendChild(t.createElement(\"div\")),s=(de.exec(o)||[\"\",\"\"])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+b.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;b.merge(p,a.childNodes),(a=f.firstChild).textContent=\"\"}else p.push(t.createTextNode(o));for(f.textContent=\"\",d=0;o=p[d++];)if(r&&b.inArray(o,r)>-1)i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),\"script\"),l&&ye(a),n)for(c=0;o=a[c++];)he.test(o.type||"")&&n.push(o);return f}me=r.createDocumentFragment().appendChild(r.createElement("div")),(xe=r.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),me.appendChild(xe),h.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return b().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=b.guid++)),e.each((function(){b.event.add(this,t,i,r,n)}))}function De(e,t,n){n?(Y.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=Y.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),Y.set(this,t,a),r=n(this,t),this[t](),a!==(i=Y.get(this,t))||r?Y.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else a.length&&(Y.set(this,t,{value:b.event.trigger(b.extend(a[0],b.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,t)&&b.event.add(e,t,ke)}b.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&b.find.matchesSelector(re,i),n.guid||(n.guid=b.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(P)||[""]).length;l–;)d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=b.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=b.event.special[d]||{},c=b.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&b.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),b.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(P)||[""]).length;l–;)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=b.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o–;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&(""!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount–,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||b.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=b.event.fix(e),u=new Array(arguments.length),l=(Y.get(this,"events")||{})[s.type]||[],c=b.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=b.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((b.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?b(i,this).index(l)>-1:b.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&N(t,"input")&&De(t,"click",ke),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&N(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&N(t,"input")&&Y.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},(function(e,t){b.event.special[e]={setup:function(){return De(this,e,Ne),!1},trigger:function(){return De(this,e),!0},delegateType:t}})),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||b.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),b.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){b.event.remove(this,e,n,t)}))}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!(?:\[CDATA\[|–)|(?:\]\]|–)>\s*$/g;function Oe(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),a=Y.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)b.event.add(t,i,l[i][n]);Q.hasData(e)&&(s=Q.access(e),u=b.extend({},s),Q.set(t,u))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&pe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function We(e,t,n,r){t=a.apply([],t);var i,o,s,u,l,c,f=0,p=e.length,d=p-1,v=t[0],y=g(v);if(y||p>1&&"string"==typeof v&&!h.checkClone&&Le.test(v))return e.each((function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),We(o,t,n,r)}));if(p&&(o=(i=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=b.map(ve(i,"script"),Pe)).length;f<p;f++)l=i,f!==d&&(l=b.clone(l,!0,!0),u&&b.merge(s,ve(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,b.map(s,Re),f=0;f<u;f++)l=s[f],he.test(l.type||"")&&!Y.access(l,"globalEval")&&b.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?b._evalUrl&&!l.noModule&&b._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):m(l.textContent.replace(He,""),l,c))}return e}function $e(e,t,n){for(var r,i=t?b.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||b.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=ie(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(a=ve(s),r=0,i=(o=ve(e)).length;r<i;r++)Ie(o[r],a[r]);if(t)if(n)for(o=o||ve(e),a=a||ve(s),r=0,i=o.length;r<i;r++)Me(o[r],a[r]);else Me(e,s);return(a=ve(s,"script")).length>0&&ye(a,!u&&ve(e,"script")),s},cleanData:function(e){for(var t,n,r,i=b.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),b.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return B(this,(function(e){return void 0===e?b.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return B(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(b.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return We(this,arguments,(function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var n,r=[],i=b(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),b(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}}));var Fe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Be=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},_e=new RegExp(ne.join("|"),"i");function ze(e,t,n){var r,i,o,a,s=e.style;return(n=n||Be(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=b.style(e,t)),!h.pixelBoxStyles()&&Fe.test(a)&&_e.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",a=12===n(c.offsetWidth/3),re.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,a,s,u,l=r.createElement("div"),c=r.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,b.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))}();var Xe=["Webkit","Moz","ms"],Ve=r.createElement("div").style,Ge={};function Ye(e){var t=b.cssProps[e]||Ge[e];return t||(e in Ve?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n–;)if((e=Xe[n]+t)in Ve)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je=/^–/,Ke={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=b.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=b.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=b.css(e,"border"+ne[a]+"Width",!0,i))):(u+=b.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=b.css(e,"border"+ne[a]+"Width",!0,i):s+=b.css(e,"border"+ne[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function nt(e,t,n){var r=Be(e),i=(!h.boxSizingReliable()||n)&&"border-box"===b.css(e,"boxSizing",!1,r),o=i,a=ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===b.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===b.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+tt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Je.test(t),l=e.style;if(u||(t=Ye(s)),a=b.cssHooks[t]||b.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(b.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Je.test(t)||(t=Ye(s)),(a=b.cssHooks[t]||b.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in Ze&&(i=Ze[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):se(e,Ke,(function(){return nt(e,t,r)}))},set:function(e,n,r){var i,o=Be(e),a=!h.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===b.css(e,"boxSizing",!1,o),u=r?tt(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-tt(e,t,"border",!1,o)-.5)),u&&(i=te.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),et(0,n,u)}}})),b.cssHooks.marginLeft=Ue(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ne[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(b.cssHooks[e+t].set=et)})),b.fn.extend({css:function(e,t){return B(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Be(e),i=t.length;a<i;a++)o[t[a]]=b.css(e,t[a],!1,r);return o}return void 0!==n?b.style(e,t,n):b.css(e,t)}),e,t,arguments.length>1)}}),b.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=rt.prototype.init,b.fx.step={};var it,ot,at=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function ut(){ot&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ut):e.setTimeout(ut,b.fx.interval),b.fx.tick())}function lt(){return e.setTimeout((function(){it=void 0})),it=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function pt(e,t,n){var r,i,o=0,a=pt.prefilters.length,s=b.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=it||lt(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=b.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=pt.prefilters[o].call(l,e,c,l.opts))return g(r.stop)&&(b._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return b.map(c,ft,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}b.Animation=b.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=b._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued–,b.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],at.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||b.style(e,r)}if((u=!b.isEmptyObject(t))||!b.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=b.css(e,"display"))&&(l?c=l:(fe([e],!0),l=e.style.display||l,c=b.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===b.css(e,"float")&&(u||(p.done((function(){h.display=l})),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&fe([e],!0),p.done((function(){for(r in g||fe([e]),Y.remove(e,"fxshow"),d)b.style(e,r,d[r])}))),u=ft(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return b.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=pt(this,b.extend({},e),o);(i||Y.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=b.timers,a=Y.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&st.test(i)&&r(a[i]);for(i=o.length;i–;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Y.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t–;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),b.each(["toggle","show","hide"],(function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}})),b.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t–,1);n.length||b.fx.stop(),it=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){ot||(ot=!0,ut())},b.fx.stop=function(){ot=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,n){return t=b.fx&&b.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}}))},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var dt,ht=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return B(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))}}),b.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?b.prop(e,t,n):(1===o&&b.isXMLDoc(e)||(i=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=b.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||b.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}}));var gt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function yt(e){return(e.match(P)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}b.fn.extend({prop:function(e,t){return B(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))}}),b.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&b.isXMLDoc(e)||(t=b.propFix[t]||t,i=b.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each((function(t){b(this).addClass(e.call(this,t,mt(this)))}));if((t=xt(e)).length)for(;n=this[u++];)if(i=mt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each((function(t){b(this).removeClass(e.call(this,t,mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)for(;n=this[u++];)if(i=mt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){b(this).toggleClass(e.call(this,n,mt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=b(this),a=xt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;b.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,b(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=b.map(i,(function(e){return null==e?"":e+""}))),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=b.valHooks[i.type]||b.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:yt(b.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=b(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=b.makeArray(t),a=i.length;a–;)((r=i[a]).selected=b.inArray(b.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},h.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,y=[i||r],m=f.call(t,"type")?t.type:t,x=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!wt.test(m+b.event.triggered)&&(m.indexOf(".")>-1&&(x=m.split("."),m=x.shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[b.expando]?t:new b.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:b.makeArray(n,[t]),d=b.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!v(i)){for(l=d.delegateType||m,wt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)y.push(s),u=s;u===(i.ownerDocument||r)&&y.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=y[a++])&&!t.isPropagationStopped();)h=s,t.type=a>1?l:d.bindType||m,(p=(Y.get(s,"events")||{})[t.type]&&Y.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&V(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(y.pop(),n)||!V(i)||c&&g(i[m])&&!v(i)&&((u=i[c])&&(i[c]=null),b.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Tt),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Tt),b.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),h.focusin||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Y.access(r,t);i||r.addEventListener(e,n,!0),Y.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Y.access(r,t)-1;i?Y.access(r,t,i):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}}));var Ct=e.location,Et=Date.now(),kt=/\?/;b.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+t),n};var St=/\[\]$/,Nt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))b.each(t,(function(t,i){n||St.test(e)?r(e,i):jt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)jt(e+"["+i+"]",t[i],n,r)}b.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){i(this.name,this.value)}));else for(n in e)jt(n,e[n],t,i);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Dt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,(function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}})):{name:t.name,value:n.replace(Nt,"\r\n")}})).get()}});var qt=/%20/g,Lt=/#.*$/,Ht=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Rt=/^\/\//,Mt={},It={},Wt="*/".concat("*"),$t=r.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(P)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Bt(e,t,n,r){var i={},o=e===It;function a(s){var u;return i[s]=!0,b.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function _t(e,t){var n,r,i=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}$t.href=Ct.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_t(_t(e,b.ajaxSettings),t):_t(b.ajaxSettings,e)},ajaxPrefilter:Ft(Mt),ajaxTransport:Ft(It),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=b.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?b(g):b.event,y=b.Deferred(),m=b.Callbacks("once memory"),x=h.statusCode||{},w={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ot.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),k(0,t),this}};if(y.promise(E),h.url=((t||h.url||Ct.href)+"").replace(Rt,Ct.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=$t.protocol+"//"+$t.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=b.param(h.data,h.traditional)),Bt(Mt,h,n,E),c)return E;for(p in(f=b.event&&h.global)&&0==b.active++&&b.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pt.test(h.type),o=h.url.replace(Lt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(qt,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(kt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ht,"$1"),d=(kt.test(o)?"&":"?")+"_="+Et+++d),h.url=o+d),h.ifModified&&(b.lastModified[o]&&E.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&E.setRequestHeader("If-None-Match",b.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Wt+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),i=Bt(It,h,n,E)){if(E.readyState=1,f&&v.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(u=e.setTimeout((function(){E.abort("timeout")}),h.timeout));try{c=!1,i.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,r,s){var l,p,d,w,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,E,r)),w=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(h,w,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(b.etag[o]=T)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=w.state,p=w.data,l=!(d=w.error))):(d=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",l?y.resolveWith(g,[p,C,E]):y.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&v.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(v.trigger("ajaxComplete",[E,h]),–b.active||b.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],(function(e,t){b[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:i,data:n,success:r},b.isPlainObject(e)&&e))}})),b._evalUrl=function(e,t){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){b(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ut=b.ajaxSettings.xhr();h.cors=!!Ut&&"withCredentials"in Ut,h.ajax=Ut=!!Ut,b.ajaxTransport((function(t){var n,r;if(h.cors||Ut&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),b.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,Vt=[],Gt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||b.expando+"_"+Et++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Gt,"$1"+i):!1!==t.jsonp&&(t.url+=(kt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||b.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always((function(){void 0===o?b(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),h.createHTMLDocument=((Xt=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(i)):t=r),a=!n&&[],(o=A.exec(e))?[t.createElement(o[1])]:(o=we([e],t,a),a&&a.length&&b(a).remove(),b.merge([],o.childNodes)));var i,o,a},b.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&b.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=b.css(e,"position"),c=b(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=b.css(e,"top"),u=b.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),i.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-b.css(r,"marginTop",!0),left:t.left-i.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||re}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return B(this,(function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ue(h.pixelPosition,(function(e,n){if(n)return n=ze(e,t),Fe.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){b.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return B(this,(function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),b.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,""):this.off(t,e||"",n)}}),b.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||b.guid++,i},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=N,b.isFunction=g,b.isWindow=v,b.camelCase=X,b.type=x,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return b}));var Yt=e.jQuery,Qt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Qt),t&&e.jQuery===b&&(e.jQuery=Yt),b},t||(e.jQuery=e.$=b),b}))},n”, ” 428: function _(t,i,n){function o(){var t=!1,i=!1;this.stopPropagation=function(){t=!0},this.isPropagationStopped=function(){return t},this.stopImmediatePropagation=function(){i=!0},this.isImmediatePropagationStopped=function(){return i}}function e(){this.__nonDataRow=!0}function r(){this.__group=!0,this.level=0,this.count=0,this.value=null,this.title=null,this.collapsed=!1,this.selectChecked=!1,this.totals=null,this.rows=[],this.groups=null,this.groupingKey=null}function s(){this.__groupTotals=!0,this.group=null,this.initialized=!1}function l(){var t=null;this.isActive=function(i){return i?t===i:null!==t},this.activate=function(i){if(i!==t){if(null!==t)throw new Error("SlickGrid.EditorLock.activate: an editController is still active, can’t activate another editController");if(!i.commitCurrentEdit)throw new Error("SlickGrid.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!i.cancelCurrentEdit)throw new Error("SlickGrid.EditorLock.activate: editController must implement .cancelCurrentEdit()");t=i}},this.deactivate=function(i){if(t!==i)throw new Error("SlickGrid.EditorLock.deactivate: specified editController is not the currently active one");t=null},this.commitCurrentEdit=function(){return!t||t.commitCurrentEdit()},this.cancelCurrentEdit=function(){return!t||t.cancelCurrentEdit()}}r.prototype=new e,r.prototype.equals=function(t){return this.value===t.value&&this.count===t.count&&this.collapsed===t.collapsed&&this.title===t.title},s.prototype=new e,i.exports={Event:function(){var t=[];this.subscribe=function(i){t.push(i)},this.unsubscribe=function(i){for(var n=t.length-1;n>=0;n–)t[n]===i&&t.splice(n,1)},this.notify=function(i,n,e){var r;n=n||new o,e=e||this;for(var s=0;s<t.length&&!n.isPropagationStopped()&&!n.isImmediatePropagationStopped();s++)r=t[s].call(e,n,i);return r}},EventData:o,EventHandler:function(){var t=[];this.subscribe=function(i,n){return t.push({event:i,handler:n}),i.subscribe(n),this},this.unsubscribe=function(i,n){for(var o=t.length;o–;)if(t[o].event===i&&t[o].handler===n)return t.splice(o,1),void i.unsubscribe(n);return this},this.unsubscribeAll=function(){for(var i=t.length;i–;)t[i].event.unsubscribe(t[i].handler);return t=[],this}},Range:function(t,i,n,o){void 0===n&&void 0===o&&(n=t,o=i),this.fromRow=Math.min(t,n),this.fromCell=Math.min(i,o),this.toRow=Math.max(t,n),this.toCell=Math.max(i,o),this.isSingleRow=function(){return this.fromRow==this.toRow},this.isSingleCell=function(){return this.fromRow==this.toRow&&this.fromCell==this.toCell},this.contains=function(t,i){return t>=this.fromRow&&t<=this.toRow&&i>=this.fromCell&&i<=this.toCell},this.toString=function(){return this.isSingleCell()?"("+this.fromRow+":"+this.fromCell+")":"("+this.fromRow+":"+this.fromCell+" - "+this.toRow+":"+this.toCell+")"}},NonDataRow:e,Group:r,GroupTotals:s,EditorLock:l,GlobalEditorLock:new l,keyCode:{BACKSPACE:8,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,ESC:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38,C:67,V:86},preClickClassName:"slick-edit-preclick"}},n”, ” 429: function _(e,t,o){var l=e(426),c=e(428);t.exports={CheckboxSelectColumn:function(e){var t,o=g(),n=new c.EventHandler,i={},r=!1,d=l.extend(!0,{},{columnId:"_checkbox_selector",cssClass:null,hideSelectAllCheckbox:!1,toolTip:"Select/Deselect All",width:30,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0},e);function a(){t.updateColumnHeader(d.columnId,"","")}function s(){l("#filter-checkbox-selectall-container").hide()}function u(e,c){var n,a,s=t.getSelectedRows(),u={};for(a=0;a<s.length;a++)u[n=s[a]]=!0,u[n]!==i[n]&&(t.invalidateRow(n),delete i[n]);for(a in i)t.invalidateRow(a);(i=u,t.render(),r=s.length&&s.length==t.getDataLength(),d.hideInColumnTitleRow||d.hideSelectAllCheckbox||(r?t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’ checked=’checked’><label for=’header-selector"+o+"’></label>",d.toolTip):t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",d.toolTip)),d.hideInFilterHeaderRow)||l("#header-filter-selector"+o).prop("checked",r)}function h(e,o){32==e.which&&t.getColumns()[o.cell].id===d.columnId&&(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit()||p(o.row),e.preventDefault(),e.stopImmediatePropagation())}function f(e,o){if(t.getColumns()[o.cell].id===d.columnId&&l(e.target).is(":checkbox")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();p(o.row),e.stopPropagation(),e.stopImmediatePropagation()}}function p(e){i[e]?t.setSelectedRows(l.grep(t.getSelectedRows(),(function(t){return t!=e}))):t.setSelectedRows(t.getSelectedRows().concat(e)),t.setActiveCell(e,function(){if(null===m){m=0;for(var e=t.getColumns(),o=0;o<e.length;o++)e[o].id==d.columnId&&(m=o)}return m}()),t.focus()}function b(e,o){if(o.column.id==d.columnId&&l(e.target).is(":checkbox")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();if(l(e.target).is(":checked")){for(var c=[],n=0;n<t.getDataLength();n++)c.push(n);t.setSelectedRows(c)}else t.setSelectedRows([]);e.stopPropagation(),e.stopImmediatePropagation()}}var m=null;function g(){return Math.round(1e7*Math.random())}function k(e,t,o,l,c){var n=g()+e;return c?i[e]?"<input id=’selector"+n+"’ type=’checkbox’ checked=’checked’><label for=’selector"+n+"’></label>":"<input id=’selector"+n+"’ type=’checkbox’><label for=’selector"+n+"’></label>":null}l.extend(this,{init:function(e){t=e,n.subscribe(t.onSelectedRowsChanged,u).subscribe(t.onClick,f).subscribe(t.onKeyDown,h),d.hideInFilterHeaderRow||function(e){e.onHeaderRowCellRendered.subscribe((function(e,t){"sel"===t.column.field&&(l(t.node).empty(),l("<span id=’filter-checkbox-selectall-container’><input id=’header-filter-selector"+o+"’ type=’checkbox’><label for=’header-filter-selector"+o+"’></label></span>").appendTo(t.node).on("click",(function(e){b(e,t)})))}))}(e),d.hideInColumnTitleRow||n.subscribe(t.onHeaderClick,b)},destroy:function(){n.unsubscribeAll()},deSelectRows:function(e){var o,c=e.length,n=[];for(o=0;o<c;o++)i[e[o]]&&(n[n.length]=e[o]);t.setSelectedRows(l.grep(t.getSelectedRows(),(function(e){return n.indexOf(e)<0})))},selectRows:function(e){var o,l=e.length,c=[];for(o=0;o<l;o++)i[e[o]]||(c[c.length]=e[o]);t.setSelectedRows(t.getSelectedRows().concat(c))},getColumnDefinition:function(){return{id:d.columnId,name:d.hideSelectAllCheckbox||d.hideInColumnTitleRow?"":"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",toolTip:d.toolTip,field:"sel",width:d.width,resizable:!1,sortable:!1,cssClass:d.cssClass,hideSelectAllCheckbox:d.hideSelectAllCheckbox,formatter:k}},getOptions:function(){return d},setOptions:function(e){if((d=l.extend(!0,{},d,e)).hideSelectAllCheckbox)a(),s();else if(d.hideInColumnTitleRow?a():(r?t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’ checked=’checked’><label for=’header-selector"+o+"’></label>",d.toolTip):t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",d.toolTip),n.subscribe(t.onHeaderClick,b)),d.hideInFilterHeaderRow)s();else{var c=l("#filter-checkbox-selectall-container");c.show(),c.find(‘input[type="checkbox"]’).prop("checked",r)}}})}}},n”, ” 430: function _(e,t,o){var l=e(426),n=e(428),a=n.keyCode;t.exports={CellExternalCopyManager:function(e){var t,o,r=this,i=e||{},s=i.copiedCellStyleLayerKey||"copy-manager",u=i.copiedCellStyle||"copied",c=0,d=i.bodyElement||document.body,f=i.onCopyInit||null,h=i.onCopySuccess||null;function C(e){if(i.headerColumnValueExtractor){var t=i.headerColumnValueExtractor(e);if(t)return t}return e.name}function m(e,o,n){if(i.dataItemColumnValueExtractor){var a=i.dataItemColumnValueExtractor(e,o);if(a)return a}var r="";if(o.editor){var s={container:l("<p>"),column:o,position:{top:0,left:0},grid:t,event:n},u=new o.editor(s);u.loadValue(e),r=u.serializeValue(),u.destroy()}else r=e[o.field];return r}function g(e,o,n){if(i.dataItemColumnValueSetter)return i.dataItemColumnValueSetter(e,o,n);if(o.editor){var a={container:l("body"),column:o,position:{top:0,left:0},grid:t},r=new o.editor(a);r.loadValue(e),r.applyValue(e,n),r.destroy()}else e[o.field]=n}function p(e){var t=document.createElement("textarea");return t.style.position="absolute",t.style.left="-1000px",t.style.top=document.body.scrollTop+"px",t.value=e,d.appendChild(t),t.select(),t}function y(e,l){var n;if(!t.getEditorLock().isActive()||t.getOptions().autoEdit){if(e.which==a.ESC&&o&&(e.preventDefault(),w(),r.onCopyCancelled.notify({ranges:o}),o=null),(e.which===a.C||e.which===a.INSERT)&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&(f&&f.call(),0!=(n=t.getSelectionModel().getSelectedRanges()).length)){o=n,v(n),r.onCopyCells.notify({ranges:n});for(var s=t.getColumns(),u="",c=0;c<n.length;c++){for(var y=n[c],D=[],S=y.fromRow;S<y.toRow+1;S++){var R=[],x=t.getDataItem(S);if(""==D&&i.includeHeaderWhenCopying){for(var V=[],E=y.fromCell;E<y.toCell+1;E++)s[E].name.length>0&&V.push(C(s[E]));D.push(V.join("\t"))}for(E=y.fromCell;E<y.toCell+1;E++)R.push(m(x,s[E],e));D.push(R.join("\t"))}u+=D.join("\r\n")+"\r\n"}if(window.clipboardData)return window.clipboardData.setData("Text",u),!0;var b=document.activeElement;if((M=p(u)).focus(),setTimeout((function(){d.removeChild(M),b?b.focus():console.log("Not element to restore focus to after copy?")}),100),h){var I=0;I=1===n.length?n[0].toRow+1-n[0].fromRow:n.length,h.call(this,I)}return!1}if(!i.readOnlyMode&&(e.which===a.V&&(e.ctrlKey||e.metaKey)&&!e.shiftKey||e.which===a.INSERT&&e.shiftKey&&!e.ctrlKey)){var M=p("");return setTimeout((function(){!function(e,t){var o=e.getColumns(),l=t.value.split(/[\n\f\r]/);""==l[l.length-1]&&l.pop();var n=[],a=0;d.removeChild(t);for(var s=0;s<l.length;s++)""!=l[s]?n[a++]=l[s].split("\t"):n[s]=[""];var u=e.getActiveCell(),c=e.getSelectionModel().getSelectedRanges(),f=c&&c.length?c[0]:null,h=null,C=null;if(f)h=f.fromRow,C=f.fromCell;else{if(!u)return;h=u.row,C=u.cell}var m=!1,p=n.length,y=n.length?n[0].length:0;1==n.length&&1==n[0].length&&f&&(m=!0,p=f.toRow-f.fromRow+1,y=f.toCell-f.fromCell+1);var w=e.getData().length-h,D=0;if(w<p&&i.newRowCreator){var S=e.getData();for(D=1;D<=p-w;D++)S.push({});e.setData(S),e.render()}var R=h+p>e.getDataLength();if(i.newRowCreator&&R){var x=h+p-e.getDataLength();i.newRowCreator(x)}var V={isClipboardCommand:!0,clippedRange:n,oldValues:[],cellExternalCopyManager:r,_options:i,setDataItemValueForColumn:g,markCopySelection:v,oneCellToMultiple:m,activeRow:h,activeCell:C,destH:p,destW:y,maxDestY:e.getDataLength(),maxDestX:e.getColumns().length,h:0,w:0,execute:function(){this.h=0;for(var t=0;t<this.destH;t++){this.oldValues[t]=[],this.w=0,this.h++;for(var l=0;l<this.destW;l++){this.w++;var a=h+t,r=C+l;if(a<this.maxDestY&&r<this.maxDestX){e.getCellNode(a,r);var i=e.getDataItem(a);this.oldValues[t][l]=i[o[r].field],m?this.setDataItemValueForColumn(i,o[r],n[0][0]):this.setDataItemValueForColumn(i,o[r],n[t]?n[t][l]:""),e.updateCell(a,r),e.onCellChange.notify({row:a,cell:r,item:i,grid:e})}}}var s={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};this.markCopySelection([s]),e.getSelectionModel().setSelectedRanges([s]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[s]})},undo:function(){for(var t=0;t<this.destH;t++)for(var l=0;l<this.destW;l++){var n=h+t,a=C+l;if(n<this.maxDestY&&a<this.maxDestX){e.getCellNode(n,a);var r=e.getDataItem(n);m?this.setDataItemValueForColumn(r,o[a],this.oldValues[0][0]):this.setDataItemValueForColumn(r,o[a],this.oldValues[t][l]),e.updateCell(n,a),e.onCellChange.notify({row:n,cell:a,item:r,grid:e})}}var i={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};if(this.markCopySelection([i]),e.getSelectionModel().setSelectedRanges([i]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[i]}),D>1){for(var s=e.getData();D>1;D–)s.splice(s.length-1,1);e.setData(s),e.render()}}};i.clipboardCommandHandler?i.clipboardCommandHandler(V):V.execute()}(t,M)}),100),!1}}}function v(e){w();for(var o=t.getColumns(),l={},n=0;n<e.length;n++)for(var a=e[n].fromRow;a<=e[n].toRow;a++){l[a]={};for(var i=e[n].fromCell;i<=e[n].toCell&&i<o.length;i++)l[a][o[i].id]=u}t.setCellCssStyles(s,l),clearTimeout(c),c=setTimeout((function(){r.clearCopySelection()}),2e3)}function w(){t.removeCellCssStyles(s)}l.extend(this,{init:function(e){(t=e).onKeyDown.subscribe(y);var o=e.getSelectionModel();if(!o)throw new Error("Selection model is mandatory for this plugin. Please set a selection model on the grid before adding this plugin: grid.setSelectionModel(new Slick.CellSelectionModel())");o.onSelectedRangesChanged.subscribe((function(e,o){t.focus()}))},destroy:function(){t.onKeyDown.unsubscribe(y)},clearCopySelection:w,handleKeyDown:y,onCopyCells:new n.Event,onCopyCancelled:new n.Event,onPasteCells:new n.Event,setIncludeHeaderWhenCopying:function(e){i.includeHeaderWhenCopying=e}})}}},n”, ” 431: function _(r,t,o){var _=r(1);_.__exportStar(r(428),t.exports),_.__exportStar(r(432),t.exports),_.__exportStar(r(435),t.exports),_.__exportStar(r(436),t.exports),_.__exportStar(r(437),t.exports),_.__exportStar(r(438),t.exports),_.__exportStar(r(439),t.exports)},n”, ” 432: function _(require,module,exports){n”, ” /n”, ” * @licensen”, ” * (c) 2009-2016 Michael Leibmann”, ” * michael{dot}leibman{at}gmail{dot}comn”, ” * http://github.com/mleibman/slickgridn”, ” n”, ” * Distributed under MIT license.n”, ” * All rights reserved.n”, ” *n”, ” * SlickGrid v2.3n”, ” *n”, ” * NOTES:n”, ” * Cell/row DOM manipulations are done directly bypassing jQuery’s DOM manipulation methods.n”, ” * This increases the speed dramatically, but can only be done safely because there are no event handlersn”, ” * or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()n”, ” * and do proper cleanup.n”, ” */n”, ” var $=require(426),Slick=require(428),scrollbarDimensions,maxSupportedCssHeight;function SlickGrid(container,data,columns,options){$.fn.drag||require(433),$.fn.drop||require(434);var defaults={alwaysShowVerticalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,autoHeight:!1,editorLock:Slick.GlobalEditorLock,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,showPreHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",selectedCellCssClass:"selected",multiSelect:!0,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,showCellSelection:!0,viewportClass:null,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1},columnDefaults={name:"",resizable:!0,sortable:!1,minWidth:30,rerenderOnResize:!1,headerCssClass:null,defaultSortAsc:!0,focusable:!0,selectable:!0},th,h,ph,n,cj,page=0,offset=0,vScrollDir=1,initialized=!1,$container,uid="slickgrid_"+Math.round(1e6*Math.random()),self=this,$focusSink,$focusSink2,$headerScroller,$headers,$headerRow,$headerRowScroller,$headerRowSpacer,$footerRow,$footerRowScroller,$footerRowSpacer,$preHeaderPanel,$preHeaderPanelScroller,$preHeaderPanelSpacer,$topPanelScroller,$topPanel,$viewport,$canvas,$style,$boundAncestors,stylesheet,columnCssRulesL,columnCssRulesR,viewportH,viewportW,canvasWidth,viewportHasHScroll,viewportHasVScroll,headerColumnWidthDiff=0,headerColumnHeightDiff=0,cellWidthDiff=0,cellHeightDiff=0,jQueryNewWidthBehaviour=!1,absoluteColumnMinWidth,tabbingDirection=1,activePosX,activeRow,activeCell,activeCellNode=null,currentEditor=null,serializedEditorValue,editController,rowsCache={},renderedRows=0,numVisibleRows,prevScrollTop=0,scrollTop=0,lastRenderedScrollTop=0,lastRenderedScrollLeft=0,prevScrollLeft=0,scrollLeft=0,selectionModel,selectedRows=[],plugins=[],cellCssClasses={},columnsById={},sortColumns=[],columnPosLeft=[],columnPosRight=[],pagingActive=!1,pagingIsLastPage=!1,scrollThrottle=ActionThrottle(render,50),h_editorLoader=null,h_render=null,h_postrender=null,h_postrenderCleanup=null,postProcessedRows={},postProcessToRow=null,postProcessFromRow=null,postProcessedCleanupQueue=[],postProcessgroupId=0,counter_rows_rendered=0,counter_rows_removed=0,rowNodeFromLastMouseWheelEvent,zombieRowNodeFromLastMouseWheelEvent,zombieRowCacheFromLastMouseWheelEvent,zombieRowPostProcessedFromLastMouseWheelEvent,cssShow={position:"absolute",visibility:"hidden",display:"block"},$hiddenParents,oldProps=[],columnResizeDragging=!1;function init(){if(($container=container instanceof $?container:$(container)).length<1)throw new Error("SlickGrid requires a valid container, "+container+" does not exist in the DOM.");cacheCssForHiddenInit(),maxSupportedCssHeight=maxSupportedCssHeight||getMaxSupportedCssHeight(),options=$.extend({},defaults,options),validateAndEnforceOptions(),columnDefaults.width=options.defaultColumnWidth,columnsById={};for(var e=0;e<columns.length;e++){var o=columns[e]=$.extend({},columnDefaults,columns[e]);columnsById[o.id]=e,o.minWidth&&o.width<o.minWidth&&(o.width=o.minWidth),o.maxWidth&&o.width>o.maxWidth&&(o.width=o.maxWidth)}if(options.enableColumnReorder&&!$.fn.sortable)throw new Error("SlickGrid’s ‘enableColumnReorder = true’ option requires jquery-ui.sortable module to be loaded");editController={commitCurrentEdit,cancelCurrentEdit},$container.empty().css("overflow","hidden").css("outline",0).addClass(uid).addClass("ui-widget"),/relative|absolute|fixed/.test($container.css("position"))||$container.css("position","relative"),$focusSink=$("<div tabIndex=’0’ hideFocus style=’position:fixed;width:0;height:0;top:0;left:0;outline:0;’></div>").appendTo($container),options.createPreHeaderPanel&&($preHeaderPanelScroller=$("<div class=’slick-preheader-panel ui-state-default’ style=’overflow:hidden;position:relative;’ />").appendTo($container),$preHeaderPanel=$("<div />").appendTo($preHeaderPanelScroller),$preHeaderPanelSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").appendTo($preHeaderPanelScroller),options.showPreHeaderPanel||$preHeaderPanelScroller.hide()),$headerScroller=$("<div class=’slick-header ui-state-default’ />").appendTo($container),$headers=$("<div class=’slick-header-columns’ style=’left:-1000px’ />").appendTo($headerScroller),$headerRowScroller=$("<div class=’slick-headerrow ui-state-default’ />").appendTo($container),$headerRow=$("<div class=’slick-headerrow-columns’ />").appendTo($headerRowScroller),$headerRowSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").appendTo($headerRowScroller),$topPanelScroller=$("<div class=’slick-top-panel-scroller ui-state-default’ />").appendTo($container),$topPanel=$("<div class=’slick-top-panel’ style=’width:10000px’ />").appendTo($topPanelScroller),options.showTopPanel||$topPanelScroller.hide(),options.showHeaderRow||$headerRowScroller.hide(),($viewport=$("<div class=’slick-viewport’ style=’width:100%;overflow:auto;outline:0;position:relative;;’>").appendTo($container)).css("overflow-y",options.alwaysShowVerticalScroll?"scroll":options.autoHeight?"hidden":"auto"),$viewport.css("overflow-x",options.forceFitColumns?"hidden":"auto"),options.viewportClass&&$viewport.toggleClass(options.viewportClass,!0),$canvas=$("<div class=’grid-canvas’ />").appendTo($viewport),scrollbarDimensions=scrollbarDimensions||measureScrollbar(),$preHeaderPanelSpacer&&$preHeaderPanelSpacer.css("width",getCanvasWidth()+scrollbarDimensions.width+"px"),$headers.width(getHeadersWidth()),$headerRowSpacer.css("width",getCanvasWidth()+scrollbarDimensions.width+"px"),options.createFooterRow&&($footerRowScroller=$("<div class=’slick-footerrow ui-state-default’ />").appendTo($container),$footerRow=$("<div class=’slick-footerrow-columns’ />").appendTo($footerRowScroller),$footerRowSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").css("width",getCanvasWidth()+scrollbarDimensions.width+"px").appendTo($footerRowScroller),options.showFooterRow||$footerRowScroller.hide()),$focusSink2=$focusSink.clone().appendTo($container),options.explicitInitialization||finishInitialization()}function finishInitialization(){initialized||(initialized=!0,viewportW=parseFloat($.css($container[0],"width",!0)),measureCellPaddingAndBorder(),disableSelection($headers),options.enableTextSelectionOnCells||$viewport.on("selectstart.ui",(function(e){return $(e.target).is("input,textarea")})),updateColumnCaches(),createColumnHeaders(),setupColumnSort(),createCssRules(),resizeCanvas(),bindAncestorScrollEvents(),$container.on("resize.slickgrid",resizeCanvas),$viewport.on("scroll",handleScroll),$headerScroller.on("contextmenu",handleHeaderContextMenu).on("click",handleHeaderClick).on("mouseenter",".slick-header-column",handleHeaderMouseEnter).on("mouseleave",".slick-header-column",handleHeaderMouseLeave),$headerRowScroller.on("scroll",handleHeaderRowScroll),options.createFooterRow&&$footerRowScroller.on("scroll",handleFooterRowScroll),options.createPreHeaderPanel&&$preHeaderPanelScroller.on("scroll",handlePreHeaderPanelScroll),$focusSink.add($focusSink2).on("keydown",handleKeyDown),$canvas.on("keydown",handleKeyDown).on("click",handleClick).on("dblclick",handleDblClick).on("contextmenu",handleContextMenu).on("draginit",handleDragInit).on("dragstart",{distance:3},handleDragStart).on("drag",handleDrag).on("dragend",handleDragEnd).on("mouseenter",".slick-cell",handleMouseEnter).on("mouseleave",".slick-cell",handleMouseLeave),navigator.userAgent.toLowerCase().match(/webkit/)&&navigator.userAgent.toLowerCase().match(/macintosh/)&&$canvas.on("mousewheel",handleMouseWheel),restoreCssFromHiddenInit())}function cacheCssForHiddenInit(){($hiddenParents=$container.parents().addBack().not(":visible")).each((function(){var e={};for(var o in cssShow)e[o]=this.style[o],this.style[o]=cssShow[o];oldProps.push(e)}))}function restoreCssFromHiddenInit(){$hiddenParents.each((function(e){var o=oldProps[e];for(var t in cssShow)this.style[t]=o[t]}))}function registerPlugin(e){plugins.unshift(e),e.init(self)}function unregisterPlugin(e){for(var o=plugins.length;o>=0;o–)if(plugins[o]===e){plugins[o].destroy&&plugins[o].destroy(),plugins.splice(o,1);break}}function setSelectionModel(e){selectionModel&&(selectionModel.onSelectedRangesChanged.unsubscribe(handleSelectedRangesChanged),selectionModel.destroy&&selectionModel.destroy()),(selectionModel=e)&&(selectionModel.init(self),selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged))}function getSelectionModel(){return selectionModel}function getCanvasNode(){return $canvas[0]}function measureScrollbar(){var e=$(‘<div class="’+$viewport.className+’" style="position:absolute; top:-10000px; left:-10000px; overflow:auto; width:100px; height:100px;"></div>’).appendTo($viewport),o=$(‘<div style="width:200px; height:200px; overflow:auto;"></div>’).appendTo(e),t={width:e[0].offsetWidth-e[0].clientWidth,height:e[0].offsetHeight-e[0].clientHeight};return o.remove(),e.remove(),t}function getColumnTotalWidth(e){for(var o=0,t=0,l=columns.length;t<l;t++){o+=columns[t].width}return e&&(o+=scrollbarDimensions.width),o}function getHeadersWidth(){var e=getColumnTotalWidth(!options.autoHeight);return Math.max(e,viewportW)+1e3}function getCanvasWidth(){for(var e=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,o=0,t=columns.length;t–;)o+=columns[t].width;return options.fullWidthRows?Math.max(o,e):o}function updateCanvasWidth(e){var o=canvasWidth;(canvasWidth=getCanvasWidth())!=o&&($canvas.width(canvasWidth),$headerRow.width(canvasWidth),options.createFooterRow&&$footerRow.width(canvasWidth),options.createPreHeaderPanel&&$preHeaderPanel.width(canvasWidth),$headers.width(getHeadersWidth()),viewportHasHScroll=canvasWidth>viewportW-scrollbarDimensions.width);var t=canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0);$headerRowSpacer.width(t),options.createFooterRow&&$footerRowSpacer.width(t),options.createPreHeaderPanel&&$preHeaderPanelSpacer.width(t),(canvasWidth!=o||e)&&applyColumnWidths()}function disableSelection(e){e&&e.jquery&&e.attr("unselectable","on").css("MozUserSelect","none").on("selectstart.ui",(function(){return!1}))}function getMaxSupportedCssHeight(){for(var e=1e6,o=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,t=$("<div style=’display:none’ />").appendTo(document.body);;){var l=2*e;if(t.css("height",l),l>o||t.height()!==l)break;e=l}return t.remove(),e}function getUID(){return uid}function getHeaderColumnWidthDiff(){return headerColumnWidthDiff}function getScrollbarDimensions(){return scrollbarDimensions}function bindAncestorScrollEvents(){for(var e=$canvas[0];(e=e.parentNode)!=document.body&&null!=e;)if(e==$viewport[0]||e.scrollWidth!=e.clientWidth||e.scrollHeight!=e.clientHeight){var o=$(e);$boundAncestors=$boundAncestors?$boundAncestors.add(o):o,o.on("scroll."+uid,handleActiveCellPositionChange)}}function unbindAncestorScrollEvents(){$boundAncestors&&($boundAncestors.off("scroll."+uid),$boundAncestors=null)}function updateColumnHeader(e,o,t){if(initialized){var l=getColumnIndex(e);if(null!=l){var n=columns[l],r=$headers.children().eq(l);r&&(void 0!==o&&(columns[l].name=o),void 0!==t&&(columns[l].toolTip=t),trigger(self.onBeforeHeaderCellDestroy,{node:r[0],column:n,grid:self}),r.attr("title",t||"").children().eq(0).html(o),trigger(self.onHeaderCellRendered,{node:r[0],column:n,grid:self}))}}}function getHeader(){return $headers[0]}function getHeaderColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$headers.children().eq(o);return t&&t[0]}function getHeaderRow(){return $headerRow[0]}function getFooterRow(){return $footerRow[0]}function getPreHeaderPanel(){return $preHeaderPanel[0]}function getHeaderRowColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$headerRow.children().eq(o);return t&&t[0]}function getFooterRowColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$footerRow.children().eq(o);return t&&t[0]}function createColumnHeaders(){function e(){$(this).addClass("ui-state-hover")}function o(){$(this).removeClass("ui-state-hover")}$headers.find(".slick-header-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeHeaderCellDestroy,{node:this,column:e,grid:self})})),$headers.empty(),$headers.width(getHeadersWidth()),$headerRow.find(".slick-headerrow-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeHeaderRowCellDestroy,{node:this,column:e,grid:self})})),$headerRow.empty(),options.createFooterRow&&($footerRow.find(".slick-footerrow-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeFooterRowCellDestroy,{node:this,column:e})})),$footerRow.empty());for(var t=0;t<columns.length;t++){var l=columns[t],n=$("<div class=’ui-state-default slick-header-column’ />").html("<span class=’slick-column-name’>"+l.name+"</span>").width(l.width-headerColumnWidthDiff).attr("id",""+uid+l.id).attr("title",l.toolTip||"").data("column",l).addClass(l.headerCssClass||"").appendTo($headers);if((options.enableColumnReorder||l.sortable)&&n.on("mouseenter",e).on("mouseleave",o),l.sortable&&(n.addClass("slick-header-sortable"),n.append("<span class=’slick-sort-indicator"+(options.numberedMultiColumnSort&&!options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":"")+"’ />"),options.numberedMultiColumnSort&&options.sortColNumberInSeparateSpan&&n.append("<span class=’slick-sort-indicator-numbered’ />")),trigger(self.onHeaderCellRendered,{node:n[0],column:l,grid:self}),options.showHeaderRow){var r=$("<div class=’ui-state-default slick-headerrow-column l"+t+" r"+t+"’></div>").data("column",l).appendTo($headerRow);trigger(self.onHeaderRowCellRendered,{node:r[0],column:l,grid:self})}if(options.createFooterRow&&options.showFooterRow){var i=$("<div class=’ui-state-default slick-footerrow-column l"+t+" r"+t+"’></div>").data("column",l).appendTo($footerRow);trigger(self.onFooterRowCellRendered,{node:i[0],column:l})}}setSortColumns(sortColumns),setupColumnResize(),options.enableColumnReorder&&("function"==typeof options.enableColumnReorder?options.enableColumnReorder(self,$headers,headerColumnWidthDiff,setColumns,setupColumnResize,columns,getColumnIndex,uid,trigger):setupColumnReorder())}function setupColumnSort(){$headers.click((function(e){if(!columnResizeDragging&&(e.metaKey=e.metaKey||e.ctrlKey,!$(e.target).hasClass("slick-resizable-handle"))){var o=$(e.target).closest(".slick-header-column");if(o.length){var t=o.data("column");if(t.sortable){if(!getEditorLock().commitCurrentEdit())return;for(var l=null,n=0;n<sortColumns.length;n++)if(sortColumns[n].columnId==t.id){(l=sortColumns[n]).sortAsc=!l.sortAsc;break}var r=!!l;options.tristateMultiColumnSort?(l||(l={columnId:t.id,sortAsc:t.defaultSortAsc}),r&&l.sortAsc&&(sortColumns.splice(n,1),l=null),options.multiColumnSort||(sortColumns=[]),!l||r&&options.multiColumnSort||sortColumns.push(l)):e.metaKey&&options.multiColumnSort?l&&sortColumns.splice(n,1):((e.shiftKey||e.metaKey)&&options.multiColumnSort||(sortColumns=[]),l?0==sortColumns.length&&sortColumns.push(l):(l={columnId:t.id,sortAsc:t.defaultSortAsc},sortColumns.push(l))),setSortColumns(sortColumns),options.multiColumnSort?trigger(self.onSort,{multiColumnSort:!0,sortCols:$.map(sortColumns,(function(e){return{sortCol:columns[getColumnIndex(e.columnId)],sortAsc:e.sortAsc}}))},e):trigger(self.onSort,{multiColumnSort:!1,sortCol:sortColumns.length>0?t:null,sortAsc:!(sortColumns.length>0)||sortColumns[0].sortAsc},e)}}}}))}function setupColumnReorder(){$headers.filter(":ui-sortable").sortable("destroy"),$headers.sortable({containment:"parent",distance:3,axis:"x",cursor:"default",tolerance:"intersection",helper:"clone",placeholder:"slick-sortable-placeholder ui-state-default slick-header-column",start:function(e,o){o.placeholder.width(o.helper.outerWidth()-headerColumnWidthDiff),$(o.helper).addClass("slick-header-column-active")},beforeStop:function(e,o){$(o.helper).removeClass("slick-header-column-active")},stop:function(e){if(getEditorLock().commitCurrentEdit()){for(var o=$headers.sortable("toArray"),t=[],l=0;l<o.length;l++)t.push(columns[getColumnIndex(o[l].replace(uid,""))]);setColumns(t),trigger(self.onColumnsReordered,{}),e.stopPropagation(),setupColumnResize()}else $(this).sortable("cancel")}})}function setupColumnResize(){var e,o,t,l,n,r,i,s;(l=$headers.children()).find(".slick-resizable-handle").remove(),l.each((function(e,o){e>=columns.length||columns[e].resizable&&(void 0===i&&(i=e),s=e)})),void 0!==i&&l.each((function(a,c){a>=columns.length||a<i||options.forceFitColumns&&a>=s||($(c),$("<div class=’slick-resizable-handle’ />").appendTo(c).on("dragstart",(function(i,s){if(!getEditorLock().commitCurrentEdit())return!1;t=i.pageX,$(this).parent().addClass("slick-header-column-active");var c=null,d=null;if(l.each((function(e,o){e>=columns.length||(columns[e].previousWidth=$(o).outerWidth())})),options.forceFitColumns)for(c=0,d=0,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(null!==d&&(o.maxWidth?d+=o.maxWidth-o.previousWidth:d=null),c+=o.previousWidth-Math.max(o.minWidth||0,absoluteColumnMinWidth));var u=0,h=0;for(e=0;e<=a;e++)(o=columns[e]).resizable&&(null!==h&&(o.maxWidth?h+=o.maxWidth-o.previousWidth:h=null),u+=o.previousWidth-Math.max(o.minWidth||0,absoluteColumnMinWidth));null===c&&(c=1e5),null===u&&(u=1e5),null===d&&(d=1e5),null===h&&(h=1e5),r=t+Math.min(c,h),n=t-Math.min(u,d)})).on("drag",(function(l,i){columnResizeDragging=!0;var s,c,d=Math.min(r,Math.max(n,l.pageX))-t;if(d<0){for(c=d,e=a;e>=0;e–)(o=columns[e]).resizable&&(s=Math.max(o.minWidth||0,absoluteColumnMinWidth),c&&o.previousWidth+c<s?(c+=o.previousWidth-s,o.width=s):(o.width=o.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-d,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(c&&o.maxWidth&&o.maxWidth-o.previousWidth<c?(c-=o.maxWidth-o.previousWidth,o.width=o.maxWidth):(o.width=o.previousWidth+c,c=0))}else{for(c=d,e=a;e>=0;e–)(o=columns[e]).resizable&&(c&&o.maxWidth&&o.maxWidth-o.previousWidth<c?(c-=o.maxWidth-o.previousWidth,o.width=o.maxWidth):(o.width=o.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-d,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(s=Math.max(o.minWidth||0,absoluteColumnMinWidth),c&&o.previousWidth+c<s?(c+=o.previousWidth-s,o.width=s):(o.width=o.previousWidth+c,c=0))}applyColumnHeaderWidths(),options.syncColumnCellResize&&applyColumnWidths()})).on("dragend",(function(t,n){var r;for($(this).parent().removeClass("slick-header-column-active"),e=0;e<columns.length;e++)o=columns[e],r=$(l[e]).outerWidth(),o.previousWidth!==r&&o.rerenderOnResize&&invalidateAllRows();updateCanvasWidth(!0),render(),trigger(self.onColumnsResized,{}),setTimeout((function(){columnResizeDragging=!1}),300)})))}))}function getVBoxDelta(e){var o=0;return $.each(["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],(function(t,l){o+=parseFloat(e.css(l))||0})),o}function measureCellPaddingAndBorder(){var e,o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=$.fn.jquery.split(".");jQueryNewWidthBehaviour=1==l[0]&&l[1]>=8||l[0]>=2,e=$("<div class=’ui-state-default slick-header-column’ style=’visibility:hidden’>-</div>").appendTo($headers),headerColumnWidthDiff=headerColumnHeightDiff=0,"border-box"!=e.css("box-sizing")&&"border-box"!=e.css("-moz-box-sizing")&&"border-box"!=e.css("-webkit-box-sizing")&&($.each(o,(function(o,t){headerColumnWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){headerColumnHeightDiff+=parseFloat(e.css(t))||0}))),e.remove();var n=$("<div class=’slick-row’ />").appendTo($canvas);e=$("<div class=’slick-cell’ id=’’ style=’visibility:hidden’>-</div>").appendTo(n),cellWidthDiff=cellHeightDiff=0,"border-box"!=e.css("box-sizing")&&"border-box"!=e.css("-moz-box-sizing")&&"border-box"!=e.css("-webkit-box-sizing")&&($.each(o,(function(o,t){cellWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){cellHeightDiff+=parseFloat(e.css(t))||0}))),n.remove(),absoluteColumnMinWidth=Math.max(headerColumnWidthDiff,cellWidthDiff)}function createCssRules(){$style=$("<style type=’text/css’ rel=’stylesheet’ />").appendTo($("head"));for(var e=options.rowHeight-cellHeightDiff,o=["."+uid+" .slick-header-column { left: 1000px; }","."+uid+" .slick-top-panel { height:"+options.topPanelHeight+"px; }","."+uid+" .slick-preheader-panel { height:"+options.preHeaderPanelHeight+"px; }","."+uid+" .slick-headerrow-columns { height:"+options.headerRowHeight+"px; }","."+uid+" .slick-footerrow-columns { height:"+options.footerRowHeight+"px; }","."+uid+" .slick-cell { height:"+e+"px; }","."+uid+" .slick-row { height:"+options.rowHeight+"px; }"],t=0;t<columns.length;t++)o.push("."+uid+" .l"+t+" { }"),o.push("."+uid+" .r"+t+" { }");$style[0].styleSheet?$style[0].styleSheet.cssText=o.join(" "):$style[0].appendChild(document.createTextNode(o.join(" ")))}function getColumnCssRules(e){var o;if(!stylesheet){var t=document.styleSheets;for(o=0;o<t.length;o++)if((t[o].ownerNode||t[o].owningElement)==$style[0]){stylesheet=t[o];break}if(!stylesheet)throw new Error("Cannot find stylesheet.");columnCssRulesL=[],columnCssRulesR=[];var l,n,r=stylesheet.cssRules||stylesheet.rules;for(o=0;o<r.length;o++){var i=r[o].selectorText;(l=/\.l\d+/.exec(i))?(n=parseInt(l[0].substr(2,l[0].length-2),10),columnCssRulesL[n]=r[o]):(l=/\.r\d+/.exec(i))&&(n=parseInt(l[0].substr(2,l[0].length-2),10),columnCssRulesR[n]=r[o])}}return{left:columnCssRulesL[e],right:columnCssRulesR[e]}}function removeCssRules(){$style.remove(),stylesheet=null}function destroy(){getEditorLock().cancelCurrentEdit(),trigger(self.onBeforeDestroy,{});for(var e=plugins.length;e–;)unregisterPlugin(plugins[e]);options.enableColumnReorder&&$headers.filter(":ui-sortable").sortable("destroy"),unbindAncestorScrollEvents(),$container.off(".slickgrid"),removeCssRules(),$canvas.off("draginit dragstart dragend drag"),$container.empty().removeClass(uid)}function trigger(e,o,t){return t=t||new Slick.EventData,(o=o||{}).grid=self,e.notify(o,t,self)}function getEditorLock(){return options.editorLock}function getEditController(){return editController}function getColumnIndex(e){return columnsById[e]}function autosizeColumns(){var e,o,t,l=[],n=0,r=0,i=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;for(e=0;e<columns.length;e++)o=columns[e],l.push(o.width),r+=o.width,o.resizable&&(n+=o.width-Math.max(o.minWidth,absoluteColumnMinWidth));for(t=r;r>i&&n;){var s=(r-i)/n;for(e=0;e<columns.length&&r>i;e++){o=columns[e];var a=l[e];if(!(!o.resizable||a<=o.minWidth||a<=absoluteColumnMinWidth)){var c=Math.max(o.minWidth,absoluteColumnMinWidth),d=Math.floor(s*(a-c))||1;r-=d=Math.min(d,a-c),n-=d,l[e]-=d}}if(t<=r)break;t=r}for(t=r;r<i;){var u=i/r;for(e=0;e<columns.length&&r<i;e++){o=columns[e];var h,p=l[e];r+=h=!o.resizable||o.maxWidth<=p?0:Math.min(Math.floor(u*p)-p,o.maxWidth-p||1e6)||1,l[e]+=r<=i?h:0}if(t>=r)break;t=r}var g=!1;for(e=0;e<columns.length;e++)columns[e].rerenderOnResize&&columns[e].width!=l[e]&&(g=!0),columns[e].width=l[e];applyColumnHeaderWidths(),updateCanvasWidth(!0),trigger(self.onAutosizeColumns,{columns}),g&&(invalidateAllRows(),render())}function applyColumnHeaderWidths(){if(initialized){for(var e,o=0,t=$headers.children(),l=columns.length;o<l;o++)e=$(t[o]),jQueryNewWidthBehaviour?e.outerWidth()!==columns[o].width&&e.outerWidth(columns[o].width):e.width()!==columns[o].width-headerColumnWidthDiff&&e.width(columns[o].width-headerColumnWidthDiff);updateColumnCaches()}}function applyColumnWidths(){for(var e,o,t=0,l=0;l<columns.length;l++)e=columns[l].width,(o=getColumnCssRules(l)).left.style.left=t+"px",o.right.style.right=canvasWidth-t-e+"px",t+=columns[l].width}function setSortColumn(e,o){setSortColumns([{columnId:e,sortAsc:o}])}function setSortColumns(e){sortColumns=e;var o=options.numberedMultiColumnSort&&sortColumns.length>1,t=$headers.children();t.removeClass("slick-header-column-sorted").find(".slick-sort-indicator").removeClass("slick-sort-indicator-asc slick-sort-indicator-desc"),t.find(".slick-sort-indicator-numbered").text(""),$.each(sortColumns,(function(e,l){null==l.sortAsc&&(l.sortAsc=!0);var n=getColumnIndex(l.columnId);null!=n&&(t.eq(n).addClass("slick-header-column-sorted").find(".slick-sort-indicator").addClass(l.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),o&&t.eq(n).find(".slick-sort-indicator-numbered").text(e+1))}))}function getSortColumns(){return sortColumns}function handleSelectedRangesChanged(e,o){selectedRows=[];for(var t={},l=0;l<o.length;l++)for(var n=o[l].fromRow;n<=o[l].toRow;n++){t[n]||(selectedRows.push(n),t[n]={});for(var r=o[l].fromCell;r<=o[l].toCell;r++)canCellBeSelected(n,r)&&(t[n][columns[r].id]=options.selectedCellCssClass)}setCellCssStyles(options.selectedCellCssClass,t),trigger(self.onSelectedRowsChanged,{rows:getSelectedRows()},e)}function getColumns(){return columns}function updateColumnCaches(){columnPosLeft=[],columnPosRight=[];for(var e=0,o=0,t=columns.length;o<t;o++)columnPosLeft[o]=e,columnPosRight[o]=e+columns[o].width,e+=columns[o].width}function setColumns(e){columns=e,columnsById={};for(var o=0;o<columns.length;o++){var t=columns[o]=$.extend({},columnDefaults,columns[o]);columnsById[t.id]=o,t.minWidth&&t.width<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&t.width>t.maxWidth&&(t.width=t.maxWidth)}updateColumnCaches(),initialized&&(invalidateAllRows(),createColumnHeaders(),removeCssRules(),createCssRules(),resizeCanvas(),applyColumnWidths(),handleScroll())}function getOptions(){return options}function setOptions(e,o){getEditorLock().commitCurrentEdit()&&(makeActiveCellNormal(),options.enableAddRow!==e.enableAddRow&&invalidateRow(getDataLength()),options=$.extend(options,e),validateAndEnforceOptions(),$viewport.css("overflow-y",options.autoHeight?"hidden":"auto"),o||render())}function validateAndEnforceOptions(){options.autoHeight&&(options.leaveSpaceForNewRows=!1)}function setData(e,o){data=e,invalidateAllRows(),updateRowCount(),o&&scrollTo(0)}function getData(){return data}function getDataLength(){return data.getLength?data.getLength():data.length}function getDataLengthIncludingAddNew(){return getDataLength()+(options.enableAddRow&&(!pagingActive||pagingIsLastPage)?1:0)}function getDataItem(e){return data.getItem?data.getItem(e):data[e]}function getTopPanel(){return $topPanel[0]}function setTopPanelVisibility(e){options.showTopPanel!=e&&(options.showTopPanel=e,e?$topPanelScroller.slideDown("fast",resizeCanvas):$topPanelScroller.slideUp("fast",resizeCanvas))}function setHeaderRowVisibility(e){options.showHeaderRow!=e&&(options.showHeaderRow=e,e?$headerRowScroller.slideDown("fast",resizeCanvas):$headerRowScroller.slideUp("fast",resizeCanvas))}function setFooterRowVisibility(e){options.showFooterRow!=e&&(options.showFooterRow=e,e?$footerRowScroller.slideDown("fast",resizeCanvas):$footerRowScroller.slideUp("fast",resizeCanvas))}function setPreHeaderPanelVisibility(e){options.showPreHeaderPanel!=e&&(options.showPreHeaderPanel=e,e?$preHeaderPanelScroller.slideDown("fast",resizeCanvas):$preHeaderPanelScroller.slideUp("fast",resizeCanvas))}function getContainerNode(){return $container.get(0)}function getRowTop(e){return options.rowHeight*e-offset}function getRowFromPosition(e){return Math.floor((e+offset)/options.rowHeight)}function scrollTo(e){e=Math.max(e,0),e=Math.min(e,th-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0));var o=offset;page=Math.min(n-1,Math.floor(e/ph));var t=e-(offset=Math.round(page*cj));offset!=o&&(cleanupRows(getVisibleRange(t)),updateRowPositions());prevScrollTop!=t&&(vScrollDir=prevScrollTop+o<t+offset?1:-1,$viewport[0].scrollTop=lastRenderedScrollTop=scrollTop=prevScrollTop=t,trigger(self.onViewportChanged,{}))}function defaultFormatter(e,o,t,l,n,r){return null==t?"":(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function getFormatter(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e),l=t&&t.columns&&(t.columns[o.id]||t.columns[getColumnIndex(o.id)]);return l&&l.formatter||t&&t.formatter||o.formatter||options.formatterFactory&&options.formatterFactory.getFormatter(o)||options.defaultFormatter}function getEditor(e,o){var t=columns[o],l=data.getItemMetadata&&data.getItemMetadata(e),n=l&&l.columns;return n&&n[t.id]&&void 0!==n[t.id].editor?n[t.id].editor:n&&n[o]&&void 0!==n[o].editor?n[o].editor:t.editor||options.editorFactory&&options.editorFactory.getEditor(t)}function getDataItemValueForColumn(e,o){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(e,o):e[o.field]}function appendRowHtml(e,o,t,l){var n=getDataItem(o),r="slick-row"+(o<l&&!n?" loading":"")+(o===activeRow&&options.showCellSelection?" active":"")+(o%2==1?" odd":" even");n||(r+=" "+options.addNewRowCssClass);var i,s,a=data.getItemMetadata&&data.getItemMetadata(o);a&&a.cssClasses&&(r+=" "+a.cssClasses),e.push("<div class=’ui-widget-content "+r+"’ style=’top:"+getRowTop(o)+"px’>");for(var c=0,d=columns.length;c<d;c++){if(s=columns[c],i=1,a&&a.columns){var u=a.columns[s.id]||a.columns[c];""===(i=u&&u.colspan||1)&&(i=d-c)}if(columnPosRight[Math.min(d-1,c+i-1)]>t.leftPx){if(columnPosLeft[c]>t.rightPx)break;appendCellHtml(e,o,c,i,n)}i>1&&(c+=i-1)}e.push("</div>")}function appendCellHtml(e,o,t,l,n){var r=columns[t],i="slick-cell l"+t+" r"+Math.min(columns.length-1,t+l-1)+(r.cssClass?" "+r.cssClass:"");for(var s in o===activeRow&&t===activeCell&&options.showCellSelection&&(i+=" active"),cellCssClasses)cellCssClasses[s][o]&&cellCssClasses[s][o][r.id]&&(i+=" "+cellCssClasses[s][o][r.id]);var a=null,c="";n&&(a=getDataItemValueForColumn(n,r),null==(c=getFormatter(o,r)(o,t,a,r,n,self))&&(c=""));var d=trigger(self.onBeforeAppendCell,{row:o,cell:t,value:a,dataContext:n})||"";d+=c&&c.addClasses?(d?" ":"")+c.addClasses:"",e.push("<div class=’"+i+(d?" "+d:"")+"’>"),n&&e.push("[object Object]"!==Object.prototype.toString.call(c)?c:c.text),e.push("</div>"),rowsCache[o].cellRenderQueue.push(t),rowsCache[o].cellColSpans[t]=l}function cleanupRows(e){for(var o in rowsCache)(o=parseInt(o,10))!==activeRow&&(o<e.top||o>e.bottom)&&removeRowFromCache(o);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function invalidate(){updateRowCount(),invalidateAllRows(),render()}function invalidateAllRows(){for(var e in currentEditor&&makeActiveCellNormal(),rowsCache)removeRowFromCache(e);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function queuePostProcessedRowForCleanup(e,o,t){for(var l in postProcessgroupId++,o)o.hasOwnProperty(l)&&postProcessedCleanupQueue.push({actionType:"C",groupId:postProcessgroupId,node:e.cellNodesByColumnIdx[0|l],columnIdx:0|l,rowIdx:t});postProcessedCleanupQueue.push({actionType:"R",groupId:postProcessgroupId,node:e.rowNode}),$(e.rowNode).detach()}function queuePostProcessedCellForCleanup(e,o,t){postProcessedCleanupQueue.push({actionType:"C",groupId:postProcessgroupId,node:e,columnIdx:o,rowIdx:t}),$(e).detach()}function removeRowFromCache(e){var o=rowsCache[e];o&&(o.rowNode&&(rowNodeFromLastMouseWheelEvent===o.rowNode?(o.rowNode.style.display="none",zombieRowNodeFromLastMouseWheelEvent=rowNodeFromLastMouseWheelEvent,zombieRowCacheFromLastMouseWheelEvent=o,zombieRowPostProcessedFromLastMouseWheelEvent=postProcessedRows[e]):options.enableAsyncPostRenderCleanup&&postProcessedRows[e]?queuePostProcessedRowForCleanup(o,postProcessedRows[e],e):$canvas[0].removeChild(o.rowNode)),delete rowsCache[e],delete postProcessedRows[e],renderedRows–,counter_rows_removed++)}function invalidateRows(e){var o,t;if(e&&e.length){for(vScrollDir=0,t=e.length,o=0;o<t;o++)currentEditor&&activeRow===e[o]&&makeActiveCellNormal(),rowsCache[e[o]]&&removeRowFromCache(e[o]);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}}function invalidateRow(e){(e||0===e)&&invalidateRows([e])}function applyFormatResultToCellNode(e,o,t){null==e&&(e=""),"[object Object]"===Object.prototype.toString.call(e)?(o.innerHTML=e.text,e.removeClasses&&!t&&$(o).removeClass(e.removeClasses),e.addClasses&&$(o).addClass(e.addClasses)):o.innerHTML=e}function updateCell(e,o){var t=getCellNode(e,o);if(t){var l=columns[o],n=getDataItem(e);if(currentEditor&&activeRow===e&&activeCell===o)currentEditor.loadValue(n);else applyFormatResultToCellNode(n?getFormatter(e,l)(e,o,getDataItemValueForColumn(n,l),l,n,self):"",t),invalidatePostProcessingResults(e)}}function updateRow(e){var o=rowsCache[e];if(o){ensureCellNodesInRowsCache(e);var t=getDataItem(e);for(var l in o.cellNodesByColumnIdx)if(o.cellNodesByColumnIdx.hasOwnProperty(l)){var n=columns[l|=0],r=o.cellNodesByColumnIdx[l];e===activeRow&&l===activeCell&¤tEditor?currentEditor.loadValue(t):t?applyFormatResultToCellNode(getFormatter(e,n)(e,l,getDataItemValueForColumn(t,n),n,t,self),r):r.innerHTML=""}invalidatePostProcessingResults(e)}}function getViewportHeight(){return parseFloat($.css($container[0],"height",!0))-parseFloat($.css($container[0],"paddingTop",!0))-parseFloat($.css($container[0],"paddingBottom",!0))-parseFloat($.css($headerScroller[0],"height"))-getVBoxDelta($headerScroller)-(options.showTopPanel?options.topPanelHeight+getVBoxDelta($topPanelScroller):0)-(options.showHeaderRow?options.headerRowHeight+getVBoxDelta($headerRowScroller):0)-(options.createFooterRow&&options.showFooterRow?options.footerRowHeight+getVBoxDelta($footerRowScroller):0)-(options.createPreHeaderPanel&&options.showPreHeaderPanel?options.preHeaderPanelHeight+getVBoxDelta($preHeaderPanelScroller):0)}function resizeCanvas(){initialized&&(viewportH=options.autoHeight?options.rowHeight*getDataLengthIncludingAddNew():getViewportHeight(),numVisibleRows=Math.ceil(viewportH/options.rowHeight),viewportW=parseFloat($.css($container[0],"width",!0)),options.autoHeight||$viewport.height(viewportH),scrollbarDimensions&&scrollbarDimensions.width||(scrollbarDimensions=measureScrollbar()),options.forceFitColumns&&autosizeColumns(),updateRowCount(),handleScroll(),lastRenderedScrollLeft=-1,render())}function updatePagingStatusFromView(e){pagingActive=0!==e.pageSize,pagingIsLastPage=e.pageNum==e.totalPages-1}function updateRowCount(){if(initialized){var e=getDataLength(),o=getDataLengthIncludingAddNew()+(options.leaveSpaceForNewRows?numVisibleRows-1:0),t=viewportHasVScroll;viewportHasVScroll=options.alwaysShowVerticalScroll||!options.autoHeight&&o*options.rowHeight>viewportH,viewportHasHScroll=canvasWidth>viewportW-scrollbarDimensions.width,makeActiveCellNormal();var l=e-1;for(var r in rowsCache)r>l&&removeRowFromCache(r);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup(),activeCellNode&&activeRow>l&&resetActiveCell();var i=h;(th=Math.max(options.rowHeight*o,viewportH-scrollbarDimensions.height))<maxSupportedCssHeight?(h=ph=th,n=1,cj=0):(ph=(h=maxSupportedCssHeight)/100,n=Math.floor(th/ph),cj=(th-h)/(n-1)),h!==i&&($canvas.css("height",h),scrollTop=$viewport[0].scrollTop);var s=scrollTop+offset<=th-viewportH;0==th||0==scrollTop?page=offset=0:scrollTo(s?scrollTop+offset:th-viewportH),h!=i&&options.autoHeight&&resizeCanvas(),options.forceFitColumns&&t!=viewportHasVScroll&&autosizeColumns(),updateCanvasWidth(!1)}}function getVisibleRange(e,o){return null==e&&(e=scrollTop),null==o&&(o=scrollLeft),{top:getRowFromPosition(e),bottom:getRowFromPosition(e+viewportH)+1,leftPx:o,rightPx:o+viewportW}}function getRenderedRange(e,o){var t=getVisibleRange(e,o),l=Math.round(viewportH/options.rowHeight),n=options.minRowBuffer;return-1==vScrollDir?(t.top-=l,t.bottom+=n):1==vScrollDir?(t.top-=n,t.bottom+=l):(t.top-=n,t.bottom+=n),t.top=Math.max(0,t.top),t.bottom=Math.min(getDataLengthIncludingAddNew()-1,t.bottom),t.leftPx-=viewportW,t.rightPx+=viewportW,t.leftPx=Math.max(0,t.leftPx),t.rightPx=Math.min(canvasWidth,t.rightPx),t}function ensureCellNodesInRowsCache(e){var o=rowsCache[e];if(o&&o.cellRenderQueue.length)for(var t=o.rowNode.lastChild;o.cellRenderQueue.length;){var l=o.cellRenderQueue.pop();o.cellNodesByColumnIdx[l]=t,t=t.previousSibling}}function cleanUpCells(e,o){var t,l,n=rowsCache[o],r=[];for(var i in n.cellNodesByColumnIdx)if(n.cellNodesByColumnIdx.hasOwnProperty(i)){i|=0;var s=n.cellColSpans[i];(columnPosLeft[i]>e.rightPx||columnPosRight[Math.min(columns.length-1,i+s-1)]<e.leftPx)&&(o==activeRow&&i==activeCell||r.push(i))}for(postProcessgroupId++;null!=(t=r.pop());)l=n.cellNodesByColumnIdx[t],options.enableAsyncPostRenderCleanup&&postProcessedRows[o]&&postProcessedRows[o][t]?queuePostProcessedCellForCleanup(l,t,o):n.rowNode.removeChild(l),delete n.cellColSpans[t],delete n.cellNodesByColumnIdx[t],postProcessedRows[o]&&delete postProcessedRows[o][t]}function cleanUpAndRenderCells(e){for(var o,t,l,n=[],r=[],i=e.top,s=e.bottom;i<=s;i++)if(o=rowsCache[i]){ensureCellNodesInRowsCache(i),cleanUpCells(e,i),t=0;var a=data.getItemMetadata&&data.getItemMetadata(i);a=a&&a.columns;for(var c=getDataItem(i),d=0,u=columns.length;d<u&&!(columnPosLeft[d]>e.rightPx);d++)if(null==(l=o.cellColSpans[d])){if(l=1,a){var h=a[columns[d].id]||a[d];""===(l=h&&h.colspan||1)&&(l=u-d)}columnPosRight[Math.min(u-1,d+l-1)]>e.leftPx&&(appendCellHtml(n,i,d,l,c),t++),d+=l>1?l-1:0}else d+=l>1?l-1:0;t&&(t,r.push(i))}if(n.length){var p,g,m=document.createElement("div");for(m.innerHTML=n.join("");null!=(p=r.pop());){var v;for(o=rowsCache[p];null!=(v=o.cellRenderQueue.pop());)g=m.lastChild,o.rowNode.appendChild(g),o.cellNodesByColumnIdx[v]=g}}}function renderRows(e){for(var o=$canvas[0],t=[],l=[],n=!1,r=getDataLength(),i=e.top,s=e.bottom;i<=s;i++)rowsCache[i]||(renderedRows++,l.push(i),rowsCache[i]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},appendRowHtml(t,i,e,r),activeCellNode&&activeRow===i&&(n=!0),counter_rows_rendered++);if(l.length){var a=document.createElement("div");a.innerHTML=t.join("");for(i=0,s=l.length;i<s;i++)rowsCache[l[i]].rowNode=o.appendChild(a.firstChild);n&&(activeCellNode=getCellNode(activeRow,activeCell))}}function startPostProcessing(){options.enableAsyncPostRender&&(clearTimeout(h_postrender),h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}function startPostProcessingCleanup(){options.enableAsyncPostRenderCleanup&&(clearTimeout(h_postrenderCleanup),h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay))}function invalidatePostProcessingResults(e){for(var o in postProcessedRows[e])postProcessedRows[e].hasOwnProperty(o)&&(postProcessedRows[e][o]="C");postProcessFromRow=Math.min(postProcessFromRow,e),postProcessToRow=Math.max(postProcessToRow,e),startPostProcessing()}function updateRowPositions(){for(var e in rowsCache)rowsCache[e].rowNode.style.top=getRowTop(e)+"px"}function render(){if(initialized){scrollThrottle.dequeue();var e=getVisibleRange(),o=getRenderedRange();cleanupRows(o),lastRenderedScrollLeft!=scrollLeft&&cleanUpAndRenderCells(o),renderRows(o),postProcessFromRow=e.top,postProcessToRow=Math.min(getDataLengthIncludingAddNew()-1,e.bottom),startPostProcessing(),lastRenderedScrollTop=scrollTop,lastRenderedScrollLeft=scrollLeft,h_render=null,trigger(self.onRendered,{startRow:e.top,endRow:e.bottom,grid:self})}}function handleHeaderScroll(){handleElementScroll($headerScroller[0])}function handleHeaderRowScroll(){handleElementScroll($headerRowScroller[0])}function handleFooterRowScroll(){handleElementScroll($footerRowScroller[0])}function handlePreHeaderPanelScroll(){handleElementScroll($preHeaderPanelScroller[0])}function handleElementScroll(e){var o=e.scrollLeft;o!=$viewport[0].scrollLeft&&($viewport[0].scrollLeft=o)}function handleScroll(){scrollTop=$viewport[0].scrollTop,scrollLeft=$viewport[0].scrollLeft;var e=Math.abs(scrollTop-prevScrollTop),o=Math.abs(scrollLeft-prevScrollLeft);if(o&&(prevScrollLeft=scrollLeft,$headerScroller[0].scrollLeft=scrollLeft,$topPanelScroller[0].scrollLeft=scrollLeft,$headerRowScroller[0].scrollLeft=scrollLeft,options.createFooterRow&&($footerRowScroller[0].scrollLeft=scrollLeft),options.createPreHeaderPanel&&($preHeaderPanelScroller[0].scrollLeft=scrollLeft)),e)if(vScrollDir=prevScrollTop<scrollTop?1:-1,prevScrollTop=scrollTop,e<viewportH)scrollTo(scrollTop+offset);else{var t=offset;page=h==viewportH?0:Math.min(n-1,Math.floor(scrollTop*((th-viewportH)/(h-viewportH))*(1/ph))),t!=(offset=Math.round(page*cj))&&invalidateAllRows()}if(o||e){var l=Math.abs(lastRenderedScrollLeft-scrollLeft),r=Math.abs(lastRenderedScrollTop-scrollTop);(l>20||r>20)&&(options.forceSyncScrolling||r<viewportH&&l<viewportW?render():scrollThrottle.enqueue(),trigger(self.onViewportChanged,{}))}trigger(self.onScroll,{scrollLeft,scrollTop})}function ActionThrottle(e,o){var t=!1,l=!1;function n(){l=!1}function r(){t=!0,setTimeout(i,o),e()}function i(){l?(n(),r()):t=!1}return{enqueue:function(){t?l=!0:r()},dequeue:n}}function asyncPostProcessRows(){for(var e=getDataLength();postProcessFromRow<=postProcessToRow;){var o=vScrollDir>=0?postProcessFromRow++:postProcessToRow–,t=rowsCache[o];if(t&&!(o>=e)){for(var l in postProcessedRows[o]||(postProcessedRows[o]={}),ensureCellNodesInRowsCache(o),t.cellNodesByColumnIdx)if(t.cellNodesByColumnIdx.hasOwnProperty(l)){var n=columns[l|=0],r=postProcessedRows[o][l];if(n.asyncPostRender&&"R"!==r){var i=t.cellNodesByColumnIdx[l];i&&n.asyncPostRender(i,o,getDataItem(o),n,"C"===r),postProcessedRows[o][l]="R"}}return void(h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}}}function asyncPostProcessCleanupRows(){if(postProcessedCleanupQueue.length>0){for(var e=postProcessedCleanupQueue[0].groupId;postProcessedCleanupQueue.length>0&&postProcessedCleanupQueue[0].groupId==e;){var o=postProcessedCleanupQueue.shift();if("R"==o.actionType&&$(o.node).remove(),"C"==o.actionType){var t=columns[o.columnIdx];t.asyncPostRenderCleanup&&o.node&&t.asyncPostRenderCleanup(o.node,o.rowIdx,t)}}h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay)}}function updateCellCssStylesOnRenderedRows(e,o){var t,l,n,r;for(var i in rowsCache){if(r=o&&o[i],n=e&&e[i],r)for(l in r)n&&r[l]==n[l]||(t=getCellNode(i,getColumnIndex(l)))&&$(t).removeClass(r[l]);if(n)for(l in n)r&&r[l]==n[l]||(t=getCellNode(i,getColumnIndex(l)))&&$(t).addClass(n[l])}}function addCellCssStyles(e,o){if(cellCssClasses[e])throw new Error("addCellCssStyles: cell CSS hash with key ‘"+e+"’ already exists.");cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,null),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function removeCellCssStyles(e){cellCssClasses[e]&&(updateCellCssStylesOnRenderedRows(null,cellCssClasses[e]),delete cellCssClasses[e],trigger(self.onCellCssStylesChanged,{key:e,hash:null,grid:self}))}function setCellCssStyles(e,o){var t=cellCssClasses[e];cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,t),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function getCellCssStyles(e){return cellCssClasses[e]}function flashCell(e,o,t){if(t=t||100,rowsCache[e]){var l=$(getCellNode(e,o)),n=function(e){e&&setTimeout((function(){l.queue((function(){l.toggleClass(options.cellFlashingCssClass).dequeue(),n(e-1)}))}),t)};n(4)}}function handleMouseWheel(e){var o=$(e.target).closest(".slick-row")[0];o!=rowNodeFromLastMouseWheelEvent&&(zombieRowNodeFromLastMouseWheelEvent&&zombieRowNodeFromLastMouseWheelEvent!=o&&(options.enableAsyncPostRenderCleanup&&zombieRowPostProcessedFromLastMouseWheelEvent?queuePostProcessedRowForCleanup(zombieRowCacheFromLastMouseWheelEvent,zombieRowPostProcessedFromLastMouseWheelEvent):$canvas[0].removeChild(zombieRowNodeFromLastMouseWheelEvent),zombieRowNodeFromLastMouseWheelEvent=null,zombieRowCacheFromLastMouseWheelEvent=null,zombieRowPostProcessedFromLastMouseWheelEvent=null,options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()),rowNodeFromLastMouseWheelEvent=o)}function handleDragInit(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var l=trigger(self.onDragInit,o,e);return!!e.isImmediatePropagationStopped()&&l}function handleDragStart(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var l=trigger(self.onDragStart,o,e);return!!e.isImmediatePropagationStopped()&&l}function handleDrag(e,o){return trigger(self.onDrag,o,e)}function handleDragEnd(e,o){trigger(self.onDragEnd,o,e)}function handleKeyDown(e){trigger(self.onKeyDown,{row:activeRow,cell:activeCell},e);var o=e.isImmediatePropagationStopped(),t=Slick.keyCode;if(!o&&!e.shiftKey&&!e.altKey){if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;e.which==t.HOME?o=e.ctrlKey?navigateTop():navigateRowStart():e.which==t.END&&(o=e.ctrlKey?navigateBottom():navigateRowEnd())}if(!o)if(e.shiftKey||e.altKey||e.ctrlKey)e.which!=t.TAB||!e.shiftKey||e.ctrlKey||e.altKey||(o=navigatePrev());else{if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which==t.ESCAPE){if(!getEditorLock().isActive())return;cancelEditAndSetFocus()}else e.which==t.PAGE_DOWN?(navigatePageDown(),o=!0):e.which==t.PAGE_UP?(navigatePageUp(),o=!0):e.which==t.LEFT?o=navigateLeft():e.which==t.RIGHT?o=navigateRight():e.which==t.UP?o=navigateUp():e.which==t.DOWN?o=navigateDown():e.which==t.TAB?o=navigateNext():e.which==t.ENTER&&(options.editable&&(currentEditor?activeRow===getDataLength()?navigateDown():commitEditAndSetFocus():getEditorLock().commitCurrentEdit()&&makeActiveCellEditable(void 0,void 0,e)),o=!0)}if(o){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch(e){}}}function handleClick(e){currentEditor||(e.target!=document.activeElement||$(e.target).hasClass("slick-cell"))&&setFocus();var o=getCellFromEvent(e);if(o&&(null===currentEditor||activeRow!=o.row||activeCell!=o.cell)&&(trigger(self.onClick,{row:o.row,cell:o.cell},e),!e.isImmediatePropagationStopped()&&canCellBeActive(o.row,o.cell)&&(!getEditorLock().isActive()||getEditorLock().commitCurrentEdit()))){scrollRowIntoView(o.row,!1);var t=e.target&&e.target.className===Slick.preClickClassName,l=columns[o.cell],n=!!(options.editable&&l&&l.editor&&options.suppressActiveCellChangeOnEdit);setActiveCellInternal(getCellNode(o.row,o.cell),null,t,n,e)}}function handleContextMenu(e){var o=$(e.target).closest(".slick-cell",$canvas);0!==o.length&&(activeCellNode===o[0]&&null!==currentEditor||trigger(self.onContextMenu,{},e))}function handleDblClick(e){var o=getCellFromEvent(e);!o||null!==currentEditor&&activeRow==o.row&&activeCell==o.cell||(trigger(self.onDblClick,{row:o.row,cell:o.cell},e),e.isImmediatePropagationStopped()||options.editable&&gotoCell(o.row,o.cell,!0,e))}function handleHeaderMouseEnter(e){trigger(self.onHeaderMouseEnter,{column:$(this).data("column"),grid:self},e)}function handleHeaderMouseLeave(e){trigger(self.onHeaderMouseLeave,{column:$(this).data("column"),grid:self},e)}function handleHeaderContextMenu(e){var o=$(e.target).closest(".slick-header-column",".slick-header-columns"),t=o&&o.data("column");trigger(self.onHeaderContextMenu,{column:t},e)}function handleHeaderClick(e){if(!columnResizeDragging){var o=$(e.target).closest(".slick-header-column",".slick-header-columns"),t=o&&o.data("column");t&&trigger(self.onHeaderClick,{column:t},e)}}function handleMouseEnter(e){trigger(self.onMouseEnter,{},e)}function handleMouseLeave(e){trigger(self.onMouseLeave,{},e)}function cellExists(e,o){return!(e<0||e>=getDataLength()||o<0||o>=columns.length)}function getCellFromPoint(e,o){for(var t=getRowFromPosition(o),l=0,n=0,r=0;r<columns.length&&n<e;r++)n+=columns[r].width,l++;return l<0&&(l=0),{row:t,cell:l-1}}function getCellFromNode(e){var o=/l\d+/.exec(e.className);if(!o)throw new Error("getCellFromNode: cannot get cell - "+e.className);return parseInt(o[0].substr(1,o[0].length-1),10)}function getRowFromNode(e){for(var o in rowsCache)if(rowsCache[o].rowNode===e)return 0|o;return null}function getCellFromEvent(e){var o=$(e.target).closest(".slick-cell",$canvas);if(!o.length)return null;var t=getRowFromNode(o[0].parentNode),l=getCellFromNode(o[0]);return null==t||null==l?null:{row:t,cell:l}}function getCellNodeBox(e,o){if(!cellExists(e,o))return null;for(var t=getRowTop(e),l=t+options.rowHeight-1,n=0,r=0;r<o;r++)n+=columns[r].width;return{top:t,left:n,bottom:l,right:n+columns[o].width}}function resetActiveCell(){setActiveCellInternal(null,!1)}function setFocus(){-1==tabbingDirection?$focusSink[0].focus():$focusSink2[0].focus()}function scrollCellIntoView(e,o,t){scrollRowIntoView(e,t);var l=getColspan(e,o);internalScrollColumnIntoView(columnPosLeft[o],columnPosRight[o+(l>1?l-1:0)])}function internalScrollColumnIntoView(e,o){var t=scrollLeft+viewportW;e<scrollLeft?($viewport.scrollLeft(e),handleScroll(),render()):o>t&&($viewport.scrollLeft(Math.min(e,o-$viewport[0].clientWidth)),handleScroll(),render())}function scrollColumnIntoView(e){internalScrollColumnIntoView(columnPosLeft[e],columnPosRight[e])}function setActiveCellInternal(e,o,t,l,n){null!==activeCellNode&&(makeActiveCellNormal(),$(activeCellNode).removeClass("active"),rowsCache[activeRow]&&$(rowsCache[activeRow].rowNode).removeClass("active"));null!=(activeCellNode=e)?(activeRow=getRowFromNode(activeCellNode.parentNode),activeCell=activePosX=getCellFromNode(activeCellNode),null==o&&(o=activeRow==getDataLength()||options.autoEdit),options.showCellSelection&&($(activeCellNode).addClass("active"),$(rowsCache[activeRow].rowNode).addClass("active")),options.editable&&o&&isCellPotentiallyEditable(activeRow,activeCell)&&(clearTimeout(h_editorLoader),options.asyncEditorLoading?h_editorLoader=setTimeout((function(){makeActiveCellEditable(void 0,t,n)}),options.asyncEditorLoadDelay):makeActiveCellEditable(void 0,t,n))):activeRow=activeCell=null,l||trigger(self.onActiveCellChanged,getActiveCell())}function clearTextSelection(){if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}else if(window.getSelection){var e=window.getSelection();e&&e.removeAllRanges&&e.removeAllRanges()}}function isCellPotentiallyEditable(e,o){var t=getDataLength();return!(e<t&&!getDataItem(e))&&(!(columns[o].cannotTriggerInsert&&e>=t)&&!!getEditor(e,o))}function makeActiveCellNormal(){if(currentEditor){if(trigger(self.onBeforeCellEditorDestroy,{editor:currentEditor}),currentEditor.destroy(),currentEditor=null,activeCellNode){var e=getDataItem(activeRow);if($(activeCellNode).removeClass("editable invalid"),e){var o=columns[activeCell];applyFormatResultToCellNode(getFormatter(activeRow,o)(activeRow,activeCell,getDataItemValueForColumn(e,o),o,e,self),activeCellNode),invalidatePostProcessingResults(activeRow)}}navigator.userAgent.toLowerCase().match(/msie/)&&clearTextSelection(),getEditorLock().deactivate(editController)}}function makeActiveCellEditable(e,o,t){if(activeCellNode){if(!options.editable)throw new Error("Grid : makeActiveCellEditable : should never get called when options.editable is false");if(clearTimeout(h_editorLoader),isCellPotentiallyEditable(activeRow,activeCell)){var l=columns[activeCell],n=getDataItem(activeRow);if(!1!==trigger(self.onBeforeEditCell,{row:activeRow,cell:activeCell,item:n,column:l})){getEditorLock().activate(editController),$(activeCellNode).addClass("editable");var r=e||getEditor(activeRow,activeCell);e||r.suppressClearOnEdit||(activeCellNode.innerHTML=""),currentEditor=new r({grid:self,gridPosition:absBox($container[0]),position:absBox(activeCellNode),container:activeCellNode,column:l,item:n||{},event:t,commitChanges:commitEditAndSetFocus,cancelChanges:cancelEditAndSetFocus}),n&&(currentEditor.loadValue(n),o&¤tEditor.preClick&¤tEditor.preClick()),serializedEditorValue=currentEditor.serializeValue(),currentEditor.position&&handleActiveCellPositionChange()}else setFocus()}}}function commitEditAndSetFocus(){getEditorLock().commitCurrentEdit()&&(setFocus(),options.autoEdit&&navigateDown())}function cancelEditAndSetFocus(){getEditorLock().cancelCurrentEdit()&&setFocus()}function absBox(e){var o={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:$(e).outerWidth(),height:$(e).outerHeight(),visible:!0};o.bottom=o.top+o.height,o.right=o.left+o.width;for(var t=e.offsetParent;(e=e.parentNode)!=document.body&&null!=e;)o.visible&&e.scrollHeight!=e.offsetHeight&&"visible"!=$(e).css("overflowY")&&(o.visible=o.bottom>e.scrollTop&&o.top<e.scrollTop+e.clientHeight),o.visible&&e.scrollWidth!=e.offsetWidth&&"visible"!=$(e).css("overflowX")&&(o.visible=o.right>e.scrollLeft&&o.left<e.scrollLeft+e.clientWidth),o.left-=e.scrollLeft,o.top-=e.scrollTop,e===t&&(o.left+=e.offsetLeft,o.top+=e.offsetTop,t=e.offsetParent),o.bottom=o.top+o.height,o.right=o.left+o.width;return o}function getActiveCellPosition(){return absBox(activeCellNode)}function getGridPosition(){return absBox($container[0])}function handleActiveCellPositionChange(){if(activeCellNode&&(trigger(self.onActiveCellPositionChanged,{}),currentEditor)){var e=getActiveCellPosition();currentEditor.show&¤tEditor.hide&&(e.visible?currentEditor.show():currentEditor.hide()),currentEditor.position&¤tEditor.position(e)}}function getCellEditor(){return currentEditor}function getActiveCell(){return activeCellNode?{row:activeRow,cell:activeCell}:null}function getActiveCellNode(){return activeCellNode}function scrollRowIntoView(e,o){var t=e*options.rowHeight,l=(e+1)*options.rowHeight-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0);(e+1)*options.rowHeight>scrollTop+viewportH+offset?(scrollTo(o?t:l),render()):e*options.rowHeight<scrollTop+offset&&(scrollTo(o?l:t),render())}function scrollRowToTop(e){scrollTo(e*options.rowHeight),render()}function scrollPage(e){var o=e*numVisibleRows;if(scrollTo((getRowFromPosition(scrollTop)+o)*options.rowHeight),render(),options.enableCellNavigation&&null!=activeRow){var t=activeRow+o,l=getDataLengthIncludingAddNew();t>=l&&(t=l-1),t<0&&(t=0);for(var n=0,r=null,i=activePosX;n<=activePosX;)canCellBeActive(t,n)&&(r=n),n+=getColspan(t,n);null!==r?(setActiveCellInternal(getCellNode(t,r)),activePosX=i):resetActiveCell()}}function navigatePageDown(){scrollPage(1)}function navigatePageUp(){scrollPage(-1)}function navigateTop(){navigateToRow(0)}function navigateBottom(){navigateToRow(getDataLength()-1)}function navigateToRow(e){var o=getDataLength();if(!o)return!0;if(e<0?e=0:e>=o&&(e=o-1),scrollCellIntoView(e,0,!0),options.enableCellNavigation&&null!=activeRow){for(var t=0,l=null,n=activePosX;t<=activePosX;)canCellBeActive(e,t)&&(l=t),t+=getColspan(e,t);null!==l?(setActiveCellInternal(getCellNode(e,l)),activePosX=n):resetActiveCell()}return!0}function getColspan(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e);if(!t||!t.columns)return 1;var l=t.columns[columns[o].id]||t.columns[o],n=l&&l.colspan;return n=""===n?columns.length-o:n||1}function findFirstFocusableCell(e){for(var o=0;o<columns.length;){if(canCellBeActive(e,o))return o;o+=getColspan(e,o)}return null}function findLastFocusableCell(e){for(var o=0,t=null;o<columns.length;)canCellBeActive(e,o)&&(t=o),o+=getColspan(e,o);return t}function gotoRight(e,o,t){if(o>=columns.length)return null;do{o+=getColspan(e,o)}while(o<columns.length&&!canCellBeActive(e,o));return o<columns.length?{row:e,cell:o,posX:o}:null}function gotoLeft(e,o,t){if(o<=0)return null;var l=findFirstFocusableCell(e);if(null===l||l>=o)return null;for(var n,r={row:e,cell:l,posX:l};;){if(!(n=gotoRight(r.row,r.cell,r.posX)))return null;if(n.cell>=o)return r;r=n}}function gotoDown(e,o,t){for(var l,n=getDataLengthIncludingAddNew();;){if(++e>=n)return null;for(l=o=0;o<=t;)l=o,o+=getColspan(e,o);if(canCellBeActive(e,l))return{row:e,cell:l,posX:t}}}function gotoUp(e,o,t){for(var l;;){if(–e<0)return null;for(l=o=0;o<=t;)l=o,o+=getColspan(e,o);if(canCellBeActive(e,l))return{row:e,cell:l,posX:t}}}function gotoNext(e,o,t){if(null==e&&null==o&&canCellBeActive(e=o=t=0,o))return{row:e,cell:o,posX:o};var l=gotoRight(e,o,t);if(l)return l;var n=null,r=getDataLengthIncludingAddNew();for(e===r-1&&e–;++e<r;)if(null!==(n=findFirstFocusableCell(e)))return{row:e,cell:n,posX:n};return null}function gotoPrev(e,o,t){if(null==e&&null==o&&canCellBeActive(e=getDataLengthIncludingAddNew()-1,o=t=columns.length-1))return{row:e,cell:o,posX:o};for(var l,n;!l&&!(l=gotoLeft(e,o,t));){if(–e<0)return null;o=0,null!==(n=findLastFocusableCell(e))&&(l={row:e,cell:n,posX:n})}return l}function gotoRowStart(e,o,t){var l=findFirstFocusableCell(e);return null===l?null:{row:e,cell:l,posX:l}}function gotoRowEnd(e,o,t){var l=findLastFocusableCell(e);return null===l?null:{row:e,cell:l,posX:l}}function navigateRight(){return navigate("right")}function navigateLeft(){return navigate("left")}function navigateDown(){return navigate("down")}function navigateUp(){return navigate("up")}function navigateNext(){return navigate("next")}function navigatePrev(){return navigate("prev")}function navigateRowStart(){return navigate("home")}function navigateRowEnd(){return navigate("end")}function navigate(e){if(!options.enableCellNavigation)return!1;if(!activeCellNode&&"prev"!=e&&"next"!=e)return!1;if(!getEditorLock().commitCurrentEdit())return!0;setFocus();tabbingDirection={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1}[e];var o=(0,{up:gotoUp,down:gotoDown,left:gotoLeft,right:gotoRight,prev:gotoPrev,next:gotoNext,home:gotoRowStart,end:gotoRowEnd}[e])(activeRow,activeCell,activePosX);if(o){var t=o.row==getDataLength();return scrollCellIntoView(o.row,o.cell,!t&&options.emulatePagingWhenScrolling),setActiveCellInternal(getCellNode(o.row,o.cell)),activePosX=o.posX,!0}return setActiveCellInternal(getCellNode(activeRow,activeCell)),!1}function getCellNode(e,o){return rowsCache[e]?(ensureCellNodesInRowsCache(e),rowsCache[e].cellNodesByColumnIdx[o]):null}function setActiveCell(e,o,t,l,n){initialized&&(e>getDataLength()||e<0||o>=columns.length||o<0||options.enableCellNavigation&&(scrollCellIntoView(e,o,!1),setActiveCellInternal(getCellNode(e,o),t,l,n)))}function canCellBeActive(e,o){if(!options.enableCellNavigation||e>=getDataLengthIncludingAddNew()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.focusable)return!!t.focusable;var l=t&&t.columns;return l&&l[columns[o].id]&&void 0!==l[columns[o].id].focusable?!!l[columns[o].id].focusable:l&&l[o]&&void 0!==l[o].focusable?!!l[o].focusable:!!columns[o].focusable}function canCellBeSelected(e,o){if(e>=getDataLength()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.selectable)return!!t.selectable;var l=t&&t.columns&&(t.columns[columns[o].id]||t.columns[o]);return l&&void 0!==l.selectable?!!l.selectable:!!columns[o].selectable}function gotoCell(e,o,t,l){initialized&&(canCellBeActive(e,o)&&getEditorLock().commitCurrentEdit()&&(scrollCellIntoView(e,o,!1),setActiveCellInternal(getCellNode(e,o),t||e===getDataLength()||options.autoEdit,null,options.editable,l),currentEditor||setFocus()))}function commitCurrentEdit(){var e=getDataItem(activeRow),o=columns[activeCell];if(currentEditor){if(currentEditor.isValueChanged()){var t=currentEditor.validate();if(t.valid){if(activeRow<getDataLength()){var l={row:activeRow,cell:activeCell,editor:currentEditor,serializedValue:currentEditor.serializeValue(),prevSerializedValue:serializedEditorValue,execute:function(){this.editor.applyValue(e,this.serializedValue),updateRow(this.row),trigger(self.onCellChange,{row:this.row,cell:this.cell,item:e})},undo:function(){this.editor.applyValue(e,this.prevSerializedValue),updateRow(this.row),trigger(self.onCellChange,{row:this.row,cell:this.cell,item:e})}};options.editCommandHandler?(makeActiveCellNormal(),options.editCommandHandler(e,o,l)):(l.execute(),makeActiveCellNormal())}else{var n={};currentEditor.applyValue(n,currentEditor.serializeValue()),makeActiveCellNormal(),trigger(self.onAddNewRow,{item:n,column:o})}return!getEditorLock().isActive()}return $(activeCellNode).removeClass("invalid"),$(activeCellNode).width(),$(activeCellNode).addClass("invalid"),trigger(self.onValidationError,{editor:currentEditor,cellNode:activeCellNode,validationResults:t,row:activeRow,cell:activeCell,column:o}),currentEditor.focus(),!1}makeActiveCellNormal()}return!0}function cancelCurrentEdit(){return makeActiveCellNormal(),!0}function rowsToRanges(e){for(var o=[],t=columns.length-1,l=0;l<e.length;l++)o.push(new Slick.Range(e[l],0,e[l],t));return o}function getSelectedRows(){if(!selectionModel)throw new Error("Selection model is not set");return selectedRows}function setSelectedRows(e){if(!selectionModel)throw new Error("Selection model is not set");self&&self.getEditorLock&&!self.getEditorLock().isActive()&&selectionModel.setSelectedRanges(rowsToRanges(e))}this.debug=function(){var e="";e+="\ncounter_rows_rendered: "+counter_rows_rendered,e+="\ncounter_rows_removed: "+counter_rows_removed,e+="\nrenderedRows: "+renderedRows,e+="\nnumVisibleRows: "+numVisibleRows,e+="\nmaxSupportedCssHeight: "+maxSupportedCssHeight,e+="\nn(umber of pages): "+n,e+="\n(current) page: "+page,e+="\npage height (ph): "+ph,e+="\nvScrollDir: "+vScrollDir,alert(e)},this.eval=function(expr){return eval(expr)},$.extend(this,{slickGridVersion:"2.3.23",onScroll:new Slick.Event,onSort:new Slick.Event,onHeaderMouseEnter:new Slick.Event,onHeaderMouseLeave:new Slick.Event,onHeaderContextMenu:new Slick.Event,onHeaderClick:new Slick.Event,onHeaderCellRendered:new Slick.Event,onBeforeHeaderCellDestroy:new Slick.Event,onHeaderRowCellRendered:new Slick.Event,onFooterRowCellRendered:new Slick.Event,onBeforeHeaderRowCellDestroy:new Slick.Event,onBeforeFooterRowCellDestroy:new Slick.Event,onMouseEnter:new Slick.Event,onMouseLeave:new Slick.Event,onClick:new Slick.Event,onDblClick:new Slick.Event,onContextMenu:new Slick.Event,onKeyDown:new Slick.Event,onAddNewRow:new Slick.Event,onBeforeAppendCell:new Slick.Event,onValidationError:new Slick.Event,onViewportChanged:new Slick.Event,onColumnsReordered:new Slick.Event,onColumnsResized:new Slick.Event,onCellChange:new Slick.Event,onBeforeEditCell:new Slick.Event,onBeforeCellEditorDestroy:new Slick.Event,onBeforeDestroy:new Slick.Event,onActiveCellChanged:new Slick.Event,onActiveCellPositionChanged:new Slick.Event,onDragInit:new Slick.Event,onDragStart:new Slick.Event,onDrag:new Slick.Event,onDragEnd:new Slick.Event,onSelectedRowsChanged:new Slick.Event,onCellCssStylesChanged:new Slick.Event,onAutosizeColumns:new Slick.Event,onRendered:new Slick.Event,registerPlugin,unregisterPlugin,getColumns,setColumns,getColumnIndex,updateColumnHeader,setSortColumn,setSortColumns,getSortColumns,autosizeColumns,getOptions,setOptions,getData,getDataLength,getDataItem,setData,getSelectionModel,setSelectionModel,getSelectedRows,setSelectedRows,getContainerNode,updatePagingStatusFromView,render,invalidate,invalidateRow,invalidateRows,invalidateAllRows,updateCell,updateRow,getViewport:getVisibleRange,getRenderedRange,resizeCanvas,updateRowCount,scrollRowIntoView,scrollRowToTop,scrollCellIntoView,scrollColumnIntoView,getCanvasNode,getUID,getHeaderColumnWidthDiff,getScrollbarDimensions,getHeadersWidth,getCanvasWidth,focus:setFocus,scrollTo,getCellFromPoint,getCellFromEvent,getActiveCell,setActiveCell,getActiveCellNode,getActiveCellPosition,resetActiveCell,editActiveCell:makeActiveCellEditable,getCellEditor,getCellNode,getCellNodeBox,canCellBeSelected,canCellBeActive,navigatePrev,navigateNext,navigateUp,navigateDown,navigateLeft,navigateRight,navigatePageUp,navigatePageDown,navigateTop,navigateBottom,navigateRowStart,navigateRowEnd,gotoCell,getTopPanel,setTopPanelVisibility,getPreHeaderPanel,setPreHeaderPanelVisibility,getHeader,getHeaderColumn,setHeaderRowVisibility,getHeaderRow,getHeaderRowColumn,setFooterRowVisibility,getFooterRow,getFooterRowColumn,getGridPosition,flashCell,addCellCssStyles,setCellCssStyles,removeCellCssStyles,getCellCssStyles,init:finishInitialization,destroy,getEditorLock,getEditController}),init()}module.exports={Grid:SlickGrid}},n”, ” 433: function _(t,e,a){n”, ” /!n”, ” * jquery.event.drag - v 2.3.0n”, ” * Copyright (c) 2010 Three Dub Media - http://threedubmedia.comn”, ” * Open Source MIT License - http://threedubmedia.com/code/licensen”, ” */n”, ” var n=t(426);n.fn.drag=function(t,e,a){var r="string"==typeof t?t:"",o=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==r.indexOf("drag")&&(r="drag"+r),a=(t==o?e:a)||{},o?this.on(r,a,o):this.trigger(r)};var r=n.event,o=r.special,i=o.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(t){var e=n.data(this,i.datakey),a=t.data||{};e.related+=1,n.each(i.defaults,(function(t,n){void 0!==a[t]&&(e[t]=a[t])}))},remove:function(){n.data(this,i.datakey).related-=1},setup:function(){if(!n.data(this,i.datakey)){var t=n.extend({related:0},i.defaults);n.data(this,i.datakey,t),r.add(this,"touchstart mousedown",i.init,t),this.attachEvent&&this.attachEvent("ondragstart",i.dontstart)}},teardown:function(){(n.data(this,i.datakey)||{}).related||(n.removeData(this,i.datakey),r.remove(this,"touchstart mousedown",i.init),i.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",i.dontstart))},init:function(t){if(!i.touched){var e,a=t.data;if(!(0!=t.which&&a.which>0&&t.which!=a.which)&&!n(t.target).is(a.not)&&(!a.handle||n(t.target).closest(a.handle,t.currentTarget).length)&&(i.touched="touchstart"==t.type?this:null,a.propagates=1,a.mousedown=this,a.interactions=[i.interaction(this,a)],a.target=t.target,a.pageX=t.pageX,a.pageY=t.pageY,a.dragging=null,e=i.hijack(t,"draginit",a),a.propagates))return(e=i.flatten(e))&&e.length&&(a.interactions=[],n.each(e,(function(){a.interactions.push(i.interaction(this,a))}))),a.propagates=a.interactions.length,!1!==a.drop&&o.drop&&o.drop.handler(t,a),i.textselect(!1),i.touched?r.add(i.touched,"touchmove touchend",i.handler,a):r.add(document,"mousemove mouseup",i.handler,a),!(!i.touched||a.live)&&void 0}},interaction:function(t,e){var a=t&&t.ownerDocument&&n(t)[e.relative?"position":"offset"]()||{top:0,left:0};return{drag:t,callback:new i.callback,droppable:[],offset:a}},handler:function(t){var e=t.data;switch(t.type){case!e.dragging&&"touchmove":t.preventDefault();case!e.dragging&&"mousemove":if(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2)<Math.pow(e.distance,2))break;t.target=e.target,i.hijack(t,"dragstart",e),e.propagates&&(e.dragging=!0);case"touchmove":t.preventDefault();case"mousemove":if(e.dragging){if(i.hijack(t,"drag",e),e.propagates){!1!==e.drop&&o.drop&&o.drop.handler(t,e);break}t.type="mouseup"}case"touchend":case"mouseup":default:i.touched?r.remove(i.touched,"touchmove touchend",i.handler):r.remove(document,"mousemove mouseup",i.handler),e.dragging&&(!1!==e.drop&&o.drop&&o.drop.handler(t,e),i.hijack(t,"dragend",e)),i.textselect(!0),!1===e.click&&e.dragging&&n.data(e.mousedown,"suppress.click",(new Date).getTime()+5),e.dragging=i.touched=!1}},hijack:function(t,e,a,o,d){if(a){var s,c,l,p={event:t.originalEvent,type:t.type},u=e.indexOf("drop")?"drag":"drop",g=o||0,h=isNaN(o)?a.interactions.length:o;t.type=e;var f=function(){};t.originalEvent=new n.Event(p.event,{preventDefault:f,stopPropagation:f,stopImmediatePropagation:f}),a.results=[];do{if(c=a.interactions[g]){if("dragend"!==e&&c.cancelled)continue;l=i.properties(t,a,c),c.results=[],n(d||c[u]||a.droppable).each((function(o,d){if(l.target=d,t.isPropagationStopped=function(){return!1},!1===(s=d?r.dispatch.call(d,t,l):null)?("drag"==u&&(c.cancelled=!0,a.propagates-=1),"drop"==e&&(c[u][o]=null)):"dropinit"==e&&c.droppable.push(i.element(s)||d),"dragstart"==e&&(c.proxy=n(i.element(s)||c.drag)[0]),c.results.push(s),delete t.result,"dropinit"!==e)return s})),a.results[g]=i.flatten(c.results),"dropinit"==e&&(c.droppable=i.flatten(c.droppable)),"dragstart"!=e||c.cancelled||l.update()}}while(++g<h);return t.type=p.type,t.originalEvent=p.event,i.flatten(a.results)}},properties:function(t,e,a){var n=a.callback;return n.drag=a.drag,n.proxy=a.proxy||a.drag,n.startX=e.pageX,n.startY=e.pageY,n.deltaX=t.pageX-e.pageX,n.deltaY=t.pageY-e.pageY,n.originalX=a.offset.left,n.originalY=a.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=i.flatten((a.drop||[]).slice()),n.available=i.flatten((a.droppable||[]).slice()),n},element:function(t){if(t&&(t.jquery||1==t.nodeType))return t},flatten:function(t){return n.map(t,(function(t){return t&&t.jquery?n.makeArray(t):t&&t.length?i.flatten(t):t}))},textselect:function(t){n(document)[t?"off":"on"]("selectstart",i.dontstart).css("MozUserSelect",t?"":"none"),document.unselectable=t?"off":"on"},dontstart:function(){return!1},callback:function(){}};i.callback.prototype={update:function(){o.drop&&this.available.length&&n.each(this.available,(function(t){o.drop.locate(this,t)}))}};var d=r.dispatch;r.dispatch=function(t){if(!(n.data(this,"suppress."+t.type)-(new Date).getTime()>0))return d.apply(this,arguments);n.removeData(this,"suppress."+t.type)},o.draginit=o.dragstart=o.dragend=i},n”, ” 434: function _(t,e,a){n”, ” /!n”, ” * jquery.event.drop - v 2.3.0n”, ” * Copyright (c) 2010 Three Dub Media - http://threedubmedia.comn”, ” * Open Source MIT License - http://threedubmedia.com/code/licensen”, ” /n”, ” var n=t(426);n.fn.drop=function(t,e,a){var i="string"==typeof t?t:"",o=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==i.indexOf("drop")&&(i="drop"+i),a=(t==o?e:a)||{},o?this.on(i,a,o):this.trigger(i)},n.drop=function(t){t=t||{},o.multi=!0===t.multi?1/0:!1===t.multi?1:isNaN(t.multi)?o.multi:t.multi,o.delay=t.delay||o.delay,o.tolerance=n.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:o.tolerance,o.mode=t.mode||o.mode||"intersect"};var i=n.event.special,o=n.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(t){n.data(this,o.datakey).related+=1},remove:function(){n.data(this,o.datakey).related-=1},setup:function(){if(!n.data(this,o.datakey)){n.data(this,o.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),o.targets.push(this)}},teardown:function(){if(!(n.data(this,o.datakey)||{}).related){n.removeData(this,o.datakey);var t=this;o.targets=n.grep(o.targets,(function(e){return e!==t}))}},handler:function(t,e){var a;if(e)switch(t.type){case"mousedown":case"touchstart":a=n(o.targets),"string"==typeof e.drop&&(a=a.filter(e.drop)),a.each((function(){var t=n.data(this,o.datakey);t.active=[],t.anyactive=0,t.winner=0})),e.droppable=a,i.drag.hijack(t,"dropinit",e);break;case"mousemove":case"touchmove":o.event=t,o.timer||o.tolerate(e);break;case"mouseup":case"touchend":o.timer=clearTimeout(o.timer),e.propagates&&(i.drag.hijack(t,"drop",e),i.drag.hijack(t,"dropend",e))}},locate:function(t,e){var a=n.data(t,o.datakey),i=n(t),r=i.offset()||{},d=i.outerHeight(),l=i.outerWidth(),c={elem:t,width:l,height:d,top:r.top,left:r.left,right:r.left+l,bottom:r.top+d};return a&&(a.location=c,a.index=e,a.elem=t),c},contains:function(t,e){return(e[0]||e.left)>=t.left&&(e[0]||e.right)<=t.right&&(e[1]||e.top)>=t.top&&(e[1]||e.bottom)<=t.bottom},modes:{intersect:function(t,e,a){return this.contains(a,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,a){return Math.max(0,Math.min(a.bottom,e.bottom)-Math.max(a.top,e.top))*Math.max(0,Math.min(a.right,e.right)-Math.max(a.left,e.left))},fit:function(t,e,a){return this.contains(a,e)?1:0},middle:function(t,e,a){return this.contains(a,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(t){var e,a,r,d,l,c,s,u,p=0,h=t.interactions.length,m=[o.event.pageX,o.event.pageY],f=o.tolerance||o.modes[o.mode];do{if(u=t.interactions[p]){if(!u)return;u.drop=[],l=[],c=u.droppable.length,f&&(r=o.locate(u.proxy)),e=0;do{if(s=u.droppable[e]){if(!(a=(d=n.data(s,o.datakey)).location))continue;d.winner=f?f.call(o,o.event,r,a):o.contains(a,m)?1:0,l.push(d)}}while(++e<c);l.sort(o.sort),e=0;do{(d=l[e])&&(d.winner&&u.drop.length<o.multi?(d.active[p]||d.anyactive||(!1!==i.drag.hijack(o.event,"dropstart",t,p,d.elem)[0]?(d.active[p]=1,d.anyactive+=1):d.winner=0),d.winner&&u.drop.push(d.elem)):d.active[p]&&1==d.anyactive&&(i.drag.hijack(o.event,"dropend",t,p,d.elem),d.active[p]=0,d.anyactive-=1))}while(++e<c)}}while(++p<h);o.last&&m[0]==o.last.pageX&&m[1]==o.last.pageY?delete o.timer:o.timer=setTimeout((function(){o.tolerate(t)}),o.delay),o.last=o.event}};i.dropinit=i.dropstart=i.dropend=o},n”, ” 435: function _(t,e,n){var r=t(426),i=t(428);var o={Avg:function(t){this.field_=t,this.init=function(){this.count_=0,this.nonNullCount_=0,this.sum_=0},this.accumulate=function(t){var e=t[this.field_];this.count_++,null==e||""===e||isNaN(e)||(this.nonNullCount_++,this.sum_+=parseFloat(e))},this.storeResult=function(t){t.avg||(t.avg={}),0!=this.nonNullCount_&&(t.avg[this.field_]=this.sum_/this.nonNullCount_)}},Min:function(t){this.field_=t,this.init=function(){this.min_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(null==this.min_||e<this.min_)&&(this.min_=e)},this.storeResult=function(t){t.min||(t.min={}),t.min[this.field_]=this.min_}},Max:function(t){this.field_=t,this.init=function(){this.max_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(null==this.max_||e>this.max_)&&(this.max_=e)},this.storeResult=function(t){t.max||(t.max={}),t.max[this.field_]=this.max_}},Sum:function(t){this.field_=t,this.init=function(){this.sum_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(this.sum_+=parseFloat(e))},this.storeResult=function(t){t.sum||(t.sum={}),t.sum[this.field_]=this.sum_}}};e.exports={DataView:function(t){var e,n,o,a,l,s=this,u="id",g=[],c=[],f={},p=null,h=null,d=null,m=!1,v=!0,_={},w={},$=[],y=[],I={getter:null,formatter:null,comparer:function(t,e){return t.value===e.value?0:t.value>e.value?1:-1},predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1},C=[],R=[],x=[],b=0,M=0,F=0,A=new i.Event,S=new i.Event,N=new i.Event;function E(t){for(var e,n=t=t||0,r=g.length;n<r;n++){if(void 0===(e=g[n][u]))throw new Error("Each data element must implement a unique ‘id’ property");f[e]=n}}function T(){var t=b?Math.max(1,Math.ceil(F/b)):1;return{pageSize:b,pageNum:M,totalRows:F,totalPages:t,dataView:s}}function G(t,r){v=r,n=t,e=null,!1===r&&g.reverse(),g.sort(t),!1===r&&g.reverse(),f={},E(),Z()}function D(t,r){v=r,e=t,n=null;var i=Object.prototype.toString;Object.prototype.toString="function"==typeof t?t:function(){return this[t]},!1===r&&g.reverse(),g.sort(),Object.prototype.toString=i,!1===r&&g.reverse(),f={},E(),Z()}function P(e){t.groupItemMetadataProvider||(t.groupItemMetadataProvider=new i.Data.GroupItemMetadataProvider),R=[],x=[],C=(e=e||[])instanceof Array?e:[e];for(var n=0;n<C.length;n++){var o=C[n]=r.extend(!0,{},I,C[n]);o.getterIsAFn="function"==typeof o.getter,o.compiledAccumulators=[];for(var a=o.aggregators.length;a–;)o.compiledAccumulators[a]=W(o.aggregators[a]);x[n]={}}Z()}function j(){if(!p){p={};for(var t=0,e=c.length;t<e;t++)p[c[t][u]]=t}}function z(t){return g[f[t]]}function B(t,e){if(void 0===f[t]||t!==e[u])throw new Error("Invalid or non-matching id");g[f[t]]=e,d||(d={}),d[t]=!0,Z()}function V(t,e){g.splice(t,0,e),E(t),Z()}function O(t){var e=f[t];if(void 0===e)throw new Error("Invalid id");delete f[t],g.splice(e,1),E(e),Z()}function q(t){if(!n)throw new Error("sortedAddItem() requires a sort comparer, use sort()");V(function(t){var e=0,r=g.length;for(;e<r;){var i=e+r>>>1;-1===n(g[i],t)?e=i+1:r=i}return e}(t),t)}function K(t,e){if(null==t)for(var n=0;n<C.length;n++)x[n]={},C[n].collapsed=e;else x[t]={},C[t].collapsed=e;Z()}function U(t,e,n){x[t][e]=C[t].collapsed^n,Z()}function L(t){var e,n=t.group,r=C[n.level],i=n.level==C.length,o=r.aggregators.length;if(!i&&r.aggregateChildGroups)for(var a=n.groups.length;a–;)n.groups[a].totals.initialized||L(n.groups[a].totals);for(;o–;)(e=r.aggregators[o]).init(),!i&&r.aggregateChildGroups?r.compiledAccumulators[o].call(e,n.groups):r.compiledAccumulators[o].call(e,n.rows),e.storeResult(t);t.initialized=!0}function k(t){var e=C[t.level],n=new i.GroupTotals;n.group=t,t.totals=n,e.lazyTotalsCalculation||L(n)}function H(t){var e=t.toString().match(/^function[^(]\(([^)]*)\)\s*{([\s\S]*)}$/);return{params:e[1].split(","),body:e[2]}}function W(t){var e=H(t.accumulate),n=new Function("_items","for (var "+e.params[0]+", _i=0, _il=_items.length; _i<_il; _i++) {"+e.params[0]+" = _items[_i]; "+e.body+"}");return n.displayName=n.name="compiledAccumulatorLoop",n}function J(t,e){for(var n=[],r=0,i=0,o=t.length;i<o;i++)h(t[i],e)&&(n[r++]=t[i]);return n}function Q(t,e,n){for(var r,i=[],o=0,a=0,l=t.length;a<l;a++)r=t[a],n[a]?i[o++]=r:h(r,e)&&(i[o++]=r,n[a]=!0);return i}function X(e){if(h){var n=t.inlineFilters?a:J,r=t.inlineFilters?l:Q;_.isFilterNarrowing?$=n($,o):_.isFilterExpanding?$=r(e,o,y):_.isFilterUnchanged||($=n(e,o))}else $=b?e:e.concat();var i;return b?($.length<=M*b&&(M=0===$.length?0:Math.floor(($.length-1)/b)),i=$.slice(b*M,b*M+b)):i=$,{totalRows:$.length,rows:i}}function Y(t){p=null,_.isFilterNarrowing==w.isFilterNarrowing&&_.isFilterExpanding==w.isFilterExpanding||(y=[]);var e=X(t);F=e.totalRows;var n=e.rows;R=[],C.length&&(R=function t(e,n){for(var r,o,a,l=[],s={},u=n?n.level+1:0,g=C[u],c=0,f=g.predefinedValues.length;c<f;c++)(r=s[o=g.predefinedValues[c]])||((r=new i.Group).value=o,r.level=u,r.groupingKey=(n?n.groupingKey+":|:\":\"\")+o,l[l.length]=r,s[o]=r);for(c=0,f=e.length;c<f;c++)a=e[c],(r=s[o=g.getterIsAFn?g.getter(a):a[g.getter]])||((r=new i.Group).value=o,r.level=u,r.groupingKey=(n?n.groupingKey+\":|:":"")+o,l[l.length]=r,s[o]=r),r.rows[r.count++]=a;if(u<C.length-1)for(c=0;c<l.length;c++)(r=l[c]).groups=t(r.rows,r);return l.sort(C[u].comparer),l}(n)).length&&(!function t(e,n){for(var r,i=C[n=n||0],o=i.collapsed,a=x[n],l=e.length;l–;)(r=e[l]).collapsed&&!i.aggregateCollapsed||(r.groups&&t(r.groups,n+1),i.aggregators.length&&(i.aggregateEmpty||r.rows.length||r.groups&&r.groups.length)&&k(r),r.collapsed=o^a[r.groupingKey],r.title=i.formatter?i.formatter(r):r.value)}(R),n=function t(e,n){for(var r,i,o=C[n=n||0],a=[],l=0,s=0,u=e.length;s<u;s++){if(i=e[s],a[l++]=i,!i.collapsed)for(var g=0,c=(r=i.groups?t(i.groups,n+1):i.rows).length;g<c;g++)a[l++]=r[g];i.totals&&o.displayTotalsRow&&(!i.collapsed||o.aggregateCollapsed)&&(a[l++]=i.totals)}return a}(R));var r=function(t,e){var n,r,i,o=[],a=0,l=e.length;_&&_.ignoreDiffsBefore&&(a=Math.max(0,Math.min(e.length,_.ignoreDiffsBefore))),_&&_.ignoreDiffsAfter&&(l=Math.min(e.length,Math.max(0,_.ignoreDiffsAfter)));for(var s=a,g=t.length;s<l;s++)s>=g?o[o.length]=s:(n=e[s],r=t[s],(C.length&&(i=n.__nonDataRow||r.__nonDataRow)&&n.__group!==r.__group||n.__group&&!n.equals(r)||i&&(n.__groupTotals||r.__groupTotals)||n[u]!=r[u]||d&&d[n[u]])&&(o[o.length]=s));return o}(c,n);return c=n,r}function Z(){if(!m){var t=c.length,e=F,n=Y(g);b&&F<M*b&&(M=Math.max(0,Math.ceil(F/b)-1),n=Y(g)),d=null,w=_,_={},e!==F&&N.notify(T(),null,s),t!==c.length&&A.notify({previous:t,current:c.length,dataView:s},null,s),n.length>0&&S.notify({rows:n,dataView:s},null,s)}}t=r.extend(!0,{},{groupItemMetadataProvider:null,inlineFilters:!1},t),r.extend(this,{beginUpdate:function(){m=!0},endUpdate:function(){m=!1,Z()},setPagingOptions:function(t){null!=t.pageSize&&(b=t.pageSize,M=b?Math.min(M,Math.max(0,Math.ceil(F/b)-1)):0),null!=t.pageNum&&(M=Math.min(t.pageNum,Math.max(0,Math.ceil(F/b)-1))),N.notify(T(),null,s),Z()},getPagingInfo:T,getItems:function(){return g},setItems:function(t,e){void 0!==e&&(u=e),g=$=t,f={},E(),function(){for(var t,e=0,n=g.length;e<n;e++)if(void 0===(t=g[e][u])||f[t]!==e)throw new Error("Each data element must implement a unique ‘id’ property")}(),Z()},setFilter:function(e){h=e,t.inlineFilters&&(a=function(){var t=H(h),e="{ _retval[_idx++] = $item$; continue _coreloop; }$1",n=t.body.replace(/return false\s*([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return!1([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return true\s*([;}]|\}|$)/gi,e).replace(/return!0([;}]|\}|$)/gi,e).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),r=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");r=(r=(r=r.replace(/\$filter\$/gi,n)).replace(/\$item\$/gi,t.params[0])).replace(/\$args\$/gi,t.params[1]);var i=new Function("_items,_args",r);return i.displayName=i.name="compiledFilter",i}(),l=function(){var t=H(h),e="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",n=t.body.replace(/return false\s*([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return!1([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return true\s*([;}]|\}|$)/gi,e).replace(/return!0([;}]|\}|$)/gi,e).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),r=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");r=(r=(r=r.replace(/\$filter\$/gi,n)).replace(/\$item\$/gi,t.params[0])).replace(/\$args\$/gi,t.params[1]);var i=new Function("_items,_args,_cache",r);return i.displayName=i.name="compiledFilterWithCaching",i}()),Z()},getFilter:function(){return h},getFilteredItems:function(){return $},sort:G,fastSort:D,reSort:function(){n?G(n,v):e&&D(e,v)},setGrouping:P,getGrouping:function(){return C},groupBy:function(t,e,n){P(null!=t?{getter:t,formatter:e,comparer:n}:[])},setAggregators:function(t,e){if(!C.length)throw new Error("At least one grouping must be specified before calling setAggregators().");C[0].aggregators=t,C[0].aggregateCollapsed=e,P(C)},collapseAllGroups:function(t){K(t,!0)},expandAllGroups:function(t){K(t,!1)},collapseGroup:function(t){var e=Array.prototype.slice.call(arguments),n=e[0];1==e.length&&-1!=n.indexOf(":|:\")?U(n.split(\":|:").length-1,n,!0):U(e.length-1,e.join(":|:\"),!0)},expandGroup:function(t){var e=Array.prototype.slice.call(arguments),n=e[0];1==e.length&&-1!=n.indexOf(\":|:")?U(n.split(":|:\").length-1,n,!1):U(e.length-1,e.join(\":|:"),!1)},getGroups:function(){return R},getIdxById:function(t){return f[t]},getRowByItem:function(t){return j(),p[t[u]]},getRowById:function(t){return j(),p[t]},getItemById:z,getItemByIdx:function(t){return g[t]},mapItemsToRows:function(t){var e=[];j();for(var n=0,r=t.length;n<r;n++){var i=p[t[n][u]];null!=i&&(e[e.length]=i)}return e},mapRowsToIds:function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]<c.length&&(e[e.length]=c[t[n]][u]);return e},mapIdsToRows:function(t){var e=[];j();for(var n=0,r=t.length;n<r;n++){var i=p[t[n]];null!=i&&(e[e.length]=i)}return e},setRefreshHints:function(t){_=t},setFilterArgs:function(t){o=t},refresh:Z,updateItem:B,insertItem:V,addItem:function(t){g.push(t),E(g.length-1),Z()},deleteItem:O,sortedAddItem:q,sortedUpdateItem:function(t,e){if(void 0===f[t]||t!==e[u])throw new Error("Invalid or non-matching id "+f[t]);if(!n)throw new Error("sortedUpdateItem() requires a sort comparer, use sort()");var r=z(t);0!==n(r,e)?(O(t),q(e)):B(t,e)},syncGridSelection:function(t,e,n){var o,a=this,l=a.mapRowsToIds(t.getSelectedRows()),s=new i.Event;function u(e){l.join(",")!=e.join(",")&&(l=e,s.notify({grid:t,ids:l,dataView:a},new i.EventData,a))}function g(){if(l.length>0){o=!0;var n=a.mapIdsToRows(l);e||u(a.mapRowsToIds(n)),t.setSelectedRows(n),o=!1}}return t.onSelectedRowsChanged.subscribe((function(e,i){if(!o){var s=a.mapRowsToIds(t.getSelectedRows());if(n&&t.getOptions().multiSelect)u(r.grep(l,(function(t){return void 0===a.getRowById(t)})).concat(s));else u(s)}})),this.onRowsChanged.subscribe(g),this.onRowCountChanged.subscribe(g),s},syncGridCellCssStyles:function(t,e){var n,r;function i(t){for(var e in n={},t){var r=c[e][u];n[r]=t[e]}}function o(){if(n){r=!0,j();var i={};for(var o in n){var a=p[o];null!=a&&(i[a]=n[o])}t.setCellCssStyles(e,i),r=!1}}i(t.getCellCssStyles(e)),t.onCellCssStylesChanged.subscribe((function(n,a){r||e==a.key&&(a.hash?i(a.hash):(t.onCellCssStylesChanged.unsubscribe(styleChanged),s.onRowsChanged.unsubscribe(o),s.onRowCountChanged.unsubscribe(o)))})),this.onRowsChanged.subscribe(o),this.onRowCountChanged.subscribe(o)},getLength:function(){return c.length},getItem:function(t){var e=c[t];if(e&&e.__group&&e.totals&&!e.totals.initialized){var n=C[e.level];n.displayTotalsRow||(L(e.totals),e.title=n.formatter?n.formatter(e):e.value)}else e&&e.__groupTotals&&!e.initialized&&L(e);return e},getItemMetadata:function(e){var n=c[e];return void 0===n?null:n.__group?t.groupItemMetadataProvider.getGroupRowMetadata(n):n.__groupTotals?t.groupItemMetadataProvider.getTotalsRowMetadata(n):null},onRowCountChanged:A,onRowsChanged:S,onPagingInfoChanged:N})},Aggregators:o,Data:{Aggregators:o}}},n”, ” 436: function _(e,t,i){var n=e(426),o=e(428);function l(e){var t,i;function o(){var t=e.column.editorFixedDecimalPlaces;return void 0===t&&(t=l.DefaultDecimalPlaces),t||0===t?t:null}this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field];var l=o();null!==l&&(i||0===i)&&i.toFixed&&(i=i.toFixed(l)),t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){var e=parseFloat(t.val());l.AllowEmptyValue?e||0===e||(e=""):e=e||0;var i=o();return null!==i&&(e||0===e)&&e.toFixed&&(e=parseFloat(e.toFixed(i))),e},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(isNaN(t.val()))return{valid:!1,msg:"Please enter a valid number"};if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()}function a(e){var t=this.selectionStart,i=this.value.length;(e.keyCode===n.ui.keyCode.LEFT&&t>0||e.keyCode===n.ui.keyCode.RIGHT&&t<i-1)&&e.stopImmediatePropagation()}function s(e){e.keyCode!==n.ui.keyCode.LEFT&&e.keyCode!==n.ui.keyCode.RIGHT||e.stopImmediatePropagation()}l.DefaultDecimalPlaces=null,l.AllowEmptyValue=!1,t.exports={Editors:{Text:function(e){var t,i;this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.getValue=function(){return t.val()},this.setValue=function(e){t.val(e)},this.loadValue=function(n){i=n[e.column.field]||"",t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},Integer:function(e){var t,i;this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field],t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return parseInt(t.val(),10)||0},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(isNaN(t.val()))return{valid:!1,msg:"Please enter a valid integer"};if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},Float:l,Date:function(e){var t,i,o=!1;this.init=function(){(t=n("<INPUT type=text class=’editor-text’ />")).appendTo(e.container),t.focus().select(),t.datepicker({showOn:"button",buttonImageOnly:!0,beforeShow:function(){o=!0},onClose:function(){o=!1}}),t.width(t.width()-18)},this.destroy=function(){n.datepicker.dpDiv.stop(!0,!0),t.datepicker("hide"),t.datepicker("destroy"),t.remove()},this.show=function(){o&&n.datepicker.dpDiv.stop(!0,!0).show()},this.hide=function(){o&&n.datepicker.dpDiv.stop(!0,!0).hide()},this.position=function(e){o&&n.datepicker.dpDiv.css("top",e.top+30).css("left",e.left)},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field],t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},YesNoSelect:function(e){var t,i;this.init=function(){(t=n("<SELECT tabIndex=’0’ class=’editor-yesno’><OPTION value=’yes’>Yes</OPTION><OPTION value=’no’>No</OPTION></SELECT>")).appendTo(e.container),t.focus()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){t.val((i=n[e.column.field])?"yes":"no"),t.select()},this.serializeValue=function(){return"yes"==t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return t.val()!=i},this.validate=function(){return{valid:!0,msg:null}},this.init()},Checkbox:function(e){var t,i;this.init=function(){(t=n("<INPUT type=checkbox value=’true’ class=’editor-checkbox’ hideFocus>")).appendTo(e.container),t.focus()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){(i=!!n[e.column.field])?t.prop("checked",!0):t.prop("checked",!1)},this.preClick=function(){t.prop("checked",!t.prop("checked"))},this.serializeValue=function(){return t.prop("checked")},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return this.serializeValue()!==i},this.validate=function(){return{valid:!0,msg:null}},this.init()},PercentComplete:function(e){var t,i,o;this.init=function(){(t=n("<INPUT type=text class=’editor-percentcomplete’ />")).width(n(e.container).innerWidth()-25),t.appendTo(e.container),(i=n("<div class=’editor-percentcomplete-picker’ />").appendTo(e.container)).append("<div class=’editor-percentcomplete-helper’><div class=’editor-percentcomplete-wrapper’><div class=’editor-percentcomplete-slider’ /><div class=’editor-percentcomplete-buttons’ /></div></div>"),i.find(".editor-percentcomplete-buttons").append("<button val=0>Not started</button><br/><button val=50>In Progress</button><br/><button val=100>Complete</button>"),t.focus().select(),i.find(".editor-percentcomplete-slider").slider({orientation:"vertical",range:"min",value:o,slide:function(e,i){t.val(i.value)}}),i.find(".editor-percentcomplete-buttons button").on("click",(function(e){t.val(n(this).attr("val")),i.find(".editor-percentcomplete-slider").slider("value",n(this).attr("val"))}))},this.destroy=function(){t.remove(),i.remove()},this.focus=function(){t.focus()},this.loadValue=function(i){t.val(o=i[e.column.field]),t.select()},this.serializeValue=function(){return parseInt(t.val(),10)||0},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==o)&&(parseInt(t.val(),10)||0)!=o},this.validate=function(){return isNaN(parseInt(t.val(),10))?{valid:!1,msg:"Please enter a valid positive number"}:{valid:!0,msg:null}},this.init()},LongText:function(e){var t,i,l,a=this;this.init=function(){var o=n("body");e.grid.getOptions().editorCellNavOnLRKeys;i=n("<DIV style=’z-index:10000;position:absolute;background:white;padding:5px;border:3px solid gray; -moz-border-radius:10px; border-radius:10px;’/>").appendTo(o),t=n("<TEXTAREA hidefocus rows=5 style=’background:white;width:250px;height:80px;border:0;outline:0’>").appendTo(i),n("<DIV style=’text-align:right’><BUTTON>Save</BUTTON><BUTTON>Cancel</BUTTON></DIV>").appendTo(i),i.find("button:first").on("click",this.save),i.find("button:last").on("click",this.cancel),t.on("keydown",this.handleKeyDown),a.position(e.position),t.focus().select()},this.handleKeyDown=function(t){if(t.which==o.keyCode.ENTER&&t.ctrlKey)a.save();else if(t.which==o.keyCode.ESCAPE)t.preventDefault(),a.cancel();else if(t.which==o.keyCode.TAB&&t.shiftKey)t.preventDefault(),e.grid.navigatePrev();else if(t.which==o.keyCode.TAB)t.preventDefault(),e.grid.navigateNext();else if((t.which==n.ui.keyCode.LEFT||t.which==n.ui.keyCode.RIGHT)&&e.grid.getOptions().editorCellNavOnLRKeys){var i=this.selectionStart,l=this.value.length;t.keyCode===n.ui.keyCode.LEFT&&0===i&&e.grid.navigatePrev(),t.keyCode===n.ui.keyCode.RIGHT&&i>=l-1&&e.grid.navigateNext()}},this.save=function(){e.commitChanges()},this.cancel=function(){t.val(l),e.cancelChanges()},this.hide=function(){i.hide()},this.show=function(){i.show()},this.position=function(e){i.css("top",e.top-5).css("left",e.left-5)},this.destroy=function(){i.remove()},this.focus=function(){t.focus()},this.loadValue=function(i){t.val(l=i[e.column.field]),t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==l)&&t.val()!=l},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()}}}},n”, ” 437: function _(e,n,r){e(428);n.exports={Formatters:{PercentComplete:function(e,n,r,t,c){return null==r||""===r?"-":r<50?"<span style=’color:red;font-weight:bold;’>"+r+"%</span>":"<span style=’color:green’>"+r+"%</span>"},PercentCompleteBar:function(e,n,r,t,c){return null==r||""===r?"":"<span class=’percent-complete-bar’ style=’background:"+(r<30?"red":r<70?"silver":"green")+";width:"+r+"%’></span>"},YesNo:function(e,n,r,t,c){return r?"Yes":"No"},Checkmark:function(e,n,r,t,c){return r?"<img src=’../images/tick.png’>":""},Checkbox:function(e,n,r,t,c){return’<img class="slick-edit-preclick" src="../images/’+(r?"CheckboxY":"CheckboxN")+’.png">’}}}},n”, ” 438: function _(t,o,r){var e=t(426),n=t(428);o.exports={RemoteModel:function(){var t={length:0},o="",r=null,a=1,l=null,i=null,s=new n.Event,u=new n.Event;function f(){for(var o in t)delete t[o];t.length=0}function c(n,f){if(i){i.abort();for(var c=i.fromPage;c<=i.toPage;c++)t[50*c]=void 0}n<0&&(n=0),t.length>0&&(f=Math.min(f,t.length-1));for(var d=Math.floor(n/50),v=Math.floor(f/50);void 0!==t[50*d]&&d<v;)d++;for(;void 0!==t[50*v]&&d<v;)v–;if(d>v||d==v&&void 0!==t[50*d])u.notify({from:n,to:f});else{var m="http://octopart.com/api/v3/parts/search?apikey=68b25f31&include[]=short_description&show[]=uid&show[]=manufacturer&show[]=mpn&show[]=brand&show[]=octopart_url&show[]=short_description&q="+o+"&start="+50*d+"&limit="+(50*(v-d)+50);null!=r&&(m+="&sortby="+r+(a>0?"+asc":"+desc")),null!=l&&clearTimeout(l),l=setTimeout((function(){for(var o=d;o<=v;o++)t[50*o]=null;s.notify({from:n,to:f}),(i=e.jsonp({url:m,callbackParameter:"callback",cache:!0,success:h,error:function(){!function(t,o){alert("error loading pages "+t+" to "+o)}(d,v)}})).fromPage=d,i.toPage=v}),50)}}function h(o){var r=o.request.start,e=r+o.results.length;t.length=Math.min(parseInt(o.hits),1e3);for(var n=0;n<o.results.length;n++){var a=o.results[n].item;t[r+n]=a,t[r+n].index=r+n}i=null,u.notify({from:r,to:e})}return{data:t,clear:f,isDataLoaded:function(o,r){for(var e=o;e<=r;e++)if(null==t[e]||null==t[e])return!1;return!0},ensureData:c,reloadData:function(o,r){for(var e=o;e<=r;e++)delete t[e];c(o,r)},setSort:function(t,o){r=t,a=o,f()},setSearch:function(t){o=t,f()},onDataLoading:s,onDataLoaded:u}}}},n”, ” 439: function _(e,s,t){var a=e(426),o=e(428);s.exports={GroupItemMetadataProvider:function(e){var s,t={checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:function(s,t,a,o,l,c){if(!e.enableExpandCollapse)return l.title;var r=15*l.level+"px";return(e.checkboxSelect?’<span class="’+e.checkboxSelectCssClass+" "+(l.selectChecked?"checked":"unchecked")+’"></span>’:"")+"<span class=’"+e.toggleCssClass+" "+(l.collapsed?e.toggleCollapsedCssClass:e.toggleExpandedCssClass)+"’ style=’margin-left:"+r+"’></span><span class=’"+e.groupTitleCssClass+"’ level=’"+l.level+"’>"+l.title+"</span>"},totalsFormatter:function(e,s,t,a,o,l){return a.groupTotalsFormatter&&a.groupTotalsFormatter(o,a,l)||""}};function l(t,l){var c=a(t.target),r=this.getDataItem(l.row);if(r&&r instanceof o.Group&&c.hasClass(e.toggleCssClass)){var n=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:n.top,ignoreDiffsAfter:n.bottom+1}),r.collapsed?this.getData().expandGroup(r.groupingKey):this.getData().collapseGroup(r.groupingKey),t.stopImmediatePropagation(),t.preventDefault()}if(r&&r instanceof o.Group&&c.hasClass(e.checkboxSelectCssClass)){r.selectChecked=!r.selectChecked,c.removeClass(r.selectChecked?"unchecked":"checked"),c.addClass(r.selectChecked?"checked":"unchecked");var i=s.getData().mapItemsToRows(r.rows);(r.selectChecked?e.checkboxSelectPlugin.selectRows:e.checkboxSelectPlugin.deSelectRows)(i)}}function c(t,a){if(e.enableExpandCollapse&&t.which==o.keyCode.SPACE){var l=this.getActiveCell();if(l){var c=this.getDataItem(l.row);if(c&&c instanceof o.Group){var r=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:r.top,ignoreDiffsAfter:r.bottom+1}),c.collapsed?this.getData().expandGroup(c.groupingKey):this.getData().collapseGroup(c.groupingKey),t.stopImmediatePropagation(),t.preventDefault()}}}}return e=a.extend(!0,{},t,e),{init:function(e){(s=e).onClick.subscribe(l),s.onKeyDown.subscribe(c)},destroy:function(){s&&(s.onClick.unsubscribe(l),s.onKeyDown.unsubscribe(c))},getGroupRowMetadata:function(s){return{selectable:!1,focusable:e.groupFocusable,cssClasses:e.groupCssClass,columns:{0:{colspan:"",formatter:e.groupFormatter,editor:null}}}},getTotalsRowMetadata:function(s){return{selectable:!1,focusable:e.totalsFocusable,cssClasses:e.totalsCssClass,formatter:e.totalsFormatter,editor:null}}}}}},n”, ” 440: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),n=e(441),c=e(95),a=s.__importStar(e(19));class o extends n.Widget{constructor(e){super(e)}static init_TableWidget(){this.define({source:[a.Instance],view:[a.Instance,()=>new c.CDSView]})}initialize(){super.initialize(),null==this.view.source&&(this.view.source=this.source,this.view.compute_indices())}}t.TableWidget=o,o.__name__="TableWidget",o.init_TableWidget()},n”, ” 441: function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=i(1),n=i(247),r=o.__importStar(i(19));class _ extends n.HTMLBoxView{_width_policy(){return"horizontal"==this.model.orientation?super._width_policy():"fixed"}_height_policy(){return"horizontal"==this.model.orientation?"fixed":super._height_policy()}box_sizing(){const i=super.box_sizing();return"horizontal"==this.model.orientation?null==i.width&&(i.width=this.model.default_size):null==i.height&&(i.height=this.model.default_size),i}}t.WidgetView=_,_.__name__="WidgetView";class s extends n.HTMLBox{constructor(i){super(i)}static init_Widget(){this.define({orientation:[r.Orientation,"horizontal"],default_size:[r.Number,300]}),this.override({margin:[5,5,5,5]})}}t.Widget=s,s.__name__="Widget",s.init_Widget()},n”, ” 442: function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0});const l=n(1);n(67),n(443),l.__importStar(n(66)).styles.append(‘.bk-root .bk-data-table {\n box-sizing: content-box;\n font-size: 11px;\n}\n.bk-root .bk-data-table input[type="checkbox"] {\n margin-left: 4px;\n margin-right: 4px;\n}\n.bk-root .bk-cell-special-defaults {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n}\n.bk-root .bk-cell-select {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n}\n.bk-root .bk-cell-index {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n text-align: right;\n color: gray;\n}\n.bk-root .bk-header-index .slick-column-name {\n float: right;\n}\n.bk-root .slick-row.selected .bk-cell-index {\n background-color: transparent;\n}\n.bk-root .slick-cell {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .slick-cell.active {\n border-style: dashed;\n}\n.bk-root .slick-cell.editable {\n padding-left: 0;\n padding-right: 0;\n}\n.bk-root .bk-cell-editor input,\n.bk-root .bk-cell-editor select {\n width: 100%;\n height: 100%;\n border: 0;\n margin: 0;\n padding: 0;\n outline: 0;\n background: transparent;\n vertical-align: baseline;\n}\n.bk-root .bk-cell-editor input {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .bk-cell-editor-completion {\n font-size: 11px;\n}\n’),t.bk_data_table="bk-data-table",t.bk_cell_index="bk-cell-index",t.bk_header_index="bk-header-index",t.bk_cell_editor="bk-cell-editor",t.bk_cell_select="bk-cell-select"},n”, ” 443: function _(A,n,o){Object.defineProperty(o,"__esModule",{value:!0});const e=A(1);A(67),e.__importStar(A(66)).styles.append(‘.bk-root {\n /\nIMPORTANT:\nIn order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.\nNo built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS\nclasses should alter those!\n*/\n /\nIMPORTANT:\nIn order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.\nNo built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS\nclasses should alter those!\n/\n /* Menu button /\n / Menu /\n / Menu items /\n / Disabled /\n}\n.bk-root .slick-header.ui-state-default,\n.bk-root .slick-headerrow.ui-state-default,\n.bk-root .slick-footerrow.ui-state-default,\n.bk-root .slick-top-panel-scroller.ui-state-default {\n width: 100%;\n overflow: auto;\n position: relative;\n border-left: 0px !important;\n}\n.bk-root .slick-header.ui-state-default {\n overflow: inherit;\n}\n.bk-root .slick-header::-webkit-scrollbar,\n.bk-root .slick-headerrow::-webkit-scrollbar,\n.bk-root .slick-footerrow::-webkit-scrollbar {\n display: none;\n}\n.bk-root .slick-header-columns,\n.bk-root .slick-headerrow-columns,\n.bk-root .slick-footerrow-columns {\n position: relative;\n white-space: nowrap;\n cursor: default;\n overflow: hidden;\n}\n.bk-root .slick-header-column.ui-state-default {\n position: relative;\n display: inline-block;\n box-sizing: content-box !important;\n / this here only for Firefox! /\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n height: 16px;\n line-height: 16px;\n margin: 0;\n padding: 4px;\n border-right: 1px solid silver;\n border-left: 0px !important;\n border-top: 0px !important;\n border-bottom: 0px !important;\n float: left;\n}\n.bk-root .slick-headerrow-column.ui-state-default,\n.bk-root .slick-footerrow-column.ui-state-default {\n padding: 4px;\n}\n.bk-root .slick-header-column-sorted {\n font-style: italic;\n}\n.bk-root .slick-sort-indicator {\n display: inline-block;\n width: 8px;\n height: 5px;\n margin-left: 4px;\n margin-top: 6px;\n float: left;\n}\n.bk-root .slick-sort-indicator-numbered {\n display: inline-block;\n width: 8px;\n height: 5px;\n margin-left: 4px;\n margin-top: 0;\n line-height: 20px;\n float: left;\n font-family: Arial;\n font-style: normal;\n font-weight: bold;\n color: #6190CD;\n}\n.bk-root .slick-sort-indicator-desc {\n background: url(images/sort-desc.gif);\n}\n.bk-root .slick-sort-indicator-asc {\n background: url(images/sort-asc.gif);\n}\n.bk-root .slick-resizable-handle {\n position: absolute;\n font-size: 0.1px;\n display: block;\n cursor: col-resize;\n width: 9px;\n right: -5px;\n top: 0;\n height: 100%;\n z-index: 1;\n}\n.bk-root .slick-sortable-placeholder {\n background: silver;\n}\n.bk-root .grid-canvas {\n position: relative;\n outline: 0;\n}\n.bk-root .slick-row.ui-widget-content,\n.bk-root .slick-row.ui-state-active {\n position: absolute;\n border: 0px;\n width: 100%;\n}\n.bk-root .slick-cell,\n.bk-root .slick-headerrow-column,\n.bk-root .slick-footerrow-column {\n position: absolute;\n border: 1px solid transparent;\n border-right: 1px dotted silver;\n border-bottom-color: silver;\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n vertical-align: middle;\n z-index: 1;\n padding: 1px 2px 2px 1px;\n margin: 0;\n white-space: nowrap;\n cursor: default;\n}\n.bk-root .slick-cell,\n.bk-root .slick-headerrow-column {\n border-bottom-color: silver;\n}\n.bk-root .slick-footerrow-column {\n border-top-color: silver;\n}\n.bk-root .slick-group-toggle {\n display: inline-block;\n}\n.bk-root .slick-cell.highlighted {\n background: lightskyblue;\n background: rgba(0, 0, 255, 0.2);\n -webkit-transition: all 0.5s;\n -moz-transition: all 0.5s;\n -o-transition: all 0.5s;\n transition: all 0.5s;\n}\n.bk-root .slick-cell.flashing {\n border: 1px solid red !important;\n}\n.bk-root .slick-cell.editable {\n z-index: 11;\n overflow: visible;\n background: white;\n border-color: black;\n border-style: solid;\n}\n.bk-root .slick-cell:focus {\n outline: none;\n}\n.bk-root .slick-reorder-proxy {\n display: inline-block;\n background: blue;\n opacity: 0.15;\n cursor: move;\n}\n.bk-root .slick-reorder-guide {\n display: inline-block;\n height: 2px;\n background: blue;\n opacity: 0.7;\n}\n.bk-root .slick-selection {\n z-index: 10;\n position: absolute;\n border: 2px dashed black;\n}\n.bk-root .slick-header-columns {\n background: url(\’images/header-columns-bg.gif\’) repeat-x center bottom;\n border-bottom: 1px solid silver;\n}\n.bk-root .slick-header-column {\n background: url(\’images/header-columns-bg.gif\’) repeat-x center bottom;\n border-right: 1px solid silver;\n}\n.bk-root .slick-header-column:hover,\n.bk-root .slick-header-column-active {\n background: white url(\’images/header-columns-over-bg.gif\’) repeat-x center bottom;\n}\n.bk-root .slick-headerrow {\n background: #fafafa;\n}\n.bk-root .slick-headerrow-column {\n background: #fafafa;\n border-bottom: 0;\n height: 100%;\n}\n.bk-root .slick-row.ui-state-active {\n background: #F5F7D7;\n}\n.bk-root .slick-row {\n position: absolute;\n background: white;\n border: 0px;\n line-height: 20px;\n}\n.bk-root .slick-row.selected {\n z-index: 10;\n background: #DFE8F6;\n}\n.bk-root .slick-cell {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .slick-group {\n border-bottom: 2px solid silver;\n}\n.bk-root .slick-group-toggle {\n width: 9px;\n height: 9px;\n margin-right: 5px;\n}\n.bk-root .slick-group-toggle.expanded {\n background: url(images/collapse.gif) no-repeat center center;\n}\n.bk-root .slick-group-toggle.collapsed {\n background: url(images/expand.gif) no-repeat center center;\n}\n.bk-root .slick-group-totals {\n color: gray;\n background: white;\n}\n.bk-root .slick-group-select-checkbox {\n width: 13px;\n height: 13px;\n margin: 3px 10px 0 0;\n display: inline-block;\n}\n.bk-root .slick-group-select-checkbox.checked {\n background: url(images/GrpCheckboxY.png) no-repeat center center;\n}\n.bk-root .slick-group-select-checkbox.unchecked {\n background: url(images/GrpCheckboxN.png) no-repeat center center;\n}\n.bk-root .slick-cell.selected {\n background-color: beige;\n}\n.bk-root .slick-cell.active {\n border-color: gray;\n border-style: solid;\n}\n.bk-root .slick-sortable-placeholder {\n background: silver !important;\n}\n.bk-root .slick-row.odd {\n background: #fafafa;\n}\n.bk-root .slick-row.ui-state-active {\n background: #F5F7D7;\n}\n.bk-root .slick-row.loading {\n opacity: 0.5;\n}\n.bk-root .slick-cell.invalid {\n border-color: red;\n -moz-animation-duration: 0.2s;\n -webkit-animation-duration: 0.2s;\n -moz-animation-name: slickgrid-invalid-hilite;\n -webkit-animation-name: slickgrid-invalid-hilite;\n}\n@-moz-keyframes slickgrid-invalid-hilite {\n from {\n box-shadow: 0 0 6px red;\n }\n to {\n box-shadow: none;\n }\n}\n@-webkit-keyframes slickgrid-invalid-hilite {\n from {\n box-shadow: 0 0 6px red;\n }\n to {\n box-shadow: none;\n }\n}\n.bk-root .slick-column-name,\n.bk-root .slick-sort-indicator {\n /*\n * This makes all "float:right" elements after it that spill over to the next line\n * display way below the lower boundary of the column thus hiding them.\n /\n display: inline-block;\n float: left;\n margin-bottom: 100px;\n}\n.bk-root .slick-header-button {\n display: inline-block;\n float: right;\n vertical-align: top;\n margin: 1px;\n /*\n * This makes all "float:right" elements after it that spill over to the next line\n * display way below the lower boundary of the column thus hiding them.\n /\n margin-bottom: 100px;\n height: 15px;\n width: 15px;\n background-repeat: no-repeat;\n background-position: center center;\n cursor: pointer;\n}\n.bk-root .slick-header-button-hidden {\n width: 0;\n -webkit-transition: 0.2s width;\n -ms-transition: 0.2s width;\n transition: 0.2s width;\n}\n.bk-root .slick-header-column:hover > .slick-header-button {\n width: 15px;\n}\n.bk-root .slick-header-menubutton {\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 14px;\n background-repeat: no-repeat;\n background-position: left center;\n background-image: url(../images/down.gif);\n cursor: pointer;\n display: none;\n border-left: thin ridge silver;\n}\n.bk-root .slick-header-column:hover > .slick-header-menubutton,\n.bk-root .slick-header-column-active .slick-header-menubutton {\n display: inline-block;\n}\n.bk-root .slick-header-menu {\n position: absolute;\n display: inline-block;\n margin: 0;\n padding: 2px;\n cursor: default;\n}\n.bk-root .slick-header-menuitem {\n list-style: none;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n.bk-root .slick-header-menuicon {\n display: inline-block;\n width: 16px;\n height: 16px;\n vertical-align: middle;\n margin-right: 4px;\n background-repeat: no-repeat;\n background-position: center center;\n}\n.bk-root .slick-header-menucontent {\n display: inline-block;\n vertical-align: middle;\n}\n.bk-root .slick-header-menuitem-disabled {\n color: silver;\n}\n.bk-root .slick-columnpicker {\n border: 1px solid #718BB7;\n background: #f0f0f0;\n padding: 6px;\n -moz-box-shadow: 2px 2px 2px silver;\n -webkit-box-shadow: 2px 2px 2px silver;\n box-shadow: 2px 2px 2px silver;\n min-width: 150px;\n cursor: default;\n position: absolute;\n z-index: 20;\n overflow: auto;\n resize: both;\n}\n.bk-root .slick-columnpicker > .close {\n float: right;\n}\n.bk-root .slick-columnpicker .title {\n font-size: 16px;\n width: 60%;\n border-bottom: solid 1px #d6d6d6;\n margin-bottom: 10px;\n}\n.bk-root .slick-columnpicker li {\n list-style: none;\n margin: 0;\n padding: 0;\n background: none;\n}\n.bk-root .slick-columnpicker input {\n margin: 4px;\n}\n.bk-root .slick-columnpicker li a {\n display: block;\n padding: 4px;\n font-weight: bold;\n}\n.bk-root .slick-columnpicker li a:hover {\n background: white;\n}\n.bk-root .slick-pager {\n width: 100%;\n height: 26px;\n border: 1px solid gray;\n border-top: 0;\n background: url(\’../images/header-columns-bg.gif\’) repeat-x center bottom;\n vertical-align: middle;\n}\n.bk-root .slick-pager .slick-pager-status {\n display: inline-block;\n padding: 6px;\n}\n.bk-root .slick-pager .ui-icon-container {\n display: inline-block;\n margin: 2px;\n border-color: gray;\n}\n.bk-root .slick-pager .slick-pager-nav {\n display: inline-block;\n float: left;\n padding: 2px;\n}\n.bk-root .slick-pager .slick-pager-settings {\n display: block;\n float: right;\n padding: 2px;\n}\n.bk-root .slick-pager .slick-pager-settings * {\n vertical-align: middle;\n}\n.bk-root .slick-pager .slick-pager-settings a {\n padding: 2px;\n text-decoration: underline;\n cursor: pointer;\n}\n.bk-root .slick-header-columns {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n.bk-root .slick-header-column {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n.bk-root .slick-header-column:hover,\n.bk-root .slick-header-column-active {\n background-image: url("data:image/gif;base64,R0lGODlhAgAWAIcAAKrM9tno++vz/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABYAAAgUAAUIHEiwoIAACBMqXMhwIQAAAQEAOw==");\n}\n.bk-root .slick-group-toggle.expanded {\n background-image: url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIMwADCBxIUIDBgwIEChgwwECBAgQUFjBAkaJCABgxGlB4AGHCAAIQiBypEEECkScJqgwQEAA7");\n}\n.bk-root .slick-group-toggle.collapsed {\n background-image: url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIOAADCBxIUIDBgwIEChgwAECBAgQUFjAAQIABAwoBaNSIMYCAAwIqGlSIAEHFkiQTIBCgkqDLAAEBADs=");\n}\n.bk-root .slick-group-select-checkbox.checked {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAAEcSURBVChTjdI9S8NQFAbg/raQXVwCRRFE7GK7OXTwD+ikk066VF3a0ja0hQTyQdJrwNq0zrYSQRLEXMSWSlCIb8glqRcFD+9yz3nugXwU4n9XQqMoGjj36uBJsTwuaNo3EwBG4Yy7pe7Gv8YcvhJCGFVsjxsjxujj6OTSGlHv+U2WZUZbPWKOv1ZjT5a7pbIoiptbO5b73mwrjHa1B27l8VlTEIS1damlTnEE+EEN9/P8WrfH81qdAIGeXvTTmzltdCy46sEhxpKUINReZR9NnqZbr9puugxV3NjWh/k74WmmEdWhmUNy2jNmWRc6fZTVADCqao52u+DGWTACYNT3fRxwtatPufTNR4yCIGAUn5hS+vJHhWGY/ANx/A3tvdv+1tZmuwAAAABJRU5ErkJggg==");\n}\n.bk-root .slick-group-select-checkbox.unchecked {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAACXSURBVChT1dIxC4MwEAXg/v8/VOhQVDBNakV0KA6pxS4JhWRSIYPEJxwdDi1de7wleR+3JIf486w0hKCKRpSvvOhZcCmvNQBRuKqdah03U7UjNNH81rOaBYDo8SQaPX8JANFEaLaGBeAPaaY61rGksiN6TmR5H1j9CSoAosYYHLA7vTxYMvVEZa0liif23r93xjm3/oEYF8PiDn/I2FHCAAAAAElFTkSuQmCC");\n}\n.bk-root .slick-sort-indicator-desc {\n background-image: url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgeAAUAGEgQgIAACBEKLHgwYcKFBh1KFNhQosOKEgMCADs=");\n}\n.bk-root .slick-sort-indicator-asc {\n background-image: url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgbAAMIDABgoEGDABIeRJhQ4cKGEA8KmEiRosGAADs=");\n}\n.bk-root .slick-header-menubutton {\n background-image: url("data:image/gif;base64,R0lGODlhDgAOAIABADtKYwAAACH5BAEAAAEALAAAAAAOAA4AAAISjI+py+0PHZgUsGobhTn6DxoFADs=");\n}\n.bk-root .slick-pager {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n’)},n”, ” 444: function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),o=i.__importDefault(t(157)),a=i.__importStar(t(159)),n=t(445),s=i.__importStar(t(19)),c=t(66),l=t(8),m=t(69);class _ extends m.Model{constructor(t){super(t)}doFormat(t,e,r,i,o){return null==r?"":(r+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}}r.CellFormatter=_,_.__name__="CellFormatter";class u extends _{constructor(t){super(t)}static init_StringFormatter(){this.define({font_style:[s.FontStyle,"normal"],text_align:[s.TextAlign,"left"],text_color:[s.Color]})}doFormat(t,e,r,i,o){const{font_style:a,text_align:n,text_color:s}=this,l=c.div({},null==r?"":`${r}`);switch(a){case"bold":l.style.fontWeight="bold";break;case"italic":l.style.fontStyle="italic"}return null!=n&&(l.style.textAlign=n),null!=s&&(l.style.color=s),l.outerHTML}}r.StringFormatter=u,u.__name__="StringFormatter",u.init_StringFormatter();class F extends u{constructor(t){super(t)}static init_ScientificFormatter(){this.define({precision:[s.Number,10],power_limit_high:[s.Number,5],power_limit_low:[s.Number,-3]})}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}doFormat(t,e,r,i,o){const a=r<=this.scientific_limit_low||r>=this.scientific_limit_high;let n=this.precision;return n<1&&(n=1),r=a?r.toExponential(n):r.toFixed(n).replace(/(\.[0-9]?)0+$/,"$1").replace(/\.$/,""),super.doFormat(t,e,r,i,o)}}r.ScientificFormatter=F,F.__name__="ScientificFormatter",F.init_ScientificFormatter();class d extends u{constructor(t){super(t)}static init_NumberFormatter(){this.define({format:[s.String,"0,0"],language:[s.String,"en"],rounding:[s.RoundingFunction,"round"]})}doFormat(t,e,r,i,o){const{format:n,language:s}=this,c=(()=>{switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}})();return r=a.format(r,n,s,c),super.doFormat(t,e,r,i,o)}}r.NumberFormatter=d,d.__name__="NumberFormatter",d.init_NumberFormatter();class g extends _{constructor(t){super(t)}static init_BooleanFormatter(){this.define({icon:[s.String,"check"]})}doFormat(t,e,r,i,o){return r?c.i({class:this.icon}).outerHTML:""}}r.BooleanFormatter=g,g.__name__="BooleanFormatter",g.init_BooleanFormatter();class p extends _{constructor(t){super(t)}static init_DateFormatter(){this.define({format:[s.String,"ISO-8601"]})}getFormat(){switch(this.format){case"ATOM":case"W3C":case"RFC-3339":case"ISO-8601":return"%Y-%m-%d";case"COOKIE":return"%a, %d %b %Y";case"RFC-850":return"%A, %d-%b-%y";case"RFC-1123":case"RFC-2822":return"%a, %e %b %Y";case"RSS":case"RFC-822":case"RFC-1036":return"%a, %e %b %y";case"TIMESTAMP":return;default:return this.format}}doFormat(t,e,r,i,a){r=l.isString(r)?parseInt(r,10):r;const n=o.default(r,this.getFormat());return super.doFormat(t,e,n,i,a)}}r.DateFormatter=p,p.__name__="DateFormatter",p.init_DateFormatter();class h extends _{constructor(t){super(t)}static init_HTMLTemplateFormatter(){this.define({template:[s.String,"<%= value %>"]})}doFormat(t,e,r,i,o){const{template:a}=this;if(null==r)return"";return n._.template(a)(Object.assign(Object.assign({},o),{value:r}))}}r.HTMLTemplateFormatter=h,h.__name__="HTMLTemplateFormatter",h.init_HTMLTemplateFormatter()},n”, ” 445: function _(e,n,t){var f=e(446),i=f.template;function o(e,n,t){return i(e,n,t)}o._=f,n.exports=o,"function"==typeof define&&define.amd?define((function(){return o})):"undefined"==typeof window&&"undefined"==typeof navigator||(window.UnderscoreTemplate=o)},n”, ” 446: function _(r,e,n){n”, ” // (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” var t={},a=Array.prototype,u=Object.prototype,c=a.slice,o=u.toString,l=u.hasOwnProperty,i=a.forEach,f=Object.keys,s=Array.isArray,p=function(){},_=p.each=p.forEach=function(r,e,n){if(null!=r)if(i&&r.forEach===i)r.forEach(e,n);else if(r.length===+r.length){for(var a=0,u=r.length;a<u;a++)if(e.call(n,r[a],a,r)===t)return}else{var c=p.keys(r);for(a=0,u=c.length;a<u;a++)if(e.call(n,r[c[a]],c[a],r)===t)return}};p.keys=f||function(r){if(r!==Object(r))throw new TypeError("Invalid object");var e=[];for(var n in r)p.has(r,n)&&e.push(n);return e},p.defaults=function(r){return _(c.call(arguments,1),(function(e){if(e)for(var n in e)void 0===r[n]&&(r[n]=e[n])})),r},p.isArray=s||function(r){return"[object Array]"===o.call(r)},p.has=function(r,e){if(!p.isArray(e))return null!=r&&l.call(r,e);for(var n=e.length,t=0;t<n;t++){var a=e[t];if(null==r||!l.call(r,a))return!1;r=r[a]}return!!n};var h={escape:{"&":"&","<":"<",">":">",’"’:""","’":"'"}},v={escape:new RegExp("["+p.keys(h.escape).join("")+"]","g")};p.each(["escape"],(function(r){p[r]=function(e){return null==e?"":(""+e).replace(v[r],(function(e){return h[r][e]}))}})),p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,y={"’":"’","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},j=/\\|’|\\r|\n|\t|\u2028|\u2029/g;p.template=function(r,e,n){var t;n=p.defaults({},n,p.templateSettings);var a=new RegExp([(n.escape||g).source,(n.interpolate||g).source,(n.evaluate||g).source].join("|\")+\"|$\",\"g\"),u=0,c=\"__p+='\";r.replace(a,(function(e,n,t,a,o){return c+=r.slice(u,o).replace(j,(function(r){return\"\\\\\"+y[r]})),n&&(c+=\"'+\\n((__t=(\"+n+\"))==null?'':_.escape(__t))+\\n'\"),t&&(c+=\"'+\\n((__t=(\"+t+\"))==null?'':__t)+\\n'\"),a&&(c+=\"';\\n\"+a+\"\\n__p+='\"),u=o+e.length,e})),c+=\"';\\n\",n.variable||(c=\"with(obj||{}){\\n\"+c+\"}\\n\"),c=\"var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\\n\"+c+\"return __p;\\n\";try{t=new Function(n.variable||"obj","_",c)}catch(r){throw r.source=c,r}if(e)return t(e,p);var o=function(r){return t.call(this,r,p)};return o.source="function("+(n.variable||"obj")+"){\n"+c+"}",o},e.exports=p},n”, ” 447: function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(1),o=t(444),n=t(423),a=r.__importStar(t(19)),l=t(26),s=t(69);class d extends s.Model{constructor(t){super(t)}static init_TableColumn(){this.define({field:[a.String],title:[a.String],width:[a.Number,300],formatter:[a.Instance,()=>new o.StringFormatter],editor:[a.Instance,()=>new n.StringEditor],sortable:[a.Boolean,!0],default_sort:[a.Sort,"ascending"]})}toColumn(){return{id:l.uniqueId(),field:this.field,name:this.title,width:this.width,formatter:null!=this.formatter?this.formatter.doFormat.bind(this.formatter):void 0,model:this.editor,editor:this.editor.default_view,sortable:this.sortable,defaultSortAsc:"ascending"==this.default_sort}}}i.TableColumn=d,d.__name__="TableColumn",d.init_TableColumn()},n”, ” 448: function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const r=t(1),a=t(431),{Avg:i,Min:o,Max:g,Sum:n}=a.Data.Aggregators,u=r.__importStar(t(19)),c=t(69);class _ extends c.Model{constructor(t){super(t)}static init_RowAggregator(){this.define({field_:[u.String,""]})}}s.RowAggregator=_,_.__name__="RowAggregator",_.init_RowAggregator();const l=new i;class m extends _{constructor(){super(…arguments),this.key="avg",this.init=l.init,this.accumulate=l.accumulate,this.storeResult=l.storeResult}}s.AvgAggregator=m,m.__name__="AvgAggregator";const h=new o;class A extends _{constructor(){super(…arguments),this.key="min",this.init=h.init,this.accumulate=h.accumulate,this.storeResult=h.storeResult}}s.MinAggregator=A,A.__name__="MinAggregator";const R=new g;class d extends _{constructor(){super(…arguments),this.key="max",this.init=R.init,this.accumulate=R.accumulate,this.storeResult=R.storeResult}}s.MaxAggregator=d,d.__name__="MaxAggregator";const x=new n;class w extends _{constructor(){super(…arguments),this.key="sum",this.init=x.init,this.accumulate=x.accumulate,this.storeResult=x.storeResult}}s.SumAggregator=w,w.__name__="SumAggregator"},n”, ” 449: function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t(1).__importStar(t(19)),r=t(66),i=t(431),a=t(424),n=t(69);function l(t,e,s,o,i){const{collapsed:a,level:n,title:l}=i,u=r.span({class:slick-group-toggle ${a?"collapsed":"expanded"},style:{"margin-left":${15*n}px}}),g=r.span({class:"slick-group-title",level:n},l);return`${u.outerHTML}${g.outerHTML}`}function u(t,e){const s=this.getDataItem(e.row);s instanceof i.Group&&t.target.classList.contains("slick-group-toggle")&&(s.collapsed?this.getData().expandGroup(s.groupingKey):this.getData().collapseGroup(s.groupingKey),t.stopImmediatePropagation(),t.preventDefault(),this.invalidate(),this.render())}class g extends n.Model{constructor(t){super(t)}static init_GroupingInfo(){this.define({getter:[o.String,""],aggregators:[o.Array,[]],collapsed:[o.Boolean,!1]})}get comparer(){return(t,e)=>t.value===e.value?0:t.value>e.value?1:-1}}s.GroupingInfo=g,g.__name__="GroupingInfo",g.init_GroupingInfo();class c extends a.TableDataProvider{constructor(t,e,s,o){super(t,e),this.columns=s,this.groupingInfos=[],this.groupingDelimiter=":|:\",this.target=o}setGrouping(t){this.groupingInfos=t,this.toggledGroupsByLevel=t.map(()=>({})),this.refresh()}extractGroups(t,e){const s=[],o=new Map,r=e?e.level+1:0,{comparer:a,getter:n}=this.groupingInfos[r];return t.forEach(t=>{const a=this.source.data[n][t];let l=o.get(a);if(!l){const t=e?`${e.groupingKey}${this.groupingDelimiter}${a}`:`${a}`;l=Object.assign(new i.Group,{value:a,level:r,groupingKey:t}),s.push(l),o.set(a,l)}l.rows.push(t)}),r<this.groupingInfos.length-1&&s.forEach(t=>{t.groups=this.extractGroups(t.rows,t)}),s.sort(a),s}calculateTotals(t,e){const s={avg:{},max:{},min:{},sum:{}},{source:{data:o}}=this,r=Object.keys(o),i=t.rows.map(t=>r.reduce((e,s)=>Object.assign(Object.assign({},e),{[s]:o[s][t]}),{}));return e.forEach(t=>{t.init(),i.forEach(e=>t.accumulate(e)),t.storeResult(s)}),s}addTotals(t,e=0){const{aggregators:s,collapsed:o}=this.groupingInfos[e],r=this.toggledGroupsByLevel[e];t.forEach(t=>{t.groups&&this.addTotals(t.groups,e+1),s.length&&t.rows.length&&(t.totals=this.calculateTotals(t,s)),t.collapsed=o!==r[t.groupingKey],t.title=t.value?`${t.value}`:\"\"})}flattenedGroupedRows(t,e=0){const s=[];return t.forEach(t=>{if(s.push(t),!t.collapsed){const o=t.groups?this.flattenedGroupedRows(t.groups,e+1):t.rows;s.push(...o)}}),s}refresh(){const t=this.extractGroups(this.view.indices),e=this.source.data[this.columns[0].field];t.length&&(this.addTotals(t),this.rows=this.flattenedGroupedRows(t),this.target.data={row_indices:this.rows.map(t=>t instanceof i.Group?t.rows:t),labels:this.rows.map(t=>t instanceof i.Group?t.title:e[t])})}getLength(){return this.rows.length}getItem(t){const e=this.rows[t],{source:{data:s}}=this;return e instanceof i.Group?e:Object.keys(s).reduce((t,o)=>Object.assign(Object.assign({},t),{[o]:s[o][e]}),{[a.DTINDEX_NAME]:e})}getItemMetadata(t){const e=this.rows[t],s=this.columns.slice(1),o=e instanceof i.Group?this.groupingInfos[e.level].aggregators:[];return e instanceof i.Group?{selectable:!1,focusable:!1,cssClasses:\"slick-group\",columns:[{formatter:l},...s.map((function(t){const{field:e,formatter:s}=t,r=o.find(({field_:t})=>t===e);if(r){const{key:t}=r;return{formatter:(o,r,i,a,n)=>s?s(o,r,n.totals[t][e],a,n):\"\"}}return{}}))]}:{}}collapseGroup(t){const e=t.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[e][t]=!this.groupingInfos[e].collapsed,this.refresh()}expandGroup(t){const e=t.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed,this.refresh()}}s.DataCubeProvider=c,c.__name__=\"DataCubeProvider\";class p extends a.DataTableView{render(){const t={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:!1,forceFitColumns:this.model.fit_columns,multiColumnSort:!1,editable:this.model.editable,autoEdit:!1,rowHeight:this.model.row_height},e=this.model.columns.map(t=>t.toColumn());var s,o;e[0].formatter=(s=e[0].formatter,o=this.model.grouping.length,(t,e,i,a,n)=>{const l=r.span({class:\"slick-group-toggle\",style:{\"margin-left\":`${15*(o||0)}px`}}),u=s?s(t,e,i,a,n):`${i}`;return`${l.outerHTML}${u&&u.replace(/^<div/,\"<span\").replace(/div>$/,\"span>\")}`}),delete e[0].editor,this.data=new c(this.model.source,this.model.view,e,this.model.target),this.data.setGrouping(this.model.grouping),this.el.style.width=`${this.model.width}px`,this.grid=new i.Grid(this.el,this.data,e,t),this.grid.onClick.subscribe(u)}}s.DataCubeView=p,p.__name__=\"DataCubeView\";class h extends a.DataTable{constructor(t){super(t)}static init_DataCube(){this.prototype.default_view=p,this.define({grouping:[o.Array,[]],target:[o.Instance]})}}s.DataCube=h,h.__name__=\"DataCube\",h.init_DataCube()},\n", " }, 421, {\"models/widgets/tables/main\":421,\"models/widgets/tables/index\":422,\"models/widgets/tables/cell_editors\":423,\"models/widgets/tables/data_table\":424,\"models/widgets/tables/table_widget\":440,\"models/widgets/widget\":441,\"styles/widgets/tables\":442,\"styles/widgets/slickgrid\":443,\"models/widgets/tables/cell_formatters\":444,\"models/widgets/tables/table_column\":447,\"models/widgets/tables/row_aggregators\":448,\"models/widgets/tables/data_cube\":449}, {});\n", " })\n", "\n", "\n", " /* END bokeh-tables.min.js */\n", " },\n", " \n", " function(Bokeh) {\n", " /* BEGIN bokeh-gl.min.js */\n", " /*!\n", " * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors\n", " * All rights reserved.\n", " * \n", " * Redistribution and use in source and binary forms, with or without modification,\n", " * are permitted provided that the following conditions are met:\n", " * \n", " * Redistributions of source code must retain the above copyright notice,\n", " * this list of conditions and the following disclaimer.\n", " * \n", " * Redistributions in binary form must reproduce the above copyright notice,\n", " * this list of conditions and the following disclaimer in the documentation\n", " * and/or other materials provided with the distribution.\n", " * \n", " * Neither the name of Anaconda nor the names of any contributors\n", " * may be used to endorse or promote products derived from this software\n", " * without specific prior written permission.\n", " * \n", " * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n", " * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n", " * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n", " * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n", " * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n", " * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n", " * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n", " * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n", " * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n", " * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\n", " * THE POSSIBILITY OF SUCH DAMAGE.\n", " */\n", " (function(root, factory) {\n", " factory(root[\"Bokeh\"], \"2.0.2\");\n", " })(this, function(Bokeh, version) {\n", " var define;\n", " return (function(modules, entry, aliases, externals) {\n", " const bokeh = typeof Bokeh !== \"undefined\" && (version != null ? Bokeh[version] : Bokeh);\n", " if (bokeh != null) {\n", " return bokeh.register_plugin(modules, entry, aliases);\n", " } else {\n", " throw new Error(\"Cannot find Bokeh \" + version + \". You have to load it prior to loading plugins.\");\n", " }\n", " })\n", " ({\n", " 357: function _(e,n,o){Object.defineProperty(o,\"__esModule\",{value:!0}),e(358)},\n", " 358: function _(e,t,_){Object.defineProperty(_,\"__esModule\",{value:!0});const o=e(1);\n", " /*\n", " Copyright notice: many of the awesome techniques and GLSL code contained in\n", " this module are based on work by Nicolas Rougier as part of the Glumpy and\n", " Vispy projects. The algorithms are published in\n", " http://jcgt.org/published/0003/04/01/ and http://jcgt.org/published/0002/02/08/\n", " \n", " This module contains all gl-specific code to add gl support for the glyphs.\n", " By implementing it separetely, the GL functionality can be spun off in a\n", " separate library.\n", " Other locations where we work with GL, or prepare for GL-rendering:\n", " - canvas.ts\n", " - plot.ts\n", " - glyph.ts\n", " - glyph_renderer.ts\n", " */o.__exportStar(e(359),_),o.__exportStar(e(364),_)},\n", " 359: function _(t,e,s){Object.defineProperty(s,\"__esModule\",{value:!0});const i=t(360),a=t(361),n=t(362),_=t(363),o=t(21);class h{constructor(t){this._atlas={},this._index=0,this._width=256,this._height=256,this.tex=new i.Texture2D(t),this.tex.set_wrapping(t.REPEAT,t.REPEAT),this.tex.set_interpolation(t.NEAREST,t.NEAREST),this.tex.set_size([this._height,this._width],t.RGBA),this.tex.set_data([0,0],[this._height,this._width],new Uint8Array(this._height*this._width*4)),this.get_atlas_data([1])}get_atlas_data(t){const e=t.join(\"-\");if(void 0===this._atlas[e]){const[s,i]=this.make_pattern(t);this.tex.set_data([this._index,0],[1,this._width],new Uint8Array(s.map(t=>t+10))),this._atlas[e]=[this._index/this._height,i],this._index+=1}return this._atlas[e]}make_pattern(t){t.length>1&&t.length%2&&(t=t.concat(t));let e=0;for(const s of t)e+=s;const s=[];let i=0;for(let e=0,a=t.length+2;e<a;e+=2){const a=Math.max(1e-4,t[e%t.length]),n=Math.max(1e-4,t[(e+1)%t.length]);s.push(i,i+a),i+=a+n}const a=this._width,n=new Float32Array(4*a);for(let t=0,i=a;t<i;t++){let i,_,o;const h=e*t/(a-1);let r=0,l=1e16;for(let t=0,e=s.length;t<e;t++){const e=Math.abs(s[t]-h);e<l&&(r=t,l=e)}r%2==0?(o=h<=s[r]?1:0,_=s[r],i=s[r+1]):(o=h>s[r]?-1:0,_=s[r-1],i=s[r]),n[4*t+0]=s[r],n[4*t+1]=o,n[4*t+2]=_,n[4*t+3]=i}return[n,e]}}h.__name__=\"DashAtlas\";const r={miter:0,round:1,bevel:2},l={\"\":0,none:0,\".\":0,round:1,\")\":1,\"(\":1,o:1,\"triangle in\":2,\"<\":2,\"triangle out\":3,\">\":3,square:4,\"[\":4,\"]\":4,\"=\":4,butt:5,\"|":5};class g extends a.BaseGLGlyph{init(){const{gl:t}=this;this._scale_aspect=0;const e=n.vertex_shader,s=_.fragment_shader;this.prog=new i.Program(t),this.prog.set_shaders(e,s),this.index_buffer=new i.IndexBuffer(t),this.vbo_position=new i.VertexBuffer(t),this.vbo_tangents=new i.VertexBuffer(t),this.vbo_segment=new i.VertexBuffer(t),this.vbo_angles=new i.VertexBuffer(t),this.vbo_texcoord=new i.VertexBuffer(t),this.dash_atlas=new h(t)}draw(t,e,s){const i=e.glglyph;if(i.data_changed){if(!isFinite(s.dx)||!isFinite(s.dy))return;i._baked_offset=[s.dx,s.dy],i._set_data(),i.data_changed=!1}this.visuals_changed&&(this._set_visuals(),this.visuals_changed=!1);let{sx:a,sy:n}=s;const _=Math.sqrt(a*a+n*n);a/=_,n/=_,Math.abs(this._scale_aspect-n/a)>Math.abs(.001*this._scale_aspect)&&(i._update_scale(a,n),this._scale_aspect=n/a),this.prog.set_attribute("a_position","vec2",i.vbo_position),this.prog.set_attribute("a_tangents","vec4",i.vbo_tangents),this.prog.set_attribute("a_segment","vec2",i.vbo_segment),this.prog.set_attribute("a_angles","vec2",i.vbo_angles),this.prog.set_attribute("a_texcoord","vec2",i.vbo_texcoord),this.prog.set_uniform("u_length","float",[i.cumsum]),this.prog.set_texture("u_dash_atlas",this.dash_atlas.tex);const o=i._baked_offset;if(this.prog.set_uniform("u_pixel_ratio","float",[s.pixel_ratio]),this.prog.set_uniform("u_canvas_size","vec2",[s.width,s.height]),this.prog.set_uniform("u_offset","vec2",[s.dx-o[0],s.dy-o[1]]),this.prog.set_uniform("u_scale_aspect","vec2",[a,n]),this.prog.set_uniform("u_scale_length","float",[_]),this.I_triangles=i.I_triangles,this.I_triangles.length<65535)this.index_buffer.set_size(2*this.I_triangles.length),this.index_buffer.set_data(0,new Uint16Array(this.I_triangles)),this.prog.draw(this.gl.TRIANGLES,this.index_buffer);else{t=Array.from(this.I_triangles);const e=this.I_triangles.length,s=64008,a=[];for(let t=0,i=Math.ceil(e/s);t<i;t++)a.push([]);for(let e=0,i=t.length;e<i;e++){const i=t[e]%s;a[Math.floor(t[e]/s)].push(i)}for(let t=0,e=a.length;t<e;t++){const e=new Uint16Array(a[t]),n=t*s*4;0!==e.length&&(this.prog.set_attribute("a_position","vec2",i.vbo_position,0,2*n),this.prog.set_attribute("a_tangents","vec4",i.vbo_tangents,0,4*n),this.prog.set_attribute("a_segment","vec2",i.vbo_segment,0,2*n),this.prog.set_attribute("a_angles","vec2",i.vbo_angles,0,2*n),this.prog.set_attribute("a_texcoord","vec2",i.vbo_texcoord,0,2*n),this.index_buffer.set_size(2*e.length),this.index_buffer.set_data(0,e),this.prog.draw(this.gl.TRIANGLES,this.index_buffer))}}}_set_data(){this._bake(),this.vbo_position.set_size(4*this.V_position.length),this.vbo_position.set_data(0,this.V_position),this.vbo_tangents.set_size(4*this.V_tangents.length),this.vbo_tangents.set_data(0,this.V_tangents),this.vbo_angles.set_size(4*this.V_angles.length),this.vbo_angles.set_data(0,this.V_angles),this.vbo_texcoord.set_size(4*this.V_texcoord.length),this.vbo_texcoord.set_data(0,this.V_texcoord)}_set_visuals(){const t=o.color2rgba(this.glyph.visuals.line.line_color.value(),this.glyph.visuals.line.line_alpha.value()),e=l[this.glyph.visuals.line.line_cap.value()],s=r[this.glyph.visuals.line.line_join.value()];this.prog.set_uniform("u_color","vec4",t),this.prog.set_uniform("u_linewidth","float",[this.glyph.visuals.line.line_width.value()]),this.prog.set_uniform("u_antialias","float",[.9]),this.prog.set_uniform("u_linecaps","vec2",[e,e]),this.prog.set_uniform("u_linejoin","float",[s]),this.prog.set_uniform("u_miter_limit","float",[10]);const i=this.glyph.visuals.line.line_dash.value();let a=0,n=1;i.length&&([a,n]=this.dash_atlas.get_atlas_data(i)),this.prog.set_uniform("u_dash_index","float",[a]),this.prog.set_uniform("u_dash_phase","float",[this.glyph.visuals.line.line_dash_offset.value()]),this.prog.set_uniform("u_dash_period","float",[n]),this.prog.set_uniform("u_dash_caps","vec2",[e,e]),this.prog.set_uniform("u_closed","float",[0])}_bake(){let t,e,s,i,a,n,_,o;const h=this.nvertices,r=new Float64Array(this.glyph._x),l=new Float64Array(this.glyph._y),g=_=new Float32Array(2*h),f=new Float32Array(2*h),u=o=new Float32Array(4*h);for(let t=0,e=h;t<e;t++)g[2*t+0]=r[t]+this._baked_offset[0],g[2*t+1]=l[t]+this._baked_offset[1];this.tangents=e=new Float32Array(2*h-2);for(let t=0,s=h-1;t<s;t++)e[2*t+0]=_[2*(t+1)+0]-_[2*t+0],e[2*t+1]=_[2*(t+1)+1]-_[2*t+1];for(let t=0,s=h-1;t<s;t++)u[4*(t+1)+0]=e[2*t+0],u[4*(t+1)+1]=e[2*t+1],u[4*t+2]=e[2*t+0],u[4*t+3]=e[2*t+1];u[0]=e[0],u[1]=e[1],u[4*(h-1)+2]=e[2*(h-2)+0],u[4*(h-1)+3]=e[2*(h-2)+1];const c=new Float32Array(h);for(let t=0,e=h;t<e;t++)c[t]=Math.atan2(o[4*t+0]*o[4*t+3]-o[4*t+1]*o[4*t+2],o[4*t+0]*o[4*t+2]+o[4*t+1]*o[4*t+3]);for(let t=0,e=h-1;t<e;t++)f[2*t+0]=c[t],f[2*t+1]=c[t+1];const d=4*h-4;this.V_position=i=new Float32Array(2*d),this.V_angles=s=new Float32Array(2*d),this.V_tangents=a=new Float32Array(4*d),this.V_texcoord=n=new Float32Array(2*d);for(let t=0,e=h;t<e;t++)for(let e=0;e<4;e++){for(let a=0;a<2;a++)i[2*(4*t+e-2)+a]=g[2*t+a],s[2*(4*t+e)+a]=f[2*t+a];for(let s=0;s<4;s++)a[4*(4*t+e-2)+s]=u[4*t+s]}for(let t=0,e=h;t<e;t++)n[2*(4*t+0)+0]=-1,n[2*(4*t+1)+0]=-1,n[2*(4*t+2)+0]=1,n[2*(4*t+3)+0]=1,n[2*(4*t+0)+1]=-1,n[2*(4*t+1)+1]=1,n[2*(4*t+2)+1]=-1,n[2*(4*t+3)+1]=1;const p=6*(h-1);this.I_triangles=t=new Uint32Array(p);for(let e=0,s=h;e<s;e++)t[6*e+0]=0+4*e,t[6*e+1]=1+4*e,t[6*e+2]=3+4*e,t[6*e+3]=2+4*e,t[6*e+4]=0+4*e,t[6*e+5]=3+4*e}_update_scale(t,e){let s;const i=this.nvertices,a=4*i-4,n=this.tangents,_=new Float32Array(i-1),o=new Float32Array(2*i);this.V_segment=s=new Float32Array(2*a);for(let s=0,a=i-1;s<a;s++)_[s]=Math.sqrt((n[2*s+0]*t)**2+(n[2*s+1]*e)**2);let h=0;for(let t=0,e=i-1;t<e;t++)h+=_[t],o[2*(t+1)+0]=h,o[2*t+1]=h;for(let t=0,e=i;t<e;t++)for(let e=0;e<4;e++)for(let i=0;i<2;i++)s[2*(4*t+e)+i]=o[2*t+i];this.cumsum=h,this.vbo_segment.set_size(4*this.V_segment.length),this.vbo_segment.set_data(0,this.V_segment)}}s.LineGLGlyph=g,g.__name__="LineGLGlyph"},n”, ” 360: function _(t,e,r){var n,o,i,a,s,l,h,u,c,_=function(t,e){return Array.isArray(t)&&Array.isArray(e)?t.concat(e):t+e},f=function(t,e){if(null==e);else{if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(p(t,e[r]))return!0;return!1}if(e.constructor===Object){for(var n in e)if(t==n)return!0;return!1}if(e.constructor==String)return e.indexOf(t)>=0}var o=Error("Not a container: "+e);throw o.name="TypeError",o},p=function t(e,r){if(null==e||null==r);else{if(Array.isArray(e)&&Array.isArray(r)){for(var n=0,o=e.length==r.length;o&&n<e.length;)o=t(e[n],r[n]),n+=1;return o}if(e.constructor===Object&&r.constructor===Object){var i=Object.keys(e),a=Object.keys(r);i.sort(),a.sort();var s;for(n=0,o=t(i,a);o&&n<i.length;)o=t(e[s=i[n]],r[s]),n+=1;return o}}return e==r},d=function(t,e){if(void 0===t||"undefined"!=typeof window&&window===t||"undefined"!=typeof global&&global===t)throw"Class constructor is called as a function.";for(var r in t)void 0!==Object[r]||"function"!=typeof t[r]||t[r].nobind||(t[r]=t[r].bind(t));t.__init__&&t.__init__.apply(t,e)},y=function(t,e){if(("number"==typeof t)+("number"==typeof e)===1){if(t.constructor===String)return A.call(t,e);if(e.constructor===String)return A.call(e,t);if(Array.isArray(e)){var r=t;t=e,e=r}if(Array.isArray(t)){for(var n=[],o=0;o<e;o++)n=n.concat(t);return n}}return t*e},g=function(t){return null===t||"object"!=typeof t?t:void 0!==t.length?!!t.length&&t:void 0!==t.byteLength?!!t.byteLength&&t:t.constructor!==Object||!!Object.getOwnPropertyNames(t).length&&t},v=function(t){if(!Array.isArray(this))return this.append.apply(this,arguments);this.push(t)},m=function(t,e){return this.constructor!==Object?this.get.apply(this,arguments):void 0!==this[t]?this[t]:void 0!==e?e:null},x=function(){return"function"==typeof this.keys?this.keys.apply(this,arguments):Object.keys(this)},b=function(t){if(this.constructor!==String)return this.lstrip.apply(this,arguments);t=void 0===t?" \t\r\n":t;for(var e=0;e<this.length;e++)if(t.indexOf(this[e])<0)return this.slice(e);return""},E=function(t){if(!Array.isArray(this))return this.remove.apply(this,arguments);for(var e=0;e<this.length;e++)if(p(this[e],t))return void this.splice(e,1);var r=Error(t);throw r.name="ValueError",r},A=function(t){if(this.repeat)return this.repeat(t);if(t<1)return"";for(var e="",r=this.valueOf();t>1;)1&t&&(e+=r),t>>=1,r+=r;return e+r},w=function(t){return this.constructor!==String?this.startswith.apply(this,arguments):0==this.indexOf(t)};c=window.console,u=function(t,e){var r,n,o,i,a,s,l;for(e=void 0===e?"periodic check":e,i=[];n=t.getError(),!(p(n,t.NO_ERROR)||g(i)&&p(n,i[i.length-1]));)v.call(i,n);if(i.length){for(a="","object"!=typeof(s=i)||Array.isArray(s)||(s=Object.keys(s)),l=0;l<s.length;l+=1)r=s[l],a=_(a,r);throw(o=new Error("RuntimeError:OpenGL got errors ("+e+"): "+a)).name="RuntimeError",o}return null},(o=function(){d(this,arguments)}).prototype._base_class=Object,o.prototype._class_name="GlooObject",o.prototype.__init__=function(t){if(this._gl=t,this.handle=null,this._create(),null===this.handle)throw"AssertionError: this.handle !== null";return null},o.prototype._create=function(){var t;throw(t=new Error("NotImplementedError:")).name="NotImplementedError",t},((a=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,a.prototype._class_name="Program",a.prototype.UTYPEMAP={float:"uniform1fv",vec2:"uniform2fv",vec3:"uniform3fv",vec4:"uniform4fv",int:"uniform1iv",ivec2:"uniform2iv",ivec3:"uniform3iv",ivec4:"uniform4iv",bool:"uniform1iv",bvec2:"uniform2iv",bvec3:"uniform3iv",bvec4:"uniform4iv",mat2:"uniformMatrix2fv",mat3:"uniformMatrix3fv",mat4:"uniformMatrix4fv",sampler1D:"uniform1i",sampler2D:"uniform1i",sampler3D:"uniform1i"},a.prototype.ATYPEMAP={float:"vertexAttrib1f",vec2:"vertexAttrib2f",vec3:"vertexAttrib3f",vec4:"vertexAttrib4f"},a.prototype.ATYPEINFO={float:[1,5126],vec2:[2,5126],vec3:[3,5126],vec4:[4,5126]},a.prototype._create=function(){return this.handle=this._gl.createProgram(),this.locations={},this._unset_variables=[],this._validated=!1,this._samplers={},this._attributes={},this._known_invalid=[],null},a.prototype.delete=function(){return this._gl.deleteProgram(this.handle),null},a.prototype.activate=function(){return this._gl.useProgram(this.handle),null},a.prototype.deactivate=function(){return this._gl.useProgram(0),null},a.prototype.set_shaders=function(t,e){var r,n,o,i,a,s,l,h,u,c,f,p,d;for(s=this._gl,this._linked=!1,f=[[t,d=s.createShader(s.VERTEX_SHADER),"vertex"],[e,a=s.createShader(s.FRAGMENT_SHADER),"fragment"]],h=0;h<2;h+=1)if(r=(c=f[h])[0],l=c[1],p=c[2],s.shaderSource(l,r),s.compileShader(l),u=s.getShaderParameter(l,s.COMPILE_STATUS),!g(u))throw i=s.getShaderInfoLog(l),(o=new Error("RuntimeError:"+_("errors in "+p+" shader:\n",i))).name="RuntimeError",o;if(s.attachShader(this.handle,d),s.attachShader(this.handle,a),s.linkProgram(this.handle),!g(s.getProgramParameter(this.handle,s.LINK_STATUS)))throw(n=new Error("RuntimeError:Program link error:\n"+s.getProgramInfoLog(this.handle))).name="RuntimeError",n;return this._unset_variables=this._get_active_attributes_and_uniforms(),s.detachShader(this.handle,d),s.detachShader(this.handle,a),s.deleteShader(d),s.deleteShader(a),this._known_invalid=[],this._linked=!0,null},a.prototype._get_active_attributes_and_uniforms=function(){var t,e,r,n,o,i,a,s,l,h,u,c,f,p,d,y,m,x;for(s=this._gl,this.locations={},p=new window.RegExp("(\\w+)\\s*(\\[(\\d+)\\])\\s*"),o=s.getProgramParameter(this.handle,s.ACTIVE_UNIFORMS),e=s.getProgramParameter(this.handle,s.ACTIVE_ATTRIBUTES),x=[],"object"!=typeof(y=[[t=[],e,s.getActiveAttrib,s.getAttribLocation],[x,o,s.getActiveUniform,s.getUniformLocation]])||Array.isArray(y)||(y=Object.keys(y)),m=0;m<y.length;m+=1)for(r=(d=y[m])[0],n=d[1],i=d[2],a=d[3],l=0;l<n;l+=1){if(c=(f=(h=i.call(s,this.handle,l)).name).match(p),g(c))for(f=c[1],u=0;u<h.size;u+=1)v.call(r,[f+"["+u+"]",h.type]);else v.call(r,[f,h.type]);this.locations[f]=a.call(s,this.handle,f)}return _(function(){var e,r,n,o=[];for("object"!=typeof(r=t)||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n++)e=r[n],o.push(e[0]);return o}.apply(this),function(){var t,e,r,n=[];for("object"!=typeof(e=x)||Array.isArray(e)||(e=Object.keys(e)),r=0;r<e.length;r++)t=e[r],n.push(t[0]);return n}.apply(this))},a.prototype.set_texture=function(t,e){var r,n,o;if(!g(this._linked))throw(r=new Error("RuntimeError:Cannot set uniform when program has no code")).name="RuntimeError",r;return n=m.call(this.locations,t,-1),g(n<0)?(f(t,this._known_invalid)||(v.call(this._known_invalid,t),c.log("Variable "+t+" is not an active texture")),null):(f(t,this._unset_variables)&&E.call(this._unset_variables,t),this.activate(),o=x.call(this._samplers).length,f(t,this._samplers)&&(o=this._samplers[t][this._samplers[t].length-1]),this._samplers[t]=[e._target,e.handle,o],this._gl.uniform1i(n,o),null)},a.prototype.set_uniform=function(t,e,r){var n,o,i,a,s,l,h;if(!g(this._linked))throw(i=new Error("RuntimeError:Cannot set uniform when program has no code")).name="RuntimeError",i;if(s=m.call(this.locations,t,-1),g(s<0))return f(t,this._known_invalid)||(v.call(this._known_invalid,t),c.log("Variable "+t+" is not an active uniform")),null;if(f(t,this._unset_variables)&&E.call(this._unset_variables,t),o=1,w.call(e,"mat")||(n=m.call({int:"float",bool:"float"},e,b.call(e,"ib")),o=Math.floor(r.length/this.ATYPEINFO[n][0])),g(o>1))for(l=0;l<o;l+=1)f(t+"["+l+"]",this._unset_variables)&&f(h=t+"["+l+"]",this._unset_variables)&&E.call(this._unset_variables,h);return a=this.UTYPEMAP[e],this.activate(),w.call(e,"mat")?this._gl[a](s,!1,r):this._gl[a](s,r),null},a.prototype.set_attribute=function(t,e,r,n,o){var i,a,s,l,u,_;if(n=void 0===n?0:n,o=void 0===o?0:o,!g(this._linked))throw(a=new Error("RuntimeError:Cannot set attribute when program has no code")).name="RuntimeError",a;return u=r instanceof h,l=m.call(this.locations,t,-1),g(l<0)?(f(t,this._known_invalid)||(v.call(this._known_invalid,t),g(u)&&g(o>0)||c.log("Variable "+t+" is not an active attribute")),null):(f(t,this._unset_variables)&&E.call(this._unset_variables,t),this.activate(),g(u)?(s="vertexAttribPointer",i=[(_=this.ATYPEINFO[e])[0],_[1],this._gl.FALSE,n,o],this._attributes[t]=[r.handle,l,s,i]):(s=this.ATYPEMAP[e],this._attributes[t]=[0,l,s,r]),null)},a.prototype._pre_draw=function(){var t,e,r,n,o,i,a,s,l,h,u,c;for(c in this.activate(),a=this._samplers)a.hasOwnProperty(c)&&(l=(i=c=a[c])[0],s=i[1],h=i[2],this._gl.activeTexture(_(this._gl.TEXTURE0,h)),this._gl.bindTexture(l,s));for(c in o=this._attributes)o.hasOwnProperty(c)&&(u=(n=c=o[c])[0],e=n[1],r=n[2],t=n[3],g(u)?(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,u),this._gl.enableVertexAttribArray(e),this._gl[r].apply(this._gl,[].concat([e],t))):(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,null),this._gl.disableVertexAttribArray(e),this._gl[r].apply(this._gl,[].concat([e],t))));return g(this._validated)||(this._validated=!0,this._validate()),null},a.prototype._validate=function(){var t;if(this._unset_variables.length&&c.log("Program has unset variables: "+this._unset_variables),this._gl.validateProgram(this.handle),!g(this._gl.getProgramParameter(this.handle,this._gl.VALIDATE_STATUS)))throw c.log(this._gl.getProgramInfoLog(this.handle)),(t=new Error("RuntimeError:Program validation error")).name="RuntimeError",t;return null},a.prototype.draw=function(t,e){var r,n,o,a,s;if(!g(this._linked))throw(n=new Error("RuntimeError:Cannot draw program if code has not been set")).name="RuntimeError",n;return u(this._gl,"before draw"),g(e instanceof i)?(this._pre_draw(),e.activate(),r=e._buffer_size/2,a=this._gl.UNSIGNED_SHORT,this._gl.drawElements(t,r,a,0),e.deactivate()):(o=(s=e)[0],r=s[1],g(r)&&(this._pre_draw(),this._gl.drawArrays(t,o,r))),u(this._gl,"after draw"),null},((n=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,n.prototype._class_name="Buffer",n.prototype._target=null,n.prototype._usage=35048,n.prototype._create=function(){return this.handle=this._gl.createBuffer(),this._buffer_size=0,null},n.prototype.delete=function(){return this._gl.deleteBuffer(this.handle),null},n.prototype.activate=function(){return this._gl.bindBuffer(this._target,this.handle),null},n.prototype.deactivate=function(){return this._gl.bindBuffer(this._target,null),null},n.prototype.set_size=function(t){return p(t,this._buffer_size)||(this.activate(),this._gl.bufferData(this._target,t,this._usage),this._buffer_size=t),null},n.prototype.set_data=function(t,e){return this.activate(),this._gl.bufferSubData(this._target,t,e),null},(h=function(){d(this,arguments)}).prototype=Object.create(n.prototype),h.prototype._base_class=n.prototype,h.prototype._class_name="VertexBuffer",h.prototype._target=34962,(i=function(){d(this,arguments)}).prototype=Object.create(n.prototype),i.prototype._base_class=n.prototype,i.prototype._class_name="IndexBuffer",i.prototype._target=34963,((s=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,s.prototype._class_name="Texture2D",s.prototype._target=3553,s.prototype._types={Int8Array:5120,Uint8Array:5121,Int16Array:5122,Uint16Array:5123,Int32Array:5124,Uint32Array:5125,Float32Array:5126},s.prototype._create=function(){return this.handle=this._gl.createTexture(),this._shape_format=null,null},s.prototype.delete=function(){return this._gl.deleteTexture(this.handle),null},s.prototype.activate=function(){return this._gl.bindTexture(this._target,this.handle),null},s.prototype.deactivate=function(){return this._gl.bindTexture(this._target,0),null},s.prototype._get_alignment=function(t){var e,r,n;for("object"!=typeof(r=[4,8,2,1])||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n+=1)if(e=r[n],p(t%e,0))return e;return null},s.prototype.set_wrapping=function(t,e){return this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_S,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_T,e),null},s.prototype.set_interpolation=function(t,e){return this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_MIN_FILTER,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_MAG_FILTER,e),null},s.prototype.set_size=function(t,e){var r,n,o;return r=(n=t)[0],o=n[1],p([r,o,e],this._shape_format)||(this._shape_format=[r,o,e],this.activate(),this._gl.texImage2D(this._target,0,e,o,r,0,e,this._gl.UNSIGNED_BYTE,null)),this.u_shape=[r,o],null},s.prototype.set_data=function(t,e,r){var n,o,i,a,s,l,h,u,c,_;if(p(e.length,2)&&(e=[e[0],e[1],1]),this.activate(),i=this._shape_format[2],s=(l=e)[0],u=l[1],l[2],_=(h=t)[0],c=h[1],null===(a=m.call(this._types,r.constructor.name,null)))throw(o=new Error("ValueError:Type "+r.constructor.name+" not allowed for texture")).name="ValueError",o;return n=this._get_alignment(y(e[e.length-2],e[e.length-1])),p(n,4)||this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,n),this._gl.texSubImage2D(this._target,0,c,_,u,s,i,a,r),p(n,4)||this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,4),null},((l=function(){d(this,arguments)}).prototype=Object.create(s.prototype))._base_class=s.prototype,l.prototype._class_name="Texture3DLike",l.prototype.GLSL_SAMPLE_NEAREST="\n vec4 sample3D(sampler2D tex, vec3 texcoord, vec3 shape, vec2 tiles) {\n shape.xyz = shape.zyx; // silly row-major convention\n float nrows = tiles.y, ncols = tiles.x;\n // Don’t let adjacent frames be interpolated into this one\n texcoord.x = min(texcoord.x * shape.x, shape.x - 0.5);\n texcoord.x = max(0.5, texcoord.x) / shape.x;\n texcoord.y = min(texcoord.y * shape.y, shape.y - 0.5);\n texcoord.y = max(0.5, texcoord.y) / shape.y;\n\n float zindex = floor(texcoord.z * shape.z);\n\n // Do a lookup in the 2D texture\n float u = (mod(zindex, ncols) + texcoord.x) / ncols;\n float v = (floor(zindex / ncols) + texcoord.y) / nrows;\n\n return texture2D(tex, vec2(u,v));\n }\n ",l.prototype.GLSL_SAMPLE_LINEAR="\n vec4 sample3D(sampler2D tex, vec3 texcoord, vec3 shape, vec2 tiles) {\n shape.xyz = shape.zyx; // silly row-major convention\n float nrows = tiles.y, ncols = tiles.x;\n // Don’t let adjacent frames be interpolated into this one\n texcoord.x = min(texcoord.x * shape.x, shape.x - 0.5);\n texcoord.x = max(0.5, texcoord.x) / shape.x;\n texcoord.y = min(texcoord.y * shape.y, shape.y - 0.5);\n texcoord.y = max(0.5, texcoord.y) / shape.y;\n\n float z = texcoord.z * shape.z;\n float zindex1 = floor(z);\n float u1 = (mod(zindex1, ncols) + texcoord.x) / ncols;\n float v1 = (floor(zindex1 / ncols) + texcoord.y) / nrows;\n\n float zindex2 = zindex1 + 1.0;\n float u2 = (mod(zindex2, ncols) + texcoord.x) / ncols;\n float v2 = (floor(zindex2 / ncols) + texcoord.y) / nrows;\n\n vec4 s1 = texture2D(tex, vec2(u1, v1));\n vec4 s2 = texture2D(tex, vec2(u2, v2));\n\n return s1 * (zindex2 - z) + s2 * (z - zindex1);\n }\n ",l.prototype._get_tile_info=function(t){var e,r,n,o;if(r=this._gl.getParameter(this._gl.MAX_TEXTURE_SIZE),o=Math.floor(r/t[1]),o=Math.min(o,t[0]),n=window.Math.ceil(t[0]/o),g(y(n,t[2])>r))throw(e=new Error("RuntimeError:Cannot fit 3D data with shape "+t+" onto simulated 2D texture.")).name="RuntimeError",e;return[o,n]},l.prototype.set_size=function(t,e){var r,n,o,i;return n=(i=this._get_tile_info(t))[0],r=i[1],o=[y(t[1],n),y(t[2],r)],l.prototype._base_class.set_size.call(this,o,e),this.u_shape=[t[0],t[1],t[2]],this.u_tiles=[r,n],null},l.prototype.set_data=function(t,e,r){var n,o,i,a,s,h,u,c,_,f,d,v;if(p(e.length,3)&&(e=[e[0],e[1],e[2],1]),!function(t){for(var e=0;e<t.length;e++)if(!g(t[e]))return!1;return!0}(function(){var e,r,n,o=[];for("object"!=typeof(r=t)||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n++)e=r[n],o.push(p(e,0));return o}.apply(this)))throw(i=new Error("ValueError:Texture3DLike does not support nonzero offset (for now)")).name="ValueError",i;if(s=(c=this._get_tile_info(e))[0],a=c[1],u=[y(e[1],s),y(e[2],a),e[3]],p(a,1))l.prototype._base_class.set_data.call(this,[0,0],u,r);else for(v=new(0,r.constructor)(y(y(u[0],u[1]),u[2])),l.prototype._base_class.set_data.call(this,[0,0],u,v),d=0;d<e[0];d+=1)h=(_=[Math.floor(d/a),d%a])[0],n=_[1],o=Math.floor(r.length/e[0]),f=r.slice(y(d,o),y(d+1,o)),l.prototype._base_class.set_data.call(this,[y(h,e[1]),y(n,e[2])],e.slice(1),f);return null},e.exports={Buffer:n,GlooObject:o,IndexBuffer:i,Program:a,Texture2D:s,Texture3DLike:l,VertexBuffer:h,check_error:u,console:c}},n”, ” 361: function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const r=e(21),s=e(70);class i{constructor(e,t){this.gl=e,this.glyph=t,this.nvertices=0,this.size_changed=!1,this.data_changed=!1,this.visuals_changed=!1,this.init()}set_data_changed(e){e!=this.nvertices&&(this.nvertices=e,this.size_changed=!0),this.data_changed=!0}set_visuals_changed(){this.visuals_changed=!0}render(e,t,a){if(0==t.length)return!0;const[r,i,n]=[0,1,2];let l=1,h=1,[c,o]=this.glyph.renderer.map_to_screen([r*l,i*l,n*l],[r*h,i*h,n*h]);if(isNaN(c[0]+c[1]+c[2]+o[0]+o[1]+o[2]))return s.logger.warn(WebGL backend (${this.glyph.model.type}): falling back to canvas rendering),!1;if(l=100/Math.min(Math.max(Math.abs(c[1]-c[0]),1e-12),1e12),h=100/Math.min(Math.max(Math.abs(o[1]-o[0]),1e-12),1e12),[c,o]=this.glyph.renderer.map_to_screen([r*l,i*l,n*l],[r*h,i*h,n*h]),Math.abs(c[1]-c[0]-(c[2]-c[1]))>1e-6||Math.abs(o[1]-o[0]-(o[2]-o[1]))>1e-6)return s.logger.warn(WebGL backend (${this.glyph.model.type}): falling back to canvas rendering),!1;const[_,u]=[(c[1]-c[0])/l,(o[1]-o[0])/h],{width:d,height:g}=this.glyph.renderer.plot_view.canvas_view.webgl.canvas,f={pixel_ratio:this.glyph.renderer.plot_view.canvas.pixel_ratio,width:d,height:g,dx:c[0]/_,dy:o[0]/u,sx:_,sy:u};return this.draw(t,a,f),!0}}function n(e,t){const a=new Float32Array(e);for(let r=0,s=e;r<s;r++)a[r]=t;return a}function l(e,t){return void 0!==e[t].spec.value}a.BaseGLGlyph=i,i.__name__="BaseGLGlyph",a.line_width=function(e){return e<2&&(e=Math.sqrt(2*e)),e},a.fill_array_with_float=n,a.fill_array_with_vec=function(e,t,a){const r=new Float32Array(e*t);for(let s=0;s<e;s++)for(let e=0;e<t;e++)r[s*t+e]=a[e];return r},a.visual_prop_is_singular=l,a.attach_float=function(e,t,a,r,s,i){if(s.doit)if(l(s,i))t.used=!1,e.set_attribute(a,"float",s[i].value());else{t.used=!0;const n=new Float32Array(s.cache[i+"_array"]);t.set_size(4*r),t.set_data(0,n),e.set_attribute(a,"float",t)}else t.used=!1,e.set_attribute(a,"float",[0])},a.attach_color=function(e,t,a,s,i,h){let c;const o=h+"_color",_=h+"_alpha";if(i.doit)if(l(i,o)&&l(i,_))t.used=!1,c=r.color2rgba(i[o].value(),i[_].value()),e.set_attribute(a,"vec4",c);else{let h,u;t.used=!0,u=l(i,o)?(()=>{const e=[];for(let t=0,a=s;t<a;t++)e.push(i[o].value());return e})():i.cache[o+"_array"],h=l(i,_)?n(s,i[_].value()):i.cache[_+"_array"];const d=new Float32Array(4*s);for(let e=0,t=s;e<t;e++){c=r.color2rgba(u[e],h[e]);for(let t=0,a=4;t<a;t++)d[4*e+t]=c[t]}t.set_size(4*s*4),t.set_data(0,d),e.set_attribute(a,"vec4",t)}else t.used=!1,e.set_attribute(a,"vec4",[0,0,0,0])}},n”, ” 362: function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.vertex_shader="\nprecision mediump float;\n\nconst float PI = 3.14159265358979323846264;\nconst float THETA = 15.0 * 3.14159265358979323846264/180.0;\n\nuniform float u_pixel_ratio;\nuniform vec2 u_canvas_size, u_offset;\nuniform vec2 u_scale_aspect;\nuniform float u_scale_length;\n\nuniform vec4 u_color;\nuniform float u_antialias;\nuniform float u_length;\nuniform float u_linewidth;\nuniform float u_dash_index;\nuniform float u_closed;\n\nattribute vec2 a_position;\nattribute vec4 a_tangents;\nattribute vec2 a_segment;\nattribute vec2 a_angles;\nattribute vec2 a_texcoord;\n\nvarying vec4 v_color;\nvarying vec2 v_segment;\nvarying vec2 v_angles;\nvarying vec2 v_texcoord;\nvarying vec2 v_miter;\nvarying float v_length;\nvarying float v_linewidth;\n\nfloat cross(in vec2 v1, in vec2 v2)\n{\n return v1.x*v2.y - v1.y*v2.x;\n}\n\nfloat signed_distance(in vec2 v1, in vec2 v2, in vec2 v3)\n{\n return cross(v2-v1,v1-v3) / length(v2-v1);\n}\n\nvoid rotate( in vec2 v, in float alpha, out vec2 result )\n{\n float c = cos(alpha);\n float s = sin(alpha);\n result = vec2( c*v.x - s*v.y,\n s*v.x + c*v.y );\n}\n\nvoid main()\n{\n bool closed = (u_closed > 0.0);\n\n // Attributes and uniforms to varyings\n v_color = u_color;\n v_linewidth = u_linewidth;\n v_segment = a_segment * u_scale_length;\n v_length = u_length * u_scale_length;\n\n // Scale to map to pixel coordinates. The original algorithm from the paper\n // assumed isotropic scale. We obviously do not have this.\n vec2 abs_scale_aspect = abs(u_scale_aspect);\n vec2 abs_scale = u_scale_length * abs_scale_aspect;\n\n // Correct angles for aspect ratio\n vec2 av;\n av = vec2(1.0, tan(a_angles.x)) / abs_scale_aspect;\n v_angles.x = atan(av.y, av.x);\n av = vec2(1.0, tan(a_angles.y)) / abs_scale_aspect;\n v_angles.y = atan(av.y, av.x);\n\n // Thickness below 1 pixel are represented using a 1 pixel thickness\n // and a modified alpha\n v_color.a = min(v_linewidth, v_color.a);\n v_linewidth = max(v_linewidth, 1.0);\n\n // If color is fully transparent we just will discard the fragment anyway\n if( v_color.a <= 0.0 ) {\n gl_Position = vec4(0.0,0.0,0.0,1.0);\n return;\n }\n\n // This is the actual half width of the line\n float w = ceil(u_antialias+v_linewidth)/2.0;\n\n vec2 position = (a_position + u_offset) * abs_scale;\n\n vec2 t1 = normalize(a_tangents.xy * abs_scale_aspect); // note the scaling for aspect ratio here\n vec2 t2 = normalize(a_tangents.zw * abs_scale_aspect);\n float u = a_texcoord.x;\n float v = a_texcoord.y;\n vec2 o1 = vec2( +t1.y, -t1.x);\n vec2 o2 = vec2( +t2.y, -t2.x);\n\n // This is a join\n // —————————————————————-\n if( t1 != t2 ) {\n float angle = atan (t1.x*t2.y-t1.y*t2.x, t1.x*t2.x+t1.y*t2.y); // Angle needs recalculation for some reason\n vec2 t = normalize(t1+t2);\n vec2 o = vec2( + t.y, - t.x);\n\n if ( u_dash_index > 0.0 )\n {\n // Broken angle\n // —————————————————————-\n if( (abs(angle) > THETA) ) {\n position += v * w * o / cos(angle/2.0);\n float s = sign(angle);\n if( angle < 0.0 ) {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n if( v == 1.0 ) {\n position -= 2.0 * w * t1 / sin(angle);\n u -= 2.0 * w / sin(angle);\n }\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n if( v == 1.0 ) {\n position += 2.0 * w * t2 / sin(angle);\n u += 2.0*w / sin(angle);\n }\n }\n } else {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n if( v == -1.0 ) {\n position += 2.0 * w * t1 / sin(angle);\n u += 2.0 * w / sin(angle);\n }\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n if( v == -1.0 ) {\n position -= 2.0 * w * t2 / sin(angle);\n u -= 2.0*w / sin(angle);\n }\n }\n }\n // Continuous angle\n // ————————————————————\n } else {\n position += v * w * o / cos(angle/2.0);\n if( u == +1.0 ) u = v_segment.y;\n else u = v_segment.x;\n }\n }\n\n // Solid line\n // ——————————————————————–\n else\n {\n position.xy += v * w * o / cos(angle/2.0);\n if( angle < 0.0 ) {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n }\n } else {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n }\n }\n }\n\n // This is a line start or end (t1 == t2)\n // ————————————————————————\n } else {\n position += v * w * o1;\n if( u == -1.0 ) {\n u = v_segment.x - w;\n position -= w * t1;\n } else {\n u = v_segment.y + w;\n position += w * t2;\n }\n }\n\n // Miter distance\n // ————————————————————————\n vec2 t;\n vec2 curr = a_position * abs_scale;\n if( a_texcoord.x < 0.0 ) {\n vec2 next = curr + t2*(v_segment.y-v_segment.x);\n\n rotate( t1, +v_angles.x/2.0, t);\n v_miter.x = signed_distance(curr, curr+t, position);\n\n rotate( t2, +v_angles.y/2.0, t);\n v_miter.y = signed_distance(next, next+t, position);\n } else {\n vec2 prev = curr - t1*(v_segment.y-v_segment.x);\n\n rotate( t1, -v_angles.x/2.0,t);\n v_miter.x = signed_distance(prev, prev+t, position);\n\n rotate( t2, -v_angles.y/2.0,t);\n v_miter.y = signed_distance(curr, curr+t, position);\n }\n\n if (!closed && v_segment.x <= 0.0) {\n v_miter.x = 1e10;\n }\n if (!closed && v_segment.y >= v_length)\n {\n v_miter.y = 1e10;\n }\n\n v_texcoord = vec2( u, v*w );\n\n // Calculate position in device coordinates. Note that we\n // already scaled with abs scale above.\n vec2 normpos = position * sign(u_scale_aspect);\n normpos += 0.5; // make up for Bokeh’s offset\n normpos /= u_canvas_size / u_pixel_ratio; // in 0..1\n gl_Position = vec4(normpos*2.0-1.0, 0.0, 1.0);\n gl_Position.y = -1.0;\n}\n"},n”, ” 363: function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.fragment_shader="\nprecision mediump float;\n\nconst float PI = 3.14159265358979323846264;\nconst float THETA = 15.0 * 3.14159265358979323846264/180.0;\n\nuniform sampler2D u_dash_atlas;\n\nuniform vec2 u_linecaps;\nuniform float u_miter_limit;\nuniform float u_linejoin;\nuniform float u_antialias;\nuniform float u_dash_phase;\nuniform float u_dash_period;\nuniform float u_dash_index;\nuniform vec2 u_dash_caps;\nuniform float u_closed;\n\nvarying vec4 v_color;\nvarying vec2 v_segment;\nvarying vec2 v_angles;\nvarying vec2 v_texcoord;\nvarying vec2 v_miter;\nvarying float v_length;\nvarying float v_linewidth;\n\n// Compute distance to cap —————————————————-\nfloat cap( int type, float dx, float dy, float t, float linewidth )\n{\n float d = 0.0;\n dx = abs(dx);\n dy = abs(dy);\n if (type == 0) discard; // None\n else if (type == 1) d = sqrt(dx*dx+dy*dy); // Round\n else if (type == 3) d = (dx+abs(dy)); // Triangle in\n else if (type == 2) d = max(abs(dy),(t+dx-abs(dy))); // Triangle out\n else if (type == 4) d = max(dx,dy); // Square\n else if (type == 5) d = max(dx+t,dy); // Butt\n return d;\n}\n\n// Compute distance to join ————————————————-\nfloat join( in int type, in float d, in vec2 segment, in vec2 texcoord, in vec2 miter,\n in float linewidth )\n{\n // texcoord.x is distance from start\n // texcoord.y is distance from centerline\n // segment.x and y indicate the limits (as for texcoord.x) for this segment\n\n float dx = texcoord.x;\n\n // Round join\n if( type == 1 ) {\n if (dx < segment.x) {\n d = max(d,length( texcoord - vec2(segment.x,0.0)));\n //d = length( texcoord - vec2(segment.x,0.0));\n } else if (dx > segment.y) {\n d = max(d,length( texcoord - vec2(segment.y,0.0)));\n //d = length( texcoord - vec2(segment.y,0.0));\n }\n }\n // Bevel join\n else if ( type == 2 ) {\n if (dx < segment.x) {\n vec2 x = texcoord - vec2(segment.x,0.0);\n d = max(d, max(abs(x.x), abs(x.y)));\n\n } else if (dx > segment.y) {\n vec2 x = texcoord - vec2(segment.y,0.0);\n d = max(d, max(abs(x.x), abs(x.y)));\n }\n / Original code for bevel which does not work for us\n if( (dx < segment.x) || (dx > segment.y) )\n d = max(d, min(abs(x.x),abs(x.y)));\n /\n }\n\n return d;\n}\n\nvoid main()\n{\n // If color is fully transparent we just discard the fragment\n if( v_color.a <= 0.0 ) {\n discard;\n }\n\n // Test if dash pattern is the solid one (0)\n bool solid = (u_dash_index == 0.0);\n\n // Test if path is closed\n bool closed = (u_closed > 0.0);\n\n vec4 color = v_color;\n float dx = v_texcoord.x;\n float dy = v_texcoord.y;\n float t = v_linewidth/2.0-u_antialias;\n float width = 1.0; //v_linewidth; original code had dashes scale with line width, we do not\n float d = 0.0;\n\n vec2 linecaps = u_linecaps;\n vec2 dash_caps = u_dash_caps;\n float line_start = 0.0;\n float line_stop = v_length;\n\n // Apply miter limit; fragments too far into the miter are simply discarded\n if( (dx < v_segment.x) || (dx > v_segment.y) ) {\n float into_miter = max(v_segment.x - dx, dx - v_segment.y);\n if (into_miter > u_miter_limit*v_linewidth/2.0)\n discard;\n }\n\n // Solid line ————————————————————–\n if( solid ) {\n d = abs(dy);\n if( (!closed) && (dx < line_start) ) {\n d = cap( int(u_linecaps.x), abs(dx), abs(dy), t, v_linewidth );\n }\n else if( (!closed) && (dx > line_stop) ) {\n d = cap( int(u_linecaps.y), abs(dx)-line_stop, abs(dy), t, v_linewidth );\n }\n else {\n d = join( int(u_linejoin), abs(dy), v_segment, v_texcoord, v_miter, v_linewidth );\n }\n\n // Dash line ————————————————————–\n } else {\n float segment_start = v_segment.x;\n float segment_stop = v_segment.y;\n float segment_center= (segment_start+segment_stop)/2.0;\n float freq = u_dash_period*width;\n float u = mod( dx + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n float dash_center= tex.x * width;\n float dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n float dash_start = dx - u + _start;\n float dash_stop = dx - u + _stop;\n\n // Compute extents of the first dash (the one relative to v_segment.x)\n // Note: this could be computed in the vertex shader\n if( (dash_stop < segment_start) && (dash_caps.x != 5.0) ) {\n float u = mod(segment_start + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n dash_center= tex.x * width;\n //dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n dash_start = segment_start - u + _start;\n dash_stop = segment_start - u + _stop;\n }\n\n // Compute extents of the last dash (the one relatives to v_segment.y)\n // Note: This could be computed in the vertex shader\n else if( (dash_start > segment_stop) && (dash_caps.y != 5.0) ) {\n float u = mod(segment_stop + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n dash_center= tex.x * width;\n //dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n dash_start = segment_stop - u + _start;\n dash_stop = segment_stop - u + _stop;\n }\n\n // This test if the we are dealing with a discontinuous angle\n bool discontinuous = ((dx < segment_center) && abs(v_angles.x) > THETA) ||\n ((dx >= segment_center) && abs(v_angles.y) > THETA);\n //if( dx < line_start) discontinuous = false;\n //if( dx > line_stop) discontinuous = false;\n\n float d_join = join( int(u_linejoin), abs(dy),\n v_segment, v_texcoord, v_miter, v_linewidth );\n\n // When path is closed, we do not have room for linecaps, so we make room\n // by shortening the total length\n if (closed) {\n line_start += v_linewidth/2.0;\n line_stop -= v_linewidth/2.0;\n }\n\n // We also need to take antialias area into account\n //line_start += u_antialias;\n //line_stop -= u_antialias;\n\n // Check is dash stop is before line start\n if( dash_stop <= line_start ) {\n discard;\n }\n // Check is dash start is beyond line stop\n if( dash_start >= line_stop ) {\n discard;\n }\n\n // Check if current dash start is beyond segment stop\n if( discontinuous ) {\n // Dash start is beyond segment, we discard\n if( (dash_start > segment_stop) ) {\n discard;\n //gl_FragColor = vec4(1.0,0.0,0.0,.25); return;\n }\n\n // Dash stop is before segment, we discard\n if( (dash_stop < segment_start) ) {\n discard; //gl_FragColor = vec4(0.0,1.0,0.0,.25); return;\n }\n\n // Special case for round caps (nicer with this)\n if( dash_caps.x == 1.0 ) {\n if( (u > _stop) && (dash_stop > segment_stop ) && (abs(v_angles.y) < PI/2.0)) {\n discard;\n }\n }\n\n // Special case for round caps (nicer with this)\n if( dash_caps.y == 1.0 ) {\n if( (u < _start) && (dash_start < segment_start ) && (abs(v_angles.x) < PI/2.0)) {\n discard;\n }\n }\n\n // Special case for triangle caps (in & out) and square\n // We make sure the cap stop at crossing frontier\n if( (dash_caps.x != 1.0) && (dash_caps.x != 5.0) ) {\n if( (dash_start < segment_start ) && (abs(v_angles.x) < PI/2.0) ) {\n float a = v_angles.x/2.0;\n float x = (segment_start-dx)*cos(a) - dy*sin(a);\n float y = (segment_start-dx)*sin(a) + dy*cos(a);\n if( x > 0.0 ) discard;\n // We transform the cap into square to avoid holes\n dash_caps.x = 4.0;\n }\n }\n\n // Special case for triangle caps (in & out) and square\n // We make sure the cap stop at crossing frontier\n if( (dash_caps.y != 1.0) && (dash_caps.y != 5.0) ) {\n if( (dash_stop > segment_stop ) && (abs(v_angles.y) < PI/2.0) ) {\n float a = v_angles.y/2.0;\n float x = (dx-segment_stop)*cos(a) - dy*sin(a);\n float y = (dx-segment_stop)*sin(a) + dy*cos(a);\n if( x > 0.0 ) discard;\n // We transform the caps into square to avoid holes\n dash_caps.y = 4.0;\n }\n }\n }\n\n // Line cap at start\n if( (dx < line_start) && (dash_start < line_start) && (dash_stop > line_start) ) {\n d = cap( int(linecaps.x), dx-line_start, dy, t, v_linewidth);\n }\n // Line cap at stop\n else if( (dx > line_stop) && (dash_stop > line_stop) && (dash_start < line_stop) ) {\n d = cap( int(linecaps.y), dx-line_stop, dy, t, v_linewidth);\n }\n // Dash cap left - dash_type = -1, 0 or 1, but there may be roundoff errors\n else if( dash_type < -0.5 ) {\n d = cap( int(dash_caps.y), abs(u-dash_center), dy, t, v_linewidth);\n if( (dx > line_start) && (dx < line_stop) )\n d = max(d,d_join);\n }\n // Dash cap right\n else if( dash_type > 0.5 ) {\n d = cap( int(dash_caps.x), abs(dash_center-u), dy, t, v_linewidth);\n if( (dx > line_start) && (dx < line_stop) )\n d = max(d,d_join);\n }\n // Dash body (plain)\n else {// if( dash_type > -0.5 && dash_type < 0.5) {\n d = abs(dy);\n }\n\n // Line join\n if( (dx > line_start) && (dx < line_stop)) {\n if( (dx <= segment_start) && (dash_start <= segment_start)\n && (dash_stop >= segment_start) ) {\n d = d_join;\n // Antialias at outer border\n float angle = PI/2.+v_angles.x;\n float f = abs( (segment_start - dx)*cos(angle) - dy*sin(angle));\n d = max(f,d);\n }\n else if( (dx > segment_stop) && (dash_start <= segment_stop)\n && (dash_stop >= segment_stop) ) {\n d = d_join;\n // Antialias at outer border\n float angle = PI/2.+v_angles.y;\n float f = abs((dx - segment_stop)*cos(angle) - dy*sin(angle));\n d = max(f,d);\n }\n else if( dx < (segment_start - v_linewidth/2.)) {\n discard;\n }\n else if( dx > (segment_stop + v_linewidth/2.)) {\n discard;\n }\n }\n else if( dx < (segment_start - v_linewidth/2.)) {\n discard;\n }\n else if( dx > (segment_stop + v_linewidth/2.)) {\n discard;\n }\n }\n\n // Distance to border ——————————————————\n d = d - t;\n if( d < 0.0 ) {\n gl_FragColor = color;\n } else {\n d /= u_antialias;\n gl_FragColor = vec4(color.rgb, exp(-d*d)*color.a);\n }\n}\n"},n”, ” 364: function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),a=t(360),r=t(361),o=t(365),_=t(366),h=t(212),l=t(12),n=t(70);class g extends r.BaseGLGlyph{init(){const{gl:t}=this,s=o.vertex_shader,e=_.fragment_shader(this._marker_code);this.prog=new a.Program(t),this.prog.set_shaders(s,e),this.vbo_x=new a.VertexBuffer(t),this.prog.set_attribute("a_x","float",this.vbo_x),this.vbo_y=new a.VertexBuffer(t),this.prog.set_attribute("a_y","float",this.vbo_y),this.vbo_s=new a.VertexBuffer(t),this.prog.set_attribute("a_size","float",this.vbo_s),this.vbo_a=new a.VertexBuffer(t),this.prog.set_attribute("a_angle","float",this.vbo_a),this.vbo_linewidth=new a.VertexBuffer(t),this.vbo_fg_color=new a.VertexBuffer(t),this.vbo_bg_color=new a.VertexBuffer(t),this.index_buffer=new a.IndexBuffer(t)}draw(t,s,e){const i=s.glglyph,{nvertices:a}=i;if(i.data_changed){if(!isFinite(e.dx)||!isFinite(e.dy))return;i._baked_offset=[e.dx,e.dy],i._set_data(a),i.data_changed=!1}else this.glyph instanceof h.CircleView&&null!=this.glyph._radius&&(null==this.last_trans||e.sx!=this.last_trans.sx||e.sy!=this.last_trans.sy)&&(this.last_trans=e,this.vbo_s.set_data(0,new Float32Array(l.map(this.glyph.sradius,t=>2*t))));this.visuals_changed&&(this._set_visuals(a),this.visuals_changed=!1);const r=i._baked_offset;if(this.prog.set_uniform("u_pixel_ratio","float",[e.pixel_ratio]),this.prog.set_uniform("u_canvas_size","vec2",[e.width,e.height]),this.prog.set_uniform("u_offset","vec2",[e.dx-r[0],e.dy-r[1]]),this.prog.set_uniform("u_scale","vec2",[e.sx,e.sy]),this.prog.set_attribute("a_x","float",i.vbo_x),this.prog.set_attribute("a_y","float",i.vbo_y),this.prog.set_attribute("a_size","float",i.vbo_s),this.prog.set_attribute("a_angle","float",i.vbo_a),0!=t.length)if(t.length===a)this.prog.draw(this.gl.POINTS,[0,a]);else if(a<65535){const s=window.navigator.userAgent;s.indexOf("MSIE ")+s.indexOf("Trident/")+s.indexOf("Edge/")>0&&n.logger.warn("WebGL warning: IE is known to produce 1px sprites whith selections."),this.index_buffer.set_size(2*t.length),this.index_buffer.set_data(0,new Uint16Array(t)),this.prog.draw(this.gl.POINTS,this.index_buffer)}else{const s=64e3,e=[];for(let t=0,i=Math.ceil(a/s);t<i;t++)e.push([]);for(let i=0,a=t.length;i<a;i++){const a=t[i]%s;e[Math.floor(t[i]/s)].push(a)}for(let t=0,a=e.length;t<a;t++){const a=new Uint16Array(e[t]),r=t*s*4;0!==a.length&&(this.prog.set_attribute("a_x","float",i.vbo_x,0,r),this.prog.set_attribute("a_y","float",i.vbo_y,0,r),this.prog.set_attribute("a_size","float",i.vbo_s,0,r),this.prog.set_attribute("a_angle","float",i.vbo_a,0,r),this.vbo_linewidth.used&&this.prog.set_attribute("a_linewidth","float",this.vbo_linewidth,0,r),this.vbo_fg_color.used&&this.prog.set_attribute("a_fg_color","vec4",this.vbo_fg_color,0,4*r),this.vbo_bg_color.used&&this.prog.set_attribute("a_bg_color","vec4",this.vbo_bg_color,0,4*r),this.index_buffer.set_size(2*a.length),this.index_buffer.set_data(0,a),this.prog.draw(this.gl.POINTS,this.index_buffer))}}}_set_data(t){const s=4*t;this.vbo_x.set_size(s),this.vbo_y.set_size(s),this.vbo_a.set_size(s),this.vbo_s.set_size(s);const e=new Float64Array(this.glyph._x),i=new Float64Array(this.glyph._y);for(let s=0,a=t;s<a;s++)e[s]+=this._baked_offset[0],i[s]+=this._baked_offset[1];this.vbo_x.set_data(0,new Float32Array(e)),this.vbo_y.set_data(0,new Float32Array(i)),null!=this.glyph._angle&&this.vbo_a.set_data(0,new Float32Array(this.glyph._angle)),this.glyph instanceof h.CircleView&&null!=this.glyph._radius?this.vbo_s.set_data(0,new Float32Array(l.map(this.glyph.sradius,t=>2*t))):this.vbo_s.set_data(0,new Float32Array(this.glyph._size))}_set_visuals(t){r.attach_float(this.prog,this.vbo_linewidth,"a_linewidth",t,this.glyph.visuals.line,"line_width"),r.attach_color(this.prog,this.vbo_fg_color,"a_fg_color",t,this.glyph.visuals.line,"line"),r.attach_color(this.prog,this.vbo_bg_color,"a_bg_color",t,this.glyph.visuals.fill,"fill"),this.prog.set_uniform("u_antialias","float",[.8])}}function f(t){return class extends g{get _marker_code(){return t}}}e.MarkerGLGlyph=g,g.__name__="MarkerGLGlyph";const d=i.__importStar(t(366));e.CircleGLGlyph=f(d.circle),e.SquareGLGlyph=f(d.square),e.DiamondGLGlyph=f(d.diamond),e.TriangleGLGlyph=f(d.triangle),e.InvertedTriangleGLGlyph=f(d.invertedtriangle),e.HexGLGlyph=f(d.hex),e.CrossGLGlyph=f(d.cross),e.CircleCrossGLGlyph=f(d.circlecross),e.SquareCrossGLGlyph=f(d.squarecross),e.DiamondCrossGLGlyph=f(d.diamondcross),e.XGLGlyph=f(d.x),e.CircleXGLGlyph=f(d.circlex),e.SquareXGLGlyph=f(d.squarex),e.AsteriskGLGlyph=f(d.asterisk)},n”, ” 365: function _(n,i,a){Object.defineProperty(a,"__esModule",{value:!0}),a.vertex_shader="\nprecision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\n//\nuniform float u_pixel_ratio;\nuniform vec2 u_canvas_size;\nuniform vec2 u_offset;\nuniform vec2 u_scale;\nuniform float u_antialias;\n//\nattribute float a_x;\nattribute float a_y;\nattribute float a_size;\nattribute float a_angle; // in radians\nattribute float a_linewidth;\nattribute vec4 a_fg_color;\nattribute vec4 a_bg_color;\n//\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec4 v_fg_color;\nvarying vec4 v_bg_color;\nvarying vec2 v_rotation;\n\nvoid main (void)\n{\n v_size = a_size * u_pixel_ratio;\n v_linewidth = a_linewidth * u_pixel_ratio;\n v_fg_color = a_fg_color;\n v_bg_color = a_bg_color;\n v_rotation = vec2(cos(-a_angle), sin(-a_angle));\n // Calculate position - the -0.5 is to correct for canvas origin\n vec2 pos = (vec2(a_x, a_y) + u_offset) * u_scale; // in pixels\n pos += 0.5; // make up for Bokeh’s offset\n pos /= u_canvas_size / u_pixel_ratio; // in 0..1\n gl_Position = vec4(pos*2.0-1.0, 0.0, 1.0);\n gl_Position.y *= -1.0;\n gl_PointSize = SQRT_2 * v_size + 2.0 * (v_linewidth + 1.5*u_antialias);\n}\n"},n”, ” 366: function _(a,n,s){Object.defineProperty(s,"__esModule",{value:!0}),s.fragment_shader=a=>`\nprecision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\nconst float PI = 3.14159265358979323846264;\n//\nuniform float u_antialias;\n//\nvarying vec4 v_fg_color;\nvarying vec4 v_bg_color;\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec2 v_rotation;\n\n${a}\n\nvec4 outline(float distance, float linewidth, float antialias, vec4 fg_color, vec4 bg_color)\n{\n vec4 frag_color;\n float t = linewidth/2.0 - antialias;\n float signed_distance = distance;\n float border_distance = abs(signed_distance) - t;\n float alpha = border_distance/antialias;\n alpha = exp(-alpha*alpha);\n\n // If fg alpha is zero, it probably means no outline. To avoid a dark outline\n // shining through due to aa, we set the fg color to the bg color. Avoid if (i.e. branching).\n float select = float(bool(fg_color.a));\n fg_color.rgb = select * fg_color.rgb + (1.0 - select) * bg_color.rgb;\n // Similarly, if we want a transparent bg\n select = float(bool(bg_color.a));\n bg_color.rgb = select * bg_color.rgb + (1.0 - select) * fg_color.rgb;\n\n if( border_distance < 0.0)\n frag_color = fg_color;\n else if( signed_distance < 0.0 ) {\n frag_color = mix(bg_color, fg_color, sqrt(alpha));\n } else {\n if( abs(signed_distance) < (linewidth/2.0 + antialias) ) {\n frag_color = vec4(fg_color.rgb, fg_color.a * alpha);\n } else {\n discard;\n }\n }\n return frag_color;\n}\n\nvoid main()\n{\n vec2 P = gl_PointCoord.xy - vec2(0.5, 0.5);\n P = vec2(v_rotation.x*P.x - v_rotation.y*P.y,\n v_rotation.y*P.x + v_rotation.x*P.y);\n float point_size = SQRT_2*v_size + 2.0 * (v_linewidth + 1.5*u_antialias);\n float distance = marker(P*point_size, v_size);\n gl_FragColor = outline(distance, v_linewidth, u_antialias, v_fg_color, v_bg_color);\n //gl_FragColor.rgb *= gl_FragColor.a; // pre-multiply alpha\n}\n`,s.circle="\nfloat marker(vec2 P, float size)\n{\n return length(P) - size/2.0;\n}\n",s.square="\nfloat marker(vec2 P, float size)\n{\n return max(abs(P.x), abs(P.y)) - size/2.0;\n}\n",s.diamond="\nfloat marker(vec2 P, float size)\n{\n float x = SQRT_2 / 2.0 * (P.x * 1.5 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.5 + P.y);\n float r1 = max(abs(x), abs(y)) - size / (2.0 * SQRT_2);\n return r1 / SQRT_2;\n}\n",s.hex="\nfloat marker(vec2 P, float size)\n{\n vec2 q = abs(P);\n return max(q.y * 0.57735 + q.x - 1.0 * size/2.0, q.y - 0.866 * size/2.0);\n}\n",s.triangle="\nfloat marker(vec2 P, float size)\n{\n P.y -= size * 0.3;\n float x = SQRT_2 / 2.0 * (P.x * 1.7 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.7 + P.y);\n float r1 = max(abs(x), abs(y)) - size / 1.6;\n float r2 = P.y;\n return max(r1 / SQRT_2, r2); // Intersect diamond with rectangle\n}\n",s.invertedtriangle="\nfloat marker(vec2 P, float size)\n{\n P.y += size * 0.3;\n float x = SQRT_2 / 2.0 * (P.x * 1.7 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.7 + P.y);\n float r1 = max(abs(x), abs(y)) - size / 1.6;\n float r2 = - P.y;\n return max(r1 / SQRT_2, r2); // Intersect diamond with rectangle\n}\n",s.cross=’\nfloat marker(vec2 P, float size)\n{\n float square = max(abs(P.x), abs(P.y)) - size / 2.5; // 2.5 is a tweak\n float cross = min(abs(P.x), abs(P.y)) - size / 100.0; // bit of "width" for aa\n return max(square, cross);\n}\n’,s.circlecross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float circle = length(P) - size/2.0;\n float c1 = max(circle, s1);\n float c2 = max(circle, s2);\n float c3 = max(circle, s3);\n float c4 = max(circle, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.squarecross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float square = max(abs(P.x), abs(P.y)) - size/2.0;\n float c1 = max(square, s1);\n float c2 = max(square, s2);\n float c3 = max(square, s3);\n float c4 = max(square, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.diamondcross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float x = SQRT_2 / 2.0 * (P.x * 1.5 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.5 + P.y);\n float diamond = max(abs(x), abs(y)) - size / (2.0 * SQRT_2);\n diamond /= SQRT_2;\n float c1 = max(diamond, s1);\n float c2 = max(diamond, s2);\n float c3 = max(diamond, s3);\n float c4 = max(diamond, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.x=’\nfloat marker(vec2 P, float size)\n{\n float circle = length(P) - size / 1.6;\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n return max(circle, X);\n}\n’,s.circlex=’\nfloat marker(vec2 P, float size)\n{\n float x = P.x - P.y;\n float y = P.x + P.y;\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(x - qs), abs(y - qs)) - qs;\n float s2 = max(abs(x + qs), abs(y - qs)) - qs;\n float s3 = max(abs(x - qs), abs(y + qs)) - qs;\n float s4 = max(abs(x + qs), abs(y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float circle = length(P) - size/2.0;\n float c1 = max(circle, s1);\n float c2 = max(circle, s2);\n float c3 = max(circle, s3);\n float c4 = max(circle, s4);\n // Union\n float almost = min(min(min(c1, c2), c3), c4);\n // In this case, the X is also outside of the main shape\n float Xmask = length(P) - size / 1.6; // a circle\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n return min(max(X, Xmask), almost);\n}\n’,s.squarex="\nfloat marker(vec2 P, float size)\n{\n float x = P.x - P.y;\n float y = P.x + P.y;\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(x - qs), abs(y - qs)) - qs;\n float s2 = max(abs(x + qs), abs(y - qs)) - qs;\n float s3 = max(abs(x - qs), abs(y + qs)) - qs;\n float s4 = max(abs(x + qs), abs(y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float square = max(abs(P.x), abs(P.y)) - size/2.0;\n float c1 = max(square, s1);\n float c2 = max(square, s2);\n float c3 = max(square, s3);\n float c4 = max(square, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.asterisk=’\nfloat marker(vec2 P, float size)\n{\n // Masks\n float diamond = max(abs(SQRT_2 / 2.0 * (P.x - P.y)), abs(SQRT_2 / 2.0 * (P.x + P.y))) - size / (2.0 * SQRT_2);\n float square = max(abs(P.x), abs(P.y)) - size / (2.0 * SQRT_2);\n // Shapes\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n float cross = min(abs(P.x), abs(P.y)) - size / 100.0; // bit of "width" for aa\n // Result is union of masked shapes\n return min(max(X, diamond), max(cross, square));\n}\n’},n”, ” }, 357, {"models/glyphs/webgl/main":357,"models/glyphs/webgl/index":358,"models/glyphs/webgl/line":359,"models/glyphs/webgl/base":361,"models/glyphs/webgl/line.vert":362,"models/glyphs/webgl/line.frag":363,"models/glyphs/webgl/markers":364,"models/glyphs/webgl/markers.vert":365,"models/glyphs/webgl/markers.frag":366}, {});n”, ” })n”, “n”, “n”, ” / END bokeh-gl.min.js /n”, ” },n”, ” n”, ” function(Bokeh) {n”, ” Bokeh.set_log_level("info");n”, ” },n”, ” n”, ” function(Bokeh) {n”, ” / BEGIN panel.min.js /n”, ” /!n”, ” * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn”, ” * All rights reserved.n”, ” * n”, ” * Redistribution and use in source and binary forms, with or without modification,n”, ” * are permitted provided that the following conditions are met:n”, ” * n”, ” * Redistributions of source code must retain the above copyright notice,n”, ” * this list of conditions and the following disclaimer.n”, ” * n”, ” * Redistributions in binary form must reproduce the above copyright notice,n”, ” * this list of conditions and the following disclaimer in the documentationn”, ” * and/or other materials provided with the distribution.n”, ” * n”, ” * Neither the name of Anaconda nor the names of any contributorsn”, ” * may be used to endorse or promote products derived from this softwaren”, ” * without specific prior written permission.n”, ” * n”, ” * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n”, ” * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn”, ” * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn”, ” * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn”, ” * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn”, ” * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn”, ” * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn”, ” * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn”, ” * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n”, ” * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn”, ” * THE POSSIBILITY OF SUCH DAMAGE.n”, ” /n”, ” (function(root, factory) {n”, ” factory(root["Bokeh"]);n”, ” })(this, function(Bokeh) {n”, ” var define;n”, ” return (function(modules, entry, aliases, externals) {n”, ” if (Bokeh != null) {n”, ” return Bokeh.register_plugin(modules, entry, aliases, externals);n”, ” } else {n”, ” throw new Error("Cannot find Bokeh. You have to load it prior to loading plugins.");n”, ” }n”, ” })n”, ” ({n”, ” "4e90918c0a": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e("tslib").__importStar(e("22ae8fda70"));o.Panel=s,e("@bokehjs/base").register_models(s)},n”, ” "22ae8fda70": function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});const o=a("tslib");var t=a("3343056bd8");r.AcePlot=t.AcePlot;var d=a("66d52165db");r.Audio=d.Audio;var l=a("71a9759436");r.CommManager=l.CommManager;var b=a("f6b9b1d914");r.DeckGLPlot=b.DeckGLPlot;var v=a("ae707e931d");r.HTML=v.HTML;var c=a("9ba5b8422a");r.JSON=c.JSON;var P=a("a94e371ba4");r.FileDownload=P.FileDownload;var f=a("7b859fb3cf");r.KaTeX=f.KaTeX;var i=a("0c21036737");r.MathJax=i.MathJax;var n=a("000f20fdd3");r.Player=n.Player;var s=a("2363c12dd6");r.PlotlyPlot=s.PlotlyPlot;var M=a("76307e5afa");r.Progress=M.Progress;var S=a("38b2bc9574");r.State=S.State;var g=a("90d1f929bd");r.VegaPlot=g.VegaPlot;var m=a("b0c3e9e9c2");r.Video=m.Video;var V=a("3c7145a2fa");r.VideoStream=V.VideoStream,o.__exportStar(a("ecfbb965eb"),r)},n”, ” "3343056bd8": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),n=e("@bokehjs/core/dom"),a=e("ba20932521");class d extends a.PanelHTMLBoxView{initialize(){super.initialize(),this._ace=window.ace,this._container=n.div({id:"_"+Math.random().toString(36).substr(2,9),style:{width:"100%",height:"100%"}})}connect_signals(){super.connect_signals(),this.connect(this.model.properties.code.change,()=>this._update_code_from_model()),this.connect(this.model.properties.theme.change,()=>this._update_theme()),this.connect(this.model.properties.language.change,()=>this._update_language()),this.connect(this.model.properties.annotations.change,()=>this._add_annotations()),this.connect(this.model.properties.readonly.change,()=>{this._editor.setReadOnly(this.model.readonly)})}render(){super.render(),this._container!==this.el.childNodes[0]&&this.el.appendChild(this._container),this._container.textContent=this.model.code,this._editor=this._ace.edit(this._container.id),this._editor.setTheme("ace/theme/"+`${this.model.theme}`),this._editor.session.setMode("ace/mode/"+`${this.model.language}`),this._editor.setReadOnly(this.model.readonly),this._langTools=this._ace.require("ace/ext/language_tools"),this._editor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,fontFamily:"monospace"}),this._editor.on("change",()=>this._update_code_from_editor())}_update_code_from_model(){this._editor&&this._editor.getValue()!=this.model.code&&this._editor.setValue(this.model.code)}_update_code_from_editor(){this._editor.getValue()!=this.model.code&&(this.model.code=this._editor.getValue())}_update_theme(){this._editor.setTheme("ace/theme/"+`${this.model.theme}`)}_update_language(){this._editor.session.setMode("ace/mode/"+`${this.model.language}`)}_add_annotations(){this._editor.session.setAnnotations(this.model.annotations)}after_layout(){super.after_layout(),this._editor.resize()}}o.AcePlotView=d,d.__name__="AcePlotView";class h extends s.HTMLBox{constructor(e){super(e)}static init_AcePlot(){this.prototype.default_view=d,this.define({code:[i.String],language:[i.String,"python"],theme:[i.String,"chrome"],annotations:[i.Array,[]],readonly:[i.Boolean,!1]}),this.override({height:300,width:300})}}o.AcePlot=h,h.__name__="AcePlot",h.__module__="panel.models.ace",h.init_AcePlot()},n”, ” "ba20932521": function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e("@bokehjs/core/layout/layoutable"),h=e("@bokehjs/core/layout/types"),o=e("@bokehjs/core/dom"),_=e("@bokehjs/models/widgets/markup"),n=e("@bokehjs/models/layouts/html_box");function a(e,i){let t=null!=i.width?"fixed":"fit",s=null!=i.height?"fixed":"fit";const{sizing_mode:h}=i;if(null!=h)if("fixed"==h)t=s="fixed";else if("stretch_both"==h)t=s="max";else if("stretch_width"==h)t="max";else if("stretch_height"==h)s="max";else switch(h){case"scale_width":t="max",s="min";break;case"scale_height":t="min",s="max";break;case"scale_both":t="max",s="max";break;default:throw new Error("unreachable")}"fixed"==t&&i.width?e.style.width=i.width+"px":"max"==t&&(e.style.width="100%"),"fixed"==s&&i.height?e.style.height=i.height+"px":"max"==s&&(e.style.height="100%")}t.set_size=a;class d extends s.Layoutable{constructor(e,i,t){super(),this.el=e,this.sizing_mode=i,this.changed=t,this._cache={},this._cache_count={}}_measure(e){const i=[e.width,e.height,this.sizing_mode].toString(),t=this.changed&&"fixed"!=this.sizing_mode&&null!=this.sizing_mode?1:0;if(i in this._cache&&this._cache_count[i]>=t)return this._cache_count[i]=this._cache_count[i]+1,this._cache[i];const s=new h.Sizeable(e).bounded_to(this.sizing.size),_=o.sized(this.el,s,()=>{const e=new h.Sizeable(o.content_size(this.el)),{border:i,padding:t}=o.extents(this.el);return e.grow_by(i).grow_by(t).map(Math.ceil)});return this._cache[i]=_,this._cache_count[i]=0,_}}t.CachedVariadicBox=d,d.__name__="CachedVariadicBox";class l extends _.MarkupView{_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new d(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}render(){super.render(),a(this.markup_el,this.model)}}t.PanelMarkupView=l,l.__name__="PanelMarkupView";class c extends n.HTMLBoxView{_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new d(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}render(){super.render(),a(this.el,this.model)}}t.PanelHTMLBoxView=c,c.__name__="PanelHTMLBoxView"},n”, ” "66d52165db": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),l=e("ba20932521");class d extends l.PanelHTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,()=>this.set_loop()),this.connect(this.model.properties.paused.change,()=>this.set_paused()),this.connect(this.model.properties.time.change,()=>this.set_time()),this.connect(this.model.properties.value.change,()=>this.set_value()),this.connect(this.model.properties.volume.change,()=>this.set_volume())}render(){super.render(),this.audioEl=document.createElement("audio"),this.audioEl.controls=!0,this.audioEl.src=this.model.value,this.audioEl.currentTime=this.model.time,this.audioEl.loop=this.model.loop,null!=this.model.volume?this.audioEl.volume=this.model.volume/100:this.model.volume=100*this.audioEl.volume,this.audioEl.onpause=()=>this.model.paused=!0,this.audioEl.onplay=()=>this.model.paused=!1,this.audioEl.ontimeupdate=()=>this.update_time(this),this.audioEl.onvolumechange=()=>this.update_volume(this),this.el.appendChild(this.audioEl),this.model.paused||this.audioEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.audioEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.audioEl.volume)}set_loop(){this.audioEl.loop=this.model.loop}set_paused(){!this.audioEl.paused&&this.model.paused&&this.audioEl.pause(),this.audioEl.paused&&!this.model.paused&&this.audioEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.audioEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.audioEl.currentTime=this.model.time)}set_value(){this.audioEl.src=this.model.value}}i.AudioView=d,d.__name__="AudioView";class u extends s.HTMLBox{constructor(e){super(e)}static init_Audio(){this.prototype.default_view=d,this.define({loop:[o.Boolean,!1],paused:[o.Boolean,!0],time:[o.Number,0],throttle:[o.Number,250],value:[o.Any,""],volume:[o.Number,null]})}}i.Audio=u,u.__name__="Audio",u.__module__="panel.models.widgets",u.init_Audio()},n”, ” "71a9759436": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),i=e("@bokehjs/document"),s=e("@bokehjs/core/view"),c=e("@bokehjs/model"),_=e("@bokehjs/protocol/message"),l=e("@bokehjs/protocol/receiver");class r extends s.View{renderTo(){}}n.CommManagerView=r,r.__name__="CommManagerView";class a extends c.Model{constructor(e){super(e),this._document_listener=e=>this._document_changed(e),this._receiver=new l.Receiver,this._event_buffer=[],this._blocked=!1,this._timeout=Date.now(),null!=window.PyViz&&window.PyViz.comm_manager?(this.ns=window.PyViz,this.ns.comm_manager.register_target(this.plot_id,this.comm_id,e=>this.msg_handler(e)),this._client_comm=this.ns.comm_manager.get_client_comm(this.plot_id,this.client_comm_id,e=>this.on_ack(e))):console.log("Could not find comm manager on window.PyViz, ensure the extension is loaded.")}_doc_attached(){super._doc_attached(),null!=this.document&&this.document.on_change(this._document_listener)}_document_changed(e){e.setter_id!==this.id&&(e instanceof i.ModelChangedEvent&&!(e.attr in e.model.serializable_attributes())||(this._event_buffer.unshift(e),(!this._blocked||Date.now()>this._timeout)&&(setTimeout(()=>this.process_events(),this.debounce),this._blocked=!0,this._timeout=Date.now()+this.timeout)))}process_events(){if(null==this.document||null==this._client_comm)return;const e=_.Message.create("PATCH-DOC",{},this.document.create_json_patch(this._event_buffer));this._client_comm.send(e),this._event_buffer=[]}on_ack(e){const t=e.metadata;this._event_buffer.length?(this.process_events(),this._blocked=!0,this._timeout=Date.now()+this.timeout):this._blocked=!1,this._event_buffer=[],"Ready"==t.msg_type&&t.content?console.log("Python callback returned following output:",t.content):"Error"==t.msg_type&&console.log("Python failed with the following traceback:",t.traceback)}msg_handler(e){const t=e.metadata,n=e.buffers,o=e.content.data,i=this.plot_id;if("Ready"==t.msg_type)t.content?console.log("Python callback returned following output:",t.content):"Error"==t.msg_type&&console.log("Python failed with the following traceback:",t.traceback);else if(null!=i){let e=null;if(i in this.ns.plot_index&&null!=this.ns.plot_index[i]?e=this.ns.plot_index[i]:void 0!==window.Bokeh&&i in window.Bokeh.index&&(e=window.Bokeh.index[i]),null==e)return;null!=n&&n.length>0?this._receiver.consume(n[0].buffer):this._receiver.consume(o);const t=this._receiver.message;null!=t&&Object.keys(t.content).length>0&&null!=this.document&&this.document.apply_json_patch(t.content,t.buffers,this.id)}}static init_CommManager(){this.prototype.default_view=r,this.define({plot_id:[o.String,null],comm_id:[o.String,null],client_comm_id:[o.String,null],timeout:[o.Number,5e3],debounce:[o.Number,50]})}}n.CommManager=a,a.__name__="CommManager",a.__module__="panel.models.comm_manager",a.init_CommManager()},n”, ” "f6b9b1d914": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e("tslib"),a=e("@bokehjs/core/dom"),s=i.__importStar(e("@bokehjs/core/properties")),n=e("@bokehjs/models/layouts/html_box"),c=e("ba20932521"),r=e("064eac2866"),d=i.__importDefault(e("093eb75864")),l=window.deck,_=window.mapboxgl,h=window.loaders;function p(){const e={},t=Object.keys(l).filter(e=>e.charAt(0)===e.charAt(0).toUpperCase());for(const o of t)e[o]=l[o];return e}class u extends c.PanelHTMLBoxView{connect_signals(){super.connect_signals();const{data:e,mapbox_api_key:t,tooltip:o,layers:i,initialViewState:a,data_sources:s}=this.model.properties;this.on_change([t,o],()=>this.render()),this.on_change([e,a],()=>this.updateDeck()),this.on_change([i],()=>this._update_layers()),this.on_change([s],()=>this._connect_sources(!0)),this._layer_map={},this._connected=[],this._connect_sources()}_update_layers(){this._layer_map={},this._update_data(!0)}_connect_sources(e=!1){for(const e of this.model.data_sources)this._connected.indexOf(e)<0&&(this.connect(e.properties.data.change,()=>this._update_data(!0)),this._connected.push(e));this._update_data(e)}initialize(){if(super.initialize(),l.JSONConverter){const{CSVLoader:e,Tile3DLoader:t}=h;h.registerLoaders([t,e]);const o={classes:p(),enumerations:{COORDINATE_SYSTEM:l.COORDINATE_SYSTEM,GL:d.default},constants:{Tile3DLoader:t}};this.jsonConverter=new l.JSONConverter({configuration:o})}}_update_data(e=!0){let t=0;for(const e of this.model.layers){let o;if(t+=1,t-1 in this._layer_map)o=this.model.data_sources[this._layer_map[t-1]];else{if("number"!=typeof e.data)continue;this._layer_map[t-1]=e.data,o=this.model.data_sources[e.data]}const i=[],a=o.columns();for(let e=0;e<o.data[a[0]].length;e++){const t={};for(const i of a){const a=o._shapes[i];void 0!==a&&a.length>1&&"number"==typeof a[0]?t[i]=o.data[i].slice(e*a[1],e*a[1]+a[1]):t[i]=o.data[i][e]}i.push(t)}e.data=i}e&&this.updateDeck()}_on_click_event(e){const t={coordinate:e.coordinate,lngLat:e.lngLat,index:e.index};this.model.clickState=t}_on_hover_event(e){const t={coordinate:e.coordinate,lngLat:e.lngLat,index:e.index};this.model.hoverState=t}_on_viewState_event(e){this.model.viewState=e.viewState}getData(){return Object.assign(Object.assign({},this.model.data),{layers:this.model.layers,initialViewState:this.model.initialViewState,onViewStateChange:e=>this._on_viewState_event(e),onClick:e=>this._on_click_event(e),onHover:e=>this._on_hover_event(e)})}updateDeck(){if(!this.deckGL)return void this.render();const e=this.getData();if(l.updateDeck)l.updateDeck(e,this.deckGL);else{const t=this.jsonConverter.convert(e);this.deckGL.setProps(t)}}createDeck({mapboxApiKey:e,container:t,jsonInput:o,tooltip:i}){let a;try{const s=this.jsonConverter.convert(o),n=r.makeTooltip(i);a=new l.DeckGL(Object.assign(Object.assign({},s),{map:_,mapboxApiAccessToken:e,container:t,getTooltip:n}))}catch(e){console.error(e)}return a}render(){super.render();const e=a.div({class:"deckgl"});c.set_size(e,this.model);const t=this.model.mapbox_api_key,o=this.model.tooltip,i=this.getData();l.createDeck?this.deckGL=l.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}):this.deckGL=this.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}),this.el.appendChild(e)}}o.DeckGLPlotView=u,u.__name__="DeckGLPlotView";class m extends n.HTMLBox{constructor(e){super(e)}static init_DeckGLPlot(){this.prototype.default_view=u,this.define({data:[s.Any],data_sources:[s.Array,[]],clickState:[s.Any],hoverState:[s.Any],initialViewState:[s.Any],layers:[s.Array,[]],mapbox_api_key:[s.String],tooltip:[s.Any],viewState:[s.Any]}),this.override({height:400,width:600})}}o.DeckGLPlot=m,m.__name__="DeckGLPlot",m.__module__="panel.models.deckgl",m.init_DeckGLPlot()},n”, ” "064eac2866": function _(e,t,n){n”, ” /n”, ” This file was adapted from https://github.com/uber/deck.gl/ the LICENSEn”, ” below is preserved to comply with the original license.n”, ” n”, ” Copyright (c) 2015 - 2017 Uber Technologies, Inc.n”, ” n”, ” Permission is hereby granted, free of charge, to any person obtaining a copyn”, ” of this software and associated documentation files (the "Software"), to dealn”, ” in the Software without restriction, including without limitation the rightsn”, ” to use, copy, modify, merge, publish, distribute, sublicense, and/or selln”, ” copies of the Software, and to permit persons to whom the Software isn”, ” furnished to do so, subject to the following conditions:n”, ” n”, ” The above copyright notice and this permission notice shall be included inn”, ” all copies or substantial portions of the Software.n”, ” n”, ” THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORn”, ” IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,n”, ” FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEn”, ” AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERn”, ” LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,n”, ” OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INn”, ” THE SOFTWARE.n”, ” /n”, ” let i,l;Object.defineProperty(n,"__esModule",{value:!0});const o={fontFamily:’"Helvetica Neue", Helvetica, Arial, sans-serif’,display:"flex",flex:"wrap",maxWidth:"500px",flexDirection:"column",zIndex:2};function r(){return document.createElement("div")}function s(e){if(!e.picked)return null;if(e.object===i)return l;const t={html:a(e.object),style:o};return l=t,i=e.object,t}n.getTooltipDefault=s;const c=new Set(["position","index"]);function a(e){const t=r();for(const n in e){if(c.has(n))continue;const i=r();i.className="header",i.textContent=n;const l=r();l.className="value",l.textContent=u(e[n]);const o=r();f(o,i,l),o.appendChild(i),o.appendChild(l),t.appendChild(o)}return t.innerHTML}function f(e,t,n){Object.assign(t.style,{fontWeight:700,marginRight:"10px",flex:"1 1 0%"}),Object.assign(n.style,{flex:"none",maxWidth:"250px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Object.assign(e.style,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"stretch"})}function u(e){let t;if(Array.isArray(e)&&e.length>4)t=`Array<${e.length}>`;else if("string"==typeof e)t=e;else if("number"==typeof e)t=String(e);else try{t=JSON.stringify(e)}catch(e){t="<Non-Serializable Object>"}return t.length>50&&(t=t.slice(0,50)),t}function p(e,t){let n=e;for(const e in t)n=n.replace(`{${e}}`,t[e]);return n}n.tabularize=a,n.toText=u,n.substituteIn=p,n.makeTooltip=function(e){return e?e.html||e.text?t=>{if(!t.picked)return null;const n={style:e.style||o};return e.html?n.html=p(e.html,t.object):n.text=p(e.text,t.object),n}:s:null}},n”, ” "093eb75864": function _(E,_,R){_.exports={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,FUNC_ADD:32774,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,BLEND_COLOR:32773,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,VENDOR:7936,RENDERER:7937,VERSION:7938,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,BROWSER_DEFAULT_WEBGL:37444,STATIC_DRAW:35044,STREAM_DRAW:35040,DYNAMIC_DRAW:35048,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,CULL_FACE:2884,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,BLEND:3042,DEPTH_TEST:2929,DITHER:3024,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,SCISSOR_TEST:3089,STENCIL_TEST:2960,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CONTEXT_LOST_WEBGL:37442,CW:2304,CCW:2305,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,COMPILE_STATUS:35713,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_ATTRIBUTES:35721,ACTIVE_UNIFORMS:35718,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,ALWAYS:519,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,GEQUAL:518,NOTEQUAL:517,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,TEXTURE_WIDTH:4096,TEXTURE_HEIGHT:4097,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,MAX_3D_TEXTURE_SIZE:32883,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,MAX_TEXTURE_LOD_BIAS:34045,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,RASTERIZER_DISCARD:35977,VERTEX_ARRAY_BINDING:34229,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,MAX_ELEMENT_INDEX:36203,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,RGB9_E5:35901,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2UI:36975,TEXTURE_IMMUTABLE_FORMAT:37167,TEXTURE_IMMUTABLE_LEVELS:33503,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,UNSIGNED_INT_24_8:34042,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,INT_2_10_10_10_REV:36255,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,MAX_SAMPLES:36183,SAMPLER_BINDING:35097,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,UNSIGNED_NORMALIZED:35863,SIGNED_NORMALIZED:36764,VERTEX_ATTRIB_ARRAY_INTEGER:35069,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,DEPTH24_STENCIL8:35056,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,COLOR:6144,DEPTH:6145,STENCIL:6146,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,INVALID_INDEX:4294967295,TIMEOUT_IGNORED:-1,MAX_CLIENT_WAIT_TIMEOUT_WEBGL:37447,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},n”, ” "ae707e931d": function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("@bokehjs/models/widgets/markup"),a=e("ba20932521");class s extends a.PanelMarkupView{render(){var e;super.render();const t=(e=this.model.text,(new DOMParser).parseFromString(e,"text/html").documentElement.textContent)||this.model.text;t?(this.markup_el.innerHTML=t,Array.from(this.markup_el.querySelectorAll("script")).forEach(e=>{const t=document.createElement("script");Array.from(e.attributes).forEach(e=>t.setAttribute(e.name,e.value)),t.appendChild(document.createTextNode(e.innerHTML)),e.parentNode&&e.parentNode.replaceChild(t,e)})):this.markup_el.innerHTML=""}}r.HTMLView=s,s.__name__="HTMLView";class o extends n.Markup{constructor(e){super(e)}static init_HTML(){this.prototype.default_view=s}}r.HTML=o,o.__name__="HTML",o.__module__="panel.models.markup",o.init_HTML()},n”, ” "9ba5b8422a": function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const s=e("tslib"),i=s.__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/widgets/markup"),n=s.__importDefault(e("18bba7b7e1")),a=e("ba20932521");class d extends a.PanelMarkupView{render(){super.render();const e=this.model.text.replace(/(\r\n|\n|\r)/gm,"").replace("’",’"’);let t;try{t=window.JSON.parse(e)}catch(e){return void(this.markup_el.innerHTML="<b>Invalid JSON:</b> "+e.toString())}const r={hoverPreviewEnabled:this.model.hover_preview,theme:this.model.theme},s=new n.default(t,this.model.depth,r).render();let i="border-radius: 5px; padding: 10px;";"dark"==this.model.theme?s.style.cssText="background-color: rgb(30, 30, 30);"+i:s.style.cssText=i,this.markup_el.append(s)}}r.JSONView=d,d.__name__="JSONView";const l=["dark","light"];class p extends o.Markup{constructor(e){super(e)}static init_JSON(){this.prototype.default_view=d,this.define({depth:[i.Number,1],hover_preview:[i.Boolean,!1],theme:[i.Enum(l),"dark"]})}}r.JSON=p,p.__name__="JSON",p.__module__="panel.models.markup",p.init_JSON()},n”, ” "18bba7b7e1": function _(t,e,r){function n(t){return null===t?"null":typeof t}function o(t){return!!t&&"object"==typeof t}function i(t){if(void 0===t)return"";if(null===t)return"Object";if("object"==typeof t&&!t.constructor)return"Object";var e=/function ([^(])/.exec(t.constructor.toString());return e&&e.length>1?e[1]:""}function s(t,e,r){return"null"===t||"undefined"===t?t:("string"!==t&&"stringifiable"!==t||(r=’"’+r.replace(/"/g,’\\"’)+’"’),"function"===t?e.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":r)}function a(t){var e="";return o(t)?(e=i(t),Array.isArray(t)&&(e+="["+t.length+"]")):e=s(n(t),t,t),e}function f(t){return"json-formatter-"+t}function m(t,e,r){var n=document.createElement(t);return e&&n.classList.add(f(e)),void 0!==r&&(r instanceof Node?n.appendChild(r):n.appendChild(document.createTextNode(String(r)))),n}Object.defineProperty(r,"__esModule",{value:!0}),function(t){if("undefined"!=typeof window){var e=document.createElement("style");e.setAttribute("media","screen"),e.innerHTML=t,document.head.appendChild(e)}}(‘.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n’);var l=/(^\d{1,4}[\.|\\/|-]\\d{1,2}[\\.|\\/|-]\\d{1,4})(\\s*(?:0?[1-9]:[0-5]|1(?=[012])\\d:[0-5])\\d\\s*[ap]m)?$/,d=/\\d{2}:\\d{2}:\\d{2} GMT-\\d{4}/,c=/\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/,p=window.requestAnimationFrame||function(t){return t(),0},j={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null},h=function(){function t(t,e,r,n){void 0===e&&(e=1),void 0===r&&(r=j),this.json=t,this.open=e,this.config=r,this.key=n,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=j.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=j.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=j.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=j.useToJSON),\"\"===this.key&&(this.key='\"\"')}return Object.defineProperty(t.prototype,\"isOpen\",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(t){this._isOpen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isDate\",{get:function(){return this.json instanceof Date||"string"===this.type&&(l.test(this.json)||c.test(this.json)||d.test(this.json))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUrl",{get:function(){return"string"===this.type&&0===this.json.indexOf("http")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isArray",{get:function(){return Array.isArray(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isObject",{get:function(){return o(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyObject",{get:function(){return!this.keys.length&&!this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useToJSON",{get:function(){return this.config.useToJSON&&"stringifiable"===this.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasKey",{get:function(){return void 0!==this.key},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"constructorName",{get:function(){return i(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":n(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keys",{get:function(){if(this.isObject){var t=Object.keys(this.json);return!this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return[]},enumerable:!0,configurable:!0}),t.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(f("open")))},t.prototype.openAtDepth=function(t){void 0===t&&(t=1),t<0||(this.open=t,this.isOpen=0!==t,this.element&&(this.removeChildren(!1),0===t?this.element.classList.remove(f("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(f("open")))))},t.prototype.getInlinepreview=function(){var t=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?"Array["+this.json.length+"]":"["+this.json.map(a).join(", ")+"]";var e=this.keys,r=e.slice(0,this.config.hoverPreviewFieldCount).map((function(e){return e+":"+a(t.json[e])})),n=e.length>=this.config.hoverPreviewFieldCount?"…":"";return"{"+r.join(", ")+n+"}"},t.prototype.render=function(){this.element=m("div","row");var t=this.isObject?m("a","toggler-link"):m("span");if(this.isObject&&!this.useToJSON&&t.appendChild(m("span","toggler")),this.hasKey&&t.appendChild(m("span","key",this.key+":")),this.isObject&&!this.useToJSON){var e=m("span","value"),r=m("span"),n=m("span","constructor-name",this.constructorName);if(r.appendChild(n),this.isArray){var o=m("span");o.appendChild(m("span","bracket","[")),o.appendChild(m("span","number",this.json.length)),o.appendChild(m("span","bracket","]")),r.appendChild(o)}e.appendChild(r),t.appendChild(e)}else{(e=this.isUrl?m("a"):m("span")).classList.add(f(this.type)),this.isDate&&e.classList.add(f("date")),this.isUrl&&(e.classList.add(f("url")),e.setAttribute("href",this.json));var i=s(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(i)),t.appendChild(e)}if(this.isObject&&this.config.hoverPreviewEnabled){var a=m("span","preview-text");a.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(a)}var l=m("div","children");return this.isObject&&l.classList.add(f("object")),this.isArray&&l.classList.add(f("array")),this.isEmpty&&l.classList.add(f("empty")),this.config&&this.config.theme&&this.element.classList.add(f(this.config.theme)),this.isOpen&&this.element.classList.add(f("open")),this.element.appendChild(t),this.element.appendChild(l),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&t.addEventListener("click",this.toggleOpen.bind(this)),this.element},t.prototype.appendChildren=function(e){var r=this;void 0===e&&(e=!1);var n=this.element.querySelector("div."+f("children"));if(n&&!this.isEmpty)if(e){var o=0,i=function(){var e=r.keys[o],s=new t(r.json[e],r.open-1,r.config,e);n.appendChild(s.render()),(o+=1)<r.keys.length&&(o>10?i():p(i))};p(i)}else this.keys.forEach((function(e){var o=new t(r.json[e],r.open-1,r.config,e);n.appendChild(o.render())}))},t.prototype.removeChildren=function(t){void 0===t&&(t=!1);var e=this.element.querySelector("div."+f("children"));if(t){var r=0,n=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?n():p(n))};p(n)}else e&&(e.innerHTML="")},t}();r.default=h},n”, ” "a94e371ba4": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e("tslib"),n=e("@bokehjs/models/widgets/input_widget"),s=e("@bokehjs/styles/buttons"),o=l.__importStar(e("@bokehjs/core/properties"));class a extends n.InputWidgetView{constructor(){super(…arguments),this._initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.button_type.change,()=>this.render()),this.connect(this.model.properties.data.change,()=>this.render()),this.connect(this.model.properties.filename.change,()=>this.render()),this.connect(this.model.properties.label.change,()=>this._update_label())}render(){if(super.render(),this.anchor_el=document.createElement("a"),this.anchor_el.classList.add(s.bk_btn),this.anchor_el.classList.add(s.bk_btn_type(this.model.button_type)),this.anchor_el.textContent=this.model.label,null===this.model.data||null===this.model.filename)return this.anchor_el.addEventListener("click",()=>this.click()),this.group_el.appendChild(this.anchor_el),void(this._initialized=!0);const e=function(e){const t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(t.length),n=new Uint8Array(l);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new Blob([l],{type:i})}(this.model.data),t=URL.createObjectURL(e);this.anchor_el.href=t,this.anchor_el.download=this.model.filename,this.group_el.appendChild(this.anchor_el),this.model.auto&&this._initialized&&this.anchor_el.click(),this._initialized=!0}_update_label(){this.anchor_el.textContent=this.model.label}click(){this.model.clicks=this.model.clicks+1}}i.FileDownloadView=a,a.__name__="FileDownloadView";class r extends n.InputWidget{constructor(e){super(e)}static init_FileDownload(){this.prototype.default_view=a,this.define({auto:[o.Boolean,!1],clicks:[o.Number,0],data:[o.String,null],label:[o.String,"Download"],filename:[o.String,null],button_type:[o.ButtonType,"default"]}),this.override({title:""})}}i.FileDownload=r,r.__name__="FileDownload",r.__module__="panel.models.widgets",r.init_FileDownload()},n”, ” "7b859fb3cf": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const a=e("@bokehjs/models/widgets/markup"),n=e("ba20932521");class r extends n.PanelMarkupView{render(){super.render(),this.markup_el.innerHTML=this.model.text,window.renderMathInElement&&window.renderMathInElement(this.el,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1}]})}}i.KaTeXView=r,r.__name__="KaTeXView";class s extends a.Markup{constructor(e){super(e)}static init_KaTeX(){this.prototype.default_view=r}}i.KaTeX=s,s.__name__="KaTeX",s.__module__="panel.models.katex",s.init_KaTeX()},n”, ” "0c21036737": function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e("@bokehjs/models/widgets/markup"),s=e("ba20932521");class _ extends s.PanelMarkupView{initialize(){super.initialize(),this._hub=window.MathJax.Hub,this._hub.Config({tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}})}render(){super.render(),this._hub&&(this.markup_el.innerHTML=this.model.text,this._hub.Queue(["Typeset",this._hub,this.markup_el]))}}a.MathJaxView=_,_.__name__="MathJaxView";class h extends i.Markup{constructor(e){super(e)}static init_MathJax(){this.prototype.default_view=_}}a.MathJax=h,h.__name__="MathJax",h.__module__="panel.models.mathjax",h.init_MathJax()},n”, ” "000f20fdd3": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),n=e("@bokehjs/core/dom"),l=e("@bokehjs/models/widgets/widget");class a extends l.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.value.change,()=>this.render()),this.connect(this.model.properties.loop_policy.change,()=>this.set_loop_state(this.model.loop_policy))}get_height(){return 250}render(){if(null!=this.sliderEl)return this.sliderEl.style.width="{this.model.width}px",this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),void(this.sliderEl.value=String(this.model.value));super.render(),this.sliderEl=document.createElement("input"),this.sliderEl.setAttribute("type","range"),this.sliderEl.style.width=this.model.width+"px",this.sliderEl.value=String(this.model.value),this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),this.sliderEl.onchange=e=>this.set_frame(parseInt(e.target.value));const e=n.div();e.style.cssText="margin: 0 auto; display: table; padding: 5px";const t="text-align: center; min-width: 40px; margin: 2px",i=document.createElement("button");i.style.cssText="text-align: center; min-width: 20px",i.appendChild(document.createTextNode("–")),i.onclick=()=>this.slower(),e.appendChild(i);const s=document.createElement("button");s.style.cssText=t,s.appendChild(document.createTextNode("❚◀◀")),s.onclick=()=>this.first_frame(),e.appendChild(s);const l=document.createElement("button");l.style.cssText=t,l.appendChild(document.createTextNode("❚◀")),l.onclick=()=>this.previous_frame(),e.appendChild(l);const a=document.createElement("button");a.style.cssText=t,a.appendChild(document.createTextNode("◀")),a.onclick=()=>this.reverse_animation(),e.appendChild(a);const o=document.createElement("button");o.style.cssText=t,o.appendChild(document.createTextNode("❚❚")),o.onclick=()=>this.pause_animation(),e.appendChild(o);const r=document.createElement("button");r.style.cssText=t,r.appendChild(document.createTextNode("▶")),r.onclick=()=>this.play_animation(),e.appendChild(r);const d=document.createElement("button");d.style.cssText=t,d.appendChild(document.createTextNode("▶❚")),d.onclick=()=>this.next_frame(),e.appendChild(d);const h=document.createElement("button");h.style.cssText=t,h.appendChild(document.createTextNode("▶▶❚")),h.onclick=()=>this.last_frame(),e.appendChild(h);const c=document.createElement("button");c.style.cssText="text-align: center; min-width: 20px",c.appendChild(document.createTextNode("+")),c.onclick=()=>this.faster(),e.appendChild(c),this.loop_state=document.createElement("form"),this.loop_state.style.cssText="margin: 0 auto; display: table";const m=document.createElement("input");m.type="radio",m.value="once",m.name="state";const p=document.createElement("label");p.innerHTML="Once",p.style.cssText="padding: 0 10px 0 5px; user-select:none;";const u=document.createElement("input");u.setAttribute("type","radio"),u.setAttribute("value","loop"),u.setAttribute("name","state");const _=document.createElement("label");_.innerHTML="Loop",_.style.cssText="padding: 0 10px 0 5px; user-select:none;";const v=document.createElement("input");v.setAttribute("type","radio"),v.setAttribute("value","reflect"),v.setAttribute("name","state");const x=document.createElement("label");x.innerHTML="Reflect",x.style.cssText="padding: 0 10px 0 5px; user-select:none;","once"==this.model.loop_policy?m.checked=!0:"loop"==this.model.loop_policy?u.checked=!0:v.checked=!0,this.loop_state.appendChild(m),this.loop_state.appendChild(p),this.loop_state.appendChild(u),this.loop_state.appendChild(_),this.loop_state.appendChild(v),this.loop_state.appendChild(x),this.el.appendChild(this.sliderEl),this.el.appendChild(e),this.el.appendChild(this.loop_state)}set_frame(e){this.model.value!=e&&(this.model.value=e),this.sliderEl.value!=String(e)&&(this.sliderEl.value=String(e))}get_loop_state(){for(var e=this.loop_state.state,t=0;t<e.length;t++){var i=e[t];if(i.checked)return i.value}return"once"}set_loop_state(e){for(var t=this.loop_state.state,i=0;i<t.length;i++){var s=t[i];s.value==e&&(s.checked=!0)}}next_frame(){this.set_frame(Math.min(this.model.end,this.model.value+this.model.step))}previous_frame(){this.set_frame(Math.max(this.model.start,this.model.value-this.model.step))}first_frame(){this.set_frame(this.model.start)}last_frame(){this.set_frame(this.model.end)}slower(){this.model.interval=Math.round(this.model.interval/.7),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}faster(){this.model.interval=Math.round(.7*this.model.interval),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}anim_step_forward(){if(this.model.value<this.model.end)this.next_frame();else{var e=this.get_loop_state();"loop"==e?this.first_frame():"reflect"==e?(this.last_frame(),this.reverse_animation()):(this.pause_animation(),this.last_frame())}}anim_step_reverse(){if(this.model.value>this.model.start)this.previous_frame();else{var e=this.get_loop_state();"loop"==e?this.last_frame():"reflect"==e?(this.first_frame(),this.play_animation()):(this.pause_animation(),this.first_frame())}}pause_animation(){this.model.direction=0,this.timer&&(clearInterval(this.timer),this.timer=null)}play_animation(){this.pause_animation(),this.model.direction=1,this.timer||(this.timer=setInterval(()=>this.anim_step_forward(),this.model.interval))}reverse_animation(){this.pause_animation(),this.model.direction=-1,this.timer||(this.timer=setInterval(()=>this.anim_step_reverse(),this.model.interval))}}i.PlayerView=a,a.__name__="PlayerView";class o extends l.Widget{constructor(e){super(e)}static init_Player(){this.prototype.default_view=a,this.define({direction:[s.Number,0],interval:[s.Number,500],start:[s.Number],end:[s.Number],step:[s.Number,1],loop_policy:[s.Any,"once"],value:[s.Any,0]}),this.override({width:400})}}i.Player=o,o.__name__="Player",o.__module__="panel.models.widgets",o.init_Player()},n”, ” "2363c12dd6": function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t("tslib").__importStar(t("@bokehjs/core/properties")),l=t("@bokehjs/core/util/object"),r=t("@bokehjs/core/util/eq"),s=t("@bokehjs/models/layouts/html_box"),n=t("99a25e6992"),a=t("990b5dd5c7"),p=t("ba20932521"),h=window.Plotly,_=(t,e,o)=>{let i=Array.isArray(e)?[]:{};if("click"===o||"hover"===o||"selected"===o){const o=[];if(null==e)return null;const l=t.data;for(let t=0;t<e.points.length;t++){const i=e.points[t];let r={};for(let t in i){const e=i[t];!i.hasOwnProperty(t)||Array.isArray(e)||a.isPlainObject(e)||(r[t]=e)}null!=i&&(i.hasOwnProperty("curveNumber")&&i.hasOwnProperty("pointNumber")&&l[i.curveNumber].hasOwnProperty("customdata")&&(r.customdata=l[i.curveNumber].customdata[i.pointNumber]),i.hasOwnProperty("pointNumbers")&&(r.pointNumbers=i.pointNumbers)),o[t]=r}i.points=o}else if("relayout"===o||"restyle"===o)for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return e.hasOwnProperty("range")&&(i.range=e.range),e.hasOwnProperty("lassoPoints")&&(i.lassoPoints=e.lassoPoints),i};class u extends p.PanelHTMLBoxView{constructor(){super(…arguments),this._settingViewport=!1,this._plotInitialized=!1,this._reacting=!1,this._relayouting=!1,this._end_relayouting=n.debounce(()=>{this._relayouting=!1},2e3,!1)}connect_signals(){super.connect_signals(),this.connect(this.model.properties.viewport_update_policy.change,this._updateSetViewportFunction),this.connect(this.model.properties.viewport_update_throttle.change,this._updateSetViewportFunction),this.connect(this.model.properties._render_count.change,this.plot),this.connect(this.model.properties.viewport.change,this._updateViewportFromProperty)}render(){super.render(),window.Plotly&&this.plot()}plot(){if(!window.Plotly)return;const t=[];for(let e=0;e<this.model.data.length;e++)t.push(this._get_trace(e,!1));let e=a.deepCopy(this.model.layout);if(this._relayouting){const t=this.el.layout;Object.keys(t).reduce((t,o)=>{"axis"===o.slice(1,5)&&"range"in t&&(e[o].range=t.range)},{})}this._reacting=!0,h.react(this.el,t,e,this.model.config).then(()=>{this._updateSetViewportFunction(),this._updateViewportProperty(),this._plotInitialized||(this.el.on("plotly_relayout",t=>{!0!==t._update_from_property&&(this.model.relayout_data=_(this.el,t,"relayout"),this._updateViewportProperty(),this._end_relayouting())}),this.el.on("plotly_relayouting",()=>{"mouseup"!==this.model.viewport_update_policy&&(this._relayouting=!0,this._updateViewportProperty())}),this.el.on("plotly_restyle",t=>{this.model.restyle_data=_(this.el,t,"restyle"),this._updateViewportProperty()}),this.el.on("plotly_click",t=>{this.model.click_data=_(this.el,t,"click")}),this.el.on("plotly_hover",t=>{this.model.hover_data=_(this.el,t,"hover")}),this.el.on("plotly_selected",t=>{this.model.selected_data=_(this.el,t,"selected")}),this.el.on("plotly_clickannotation",t=>{delete t.event,delete t.fullAnnotation,this.model.clickannotation_data=t}),this.el.on("plotly_deselect",()=>{this.model.selected_data=null}),this.el.on("plotly_unhover",()=>{this.model.hover_data=null})),this._plotInitialized=!0,this._reacting=!1})}_get_trace(t,e){const o=l.clone(this.model.data[t]),i=this.model.data_sources[t];for(const t of i.columns()){const l=i._shapes[t][0];let s=i.get_array(t)[0];if(l.length>1){const t=[];for(let e=0;e<l[0];e++)t.push(s.slice(e*l[1],(e+1)*l[1]));s=t}let n=t.split("."),a=n[n.length-1];var r=o;for(let t of n.slice(0,-1))r=r[t];e&&1==n.length?r[a]=[s]:r[a]=s}return o}_updateViewportFromProperty(){if(!h||this._settingViewport||this._reacting||!this.model.viewport)return;const t=this.el._fullLayout;Object.keys(this.model.viewport).reduce((e,o)=>{if(r.isEqual(a.get(t,o),e))return!0;{let t=a.deepCopy(this.model.viewport);return t._update_from_property=!0,h.relayout(this.el,t),!1}},{})}_updateViewportProperty(){const t=this.el._fullLayout;let e={};for(let o in t){if(!t.hasOwnProperty(o))continue;let i=o.slice(0,5);"xaxis"!==i&&"yaxis"!==i||(e[o+".range"]=a.deepCopy(t[o].range))}r.isEqual(e,this.model.viewport)||this._setViewport(e)}_updateSetViewportFunction(){"continuous"===this.model.viewport_update_policy||"mouseup"===this.model.viewport_update_policy?this._setViewport=t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)}:this._setViewport=a.throttle(t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)},this.model.viewport_update_throttle)}}o.PlotlyPlotView=u,u.__name__="PlotlyPlotView";class d extends s.HTMLBox{constructor(t){super(t)}static init_PlotlyPlot(){this.prototype.default_view=u,this.define({data:[i.Array,[]],layout:[i.Any,{}],config:[i.Any,{}],data_sources:[i.Array,[]],relayout_data:[i.Any,{}],restyle_data:[i.Array,[]],click_data:[i.Any,{}],hover_data:[i.Any,{}],clickannotation_data:[i.Any,{}],selected_data:[i.Any,{}],viewport:[i.Any,{}],viewport_update_policy:[i.String,"mouseup"],viewport_update_throttle:[i.Number,200],_render_count:[i.Number,0]})}}o.PlotlyPlot=d,d.__name__="PlotlyPlot",d.__module__="panel.models.plotly",d.init_PlotlyPlot()},n”, ” "99a25e6992": function _(n,l,u){function t(n,l,u){var t,e,o,a,r;function i(){var c=Date.now()-a;c<l&&c>=0?t=setTimeout(i,l-c):(t=null,u||(r=n.apply(o,e),o=e=null))}null==l&&(l=100);var c=function(){o=this,e=arguments,a=Date.now();var c=u&&!t;return t||(t=setTimeout(i,l)),c&&(r=n.apply(o,e),o=e=null),r};return c.clear=function(){t&&(clearTimeout(t),t=null)},c.flush=function(){t&&(r=n.apply(o,e),o=e=null,clearTimeout(t),t=null)},c}t.debounce=t,l.exports=t},n”, ” "990b5dd5c7": function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.get=(t,e,n)=>{const r=n=>String.prototype.split.call(e,n).filter(Boolean).reduce((t,e)=>null!=t?t[e]:t,t),o=r(/[,[\]]+?/)||r(/[,[\].]+?/);return void 0===o||o===t?n:o},n.throttle=function(t,e){var n=0;return function(){var r=Number(new Date);r-n>=e&&(t(),n=r)}},n.deepCopy=function t(e){var n;if(null==e||"object"!=typeof e)return e;if(e instanceof Array){n=[];for(var r=0,o=e.length;r<o;r++)n[r]=t(e[r]);return n}if(e instanceof Object){const n={};for(const r in e){const o=r;e.hasOwnProperty(o)&&(n[o]=t(e[o]))}return n}throw new Error("Unable to copy obj! Its type isn’t supported.")},n.isPlainObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},n”, ” "76307e5afa": function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/layouts/html_box"),r=e("ba20932521");class l extends o.HTMLBoxView{connect_signals(){super.connect_signals();const e=()=>{this.render(),this.root.compute_layout()};this.connect(this.model.properties.height.change,e),this.connect(this.model.properties.width.change,e),this.connect(this.model.properties.height_policy.change,e),this.connect(this.model.properties.width_policy.change,e),this.connect(this.model.properties.sizing_mode.change,e),this.connect(this.model.properties.active.change,()=>this.setCSS()),this.connect(this.model.properties.bar_color.change,()=>this.setCSS()),this.connect(this.model.properties.css_classes.change,()=>this.setCSS()),this.connect(this.model.properties.value.change,()=>this.setValue()),this.connect(this.model.properties.max.change,()=>this.setMax())}render(){super.render();const e=Object.assign(Object.assign({},this.model.style),{display:"inline-block"});this.progressEl=document.createElement("progress"),this.setValue(),this.setMax(),r.set_size(this.progressEl,this.model),this.setCSS();for(const s in e)this.progressEl.style.setProperty(s,e[s]);this.el.appendChild(this.progressEl)}setCSS(){let e=this.model.css_classes.join(" ")+" "+this.model.bar_color;this.model.active&&(e+=" active"),this.progressEl.className=e}setValue(){null!=this.model.value&&(this.progressEl.value=this.model.value)}setMax(){null!=this.model.max&&(this.progressEl.max=this.model.max)}_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new r.CachedVariadicBox(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}}t.ProgressView=l,l.__name__="ProgressView";class h extends o.HTMLBox{constructor(e){super(e)}static init_Progress(){this.prototype.default_view=l,this.define({active:[i.Boolean,!0],bar_color:[i.String,"primary"],style:[i.Any,{}],max:[i.Number,100],value:[i.Number,null]})}}t.Progress=h,h.__name__="Progress",h.__module__="panel.models.widgets",h.init_Progress()},n”, ” "38b2bc9574": function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),a=e("@bokehjs/core/view"),o=e("@bokehjs/core/util/array"),c=e("@bokehjs/model"),n=e("@bokehjs/protocol/receiver");class r extends a.View{renderTo(){}}s.StateView=r,r.__name__="StateView";class _ extends c.Model{constructor(e){super(e),this._receiver=new n.Receiver,this._cache={}}apply_state(e){this._receiver.consume(e.header),this._receiver.consume(e.metadata),this._receiver.consume(e.content),this._receiver.message&&this.document&&this.document.apply_json_patch(this._receiver.message.content)}_receive_json(e,t){const s=JSON.parse(e);this._cache[t]=s;let i=this.state;for(const e of this.values)i=i[e];i===t?this.apply_state(s):this._cache[i]&&this.apply_state(this._cache[i])}set_state(e,t){let s=o.copy(this.values);s[this.widgets[e.id]]=t;let i=this.state;for(const e of s)i=i[e];var a,c,n;this.values=s,this.json?this._cache[i]?this.apply_state(this._cache[i]):(a=i,c=e=>this._receive_json(e,i),(n=new XMLHttpRequest).overrideMimeType("application/json"),n.open("GET",a,!0),n.onreadystatechange=function(){4==n.readyState&&200==n.status&&c(n.responseText)},n.send(null)):this.apply_state(i)}static init_State(){this.prototype.default_view=r,this.define({json:[i.Boolean,!1],state:[i.Any,{}],widgets:[i.Any,{}],values:[i.Any,[]]})}}s.State=_,_.__name__="State",_.__module__="panel.models.state",_.init_State()},n”, ” "90d1f929bd": function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t("tslib").__importStar(t("@bokehjs/core/properties")),a=t("@bokehjs/core/util/types"),n=t("@bokehjs/models/layouts/html_box");class c extends n.HTMLBoxView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,this._plot),this.connect(this.model.properties.data_sources.change,()=>this._connect_sources()),this._connected=[],this._connect_sources()}_connect_sources(){for(const t in this.model.data_sources){const e=this.model.data_sources[t];this._connected.indexOf(t)<0&&(this.connect(e.properties.data.change,this._plot),this._connected.push(t))}}_fetch_datasets(){const t={};for(const e in this.model.data_sources){const s=this.model.data_sources[e],o=[],a=s.columns();for(let t=0;t<s.data[a[0]].length;t++){const e={};for(const o of a)e[o]=s.data[o][t];o.push(e)}t[e]=o}return t}render(){super.render(),this._plot()}_plot(){const t=this.model.data;if(null!=t&&window.vegaEmbed){if(this.model.data_sources&&Object.keys(this.model.data_sources).length>0){const e=this._fetch_datasets();if("data"in e&&(t.data.values=e.data,delete e.data),null!=t.data){const s=a.isArray(t.data)?t.data:[t.data];for(const t of s)t.name in e&&(t.values=e[t.name],delete e[t.name])}this.model.data.datasets=e}window.vegaEmbed(this.el,this.model.data,{actions:!1})}}}s.VegaPlotView=c,c.__name__="VegaPlotView";class d extends n.HTMLBox{constructor(t){super(t)}static init_VegaPlot(){this.prototype.default_view=c,this.define({data:[o.Any],data_sources:[o.Any]})}}s.VegaPlot=d,d.__name__="VegaPlot",d.__module__="panel.models.vega",d.init_VegaPlot()},n”, ” "b0c3e9e9c2": function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),l=e("ba20932521");class d extends l.PanelHTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,()=>this.set_loop()),this.connect(this.model.properties.paused.change,()=>this.set_paused()),this.connect(this.model.properties.time.change,()=>this.set_time()),this.connect(this.model.properties.value.change,()=>this.set_value()),this.connect(this.model.properties.volume.change,()=>this.set_volume())}render(){super.render(),this.videoEl=document.createElement("video"),this.model.sizing_mode&&"fixed"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit="fill",this.videoEl.style.minWidth="100%",this.videoEl.style.minHeight="100%",this.videoEl.controls=!0,this.videoEl.src=this.model.value,this.videoEl.currentTime=this.model.time,this.videoEl.loop=this.model.loop,null!=this.model.volume?this.videoEl.volume=this.model.volume/100:this.model.volume=100*this.videoEl.volume,this.videoEl.onpause=()=>this.model.paused=!0,this.videoEl.onplay=()=>this.model.paused=!1,this.videoEl.ontimeupdate=()=>this.update_time(this),this.videoEl.onvolumechange=()=>this.update_volume(this),this.el.appendChild(this.videoEl),this.model.paused||this.videoEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.videoEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.videoEl.volume)}set_loop(){this.videoEl.loop=this.model.loop}set_paused(){!this.videoEl.paused&&this.model.paused&&this.videoEl.pause(),this.videoEl.paused&&!this.model.paused&&this.videoEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.videoEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.videoEl.currentTime=this.model.time)}set_value(){this.videoEl.src=this.model.value}}t.VideoView=d,d.__name__="VideoView";class h extends s.HTMLBox{constructor(e){super(e)}static init_Video(){this.prototype.default_view=d,this.define({loop:[o.Boolean,!1],paused:[o.Boolean,!0],time:[o.Number,0],throttle:[o.Number,250],value:[o.Any,""],volume:[o.Number,null]})}}t.Video=h,h.__name__="Video",h.__module__="panel.models.widgets",h.init_Video()},n”, ” "3c7145a2fa": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/layouts/html_box"),h=e("ba20932521");class a extends h.PanelHTMLBoxView{constructor(){super(…arguments),this.constraints={audio:!1,video:!0}}initialize(){super.initialize(),null!==this.model.timeout&&this.set_timeout()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.timeout.change,()=>this.set_timeout()),this.connect(this.model.properties.snapshot.change,()=>this.snapshot()),this.connect(this.model.properties.paused.change,()=>this.pause())}pause(){this.model.paused&&(null!=this.timer&&(clearInterval(this.timer),this.timer=null),this.videoEl.pause()),this.set_timeout()}set_timeout(){this.timer&&(clearInterval(this.timer),this.timer=null),this.model.timeout>0&&(this.timer=setInterval(()=>this.snapshot(),this.model.timeout))}snapshot(){this.canvasEl.width=this.videoEl.videoWidth,this.canvasEl.height=this.videoEl.videoHeight;const e=this.canvasEl.getContext("2d");e&&e.drawImage(this.videoEl,0,0,this.canvasEl.width,this.canvasEl.height),this.model.value=this.canvasEl.toDataURL("image/"+this.model.format,.95)}remove(){super.remove(),this.timer&&(clearInterval(this.timer),this.timer=null)}render(){super.render(),this.videoEl||(this.videoEl=document.createElement("video"),this.model.sizing_mode&&"fixed"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit="fill",this.videoEl.style.minWidth="100%",this.videoEl.style.minHeight="100%",this.canvasEl=document.createElement("canvas"),this.el.appendChild(this.videoEl),navigator.mediaDevices.getUserMedia&&navigator.mediaDevices.getUserMedia(this.constraints).then(e=>{this.videoEl.srcObject=e,this.model.paused||this.videoEl.play()}).catch(console.error))}}i.VideoStreamView=a,a.__name__="VideoStreamView";class l extends o.HTMLBox{constructor(e){super(e)}static init_VideoStream(){this.prototype.default_view=a,this.define({format:[s.String,"png"],paused:[s.Boolean,!1],snapshot:[s.Boolean,!1],timeout:[s.Number,0],value:[s.Any]}),this.override({height:240,width:320})}}i.VideoStream=l,l.__name__="VideoStream",l.__module__="panel.models.widgets",l.init_VideoStream()},n”, ” "ecfbb965eb": function _(e,o,l){Object.defineProperty(l,"__esModule",{value:!0});var V=e("5b5e56e89a");l.VTKPlot=V.VTKPlot;var t=e("729dd26c71");l.VTKVolumePlot=t.VTKVolumePlot;var K=e("e23461e5d7");l.VTKAxes=K.VTKAxes},n”, ” "5b5e56e89a": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),i=e("@bokehjs/core/dom"),a=e("c704c63c0a"),o=e("ba07c3d566");class r extends a.AbstractVTKView{constructor(){super(…arguments),this._axes_initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.axes.change,()=>{this._delete_axes(),this.model.axes&&this._set_axes(),this._vtk_renwin.getRenderWindow().render()}),this.el.addEventListener("mouseenter",()=>{const e=this._vtk_renwin.getInteractor();this.model.enable_keybindings&&(document.querySelector("body").addEventListener("keypress",e.handleKeyPress),document.querySelector("body").addEventListener("keydown",e.handleKeyDown),document.querySelector("body").addEventListener("keyup",e.handleKeyUp))}),this.el.addEventListener("mouseleave",()=>{const e=this._vtk_renwin.getInteractor();document.querySelector("body").removeEventListener("keypress",e.handleKeyPress),document.querySelector("body").removeEventListener("keydown",e.handleKeyDown),document.querySelector("body").removeEventListener("keyup",e.handleKeyUp)})}render(){super.render(),this._axes=null,this._axes_initialized=!1,this._plot()}after_layout(){this._axes_initialized||(this._render_axes_canvas(),this._axes_initialized=!0)}_render_axes_canvas(){const e=this._vtk_container.getElementsByTagName("canvas");if(1!=e.length)throw Error("Error at initialization of the 3D scene, container should have one and only one canvas");e[0].classList.add("scene3d-canvas");const t=i.canvas({style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}});t.classList.add("axes-canvas"),this._vtk_container.appendChild(t),this._vtk_renwin.setResizeCallback(()=>{const e=this._vtk_container.getBoundingClientRect(),n=Math.floor(e.width*window.devicePixelRatio),s=Math.floor(e.height*window.devicePixelRatio);t.setAttribute("width",n.toFixed()),t.setAttribute("height",s.toFixed())})}_delete_axes(){if(null==this._axes)return;Object.keys(this._axes).forEach(e=>this._vtk_renwin.getRenderer().removeActor(this._axes[e]));const e=this._vtk_renwin.getContainer().getElementsByClassName("axes-canvas")[0],t=e.getContext("2d");t&&t.clearRect(0,0,e.clientWidth*window.devicePixelRatio,e.clientHeight*window.devicePixelRatio),this._axes=null}_set_axes(){if(this.model.axes){const e=this._vtk_renwin.getContainer().getElementsByClassName("axes-canvas")[0],{psActor:t,axesActor:n,gridActor:s}=this.model.axes.create_axes(e);this._axes={psActor:t,axesActor:n,gridActor:s},this._vtk_renwin.getRenderer().addActor(t),this._vtk_renwin.getRenderer().addActor(n),this._vtk_renwin.getRenderer().addActor(s)}}_plot(){if(!this.model.data)return void this._vtk_renwin.getRenderWindow().render();const e=o.vtkns.DataAccessHelper.get("zip",{zipContent:atob(this.model.data),callback:t=>{const n=o.vtkns.HttpSceneLoader.newInstance({renderer:this._vtk_renwin.getRenderer(),dataAccessHelper:e}),s=o.vtk.macro.debounce(()=>{null==this._axes&&this.model.axes&&this._set_axes(),this.model.properties.camera.change.emit()},100);n.setUrl("index.json"),n.onReady(s)}})}}n.VTKPlotView=r,r.__name__="VTKPlotView";class d extends a.AbstractVTKPlot{constructor(e){super(e),this.outline=o.vtkns.OutlineFilter.newInstance();const t=o.vtkns.Mapper.newInstance();t.setInputConnection(this.outline.getOutputPort()),this.outline_actor=o.vtkns.Actor.newInstance(),this.outline_actor.setMapper(t)}static init_VTKPlot(){this.prototype.default_view=r,this.define({data:[s.String],axes:[s.Instance],enable_keybindings:[s.Boolean,!1]})}}n.VTKPlot=d,d.__name__="VTKPlot",d.init_VTKPlot()},n”, ” "c704c63c0a": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e("tslib").__importStar(e("@bokehjs/core/properties")),r=e("@bokehjs/core/dom"),s=e("@bokehjs/core/util/object"),a=e("@bokehjs/models/layouts/html_box"),o=e("ba20932521"),_=e("ba07c3d566");class d extends o.PanelHTMLBoxView{constructor(){super(…arguments),this._setting_camera=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,()=>{this.invalidate_render()}),this.connect(this.model.properties.orientation_widget.change,()=>{this._orientation_widget_visibility(this.model.orientation_widget)}),this.connect(this.model.properties.camera.change,()=>this._set_camera_state())}_orientation_widget_visibility(e){this._orientationWidget.setEnabled(e),e?this._widgetManager.enablePicking():this._widgetManager.disablePicking(),this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderWindow().render()}_create_orientation_widget(){const e=_.vtkns.AxesActor.newInstance(),t=_.vtkns.OrientationMarkerWidget.newInstance({actor:e,interactor:this._vtk_renwin.getInteractor()});t.setEnabled(!0),t.setViewportCorner(_.vtkns.OrientationMarkerWidget.Corners.BOTTOM_RIGHT),t.setViewportSize(.15),t.setMinPixelSize(100),t.setMaxPixelSize(300),this._orientationWidget=t;const i=_.vtkns.WidgetManager.newInstance();i.setRenderer(t.getRenderer());const n=_.vtkns.InteractiveOrientationWidget.newInstance();n.placeWidget(e.getBounds()),n.setBounds(e.getBounds()),n.setPlaceFactor(1);const r=i.addWidget(n);this._widgetManager=i,r.onOrientationChange(({direction:e})=>{const t=this._vtk_renwin.getRenderer().getActiveCamera(),i=t.getFocalPoint(),n=t.getPosition(),r=t.getViewUp(),s=Math.sqrt(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)+Math.pow(n[2]-i[2],2));t.setPosition(i[0]+e[0]*s,i[1]+e[1]*s,i[2]+e[2]*s),e[0]&&t.setViewUp(_.majorAxis(r,1,2)),e[1]&&t.setViewUp(_.majorAxis(r,0,2)),e[2]&&t.setViewUp(_.majorAxis(r,0,1)),this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_renwin.getRenderWindow().render()}),this._orientation_widget_visibility(this.model.orientation_widget)}_get_camera_state(){if(!this._setting_camera){this._setting_camera=!0;const e=s.clone(this._vtk_renwin.getRenderer().getActiveCamera().get());delete e.classHierarchy,delete e.vtkObject,delete e.vtkCamera,delete e.viewPlaneNormal,this.model.camera=e,this._setting_camera=!1}}_set_camera_state(){if(!this._setting_camera){this._setting_camera=!0;try{this.model.camera&&this._vtk_renwin.getRenderer().getActiveCamera().set(this.model.camera)}finally{this._setting_camera=!1}this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_renwin.getRenderWindow().render()}}render(){super.render(),this._orientationWidget=null,this._vtk_container=r.div(),o.set_size(this._vtk_container,this.model),this.el.appendChild(this._vtk_container),this._vtk_renwin=_.vtkns.FullScreenRenderWindow.newInstance({rootContainer:this.el,container:this._vtk_container}),this._remove_default_key_binding(),this._create_orientation_widget(),this._vtk_renwin.getRenderer().getActiveCamera().onModified(()=>this._get_camera_state()),this._set_camera_state(),this.model.renderer_el=this._vtk_renwin}after_layout(){super.after_layout(),this._vtk_renwin.resize()}_remove_default_key_binding(){const e=this._vtk_renwin.getInteractor();document.querySelector("body").removeEventListener("keypress",e.handleKeyPress),document.querySelector("body").removeEventListener("keydown",e.handleKeyDown),document.querySelector("body").removeEventListener("keyup",e.handleKeyUp)}}i.AbstractVTKView=d,d.__name__="AbstractVTKView";class c extends a.HTMLBox{constructor(e){super(e)}getActors(){return this.renderer_el.getRenderer().getActors()}static init_AbstractVTKPlot(){this.define({orientation_widget:[n.Boolean,!1],camera:[n.Instance]}),this.override({height:300,width:300})}}i.AbstractVTKPlot=c,c.__name__="AbstractVTKPlot",c.__module__="panel.models.vtk",c.init_AbstractVTKPlot()},n”, ” "ba07c3d566": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@bokehjs/core/util/serialization"),a=e("@bokehjs/core/util/array");function o(e){const t=Math.min(Math.max(Math.round(e),0),255).toString(16);return 2==t.length?t:"0"+t}function i(e,t,n){return"#"+o(e)+o(t)+o(n)}function s(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,a=e.length;r<a;r++)n[r]=e.charCodeAt(r);return t}n.vtk=window.vtk,n.vtkns={},n.vtk&&(n.vtkns.DataArray=n.vtk.Common.Core.vtkDataArray,n.vtkns.ImageData=n.vtk.Common.DataModel.vtkImageData,n.vtkns.OutlineFilter=n.vtk.Filters.General.vtkOutlineFilter,n.vtkns.CubeSource=n.vtk.Filters.Sources.vtkCubeSource,n.vtkns.LineSource=n.vtk.Filters.Sources.vtkLineSource,n.vtkns.PlaneSource=n.vtk.Filters.Sources.vtkPlaneSource,n.vtkns.PointSource=n.vtk.Filters.Sources.vtkPointSource,n.vtkns.OrientationMarkerWidget=n.vtk.Interaction.Widgets.vtkOrientationMarkerWidget,n.vtkns.DataAccessHelper=n.vtk.IO.Core.DataAccessHelper,n.vtkns.HttpSceneLoader=n.vtk.IO.Core.vtkHttpSceneLoader,n.vtkns.ImageSlice=n.vtk.Rendering.Core.vtkImageSlice,n.vtkns.Actor=n.vtk.Rendering.Core.vtkActor,n.vtkns.AxesActor=n.vtk.Rendering.Core.vtkAxesActor,n.vtkns.Mapper=n.vtk.Rendering.Core.vtkMapper,n.vtkns.ImageMapper=n.vtk.Rendering.Core.vtkImageMapper,n.vtkns.SphereMapper=n.vtk.Rendering.Core.vtkSphereMapper,n.vtkns.WidgetManager=n.vtk.Widgets.Core.vtkWidgetManager,n.vtkns.InteractiveOrientationWidget=n.vtk.Widgets.Widgets3D.vtkInteractiveOrientationWidget,n.vtkns.PixelSpaceCallbackMapper=n.vtk.Rendering.Core.vtkPixelSpaceCallbackMapper,n.vtkns.FullScreenRenderWindow=n.vtk.Rendering.Misc.vtkFullScreenRenderWindow,n.vtkns.VolumeController=n.vtk.Interaction.UI.vtkVolumeController,n.vtkns.Volume=n.vtk.Rendering.Core.vtkVolume,n.vtkns.VolumeMapper=n.vtk.Rendering.Core.vtkVolumeMapper,n.vtkns.ColorTransferFunction=n.vtk.Rendering.Core.vtkColorTransferFunction,n.vtkns.PiecewiseFunction=n.vtk.Common.DataModel.vtkPiecewiseFunction,n.vtkns.BoundingBox=n.vtk.Common.DataModel.vtkBoundingBox),n.hexToRGB=function(e){return[parseInt(e.slice(1,3),16)/255,parseInt(e.slice(3,5),16)/255,parseInt(e.slice(5,7),16)/255]},n.rgbToHex=i,n.vtkLutToMapper=function(e){const{scale:t,nodes:r}=e.get("scale","nodes");if(t!==n.vtkns.ColorTransferFunction.Scale.LINEAR)throw"Error transfer function scale not handle";const o=r.map(e=>e.x),s=Math.min(…o),k=Math.max(…o),v=a.linspace(s,k,255),c=[0,0,0];return{low:s,high:k,palette:v.map(t=>(e.getColor(t,c),i(255*c[0],255*c[1],255*c[2])))}},n.data2VTKImageData=function(e){const t=n.vtkns.ImageData.newInstance({spacing:e.spacing});t.setDimensions(e.dims),t.setOrigin(null!=e.origin?e.origin:e.dims.map(e=>e/2));const a=n.vtkns.DataArray.newInstance({name:"scalars",numberOfComponents:1,values:new r.ARRAY_TYPES[e.dtype](s(atob(e.buffer)))});return t.getPointData().setScalars(a),t},n.majorAxis=function(e,t,n){const r=[0,0,0],a=Math.abs(e[t])>Math.abs(e[n])?t:n,o=e[a]>0?1:-1;return r[a]=o,r},n.cartesian_product=function(…e){return e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[].concat(e,t))))}},n”, ” "729dd26c71": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),r=e("c704c63c0a"),n=e("ba07c3d566");class o extends r.AbstractVTKView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.colormap.change,()=>{this.colormap_slector.value=this.model.colormap;const e=new Event("change");this.colormap_slector.dispatchEvent(e)}),this.connect(this.model.properties.shadow.change,()=>{this.shadow_selector.value=this.model.shadow?"1":"0";const e=new Event("change");this.shadow_selector.dispatchEvent(e)}),this.connect(this.model.properties.sampling.change,()=>{this.sampling_slider.value=this.model.sampling.toFixed(2);const e=new Event("input");this.sampling_slider.dispatchEvent(e)}),this.connect(this.model.properties.edge_gradient.change,()=>{this.edge_gradient_slider.value=this.model.edge_gradient.toFixed(2);const e=new Event("input");this.edge_gradient_slider.dispatchEvent(e)}),this.connect(this.model.properties.rescale.change,()=>{this._controllerWidget.setRescaleColorMap(this.model.rescale),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.ambient.change,()=>{this.volume.getProperty().setAmbient(this.model.ambient),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.diffuse.change,()=>{this.volume.getProperty().setDiffuse(this.model.diffuse),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.specular.change,()=>{this.volume.getProperty().setSpecular(this.model.specular),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.specular_power.change,()=>{this.volume.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.display_volume.change,()=>{this._set_volume_visibility(this.model.display_volume),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.display_slices.change,()=>{this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_i.change,()=>{this.image_actor_i.getMapper().setISlice(this.model.slice_i),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_j.change,()=>{this.image_actor_j.getMapper().setJSlice(this.model.slice_j),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_k.change,()=>{this.image_actor_k.getMapper().setKSlice(this.model.slice_k),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.render_background.change,()=>{this._vtk_renwin.getRenderer().setBackground(…n.hexToRGB(this.model.render_background)),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.interpolation.change,()=>{this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderWindow().render()})}get volume(){return this._controllerWidget.getActor()}get image_actor_i(){return this._vtk_renwin.getRenderer().getActors()[0]}get image_actor_j(){return this._vtk_renwin.getRenderer().getActors()[1]}get image_actor_k(){return this._vtk_renwin.getRenderer().getActors()[2]}get shadow_selector(){return this.el.querySelector(".js-shadow")}get edge_gradient_slider(){return this.el.querySelector(".js-edge")}get sampling_slider(){return this.el.querySelector(".js-spacing")}get colormap_slector(){return this.el.querySelector(".js-color-preset")}_set_interpolation(e){"fast_linear"==e?(this.volume.getProperty().setInterpolationTypeToFastLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):"linear"==e?(this.volume.getProperty().setInterpolationTypeToLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):(this.volume.getProperty().setInterpolationTypeToNearest(),this.image_actor_i.getProperty().setInterpolationTypeToNearest())}render(){super.render(),this._controllerWidget=n.vtkns.VolumeController.newInstance({size:[400,150],rescaleColorMap:this.model.rescale}),this._vtk_image_data=n.data2VTKImageData(this.model.data),this._controllerWidget.setContainer(this.el),this._vtk_renwin.getRenderWindow().getInteractor(),this._vtk_renwin.getRenderWindow().getInteractor().setDesiredUpdateRate(45),this._plot_volume(),this._connect_controls(),this._plot_slices(),this._set_volume_visibility(this.model.display_volume),this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderer().setBackground(…n.hexToRGB(this.model.render_background)),this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderer().resetCamera()}_connect_controls(){this.colormap_slector.addEventListener("change",()=>{this.model.colormap=this.colormap_slector.value}),this.model.colormap?this.model.properties.colormap.change.emit():this.model.colormap=this.colormap_slector.value,this.shadow_selector.addEventListener("change",()=>{this.model.shadow=!!Number(this.shadow_selector.value)}),(this.model.shadow=!!Number(this.shadow_selector.value))&&this.model.properties.shadow.change.emit(),this.sampling_slider.addEventListener("input",()=>{const e=Number(this.sampling_slider.value);Math.abs(this.model.sampling-e)>=.005&&(this.model.sampling=e)}),Math.abs(this.model.sampling-Number(this.shadow_selector.value))>=.005&&this.model.properties.sampling.change.emit(),this.edge_gradient_slider.addEventListener("input",()=>{const e=Number(this.edge_gradient_slider.value);Math.abs(this.model.edge_gradient-e)>=.005&&(this.model.edge_gradient=e)}),Math.abs(this.model.edge_gradient-Number(this.edge_gradient_slider.value))>=.005&&this.model.properties.edge_gradient.change.emit()}_plot_volume(){const e=this._vtk_image_data,t=n.vtkns.Volume.newInstance(),i=n.vtkns.VolumeMapper.newInstance();t.setMapper(i),i.setInputData(e);const s=(e.getPointData().getScalars()||e.getPointData().getArrays()[0]).getRange(),r=n.vtkns.ColorTransferFunction.newInstance();r.onModified(()=>this.model.mapper=n.vtkLutToMapper(r));const o=n.vtkns.PiecewiseFunction.newInstance(),a=.7*Math.sqrt(e.getSpacing().map(e=>e*e).reduce((e,t)=>e+t,0));i.setSampleDistance(a),t.getProperty().setRGBTransferFunction(0,r),t.getProperty().setScalarOpacity(0,o),t.getProperty().setInterpolationTypeToFastLinear(),t.getProperty().setScalarOpacityUnitDistance(0,n.vtkns.BoundingBox.getDiagonalLength(e.getBounds())/Math.max(…e.getDimensions())),t.getProperty().setGradientOpacityMinimumValue(0,0),t.getProperty().setGradientOpacityMaximumValue(0,.05*(s[1]-s[0])),t.getProperty().setShade(this.model.shadow),t.getProperty().setUseGradientOpacity(0,!0),t.getProperty().setGradientOpacityMinimumOpacity(0,0),t.getProperty().setGradientOpacityMaximumOpacity(0,1),t.getProperty().setAmbient(this.model.ambient),t.getProperty().setDiffuse(this.model.diffuse),t.getProperty().setSpecular(this.model.specular),t.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderer().addVolume(t),this._controllerWidget.setupContent(this._vtk_renwin.getRenderWindow(),t,!0)}_plot_slices(){const e=this._vtk_image_data,t=n.vtkns.ImageSlice.newInstance(),i=n.vtkns.ImageSlice.newInstance(),s=n.vtkns.ImageSlice.newInstance(),r=n.vtkns.ImageMapper.newInstance(),o=n.vtkns.ImageMapper.newInstance(),a=n.vtkns.ImageMapper.newInstance();r.setInputData(e),r.setISlice(this.model.slice_i),t.setMapper(r),o.setInputData(e),o.setJSlice(this.model.slice_j),i.setMapper(o),a.setInputData(e),a.setKSlice(this.model.slice_k),s.setMapper(a);const l=n.vtkns.PiecewiseFunction.newInstance();l.removeAllPoints(),l.addPoint(0,1);const c=this.volume.getProperty().getRGBTransferFunction(0),d=t.getProperty();i.setProperty(d),s.setProperty(d),d.setRGBTransferFunction(c),d.setScalarOpacity(l);const h=this._vtk_renwin.getRenderer();h.addActor(t),h.addActor(i),h.addActor(s)}_set_volume_visibility(e){this.volume.setVisibility(e)}_set_slices_visibility(e){this._vtk_renwin.getRenderer().getActors().map(t=>t.setVisibility(e))}}i.VTKVolumePlotView=o,o.__name__="VTKVolumePlotView";class a extends r.AbstractVTKPlot{constructor(e){super(e)}static init_VTKVolumePlot(){this.prototype.default_view=o,this.define({data:[s.Instance],shadow:[s.Boolean,!0],sampling:[s.Number,.4],edge_gradient:[s.Number,.2],colormap:[s.String],rescale:[s.Boolean,!1],ambient:[s.Number,.2],diffuse:[s.Number,.7],specular:[s.Number,.3],specular_power:[s.Number,8],slice_i:[s.Int,0],slice_j:[s.Int,0],slice_k:[s.Int,0],display_volume:[s.Boolean,!0],display_slices:[s.Boolean,!1],render_background:[s.String,"#52576e"],interpolation:[s.Any,"fast_linear"],mapper:[s.Instance]})}}i.VTKVolumePlot=a,a.__name__="VTKVolumePlot",a.init_VTKVolumePlot()},n”, ” "e23461e5d7": function _(t,s,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t("tslib"),n=t("2f3fd5db07"),a=t("@bokehjs/model"),c=e.__importStar(t("@bokehjs/core/properties")),r=t("ba07c3d566");class h extends a.Model{constructor(t){super(t)}static init_VTKAxes(){this.define({origin:[c.Array],xticker:[c.Instance],yticker:[c.Instance],zticker:[c.Instance],digits:[c.Number,1],show_grid:[c.Boolean,!0],grid_opacity:[c.Number,.1],axes_opacity:[c.Number,1],fontsize:[c.Number,12]})}get xticks(){return this.xticker.ticks}get yticks(){return this.yticker.ticks}get zticks(){return this.zticker.ticks}get xlabels(){return this.xticker.labels?this.xticker.labels:this.xticks.map(t=>t.toFixed(this.digits))}get ylabels(){return this.yticker.labels?this.yticker.labels:this.yticks.map(t=>t.toFixed(this.digits))}get zlabels(){return this.zticker.labels?this.zticker.labels:this.zticks.map(t=>t.toFixed(this.digits))}_make_grid_lines(t,s,i){const e=[];for(let n=0;n<t-1;n++)for(let t=0;t<s-1;t++){const a=n*s+t+i,c=[5,a,n*s+t+1+i,(n+1)*s+t+1+i,(n+1)*s+t+i,a];e.push(c)}return e}_create_grid_axes(){const t=[];t.push(r.cartesian_product(this.xticks,this.yticks,[this.origin[2]])),t.push(r.cartesian_product([this.origin[0]],this.yticks,this.zticks)),t.push(r.cartesian_product(this.xticks,[this.origin[1]],this.zticks));const s=[];let i=0;s.push(this._make_grid_lines(this.xticks.length,this.yticks.length,i)),i+=this.xticks.length*this.yticks.length,s.push(this._make_grid_lines(this.yticks.length,this.zticks.length,i)),i+=this.yticks.length*this.zticks.length,s.push(this._make_grid_lines(this.xticks.length,this.zticks.length,i));const e=r.vtk({vtkClass:"vtkPolyData",points:{vtkClass:"vtkPoints",dataType:"Float32Array",numberOfComponents:3,values:t.flat(2)},lines:{vtkClass:"vtkCellArray",dataType:"Uint32Array",values:s.flat(2)}}),n=r.vtkns.Mapper.newInstance(),a=r.vtkns.Actor.newInstance();return n.setInputData(e),a.setMapper(n),a.getProperty().setOpacity(this.grid_opacity),a.setVisibility(this.show_grid),a}create_axes(t){const s=[this.xticks,this.yticks,this.zticks].map((t,s)=>{let i=null;switch(s){case 0:i=r.cartesian_product(t,[this.origin[1]],[this.origin[2]]);break;case 1:i=r.cartesian_product([this.origin[0]],t,[this.origin[2]]);break;case 2:i=r.cartesian_product([this.origin[0]],[this.origin[1]],t)}return i}).flat(2),i=r.vtk({vtkClass:"vtkPolyData",points:{vtkClass:"vtkPoints",dataType:"Float32Array",numberOfComponents:3,values:s},lines:{vtkClass:"vtkCellArray",dataType:"Uint32Array",values:[2,0,this.xticks.length-1,2,this.xticks.length,this.xticks.length+this.yticks.length-1,2,this.xticks.length+this.yticks.length,this.xticks.length+this.yticks.length+this.zticks.length-1]}}),e=r.vtkns.PixelSpaceCallbackMapper.newInstance();e.setInputData(i),e.setUseZValues(!0),e.setCallback((s,i,a)=>{const c=t.getContext("2d");if(c){const r={height:t.clientHeight*window.devicePixelRatio,width:t.clientWidth*window.devicePixelRatio},h=e.getInputData().getPoints(),l=i.getViewMatrix();n.mat4.transpose(l,l);const o=i.getProjectionMatrix(a,-1,1);n.mat4.transpose(o,o),c.clearRect(0,0,r.width,r.height),s.forEach((t,s)=>{const i=h.getPoint(s),e=n.vec3.fromValues(i[0],i[1],i[2]);if(n.vec3.transformMat4(e,e,l),e[2]+=.05,n.vec3.transformMat4(e,e,o),e[2]-.001<t[3]){let i;c.font="30px serif",c.textAlign="center",c.textBaseline="alphabetic",c.fillText(".",t[0],r.height-t[1]+2),c.font=`${this.fontsize*window.devicePixelRatio}px serif`,c.textAlign="right",c.textBaseline="top",i=s<this.xticks.length?this.xlabels[s]:s>=this.xticks.length&&s<this.xticks.length+this.yticks.length?this.ylabels[s-this.xticks.length]:this.zlabels[s-(this.xticks.length+this.yticks.length)],c.fillText(${i},t[0],r.height-t[1])}})}});const a=r.vtkns.Actor.newInstance();a.setMapper(e);const c=r.vtkns.Mapper.newInstance();c.setInputData(i);const h=r.vtkns.Actor.newInstance();return h.setMapper(c),h.getProperty().setOpacity(this.axes_opacity),{psActor:a,axesActor:h,gridActor:this._create_grid_axes()}}}i.VTKAxes=h,h.__name__="VTKAxes",h.__module__="panel.models.vtk",h.init_VTKAxes()},n”, ” "2f3fd5db07": function _(t,c,a){Object.defineProperty(a,"__esModule",{value:!0});const o=t("tslib"),r=o.__importStar(t("68ca94c15c"));a.glMatrix=r;const _=o.__importStar(t("7c0b8e6048"));a.mat2=_;const e=o.__importStar(t("dc03f0a621"));a.mat2d=e;const i=o.__importStar(t("0285c50a7e"));a.mat3=i;const m=o.__importStar(t("a427635f32"));a.mat4=m;const n=o.__importStar(t("eb06fc032a"));a.quat=n;const s=o.__importStar(t("277615c682"));a.quat2=s;const p=o.__importStar(t("c56d9ff837"));a.vec2=p;const S=o.__importStar(t("2c5eb22089"));a.vec3=S;const f=o.__importStar(t("c1aa33d719"));a.vec4=f},n”, ” "68ca94c15c": function _(t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EPSILON=1e-6,r.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,r.RANDOM=Math.random,r.setMatrixArrayType=function(t){r.ARRAY_TYPE=t};var n=Math.PI/180;r.toRadian=function(t){return t*n},r.equals=function(t,a){return Math.abs(t-a)<=r.EPSILON*Math.max(1,Math.abs(t),Math.abs(a))},Math.hypot||(Math.hypot=function(){for(var t=0,a=arguments.length;a–;)t+=arguments[a]*arguments[a];return Math.sqrt(t)})},n”, ” "7c0b8e6048": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1],f=r[2],s=r[3];return t[0]=a*c+e*i,t[1]=u*c+o*i,t[2]=a*f+e*s,t[3]=u*f+o*s,t}function e(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}r.create=function(){var t=new a.ARRAY_TYPE(4);return a.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},r.clone=function(t){var n=new a.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},r.fromValues=function(t,n,r,u){var e=new a.ARRAY_TYPE(4);return e[0]=t,e[1]=n,e[2]=r,e[3]=u,e},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.transpose=function(t,n){if(t===n){var r=n[1];t[1]=n[2],t[2]=r}else t[0]=n[0],t[1]=n[2],t[2]=n[1],t[3]=n[3];return t},r.invert=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*e-u*a;return o?(o=1/o,t[0]=e*o,t[1]=-a*o,t[2]=-u*o,t[3]=r*o,t):null},r.adjoint=function(t,n){var r=n[0];return t[0]=n[3],t[1]=-n[1],t[2]=-n[2],t[3]=r,t},r.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},r.multiply=u,r.rotate=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=Math.sin(r),i=Math.cos(r);return t[0]=a*i+e*c,t[1]=u*i+o*c,t[2]=a*-c+e*i,t[3]=u*-c+o*i,t},r.scale=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1];return t[0]=a*c,t[1]=u*c,t[2]=e*i,t[3]=o*i,t},r.fromRotation=function(t,n){var r=Math.sin(n),a=Math.cos(n);return t[0]=a,t[1]=r,t[2]=-r,t[3]=a,t},r.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t},r.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},r.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},r.LDU=function(t,n,r,a){return t[2]=a[2]/a[0],r[0]=a[0],r[1]=a[1],r[3]=a[3]-t[2]*r[1],[t,n,r]},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=e,r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=t[3],c=n[0],i=n[1],f=n[2],s=n[3];return Math.abs(r-c)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(u-i)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(i))&&Math.abs(e-f)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(f))&&Math.abs(o-s)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(s))},r.multiplyScalar=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.multiplyScalarAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.mul=u,r.sub=e},n”, ” "dc03f0a621": function _(t,n,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function u(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1],h=a[2],M=a[3],b=a[4],l=a[5];return t[0]=r*s+e*f,t[1]=u*s+o*f,t[2]=r*h+e*M,t[3]=u*h+o*M,t[4]=r*b+e*l+c,t[5]=u*b+o*l+i,t}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t}a.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},a.clone=function(t){var n=new r.ARRAY_TYPE(6);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n},a.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t},a.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},a.fromValues=function(t,n,a,u,e,o){var c=new r.ARRAY_TYPE(6);return c[0]=t,c[1]=n,c[2]=a,c[3]=u,c[4]=e,c[5]=o,c},a.set=function(t,n,a,r,u,e,o){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=e,t[5]=o,t},a.invert=function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],c=n[5],i=a*e-r*u;return i?(i=1/i,t[0]=e*i,t[1]=-r*i,t[2]=-u*i,t[3]=a*i,t[4]=(u*c-e*o)*i,t[5]=(r*o-a*c)*i,t):null},a.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},a.multiply=u,a.rotate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=Math.sin(a),f=Math.cos(a);return t[0]=r*f+e*s,t[1]=u*f+o*s,t[2]=r*-s+e*f,t[3]=u*-s+o*f,t[4]=c,t[5]=i,t},a.scale=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1];return t[0]=r*s,t[1]=u*s,t[2]=e*f,t[3]=o*f,t[4]=c,t[5]=i,t},a.translate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1];return t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=r*s+e*f+c,t[5]=u*s+o*f+i,t},a.fromRotation=function(t,n){var a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=-a,t[3]=r,t[4]=0,t[5]=0,t},a.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t[4]=0,t[5]=0,t},a.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=n[0],t[5]=n[1],t},a.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},a.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},a.add=function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t},a.subtract=e,a.multiplyScalar=function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t},a.multiplyScalarAndAdd=function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t},a.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]},a.equals=function(t,n){var a=t[0],u=t[1],e=t[2],o=t[3],c=t[4],i=t[5],s=n[0],f=n[1],h=n[2],M=n[3],b=n[4],l=n[5];return Math.abs(a-s)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(u-f)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(f))&&Math.abs(e-h)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(c-b)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))},a.mul=u,a.sub=e},n”, ” "0285c50a7e": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function u(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1],l=n[2],m=n[3],v=n[4],E=n[5],P=n[6],S=n[7],d=n[8];return t[0]=f*r+b*e+l*s,t[1]=f*u+b*i+l*M,t[2]=f*o+b*c+l*h,t[3]=m*r+v*e+E*s,t[4]=m*u+v*i+E*M,t[5]=m*o+v*c+E*h,t[6]=P*r+S*e+d*s,t[7]=P*u+S*i+d*M,t[8]=P*o+S*c+d*h,t}function o(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t}n.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},n.fromMat4=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[4],t[4]=a[5],t[5]=a[6],t[6]=a[8],t[7]=a[9],t[8]=a[10],t},n.clone=function(t){var a=new r.ARRAY_TYPE(9);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromValues=function(t,a,n,u,o,e,i,c,s){var M=new r.ARRAY_TYPE(9);return M[0]=t,M[1]=a,M[2]=n,M[3]=u,M[4]=o,M[5]=e,M[6]=i,M[7]=c,M[8]=s,M},n.set=function(t,a,n,r,u,o,e,i,c,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=u,t[4]=o,t[5]=e,t[6]=i,t[7]=c,t[8]=s,t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],u=a[5];t[1]=a[3],t[2]=a[6],t[3]=n,t[5]=a[7],t[6]=r,t[7]=u}else t[0]=a[0],t[1]=a[3],t[2]=a[6],t[3]=a[1],t[4]=a[4],t[5]=a[7],t[6]=a[2],t[7]=a[5],t[8]=a[8];return t},n.invert=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=M*e-i*s,f=-M*o+i*c,b=s*o-e*c,l=n*h+r*f+u*b;return l?(l=1/l,t[0]=h*l,t[1]=(-M*r+u*s)*l,t[2]=(i*r-u*e)*l,t[3]=f*l,t[4]=(M*n-u*c)*l,t[5]=(-i*n+u*o)*l,t[6]=b*l,t[7]=(-s*n+r*c)*l,t[8]=(e*n-r*o)*l,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8];return t[0]=e*M-i*s,t[1]=u*s-r*M,t[2]=r*i-u*e,t[3]=i*c-o*M,t[4]=n*M-u*c,t[5]=u*o-n*i,t[6]=o*s-e*c,t[7]=r*c-n*s,t[8]=n*e-r*o,t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],u=t[3],o=t[4],e=t[5],i=t[6],c=t[7],s=t[8];return a*(s*o-e*c)+n*(-s*u+e*i)+r*(c*u-o*i)},n.multiply=u,n.translate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1];return t[0]=r,t[1]=u,t[2]=o,t[3]=e,t[4]=i,t[5]=c,t[6]=f*r+b*e+s,t[7]=f*u+b*i+M,t[8]=f*o+b*c+h,t},n.rotate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=Math.sin(n),b=Math.cos(n);return t[0]=b*r+f*e,t[1]=b*u+f*i,t[2]=b*o+f*c,t[3]=b*e-f*r,t[4]=b*i-f*u,t[5]=b*c-f*o,t[6]=s,t[7]=M,t[8]=h,t},n.scale=function(t,a,n){var r=n[0],u=n[1];return t[0]=r*a[0],t[1]=r*a[1],t[2]=r*a[2],t[3]=u*a[3],t[4]=u*a[4],t[5]=u*a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=a[0],t[7]=a[1],t[8]=1,t},n.fromRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=a[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromMat2d=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=0,t[3]=a[2],t[4]=a[3],t[5]=0,t[6]=a[4],t[7]=a[5],t[8]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=n+n,i=r+r,c=u+u,s=n*e,M=r*e,h=r*i,f=u*e,b=u*i,l=u*c,m=o*e,v=o*i,E=o*c;return t[0]=1-h-l,t[3]=M-E,t[6]=f+v,t[1]=M+E,t[4]=1-s-l,t[7]=b-m,t[2]=f-v,t[5]=b+m,t[8]=1-s-h,t},n.normalFromMat4=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=a[9],f=a[10],b=a[11],l=a[12],m=a[13],v=a[14],E=a[15],P=n*i-r*e,S=n*c-u*e,d=n*s-o*e,A=r*c-u*i,x=r*s-o*i,O=u*s-o*c,p=M*m-h*l,I=M*v-f*l,L=M*E-b*l,N=h*v-f*m,R=h*E-b*m,_=f*E-b*v,y=P*_-S*R+d*N+A*L-x*I+O*p;return y?(y=1/y,t[0]=(i*_-c*R+s*N)*y,t[1]=(c*L-e*_-s*I)*y,t[2]=(e*R-i*L+s*p)*y,t[3]=(u*R-r*_-o*N)*y,t[4]=(n*_-u*L+o*I)*y,t[5]=(r*L-n*R-o*p)*y,t[6]=(m*O-v*x+E*A)*y,t[7]=(v*d-l*O-E*S)*y,t[8]=(l*x-m*d+E*P)*y,t):null},n.projection=function(t,a,n){return t[0]=2/a,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},n.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t},n.subtract=o,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]},n.equals=function(t,a){var n=t[0],u=t[1],o=t[2],e=t[3],i=t[4],c=t[5],s=t[6],M=t[7],h=t[8],f=a[0],b=a[1],l=a[2],m=a[3],v=a[4],E=a[5],P=a[6],S=a[7],d=a[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(u-b)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(e-m)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(m))&&Math.abs(i-v)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(c-E)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(s-P)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(P))&&Math.abs(M-S)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(S))&&Math.abs(h-d)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(d))},n.mul=u,n.sub=o},n”, ” "a427635f32": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function o(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],e=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],v=a[12],m=a[13],P=a[14],E=a[15],S=n[0],I=n[1],O=n[2],p=n[3];return t[0]=S*r+I*M+O*c+p*v,t[1]=S*h+I*e+O*f+p*m,t[2]=S*o+I*s+O*b+p*P,t[3]=S*u+I*i+O*l+p*E,S=n[4],I=n[5],O=n[6],p=n[7],t[4]=S*r+I*M+O*c+p*v,t[5]=S*h+I*e+O*f+p*m,t[6]=S*o+I*s+O*b+p*P,t[7]=S*u+I*i+O*l+p*E,S=n[8],I=n[9],O=n[10],p=n[11],t[8]=S*r+I*M+O*c+p*v,t[9]=S*h+I*e+O*f+p*m,t[10]=S*o+I*s+O*b+p*P,t[11]=S*u+I*i+O*l+p*E,S=n[12],I=n[13],O=n[14],p=n[15],t[12]=S*r+I*M+O*c+p*v,t[13]=S*h+I*e+O*f+p*m,t[14]=S*o+I*s+O*b+p*P,t[15]=S*u+I*i+O*l+p*E,t}function u(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=r+r,e=h+h,s=o+o,i=r*M,c=r*e,f=r*s,b=h*e,l=h*s,v=o*s,m=u*M,P=u*e,E=u*s;return t[0]=1-(b+v),t[1]=c+E,t[2]=f-P,t[3]=0,t[4]=c-E,t[5]=1-(i+v),t[6]=l+m,t[7]=0,t[8]=f+P,t[9]=l-m,t[10]=1-(i+b),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function M(t,a){var n=a[0],r=a[1],h=a[2],o=a[4],u=a[5],M=a[6],e=a[8],s=a[9],i=a[10];return t[0]=Math.hypot(n,r,h),t[1]=Math.hypot(o,u,M),t[2]=Math.hypot(e,s,i),t}function e(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t[9]=a[9]-n[9],t[10]=a[10]-n[10],t[11]=a[11]-n[11],t[12]=a[12]-n[12],t[13]=a[13]-n[13],t[14]=a[14]-n[14],t[15]=a[15]-n[15],t}n.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},n.clone=function(t){var a=new r.ARRAY_TYPE(16);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.fromValues=function(t,a,n,h,o,u,M,e,s,i,c,f,b,l,v,m){var P=new r.ARRAY_TYPE(16);return P[0]=t,P[1]=a,P[2]=n,P[3]=h,P[4]=o,P[5]=u,P[6]=M,P[7]=e,P[8]=s,P[9]=i,P[10]=c,P[11]=f,P[12]=b,P[13]=l,P[14]=v,P[15]=m,P},n.set=function(t,a,n,r,h,o,u,M,e,s,i,c,f,b,l,v,m){return t[0]=a,t[1]=n,t[2]=r,t[3]=h,t[4]=o,t[5]=u,t[6]=M,t[7]=e,t[8]=s,t[9]=i,t[10]=c,t[11]=f,t[12]=b,t[13]=l,t[14]=v,t[15]=m,t},n.identity=h,n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],h=a[3],o=a[6],u=a[7],M=a[11];t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=n,t[6]=a[9],t[7]=a[13],t[8]=r,t[9]=o,t[11]=a[14],t[12]=h,t[13]=u,t[14]=M}else t[0]=a[0],t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=a[1],t[5]=a[5],t[6]=a[9],t[7]=a[13],t[8]=a[2],t[9]=a[6],t[10]=a[10],t[11]=a[14],t[12]=a[3],t[13]=a[7],t[14]=a[11],t[15]=a[15];return t},n.invert=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],e=a[6],s=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],v=a[13],m=a[14],P=a[15],E=n*M-r*u,S=n*e-h*u,I=n*s-o*u,O=r*e-h*M,p=r*s-o*M,L=h*s-o*e,N=i*v-c*l,R=i*m-f*l,x=i*P-b*l,y=c*m-f*v,A=c*P-b*v,Y=f*P-b*m,d=E*Y-S*A+I*y+O*x-p*R+L*N;return d?(d=1/d,t[0]=(M*Y-e*A+s*y)*d,t[1]=(h*A-r*Y-o*y)*d,t[2]=(v*L-m*p+P*O)*d,t[3]=(f*p-c*L-b*O)*d,t[4]=(e*x-u*Y-s*R)*d,t[5]=(n*Y-h*x+o*R)*d,t[6]=(m*I-l*L-P*S)*d,t[7]=(i*L-f*I+b*S)*d,t[8]=(u*A-M*x+s*N)*d,t[9]=(r*x-n*A-o*N)*d,t[10]=(l*p-v*I+P*E)*d,t[11]=(c*I-i*p-b*E)*d,t[12]=(M*R-u*y-e*N)*d,t[13]=(n*y-r*R+h*N)*d,t[14]=(v*S-l*O-m*E)*d,t[15]=(i*O-c*S+f*E)*d,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],e=a[6],s=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],v=a[13],m=a[14],P=a[15];return t[0]=M*(f*P-b*m)-c*(e*P-s*m)+v*(e*b-s*f),t[1]=-(r*(f*P-b*m)-c*(h*P-o*m)+v*(h*b-o*f)),t[2]=r*(e*P-s*m)-M*(h*P-o*m)+v*(h*s-o*e),t[3]=-(r*(e*b-s*f)-M*(h*b-o*f)+c*(h*s-o*e)),t[4]=-(u*(f*P-b*m)-i*(e*P-s*m)+l*(e*b-s*f)),t[5]=n*(f*P-b*m)-i*(h*P-o*m)+l*(h*b-o*f),t[6]=-(n*(e*P-s*m)-u*(h*P-o*m)+l*(h*s-o*e)),t[7]=n*(e*b-s*f)-u*(h*b-o*f)+i*(h*s-o*e),t[8]=u*(c*P-b*v)-i*(M*P-s*v)+l*(M*b-s*c),t[9]=-(n*(c*P-b*v)-i*(r*P-o*v)+l*(r*b-o*c)),t[10]=n*(M*P-s*v)-u*(r*P-o*v)+l*(r*s-o*M),t[11]=-(n*(M*b-s*c)-u*(r*b-o*c)+i*(r*s-o*M)),t[12]=-(u*(c*m-f*v)-i*(M*m-e*v)+l*(M*f-e*c)),t[13]=n*(c*m-f*v)-i*(r*m-h*v)+l*(r*f-h*c),t[14]=-(n*(M*m-e*v)-u*(r*m-h*v)+l*(r*e-h*M)),t[15]=n*(M*f-e*c)-u*(r*f-h*c)+i*(r*e-h*M),t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],h=t[3],o=t[4],u=t[5],M=t[6],e=t[7],s=t[8],i=t[9],c=t[10],f=t[11],b=t[12],l=t[13],v=t[14],m=t[15];return(a*u-n*o)*(c*m-f*v)-(a*M-r*o)*(i*m-f*l)+(a*e-h*o)*(i*v-c*l)+(n*M-r*u)*(s*m-f*b)-(n*e-h*u)*(s*v-c*b)+(r*e-h*M)*(s*l-i*b)},n.multiply=o,n.translate=function(t,a,n){var r,h,o,u,M,e,s,i,c,f,b,l,v=n[0],m=n[1],P=n[2];return a===t?(t[12]=a[0]*v+a[4]*m+a[8]*P+a[12],t[13]=a[1]*v+a[5]*m+a[9]*P+a[13],t[14]=a[2]*v+a[6]*m+a[10]*P+a[14],t[15]=a[3]*v+a[7]*m+a[11]*P+a[15]):(r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],e=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],t[0]=r,t[1]=h,t[2]=o,t[3]=u,t[4]=M,t[5]=e,t[6]=s,t[7]=i,t[8]=c,t[9]=f,t[10]=b,t[11]=l,t[12]=r*v+M*m+c*P+a[12],t[13]=h*v+e*m+f*P+a[13],t[14]=o*v+s*m+b*P+a[14],t[15]=u*v+i*m+l*P+a[15]),t},n.scale=function(t,a,n){var r=n[0],h=n[1],o=n[2];return t[0]=a[0]*r,t[1]=a[1]*r,t[2]=a[2]*r,t[3]=a[3]*r,t[4]=a[4]*h,t[5]=a[5]*h,t[6]=a[6]*h,t[7]=a[7]*h,t[8]=a[8]*o,t[9]=a[9]*o,t[10]=a[10]*o,t[11]=a[11]*o,t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.rotate=function(t,a,n,h){var o,u,M,e,s,i,c,f,b,l,v,m,P,E,S,I,O,p,L,N,R,x,y,A,Y=h[0],d=h[1],g=h[2],T=Math.hypot(Y,d,g);return T<r.EPSILON?null:(Y*=T=1/T,d*=T,g*=T,o=Math.sin(n),M=1-(u=Math.cos(n)),e=a[0],s=a[1],i=a[2],c=a[3],f=a[4],b=a[5],l=a[6],v=a[7],m=a[8],P=a[9],E=a[10],S=a[11],I=Y*Y*M+u,O=d*Y*M+g*o,p=g*Y*M-d*o,L=Y*d*M-g*o,N=d*d*M+u,R=g*d*M+Y*o,x=Y*g*M+d*o,y=d*g*M-Y*o,A=g*g*M+u,t[0]=e*I+f*O+m*p,t[1]=s*I+b*O+P*p,t[2]=i*I+l*O+E*p,t[3]=c*I+v*O+S*p,t[4]=e*L+f*N+m*R,t[5]=s*L+b*N+P*R,t[6]=i*L+l*N+E*R,t[7]=c*L+v*N+S*R,t[8]=e*x+f*y+m*A,t[9]=s*x+b*y+P*A,t[10]=i*x+l*y+E*A,t[11]=c*x+v*y+S*A,a!==t&&(t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t)},n.rotateX=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[4],u=a[5],M=a[6],e=a[7],s=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[4]=o*h+s*r,t[5]=u*h+i*r,t[6]=M*h+c*r,t[7]=e*h+f*r,t[8]=s*h-o*r,t[9]=i*h-u*r,t[10]=c*h-M*r,t[11]=f*h-e*r,t},n.rotateY=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],e=a[3],s=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h-s*r,t[1]=u*h-i*r,t[2]=M*h-c*r,t[3]=e*h-f*r,t[8]=o*r+s*h,t[9]=u*r+i*h,t[10]=M*r+c*h,t[11]=e*r+f*h,t},n.rotateZ=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],e=a[3],s=a[4],i=a[5],c=a[6],f=a[7];return a!==t&&(t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h+s*r,t[1]=u*h+i*r,t[2]=M*h+c*r,t[3]=e*h+f*r,t[4]=s*h-o*r,t[5]=i*h-u*r,t[6]=c*h-M*r,t[7]=f*h-e*r,t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotation=function(t,a,n){var h,o,u,M=n[0],e=n[1],s=n[2],i=Math.hypot(M,e,s);return i<r.EPSILON?null:(M*=i=1/i,e*=i,s*=i,h=Math.sin(a),u=1-(o=Math.cos(a)),t[0]=M*M*u+o,t[1]=e*M*u+s*h,t[2]=s*M*u-e*h,t[3]=0,t[4]=M*e*u-s*h,t[5]=e*e*u+o,t[6]=s*e*u+M*h,t[7]=0,t[8]=M*s*u+e*h,t[9]=e*s*u-M*h,t[10]=s*s*u+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},n.fromXRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromYRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromZRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotationTranslation=u,n.fromQuat2=function(t,a){var n=new r.ARRAY_TYPE(3),h=-a[0],o=-a[1],M=-a[2],e=a[3],s=a[4],i=a[5],c=a[6],f=a[7],b=h*h+o*o+M*M+e*e;return b>0?(n[0]=2*(s*e+f*h+i*M-c*o)/b,n[1]=2*(i*e+f*o+c*h-s*M)/b,n[2]=2*(c*e+f*M+s*o-i*h)/b):(n[0]=2*(s*e+f*h+i*M-c*o),n[1]=2*(i*e+f*o+c*h-s*M),n[2]=2*(c*e+f*M+s*o-i*h)),u(t,a,n),t},n.getTranslation=function(t,a){return t[0]=a[12],t[1]=a[13],t[2]=a[14],t},n.getScaling=M,n.getRotation=function(t,a){var n=new r.ARRAY_TYPE(3);M(n,a);var h=1/n[0],o=1/n[1],u=1/n[2],e=a[0]*h,s=a[1]*o,i=a[2]*u,c=a[4]*h,f=a[5]*o,b=a[6]*u,l=a[8]*h,v=a[9]*o,m=a[10]*u,P=e+f+m,E=0;return P>0?(E=2*Math.sqrt(P+1),t[3]=.25*E,t[0]=(b-v)/E,t[1]=(l-i)/E,t[2]=(s-c)/E):e>f&&e>m?(E=2*Math.sqrt(1+e-f-m),t[3]=(b-v)/E,t[0]=.25*E,t[1]=(s+c)/E,t[2]=(l+i)/E):f>m?(E=2*Math.sqrt(1+f-e-m),t[3]=(l-i)/E,t[0]=(s+c)/E,t[1]=.25*E,t[2]=(b+v)/E):(E=2*Math.sqrt(1+m-e-f),t[3]=(s-c)/E,t[0]=(l+i)/E,t[1]=(b+v)/E,t[2]=.25*E),t},n.fromRotationTranslationScale=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=a[3],e=h+h,s=o+o,i=u+u,c=h*e,f=h*s,b=h*i,l=o*s,v=o*i,m=u*i,P=M*e,E=M*s,S=M*i,I=r[0],O=r[1],p=r[2];return t[0]=(1-(l+m))*I,t[1]=(f+S)*I,t[2]=(b-E)*I,t[3]=0,t[4]=(f-S)*O,t[5]=(1-(c+m))*O,t[6]=(v+P)*O,t[7]=0,t[8]=(b+E)*p,t[9]=(v-P)*p,t[10]=(1-(c+l))*p,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},n.fromRotationTranslationScaleOrigin=function(t,a,n,r,h){var o=a[0],u=a[1],M=a[2],e=a[3],s=o+o,i=u+u,c=M+M,f=o*s,b=o*i,l=o*c,v=u*i,m=u*c,P=M*c,E=e*s,S=e*i,I=e*c,O=r[0],p=r[1],L=r[2],N=h[0],R=h[1],x=h[2],y=(1-(v+P))*O,A=(b+I)*O,Y=(l-S)*O,d=(b-I)*p,g=(1-(f+P))*p,T=(m+E)*p,_=(l+S)*L,q=(m-E)*L,w=(1-(f+v))*L;return t[0]=y,t[1]=A,t[2]=Y,t[3]=0,t[4]=d,t[5]=g,t[6]=T,t[7]=0,t[8]=_,t[9]=q,t[10]=w,t[11]=0,t[12]=n[0]+N-(y*N+d*R+_*x),t[13]=n[1]+R-(A*N+g*R+q*x),t[14]=n[2]+x-(Y*N+T*R+w*x),t[15]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=n+n,M=r+r,e=h+h,s=n*u,i=r*u,c=r*M,f=h*u,b=h*M,l=h*e,v=o*u,m=o*M,P=o*e;return t[0]=1-c-l,t[1]=i+P,t[2]=f-m,t[3]=0,t[4]=i-P,t[5]=1-s-l,t[6]=b+v,t[7]=0,t[8]=f+m,t[9]=b-v,t[10]=1-s-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.frustum=function(t,a,n,r,h,o,u){var M=1/(n-a),e=1/(h-r),s=1/(o-u);return t[0]=2*o*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*e,t[6]=0,t[7]=0,t[8]=(n+a)*M,t[9]=(h+r)*e,t[10]=(u+o)*s,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*o*2*s,t[15]=0,t},n.perspective=function(t,a,n,r,h){var o,u=1/Math.tan(a/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=h&&h!==1/0?(o=1/(r-h),t[10]=(h+r)*o,t[14]=2*h*r*o):(t[10]=-1,t[14]=-2*r),t},n.perspectiveFromFieldOfView=function(t,a,n,r){var h=Math.tan(a.upDegrees*Math.PI/180),o=Math.tan(a.downDegrees*Math.PI/180),u=Math.tan(a.leftDegrees*Math.PI/180),M=Math.tan(a.rightDegrees*Math.PI/180),e=2/(u+M),s=2/(h+o);return t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=-(u-M)*e*.5,t[9]=(h-o)*s*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},n.ortho=function(t,a,n,r,h,o,u){var M=1/(a-n),e=1/(r-h),s=1/(o-u);return t[0]=-2*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*s,t[11]=0,t[12]=(a+n)*M,t[13]=(h+r)*e,t[14]=(u+o)*s,t[15]=1,t},n.lookAt=function(t,a,n,o){var u,M,e,s,i,c,f,b,l,v,m=a[0],P=a[1],E=a[2],S=o[0],I=o[1],O=o[2],p=n[0],L=n[1],N=n[2];return Math.abs(m-p)<r.EPSILON&&Math.abs(P-L)<r.EPSILON&&Math.abs(E-N)<r.EPSILON?h(t):(f=m-p,b=P-L,l=E-N,u=I*(l*=v=1/Math.hypot(f,b,l))-O*(b*=v),M=O*(f*=v)-S*l,e=S*b-I*f,(v=Math.hypot(u,M,e))?(u*=v=1/v,M*=v,e*=v):(u=0,M=0,e=0),s=b*e-l*M,i=l*u-f*e,c=f*M-b*u,(v=Math.hypot(s,i,c))?(s*=v=1/v,i*=v,c*=v):(s=0,i=0,c=0),t[0]=u,t[1]=s,t[2]=f,t[3]=0,t[4]=M,t[5]=i,t[6]=b,t[7]=0,t[8]=e,t[9]=c,t[10]=l,t[11]=0,t[12]=-(u*m+M*P+e*E),t[13]=-(s*m+i*P+c*E),t[14]=-(f*m+b*P+l*E),t[15]=1,t)},n.targetTo=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=r[0],e=r[1],s=r[2],i=h-n[0],c=o-n[1],f=u-n[2],b=i*i+c*c+f*f;b>0&&(i*=b=1/Math.sqrt(b),c*=b,f*=b);var l=e*f-s*c,v=s*i-M*f,m=M*c-e*i;return(b=l*l+v*v+m*m)>0&&(l*=b=1/Math.sqrt(b),v*=b,m*=b),t[0]=l,t[1]=v,t[2]=m,t[3]=0,t[4]=c*m-f*v,t[5]=f*l-i*m,t[6]=i*v-c*l,t[7]=0,t[8]=i,t[9]=c,t[10]=f,t[11]=0,t[12]=h,t[13]=o,t[14]=u,t[15]=1,t},n.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t[9]=a[9]+n[9],t[10]=a[10]+n[10],t[11]=a[11]+n[11],t[12]=a[12]+n[12],t[13]=a[13]+n[13],t[14]=a[14]+n[14],t[15]=a[15]+n[15],t},n.subtract=e,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t[9]=a[9]*n,t[10]=a[10]*n,t[11]=a[11]*n,t[12]=a[12]*n,t[13]=a[13]*n,t[14]=a[14]*n,t[15]=a[15]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t[9]=a[9]+n[9]*r,t[10]=a[10]+n[10]*r,t[11]=a[11]+n[11]*r,t[12]=a[12]+n[12]*r,t[13]=a[13]+n[13]*r,t[14]=a[14]+n[14]*r,t[15]=a[15]+n[15]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]&&t[9]===a[9]&&t[10]===a[10]&&t[11]===a[11]&&t[12]===a[12]&&t[13]===a[13]&&t[14]===a[14]&&t[15]===a[15]},n.equals=function(t,a){var n=t[0],h=t[1],o=t[2],u=t[3],M=t[4],e=t[5],s=t[6],i=t[7],c=t[8],f=t[9],b=t[10],l=t[11],v=t[12],m=t[13],P=t[14],E=t[15],S=a[0],I=a[1],O=a[2],p=a[3],L=a[4],N=a[5],R=a[6],x=a[7],y=a[8],A=a[9],Y=a[10],d=a[11],g=a[12],T=a[13],_=a[14],q=a[15];return Math.abs(n-S)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(S))&&Math.abs(h-I)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(o-O)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(u-p)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(p))&&Math.abs(M-L)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(L))&&Math.abs(e-N)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(N))&&Math.abs(s-R)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(c-y)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(b-Y)<=r.EPSILON*Math.max(1,Math.abs(b),Math.abs(Y))&&Math.abs(l-d)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(d))&&Math.abs(v-g)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(g))&&Math.abs(m-T)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(P-_)<=r.EPSILON*Math.max(1,Math.abs(P),Math.abs(_))&&Math.abs(E-q)<=r.EPSILON*Math.max(1,Math.abs(E),Math.abs(q))},n.mul=o,n.sub=e},n”, ” "eb06fc032a": function _(t,r,a){Object.defineProperty(a,"__esModule",{value:!0});const n=t("tslib"),e=n.__importStar(t("68ca94c15c")),o=n.__importStar(t("0285c50a7e")),s=n.__importStar(t("2c5eb22089")),u=n.__importStar(t("c1aa33d719"));function c(){var t=new e.ARRAY_TYPE(4);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function i(t,r,a){a*=.5;var n=Math.sin(a);return t[0]=n*r[0],t[1]=n*r[1],t[2]=n*r[2],t[3]=Math.cos(a),t}function h(t,r,a){var n=r[0],e=r[1],o=r[2],s=r[3],u=a[0],c=a[1],i=a[2],h=a[3];return t[0]=n*h+s*u+e*i-o*c,t[1]=e*h+s*c+o*u-n*i,t[2]=o*h+s*i+n*c-e*u,t[3]=s*h-n*u-e*c-o*i,t}function M(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=Math.exp(o),c=s>0?u*Math.sin(s)/s:0;return t[0]=a*c,t[1]=n*c,t[2]=e*c,t[3]=u*Math.cos(s),t}function l(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=s>0?Math.atan2(s,o)/s:0;return t[0]=a*u,t[1]=n*u,t[2]=e*u,t[3]=.5*Math.log(a*a+n*n+e*e+o*o),t}function f(t,r,a,n){var o,s,u,c,i,h=r[0],M=r[1],l=r[2],f=r[3],v=a[0],m=a[1],q=a[2],d=a[3];return(s=h*v+M*m+l*q+f*d)<0&&(s=-s,v=-v,m=-m,q=-q,d=-d),1-s>e.EPSILON?(o=Math.acos(s),u=Math.sin(o),c=Math.sin((1-n)*o)/u,i=Math.sin(n*o)/u):(c=1-n,i=n),t[0]=c*h+i*v,t[1]=c*M+i*m,t[2]=c*l+i*q,t[3]=c*f+i*d,t}function v(t,r){var a,n=r[0]+r[4]+r[8];if(n>0)a=Math.sqrt(n+1),t[3]=.5*a,a=.5/a,t[0]=(r[5]-r[7])*a,t[1]=(r[6]-r[2])*a,t[2]=(r[1]-r[3])*a;else{var e=0;r[4]>r[0]&&(e=1),r[8]>r[3*e+e]&&(e=2);var o=(e+1)%3,s=(e+2)%3;a=Math.sqrt(r[3*e+e]-r[3*o+o]-r[3*s+s]+1),t[e]=.5*a,a=.5/a,t[3]=(r[3*o+s]-r[3*s+o])*a,t[o]=(r[3*o+e]+r[3*e+o])*a,t[s]=(r[3*s+e]+r[3*e+s])*a}return t}var m,q,d,p,A,g;a.create=c,a.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},a.setAxisAngle=i,a.getAxisAngle=function(t,r){var a=2*Math.acos(r[3]),n=Math.sin(a/2);return n>e.EPSILON?(t[0]=r[0]/n,t[1]=r[1]/n,t[2]=r[2]/n):(t[0]=1,t[1]=0,t[2]=0),a},a.getAngle=function(t,r){var n=a.dot(t,r);return Math.acos(2*n*n-1)},a.multiply=h,a.rotateX=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+s*u,t[1]=e*c+o*u,t[2]=o*c-e*u,t[3]=s*c-n*u,t},a.rotateY=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c-o*u,t[1]=e*c+s*u,t[2]=o*c+n*u,t[3]=s*c-e*u,t},a.rotateZ=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+e*u,t[1]=e*c-n*u,t[2]=o*c+s*u,t[3]=s*c-o*u,t},a.calculateW=function(t,r){var a=r[0],n=r[1],e=r[2];return t[0]=a,t[1]=n,t[2]=e,t[3]=Math.sqrt(Math.abs(1-a*a-n*n-e*e)),t},a.exp=M,a.ln=l,a.pow=function(t,r,n){return l(t,r),a.scale(t,t,n),M(t,t),t},a.slerp=f,a.random=function(t){var r=e.RANDOM(),a=e.RANDOM(),n=e.RANDOM(),o=Math.sqrt(1-r),s=Math.sqrt(r);return t[0]=o*Math.sin(2*Math.PI*a),t[1]=o*Math.cos(2*Math.PI*a),t[2]=s*Math.sin(2*Math.PI*n),t[3]=s*Math.cos(2*Math.PI*n),t},a.invert=function(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=a*a+n*n+e*e+o*o,u=s?1/s:0;return t[0]=-a*u,t[1]=-n*u,t[2]=-e*u,t[3]=o*u,t},a.conjugate=function(t,r){return t[0]=-r[0],t[1]=-r[1],t[2]=-r[2],t[3]=r[3],t},a.fromMat3=v,a.fromEuler=function(t,r,a,n){var e=.5*Math.PI/180;r*=e,a*=e,n*=e;var o=Math.sin(r),s=Math.cos(r),u=Math.sin(a),c=Math.cos(a),i=Math.sin(n),h=Math.cos(n);return t[0]=o*c*h-s*u*i,t[1]=s*u*h+o*c*i,t[2]=s*c*i-o*u*h,t[3]=s*c*h+o*u*i,t},a.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},a.clone=u.clone,a.fromValues=u.fromValues,a.copy=u.copy,a.set=u.set,a.add=u.add,a.mul=h,a.scale=u.scale,a.dot=u.dot,a.lerp=u.lerp,a.length=u.length,a.len=a.length,a.squaredLength=u.squaredLength,a.sqrLen=a.squaredLength,a.normalize=u.normalize,a.exactEquals=u.exactEquals,a.equals=u.equals,a.rotationTo=(m=s.create(),q=s.fromValues(1,0,0),d=s.fromValues(0,1,0),function(t,r,n){var e=s.dot(r,n);return e<-.999999?(s.cross(m,q,r),s.len(m)<1e-6&&s.cross(m,d,r),s.normalize(m,m),i(t,m,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(s.cross(m,r,n),t[0]=m[0],t[1]=m[1],t[2]=m[2],t[3]=1+e,a.normalize(t,t))}),a.sqlerp=(p=c(),A=c(),function(t,r,a,n,e,o){return f(p,r,e,o),f(A,a,n,o),f(t,p,A,2*o*(1-o)),t}),a.setAxes=(g=o.create(),function(t,r,n,e){return g[0]=n[0],g[3]=n[1],g[6]=n[2],g[1]=e[0],g[4]=e[1],g[7]=e[2],g[2]=-r[0],g[5]=-r[1],g[8]=-r[2],a.normalize(t,v(t,g))})},n”, ” "2c5eb22089": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(){var t=new a.ARRAY_TYPE(3);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function e(t){var n=t[0],r=t[1],a=t[2];return Math.hypot(n,r,a)}function o(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function i(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function c(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return Math.hypot(r,a,u)}function M(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return r*r+a*a+u*u}function s(t){var n=t[0],r=t[1],a=t[2];return n*n+r*r+a*a}function f(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}var l;r.create=u,r.clone=function(t){var n=new a.ARRAY_TYPE(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n},r.length=e,r.fromValues=function(t,n,r){var u=new a.ARRAY_TYPE(3);return u[0]=t,u[1]=n,u[2]=r,u},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},r.set=function(t,n,r,a){return t[0]=n,t[1]=r,t[2]=a,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t},r.subtract=o,r.multiply=i,r.divide=c,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t},r.distance=h,r.squaredDistance=M,r.squaredLength=s,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=r*r+a*a+u*u;return e>0&&(e=1/Math.sqrt(e)),t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t},r.dot=f,r.cross=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2];return t[0]=u*c-e*i,t[1]=e*o-a*c,t[2]=a*i-u*o,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t},r.hermite=function(t,n,r,a,u,e){var o=e*e,i=o*(2*e-3)+1,c=o*(e-2)+e,h=o*(e-1),M=o*(3-2*e);return t[0]=n[0]*i+r[0]*c+a[0]*h+u[0]*M,t[1]=n[1]*i+r[1]*c+a[1]*h+u[1]*M,t[2]=n[2]*i+r[2]*c+a[2]*h+u[2]*M,t},r.bezier=function(t,n,r,a,u,e){var o=1-e,i=o*o,c=e*e,h=i*o,M=3*e*i,s=3*c*o,f=c*e;return t[0]=n[0]*h+r[0]*M+a[0]*s+u[0]*f,t[1]=n[1]*h+r[1]*M+a[1]*s+u[1]*f,t[2]=n[2]*h+r[2]*M+a[2]*s+u[2]*f,t},r.random=function(t,n){n=n||1;var r=2*a.RANDOM()*Math.PI,u=2*a.RANDOM()-1,e=Math.sqrt(1-u*u)*n;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t[2]=u*n,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[3]*a+r[7]*u+r[11]*e+r[15];return o=o||1,t[0]=(r[0]*a+r[4]*u+r[8]*e+r[12])/o,t[1]=(r[1]*a+r[5]*u+r[9]*e+r[13])/o,t[2]=(r[2]*a+r[6]*u+r[10]*e+r[14])/o,t},r.transformMat3=function(t,n,r){var a=n[0],u=n[1],e=n[2];return t[0]=a*r[0]+u*r[3]+e*r[6],t[1]=a*r[1]+u*r[4]+e*r[7],t[2]=a*r[2]+u*r[5]+e*r[8],t},r.transformQuat=function(t,n,r){var a=r[0],u=r[1],e=r[2],o=r[3],i=n[0],c=n[1],h=n[2],M=u*h-e*c,s=e*i-a*h,f=a*c-u*i,l=u*f-e*s,v=e*M-a*f,m=a*s-u*M,d=2*o;return M*=d,s*=d,f*=d,l*=2,v*=2,m*=2,t[0]=i+M+l,t[1]=c+s+v,t[2]=h+f+m,t},r.rotateX=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0],e[1]=u[1]*Math.cos(a)-u[2]*Math.sin(a),e[2]=u[1]*Math.sin(a)+u[2]*Math.cos(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateY=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[2]*Math.sin(a)+u[0]*Math.cos(a),e[1]=u[1],e[2]=u[2]*Math.cos(a)-u[0]*Math.sin(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateZ=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0]*Math.cos(a)-u[1]*Math.sin(a),e[1]=u[0]*Math.sin(a)+u[1]*Math.cos(a),e[2]=u[2],t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.angle=function(t,n){var r=t[0],a=t[1],u=t[2],e=n[0],o=n[1],i=n[2],c=Math.sqrt(r*r+a*a+u*u)*Math.sqrt(e*e+o*o+i*i),h=c&&f(t,n)/c;return Math.acos(Math.min(Math.max(h,-1),1))},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},r.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=n[0],i=n[1],c=n[2];return Math.abs(r-o)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(u-i)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(i))&&Math.abs(e-c)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(c))},r.sub=o,r.mul=i,r.div=c,r.dist=h,r.sqrDist=M,r.len=e,r.sqrLen=s,r.forEach=(l=u(),function(t,n,r,a,u,e){var o,i;for(n||(n=3),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)l[0]=t[o],l[1]=t[o+1],l[2]=t[o+2],u(l,l,e),t[o]=l[0],t[o+1]=l[1],t[o+2]=l[2];return t})},n”, ” "c1aa33d719": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(){var t=new a.ARRAY_TYPE(4);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function e(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function o(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function i(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function c(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return Math.hypot(r,a,u,e)}function h(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return r*r+a*a+u*u+e*e}function M(t){var n=t[0],r=t[1],a=t[2],u=t[3];return Math.hypot(n,r,a,u)}function f(t){var n=t[0],r=t[1],a=t[2],u=t[3];return n*n+r*r+a*a+u*u}var s;r.create=u,r.clone=function(t){var n=new a.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.fromValues=function(t,n,r,u){var e=new a.ARRAY_TYPE(4);return e[0]=t,e[1]=n,e[2]=r,e[3]=u,e},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=e,r.multiply=o,r.divide=i,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.distance=c,r.squaredDistance=h,r.length=M,r.squaredLength=f,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*r+a*a+u*u+e*e;return o>0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=a*o,t[2]=u*o,t[3]=e*o,t},r.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},r.cross=function(t,n,r,a){var u=r[0]*a[1]-r[1]*a[0],e=r[0]*a[2]-r[2]*a[0],o=r[0]*a[3]-r[3]*a[0],i=r[1]*a[2]-r[2]*a[1],c=r[1]*a[3]-r[3]*a[1],h=r[2]*a[3]-r[3]*a[2],M=n[0],f=n[1],s=n[2],l=n[3];return t[0]=f*h-s*c+l*i,t[1]=-M*h+s*o-l*e,t[2]=M*c-f*o+l*u,t[3]=-M*i+f*e-s*u,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2],i=n[3];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t[3]=i+a*(r[3]-i),t},r.random=function(t,n){var r,u,e,o,i,c;n=n||1;do{i=(r=2*a.RANDOM()-1)*r+(u=2*a.RANDOM()-1)*u}while(i>=1);do{c=(e=2*a.RANDOM()-1)*e+(o=2*a.RANDOM()-1)*o}while(c>=1);var h=Math.sqrt((1-i)/c);return t[0]=n*r,t[1]=n*u,t[2]=n*e*h,t[3]=n*o*h,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3];return t[0]=r[0]*a+r[4]*u+r[8]*e+r[12]*o,t[1]=r[1]*a+r[5]*u+r[9]*e+r[13]*o,t[2]=r[2]*a+r[6]*u+r[10]*e+r[14]*o,t[3]=r[3]*a+r[7]*u+r[11]*e+r[15]*o,t},r.transformQuat=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2],h=r[3],M=h*a+i*e-c*u,f=h*u+c*a-o*e,s=h*e+o*u-i*a,l=-o*a-i*u-c*e;return t[0]=M*h+l*-o+f*-c-s*-i,t[1]=f*h+l*-i+s*-o-M*-c,t[2]=s*h+l*-c+M*-i-f*-o,t[3]=n[3],t},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},r.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=t[3],i=n[0],c=n[1],h=n[2],M=n[3];return Math.abs(r-i)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(u-c)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(e-h)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))},r.sub=e,r.mul=o,r.div=i,r.dist=c,r.sqrDist=h,r.len=M,r.sqrLen=f,r.forEach=(s=u(),function(t,n,r,a,u,e){var o,i;for(n||(n=4),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)s[0]=t[o],s[1]=t[o+1],s[2]=t[o+2],s[3]=t[o+3],u(s,s,e),t[o]=s[0],t[o+1]=s[1],t[o+2]=s[2],t[o+3]=s[3];return t})},n”, ” "277615c682": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib"),e=r.__importStar(t("68ca94c15c")),u=r.__importStar(t("eb06fc032a")),o=r.__importStar(t("a427635f32"));function i(t,a,n){var r=.5*n[0],e=.5*n[1],u=.5*n[2],o=a[0],i=a[1],s=a[2],c=a[3];return t[0]=o,t[1]=i,t[2]=s,t[3]=c,t[4]=r*c+e*s-u*i,t[5]=e*c+u*o-r*s,t[6]=u*c+r*i-e*o,t[7]=-r*o-e*i-u*s,t}function s(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t}function c(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[4],s=n[5],c=n[6],h=n[7],f=a[4],M=a[5],l=a[6],b=a[7],v=n[0],m=n[1],R=n[2],P=n[3];return t[0]=r*P+o*v+e*R-u*m,t[1]=e*P+o*m+u*v-r*R,t[2]=u*P+o*R+r*m-e*v,t[3]=o*P-r*v-e*m-u*R,t[4]=r*h+o*i+e*c-u*s+f*P+b*v+M*R-l*m,t[5]=e*h+o*s+u*i-r*c+M*P+b*m+l*v-f*R,t[6]=u*h+o*c+r*s-e*i+l*P+b*R+f*m-M*v,t[7]=o*h-r*i-e*s-u*c+b*P-f*v-M*m-l*R,t}n.create=function(){var t=new e.ARRAY_TYPE(8);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},n.clone=function(t){var a=new e.ARRAY_TYPE(8);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a},n.fromValues=function(t,a,n,r,u,o,i,s){var c=new e.ARRAY_TYPE(8);return c[0]=t,c[1]=a,c[2]=n,c[3]=r,c[4]=u,c[5]=o,c[6]=i,c[7]=s,c},n.fromRotationTranslationValues=function(t,a,n,r,u,o,i){var s=new e.ARRAY_TYPE(8);s[0]=t,s[1]=a,s[2]=n,s[3]=r;var c=.5*u,h=.5*o,f=.5*i;return s[4]=c*r+h*n-f*a,s[5]=h*r+f*t-c*n,s[6]=f*r+c*a-h*t,s[7]=-c*t-h*a-f*n,s},n.fromRotationTranslation=i,n.fromTranslation=function(t,a){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*a[0],t[5]=.5*a[1],t[6]=.5*a[2],t[7]=0,t},n.fromRotation=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.fromMat4=function(t,a){var n=u.create();o.getRotation(n,a);var r=new e.ARRAY_TYPE(3);return o.getTranslation(r,a),i(t,n,r),t},n.copy=s,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.set=function(t,a,n,r,e,u,o,i,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=e,t[4]=u,t[5]=o,t[6]=i,t[7]=s,t},n.getReal=u.copy,n.getDual=function(t,a){return t[0]=a[4],t[1]=a[5],t[2]=a[6],t[3]=a[7],t},n.setReal=u.copy,n.setDual=function(t,a){return t[4]=a[0],t[5]=a[1],t[6]=a[2],t[7]=a[3],t},n.getTranslation=function(t,a){var n=a[4],r=a[5],e=a[6],u=a[7],o=-a[0],i=-a[1],s=-a[2],c=a[3];return t[0]=2*(n*c+u*o+r*s-e*i),t[1]=2*(r*c+u*i+e*o-n*s),t[2]=2*(e*c+u*s+n*i-r*o),t},n.translate=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=.5*n[0],s=.5*n[1],c=.5*n[2],h=a[4],f=a[5],M=a[6],l=a[7];return t[0]=r,t[1]=e,t[2]=u,t[3]=o,t[4]=o*i+e*c-u*s+h,t[5]=o*s+u*i-r*c+f,t[6]=o*c+r*s-e*i+M,t[7]=-r*i-e*s-u*c+l,t},n.rotateX=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateX(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateY=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateY(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateZ=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateZ(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateByQuatAppend=function(t,a,n){var r=n[0],e=n[1],u=n[2],o=n[3],i=a[0],s=a[1],c=a[2],h=a[3];return t[0]=i*o+h*r+s*u-c*e,t[1]=s*o+h*e+c*r-i*u,t[2]=c*o+h*u+i*e-s*r,t[3]=h*o-i*r-s*e-c*u,i=a[4],s=a[5],c=a[6],h=a[7],t[4]=i*o+h*r+s*u-c*e,t[5]=s*o+h*e+c*r-i*u,t[6]=c*o+h*u+i*e-s*r,t[7]=h*o-i*r-s*e-c*u,t},n.rotateByQuatPrepend=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[0],s=n[1],c=n[2],h=n[3];return t[0]=r*h+o*i+e*c-u*s,t[1]=e*h+o*s+u*i-r*c,t[2]=u*h+o*c+r*s-e*i,t[3]=o*h-r*i-e*s-u*c,i=n[4],s=n[5],c=n[6],h=n[7],t[4]=r*h+o*i+e*c-u*s,t[5]=e*h+o*s+u*i-r*c,t[6]=u*h+o*c+r*s-e*i,t[7]=o*h-r*i-e*s-u*c,t},n.rotateAroundAxis=function(t,a,n,r){if(Math.abs(r)<e.EPSILON)return s(t,a);var u=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),i=o*n[0]/u,c=o*n[1]/u,h=o*n[2]/u,f=Math.cos(r),M=a[0],l=a[1],b=a[2],v=a[3];t[0]=M*f+v*i+l*h-b*c,t[1]=l*f+v*c+b*i-M*h,t[2]=b*f+v*h+M*c-l*i,t[3]=v*f-M*i-l*c-b*h;var m=a[4],R=a[5],P=a[6],d=a[7];return t[4]=m*f+d*i+R*h-P*c,t[5]=R*f+d*c+P*i-m*h,t[6]=P*f+d*h+m*c-R*i,t[7]=d*f-m*i-R*c-P*h,t},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t},n.multiply=c,n.mul=c,n.scale=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t},n.dot=u.dot,n.lerp=function(t,a,r,e){var u=1-e;return n.dot(a,r)<0&&(e=-e),t[0]=a[0]*u+r[0]*e,t[1]=a[1]*u+r[1]*e,t[2]=a[2]*u+r[2]*e,t[3]=a[3]*u+r[3]*e,t[4]=a[4]*u+r[4]*e,t[5]=a[5]*u+r[5]*e,t[6]=a[6]*u+r[6]*e,t[7]=a[7]*u+r[7]*e,t},n.invert=function(t,a){var r=n.squaredLength(a);return t[0]=-a[0]/r,t[1]=-a[1]/r,t[2]=-a[2]/r,t[3]=a[3]/r,t[4]=-a[4]/r,t[5]=-a[5]/r,t[6]=-a[6]/r,t[7]=a[7]/r,t},n.conjugate=function(t,a){return t[0]=-a[0],t[1]=-a[1],t[2]=-a[2],t[3]=a[3],t[4]=-a[4],t[5]=-a[5],t[6]=-a[6],t[7]=a[7],t},n.length=u.length,n.len=n.length,n.squaredLength=u.squaredLength,n.sqrLen=n.squaredLength,n.normalize=function(t,a){var r=n.squaredLength(a);if(r>0){r=Math.sqrt(r);var e=a[0]/r,u=a[1]/r,o=a[2]/r,i=a[3]/r,s=a[4],c=a[5],h=a[6],f=a[7],M=e*s+u*c+o*h+i*f;t[0]=e,t[1]=u,t[2]=o,t[3]=i,t[4]=(s-e*M)/r,t[5]=(c-u*M)/r,t[6]=(h-o*M)/r,t[7]=(f-i*M)/r}return t},n.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]},n.equals=function(t,a){var n=t[0],r=t[1],u=t[2],o=t[3],i=t[4],s=t[5],c=t[6],h=t[7],f=a[0],M=a[1],l=a[2],b=a[3],v=a[4],m=a[5],R=a[6],P=a[7];return Math.abs(n-f)<=e.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-M)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(u-l)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(o-b)<=e.EPSILON*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(i-v)<=e.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(s-m)<=e.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-R)<=e.EPSILON*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(h-P)<=e.EPSILON*Math.max(1,Math.abs(h),Math.abs(P))}},n”, ” "c56d9ff837": function _(n,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=n("tslib").__importStar(n("68ca94c15c"));function u(){var n=new a.ARRAY_TYPE(2);return a.ARRAY_TYPE!=Float32Array&&(n[0]=0,n[1]=0),n}function e(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n}function o(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n}function c(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n}function i(n,t){var r=t[0]-n[0],a=t[1]-n[1];return Math.hypot(r,a)}function f(n,t){var r=t[0]-n[0],a=t[1]-n[1];return r*r+a*a}function s(n){var t=n[0],r=n[1];return Math.hypot(t,r)}function h(n){var t=n[0],r=n[1];return t*t+r*r}var M;r.create=u,r.clone=function(n){var t=new a.ARRAY_TYPE(2);return t[0]=n[0],t[1]=n[1],t},r.fromValues=function(n,t){var r=new a.ARRAY_TYPE(2);return r[0]=n,r[1]=t,r},r.copy=function(n,t){return n[0]=t[0],n[1]=t[1],n},r.set=function(n,t,r){return n[0]=t,n[1]=r,n},r.add=function(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n},r.subtract=e,r.multiply=o,r.divide=c,r.ceil=function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n},r.floor=function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n},r.min=function(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n},r.max=function(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n},r.round=function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n},r.scale=function(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n},r.scaleAndAdd=function(n,t,r,a){return n[0]=t[0]+r[0]*a,n[1]=t[1]+r[1]*a,n},r.distance=i,r.squaredDistance=f,r.length=s,r.squaredLength=h,r.negate=function(n,t){return n[0]=-t[0],n[1]=-t[1],n},r.inverse=function(n,t){return n[0]=1/t[0],n[1]=1/t[1],n},r.normalize=function(n,t){var r=t[0],a=t[1],u=r*r+a*a;return u>0&&(u=1/Math.sqrt(u)),n[0]=t[0]*u,n[1]=t[1]*u,n},r.dot=function(n,t){return n[0]*t[0]+n[1]*t[1]},r.cross=function(n,t,r){var a=t[0]*r[1]-t[1]*r[0];return n[0]=n[1]=0,n[2]=a,n},r.lerp=function(n,t,r,a){var u=t[0],e=t[1];return n[0]=u+a*(r[0]-u),n[1]=e+a*(r[1]-e),n},r.random=function(n,t){t=t||1;var r=2*a.RANDOM()*Math.PI;return n[0]=Math.cos(r)*t,n[1]=Math.sin(r)*t,n},r.transformMat2=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u,n[1]=r[1]*a+r[3]*u,n},r.transformMat2d=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u+r[4],n[1]=r[1]*a+r[3]*u+r[5],n},r.transformMat3=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[3]*u+r[6],n[1]=r[1]*a+r[4]*u+r[7],n},r.transformMat4=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[4]*u+r[12],n[1]=r[1]*a+r[5]*u+r[13],n},r.rotate=function(n,t,r,a){var u=t[0]-r[0],e=t[1]-r[1],o=Math.sin(a),c=Math.cos(a);return n[0]=u*c-e*o+r[0],n[1]=u*o+e*c+r[1],n},r.angle=function(n,t){var r=n[0],a=n[1],u=t[0],e=t[1],o=Math.sqrt(r*r+a*a)*Math.sqrt(u*u+e*e),c=o&&(r*u+a*e)/o;return Math.acos(Math.min(Math.max(c,-1),1))},r.zero=function(n){return n[0]=0,n[1]=0,n},r.str=function(n){return"vec2("+n[0]+", "+n[1]+")"},r.exactEquals=function(n,t){return n[0]===t[0]&&n[1]===t[1]},r.equals=function(n,t){var r=n[0],u=n[1],e=t[0],o=t[1];return Math.abs(r-e)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(u-o)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(o))},r.len=s,r.sub=e,r.mul=o,r.div=c,r.dist=i,r.sqrDist=f,r.sqrLen=h,r.forEach=(M=u(),function(n,t,r,a,u,e){var o,c;for(t||(t=2),r||(r=0),c=a?Math.min(a*t+r,n.length):n.length,o=r;o<c;o+=t)M[0]=n[o],M[1]=n[o+1],u(M,M,e),n[o]=M[0],n[o+1]=M[1];return n})},n”, ” }, "4e90918c0a", {"index":"4e90918c0a","models/index":"22ae8fda70","models/ace":"3343056bd8","models/layout":"ba20932521","models/audio":"66d52165db","models/comm_manager":"71a9759436","models/deckgl":"f6b9b1d914","models/tooltips":"064eac2866","models/html":"ae707e931d","models/json":"9ba5b8422a","models/file_download":"a94e371ba4","models/katex":"7b859fb3cf","models/mathjax":"0c21036737","models/player":"000f20fdd3","models/plotly":"2363c12dd6","models/util":"990b5dd5c7","models/progress":"76307e5afa","models/state":"38b2bc9574","models/vega":"90d1f929bd","models/video":"b0c3e9e9c2","models/videostream":"3c7145a2fa","models/vtk/index":"ecfbb965eb","models/vtk/vtk":"5b5e56e89a","models/vtk/vtk_layout":"c704c63c0a","models/vtk/vtk_utils":"ba07c3d566","models/vtk/vtkvolume":"729dd26c71","models/vtk/vtkaxes":"e23461e5d7"}, {});n”, ” })n”, “n”, “n”, ” /* END panel.min.js */n”, ” },n”, ” function(Bokeh) {} // ensure no trailing comma for IEn”, ” ];n”, “n”, ” function run_inline_js() {n”, ” if ((root.Bokeh !== undefined) || (force === true)) {n”, ” for (var i = 0; i < inline_js.length; i++) {n”, ” inline_js[i].call(root, root.Bokeh);n”, ” }} else if (Date.now() < root._bokeh_timeout) {n”, ” setTimeout(run_inline_js, 100);n”, ” } else if (!root._bokeh_failed_load) {n”, ” console.log("Bokeh: BokehJS failed to load within specified timeout.");n”, ” root._bokeh_failed_load = true;n”, ” }n”, ” }n”, “n”, ” if (root._bokeh_is_loading === 0) {n”, ” console.debug("Bokeh: BokehJS loaded, going straight to plotting");n”, ” run_inline_js();n”, ” } else {n”, ” load_libs(css_urls, js_urls, function() {n”, ” console.debug("Bokeh: BokehJS plotting callback run at", now());n”, ” run_inline_js();n”, ” });n”, ” }n”, “}(window));”
], “application/vnd.holoviews_load.v0+json”: “n(function(root) {n function now() {n return new Date();n }nn var force = true;nn if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) {n root._bokeh_onload_callbacks = [];n root._bokeh_is_loading = undefined;n }nn if (typeof (root._bokeh_timeout) === "undefined" || force === true) {n root._bokeh_timeout = Date.now() + 5000;n root._bokeh_failed_load = false;n }nn function run_callbacks() {n try {n root._bokeh_onload_callbacks.forEach(function(callback) {n if (callback != null)n callback();n });n } finally {n delete root._bokeh_onload_callbacksn }n console.debug("Bokeh: all callbacks have finished");n }nn function load_libs(css_urls, js_urls, callback) {n if (css_urls == null) css_urls = [];n if (js_urls == null) js_urls = [];nn root._bokeh_onload_callbacks.push(callback);n if (root._bokeh_is_loading > 0) {n console.debug("Bokeh: BokehJS is being loaded, scheduling callback at", now());n return null;n }n if (js_urls == null || js_urls.length === 0) {n run_callbacks();n return null;n }n console.debug("Bokeh: BokehJS not loaded, scheduling load and callback at", now());n root._bokeh_is_loading = css_urls.length + js_urls.length;nn function on_load() {n root._bokeh_is_loading–;n if (root._bokeh_is_loading === 0) {n console.debug("Bokeh: all BokehJS libraries/stylesheets loaded");n run_callbacks()n }n }nn function on_error() {n console.error("failed to load " + url);n }nn for (var i = 0; i < css_urls.length; i++) {n var url = css_urls[i];n const element = document.createElement("link");n element.onload = on_load;n element.onerror = on_error;n element.rel = "stylesheet";n element.type = "text/css";n element.href = url;n console.debug("Bokeh: injecting link tag for BokehJS stylesheet: ", url);n document.body.appendChild(element);n }nn if (window.requirejs) {n require([], function() {n run_callbacks();n })n } else {n var skip = [];n for (var i = 0; i < js_urls.length; i++) {n var url = js_urls[i];n if (skip.indexOf(url) >= 0) { on_load(); continue; }n var element = document.createElement(‘script’);n element.onload = on_load;n element.onerror = on_error;n element.async = false;n element.src = url;n console.debug("Bokeh: injecting script tag for BokehJS library: ", url);n document.head.appendChild(element);n }n }n };nn function inject_raw_css(css) {n const element = document.createElement("style");n element.appendChild(document.createTextNode(css));n document.body.appendChild(element);n }nn var js_urls = [];n var css_urls = [];nn var inline_js = [n function(Bokeh) {n inject_raw_css(".widget-box {\n\tmin-height: 20px;\n\tbackground-color: #f5f5f5;\n\tborder: 1px solid #e3e3e3 !important;\n\tborder-radius: 4px;\n\t-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\tbox-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\toverflow-x: hidden;\n\toverflow-y: hidden;\n}\n\n.scrollable {\n overflow: scroll;\n}\n\nprogress {\n\tappearance: none;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\n\tborder: none;\n\theight: 20px;\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n\tcolor: royalblue;\n\tposition: relative;\n\tmargin: 0 0 1.5em;\n}\n\nprogress[value]::-webkit-progress-bar {\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n}\n\nprogress[value]::-webkit-progress-value {\n\tposition: relative;\n\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress.active:not([value])::before {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress[value]::-moz-progress-bar {\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress:not([value])::-moz-progress-bar {\n\tborder-radius:3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n\n}\n\nprogress.active:not([value])::-moz-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.active:not([value])::-webkit-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.primary[value]::-webkit-progress-value { background-color: #007bff; }\nprogress.primary:not([value])::before { background-color: #007bff; }\nprogress.primary:not([value])::-webkit-progress-bar { background-color: #007bff; }\nprogress.primary::-moz-progress-bar { background-color: #007bff; }\n\nprogress.secondary[value]::-webkit-progress-value { background-color: #6c757d; }\nprogress.secondary:not([value])::before { background-color: #6c757d; }\nprogress.secondary:not([value])::-webkit-progress-bar { background-color: #6c757d; }\nprogress.secondary::-moz-progress-bar { background-color: #6c757d; }\n\nprogress.success[value]::-webkit-progress-value { background-color: #28a745; }\nprogress.success:not([value])::before { background-color: #28a745; }\nprogress.success:not([value])::-webkit-progress-bar { background-color: #28a745; }\nprogress.success::-moz-progress-bar { background-color: #28a745; }\n\nprogress.danger[value]::-webkit-progress-value { background-color: #dc3545; }\nprogress.danger:not([value])::before { background-color: #dc3545; }\nprogress.danger:not([value])::-webkit-progress-bar { background-color: #dc3545; }\nprogress.danger::-moz-progress-bar { background-color: #dc3545; }\n\nprogress.warning[value]::-webkit-progress-value { background-color: #ffc107; }\nprogress.warning:not([value])::before { background-color: #ffc107; }\nprogress.warning:not([value])::-webkit-progress-bar { background-color: #ffc107; }\nprogress.warning::-moz-progress-bar { background-color: #ffc107; }\n\nprogress.info[value]::-webkit-progress-value { background-color: #17a2b8; }\nprogress.info:not([value])::before { background-color: #17a2b8; }\nprogress.info:not([value])::-webkit-progress-bar { background-color: #17a2b8; }\nprogress.info::-moz-progress-bar { background-color: #17a2b8; }\n\nprogress.light[value]::-webkit-progress-value { background-color: #f8f9fa; }\nprogress.light:not([value])::before { background-color: #f8f9fa; }\nprogress.light:not([value])::-webkit-progress-bar { background-color: #f8f9fa; }\nprogress.light::-moz-progress-bar { background-color: #f8f9fa; }\n\nprogress.dark[value]::-webkit-progress-value { background-color: #343a40; }\nprogress.dark:not([value])::-webkit-progress-bar { background-color: #343a40; }\nprogress.dark:not([value])::before { background-color: #343a40; }\nprogress.dark::-moz-progress-bar { background-color: #343a40; }\n\nprogress:not([value])::-webkit-progress-bar {\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\nprogress:not([value])::before {\n\tcontent:\" \";\n\tposition:absolute;\n\theight: 20px;\n\ttop:0;\n\tleft:0;\n\tright:0;\n\tbottom:0;\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\n\n@keyframes stripes {\n from {background-position: 0%}\n to {background-position: 100%}\n}");n },n function(Bokeh) {n inject_raw_css(".codehilite .hll { background-color: #ffffcc }\n.codehilite { background: #f8f8f8; }\n.codehilite .c { color: #408080; font-style: italic } /* Comment /\n.codehilite .err { border: 1px solid #FF0000 } / Error /\n.codehilite .k { color: #008000; font-weight: bold } / Keyword /\n.codehilite .o { color: #666666 } / Operator /\n.codehilite .ch { color: #408080; font-style: italic } / Comment.Hashbang /\n.codehilite .cm { color: #408080; font-style: italic } / Comment.Multiline /\n.codehilite .cp { color: #BC7A00 } / Comment.Preproc /\n.codehilite .cpf { color: #408080; font-style: italic } / Comment.PreprocFile /\n.codehilite .c1 { color: #408080; font-style: italic } / Comment.Single /\n.codehilite .cs { color: #408080; font-style: italic } / Comment.Special /\n.codehilite .gd { color: #A00000 } / Generic.Deleted /\n.codehilite .ge { font-style: italic } / Generic.Emph /\n.codehilite .gr { color: #FF0000 } / Generic.Error /\n.codehilite .gh { color: #000080; font-weight: bold } / Generic.Heading /\n.codehilite .gi { color: #00A000 } / Generic.Inserted /\n.codehilite .go { color: #888888 } / Generic.Output /\n.codehilite .gp { color: #000080; font-weight: bold } / Generic.Prompt /\n.codehilite .gs { font-weight: bold } / Generic.Strong /\n.codehilite .gu { color: #800080; font-weight: bold } / Generic.Subheading /\n.codehilite .gt { color: #0044DD } / Generic.Traceback /\n.codehilite .kc { color: #008000; font-weight: bold } / Keyword.Constant /\n.codehilite .kd { color: #008000; font-weight: bold } / Keyword.Declaration /\n.codehilite .kn { color: #008000; font-weight: bold } / Keyword.Namespace /\n.codehilite .kp { color: #008000 } / Keyword.Pseudo /\n.codehilite .kr { color: #008000; font-weight: bold } / Keyword.Reserved /\n.codehilite .kt { color: #B00040 } / Keyword.Type /\n.codehilite .m { color: #666666 } / Literal.Number /\n.codehilite .s { color: #BA2121 } / Literal.String /\n.codehilite .na { color: #7D9029 } / Name.Attribute /\n.codehilite .nb { color: #008000 } / Name.Builtin /\n.codehilite .nc { color: #0000FF; font-weight: bold } / Name.Class /\n.codehilite .no { color: #880000 } / Name.Constant /\n.codehilite .nd { color: #AA22FF } / Name.Decorator /\n.codehilite .ni { color: #999999; font-weight: bold } / Name.Entity /\n.codehilite .ne { color: #D2413A; font-weight: bold } / Name.Exception /\n.codehilite .nf { color: #0000FF } / Name.Function /\n.codehilite .nl { color: #A0A000 } / Name.Label /\n.codehilite .nn { color: #0000FF; font-weight: bold } / Name.Namespace /\n.codehilite .nt { color: #008000; font-weight: bold } / Name.Tag /\n.codehilite .nv { color: #19177C } / Name.Variable /\n.codehilite .ow { color: #AA22FF; font-weight: bold } / Operator.Word /\n.codehilite .w { color: #bbbbbb } / Text.Whitespace /\n.codehilite .mb { color: #666666 } / Literal.Number.Bin /\n.codehilite .mf { color: #666666 } / Literal.Number.Float /\n.codehilite .mh { color: #666666 } / Literal.Number.Hex /\n.codehilite .mi { color: #666666 } / Literal.Number.Integer /\n.codehilite .mo { color: #666666 } / Literal.Number.Oct /\n.codehilite .sa { color: #BA2121 } / Literal.String.Affix /\n.codehilite .sb { color: #BA2121 } / Literal.String.Backtick /\n.codehilite .sc { color: #BA2121 } / Literal.String.Char /\n.codehilite .dl { color: #BA2121 } / Literal.String.Delimiter /\n.codehilite .sd { color: #BA2121; font-style: italic } / Literal.String.Doc /\n.codehilite .s2 { color: #BA2121 } / Literal.String.Double /\n.codehilite .se { color: #BB6622; font-weight: bold } / Literal.String.Escape /\n.codehilite .sh { color: #BA2121 } / Literal.String.Heredoc /\n.codehilite .si { color: #BB6688; font-weight: bold } / Literal.String.Interpol /\n.codehilite .sx { color: #008000 } / Literal.String.Other /\n.codehilite .sr { color: #BB6688 } / Literal.String.Regex /\n.codehilite .s1 { color: #BA2121 } / Literal.String.Single /\n.codehilite .ss { color: #19177C } / Literal.String.Symbol /\n.codehilite .bp { color: #008000 } / Name.Builtin.Pseudo /\n.codehilite .fm { color: #0000FF } / Name.Function.Magic /\n.codehilite .vc { color: #19177C } / Name.Variable.Class /\n.codehilite .vg { color: #19177C } / Name.Variable.Global /\n.codehilite .vi { color: #19177C } / Name.Variable.Instance /\n.codehilite .vm { color: #19177C } / Name.Variable.Magic /\n.codehilite .il { color: #666666 } / Literal.Number.Integer.Long /\n\n.markdown h1 { margin-block-start: 0.34em }\n.markdown h2 { margin-block-start: 0.42em }\n.markdown h3 { margin-block-start: 0.5em }\n.markdown h4 { margin-block-start: 0.67em }\n.markdown h5 { margin-block-start: 0.84em }\n.markdown h6 { margin-block-start: 1.17em }\n.markdown ul { padding-inline-start: 2em }\n.markdown ol { padding-inline-start: 2em }\n.markdown strong { font-weight: 600 }\n.markdown a { color: -webkit-link }\n.markdown a { color: -moz-hyperlinkText }\n");n },n function(Bokeh) {n inject_raw_css(".json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n");n },n function(Bokeh) {n inject_raw_css("table.panel-df {\n margin-left: auto;\n margin-right: auto;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n color: black;\n font-size: 12px;\n table-layout: fixed;\n width: 100%;\n}\n\n.panel-df tr, th, td {\n text-align: right;\n vertical-align: middle;\n padding: 0.5em 0.5em !important;\n line-height: normal;\n white-space: normal;\n max-width: none;\n border: none;\n}\n\n.panel-df tbody {\n display: table-row-group;\n vertical-align: middle;\n border-color: inherit;\n}\n\n.panel-df tbody tr:nth-child(odd) {\n background: #f5f5f5;\n}\n\n.panel-df thead {\n border-bottom: 1px solid black;\n vertical-align: bottom;\n}\n\n.panel-df tr:hover {\n background: lightblue !important;\n cursor: pointer;\n}\n");n },n function(Bokeh) {n / BEGIN bokeh.min.js /n /!n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn * All rights reserved.n * n * Redistribution and use in source and binary forms, with or without modification,n * are permitted provided that the following conditions are met:n * n * Redistributions of source code must retain the above copyright notice,n * this list of conditions and the following disclaimer.n * n * Redistributions in binary form must reproduce the above copyright notice,n * this list of conditions and the following disclaimer in the documentationn * and/or other materials provided with the distribution.n * n * Neither the name of Anaconda nor the names of any contributorsn * may be used to endorse or promote products derived from this softwaren * without specific prior written permission.n * n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn * THE POSSIBILITY OF SUCH DAMAGE.n /n (function(root, factory) {n const bokeh = factory();n if (root.Bokeh === undefined) {n root.Bokeh = bokeh;n }n const Bokeh = root.Bokeh;n Bokeh[bokeh.version] = bokeh;n })(this, function() {n var define;n var parent_require = typeof require === "function" && requiren return (function(modules, entry, aliases, externals) {n if (aliases === undefined) aliases = {};n if (externals === undefined) externals = {};nn var cache = {};nn var normalize = function(name) {n if (typeof name === "number")n return name;nn if (name === "bokehjs")n return entry;nn var prefix = "@bokehjs/"n if (name.slice(0, prefix.length) === prefix)n name = name.slice(prefix.length)nn var alias = aliases[name]n if (alias != null)n return alias;nn var trailing = name.length > 0 && name[name.lenght-1] === "/";n var index = aliases[name + (trailing ? "" : "/") + "index"];n if (index != null)n return index;nn return name;n }nn var require = function(name) {n var mod = cache[name];n if (!mod) {n var id = normalize(name);nn mod = cache[id];n if (!mod) {n if (!modules[id]) {n if (externals[id] === false || (externals[id] == true && parent_require)) {n try {n mod = {exports: externals[id] ? parent_require(id) : {}};n cache[id] = cache[name] = mod;n return mod.exports;n } catch (e) {}n }nn var err = new Error("Cannot find module ‘" + name + "’");n err.code = ‘MODULE_NOT_FOUND’;n throw err;n }nn mod = {exports: {}};n cache[id] = cache[name] = mod;n modules[id].call(mod.exports, require, mod, mod.exports);n } elsen cache[name] = mod;n }nn return mod.exports;n }nn var main = require(entry);n main.require = require;nn if (typeof Proxy !== "undefined") {n // allow Bokeh.loader["@bokehjs/module/name"] syntaxn main.loader = new Proxy({}, {n get: function(_obj, module) {n return require(module);n }n });n }nn main.register_plugin = function(plugin_modules, plugin_entry, plugin_aliases, plugin_externals) {n if (plugin_aliases === undefined) plugin_aliases = {};n if (plugin_externals === undefined) plugin_externals = {};nn for (var name in plugin_modules) {n modules[name] = plugin_modules[name];n }nn for (var name in plugin_aliases) {n aliases[name] = plugin_aliases[name];n }nn for (var name in plugin_externals) {n externals[name] = plugin_externals[name];n }nn var plugin = require(plugin_entry);nn for (var name in plugin) {n main[name] = plugin[name];n }nn return plugin;n }nn return main;n })n ([n function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0}),e(1).__exportStar(e(2),_)},n function _(t,e,n){n /! *************************************************************************n Copyright (c) Microsoft Corporation. All rights reserved.n Licensed under the Apache License, Version 2.0 (the "License"); you may not usen this file except in compliance with the License. You may obtain a copy of then License at http://www.apache.org/licenses/LICENSE-2.0n n THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYn KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDn WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,n MERCHANTABLITY OR NON-INFRINGEMENT.n n See the Apache Version 2.0 License for specific language governing permissionsn and limitations under the License.n ************************************************************************* /n Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(void 0===e||e– >0)&&!(r=a.next()).done;)i.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function i(t){return this instanceof i?(this.v=t,this):new i(t)}n.__extends=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.__assign=function(){return n.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.__assign.apply(this,arguments)},n.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},n.__decorate=function(t,e,n,r){var o,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u–)(o=t[u])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i},n.__param=function(t,e){return function(n,r){e(n,r,t)}},n.__metadata=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(o,a){function i(t){try{c(r.next(t))}catch(t){a(t)}}function u(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((r=r.apply(t,e||[])).next())}))},n.__generator=function(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},n.__exportStar=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},n.__values=o,n.__read=a,n.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t},n.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var a=arguments[e],i=0,u=a.length;i<u;i++,o++)r[o]=a[i];return r},n.__await=i,n.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),a=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||c(t,e)}))})}function c(t,e){try{(n=o[t](e)).value instanceof i?Promise.resolve(n.value.v).then(f,l):s(a[0][2],n)}catch(t){s(a[0][3],t)}var n}function f(t){c("next",t)}function l(t){c("throw",t)}function s(t,e){t(e),a.shift(),a.length&&c(a[0][0],a[0][1])}},n.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:i(t[r](e)),done:"return"===r}:o?o(e):e}:o}},n.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=o(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}},n.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},n.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},n.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},n.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},n.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},n function _(e,r,t){var l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r};Object.defineProperty(t,"__esModule",{value:!0});var o=e(3);t.version=o.version;var s=e(4);t.index=s.index,t.embed=l(e(4)),t.protocol=l(e(354)),t._testing=l(e(355));var n=e(70);t.logger=n.logger,t.set_log_level=n.set_log_level;var a=e(23);t.settings=a.settings;var i=e(7);t.Models=i.Models;var v=e(5);t.documents=v.documents;var _=e(356);t.safely=_.safely},n function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.version="2.0.2"},n function _(e,o,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(5),s=e(70),d=e(26),r=e(8),_=e(17),c=e(345),i=e(347),a=e(346);var u=e(345);n.add_document_standalone=u.add_document_standalone,n.index=u.index;var l=e(347);n.add_document_from_session=l.add_document_from_session;var m=e(352);n.embed_items_notebook=m.embed_items_notebook,n.kernels=m.kernels;var f=e(346);async function g(e,o,n,_){r.isString(e)&&(e=JSON.parse(d.unescape(e)));const u={};for(const o in e){const n=e[o];u[o]=t.Document.from_json(n)}const l=[];for(const e of o){const o=a._resolve_element(e),t=a._resolve_root_elements(e);if(null!=e.docid)l.push(await c.add_document_standalone(u[e.docid],o,t,e.use_for_title));else{if(null==e.token)throw new Error("Error rendering Bokeh items: either ‘docid’ or ‘token’ was expected.");{const d=i._get_ws_url(n,_);s.logger.debug(`embed: computed ws url: ${d}`);try{l.push(await i.add_document_from_session(d,e.token,o,t,e.use_for_title)),console.log("Bokeh items were rendered successfully")}catch(e){console.log("Error rendering Bokeh items:",e)}}}}return l}n.BOKEH_ROOT=f.BOKEH_ROOT,n.embed_item=async function(e,o){const n={},t=d.uuid4();n[t]=e.doc,null==o&&(o=e.target_id);const s=document.getElementById(o);null!=s&&s.classList.add(a.BOKEH_ROOT);const r={roots:{[e.root_id]:o},root_ids:[e.root_id],docid:t},[c]=await _.defer(()=>g(n,[r]));return c},n.embed_items=async function(e,o,n,t){return await _.defer(()=>g(e,o,n,t))}},n function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const o=e(1);o.__exportStar(e(6),_),o.__exportStar(e(103),_)},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(7),n=e(3),i=e(70),r=e(281),_=e(13),l=e(14),a=e(25),c=e(100),d=e(15),h=e(9),f=e(24),u=e(16),m=e(8),g=e(244),v=e(73),p=e(69),w=e(103);class b{constructor(e){this.document=e,this.session=null,this.subscribed_models=new Set}send_event(e){const t=new w.MessageSentEvent(this.document,"bokeh_event",e.to_json());this.document._trigger_on_change(t)}trigger(e){for(const t of this.subscribed_models){if(null!=e.origin&&e.origin.id!==t)continue;const s=this.document._all_models[t];null!=s&&s instanceof p.Model&&s._process_event(e)}}}s.EventManager=b,b.__name__="EventManager",s.documents=[],s.DEFAULT_TITLE="Bokeh Application";class y{constructor(){s.documents.push(this),this._init_timestamp=Date.now(),this._title=s.DEFAULT_TITLE,this._roots=[],this._all_models={},this._all_models_by_name=new d.MultiDict,this._all_models_freeze_count=0,this._callbacks=[],this._message_callbacks=new Map,this.event_manager=new b(this),this.idle=new l.Signal0(this,"idle"),this._idle_roots=new WeakMap,this._interactive_timestamp=null,this._interactive_plot=null}get layoutables(){return this._roots.filter(e=>e instanceof g.LayoutDOM)}get is_idle(){for(const e of this.layoutables)if(!this._idle_roots.has(e))return!1;return!0}notify_idle(e){this._idle_roots.set(e,!0),this.is_idle&&(i.logger.info(`document idle at ${Date.now()-this._init_timestamp} ms`),this.idle.emit())}clear(){this._push_all_models_freeze();try{for(;this._roots.length>0;)this.remove_root(this._roots[0])}finally{this._pop_all_models_freeze()}}interactive_start(e){null==this._interactive_plot&&(this._interactive_plot=e,this._interactive_plot.trigger_event(new r.LODStart)),this._interactive_timestamp=Date.now()}interactive_stop(e){null!=this._interactive_plot&&this._interactive_plot.id===e.id&&this._interactive_plot.trigger_event(new r.LODEnd),this._interactive_plot=null,this._interactive_timestamp=null}interactive_duration(){return null==this._interactive_timestamp?-1:Date.now()-this._interactive_timestamp}destructively_move(e){if(e===this)throw new Error("Attempted to overwrite a document with itself");e.clear();const t=h.copy(this._roots);this.clear();for(const e of t)if(null!=e.document)throw new Error(`Somehow we didn’t detach ${e}`);if(0!==Object.keys(this._all_models).length)throw new Error(`this._all_models still had stuff in it: ${this._all_models}`);for(const s of t)e.add_root(s);e.set_title(this._title)}_push_all_models_freeze(){this._all_models_freeze_count+=1}_pop_all_models_freeze(){this._all_models_freeze_count-=1,0===this._all_models_freeze_count&&this._recompute_all_models()}_invalidate_all_models(){i.logger.debug("invalidating document models"),0===this._all_models_freeze_count&&this._recompute_all_models()}_recompute_all_models(){let e=new d.Set;for(const t of this._roots)e=e.union(t.references());const t=new d.Set(f.values(this._all_models)),s=t.diff(e),o=e.diff(t),n={};for(const t of e.values)n[t.id]=t;for(const e of s.values)e.detach_document(),e instanceof p.Model&&null!=e.name&&this._all_models_by_name.remove_value(e.name,e);for(const e of o.values)e.attach_document(this),e instanceof p.Model&&null!=e.name&&this._all_models_by_name.add_value(e.name,e);this._all_models=n}roots(){return this._roots}add_root(e,t){if(i.logger.debug(`Adding root: ${e}`),!h.includes(this._roots,e)){this._push_all_models_freeze();try{this._roots.push(e)}finally{this._pop_all_models_freeze()}this._trigger_on_change(new w.RootAddedEvent(this,e,t))}}remove_root(e,t){const s=this._roots.indexOf(e);if(!(s<0)){this._push_all_models_freeze();try{this._roots.splice(s,1)}finally{this._pop_all_models_freeze()}this._trigger_on_change(new w.RootRemovedEvent(this,e,t))}}title(){return this._title}set_title(e,t){e!==this._title&&(this._title=e,this._trigger_on_change(new w.TitleChangedEvent(this,e,t)))}get_model_by_id(e){return e in this._all_models?this._all_models[e]:null}get_model_by_name(e){return this._all_models_by_name.get_one(e,`Multiple models are named ‘${e}’`)}on_message(e,t){const s=this._message_callbacks.get(e);null==s?this._message_callbacks.set(e,new Set([t])):s.add(t)}remove_on_message(e,t){var s;null===(s=this._message_callbacks.get(e))||void 0===s||s.delete(t)}_trigger_on_message(e,t){const s=this._message_callbacks.get(e);if(null!=s)for(const e of s)e(t)}on_change(e){h.includes(this._callbacks,e)||this._callbacks.push(e)}remove_on_change(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}_trigger_on_change(e){for(const t of this._callbacks)t(e)}_notify_change(e,t,s,o,n){"name"===t&&(this._all_models_by_name.remove_value(s,e),null!=o&&this._all_models_by_name.add_value(o,e));const i=null!=n?n.setter_id:void 0,r=null!=n?n.hint:void 0;this._trigger_on_change(new w.ModelChangedEvent(this,e,t,s,o,i,r))}static _references_json(e,t=!0){const s=[];for(const o of e){const e=o.struct();e.attributes=o.attributes_as_json(t),delete e.attributes.id,s.push(e)}return s}static _instantiate_object(e,t,s){const n=Object.assign(Object.assign({},s),{id:e,__deferred__:!0});return new(o.Models(t))(n)}static _instantiate_references_json(e,t){const s={};for(const o of e){const e=o.id,n=o.type,i=o.attributes||{};let r;e in t?r=t[e]:(r=y._instantiate_object(e,n,i),null!=o.subtype&&r.set_subtype(o.subtype)),s[r.id]=r}return s}static _resolve_refs(e,t,s){function o(e){if(a.is_ref(e)){if(e.id in t)return t[e.id];if(e.id in s)return s[e.id];throw new Error(`reference ${JSON.stringify(e)} isn’t known (not in Document?)`)}return m.isArray(e)?function(e){const t=[];for(const s of e)t.push(o(s));return t}(e):m.isPlainObject(e)?function(e){const t={};for(const s in e){const n=e[s];t[s]=o(n)}return t}(e):e}return o(e)}static _initialize_references_json(e,t,s){const o={};for(const n of e){const e=n.id,i=n.attributes,r=!(e in t),_=r?s[e]:t[e],l=y._resolve_refs(i,t,s);o[_.id]=[_,l,r]}function n(e,t){const s={};function o(n){if(n instanceof _.HasProps){if(!(n.id in s)&&n.id in e){s[n.id]=!0;const[,i,r]=e[n.id];for(const e in i){o(i[e])}t(n,i,r)}}else if(m.isArray(n))for(const e of n)o(e);else if(m.isPlainObject(n))for(const e in n){o(n[e])}}for(const t in e){const[s,,]=e[t];o(s)}}n(o,(function(e,t,s){s&&e.setv(t,{silent:!0})})),n(o,(function(e,t,s){s&&e.finalize()}))}static _event_for_attribute_change(e,t,s,o,n){if(o.get_model_by_id(e.id).attribute_is_serializable(t)){const i={kind:"ModelChanged",model:{id:e.id},attr:t,new:s};return _.HasProps._json_record_references(o,s,n,!0),i}return null}static _events_to_sync_objects(e,t,s,o){const n=Object.keys(e.attributes),r=Object.keys(t.attributes),_=h.difference(n,r),l=h.difference(r,n),a=h.intersection(n,r),c=[];for(const e of _)i.logger.warn(`Server sent key ${e} but we don’t seem to have it in our JSON`);for(const n of l){const i=t.attributes[n];c.push(y._event_for_attribute_change(e,n,i,s,o))}for(const n of a){const i=e.attributes[n],r=t.attributes[n];null==i&&null==r||(null==i||null==r?c.push(y._event_for_attribute_change(e,n,r,s,o)):u.isEqual(i,r)||c.push(y._event_for_attribute_change(e,n,r,s,o)))}return c.filter(e=>null!=e)}static _compute_patch_since_json(e,t){const s=t.to_json(!1);function o(e){const t={};for(const s of e.roots.references)t[s.id]=s;return t}const n=o(e),i={},r=[];for(const t of e.roots.root_ids)i[t]=n[t],r.push(t);const _=o(s),l={},a=[];for(const e of s.roots.root_ids)l[e]=_[e],a.push(e);if(r.sort(),a.sort(),h.difference(r,a).length>0||h.difference(a,r).length>0)throw new Error("Not implemented: computing add/remove of document roots");const c={};let d=[];for(const e in t._all_models)if(e in n){const s=y._events_to_sync_objects(n[e],_[e],t,c);d=d.concat(s)}return{references:y._references_json(f.values(c),!1),events:d}}to_json_string(e=!0){return JSON.stringify(this.to_json(e))}to_json(e=!0){const t=this._roots.map(e=>e.id),s=f.values(this._all_models);return{version:n.version,title:this._title,roots:{root_ids:t,references:y._references_json(s,e)}}}static from_json_string(e){const t=JSON.parse(e);return y.from_json(t)}static from_json(e){i.logger.debug("Creating Document from JSON");const t=e.version,s=-1!==t.indexOf("+")||-1!==t.indexOf("-"),o=`Library versions: JS (${n.version}) / Python (${t})`;s||n.version.replace(/-(dev|rc)\./,"$1")==t?i.logger.debug(o):(i.logger.warn("JS/Python version mismatch"),i.logger.warn(o));const r=e.roots,_=r.root_ids,l=r.references,a=y._instantiate_references_json(l,{});y._initialize_references_json(l,{},a);const c=new y;for(const e of _)c.add_root(a[e]);return c.set_title(e.title),c}replace_with_json(e){y.from_json(e).destructively_move(this)}create_json_patch_string(e){return JSON.stringify(this.create_json_patch(e))}create_json_patch(e){const t={},s=[];for(const o of e){if(o.document!==this)throw i.logger.warn("Cannot create a patch using events from a different document, event had ",o.document," we are ",this),new Error("Cannot create a patch using events from a different document");s.push(o.json(t))}return{events:s,references:y._references_json(f.values(t))}}apply_json_patch(e,t=[],s){const o=e.references,n=e.events,r=y._instantiate_references_json(o,this._all_models);for(const e of n)switch(e.kind){case"RootAdded":case"RootRemoved":case"ModelChanged":{const t=e.model.id;if(t in this._all_models)r[t]=this._all_models[t];else if(!(t in r))throw i.logger.warn("Got an event for unknown model ",e.model),new Error("event model wasn’t known");break}}const _={},l={};for(const e in r){const t=r[e];e in this._all_models?_[e]=t:l[e]=t}y._initialize_references_json(o,_,l);for(const e of n)switch(e.kind){case"MessageSent":{const{msg_type:s,msg_data:o}=e;let n;if(void 0===o){if(1!=t.length)throw new Error("expected exactly one buffer");{const[[,e]]=t;n=e}}else n=y._resolve_refs(o,_,l);this._trigger_on_message(s,n);break}case"ModelChanged":{const o=e.model.id;if(!(o in this._all_models))throw new Error(`Cannot apply patch to ${o} which is not in the document`);const n=this._all_models[o],i=e.attr;if("data"===i&&"ColumnDataSource"===n.type){const[o,i]=c.decode_column_data(e.new,t);n.setv({_shapes:i,data:o},{setter_id:s})}else{const t=y._resolve_refs(e.new,_,l);n.setv({[i]:t},{setter_id:s})}break}case"ColumnDataChanged":{const o=e.column_source.id;if(!(o in this._all_models))throw new Error(`Cannot stream to ${o} which is not in the document`);const n=this._all_models[o],[i,r]=c.decode_column_data(e.new,t);if(null!=e.cols){for(const e in n.data)e in i||(i[e]=n.data[e]);for(const e in n._shapes)e in r||(r[e]=n._shapes[e])}n.setv({_shapes:r,data:i},{setter_id:s,check_eq:!1});break}case"ColumnsStreamed":{const t=e.column_source.id;if(!(t in this._all_models))throw new Error(`Cannot stream to ${t} which is not in the document`);const o=this._all_models[t];if(!(o instanceof v.ColumnDataSource))throw new Error("Cannot stream to non-ColumnDataSource");const n=e.data,i=e.rollover;o.stream(n,i,s);break}case"ColumnsPatched":{const t=e.column_source.id;if(!(t in this._all_models))throw new Error(`Cannot patch ${t} which is not in the document`);const o=this._all_models[t];if(!(o instanceof v.ColumnDataSource))throw new Error("Cannot patch non-ColumnDataSource");const n=e.patches;o.patch(n,s);break}case"RootAdded":{const t=r[e.model.id];this.add_root(t,s);break}case"RootRemoved":{const t=r[e.model.id];this.remove_root(t,s);break}case"TitleChanged":this.set_title(e.title,s);break;default:throw new Error("Unknown patch event "+JSON.stringify(e))}}}s.Document=y,y.__name__="Document"},n function _(e,r,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(1),t=e(8),d=e(13);s.overrides={};const i=new Map;s.Models=e=>{const r=s.overrides[e]||i.get(e);if(null==r)throw new Error(`Model ‘${e}’ does not exist. This could be due to a widget or a custom model not being registered before first usage.`);return r},s.Models.register=(e,r)=>{s.overrides[e]=r},s.Models.unregister=e=>{delete s.overrides[e]},s.Models.register_models=(e,r=!1,s)=>{var o;if(null!=e)for(const l in e){const n=e[l];if(o=n,t.isObject(o)&&o.prototype instanceof d.HasProps){const e=n.__qualified__;r||!i.has(e)?i.set(e,n):null!=s?s(e):console.warn(`Model ‘${e}’ was already registered`)}}},s.register_models=s.Models.register_models,s.Models.registered_names=()=>Array.from(i.keys());const l=o.__importStar(e(27));s.register_models(l)},n function _(n,t,r){Object.defineProperty(r,"__esModule",{value:!0});n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n const e=n(9),o=Object.prototype.toString;function i(n){return"[object Number]"===o.call(n)}function u(n){const t=typeof n;return"function"===t||"object"===t&&!!n}r.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===o.call(n)},r.isNumber=i,r.isInteger=function(n){return i(n)&&isFinite(n)&&Math.floor(n)===n},r.isString=function(n){return"[object String]"===o.call(n)},r.isStrictNaN=function(n){return i(n)&&n!==+n},r.isFunction=function(n){return"[object Function]"===o.call(n)},r.isArray=function(n){return Array.isArray(n)},r.isArrayOf=function(n,t){return e.every(n,t)},r.isArrayableOf=function(n,t){for(let r=0,e=n.length;r<e;r++)if(!t(n[r]))return!1;return!0},r.isTypedArray=function(n){return null!=n&&n.buffer instanceof ArrayBuffer},r.isObject=u,r.isPlainObject=function(n){return u(n)&&(null==n.constructor||n.constructor===Object)}},n function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n const r=n(10),o=n(11),i=n(12);e.map=i.map,e.reduce=i.reduce,e.min=i.min,e.min_by=i.min_by,e.max=i.max,e.max_by=i.max_by,e.sum=i.sum,e.cumsum=i.cumsum,e.every=i.every,e.some=i.some,e.find=i.find,e.find_last=i.find_last,e.find_index=i.find_index,e.find_last_index=i.find_last_index,e.sorted_index=i.sorted_index;const u=Array.prototype.slice;function c(n){return u.call(n)}function f(n){return[].concat(…n)}function s(n,t){return-1!==n.indexOf(t)}function l(n,t,e=1){o.assert(e>0,"’step’ must be a positive number"),null==t&&(t=n,n=0);const{max:r,ceil:i,abs:u}=Math,c=n<=t?e:-e,f=r(i(u(t-n)/e),0),s=Array(f);for(let t=0;t<f;t++,n+=c)s[t]=n;return s}function a(n){const t=[];for(const e of n)s(t,e)||t.push(e);return t}e.head=function(n){return n[0]},e.tail=function(n){return n[n.length-1]},e.last=function(n){return n[n.length-1]},e.copy=c,e.concat=f,e.includes=s,e.contains=s,e.nth=function(n,t){return n[t>=0?t:n.length+t]},e.zip=function(…n){if(0==n.length)return[];const t=i.min(n.map(n=>n.length)),e=n.length,r=new Array(t);for(let o=0;o<t;o++){r[o]=new Array(e);for(let t=0;t<e;t++)r[o][t]=n[t][o]}return r},e.unzip=function(n){const t=n.length,e=i.min(n.map(n=>n.length)),r=Array(e);for(let n=0;n<e;n++)r[n]=new Array(t);for(let o=0;o<t;o++)for(let t=0;t<e;t++)r[t][o]=n[o][t];return r},e.range=l,e.linspace=function(n,t,e=100){const r=(t-n)/(e-1),o=new Array(e);for(let t=0;t<e;t++)o[t]=n+r*t;return o},e.transpose=function(n){const t=n.length,e=n[0].length,r=[];for(let o=0;o<e;o++){r[o]=[];for(let e=0;e<t;e++)r[o][e]=n[e][o]}return r},e.argmin=function(n){return i.min_by(l(n.length),t=>n[t])},e.argmax=function(n){return i.max_by(l(n.length),t=>n[t])},e.sort_by=function(n,t){const e=n.map((n,e)=>({value:n,index:e,key:t(n)}));return e.sort((n,t)=>{const e=n.key,r=t.key;if(e!==r){if(e>r||void 0===e)return 1;if(e<r||void 0===r)return-1}return n.index-t.index}),e.map(n=>n.value)},e.uniq=a,e.uniq_by=function(n,t){const e=[],r=[];for(const o of n){const n=t(o);s(r,n)||(r.push(n),e.push(o))}return e},e.union=function(…n){return a(f(n))},e.intersection=function(n,…t){const e=[];n:for(const r of n)if(!s(e,r)){for(const n of t)if(!s(n,r))continue n;e.push(r)}return e},e.difference=function(n,…t){const e=f(t);return n.filter(n=>!s(e,n))},e.remove_at=function(n,t){const e=c(n);return e.splice(t,1),e},e.remove_by=function(n,t){for(let e=0;e<n.length;)t(n[e])?n.splice(e,1):e++},e.shuffle=function(n){const t=n.length,e=new Array(t);for(let o=0;o<t;o++){const t=r.randomIn(0,o);t!==o&&(e[o]=e[t]),e[t]=n[o]}return e},e.pairwise=function(n,t){const e=n.length,r=new Array(e-1);for(let o=0;o<e-1;o++)r[o]=t(n[o],n[o+1]);return r},e.reversed=function(n){const t=n.length,e=new Array(t);for(let r=0;r<t;r++)e[t-r-1]=n[r];return e},e.repeat=function(n,t){const e=new Array(t);for(let r=0;r<t;r++)e[r]=n;return e}},n function _(n,t,r){function e(n){if(0==n)return 0;for(;n<=0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;return n}function o(n,t){return e(n-t)}function a(){return Math.random()}Object.defineProperty(r,"__esModule",{value:!0}),r.angle_norm=e,r.angle_dist=o,r.angle_between=function(n,t,r,a){const u=o(t,r);if(0==u)return!1;if(u==2*Math.PI)return!0;const f=e(n),i=o(t,f)<=u&&o(f,r)<=u;return 0==a?i:!i},r.random=a,r.randomIn=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},r.atan2=function(n,t){return Math.atan2(t[1]-n[1],t[0]-n[0])},r.rnorm=function(n,t){let r,e;for(;r=a(),e=a(),e=(2*e-1)*Math.sqrt(1/Math.E*2),!(-4*r*r*Math.log(r)>=e*e););let o=e/r;return o=n+t*o,o},r.clamp=function(n,t,r){return n>r?r:n<t?t:n}},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});class o extends Error{}n.AssertionError=o,o.__name__="AssertionError",n.assert=function(e,r){if(!(!0===e||!1!==e&&e()))throw new o(null!=r?r:"Assertion failed")},n.unreachable=function(){throw new Error("unreachable code")}},n function _(n,t,e){function r(n,t,e,…r){const o=n.length;t<0&&(t+=o),t<0?t=0:t>o&&(t=o),null==e||e>o-t?e=o-t:e<0&&(e=0);const u=o-e+r.length,i=new n.constructor(u);let f=0;for(;f<t;f++)i[f]=n[f];for(const n of r)i[f++]=n;for(let r=t+e;r<o;r++)i[f++]=n[r];return i}function o(n,t){return r(n,t,n.length-t)}function u(n,t,e){const r=n.length;if(void 0===e&&0==r)throw new Error("can’t reduce an empty array without an initial value");let o,u;for(void 0===e?(o=n[0],u=1):(o=e,u=0);u<r;u++)o=t(o,n[u],u,n);return o}function i(n){return function(t,e){const r=t.length;let o=n>0?0:r-1;for(;o>=0&&o<r;o+=n)if(e(t[o]))return o;return-1}}Object.defineProperty(e,"__esModule",{value:!0}),e.splice=r,e.head=o,e.insert=function(n,t,e){return r(n,e,0,t)},e.append=function(n,t){return r(n,n.length,0,t)},e.prepend=function(n,t){return r(n,0,0,t)},e.indexOf=function(n,t){for(let e=0,r=n.length;e<r;e++)if(n[e]===t)return e;return-1},e.map=function(n,t){const e=n.length,r=new n.constructor(e);for(let o=0;o<e;o++)r[o]=t(n[o],o,n);return r},e.filter=function(n,t){const e=n.length,r=new n.constructor(e);let u=0;for(let o=0;o<e;o++){const e=n[o];t(e,o,n)&&(r[u++]=e)}return o(r,u)},e.reduce=u,e.min=function(n){let t,e=1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],t<e&&(e=t);return e},e.min_by=function(n,t){if(0==n.length)throw new Error("min_by() called with an empty array");let e=n[0],r=t(e);for(let o=1,u=n.length;o<u;o++){const u=n[o],i=t(u);i<r&&(e=u,r=i)}return e},e.max=function(n){let t,e=-1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],t>e&&(e=t);return e},e.max_by=function(n,t){if(0==n.length)throw new Error("max_by() called with an empty array");let e=n[0],r=t(e);for(let o=1,u=n.length;o<u;o++){const u=n[o],i=t(u);i>r&&(e=u,r=i)}return e},e.sum=function(n){let t=0;for(let e=0,r=n.length;e<r;e++)t+=n[e];return t},e.cumsum=function(n){const t=new n.constructor(n.length);return u(n,(n,e,r)=>t[r]=n+e,0),t},e.every=function(n,t){for(let e=0,r=n.length;e<r;e++)if(!t(n[e]))return!1;return!0},e.some=function(n,t){for(let e=0,r=n.length;e<r;e++)if(t(n[e]))return!0;return!1},e.index_of=function(n,t){for(let e=0,r=n.length;e<r;e++)if(n[e]===t)return e;return-1},e.find_index=i(1),e.find_last_index=i(-1),e.find=function(n,t){const r=e.find_index(n,t);return-1==r?void 0:n[r]},e.find_last=function(n,t){const r=e.find_last_index(n,t);return-1==r?void 0:n[r]},e.sorted_index=function(n,t){let e=0,r=n.length;for(;e<r;){const o=Math.floor((e+r)/2);n[o]<t?e=o+1:r=o}return e}},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(14),r=i.__importStar(t(18)),o=t(25),c=i.__importStar(t(19)),a=t(26),_=t(9),l=t(24),h=t(8),p=t(16);class u extends(n.Signalable()){constructor(t={}){super(),this._subtype=void 0,this.document=null,this.destroyed=new n.Signal0(this,"destroyed"),this.change=new n.Signal0(this,"change"),this.transformchange=new n.Signal0(this,"transformchange"),this.attributes={},this.properties={},this._set_after_defaults={},this._pending=!1,this._changing=!1;for(const t in this.props){const{type:e,default_value:s}=this.props[t];if(null==e)throw new Error(`undefined property type for ${this.type}.${t}`);this.properties[t]=new e(this,t,s)}null==t.id&&this.setv({id:a.uniqueId()},{silent:!0});const e=t.__deferred__||!1;e&&delete(t=l.clone(t)).__deferred__,this.setv(t,{silent:!0}),e||this.finalize()}set type(t){console.warn("prototype.type = ‘ModelName’ is deprecated, use static __name__ instead"),this.constructor.__name__=t}get type(){return this.constructor.__qualified__}static get __qualified__(){const{__module__:t,__name__:e}=this;return null!=t?`${t}.${e}`:e}static init_HasProps(){this.prototype.props={},this.prototype.mixins=[],this.define({id:[c.Any]})}static _fix_default(t,e){return void 0===t?void 0:h.isFunction(t)?t:h.isObject(t)?h.isArray(t)?()=>_.copy(t):()=>l.clone(t):()=>t}static define(t){for(const e in t){const s=t[e];if(null!=this.prototype.props[e])throw new Error(`attempted to redefine property ‘${this.prototype.type}.${e}’`);if(null!=this.prototype[e])throw new Error(`attempted to redefine attribute ‘${this.prototype.type}.${e}’`);Object.defineProperty(this.prototype,e,{get(){return this.getv(e)},set(t){return this.setv({[e]:t}),this},configurable:!1,enumerable:!0});const[i,n,r]=s,o={type:i,default_value:this._fix_default(n,e),internal:r||!1},c=l.clone(this.prototype.props);c[e]=o,this.prototype.props=c}}static internal(t){const e={};for(const s in t){const i=t[s],[n,r]=i;e[s]=[n,r,!0]}this.define(e)}static mixin(…t){this.define(r.create(t));const e=this.prototype.mixins.concat(t);this.prototype.mixins=e}static mixins(t){this.mixin(…t)}static override(t){for(const e in t){const s=this._fix_default(t[e],e),i=this.prototype.props[e];if(null==i)throw new Error(`attempted to override nonexistent ‘${this.prototype.type}.${e}’`);const n=l.clone(this.prototype.props);n[e]=Object.assign(Object.assign({},i),{default_value:s}),this.prototype.props=n}}toString(){return`${this.type}(${this.id})`}finalize(){for(const t in this.properties){const e=this.properties[t];e.update(),null!=e.spec.transform&&this.connect(e.spec.transform.change,()=>this.transformchange.emit())}this.initialize(),this.connect_signals()}initialize(){}connect_signals(){}disconnect_signals(){n.Signal.disconnectReceiver(this)}destroy(){this.disconnect_signals(),this.destroyed.emit()}clone(){return new this.constructor(this.attributes)}_setv(t,e){const s=e.check_eq,i=e.silent,n=[],r=this._changing;this._changing=!0;const o=this.attributes;for(const e in t){const i=t[e];!1!==s&&p.isEqual(o[e],i)||n.push(e),o[e]=i}if(!i){n.length>0&&(this._pending=!0);for(let t=0;t<n.length;t++)this.properties[n[t]].change.emit()}if(!r){if(!i&&!e.no_change)for(;this._pending;)this._pending=!1,this.change.emit();this._pending=!1,this._changing=!1}}setv(t,e={}){for(const s in t){if(!t.hasOwnProperty(s))continue;const i=s;if(null==this.props[i])throw new Error(`property ${this.type}.${i} wasn’t declared`);null!=e&&e.defaults||(this._set_after_defaults[s]=!0)}if(!l.isEmpty(t)){const s={};for(const e in t)s[e]=this.getv(e);this._setv(t,e);const i=e.silent;if(null==i||!i)for(const i in t)this._tell_document_about_change(i,s[i],this.getv(i),e)}}getv(t){if(null==this.props[t])throw new Error(`property ${this.type}.${t} wasn’t declared`);return this.attributes[t]}ref(){return{id:this.id}}struct(){const t={type:this.type,id:this.id,attributes:{}};return null!=this._subtype&&(t.subtype=this._subtype),t}set_subtype(t){this._subtype=t}attribute_is_serializable(t){const e=this.props[t];if(null==e)throw new Error(`${this.type}.attribute_is_serializable(‘${t}’): ${t} wasn’t declared`);return!e.internal}serializable_attributes(){const t={};for(const e in this.attributes){const s=this.attributes[e];this.attribute_is_serializable(e)&&(t[e]=s)}return t}static _value_to_json(t,e,s){if(e instanceof u)return e.ref();if(h.isArray(e)){const t=[];for(let s=0;s<e.length;s++){const i=e[s];t.push(u._value_to_json(s.toString(),i,e))}return t}if(h.isPlainObject(e)){const t={};for(const s in e)e.hasOwnProperty(s)&&(t[s]=u._value_to_json(s,e[s],e));return t}return e}attributes_as_json(t=!0,e=u._value_to_json){const s=this.serializable_attributes(),i={};for(const e in s)if(s.hasOwnProperty(e)){const n=s[e];(t||e in this._set_after_defaults)&&(i[e]=n)}return e("attributes",i,this)}static _json_record_references(t,e,s,i){if(null==e);else if(o.is_ref(e)){if(!(e.id in s)){const n=t.get_model_by_id(e.id);u._value_record_references(n,s,i)}}else if(h.isArray(e))for(const n of e)u._json_record_references(t,n,s,i);else if(h.isPlainObject(e))for(const n in e)if(e.hasOwnProperty(n)){const r=e[n];u._json_record_references(t,r,s,i)}}static _value_record_references(t,e,s){if(null==t);else if(t instanceof u){if(!(t.id in e)&&(e[t.id]=t,s)){const s=t._immediate_references();for(const t of s)u._value_record_references(t,e,!0)}}else if(t.buffer instanceof ArrayBuffer);else if(h.isArray(t))for(const i of t)u._value_record_references(i,e,s);else if(h.isPlainObject(t))for(const i in t)if(t.hasOwnProperty(i)){const n=t[i];u._value_record_references(n,e,s)}}_immediate_references(){const t={},e=this.serializable_attributes();for(const s in e){const i=e[s];u._value_record_references(i,t,!1)}return l.values(t)}references(){const t={};return u._value_record_references(this,t,!0),l.values(t)}_doc_attached(){}attach_document(t){if(null!=this.document&&this.document!=t)throw new Error("models must be owned by only a single document");this.document=t,this._doc_attached()}detach_document(){this.document=null}_tell_document_about_change(t,e,s,i){if(this.attribute_is_serializable(t)&&null!=this.document){const n={};u._value_record_references(s,n,!1);const r={};u._value_record_references(e,r,!1);let o=!1;for(const t in n)if(!(t in r)){o=!0;break}if(!o)for(const t in r)if(!(t in n)){o=!0;break}o&&this.document._invalidate_all_models(),this.document._notify_change(this,t,e,s,i)}}materialize_dataspecs(t){const e={};for(const s in this.properties){const i=this.properties[s];if(!(i instanceof c.VectorSpec))continue;if(i.optional&&null==i.spec.value&&!(s in this._set_after_defaults))continue;const n=i.array(t);e[`_${s}`]=n,null!=i.spec.field&&i.spec.field in t._shapes&&(e[`_${s}_shape`]=t._shapes[i.spec.field]),i instanceof c.DistanceSpec&&(e[`max_${s}`]=_.max(n))}return e}}s.HasProps=u,u.init_HasProps()},n function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const s=n(15),l=n(17),i=n(9);class o{constructor(n,t){this.sender=n,this.name=t}connect(n,t=null){r.has(this.sender)||r.set(this.sender,[]);const e=r.get(this.sender);if(null!=g(e,this,n,t))return!1;const s=t||n;u.has(s)||u.set(s,[]);const l=u.get(s),i={signal:this,slot:n,context:t};return e.push(i),l.push(i),!0}disconnect(n,t=null){const e=r.get(this.sender);if(null==e||0===e.length)return!1;const s=g(e,this,n,t);if(null==s)return!1;const l=t||n,i=u.get(l);return s.signal=null,f(e),f(i),!0}emit(n){const t=r.get(this.sender)||[];for(const{signal:e,slot:s,context:l}of t)e===this&&s.call(l,n,this.sender)}}e.Signal=o,o.__name__="Signal";class c extends o{emit(){super.emit(void 0)}}e.Signal0=c,c.__name__="Signal0",function(n){n.disconnectBetween=function(n,t){const e=r.get(n);if(null==e||0===e.length)return;const s=u.get(t);if(null!=s&&0!==s.length){for(const t of s){if(null==t.signal)return;t.signal.sender===n&&(t.signal=null)}f(e),f(s)}},n.disconnectSender=function(n){const t=r.get(n);if(null!=t&&0!==t.length){for(const n of t){if(null==n.signal)return;const t=n.context||n.slot;n.signal=null,f(u.get(t))}f(t)}},n.disconnectReceiver=function(n){const t=u.get(n);if(null!=t&&0!==t.length){for(const n of t){if(null==n.signal)return;const t=n.signal.sender;n.signal=null,f(r.get(t))}f(t)}},n.disconnectAll=function(n){const t=r.get(n);if(null!=t&&0!==t.length){for(const n of t)n.signal=null;f(t)}const e=u.get(n);if(null!=e&&0!==e.length){for(const n of e)n.signal=null;f(e)}}}(o||(e.Signal=o={})),e.Signalable=function(){return class{connect(n,t){return n.connect(t,this)}disconnect(n,t){return n.disconnect(t,this)}}};const r=new WeakMap,u=new WeakMap;function g(n,t,e,s){return i.find(n,n=>n.signal===t&&n.slot===e&&n.context===s)}const a=new s.Set;function f(n){0===a.size&&l.defer(h),a.add(n)}function h(){a.forEach(n=>{i.remove_by(n,n=>null==n.signal)}),a.clear()}},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(9),n=t(16),r=t(8);class o{constructor(){this._dict={}}_existing(t){return t in this._dict?this._dict[t]:null}add_value(t,s){const e=this._existing(t);null==e?this._dict[t]=s:r.isArray(e)?e.push(s):this._dict[t]=[e,s]}remove_value(t,s){const e=this._existing(t);if(r.isArray(e)){const n=i.difference(e,[s]);n.length>0?this._dict[t]=n:delete this._dict[t]}else n.isEqual(e,s)&&delete this._dict[t]}get_one(t,s){const e=this._existing(t);if(r.isArray(e)){if(1===e.length)return e[0];throw new Error(s)}return e}}e.MultiDict=o,o.__name__="MultiDict";class a{constructor(t){if(null==t)this._values=[];else if(t instanceof a)this._values=i.copy(t._values);else{this._values=[];for(const s of t)this.add(s)}}get values(){return i.copy(this._values).sort()}toString(){return`Set([${this.values.join(",")}])`}get size(){return this._values.length}has(t){return-1!==this._values.indexOf(t)}add(t){this.has(t)||this._values.push(t)}remove(t){const s=this._values.indexOf(t);-1!==s&&this._values.splice(s,1)}toggle(t){const s=this._values.indexOf(t);-1===s?this._values.push(t):this._values.splice(s,1)}clear(){this._values=[]}union(t){return t=new a(t),new a(this._values.concat(t._values))}intersect(t){t=new a(t);const s=new a;for(const e of t._values)this.has(e)&&t.has(e)&&s.add(e);return s}diff(t){t=new a(t);const s=new a;for(const e of this._values)t.has(e)||s.add(e);return s}forEach(t,s){for(const e of this._values)t.call(s||this,e,e,this)}}e.Set=a,a.__name__="Set";class h{constructor(t,s,e){this.nrows=t,this.ncols=s,this._matrix=new Array(t);for(let i=0;i<t;i++){this._matrix[i]=new Array(s);for(let t=0;t<s;t++)this._matrix[i][t]=e(i,t)}}at(t,s){return this._matrix[t][s]}map(t){return new h(this.nrows,this.ncols,(s,e)=>t(this.at(s,e),s,e))}apply(t){const s=h.from(t),{nrows:e,ncols:i}=this;if(e==s.nrows&&i==s.ncols)return new h(e,i,(t,e)=>s.at(t,e)(this.at(t,e),t,e));throw new Error("dimensions don’t match")}to_sparse(){const t=[];for(let s=0;s<this.nrows;s++)for(let e=0;e<this.ncols;e++){const i=this._matrix[s][e];t.push([i,s,e])}return t}static from(t){if(t instanceof h)return t;{const s=t.length,e=i.min(t.map(t=>t.length));return new h(s,e,(s,e)=>t[s][e])}}}e.Matrix=h,h.__name__="Matrix"},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n const r=t(8),o=Object.prototype.toString;n.isEqual=function(t,e){return function t(e,n,c,u){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return e===n;const i=o.call(e);if(i!==o.call(n))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:0==+e?1/+e==1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n}const s="[object Array]"===i;if(!s){if("object"!=typeof e||"object"!=typeof n)return!1;const t=e.constructor,o=n.constructor;if(t!==o&&!(r.isFunction(t)&&t instanceof t&&r.isFunction(o)&&o instanceof o)&&"constructor"in e&&"constructor"in n)return!1}u=u||[];let f=(c=c||[]).length;for(;f–;)if(c[f]===e)return u[f]===n;if(c.push(e),u.push(n),s){if(f=e.length,f!==n.length)return!1;for(;f–;)if(!t(e[f],n[f],c,u))return!1}else{const r=Object.keys(e);let o;if(f=r.length,Object.keys(n).length!==f)return!1;for(;f–;)if(o=r[f],!n.hasOwnProperty(o)||!t(e[o],n[o],c,u))return!1}return c.pop(),u.pop(),!0}(t,e)}},n function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.delay=n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n function(n,e){return setTimeout(n,e)};const u="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate;t.defer=function(n){return new Promise(e=>{u(()=>e(n()))})},t.throttle=function(n,e,t={}){let u,o,i,r=null,l=0;const c=function(){l=!1===t.leading?0:Date.now(),r=null,i=n.apply(u,o),r||(u=o=null)};return function(){const a=Date.now();l||!1!==t.leading||(l=a);const f=e-(a-l);return u=this,o=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),l=a,i=n.apply(u,o),r||(u=o=null)):r||!1===t.trailing||(r=setTimeout(c,f)),i}},t.once=function(n){let e,t=!1;return function(){return t||(t=!0,e=n()),e}}},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const l=e(1).__importStar(e(19)),c=e(24);function o(e,t){const n={};for(const l in e){const c=e[l];n[t+l]=c}return n}const a={line_color:[l.ColorSpec,"black"],line_width:[l.NumberSpec,1],line_alpha:[l.NumberSpec,1],line_join:[l.LineJoin,"bevel"],line_cap:[l.LineCap,"butt"],line_dash:[l.Array,[]],line_dash_offset:[l.Number,0]};n.line=(e="")=>o(a,e);const r={fill_color:[l.ColorSpec,"gray"],fill_alpha:[l.NumberSpec,1]};n.fill=(e="")=>o(r,e);const i={hatch_color:[l.ColorSpec,"black"],hatch_alpha:[l.NumberSpec,1],hatch_scale:[l.NumberSpec,12],hatch_pattern:[l.StringSpec,null],hatch_weight:[l.NumberSpec,1],hatch_extra:[l.Any,{}]};n.hatch=(e="")=>o(i,e);const _={text_font:[l.Font,"helvetica"],text_font_size:[l.FontSizeSpec,"16px"],text_font_style:[l.FontStyle,"normal"],text_color:[l.ColorSpec,"#444444"],text_alpha:[l.NumberSpec,1],text_align:[l.TextAlign,"left"],text_baseline:[l.TextBaseline,"bottom"],text_line_height:[l.Number,1.2]};n.text=(e="")=>o(_,e),n.create=function(e){const t={};for(const l of e){const[e,o]=l.split(":");let a;switch(e){case"line":a=n.line;break;case"fill":a=n.fill;break;case"hatch":a=n.hatch;break;case"text":a=n.text;break;default:throw new Error(`Unknown property mixin kind ‘${e}’`)}c.extend(t,a(o))}return t}},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),s=e(14),a=i.__importStar(e(20)),r=e(9),o=e(12),l=e(21),c=e(8),_=e(23);function u(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}function d(e){return c.isPlainObject(e)&&(void 0===e.value?0:1)+(void 0===e.field?0:1)+(void 0===e.expr?0:1)==1}s.Signal,n.isSpec=d;class p extends(s.Signalable()){constructor(e,t,n){super(),this.obj=e,this.attr=t,this.default_value=n,this.optional=!1,this.change=new s.Signal0(this.obj,"change"),this._init(),this.connect(this.change,()=>this._init())}update(){this._init()}init(){}transform(e){return e}validate(e){if(!this.valid(e))throw new Error(`${this.obj.type}.${this.attr} given invalid value: ${u(e)}`)}valid(e){return!0}value(e=!0){if(void 0===this.spec.value)throw new Error("attempted to retrieve property value for property without value specification");let t=this.transform([this.spec.value])[0];return null!=this.spec.transform&&e&&(t=this.spec.transform.compute(t)),t}_init(){const e=this.obj,t=this.attr;let n=e.getv(t);if(void 0===n){const i=this.default_value;n=null!=this._default_override?this._default_override():void 0!==i?i(e):null,e.setv({[t]:n},{silent:!0,defaults:!0})}c.isArray(n)?this.spec={value:n}:d(n)?this.spec=n:this.spec={value:n},null!=this.spec.value&&this.validate(this.spec.value),this.init()}toString(){return`Prop(${this.obj}.${this.attr}, spec: ${u(this.spec)})`}}n.Property=p,p.__name__="Property";class h extends p{}n.Any=h,h.__name__="Any";class m extends p{valid(e){return c.isArray(e)||e instanceof Float64Array}}n.Array=m,m.__name__="Array";class S extends p{valid(e){return c.isBoolean(e)}}n.Boolean=S,S.__name__="Boolean";class g extends p{valid(e){return c.isString(e)&&l.is_color(e)}}n.Color=g,g.__name__="Color";class v extends p{}n.Instance=v,v.__name__="Instance";class x extends p{valid(e){return c.isNumber(e)}}n.Number=x,x.__name__="Number";class f extends x{valid(e){return c.isNumber(e)&&(0|e)==e}}n.Int=f,f.__name__="Int";class y extends x{}n.Angle=y,y.__name__="Angle";class P extends x{valid(e){return c.isNumber(e)&&0<=e&&e<=1}}n.Percent=P,P.__name__="Percent";class L extends p{valid(e){return c.isString(e)}}n.String=L,L.__name__="String";class T extends L{}n.FontSize=T,T.__name__="FontSize";class A extends L{constructor(){super(…arguments),this._default_override=_.settings.dev?()=>"Bokeh":void 0}}n.Font=A,A.__name__="Font";class b extends p{valid(e){return c.isString(e)&&r.includes(this.enum_values,e)}}function M(e){return class extends b{get enum_values(){return e}}}n.EnumProperty=b,b.__name__="EnumProperty",n.Enum=M;class B extends b{get enum_values(){return a.Direction}transform(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)switch(e[n]){case"clock":t[n]=0;break;case"anticlock":t[n]=1}return t}}n.Direction=B,B.__name__="Direction",n.Anchor=M(a.Anchor),n.AngleUnits=M(a.AngleUnits),n.BoxOrigin=M(a.BoxOrigin),n.ButtonType=M(a.ButtonType),n.CalendarPosition=M(a.CalendarPosition),n.Dimension=M(a.Dimension),n.Dimensions=M(a.Dimensions),n.Distribution=M(a.Distribution),n.FontStyle=M(a.FontStyle),n.HatchPatternType=M(a.HatchPatternType),n.HTTPMethod=M(a.HTTPMethod),n.HexTileOrientation=M(a.HexTileOrientation),n.HoverMode=M(a.HoverMode),n.LatLon=M(a.LatLon),n.LegendClickPolicy=M(a.LegendClickPolicy),n.LegendLocation=M(a.LegendLocation),n.LineCap=M(a.LineCap),n.LineJoin=M(a.LineJoin),n.LinePolicy=M(a.LinePolicy),n.Location=M(a.Location),n.Logo=M(a.Logo),n.MarkerType=M(a.MarkerType),n.MutedPolicy=M(a.MutedPolicy),n.Orientation=M(a.Orientation),n.OutputBackend=M(a.OutputBackend),n.PaddingUnits=M(a.PaddingUnits),n.Place=M(a.Place),n.PointPolicy=M(a.PointPolicy),n.RadiusDimension=M(a.RadiusDimension),n.RenderLevel=M(a.RenderLevel),n.RenderMode=M(a.RenderMode),n.ResetPolicy=M(a.ResetPolicy),n.RoundingFunction=M(a.RoundingFunction),n.Side=M(a.Side),n.SizingMode=M(a.SizingMode),n.Sort=M(a.Sort),n.SpatialUnits=M(a.SpatialUnits),n.StartEnd=M(a.StartEnd),n.StepMode=M(a.StepMode),n.TapBehavior=M(a.TapBehavior),n.TextAlign=M(a.TextAlign),n.TextBaseline=M(a.TextBaseline),n.TextureRepetition=M(a.TextureRepetition),n.TickLabelOrientation=M(a.TickLabelOrientation),n.TooltipAttachment=M(a.TooltipAttachment),n.UpdateMode=M(a.UpdateMode),n.VerticalAlign=M(a.VerticalAlign);class D extends p{}n.ScalarSpec=D,D.__name__="ScalarSpec";class k extends p{array(e){let t;if(null!=this.spec.field){if(t=this.transform(e.get_column(this.spec.field)),null==t)throw new Error(`attempted to retrieve property array for nonexistent field ‘${this.spec.field}’`)}else if(null!=this.spec.expr)t=this.transform(this.spec.expr.v_compute(e));else{let n=e.get_length();null==n&&(n=1);const i=this.value(!1);t=r.repeat(i,n)}return null!=this.spec.transform&&(t=this.spec.transform.v_compute(t)),t}}n.VectorSpec=k,k.__name__="VectorSpec";class C extends k{}n.DataSpec=C,C.__name__="DataSpec";class O extends k{init(){null==this.spec.units&&(this.spec.units=this.default_units);const e=this.spec.units;if(!r.includes(this.valid_units,e))throw new Error(`units must be one of ${this.valid_units.join(", ")}; got: ${e}`)}get units(){return this.spec.units}set units(e){this.spec.units=e}}n.UnitsSpec=O,O.__name__="UnitsSpec";class U extends O{get default_units(){return"rad"}get valid_units(){return a.AngleUnits}transform(e){return"deg"==this.spec.units&&(e=o.map(e,e=>e*Math.PI/180)),e=o.map(e,e=>-e),super.transform(e)}}n.AngleSpec=U,U.__name__="AngleSpec";class w extends C{}n.BooleanSpec=w,w.__name__="BooleanSpec";class R extends C{}n.ColorSpec=R,R.__name__="ColorSpec";class F extends C{}n.CoordinateSpec=F,F.__name__="CoordinateSpec";class N extends C{}n.CoordinateSeqSpec=N,N.__name__="CoordinateSeqSpec";class E extends O{get default_units(){return"data"}get valid_units(){return a.SpatialUnits}}n.DistanceSpec=E,E.__name__="DistanceSpec";class $ extends C{}n.FontSizeSpec=$,$.__name__="FontSizeSpec";class j extends C{}n.MarkerSpec=j,j.__name__="MarkerSpec";class H extends C{}n.NumberSpec=H,H.__name__="NumberSpec";class z extends C{}n.StringSpec=z,z.__name__="StringSpec";class I extends C{}n.NullStringSpec=I,I.__name__="NullStringSpec"},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Align=["start","center","end"],o.Anchor=["top_left","top_center","top_right","center_left","center","center_right","bottom_left","bottom_center","bottom_right"],o.AngleUnits=["deg","rad"],o.BoxOrigin=["corner","center"],o.ButtonType=["default","primary","success","warning","danger"],o.CalendarPosition=["auto","above","below"],o.Dimension=["width","height"],o.Dimensions=["width","height","both"],o.Direction=["clock","anticlock"],o.Distribution=["uniform","normal"],o.FontStyle=["normal","italic","bold","bold italic"],o.HatchPatternType=["blank","dot","ring","horizontal_line","vertical_line","cross","horizontal_dash","vertical_dash","spiral","right_diagonal_line","left_diagonal_line","diagonal_cross","right_diagonal_dash","left_diagonal_dash","horizontal_wave","vertical_wave","criss_cross"," ",".","o","-","|","+",’"’,":","@","/","\\","x",",","`","v",">",""],o.HTTPMethod=["POST","GET"],o.HexTileOrientation=["pointytop","flattop"],o.HoverMode=["mouse","hline","vline"],o.LatLon=["lat","lon"],o.LegendClickPolicy=["none","hide","mute"],o.LegendLocation=o.Anchor,o.LineCap=["butt","round","square"],o.LineJoin=["miter","round","bevel"],o.LinePolicy=["prev","next","nearest","interp","none"],o.Location=["above","below","left","right"],o.Logo=["normal","grey"],o.MarkerType=["asterisk","circle","circle_cross","circle_x","cross","dash","diamond","diamond_cross","hex","inverted_triangle","square","square_cross","square_x","triangle","x"],o.MutedPolicy=["show","ignore"],o.Orientation=["vertical","horizontal"],o.OutputBackend=["canvas","svg","webgl"],o.PaddingUnits=["percent","absolute"],o.Place=["above","below","left","right","center"],o.PointPolicy=["snap_to_data","follow_mouse","none"],o.RadiusDimension=["x","y","max","min"],o.RenderLevel=["image","underlay","glyph","annotation","overlay"],o.RenderMode=["canvas","css"],o.ResetPolicy=["standard","event_only"],o.RoundingFunction=["round","nearest","floor","rounddown","ceil","roundup"],o.Side=["above","below","left","right"],o.SizingMode=["stretch_width","stretch_height","stretch_both","scale_width","scale_height","scale_both","fixed"],o.Sort=["ascending","descending"],o.SpatialUnits=["screen","data"],o.StartEnd=["start","end"],o.StepMode=["after","before","center"],o.TapBehavior=["select","inspect"],o.TextAlign=["left","right","center"],o.TextBaseline=["top","middle","bottom","alphabetic","hanging","ideographic"],o.TextureRepetition=["repeat","repeat_x","repeat_y","no_repeat"],o.TickLabelOrientation=["vertical","horizontal","parallel","normal"],o.TooltipAttachment=["horizontal","vertical","left","right","above","below"],o.UpdateMode=["replace","append"],o.VerticalAlign=["top","middle","bottom"]},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(22),o=e(9);function l(e){const r=Number(e).toString(16);return 1==r.length?`0${r}`:r}function a(e){if(0==(e+="").indexOf("#"))return e;if(n.is_svg_color(e))return n.svg_colors[e];if(0==e.indexOf("rgb")){const r=e.replace(/^rgba?\(|\\s+|\)$/g,"").split(",");let t=r.slice(0,3).map(l).join("");return 4==r.length&&(t+=l(Math.floor(255*parseFloat(r[3])))),`#${t.slice(0,8)}`}return e}function c(e){let r;switch(e.substring(0,4)){case"rgba":r={start:"rgba(",len:4,alpha:!0};break;case"rgb(":r={start:"rgb(",len:3,alpha:!1};break;default:return!1}if(new RegExp(".*?(\\.).*(,)").test(e))throw new Error(color expects integers for rgb in rgb/rgba tuple, received ${e});const t=e.replace(r.start,"").replace(")","").split(",").map(parseFloat);if(t.length!=r.len)throw new Error(color expects rgba ${r.len}-tuple, received ${e});if(r.alpha&&!(0<=t[3]&&t[3]<=1))throw new Error("color expects rgba 4-tuple to have alpha value between 0 and 1");if(o.includes(t.slice(0,3).map(e=>0<=e&&e<=255),!1))throw new Error("color expects rgb to have value between 0 and 255");return!0}t.is_color=function(e){return n.is_svg_color(e.toLowerCase())||"#"==e.substring(0,1)||c(e)},t.rgb2hex=function(e,r,t){return`#${l(255&e)}${l(255&r)}${l(255&t)}`},t.color2hex=a,t.color2rgba=function(e,r=1){if(!e)return[0,0,0,0];let t=a(e);t=t.replace(/ |#/g,\"\"),t.length<=4&&(t=t.replace(/(.)/g,\"$1$1\"));const n=t.match(/../g).map(e=>parseInt(e,16)/255);for(;n.length<3;)n.push(0);return n.length<4&&n.push(r),n.slice(0,4)},t.valid_rgb=c},\n function _(e,F,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.svg_colors={indianred:\"#CD5C5C\",lightcoral:\"#F08080\",salmon:\"#FA8072\",darksalmon:\"#E9967A\",lightsalmon:\"#FFA07A\",crimson:\"#DC143C\",red:\"#FF0000\",firebrick:\"#B22222\",darkred:\"#8B0000\",pink:\"#FFC0CB\",lightpink:\"#FFB6C1\",hotpink:\"#FF69B4\",deeppink:\"#FF1493\",mediumvioletred:\"#C71585\",palevioletred:\"#DB7093\",coral:\"#FF7F50\",tomato:\"#FF6347\",orangered:\"#FF4500\",darkorange:\"#FF8C00\",orange:\"#FFA500\",gold:\"#FFD700\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",lemonchiffon:\"#FFFACD\",lightgoldenrodyellow:\"#FAFAD2\",papayawhip:\"#FFEFD5\",moccasin:\"#FFE4B5\",peachpuff:\"#FFDAB9\",palegoldenrod:\"#EEE8AA\",khaki:\"#F0E68C\",darkkhaki:\"#BDB76B\",lavender:\"#E6E6FA\",thistle:\"#D8BFD8\",plum:\"#DDA0DD\",violet:\"#EE82EE\",orchid:\"#DA70D6\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",mediumorchid:\"#BA55D3\",mediumpurple:\"#9370DB\",blueviolet:\"#8A2BE2\",darkviolet:\"#9400D3\",darkorchid:\"#9932CC\",darkmagenta:\"#8B008B\",purple:\"#800080\",indigo:\"#4B0082\",slateblue:\"#6A5ACD\",darkslateblue:\"#483D8B\",mediumslateblue:\"#7B68EE\",greenyellow:\"#ADFF2F\",chartreuse:\"#7FFF00\",lawngreen:\"#7CFC00\",lime:\"#00FF00\",limegreen:\"#32CD32\",palegreen:\"#98FB98\",lightgreen:\"#90EE90\",mediumspringgreen:\"#00FA9A\",springgreen:\"#00FF7F\",mediumseagreen:\"#3CB371\",seagreen:\"#2E8B57\",forestgreen:\"#228B22\",green:\"#008000\",darkgreen:\"#006400\",yellowgreen:\"#9ACD32\",olivedrab:\"#6B8E23\",olive:\"#808000\",darkolivegreen:\"#556B2F\",mediumaquamarine:\"#66CDAA\",darkseagreen:\"#8FBC8F\",lightseagreen:\"#20B2AA\",darkcyan:\"#008B8B\",teal:\"#008080\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",lightcyan:\"#E0FFFF\",paleturquoise:\"#AFEEEE\",aquamarine:\"#7FFFD4\",turquoise:\"#40E0D0\",mediumturquoise:\"#48D1CC\",darkturquoise:\"#00CED1\",cadetblue:\"#5F9EA0\",steelblue:\"#4682B4\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",lightblue:\"#ADD8E6\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",deepskyblue:\"#00BFFF\",dodgerblue:\"#1E90FF\",cornflowerblue:\"#6495ED\",royalblue:\"#4169E1\",blue:\"#0000FF\",mediumblue:\"#0000CD\",darkblue:\"#00008B\",navy:\"#000080\",midnightblue:\"#191970\",cornsilk:\"#FFF8DC\",blanchedalmond:\"#FFEBCD\",bisque:\"#FFE4C4\",navajowhite:\"#FFDEAD\",wheat:\"#F5DEB3\",burlywood:\"#DEB887\",tan:\"#D2B48C\",rosybrown:\"#BC8F8F\",sandybrown:\"#F4A460\",goldenrod:\"#DAA520\",darkgoldenrod:\"#B8860B\",peru:\"#CD853F\",chocolate:\"#D2691E\",saddlebrown:\"#8B4513\",sienna:\"#A0522D\",brown:\"#A52A2A\",maroon:\"#800000\",white:\"#FFFFFF\",snow:\"#FFFAFA\",honeydew:\"#F0FFF0\",mintcream:\"#F5FFFA\",azure:\"#F0FFFF\",aliceblue:\"#F0F8FF\",ghostwhite:\"#F8F8FF\",whitesmoke:\"#F5F5F5\",seashell:\"#FFF5EE\",beige:\"#F5F5DC\",oldlace:\"#FDF5E6\",floralwhite:\"#FFFAF0\",ivory:\"#FFFFF0\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lavenderblush:\"#FFF0F5\",mistyrose:\"#FFE4E1\",gainsboro:\"#DCDCDC\",lightgray:\"#D3D3D3\",lightgrey:\"#D3D3D3\",silver:\"#C0C0C0\",darkgray:\"#A9A9A9\",darkgrey:\"#A9A9A9\",gray:\"#808080\",grey:\"#808080\",dimgray:\"#696969\",dimgrey:\"#696969\",lightslategray:\"#778899\",lightslategrey:\"#778899\",slategray:\"#708090\",slategrey:\"#708090\",darkslategray:\"#2F4F4F\",darkslategrey:\"#2F4F4F\",black:\"#000000\"},r.is_svg_color=function(e){return e in r.svg_colors}},\n function _(e,t,s){Object.defineProperty(s,\"__esModule\",{value:!0});class n{constructor(){this._dev=!1}set dev(e){this._dev=e}get dev(){return this._dev}}s.Settings=n,n.__name__=\"Settings\",s.settings=new n},\n function _(e,t,n){Object.defineProperty(n,\"__esModule\",{value:!0});const c=e(9);function o(e){return Object.keys(e).length}n.keys=Object.keys,n.extend=Object.assign,n.values=void 0!==Object.values?Object.values:e=>{const t=Object.keys(e),n=t.length,c=new Array(n);for(let o=0;o<n;o++)c[o]=e[t[o]];return c},n.clone=function(e){return Object.assign({},e)},n.merge=function(e,t){const n=Object.create(Object.prototype),o=c.concat([Object.keys(e),Object.keys(t)]);for(const r of o){const o=e.hasOwnProperty(r)?e[r]:[],s=t.hasOwnProperty(r)?t[r]:[];n[r]=c.union(o,s)}return n},n.size=o,n.isEmpty=function(e){return 0===o(e)}},\n function _(e,n,t){Object.defineProperty(t,\"__esModule\",{value:!0});const i=e(8),r=e(24);t.is_ref=function(e){if(i.isPlainObject(e)){const n=r.keys(e);return 1==n.length&&\"id\"==n[0]}return!1}},\n function _(t,e,r){Object.defineProperty(r,\"__esModule\",{value:!0});const n=t(23);function u(){const t=new Array(32);for(let e=0;e<32;e++)t[e]=\"0123456789ABCDEF\".substr(Math.floor(16*Math.random()),1);return t[12]=\"4\",t[16]=\"0123456789ABCDEF\".substr(3&t[16].charCodeAt(0)|8,1),t.join(\"\")}r.startsWith=function(t,e,r=0){return t.substr(r,e.length)==e},r.uuid4=u;let s=1e3;r.uniqueId=function(t){const e=n.settings.dev?`j${s++}`:u();return null!=t?`${t}-${e}`:e},r.escape=function(t){return t.replace(/(?:[&<>\"'`])/g,t=>{switch(t){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return\""\";case\"'\":return\"'\";case\"`\":return\"`\";default:return t}})},r.unescape=function(t){return t.replace(/&(amp|lt|gt|quot|#x27|#x60);/g,(t,e)=>{switch(e){case\"amp\":return\"&\";case\"lt\":return\"<\";case\"gt\":return\">\";case\"quot\":return'\"';case\"#x27\":return\"'\";case\"#x60\":return\"`\";default:return e}})},r.use_strict=function(t){return`'use strict';\\n${t}`}},\n function _(t,_,r){Object.defineProperty(r,\"__esModule\",{value:!0});const e=t(1);e.__exportStar(t(28),r),e.__exportStar(t(147),r),e.__exportStar(t(174),r),e.__exportStar(t(178),r),e.__exportStar(t(193),r),e.__exportStar(t(197),r),e.__exportStar(t(203),r),e.__exportStar(t(207),r),e.__exportStar(t(237),r),e.__exportStar(t(240),r),e.__exportStar(t(242),r),e.__exportStar(t(255),r),e.__exportStar(t(122),r),e.__exportStar(t(261),r),e.__exportStar(t(265),r),e.__exportStar(t(288),r),e.__exportStar(t(289),r),e.__exportStar(t(290),r),e.__exportStar(t(291),r),e.__exportStar(t(292),r),e.__exportStar(t(297),r),e.__exportStar(t(299),r),e.__exportStar(t(309),r),e.__exportStar(t(313),r)},\n function _(a,e,o){Object.defineProperty(o,\"__esModule\",{value:!0});var r=a(29);o.Annotation=r.Annotation;var n=a(71);o.Arrow=n.Arrow;var t=a(72);o.ArrowHead=t.ArrowHead;var v=a(72);o.OpenHead=v.OpenHead;var l=a(72);o.NormalHead=l.NormalHead;var d=a(72);o.TeeHead=d.TeeHead;var i=a(72);o.VeeHead=i.VeeHead;var A=a(104);o.Band=A.Band;var H=a(105);o.BoxAnnotation=H.BoxAnnotation;var T=a(107);o.ColorBar=T.ColorBar;var p=a(132);o.Label=p.Label;var L=a(134);o.LabelSet=L.LabelSet;var b=a(135);o.Legend=b.Legend;var B=a(136);o.LegendItem=B.LegendItem;var S=a(138);o.PolyAnnotation=S.PolyAnnotation;var P=a(139);o.Slope=P.Slope;var g=a(140);o.Span=g.Span;var m=a(133);o.TextAnnotation=m.TextAnnotation;var w=a(141);o.Title=w.Title;var x=a(142);o.ToolbarPanel=x.ToolbarPanel;var s=a(143);o.Tooltip=s.Tooltip;var u=a(146);o.Whisker=u.Whisker},\n function _(t,e,n){Object.defineProperty(n,\"__esModule\",{value:!0});const i=t(1).__importStar(t(30)),s=t(24),o=t(63);class _ extends o.RendererView{get panel(){return this.layout}get_size(){if(this.model.visible){const{width:t,height:e}=this._get_size();return{width:Math.round(t),height:Math.round(e)}}return{width:0,height:0}}connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.visible,()=>this.plot_view.request_layout())}_get_size(){throw new Error(\"not implemented\")}get ctx(){return this.plot_view.canvas_view.ctx}set_data(t){const e=this.model.materialize_dataspecs(t);if(s.extend(this,e),this.plot_model.use_map){const t=this;null!=t._x&&([t._x,t._y]=i.project_xy(t._x,t._y)),null!=t._xs&&([t._xs,t._ys]=i.project_xsys(t._xs,t._ys))}}get needs_clip(){return null==this.layout}serializable_state(){const t=super.serializable_state();return null==this.layout?t:Object.assign(Object.assign({},t),{bbox:this.layout.bbox.box})}}n.AnnotationView=_,_.__name__=\"AnnotationView\";class a extends o.Renderer{constructor(t){super(t)}static init_Annotation(){this.override({level:\"annotation\"})}}n.Annotation=a,a.__name__=\"Annotation\",a.init_Annotation()},\n function _(t,n,e){Object.defineProperty(e,\"__esModule\",{value:!0});const r=t(1),o=r.__importDefault(t(31)),a=r.__importDefault(t(32)),c=new a.default(\"GOOGLE\"),l=new a.default(\"WGS84\");e.wgs84_mercator=o.default(l,c);const u={lon:[-20026376.39,20026376.39],lat:[-20048966.1,20048966.1]},f={lon:[-180,180],lat:[-85.06,85.06]};function s(t,n){const r=Math.min(t.length,n.length),o=new Array(r),a=new Array(r);for(let c=0;c<r;c++){const[r,l]=e.wgs84_mercator.forward([t[c],n[c]]);o[c]=r,a[c]=l}return[o,a]}e.clip_mercator=function(t,n,e){const[r,o]=u[e];return[Math.max(t,r),Math.min(n,o)]},e.in_bounds=function(t,n){const[e,r]=f[n];return e<t&&t<r},e.project_xy=s,e.project_xsys=function(t,n){const e=Math.min(t.length,n.length),r=new Array(e),o=new Array(e);for(let a=0;a<e;a++){const[e,c]=s(t[a],n[a]);r[a]=e,o[a]=c}return[r,o]}},\n function _(e,n,t){Object.defineProperty(t,\"__esModule\",{value:!0});const r=e(1),o=r.__importDefault(e(32)),a=r.__importDefault(e(57));var i=o.default(\"WGS84\");function c(e,n,t){var r,o,i;return Array.isArray(t)?(r=a.default(e,n,t)||{x:NaN,y:NaN},t.length>2?void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name?\"number\"==typeof r.z?[r.x,r.y,r.z].concat(t.splice(3)):[r.x,r.y,t[2]].concat(t.splice(3)):[r.x,r.y].concat(t.splice(2)):[r.x,r.y]):(o=a.default(e,n,t),2===(i=Object.keys(t)).length||i.forEach((function(r){if(void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name){if(\"x\"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=t[r]})),o)}function u(e){return e instanceof o.default?e:e.oProj?e.oProj:o.default(e)}t.default=function(e,n,t){e=u(e);var r,o=!1;return void 0===n?(n=e,e=i,o=!0):(void 0!==n.x||Array.isArray(n))&&(t=n,n=e,e=i,o=!0),n=u(n),t?c(e,n,t):(r={forward:function(t){return c(e,n,t)},inverse:function(t){return c(n,e,t)}},o&&(r.oProj=n),r)}},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1),i=s.__importDefault(e(33)),u=s.__importDefault(e(44)),l=s.__importDefault(e(45)),o=e(53),r=s.__importDefault(e(55)),f=s.__importDefault(e(56)),d=s.__importDefault(e(40));function p(e,t){if(!(this instanceof p))return new p(e);t=t||function(e){if(e)throw e};var a=i.default(e);if("object"==typeof a){var s=p.projections.get(a.projName);if(s){if(a.datumCode&&"none"!==a.datumCode){var l=d.default(r.default,a.datumCode);l&&(a.datum_params=l.towgs84?l.towgs84.split(","):null,a.ellps=l.ellipse,a.datumName=l.datumName?l.datumName:a.datumCode)}a.k0=a.k0||1,a.axis=a.axis||"enu",a.ellps=a.ellps||"wgs84";var m=o.sphere(a.a,a.b,a.rf,a.ellps,a.sphere),n=o.eccentricity(m.a,m.b,m.rf,a.R_A),h=a.datum||f.default(a.datumCode,a.datum_params,m.a,m.b,n.es,n.ep2);u.default(this,a),u.default(this,s),this.a=m.a,this.b=m.b,this.rf=m.rf,this.sphere=m.sphere,this.es=n.es,this.e=n.e,this.ep2=n.ep2,this.datum=h,this.init(),t(null,this)}else t(e)}else t(e)}p.projections=l.default,p.projections.start(),a.default=p},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const u=t(1),n=u.__importDefault(t(34)),f=u.__importDefault(t(41)),i=u.__importDefault(t(36)),a=u.__importDefault(t(40));var o=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var l=["3857","900913","3785","102113"];r.default=function(t){if(!function(t){return"string"==typeof t}(t))return t;if(function(t){return t in n.default}(t))return n.default[t];if(function(t){return o.some((function(e){return t.indexOf(e)>-1}))}(t)){var e=f.default(t);if(function(t){var e=a.default(t,"authority");if(e){var r=a.default(e,"epsg");return r&&l.indexOf(r)>-1}}(e))return n.default["EPSG:3857"];var r=function(t){var e=a.default(t,"extension");if(e)return a.default(e,"proj4")}(e);return r?i.default(r):e}return function(t){return"+"===t[0]}(t)?i.default(t):void 0}},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),n=i.__importDefault(t(35)),f=i.__importDefault(t(36)),a=i.__importDefault(t(41));function l(t){var e=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?l[t]=f.default(arguments[1]):l[t]=a.default(arguments[1]):l[t]=r}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?l.apply(e,t):l(t)}));if("string"==typeof t){if(t in l)return l[t]}else"EPSG"in t?l["EPSG:"+t.EPSG]=t:"ESRI"in t?l["ESRI:"+t.ESRI]=t:"IAU2000"in t?l["IAU2000:"+t.IAU2000]=t:console.log(t);return}}n.default(l),r.default=l},n function _(e,t,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}},n function _(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});const e=t(1),a=t(37),u=e.__importDefault(t(38)),r=e.__importDefault(t(39)),i=e.__importDefault(t(40));o.default=function(t){var n,o,e,f={},l=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,n){var o=n.split("=");return o.push(!0),t[o[0].toLowerCase()]=o[1],t}),{}),c={proj:"projName",datum:"datumCode",rf:function(t){f.rf=parseFloat(t)},lat_0:function(t){f.lat0=t*a.D2R},lat_1:function(t){f.lat1=t*a.D2R},lat_2:function(t){f.lat2=t*a.D2R},lat_ts:function(t){f.lat_ts=t*a.D2R},lon_0:function(t){f.long0=t*a.D2R},lon_1:function(t){f.long1=t*a.D2R},lon_2:function(t){f.long2=t*a.D2R},alpha:function(t){f.alpha=parseFloat(t)*a.D2R},lonc:function(t){f.longc=t*a.D2R},x_0:function(t){f.x0=parseFloat(t)},y_0:function(t){f.y0=parseFloat(t)},k_0:function(t){f.k0=parseFloat(t)},k:function(t){f.k0=parseFloat(t)},a:function(t){f.a=parseFloat(t)},b:function(t){f.b=parseFloat(t)},r_a:function(){f.R_A=!0},zone:function(t){f.zone=parseInt(t,10)},south:function(){f.utmSouth=!0},towgs84:function(t){f.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){f.to_meter=parseFloat(t)},units:function(t){f.units=t;var n=i.default(r.default,t);n&&(f.to_meter=n.to_meter)},from_greenwich:function(t){f.from_greenwich=t*a.D2R},pm:function(t){var n=i.default(u.default,t);f.from_greenwich=(n||parseFloat(t))*a.D2R},nadgrids:function(t){"@null"===t?f.datumCode="none":f.nadgrids=t},axis:function(t){3===t.length&&-1!=="ewnsud".indexOf(t.substr(0,1))&&-1!=="ewnsud".indexOf(t.substr(1,1))&&-1!=="ewnsud".indexOf(t.substr(2,1))&&(f.axis=t)}};for(n in l)o=l[n],n in c?"function"==typeof(e=c[n])?e(o):f[e]=o:f[n]=o;return"string"==typeof f.datumCode&&"WGS84"!==f.datumCode&&(f.datumCode=f.datumCode.toLowerCase()),f}},n function _(P,_,e){Object.defineProperty(e,"__esModule",{value:!0}),e.PJD_3PARAM=1,e.PJD_7PARAM=2,e.PJD_WGS84=4,e.PJD_NODATUM=5,e.SEC_TO_RAD=484813681109536e-20,e.HALF_PI=Math.PI/2,e.SIXTH=.16666666666666666,e.RA4=.04722222222222222,e.RA6=.022156084656084655,e.EPSLN=1e-10,e.D2R=.017453292519943295,e.R2D=57.29577951308232,e.FORTPI=Math.PI/4,e.TWO_PI=2*Math.PI,e.SPI=3.14159265359},n function _(e,o,r){Object.defineProperty(r,"__esModule",{value:!0});var a={};r.default=a,a.greenwich=0,a.lisbon=-9.131906111111,a.paris=2.337229166667,a.bogota=-74.080916666667,a.madrid=-3.687938888889,a.rome=12.452333333333,a.bern=7.439583333333,a.jakarta=106.807719444444,a.ferro=-17.666666666667,a.brussels=4.367975,a.stockholm=18.058277777778,a.athens=23.7163375,a.oslo=10.722916666667},n function _(e,t,f){Object.defineProperty(f,"__esModule",{value:!0}),f.default={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});var o=/[\s_\-\/\(\)]/g;t.default=function(e,r){if(e[r])return e[r];for(var t,a=Object.keys(e),n=r.toLowerCase().replace(o,""),f=-1;++f<a.length;)if((t=a[f]).toLowerCase().replace(o,"")===n)return e[t]}},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const o=e(1);const d=o.__importDefault(e(42)),r=e(43);function n(e){return.017453292519943295*e}a.default=function(e){var t=d.default(e),a=t.shift(),o=t.shift();t.unshift(["name",o]),t.unshift(["type",a]);var l={};return r.sExpr(t,l),function(e){if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",a=0,o=e.AXIS.length;a<o;++a){var d=e.AXIS[a][0].toLowerCase();-1!==d.indexOf("north")?t+="n":-1!==d.indexOf("south")?t+="s":-1!==d.indexOf("east")?t+="e":-1!==d.indexOf("west")&&(t+="w")}2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var r=e.GEOGCS;function l(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(r=e),r&&(r.DATUM?e.datumCode=r.DATUM.name.toLowerCase():e.datumCode=r.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(e.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=r.DATUM.SPHEROID.a,e.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(e.datum_params=r.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",n],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",n],["x0","false_easting",l],["y0","false_northing",l],["long0","central_meridian",n],["lat0","latitude_of_origin",n],["lat0","standard_parallel_1",n],["lat1","standard_parallel_1",n],["lat2","standard_parallel_2",n],["azimuth","Azimuth"],["alpha","azimuth",n],["srsCode","name"]].forEach((function(t){return a=e,d=(o=t)[0],r=o[1],void(!(d in a)&&r in a&&(a[d]=a[r],3===o.length&&(a[d]=o[2](a[d]))));var a,o,d,r})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=n(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(l),l}},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return new a(t).output()};var i=/\s/,s=/[A-Za-z]/,h=/[A-Za-z84]/,o=/[,\]]/,n=/[\d\.E\-\+]/;function a(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}a.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;i.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},a.prototype.afterquote=function(t){if(’"’===t)return this.word+=’"’,void(this.state=4);if(o.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn’t handled \""+t+’" in afterquote yet, index ‘+this.place)},a.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level–,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},a.prototype.number=function(t){if(!n.test(t)){if(o.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn’t handled \""+t+’" in number yet, index ‘+this.place)}this.word+=t},a.prototype.quoted=function(t){’"’!==t?this.word+=t:this.state=5},a.prototype.keyword=function(t){if(h.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=1)}if(!o.test(t))throw new Error("havn’t handled \""+t+’" in keyword yet, index ‘+this.place);this.afterItem(t)}},a.prototype.neutral=function(t){if(s.test(t))return this.word=t,void(this.state=2);if(’"’===t)return this.word="",void(this.state=4);if(n.test(t))return this.word=t,void(this.state=3);if(!o.test(t))throw new Error("havn’t handled \""+t+’" in neutral yet, index ‘+this.place);this.afterItem(t)},a.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error(‘unable to parse string "’+this.text+’". State is ‘+this.state)}},n function _(e,r,a){function s(e,r,a){Array.isArray(r)&&(a.unshift(r),r=null);var s=r?{}:e,n=a.reduce((function(e,r){return c(r,e),e}),s);r&&(e[r]=n)}function c(e,r){if(Array.isArray(e)){var a=e.shift();if("PARAMETER"===a&&(a=e.shift()),1===e.length)return Array.isArray(e[0])?(r[a]={},void c(e[0],r[a])):void(r[a]=e[0]);if(e.length)if("TOWGS84"!==a){if("AXIS"===a)return a in r||(r[a]=[]),void r[a].push(e);var n;switch(Array.isArray(a)||(r[a]={}),a){case"UNIT":case"PRIMEM":case"VERT_DATUM":return r[a]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&c(e[2],r[a]));case"SPHEROID":case"ELLIPSOID":return r[a]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&c(e[3],r[a]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return e[0]=["name",e[0]],void s(r,a,e);default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return c(e,r[a]);return s(r,a,e)}}else r[a]=e;else r[a]=!0}else r[e]=!0}Object.defineProperty(a,"__esModule",{value:!0}),a.sExpr=c},n function _(e,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,n){var r,t;if(e=e||{},!n)return e;for(t in n)void 0!==(r=n[t])&&(e[t]=r);return e}},n function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const a=t(1),n=a.__importDefault(t(46)),r=a.__importDefault(t(52));var u=[n.default,r.default],f={},i=[];function d(t,e){var o=i.length;return t.names?(i[o]=t,t.names.forEach((function(t){f[t.toLowerCase()]=o})),this):(console.log(e),!0)}function c(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==f[e]&&i[f[e]]?i[f[e]]:void 0}function l(){u.forEach(d)}o.add=d,o.get=c,o.start=l,o.default={start:l,add:d,get:c}},n function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const h=t(1),a=h.__importDefault(t(47)),e=h.__importDefault(t(48)),r=h.__importDefault(t(50)),n=h.__importDefault(t(51)),l=t(37);function u(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=a.default(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function o(t){var i,s,h=t.x,a=t.y;if(a*l.R2D>90&&a*l.R2D<-90&&h*l.R2D>180&&h*l.R2D<-180)return null;if(Math.abs(Math.abs(a)-l.HALF_PI)<=l.EPSLN)return null;if(this.sphere)i=this.x0+this.a*this.k0*e.default(h-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(l.FORTPI+.5*a));else{var n=Math.sin(a),u=r.default(this.e,a,n);i=this.x0+this.a*this.k0*e.default(h-this.long0),s=this.y0-this.a*this.k0*Math.log(u)}return t.x=i,t.y=s,t}function f(t){var i,s,h=t.x-this.x0,a=t.y-this.y0;if(this.sphere)s=l.HALF_PI-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var r=Math.exp(-a/(this.a*this.k0));if(-9999===(s=n.default(this.e,r)))return null}return i=e.default(this.long0+h/(this.a*this.k0)),t.x=i,t.y=s,t}s.init=u,s.forward=o,s.inverse=f,s.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],s.default={init:u,forward:o,inverse:f,names:s.names}},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)}},n function _(e,t,u){Object.defineProperty(u,"__esModule",{value:!0});const n=e(1),a=e(37),f=n.__importDefault(e(49));u.default=function(e){return Math.abs(e)<=a.SPI?e:e-f.default(e)*a.TWO_PI}},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e<0?-1:1}},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const a=t(37);n.default=function(t,e,n){var o=t*n,u=.5*t;return o=Math.pow((1-o)/(1+o),u),Math.tan(.5*(a.HALF_PI-e))/o}},n function _(t,a,e){Object.defineProperty(e,"__esModule",{value:!0});const n=t(37);e.default=function(t,a){for(var e,r,o=.5*t,u=n.HALF_PI-2*Math.atan(a),f=0;f<=15;f++)if(e=t*Math.sin(u),u+=r=n.HALF_PI-2*Math.atan(a*Math.pow((1-e)/(1+e),o))-u,Math.abs(r)<=1e-10)return u;return-9999}},n function _(e,n,i){function t(){}function r(e){return e}Object.defineProperty(i,"__esModule",{value:!0}),i.init=t,i.forward=r,i.inverse=r,i.names=["longlat","identity"],i.default={init:t,forward:r,inverse:r,names:i.names}},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=e(1),n=e(37),f=a.__importStar(e(54)),u=a.__importDefault(e(40));r.eccentricity=function(e,t,r,a){var f=e*e,u=t*t,i=(f-u)/f,c=0;return a?(f=(e*=1-i*(n.SIXTH+i*(n.RA4+i*n.RA6)))*e,i=0):c=Math.sqrt(i),{es:i,e:c,ep2:(f-u)/u}},r.sphere=function(e,t,r,a,i){if(!e){var c=u.default(f.default,a);c||(c=f.WGS84),e=c.a,t=c.b,r=c.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<n.EPSLN)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}},n function _(e,a,l){Object.defineProperty(l,"__esModule",{value:!0});var s={};l.default=s,s.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},s.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},s.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},s.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},s.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},s.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},s.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},s.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},s.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},s.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},s.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},s.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},s.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},s.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},s.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},s.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},s.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},s.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},s.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},s.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},s.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},s.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},s.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},s.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},s.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},s.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},s.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},s.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},s.hough={a:6378270,rf:297,ellipseName:"Hough"},s.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},s.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},s.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},s.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},s.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},s.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},s.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},s.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},s.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},s.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},s.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},s.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},l.WGS84=s.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"},s.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},n function _(e,a,s){Object.defineProperty(s,"__esModule",{value:!0});var t={};s.default=t,t.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},t.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},t.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},t.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},t.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},t.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},t.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},t.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},t.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},t.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},t.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},t.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},t.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},t.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},t.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},t.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},t.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},n function _(a,m,_){Object.defineProperty(_,"__esModule",{value:!0});const t=a(37);_.default=function(a,m,_,u,d,p){var r={};return r.datum_type=void 0===a||"none"===a?t.PJD_NODATUM:t.PJD_WGS84,m&&(r.datum_params=m.map(parseFloat),0===r.datum_params[0]&&0===r.datum_params[1]&&0===r.datum_params[2]||(r.datum_type=t.PJD_3PARAM),r.datum_params.length>3&&(0===r.datum_params[3]&&0===r.datum_params[4]&&0===r.datum_params[5]&&0===r.datum_params[6]||(r.datum_type=t.PJD_7PARAM,r.datum_params[3]*=t.SEC_TO_RAD,r.datum_params[4]*=t.SEC_TO_RAD,r.datum_params[5]*=t.SEC_TO_RAD,r.datum_params[6]=r.datum_params[6]/1e6+1))),r.a=_,r.b=u,r.es=d,r.ep2=p,r}},n function _(t,e,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t(1),u=t(37),m=r.__importDefault(t(58)),_=r.__importDefault(t(60)),o=r.__importDefault(t(32)),d=r.__importDefault(t(61)),f=r.__importDefault(t(62));a.default=function t(e,a,r){var n;return Array.isArray(r)&&(r=d.default(r)),f.default(r),e.datum&&a.datum&&function(t,e){return(t.datum.datum_type===u.PJD_3PARAM||t.datum.datum_type===u.PJD_7PARAM)&&"WGS84"!==e.datumCode||(e.datum.datum_type===u.PJD_3PARAM||e.datum.datum_type===u.PJD_7PARAM)&&"WGS84"!==t.datumCode}(e,a)&&(r=t(e,n=new o.default("WGS84"),r),e=n),"enu"!==e.axis&&(r=_.default(e,!1,r)),"longlat"===e.projName?r={x:r.x*u.D2R,y:r.y*u.D2R,z:r.z||0}:(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),r=e.inverse(r)),e.from_greenwich&&(r.x+=e.from_greenwich),r=m.default(e.datum,a.datum,r),a.from_greenwich&&(r={x:r.x-a.from_greenwich,y:r.y,z:r.z||0}),"longlat"===a.projName?r={x:r.x*u.R2D,y:r.y*u.R2D,z:r.z||0}:(r=a.forward(r),a.to_meter&&(r={x:r.x/a.to_meter,y:r.y/a.to_meter,z:r.z||0})),"enu"!==a.axis?_.default(a,!0,r):r}},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const u=e(37),o=e(59);function _(e){return e===u.PJD_3PARAM||e===u.PJD_7PARAM}a.default=function(e,t,a){return o.compareDatums(e,t)||e.datum_type===u.PJD_NODATUM||t.datum_type===u.PJD_NODATUM?a:e.es!==t.es||e.a!==t.a||_(e.datum_type)||_(t.datum_type)?(a=o.geodeticToGeocentric(a,e.es,e.a),_(e.datum_type)&&(a=o.geocentricToWgs84(a,e.datum_type,e.datum_params)),_(t.datum_type)&&(a=o.geocentricFromWgs84(a,t.datum_type,t.datum_params)),o.geocentricToGeodetic(a,t.es,t.a,t.b)):a}},n function _(a,t,r){Object.defineProperty(r,"__esModule",{value:!0});const e=a(37);r.compareDatums=function(a,t){return a.datum_type===t.datum_type&&(!(a.a!==t.a||Math.abs(a.es-t.es)>5e-11)&&(a.datum_type===e.PJD_3PARAM?a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]:a.datum_type!==e.PJD_7PARAM||a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]&&a.datum_params[3]===t.datum_params[3]&&a.datum_params[4]===t.datum_params[4]&&a.datum_params[5]===t.datum_params[5]&&a.datum_params[6]===t.datum_params[6]))},r.geodeticToGeocentric=function(a,t,r){var m,u,s,_,n=a.x,d=a.y,i=a.z?a.z:0;if(d<-e.HALF_PI&&d>-1.001*e.HALF_PI)d=-e.HALF_PI;else if(d>e.HALF_PI&&d<1.001*e.HALF_PI)d=e.HALF_PI;else{if(d<-e.HALF_PI)return{x:-1/0,y:-1/0,z:a.z};if(d>e.HALF_PI)return{x:1/0,y:1/0,z:a.z}}return n>Math.PI&&(n-=2*Math.PI),u=Math.sin(d),_=Math.cos(d),s=u*u,{x:((m=r/Math.sqrt(1-t*s))+i)*_*Math.cos(n),y:(m+i)*_*Math.sin(n),z:(m*(1-t)+i)*u}},r.geocentricToGeodetic=function(a,t,r,m){var u,s,_,n,d,i,p,P,o,y,M,z,c,A,x,f=a.x,h=a.y,I=a.z?a.z:0;if(u=Math.sqrt(f*f+h*h),s=Math.sqrt(f*f+h*h+I*I),u/r<1e-12){if(A=0,s/r<1e-12)return e.HALF_PI,x=-m,{x:a.x,y:a.y,z:a.z}}else A=Math.atan2(h,f);_=I/s,P=(n=u/s)*(1-t)*(d=1/Math.sqrt(1-t*(2-t)*n*n)),o=_*d,c=0;do{c++,i=t*(p=r/Math.sqrt(1-t*o*o))/(p+(x=u*P+I*o-p*(1-t*o*o))),z=(M=_*(d=1/Math.sqrt(1-i*(2-i)*n*n)))*P-(y=n*(1-i)*d)*o,P=y,o=M}while(z*z>1e-24&&c<30);return{x:A,y:Math.atan(M/Math.abs(y)),z:x}},r.geocentricToWgs84=function(a,t,r){if(t===e.PJD_3PARAM)return{x:a.x+r[0],y:a.y+r[1],z:a.z+r[2]};if(t===e.PJD_7PARAM){var m=r[0],u=r[1],s=r[2],_=r[3],n=r[4],d=r[5],i=r[6];return{x:i*(a.x-d*a.y+n*a.z)+m,y:i*(d*a.x+a.y-_*a.z)+u,z:i*(-n*a.x+_*a.y+a.z)+s}}},r.geocentricFromWgs84=function(a,t,r){if(t===e.PJD_3PARAM)return{x:a.x-r[0],y:a.y-r[1],z:a.z-r[2]};if(t===e.PJD_7PARAM){var m=r[0],u=r[1],s=r[2],_=r[3],n=r[4],d=r[5],i=r[6],p=(a.x-m)/i,P=(a.y-u)/i,o=(a.z-s)/i;return{x:p+d*P-n*o,y:-d*p+P+_*o,z:n*p-_*P+o}}}},n function _(e,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,a,r){var c,s,u,i=r.x,n=r.y,t=r.z||0,d={};for(u=0;u<3;u++)if(!a||2!==u||void 0!==r.z)switch(0===u?(c=i,s="x"):1===u?(c=n,s="y"):(c=t,s="z"),e.axis[u]){case"e":d[s]=c;break;case"w":d[s]=-c;break;case"n":d[s]=c;break;case"s":d[s]=-c;break;case"u":void 0!==r[s]&&(d.z=c);break;case"d":void 0!==r[s]&&(d.z=-c);break;default:return null}return d}},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var n={x:e[0],y:e[1]};return e.length>2&&(n.z=e[2]),e.length>3&&(n.m=e[3]),n}},n function _(e,i,n){function t(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){t(e.x),t(e.y)}},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),n=e(64),s=r.__importStar(e(68)),_=r.__importStar(e(19)),l=e(69);class o extends n.DOMView{initialize(){super.initialize(),this.visuals=new s.Visuals(this.model),this._has_finished=!0}get plot_view(){return this.parent}get plot_model(){return this.parent.model}request_render(){this.plot_view.request_render()}map_to_screen(e,t){return this.plot_view.map_to_screen(e,t,this.model.x_range_name,this.model.y_range_name)}get needs_clip(){return!1}notify_finished(){this.plot_view.notify_finished()}get has_webgl(){return!1}}i.RendererView=o,o.__name__="RendererView";class d extends l.Model{constructor(e){super(e)}static init_Renderer(){this.define({level:[_.RenderLevel],visible:[_.Boolean,!0]})}}i.Renderer=d,d.__name__="Renderer",d.init_Renderer()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(65),n=i.__importStar(e(66)),_=e(67);class a extends r.View{initialize(){super.initialize(),this._has_finished=!1,this.el=this._createElement()}remove(){n.removeElement(this.el),super.remove()}css_classes(){return[]}cursor(e,t){return null}render(){}renderTo(e){e.appendChild(this.el),this.render()}has_finished(){return this._has_finished}get _root_element(){return n.parent(this.el,`.${_.bk_root}`)||document.body}get is_idle(){return this.has_finished()}_createElement(){return n.createElement(this.tagName,{class:this.css_classes()})}}s.DOMView=a,a.__name__="DOMView",a.prototype.tagName="div"},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(14),n=t(8),o=t(26);class s{constructor(t){if(this.removed=new r.Signal0(this,"removed"),this._ready=Promise.resolve(void 0),null==t.model)throw new Error("model of a view wasn’t configured");this.model=t.model,this._parent=t.parent,this.id=t.id||o.uniqueId()}get ready(){return this._ready}connect(t,e){return t.connect((t,i)=>{const r=Promise.resolve(e.call(this,t,i));this._ready=this._ready.then(()=>r)},this)}disconnect(t,e){return t.disconnect(e,this)}initialize(){}async lazy_initialize(){}remove(){this._parent=void 0,this.disconnect_signals(),this.removed.emit()}toString(){return`${this.model.type}View(${this.id})`}serializable_state(){return{type:this.model.type}}get parent(){if(void 0!==this._parent)return this._parent;throw new Error("parent of a view wasn’t configured")}get is_root(){return null===this.parent}get root(){return this.is_root?this:this.parent.root}assert_root(){if(!this.is_root)throw new Error(${this.toString()} is not a root layout)}connect_signals(){}disconnect_signals(){r.Signal.disconnectReceiver(this)}on_change(t,e){for(const i of n.isArray(t)?t:[t])this.connect(i.change,e)}}i.View=s,s.__name__="View"},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(8),s=t=>(e={},…n)=>{const s=document.createElement(t);s.classList.add("bk");for(const t in e){let n=e[t];if(null!=n&&(!i.isBoolean(n)||n))if("class"===t&&(i.isString(n)&&(n=n.split(/\s+/)),i.isArray(n)))for(const t of n)null!=t&&s.classList.add(t);else if("style"===t&&i.isPlainObject(n))for(const t in n)s.style[t]=n[t];else if("data"===t&&i.isPlainObject(n))for(const t in n)s.dataset[t]=n[t];else s.setAttribute(t,n)}function o(t){if(t instanceof HTMLElement)s.appendChild(t);else if(i.isString(t))s.appendChild(document.createTextNode(t));else if(null!=t&&!1!==t)throw new Error(expected an HTMLElement, string, false or null, got ${JSON.stringify(t)})}for(const t of n)if(i.isArray(t))for(const e of t)o(e);else o(t);return s};function o(t){const e=t.parentNode;null!=e&&e.removeChild(t)}function l(t,…e){const n=t.firstChild;for(const i of e)t.insertBefore(i,n)}function r(t,e){const n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector).call(t,e)}function c(t){return parseFloat(t)||0}function a(t){const e=getComputedStyle(t);return{border:{top:c(e.borderTopWidth),bottom:c(e.borderBottomWidth),left:c(e.borderLeftWidth),right:c(e.borderRightWidth)},margin:{top:c(e.marginTop),bottom:c(e.marginBottom),left:c(e.marginLeft),right:c(e.marginRight)},padding:{top:c(e.paddingTop),bottom:c(e.paddingBottom),left:c(e.paddingLeft),right:c(e.paddingRight)}}}function h(t){const e=t.getBoundingClientRect();return{width:Math.ceil(e.width),height:Math.ceil(e.height)}}n.createElement=function(t,e,…n){return s(t)(e,…n)},n.div=s("div"),n.span=s("span"),n.canvas=s("canvas"),n.link=s("link"),n.style=s("style"),n.a=s("a"),n.p=s("p"),n.i=s("i"),n.pre=s("pre"),n.button=s("button"),n.label=s("label"),n.input=s("input"),n.select=s("select"),n.option=s("option"),n.optgroup=s("optgroup"),n.textarea=s("textarea"),n.nbsp=function(){return document.createTextNode(" ")},n.append=function(t,…e){for(const n of e)t.appendChild(n)},n.remove=o,n.removeElement=o,n.replaceWith=function(t,e){const n=t.parentNode;null!=n&&n.replaceChild(e,t)},n.prepend=l,n.empty=function(t){let e;for(;e=t.firstChild;)t.removeChild(e)},n.display=function(t){t.style.display=""},n.undisplay=function(t){t.style.display="none"},n.show=function(t){t.style.visibility=""},n.hide=function(t){t.style.visibility="hidden"},n.offset=function(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset-document.documentElement.clientTop,left:e.left+window.pageXOffset-document.documentElement.clientLeft}},n.matches=r,n.parent=function(t,e){let n=t;for(;n=n.parentElement;)if(r(n,e))return n;return null},n.extents=a,n.size=h,n.scroll_size=function(t){return{width:Math.ceil(t.scrollWidth),height:Math.ceil(t.scrollHeight)}},n.outer_size=function(t){const{margin:{left:e,right:n,top:i,bottom:s}}=a(t),{width:o,height:l}=h(t);return{width:Math.ceil(o+e+n),height:Math.ceil(l+i+s)}},n.content_size=function(t){const{left:e,top:n}=t.getBoundingClientRect(),{padding:i}=a(t);let s=0,o=0;for(const l of t.children){const t=l.getBoundingClientRect();s=Math.max(s,Math.ceil(t.left-e-i.left+t.width)),o=Math.max(o,Math.ceil(t.top-n-i.top+t.height))}return{width:s,height:o}},n.position=function(t,e,n){const{style:i}=t;if(i.left=`${e.x}px`,i.top=`${e.y}px`,i.width=`${e.width}px`,i.height=`${e.height}px`,null==n)i.margin="";else{const{top:t,right:e,bottom:s,left:o}=n;i.margin=`${t}px ${e}px ${s}px ${o}px`}},n.children=function(t){return Array.from(t.children)};class d{constructor(t){this.el=t,this.classList=t.classList}get values(){const t=[];for(let e=0;e<this.classList.length;e++){const n=this.classList.item(e);null!=n&&t.push(n)}return t}has(t){return this.classList.contains(t)}add(…t){for(const e of t)this.classList.add(e);return this}remove(…t){for(const e of t)this.classList.remove(e);return this}clear(){for(const t of this.values)"bk"!=t&&this.classList.remove(t);return this}toggle(t,e){return(null!=e?e:!this.has(t))?this.add(t):this.remove(t),this}}var p;function u(t,e,n){const{width:i,height:s,position:o,display:l}=t.style;t.style.position="absolute",t.style.display="",t.style.width=null!=e.width&&e.width!=1/0?`${e.width}px`:"auto",t.style.height=null!=e.height&&e.height!=1/0?`${e.height}px`:"auto";try{return n()}finally{t.style.position=o,t.style.display=l,t.style.width=i,t.style.height=s}}n.ClassList=d,d.__name__="ClassList",n.classes=function(t){return new d(t)},(p=n.Keys||(n.Keys={}))[p.Backspace=8]="Backspace",p[p.Tab=9]="Tab",p[p.Enter=13]="Enter",p[p.Esc=27]="Esc",p[p.PageUp=33]="PageUp",p[p.PageDown=34]="PageDown",p[p.Left=37]="Left",p[p.Up=38]="Up",p[p.Right=39]="Right",p[p.Down=40]="Down",p[p.Delete=46]="Delete",n.undisplayed=function(t,e){const{display:n}=t.style;t.style.display="none";try{return e()}finally{t.style.display=n}},n.unsized=function(t,e){return u(t,{},e)},n.sized=u;class f{constructor(){this.style=n.style({type:"text/css"}),l(document.head,this.style)}append(t){this.style.appendChild(document.createTextNode(t))}}n.StyleSheet=f,f.__name__="StyleSheet",n.styles=new f},n function _(n,o,e){Object.defineProperty(e,"__esModule",{value:!0}),n(1).__importStar(n(66)).styles.append(".bk-root {\n position: relative;\n width: auto;\n height: auto;\n z-index: 0;\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n}\n.bk-root .bk,\n.bk-root .bk:before,\n.bk-root .bk:after {\n box-sizing: inherit;\n margin: 0;\n border: 0;\n padding: 0;\n background-image: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.42857143;\n}\n.bk-root pre.bk {\n font-family: Courier, monospace;\n}\n"),e.bk_root="bk-root"},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1).__importStar(e(18)),l=e(21);function c(e,t,a){e.moveTo(0,a+.5),e.lineTo(t,a+.5),e.stroke()}function i(e,t,a){e.moveTo(a+.5,0),e.lineTo(a+.5,t),e.stroke()}function h(e,t){e.moveTo(0,t),e.lineTo(t,0),e.stroke(),e.moveTo(0,0),e.lineTo(t,t),e.stroke()}function o(e,t,a,s){const l=a,o=l/2,n=o/2,r=function(e){const t=document.createElement("canvas");return t.width=e,t.height=e,t}(a),_=r.getContext("2d");switch(_.strokeStyle=t,_.lineCap="square",_.fillStyle=t,_.lineWidth=s,e){case" ":case"blank":break;case".":case"dot":_.arc(o,o,o/2,0,2*Math.PI,!0),_.fill();break;case"o":case"ring":_.arc(o,o,o/2,0,2*Math.PI,!0),_.stroke();break;case"-":case"horizontal_line":c(_,l,o);break;case"|\":case\"vertical_line\":i(_,l,o);break;case\"+\":case\"cross\":c(_,l,o),i(_,l,o);break;case'\"':case\"horizontal_dash\":c(_,o,o);break;case\":\":case\"vertical_dash\":i(_,o,o);break;case\"@\":case\"spiral\":const e=l/30;_.moveTo(o,o);for(let t=0;t<360;t++){const a=.1*t,s=o+e*a*Math.cos(a),l=o+e*a*Math.sin(a);_.lineTo(s,l)}_.stroke();break;case\"/\":case\"right_diagonal_line\":_.moveTo(.5-n,l),_.lineTo(n+.5,0),_.stroke(),_.moveTo(n+.5,l),_.lineTo(3*n+.5,0),_.stroke(),_.moveTo(3*n+.5,l),_.lineTo(5*n+.5,0),_.stroke(),_.stroke();break;case\"\\\\\":case\"left_diagonal_line\":_.moveTo(n+.5,l),_.lineTo(.5-n,0),_.stroke(),_.moveTo(3*n+.5,l),_.lineTo(n+.5,0),_.stroke(),_.moveTo(5*n+.5,l),_.lineTo(3*n+.5,0),_.stroke(),_.stroke();break;case\"x\":case\"diagonal_cross\":h(_,l);break;case\",\":case\"right_diagonal_dash\":_.moveTo(n+.5,3*n+.5),_.lineTo(3*n+.5,n+.5),_.stroke();break;case\"`\":case\"left_diagonal_dash\":_.moveTo(n+.5,n+.5),_.lineTo(3*n+.5,3*n+.5),_.stroke();break;case\"v\":case\"horizontal_wave\":_.moveTo(0,n),_.lineTo(o,3*n),_.lineTo(l,n),_.stroke();break;case\">\":case\"vertical_wave\":_.moveTo(n,0),_.lineTo(3*n,o),_.lineTo(n,l),_.stroke();break;case\"*\":case\"criss_cross\":h(_,l),c(_,l,o),i(_,l,o)}return r}class n{constructor(e,t=\"\"){this.obj=e,this.prefix=t,this.cache={};for(const a of this.attrs)this[a]=e.properties[t+a]}warm_cache(e){for(const t of this.attrs){const a=this.obj.properties[this.prefix+t];if(void 0!==a.spec.value)this.cache[t]=a.spec.value;else{if(null==e)throw new Error(\"source is required with a vectorized visual property\");this.cache[t+\"_array\"]=a.array(e)}}}cache_select(e,t){const a=this.obj.properties[this.prefix+e];let s;return void 0!==a.spec.value?this.cache[e]=s=a.spec.value:this.cache[e]=s=this.cache[e+\"_array\"][t],s}set_vectorize(e,t){null!=this.all_indices?this._set_vectorize(e,this.all_indices[t]):this._set_vectorize(e,t)}}a.ContextProperties=n,n.__name__=\"ContextProperties\";class r extends n{set_value(e){e.strokeStyle=this.line_color.value(),e.globalAlpha=this.line_alpha.value(),e.lineWidth=this.line_width.value(),e.lineJoin=this.line_join.value(),e.lineCap=this.line_cap.value(),e.setLineDash(this.line_dash.value()),e.setLineDashOffset(this.line_dash_offset.value())}get doit(){return!(null===this.line_color.spec.value||0==this.line_alpha.spec.value||0==this.line_width.spec.value)}_set_vectorize(e,t){this.cache_select(\"line_color\",t),e.strokeStyle!==this.cache.line_color&&(e.strokeStyle=this.cache.line_color),this.cache_select(\"line_alpha\",t),e.globalAlpha!==this.cache.line_alpha&&(e.globalAlpha=this.cache.line_alpha),this.cache_select(\"line_width\",t),e.lineWidth!==this.cache.line_width&&(e.lineWidth=this.cache.line_width),this.cache_select(\"line_join\",t),e.lineJoin!==this.cache.line_join&&(e.lineJoin=this.cache.line_join),this.cache_select(\"line_cap\",t),e.lineCap!==this.cache.line_cap&&(e.lineCap=this.cache.line_cap),this.cache_select(\"line_dash\",t),e.getLineDash()!==this.cache.line_dash&&e.setLineDash(this.cache.line_dash),this.cache_select(\"line_dash_offset\",t),e.getLineDashOffset()!==this.cache.line_dash_offset&&e.setLineDashOffset(this.cache.line_dash_offset)}color_value(){const[e,t,a,s]=l.color2rgba(this.line_color.value(),this.line_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Line=r,r.__name__=\"Line\",r.prototype.attrs=Object.keys(s.line());class _ extends n{set_value(e){e.fillStyle=this.fill_color.value(),e.globalAlpha=this.fill_alpha.value()}get doit(){return!(null===this.fill_color.spec.value||0==this.fill_alpha.spec.value)}_set_vectorize(e,t){this.cache_select(\"fill_color\",t),e.fillStyle!==this.cache.fill_color&&(e.fillStyle=this.cache.fill_color),this.cache_select(\"fill_alpha\",t),e.globalAlpha!==this.cache.fill_alpha&&(e.globalAlpha=this.cache.fill_alpha)}color_value(){const[e,t,a,s]=l.color2rgba(this.fill_color.value(),this.fill_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Fill=_,_.__name__=\"Fill\",_.prototype.attrs=Object.keys(s.fill());class p extends n{cache_select(e,t){let a;if(\"pattern\"==e){this.cache_select(\"hatch_color\",t),this.cache_select(\"hatch_scale\",t),this.cache_select(\"hatch_pattern\",t),this.cache_select(\"hatch_weight\",t);const{hatch_color:e,hatch_scale:a,hatch_pattern:s,hatch_weight:l,hatch_extra:c}=this.cache;if(null!=c&&c.hasOwnProperty(s)){const t=c[s];this.cache.pattern=t.get_pattern(e,a,l)}else this.cache.pattern=t=>{const c=o(s,e,a,l);return t.createPattern(c,\"repeat\")}}else a=super.cache_select(e,t);return a}_try_defer(e){const{hatch_pattern:t,hatch_extra:a}=this.cache;if(null!=a&&a.hasOwnProperty(t)){a[t].onload(e)}}get doit(){return!(null===this.hatch_color.spec.value||0==this.hatch_alpha.spec.value||" "==this.hatch_pattern.spec.value||"blank"==this.hatch_pattern.spec.value||null===this.hatch_pattern.spec.value)}doit2(e,t,a,s){if(!this.doit)return;this.cache_select("pattern",t),null==this.cache.pattern(e)?this._try_defer(s):(this.set_vectorize(e,t),a())}_set_vectorize(e,t){this.cache_select("pattern",t),e.fillStyle=this.cache.pattern(e),this.cache_select("hatch_alpha",t),e.globalAlpha!==this.cache.hatch_alpha&&(e.globalAlpha=this.cache.hatch_alpha)}color_value(){const[e,t,a,s]=l.color2rgba(this.hatch_color.value(),this.hatch_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Hatch=p,p.__name__="Hatch",p.prototype.attrs=Object.keys(s.hatch());class u extends n{cache_select(e,t){let a;if("font"==e){super.cache_select("text_font_style",t),super.cache_select("text_font_size",t),super.cache_select("text_font",t);const{text_font_style:e,text_font_size:s,text_font:l}=this.cache;this.cache.font=a=`${e} ${s} ${l}`}else a=super.cache_select(e,t);return a}font_value(){const e=this.text_font.value(),t=this.text_font_size.value();return this.text_font_style.value()+" "+t+" "+e}color_value(){const[e,t,a,s]=l.color2rgba(this.text_color.value(),this.text_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}set_value(e){e.font=this.font_value(),e.fillStyle=this.text_color.value(),e.globalAlpha=this.text_alpha.value(),e.textAlign=this.text_align.value(),e.textBaseline=this.text_baseline.value()}get doit(){return!(null===this.text_color.spec.value||0==this.text_alpha.spec.value)}_set_vectorize(e,t){this.cache_select("font",t),e.font!==this.cache.font&&(e.font=this.cache.font),this.cache_select("text_color",t),e.fillStyle!==this.cache.text_color&&(e.fillStyle=this.cache.text_color),this.cache_select("text_alpha",t),e.globalAlpha!==this.cache.text_alpha&&(e.globalAlpha=this.cache.text_alpha),this.cache_select("text_align",t),e.textAlign!==this.cache.text_align&&(e.textAlign=this.cache.text_align),this.cache_select("text_baseline",t),e.textBaseline!==this.cache.text_baseline&&(e.textBaseline=this.cache.text_baseline)}}a.Text=u,u.__name__="Text",u.prototype.attrs=Object.keys(s.text());class f{constructor(e){for(const t of e.mixins){const[a,s=""]=t.split(":");let l;switch(a){case"line":l=r;break;case"fill":l=_;break;case"hatch":l=p;break;case"text":l=u;break;default:throw new Error(unknown visual: ${a})}this[s+a]=new l(e,s)}}warm_cache(e){for(const t in this)if(this.hasOwnProperty(t)){const a=this[t];a instanceof n&&a.warm_cache(e)}}set_all_indices(e){for(const t in this)if(this.hasOwnProperty(t)){const a=this[t];a instanceof n&&(a.all_indices=e)}}}a.Visuals=f,f.__name__="Visuals"},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),c=e(13),r=n.__importStar(e(19)),a=e(8),i=e(24),o=e(70);class _ extends c.HasProps{constructor(e){super(e)}static init_Model(){this.define({tags:[r.Array,[]],name:[r.String],js_property_callbacks:[r.Any,{}],js_event_callbacks:[r.Any,{}],subscribed_events:[r.Array,[]]})}connect_signals(){super.connect_signals(),this._update_property_callbacks(),this.connect(this.properties.js_property_callbacks.change,()=>this._update_property_callbacks()),this.connect(this.properties.js_event_callbacks.change,()=>this._update_event_callbacks()),this.connect(this.properties.subscribed_events.change,()=>this._update_event_callbacks())}_process_event(e){for(const t of this.js_event_callbacks[e.event_name]||[])t.execute(e);null!=this.document&&this.subscribed_events.some(t=>t==e.event_name)&&this.document.event_manager.send_event(e)}trigger_event(e){null!=this.document&&(e.origin=this,this.document.event_manager.trigger(e))}_update_event_callbacks(){null!=this.document?this.document.event_manager.subscribed_models.add(this.id):o.logger.warn("WARNING: Document not defined for updating event callbacks")}_update_property_callbacks(){const e=e=>{const[t,s=null]=e.split(":");return null!=s?this.properties[s][t]:this[t]};for(const t in this._js_callbacks){const s=this._js_callbacks[t],n=e(t);for(const e of s)this.disconnect(n,e)}this._js_callbacks={};for(const t in this.js_property_callbacks){const s=this.js_property_callbacks[t].map(e=>()=>e.execute(this));this._js_callbacks[t]=s;const n=e(t);for(const e of s)this.connect(n,e)}}_doc_attached(){i.isEmpty(this.js_event_callbacks)&&i.isEmpty(this.subscribed_events)||this._update_event_callbacks()}select(e){if(a.isString(e))return this.references().filter(t=>t instanceof _&&t.name===e);if(e.prototype instanceof c.HasProps)return this.references().filter(t=>t instanceof e);throw new Error("invalid selector")}select_one(e){const t=this.select(e);switch(t.length){case 0:return null;case 1:return t[0];default:throw new Error("found more than one object matching given selector")}}}s.Model=_,_.__name__="Model",_.init_Model()},n function _(e,l,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(8),t={};class s{constructor(e,l){this.name=e,this.level=l}}o.LogLevel=s,s.__name__="LogLevel";class g{constructor(e,l=g.INFO){this._name=e,this.set_level(l)}static get levels(){return Object.keys(g.log_levels)}static get(e,l=g.INFO){if(e.length>0){let o=t[e];return null==o&&(t[e]=o=new g(e,l)),o}throw new TypeError("Logger.get() expects a non-empty string name and an optional log-level")}get level(){return this.get_level()}get_level(){return this._log_level}set_level(e){if(e instanceof s)this._log_level=e;else{if(!n.isString(e)||null==g.log_levels[e])throw new Error("Logger.set_level() expects a log-level object or a string name of a log-level");this._log_level=g.log_levels[e]}const l=`[${this._name}]`;for(const e in g.log_levels){g.log_levels[e].level<this._log_level.level||this._log_level.level===g.OFF.level?this[e]=function(){}:this[e]=r(e,l)}}trace(…e){}debug(…e){}info(…e){}warn(…e){}error(…e){}}function r(e,l){return null!=console[e]?console[e].bind(console,l):null!=console.log?console.log.bind(console,l):function(){}}function i(e){const l=o.logger.level;return n.isString(e)&&null==g.log_levels[e]?(console.log([bokeh] unrecognized logging level ‘${e}’ passed to Bokeh.set_log_level(), ignoring),console.log([bokeh] valid log levels are: ${g.levels.join(", ")})):(console.log([bokeh] setting log level to: ‘${n.isString(e)?e:e.level}’),o.logger.set_level(e)),l}o.Logger=g,g.__name__="Logger",g.TRACE=new s("trace",0),g.DEBUG=new s("debug",1),g.INFO=new s("info",2),g.WARN=new s("warn",6),g.ERROR=new s("error",7),g.FATAL=new s("fatal",8),g.OFF=new s("off",9),g.log_levels={trace:g.TRACE,debug:g.DEBUG,info:g.INFO,warn:g.WARN,error:g.ERROR,fatal:g.FATAL,off:g.OFF},o.logger=g.get("bokeh"),o.set_log_level=i,o.with_log_level=function(e,l){const o=i(e);try{l()}finally{i(o)}}},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),a=t(29),n=t(72),r=t(73),o=i.__importStar(t(19)),_=t(10);class l extends a.AnnotationView{initialize(){super.initialize(),null==this.model.source&&(this.model.source=new r.ColumnDataSource),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.set_data(this.model.source)),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source))}set_data(t){super.set_data(t),this.visuals.warm_cache(t),this.plot_view.request_render()}_map_data(){const{frame:t}=this.plot_view;let e,s,i,a;return"data"==this.model.start_units?(e=t.xscales[this.model.x_range_name].v_compute(this._x_start),s=t.yscales[this.model.y_range_name].v_compute(this._y_start)):(e=t.xview.v_compute(this._x_start),s=t.yview.v_compute(this._y_start)),"data"==this.model.end_units?(i=t.xscales[this.model.x_range_name].v_compute(this._x_end),a=t.yscales[this.model.y_range_name].v_compute(this._y_end)):(i=t.xview.v_compute(this._x_end),a=t.yview.v_compute(this._y_end)),[[e,s],[i,a]]}render(){if(!this.model.visible)return;const{ctx:t}=this.plot_view.canvas_view;t.save();const[e,s]=this._map_data();null!=this.model.end&&this._arrow_head(t,"render",this.model.end,e,s),null!=this.model.start&&this._arrow_head(t,"render",this.model.start,s,e),t.beginPath();const{x:i,y:a,width:n,height:r}=this.plot_view.frame.bbox;t.rect(i,a,n,r),null!=this.model.end&&this._arrow_head(t,"clip",this.model.end,e,s),null!=this.model.start&&this._arrow_head(t,"clip",this.model.start,s,e),t.closePath(),t.clip(),this._arrow_body(t,e,s),t.restore()}_arrow_head(t,e,s,i,a){for(let n=0,r=this._x_start.length;n<r;n++){const r=Math.PI/2+_.atan2([i[0][n],i[1][n]],[a[0][n],a[1][n]]);t.save(),t.translate(a[0][n],a[1][n]),t.rotate(r),"render"==e?s.render(t,n):"clip"==e&&s.clip(t,n),t.restore()}}_arrow_body(t,e,s){if(this.visuals.line.doit)for(let i=0,a=this._x_start.length;i<a;i++)this.visuals.line.set_vectorize(t,i),t.beginPath(),t.moveTo(e[0][i],e[1][i]),t.lineTo(s[0][i],s[1][i]),t.stroke()}}s.ArrowView=l,l.__name__="ArrowView";class h extends a.Annotation{constructor(t){super(t)}static init_Arrow(){this.prototype.default_view=l,this.mixins(["line"]),this.define({x_start:[o.NumberSpec],y_start:[o.NumberSpec],start_units:[o.SpatialUnits,"data"],start:[o.Instance,null],x_end:[o.NumberSpec],y_end:[o.NumberSpec],end_units:[o.SpatialUnits,"data"],end:[o.Instance,()=>new n.OpenHead({})],source:[o.Instance],x_range_name:[o.String,"default"],y_range_name:[o.String,"default"]})}}s.Arrow=h,h.__name__="Arrow",h.init_Arrow()},n function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),l=i(29),n=i(68),o=t.__importStar(i(19));class h extends l.Annotation{constructor(i){super(i)}static init_ArrowHead(){this.define({size:[o.Number,25]})}initialize(){super.initialize(),this.visuals=new n.Visuals(this)}}s.ArrowHead=h,h.__name__="ArrowHead",h.init_ArrowHead();class a extends h{constructor(i){super(i)}static init_OpenHead(){this.mixins(["line"])}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(0,0),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.stroke())}}s.OpenHead=a,a.__name__="OpenHead",a.init_OpenHead();class r extends h{constructor(i){super(i)}static init_NormalHead(){this.mixins(["line","fill"]),this.override({fill_color:"black"})}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(i,e),this._normal(i,e),i.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),this._normal(i,e),i.stroke())}_normal(i,e){i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.closePath()}}s.NormalHead=r,r.__name__="NormalHead",r.init_NormalHead();class z extends h{constructor(i){super(i)}static init_VeeHead(){this.mixins(["line","fill"]),this.override({fill_color:"black"})}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(0,.5*this.size),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(i,e),this._vee(i,e),i.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),this._vee(i,e),i.stroke())}_vee(i,e){i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.lineTo(0,.5*this.size),i.closePath()}}s.VeeHead=z,z.__name__="VeeHead",z.init_VeeHead();class _ extends h{constructor(i){super(i)}static init_TeeHead(){this.mixins(["line"])}render(i,e){this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),i.beginPath(),i.moveTo(.5*this.size,0),i.lineTo(-.5*this.size,0),i.stroke())}clip(i,e){}}s.TeeHead=_,_.__name__="TeeHead",_.init_TeeHead()},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const s=t(1),a=t(74),o=t(13),i=s.__importStar(t(19)),r=t(15),l=t(100),u=t(8),c=s.__importStar(t(102)),_=t(24),h=t(103);function d(t,e,n){if(u.isArray(t)){const s=t.concat(e);return null!=n&&s.length>n?s.slice(-n):s}if(u.isTypedArray(t)){const s=t.length+e.length;if(null!=n&&s>n){const a=s-n,o=t.length;let i;t.length<n?(i=new t.constructor(n),i.set(t,0)):i=t;for(let t=a,e=o;t<e;t++)i[t-a]=i[t];for(let t=0,n=e.length;t<n;t++)i[t+(o-a)]=e[t];return i}{const n=new t.constructor(e);return c.concat(t,n)}}throw new Error("unsupported array types")}function m(t,e){let n,s,a;return u.isNumber(t)?(n=t,a=t+1,s=1):(n=null!=t.start?t.start:0,a=null!=t.stop?t.stop:e,s=null!=t.step?t.step:1),[n,a,s]}function f(t,e,n){const s=new r.Set;let a=!1;for(const[o,i]of e){let e,r,l,c;if(u.isArray(o)){const[a]=o;s.add(a),r=n[a],e=t[a],c=i,2===o.length?(r=[1,r[0]],l=[o[0],0,o[1]]):l=o}else u.isNumber(o)?(c=[i],s.add(o)):(c=i,a=!0),l=[0,0,o],r=[1,t.length],e=t;let _=0;const[h,d,f]=m(l[1],r[0]),[p,g,y]=m(l[2],r[1]);for(let t=h;t<d;t+=f)for(let n=p;n<g;n+=y)a&&s.add(n),e[t*r[1]+n]=c[_],_++}return s}n.stream_to_column=d,n.slice=m,n.patch_to_column=f;class p extends a.ColumnarDataSource{constructor(t){super(t)}static init_ColumnDataSource(){this.define({data:[i.Any,{}]})}initialize(){super.initialize(),[this.data,this._shapes]=l.decode_column_data(this.data)}attributes_as_json(t=!0,e=p._value_to_json){const n={},s=this.serializable_attributes();for(const e of _.keys(s)){let a=s[e];"data"===e&&(a=l.encode_column_data(a,this._shapes)),(t||e in this._set_after_defaults)&&(n[e]=a)}return e("attributes",n,this)}static _value_to_json(t,e,n){return u.isPlainObject(e)&&"data"===t?l.encode_column_data(e,n._shapes):o.HasProps._value_to_json(t,e,n)}stream(t,e,n){const{data:s}=this;for(const n in t)s[n]=d(s[n],t[n],e);if(this.setv({data:s},{silent:!0}),this.streaming.emit(),null!=this.document){const s=new h.ColumnsStreamedEvent(this.document,this.ref(),t,e);this.document._notify_change(this,"data",null,null,{setter_id:n,hint:s})}}patch(t,e){const{data:n}=this;let s=new r.Set;for(const e in t){const a=t[e];s=s.union(f(n[e],a,this._shapes[e]))}if(this.setv({data:n},{silent:!0}),this.patching.emit(s.values),null!=this.document){const n=new h.ColumnsPatchedEvent(this.document,this.ref(),t);this.document._notify_change(this,"data",null,null,{setter_id:e,hint:n})}}}n.ColumnDataSource=p,p.__name__="ColumnDataSource",p.init_ColumnDataSource()},n function _(t,n,e){Object.defineProperty(e,"__esModule",{value:!0});const a=t(1),s=t(75),i=t(14),r=t(70),c=t(77),l=a.__importStar(t(19)),o=t(8),u=t(9),h=t(24),g=t(76),_=t(99);class d extends s.DataSource{constructor(t){super(t)}get_array(t){let n=this.data[t];return null==n?this.data[t]=n=[]:o.isArray(n)||(this.data[t]=n=Array.from(n)),n}static init_ColumnarDataSource(){this.define({selection_policy:[l.Instance,()=>new _.UnionRenderers]}),this.internal({selection_manager:[l.Instance,t=>new c.SelectionManager({source:t})],inspected:[l.Instance,()=>new g.Selection],_shapes:[l.Any,{}]})}initialize(){super.initialize(),this._select=new i.Signal0(this,"select"),this.inspect=new i.Signal(this,"inspect"),this.streaming=new i.Signal0(this,"streaming"),this.patching=new i.Signal(this,"patching")}get_column(t){const n=this.data[t];return null!=n?n:null}columns(){return h.keys(this.data)}get_length(t=!0){const n=u.uniq(h.values(this.data).map(t=>t.length));switch(n.length){case 0:return null;case 1:return n[0];default:{const e="data source has columns of inconsistent lengths";if(t)return r.logger.warn(e),n.sort()[0];throw new Error(e)}}}get_indices(){const t=this.get_length();return u.range(0,null!=t?t:1)}clear(){const t={};for(const n of this.columns())t[n]=new this.data[n].constructor(0);this.data=t}}e.ColumnarDataSource=d,d.__name__="ColumnarDataSource",d.init_ColumnarDataSource()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const c=e(1),n=e(69),o=e(76),i=c.__importStar(e(19));class r extends n.Model{constructor(e){super(e)}static init_DataSource(){this.define({selected:[i.Instance,()=>new o.Selection]})}}a.DataSource=r,r.__name__="DataSource",r.init_DataSource()},n function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),n=i(69),l=t.__importStar(i(19)),_=i(9),h=i(24);class c extends n.Model{constructor(i){super(i)}static init_Selection(){this.define({indices:[l.Array,[]],line_indices:[l.Array,[]],multiline_indices:[l.Any,{}]}),this.internal({final:[l.Boolean],selected_glyphs:[l.Array,[]],get_view:[l.Any],image_indices:[l.Array,[]]})}initialize(){super.initialize(),this.get_view=()=>null}get selected_glyph(){return this.selected_glyphs.length>0?this.selected_glyphs[0]:null}add_to_selected_glyphs(i){this.selected_glyphs.push(i)}update(i,e,s){this.final=e,s?this.update_through_union(i):(this.indices=i.indices,this.line_indices=i.line_indices,this.selected_glyphs=i.selected_glyphs,this.get_view=i.get_view,this.multiline_indices=i.multiline_indices,this.image_indices=i.image_indices)}clear(){this.final=!0,this.indices=[],this.line_indices=[],this.multiline_indices={},this.get_view=()=>null,this.selected_glyphs=[]}is_empty(){return 0==this.indices.length&&0==this.line_indices.length&&0==this.image_indices.length}update_through_union(i){this.indices=_.union(i.indices,this.indices),this.selected_glyphs=_.union(i.selected_glyphs,this.selected_glyphs),this.line_indices=_.union(i.line_indices,this.line_indices),this.get_view()||(this.get_view=i.get_view),this.multiline_indices=h.merge(i.multiline_indices,this.multiline_indices)}update_through_intersection(i){this.indices=_.intersection(i.indices,this.indices),this.selected_glyphs=_.union(i.selected_glyphs,this.selected_glyphs),this.line_indices=_.union(i.line_indices,this.line_indices),this.get_view()||(this.get_view=i.get_view),this.multiline_indices=h.merge(i.multiline_indices,this.multiline_indices)}}s.Selection=c,c.__name__="Selection",c.init_Selection()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(13),o=e(76),c=e(78),r=e(97),l=s.__importStar(e(19));class _ extends n.HasProps{constructor(e){super(e),this.inspectors={}}static init_SelectionManager(){this.internal({source:[l.Any]})}select(e,t,i,s=!1){const n=[],o=[];for(const t of e)t instanceof c.GlyphRendererView?n.push(t):t instanceof r.GraphRendererView&&o.push(t);let l=!1;for(const e of o){const n=e.model.selection_policy.hit_test(t,e);l=l||e.model.selection_policy.do_selection(n,e.model,i,s)}if(n.length>0){const e=this.source.selection_policy.hit_test(t,n);l=l||this.source.selection_policy.do_selection(e,this.source,i,s)}return l}inspect(e,t){let i=!1;if(e instanceof c.GlyphRendererView){const s=e.hit_test(t);if(null!=s){i=!s.is_empty();const n=this.get_or_create_inspector(e.model);n.update(s,!0,!1),this.source.setv({inspected:n},{silent:!0}),this.source.inspect.emit([e,{geometry:t}])}}else if(e instanceof r.GraphRendererView){const s=e.model.inspection_policy.hit_test(t,e);i=i||e.model.inspection_policy.do_inspection(s,t,e,!1,!1)}return i}clear(e){this.source.selected.clear(),null!=e&&this.get_or_create_inspector(e.model).clear()}get_or_create_inspector(e){return null==this.inspectors[e.id]&&(this.inspectors[e.id]=new o.Selection),this.inspectors[e.id]}}i.SelectionManager=_,_.__name__="SelectionManager",_.init_SelectionManager()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=e(79),n=e(80),h=e(91),o=e(92),a=e(94),r=e(95),_=e(70),d=s.__importStar(e(19)),c=e(12),g=e(9),p=e(24),y=e(96),u=e(88),m={fill:{},line:{}},v={fill:{fill_alpha:.3,fill_color:"grey"},line:{line_alpha:.3,line_color:"grey"}},f={fill:{fill_alpha:.2},line:{}};class w extends l.DataRendererView{async lazy_initialize(){await super.lazy_initialize();const e=this.model.glyph,t=g.includes(e.mixins,"fill"),i=g.includes(e.mixins,"line"),s=p.clone(e.attributes);function l(l){const n=p.clone(s);return t&&p.extend(n,l.fill),i&&p.extend(n,l.line),new e.constructor(n)}delete s.id,this.glyph=await this.build_glyph_view(e);let{selection_glyph:n}=this.model;null==n?n=l({fill:{},line:{}}):"auto"===n&&(n=l(m)),this.selection_glyph=await this.build_glyph_view(n);let{nonselection_glyph:h}=this.model;null==h?h=l({fill:{},line:{}}):"auto"===h&&(h=l(f)),this.nonselection_glyph=await this.build_glyph_view(h);const{hover_glyph:o}=this.model;null!=o&&(this.hover_glyph=await this.build_glyph_view(o));const{muted_glyph:a}=this.model;null!=a&&(this.muted_glyph=await this.build_glyph_view(a));const r=l(v);this.decimated_glyph=await this.build_glyph_view(r),this.xscale=this.plot_view.frame.xscales[this.model.x_range_name],this.yscale=this.plot_view.frame.yscales[this.model.y_range_name],this.set_data(!1)}async build_glyph_view(e){return y.build_view(e,{parent:this})}remove(){var e,t;this.glyph.remove(),this.selection_glyph.remove(),this.nonselection_glyph.remove(),null===(e=this.hover_glyph)||void 0===e||e.remove(),null===(t=this.muted_glyph)||void 0===t||t.remove(),this.decimated_glyph.remove(),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render()),this.connect(this.model.glyph.change,()=>this.set_data()),this.connect(this.model.data_source.change,()=>this.set_data()),this.connect(this.model.data_source.streaming,()=>this.set_data()),this.connect(this.model.data_source.patching,e=>this.set_data(!0,e)),this.connect(this.model.data_source.selected.change,()=>this.request_render()),this.connect(this.model.data_source._select,()=>this.request_render()),null!=this.hover_glyph&&this.connect(this.model.data_source.inspect,()=>this.request_render()),this.connect(this.model.properties.view.change,()=>this.set_data()),this.connect(this.model.view.change,()=>this.set_data()),this.connect(this.model.properties.visible.change,()=>this.plot_view.update_dataranges());const{x_ranges:e,y_ranges:t}=this.plot_view.frame;for(const t in e){const i=e[t];i instanceof u.FactorRange&&this.connect(i.change,()=>this.set_data())}for(const e in t){const i=t[e];i instanceof u.FactorRange&&this.connect(i.change,()=>this.set_data())}this.connect(this.model.glyph.transformchange,()=>this.set_data())}have_selection_glyphs(){return null!=this.selection_glyph&&null!=this.nonselection_glyph}set_data(e=!0,t=null){const i=Date.now(),s=this.model.data_source;this.all_indices=this.model.view.indices,this.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0}),this.glyph.set_data(s,this.all_indices,t),this.glyph.set_visuals(s),this.decimated_glyph.set_visuals(s),this.have_selection_glyphs()&&(this.selection_glyph.set_visuals(s),this.nonselection_glyph.set_visuals(s)),null!=this.hover_glyph&&this.hover_glyph.set_visuals(s),null!=this.muted_glyph&&this.muted_glyph.set_visuals(s);const{lod_factor:l}=this.plot_model;this.decimated=[];for(let e=0,t=Math.floor(this.all_indices.length/l);e<t;e++)this.decimated.push(e*l);const n=Date.now()-i;_.logger.debug(${this.glyph.model.type} GlyphRenderer (${this.model.id}): set_data finished in ${n}ms),this.set_data_timestamp=Date.now(),e&&this.request_render()}get has_webgl(){return this.glyph.has_webgl}render(){if(!this.model.visible)return;const e=Date.now(),t=this.has_webgl;this.glyph.map_data();const i=Date.now()-e,s=Date.now();let l=this.glyph.mask_data(this.all_indices);l.length===this.all_indices.length&&(l=g.range(0,this.all_indices.length));const r=Date.now()-s,{ctx:d}=this.plot_view.canvas_view;d.save();const{selected:p}=this.model.data_source;let y;y=!p||p.is_empty()?[]:this.glyph instanceof n.LineView&&p.selected_glyph===this.glyph.model?this.model.view.convert_indices_from_subset(l):p.indices;const{inspected:u}=this.model.data_source,m=new Set((()=>!u||u.is_empty()?[]:u.selected_glyph?this.model.view.convert_indices_from_subset(l):u.indices.length>0?u.indices:c.map(Object.keys(u.multiline_indices),e=>parseInt(e)))()),v=c.filter(l,e=>m.has(this.all_indices[e])),{lod_threshold:f}=this.plot_model;let w,b,x;null!=this.model.document&&this.model.document.interactive_duration()>0&&!t&&null!=f&&this.all_indices.length>f?(l=this.decimated,w=this.decimated_glyph,b=this.decimated_glyph,x=this.selection_glyph):(w=this.model.muted&&null!=this.muted_glyph?this.muted_glyph:this.glyph,b=this.nonselection_glyph,x=this.selection_glyph),null!=this.hover_glyph&&v.length&&(l=g.difference(l,v));let D,R=null;if(y.length&&this.have_selection_glyphs()){const e=Date.now(),t={};for(const e of y)t[e]=!0;const i=new Array,s=new Array;if(this.glyph instanceof n.LineView)for(const e of this.all_indices)null!=t[e]?i.push(e):s.push(e);else for(const e of l)null!=t[this.all_indices[e]]?i.push(e):s.push(e);R=Date.now()-e,D=Date.now(),b.render(d,s,this.glyph),x.render(d,i,this.glyph),null!=this.hover_glyph&&(this.glyph instanceof n.LineView?this.hover_glyph.render(d,this.model.view.convert_indices_from_subset(v),this.glyph):this.hover_glyph.render(d,v,this.glyph))}else if(D=Date.now(),this.glyph instanceof n.LineView)this.hover_glyph&&v.length?this.hover_glyph.render(d,this.model.view.convert_indices_from_subset(v),this.glyph):w.render(d,this.all_indices,this.glyph);else if(this.glyph instanceof h.PatchView||this.glyph instanceof o.HAreaView||this.glyph instanceof a.VAreaView)if(0==u.selected_glyphs.length||null==this.hover_glyph)w.render(d,this.all_indices,this.glyph);else for(const e of u.selected_glyphs)e.id==this.glyph.model.id&&this.hover_glyph.render(d,this.all_indices,this.glyph);else w.render(d,l,this.glyph),this.hover_glyph&&v.length&&this.hover_glyph.render(d,v,this.glyph);const V=Date.now()-D;this.last_dtrender=V;const $=Date.now()-e;_.logger.debug(${this.glyph.model.type} GlyphRenderer (${this.model.id}): render finished in ${$}ms),_.logger.trace(` - map_data finished in : ${i}ms`),_.logger.trace(` - mask_data finished in : ${r}ms`),null!=R&&_.logger.trace(` - selection mask finished in : ${R}ms`),_.logger.trace(` - glyph renders finished in : ${V}ms`),d.restore()}draw_legend(e,t,i,s,l,n,h,o){null==o&&(o=this.model.get_reference_point(n,h)),this.glyph.draw_legend_for_index(e,{x0:t,x1:i,y0:s,y1:l},o)}hit_test(e){if(!this.model.visible)return null;const t=this.glyph.hit_test(e);return null==t?null:this.model.view.convert_selection_from_subset(t)}}i.GlyphRendererView=w,w.__name__="GlyphRendererView";class b extends l.DataRenderer{constructor(e){super(e)}static init_GlyphRenderer(){this.prototype.default_view=w,this.define({data_source:[d.Instance],view:[d.Instance,()=>new r.CDSView],glyph:[d.Instance],hover_glyph:[d.Instance],nonselection_glyph:[d.Any,"auto"],selection_glyph:[d.Any,"auto"],muted_glyph:[d.Instance],muted:[d.Boolean,!1]})}initialize(){super.initialize(),null==this.view.source&&(this.view.source=this.data_source,this.view.compute_indices())}get_reference_point(e,t){let i=0;if(null!=e){const s=this.data_source.get_column(e);if(null!=s){const e=c.indexOf(s,t);-1!=e&&(i=e)}}return i}get_selection_manager(){return this.data_source.selection_manager}}i.GlyphRenderer=b,b.__name__="GlyphRenderer",b.init_GlyphRenderer()},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),a=e(63),_=t.__importStar(e(19));class i extends a.RendererView{}n.DataRendererView=i,i.__name__="DataRendererView";class d extends a.Renderer{constructor(e){super(e)}static init_DataRenderer(){this.define({x_range_name:[_.String,"default"],y_range_name:[_.String,"default"]}),this.override({level:"glyph"})}}n.DataRenderer=d,d.__name__="DataRenderer",d.init_DataRenderer()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(81),_=e(90),l=s.__importStar(e(87));class r extends n.XYGlyphView{_render(e,t,{sx:i,sy:s}){let n=!1,_=null;this.visuals.line.set_value(e);for(const l of t){if(n){if(!isFinite(i[l]+s[l])){e.stroke(),e.beginPath(),n=!1,_=l;continue}null!=_&&l-_>1&&(e.stroke(),n=!1)}n?e.lineTo(i[l],s[l]):(e.beginPath(),e.moveTo(i[l],s[l]),n=!0),_=l}n&&e.stroke()}_hit_point(e){const t=l.create_empty_hit_test_result(),i={x:e.sx,y:e.sy};let s=9999;const n=Math.max(2,this.visuals.line.line_width.value()/2);for(let e=0,_=this.sx.length-1;e<_;e++){const _={x:this.sx[e],y:this.sy[e]},r={x:this.sx[e+1],y:this.sy[e+1]},h=l.dist_to_segment(i,_,r);h<n&&h<s&&(s=h,t.add_to_selected_glyphs(this.model),t.get_view=()=>this,t.line_indices=[e])}return t}_hit_span(e){const{sx:t,sy:i}=e,s=l.create_empty_hit_test_result();let n,_;"v"==e.direction?(n=this.renderer.yscale.invert(i),_=this._y):(n=this.renderer.xscale.invert(t),_=this._x);for(let e=0,t=_.length-1;e<t;e++)(_[e]<=n&&n<=_[e+1]||_[e+1]<=n&&n<=_[e])&&(s.add_to_selected_glyphs(this.model),s.get_view=()=>this,s.line_indices.push(e));return s}get_interpolation_hit(e,t){const[i,s,n,l]=[this._x[e],this._y[e],this._x[e+1],this._y[e+1]];return _.line_interpolation(this.renderer,t,i,s,n,l)}draw_legend_for_index(e,t,i){_.generic_line_legend(this.visuals,e,t,i)}}i.LineView=r,r.__name__="LineView";class h extends n.XYGlyph{constructor(e){super(e)}static init_Line(){this.prototype.default_view=r,this.mixins(["line"])}}i.Line=h,h.__name__="Line",h.init_Line()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(82),n=e(86);class _ extends n.GlyphView{_index_data(){const e=[];for(let t=0,s=this._x.length;t<s;t++){const s=this._x[t],i=this._y[t];!isNaN(s+i)&&isFinite(s+i)&&e.push({x0:s,y0:i,x1:s,y1:i,i:t})}return new i.SpatialIndex(e)}scenterx(e){return this.sx[e]}scentery(e){return this.sy[e]}}s.XYGlyphView=_,_.__name__="XYGlyphView";class h extends n.Glyph{constructor(e){super(e)}static init_XYGlyph(){this.coords([["x","y"]])}}s.XYGlyph=h,h.__name__="XYGlyph",h.init_XYGlyph()},n function _(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=n(1).__importDefault(n(83)),s=n(85);class r{constructor(n){if(this.points=n,this.index=null,n.length>0){this.index=new e.default(n.length);for(const t of n){const{x0:n,y0:i,x1:e,y1:s}=t;this.index.add(n,i,e,s)}this.index.finish()}}_normalize(n){let{x0:t,y0:i,x1:e,y1:s}=n;return t>e&&([t,e]=[e,t]),i>s&&([i,s]=[s,i]),{x0:t,y0:i,x1:e,y1:s}}get bbox(){if(null==this.index)return s.empty();{const{minX:n,minY:t,maxX:i,maxY:e}=this.index;return{x0:n,y0:t,x1:i,y1:e}}}search(n){if(null==this.index)return[];{const{x0:t,y0:i,x1:e,y1:s}=this._normalize(n);return this.index.search(t,i,e,s).map(n=>this.points[n])}}indices(n){return this.search(n).map(({i:n})=>n)}}i.SpatialIndex=r,r.__name__="SpatialIndex"},n function _(t,s,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1).__importDefault(t(84)),h=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class n{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[s,i]=new Uint8Array(t,0,2);if(251!==s)throw new Error("Data does not appear to be in a Flatbush format.");if(i>>4!=3)throw new Error(Got v${i>>4} data when expected v3.);const[e]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new n(o,e,h[15&i],t)}constructor(t,s=16,i=Float64Array,n){if(void 0===t)throw new Error("Missing required argument: numItems.");if(isNaN(t)||t<=0)throw new Error(Unpexpected numItems value: ${t}.);this.numItems=+t,this.nodeSize=Math.min(Math.max(+s,2),65535);let o=t,r=o;this._levelBounds=[4*o];do{o=Math.ceil(o/this.nodeSize),r+=o,this._levelBounds.push(4*r)}while(1!==o);this.ArrayType=i||Float64Array,this.IndexArrayType=r<16384?Uint16Array:Uint32Array;const a=h.indexOf(this.ArrayType),_=4*r*this.ArrayType.BYTES_PER_ELEMENT;if(a<0)throw new Error(Unexpected typed array class: ${i}.);n&&n instanceof ArrayBuffer?(this.data=n,this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),this._pos=4*r,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new ArrayBuffer(8+_+r*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+a]),new Uint16Array(this.data,2,1)[0]=s,new Uint32Array(this.data,4,1)[0]=t),this._queue=new e.default}add(t,s,i,e){const h=this._pos>>2;return this._indices[h]=h,this._boxes[this._pos++]=t,this._boxes[this._pos++]=s,this._boxes[this._pos++]=i,this._boxes[this._pos++]=e,t<this.minX&&(this.minX=t),s<this.minY&&(this.minY=s),i>this.maxX&&(this.maxX=i),e>this.maxY&&(this.maxY=e),h}finish(){if(this._pos>>2!==this.numItems)throw new Error(Added ${this._pos>>2} items when expected ${this.numItems}.);const t=this.maxX-this.minX,s=this.maxY-this.minY,i=new Uint32Array(this.numItems);for(let e=0;e<this.numItems;e++){let h=4*e;const n=this._boxes[h++],o=this._boxes[h++],r=this._boxes[h++],a=this._boxes[h++],d=Math.floor(65535*((n+r)/2-this.minX)/t),l=Math.floor(65535*((o+a)/2-this.minY)/s);i[e]=_(d,l)}!function t(s,i,e,h,n){if(h>=n)return;const o=s[h+n>>1];let r=h-1,_=n+1;for(;;){do{r++}while(s[r]<o);do{_–}while(s[_]>o);if(r>=_)break;a(s,i,e,r,_)}t(s,i,e,h,_),t(s,i,e,_+1,n)}(i,this._boxes,this._indices,0,this.numItems-1);for(let t=0,s=0;t<this._levelBounds.length-1;t++){const i=this._levelBounds[t];for(;s<i;){let t=1/0,e=1/0,h=-1/0,n=-1/0;const o=s;for(let o=0;o<this.nodeSize&&s<i;o++){const i=this._boxes[s++],o=this._boxes[s++],r=this._boxes[s++],a=this._boxes[s++];i<t&&(t=i),o<e&&(e=o),r>h&&(h=r),a>n&&(n=a)}this._indices[this._pos>>2]=o,this._boxes[this._pos++]=t,this._boxes[this._pos++]=e,this._boxes[this._pos++]=h,this._boxes[this._pos++]=n}}}search(t,s,i,e,h){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let n=this._boxes.length-4,o=this._levelBounds.length-1;const r=[],a=[];for(;void 0!==n;){const _=Math.min(n+4*this.nodeSize,this._levelBounds[o]);for(let d=n;d<_;d+=4){const _=0|this._indices[d>>2];i<this._boxes[d]||(e<this._boxes[d+1]||t>this._boxes[d+2]||s>this._boxes[d+3]||(n<4*this.numItems?(void 0===h||h(_))&&a.push(_):(r.push(_),r.push(o-1))))}o=r.pop(),n=r.pop()}return a}neighbors(t,s,i=1/0,e=1/0,h){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let n=this._boxes.length-4;const a=this._queue,_=[],d=e*e;for(;void 0!==n;){const e=Math.min(n+4*this.nodeSize,r(n,this._levelBounds));for(let i=n;i<e;i+=4){const e=0|this._indices[i>>2],r=o(t,this._boxes[i],this._boxes[i+2]),_=o(s,this._boxes[i+1],this._boxes[i+3]),d=r*r+_*_;n<4*this.numItems?(void 0===h||h(e))&&a.push(-e-1,d):a.push(e,d)}for(;a.length&&a.peek()<0;){if(a.peekValue()>d)return a.clear(),_;if(_.push(-a.pop()-1),_.length===i)return a.clear(),_}n=a.pop()}return a.clear(),_}}function o(t,s,i){return t<s?s-t:t<=i?0:t-i}function r(t,s){let i=0,e=s.length-1;for(;i<e;){const h=i+e>>1;s[h]>t?e=h:i=h+1}return s[i]}function a(t,s,i,e,h){const n=t[e];t[e]=t[h],t[h]=n;const o=4*e,r=4*h,a=s[o],_=s[o+1],d=s[o+2],l=s[o+3];s[o]=s[r],s[o+1]=s[r+1],s[o+2]=s[r+2],s[o+3]=s[r+3],s[r]=a,s[r+1]=_,s[r+2]=d,s[r+3]=l;const u=i[e];i[e]=i[h],i[h]=u}function _(t,s){let i=t^s,e=65535^i,h=65535^(t|s),n=t&(65535^s),o=i|e>>1,r=i>>1^i,a=h>>1^e&n>>1^h,_=i&h>>1^n>>1^n;i=o,e=r,h=a,n=_,o=i&i>>2^e&e>>2,r=i&e>>2^e&(i^e)>>2,a^=i&h>>2^e&n>>2,_^=e&h>>2^(i^e)&n>>2,i=o,e=r,h=a,n=_,o=i&i>>4^e&e>>4,r=i&e>>4^e&(i^e)>>4,a^=i&h>>4^e&n>>4,_^=e&h>>4^(i^e)&n>>4,i=o,e=r,h=a,n=_,a^=i&h>>8^e&n>>8,_^=e&h>>8^(i^e)&n>>8,i=a^a>>1,e=_^_>>1;let d=t^s,l=e|65535^(d|i);return d=16711935&(d|d<<8),d=252645135&(d|d<<4),d=858993459&(d|d<<2),d=1431655765&(d|d<<1),l=16711935&(l|l<<8),l=252645135&(l|l<<4),l=858993459&(l|l<<2),l=1431655765&(l|l<<1),(l<<1|d)>>>0}i.default=n},n function _(s,t,i){Object.defineProperty(i,"__esModule",{value:!0});i.default=class{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(s,t){let i=this.length++;for(this.ids[i]=s,this.values[i]=t;i>0;){const s=i-1>>1,e=this.values[s];if(t>=e)break;this.ids[i]=this.ids[s],this.values[i]=e,i=s}this.ids[i]=s,this.values[i]=t}pop(){if(0===this.length)return;const s=this.ids[0];if(this.length–,this.length>0){const s=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],i=this.length>>1;let e=0;for(;e<i;){let s=1+(e<<1);const i=s+1;let h=this.ids[s],l=this.values[s];const n=this.values[i];if(i<this.length&&n<l&&(s=i,h=this.ids[i],l=n),l>=t)break;this.ids[e]=h,this.values[e]=l,e=s}this.ids[e]=s,this.values[e]=t}return s}peek(){return this.ids[0]}peekValue(){return this.values[0]}}},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const{min:h,max:r}=Math;e.empty=function(){return{x0:1/0,y0:1/0,x1:-1/0,y1:-1/0}},e.positive_x=function(){return{x0:Number.MIN_VALUE,y0:-1/0,x1:1/0,y1:1/0}},e.positive_y=function(){return{x0:-1/0,y0:Number.MIN_VALUE,x1:1/0,y1:1/0}},e.union=function(t,i){return{x0:h(t.x0,i.x0),x1:r(t.x1,i.x1),y0:h(t.y0,i.y0),y1:r(t.y1,i.y1)}};class s{constructor(t){if(null==t)this.x0=0,this.y0=0,this.x1=0,this.y1=0;else if("x0"in t){const{x0:i,y0:e,x1:h,y1:r}=t;if(!(i<=h&&e<=r))throw new Error(invalid bbox {x0: ${i}, y0: ${e}, x1: ${h}, y1: ${r}});this.x0=i,this.y0=e,this.x1=h,this.y1=r}else if("x"in t){const{x:i,y:e,width:h,height:r}=t;if(!(h>=0&&r>=0))throw new Error(invalid bbox {x: ${i}, y: ${e}, width: ${h}, height: ${r}});this.x0=i,this.y0=e,this.x1=i+h,this.y1=e+r}else{let i,e,h,r;if("width"in t)if("left"in t)i=t.left,e=i+t.width;else if("right"in t)e=t.right,i=e-t.width;else{const h=t.width/2;i=t.hcenter-h,e=t.hcenter+h}else i=t.left,e=t.right;if("height"in t)if("top"in t)h=t.top,r=h+t.height;else if("bottom"in t)r=t.bottom,h=r-t.height;else{const i=t.height/2;h=t.vcenter-i,r=t.vcenter+i}else h=t.top,r=t.bottom;if(!(i<=e&&h<=r))throw new Error(invalid bbox {left: ${i}, top: ${h}, right: ${e}, bottom: ${r}});this.x0=i,this.y0=h,this.x1=e,this.y1=r}}toString(){return`BBox({left: ${this.left}, top: ${this.top}, width: ${this.width}, height: ${this.height}})`}get left(){return this.x0}get top(){return this.y0}get right(){return this.x1}get bottom(){return this.y1}get p0(){return[this.x0,this.y0]}get p1(){return[this.x1,this.y1]}get x(){return this.x0}get y(){return this.y0}get width(){return this.x1-this.x0}get height(){return this.y1-this.y0}get rect(){return{x0:this.x0,y0:this.y0,x1:this.x1,y1:this.y1}}get box(){return{x:this.x,y:this.y,width:this.width,height:this.height}}get h_range(){return{start:this.x0,end:this.x1}}get v_range(){return{start:this.y0,end:this.y1}}get ranges(){return[this.h_range,this.v_range]}get aspect(){return this.width/this.height}get hcenter(){return(this.left+this.right)/2}get vcenter(){return(this.top+this.bottom)/2}contains(t,i){return t>=this.x0&&t<=this.x1&&i>=this.y0&&i<=this.y1}clip(t,i){return t<this.x0?t=this.x0:t>this.x1&&(t=this.x1),i<this.y0?i=this.y0:i>this.y1&&(i=this.y1),[t,i]}union(t){return new s({x0:h(this.x0,t.x0),y0:h(this.y0,t.y0),x1:r(this.x1,t.x1),y1:r(this.y1,t.y1)})}equals(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1}get xview(){return{compute:t=>this.left+t,v_compute:t=>{const i=new Float64Array(t.length),e=this.left;for(let h=0;h<t.length;h++)i[h]=e+t[h];return i}}}get yview(){return{compute:t=>this.bottom-t,v_compute:t=>{const i=new Float64Array(t.length),e=this.bottom;for(let h=0;h<t.length;h++)i[h]=e-t[h];return i}}}}e.BBox=s,s.__name__="BBox"},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=i.__importStar(t(87)),r=i.__importStar(t(19)),a=i.__importStar(t(85)),_=i.__importStar(t(30)),l=i.__importStar(t(68)),o=t(65),h=t(69),c=t(70),d=t(12),p=t(24),y=t(8),u=t(80),g=t(88);class m extends o.View{constructor(){super(…arguments),this._nohit_warned=new Set}get renderer(){return this.parent}get has_webgl(){return null!=this.glglyph}initialize(){super.initialize(),this.visuals=new l.Visuals(this.model)}async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e){let s=null;try{s=await Promise.resolve().then(()=>i.__importStar(t(358)))}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t;c.logger.warn("WebGL was requested and is supported, but bokeh-gl(.min).js is not available, falling back to 2D rendering.")}if(null!=s){const t=s[this.model.type+"GLGlyph"];null!=t&&(this.glglyph=new t(e.gl,this))}}}set_visuals(t){this.visuals.warm_cache(t),null!=this.glglyph&&this.glglyph.set_visuals_changed()}render(t,e,s){t.beginPath(),null!=this.glglyph&&this.glglyph.render(t,e,s)||this._render(t,e,s)}has_finished(){return!0}notify_finished(){this.renderer.notify_finished()}_bounds(t){return t}bounds(){return this._bounds(this.index.bbox)}log_bounds(){const t=a.empty(),e=this.index.search(a.positive_x());for(const s of e)s.x0<t.x0&&(t.x0=s.x0),s.x1>t.x1&&(t.x1=s.x1);const s=this.index.search(a.positive_y());for(const e of s)e.y0<t.y0&&(t.y0=e.y0),e.y1>t.y1&&(t.y1=e.y1);return this._bounds(t)}get_anchor_point(t,e,[s,i]){switch(t){case"center":return{x:this.scenterx(e,s,i),y:this.scentery(e,s,i)};default:return null}}sdist(t,e,s,i="edge",n=!1){let r,a;const _=e.length;if("center"==i){const t=d.map(s,t=>t/2);r=new Float64Array(_);for(let s=0;s<_;s++)r[s]=e[s]-t[s];a=new Float64Array(_);for(let s=0;s<_;s++)a[s]=e[s]+t[s]}else{r=e,a=new Float64Array(_);for(let t=0;t<_;t++)a[t]=r[t]+s[t]}const l=t.v_compute(r),o=t.v_compute(a);return n?d.map(l,(t,e)=>Math.ceil(Math.abs(o[e]-l[e]))):d.map(l,(t,e)=>Math.abs(o[e]-l[e]))}draw_legend_for_index(t,e,s){}hit_test(t){switch(t.type){case"point":if(null!=this._hit_point)return this._hit_point(t);break;case"span":if(null!=this._hit_span)return this._hit_span(t);break;case"rect":if(null!=this._hit_rect)return this._hit_rect(t);break;case"poly":if(null!=this._hit_poly)return this._hit_poly(t)}return this._nohit_warned.has(t.type)||(c.logger.debug(‘${t.type}’ selection not available for ${this.model.type}),this._nohit_warned.add(t.type)),null}_hit_rect_against_index(t){const{sx0:e,sx1:s,sy0:i,sy1:r}=t,[a,_]=this.renderer.xscale.r_invert(e,s),[l,o]=this.renderer.yscale.r_invert(i,r),h=n.create_empty_hit_test_result();return h.indices=this.index.indices({x0:a,x1:_,y0:l,y1:o}),h}set_data(t,e,s){let i=this.model.materialize_dataspecs(t);if(this.visuals.set_all_indices(e),e&&!(this instanceof u.LineView)){const t={};for(const s in i){const n=i[s];"_"===s.charAt(0)?t[s]=e.map(t=>n[t]):t[s]=n}i=t}const n=this;if(p.extend(n,i),this.renderer.plot_view.model.use_map&&(null!=n._x&&([n._x,n._y]=_.project_xy(n._x,n._y)),null!=n._xs&&([n._xs,n._ys]=_.project_xsys(n._xs,n._ys)),null!=n._x0&&([n._x0,n._y0]=_.project_xy(n._x0,n._y0)),null!=n._x1&&([n._x1,n._y1]=_.project_xy(n._x1,n._y1))),null!=this.renderer.plot_view.frame.x_ranges){const t=this.renderer.plot_view.frame.x_ranges[this.model.x_range_name],e=this.renderer.plot_view.frame.y_ranges[this.model.y_range_name];for(let[s,i]of this.model._coords)s=`_${s}`,i=`_${i}`,null!=n._xs?(t instanceof g.FactorRange&&(n[s]=d.map(n[s],e=>t.v_synthetic(e))),e instanceof g.FactorRange&&(n[i]=d.map(n[i],t=>e.v_synthetic(t)))):(t instanceof g.FactorRange&&(n[s]=t.v_synthetic(n[s])),e instanceof g.FactorRange&&(n[i]=e.v_synthetic(n[i])))}null!=this.glglyph&&this.glglyph.set_data_changed(n._x.length),this._set_data(s),this.index_data()}_set_data(t){}index_data(){this.index=this._index_data()}mask_data(t){return null!=this.glglyph||null==this._mask_data?t:this._mask_data()}map_data(){const t=this;for(let[e,s]of this.model._coords){const i=`s${e}`,n=`s${s}`;if(e=`_${e}`,s=`_${s}`,null!=t[e]&&(y.isArray(t[e][0])||y.isTypedArray(t[e][0]))){const r=t[e].length;t[i]=new Array(r),t[n]=new Array(r);for(let a=0;a<r;a++){const[r,_]=this.map_to_screen(t[e][a],t[s][a]);t[i][a]=r,t[n][a]=_}}else[t[i],t[n]]=this.map_to_screen(t[e],t[s])}this._map_data()}_map_data(){}map_to_screen(t,e){return this.renderer.plot_view.map_to_screen(t,e,this.model.x_range_name,this.model.y_range_name)}}s.GlyphView=m,m.__name__="GlyphView";class x extends h.Model{constructor(t){super(t)}static init_Glyph(){this.prototype._coords=[],this.internal({x_range_name:[r.String,"default"],y_range_name:[r.String,"default"]})}static coords(t){const e=this.prototype._coords.concat(t);this.prototype._coords=e;const s={};for(const[e,i]of t)s[e]=[r.CoordinateSpec],s[i]=[r.CoordinateSpec];this.define(s)}}s.Glyph=x,x.__name__="Glyph",x.init_Glyph()},n function _(t,n,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(9),r=t(76);function s(t){return t*t}function o(t,n){return s(t.x-n.x)+s(t.y-n.y)}function c(t,n,e){const i=o(n,e);if(0==i)return o(t,n);const r=((t.x-n.x)*(e.x-n.x)+(t.y-n.y)*(e.y-n.y))/i;return o(t,r<0?n:r>1?e:{x:n.x+r*(e.x-n.x),y:n.y+r*(e.y-n.y)})}e.point_in_poly=function(t,n,e,i){let r=!1,s=e[e.length-1],o=i[i.length-1];for(let c=0;c<e.length;c++){const u=e[c],_=i[c];o<n!=_<n&&s+(n-o)/(_-o)*(u-s)<t&&(r=!r),s=u,o=_}return r},e.point_in_ellipse=function(t,n,e,i,r,s,o){return((Math.cos(e)/r)**2+(Math.sin(e)/i)**2)*(t-s)**2+2*Math.cos(e)*Math.sin(e)*((1/r)**2-(1/i)**2)*(t-s)*(n-o)+((Math.cos(e)/i)**2+(Math.sin(e)/r)**2)*(n-o)**2<=1},e.create_empty_hit_test_result=function(){return new r.Selection},e.create_hit_test_result_from_hits=function(t){const n=new r.Selection;return n.indices=i.sort_by(t,([t,n])=>n).map(([t,n])=>t),n},e.dist_2_pts=o,e.dist_to_segment_squared=c,e.dist_to_segment=function(t,n,e){return Math.sqrt(c(t,n,e))},e.check_2_segments_intersect=function(t,n,e,i,r,s,o,c){const u=(c-s)*(e-t)-(o-r)*(i-n);if(0==u)return{hit:!1,x:null,y:null};{let _=n-s,l=t-r;const h=(e-t)*_-(i-n)*l;return _=((o-r)*_-(c-s)*l)/u,l=h/u,{hit:_>0&&_<1&&l>0&&l<1,x:t+_*(e-t),y:n+_*(i-n)}}}},n function _(t,n,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(89),r=s.__importStar(t(19)),a=t(12),o=t(9),p=t(8),h=t(11);function g(t,n,i=0){const s={};for(let e=0;e<t.length;e++){const r=t[e];if(r in s)throw new Error(duplicate factor or subfactor: ${r});s[r]={value:.5+e*(1+n)+i}}return[s,(t.length-1)*n]}function c(t,n,i,s=0){const e={},r={},a=[];for(const[n,i]of t)n in r||(r[n]=[],a.push(n)),r[n].push(i);let p=s,h=0;for(const t of a){const s=r[t].length,[a,c]=g(r[t],i,p);h+=c;const u=o.sum(r[t].map(t=>a[t].value));e[t]={value:u/s,mapping:a},p+=s+n+c}return[e,a,(a.length-1)*n+h]}function u(t,n,i,s,e=0){const r={},a={},p=[];for(const[n,i,s]of t)n in a||(a[n]=[],p.push(n)),a[n].push([i,s]);const h=[];let g=e,u=0;for(const t of p){const e=a[t].length,[p,l,_]=c(a[t],i,s,g);for(const n of l)h.push([t,n]);u+=_;const d=o.sum(a[t].map(([t])=>p[t].value));r[t]={value:d/e,mapping:p},g+=e+n+_}return[r,p,h,(p.length-1)*n+u]}i.map_one_level=g,i.map_two_levels=c,i.map_three_levels=u;class l extends e.Range{constructor(t){super(t)}static init_FactorRange(){this.define({factors:[r.Array,[]],factor_padding:[r.Number,0],subgroup_padding:[r.Number,.8],group_padding:[r.Number,1.4],range_padding:[r.Number,0],range_padding_units:[r.PaddingUnits,"percent"],start:[r.Number],end:[r.Number]}),this.internal({levels:[r.Number],mids:[r.Array,null],tops:[r.Array,null],tops_groups:[r.Array]})}get min(){return this.start}get max(){return this.end}initialize(){super.initialize(),this._init(!0)}connect_signals(){super.connect_signals(),this.connect(this.properties.factors.change,()=>this.reset()),this.connect(this.properties.factor_padding.change,()=>this.reset()),this.connect(this.properties.group_padding.change,()=>this.reset()),this.connect(this.properties.subgroup_padding.change,()=>this.reset()),this.connect(this.properties.range_padding.change,()=>this.reset()),this.connect(this.properties.range_padding_units.change,()=>this.reset())}reset(){this._init(!1),this.change.emit()}_lookup(t){if(1==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])?n[t[0]].value:NaN}if(2==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])&&n[t[0]].mapping.hasOwnProperty(t[1])?n[t[0]].mapping[t[1]].value:NaN}if(3==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])&&n[t[0]].mapping.hasOwnProperty(t[1])&&n[t[0]].mapping[t[1]].mapping.hasOwnProperty(t[2])?n[t[0]].mapping[t[1]].mapping[t[2]].value:NaN}h.unreachable()}synthetic(t){if(p.isNumber(t))return t;if(p.isString(t))return this._lookup([t]);let n=0;const i=t[t.length-1];return p.isNumber(i)&&(n=i,t=t.slice(0,-1)),this._lookup(t)+n}v_synthetic(t){return a.map(t,t=>this.synthetic(t))}_init(t){let n,i;this.tops=null,this.mids=null,o.every(this.factors,p.isString)?(n=1,[this._mapping,i]=g(this.factors,this.factor_padding)):o.every(this.factors,t=>p.isArray(t)&&2==t.length&&p.isString(t[0])&&p.isString(t[1]))?(n=2,[this._mapping,this.tops,i]=c(this.factors,this.group_padding,this.factor_padding)):o.every(this.factors,t=>p.isArray(t)&&3==t.length&&p.isString(t[0])&&p.isString(t[1])&&p.isString(t[2]))?(n=3,[this._mapping,this.tops,this.mids,i]=u(this.factors,this.group_padding,this.subgroup_padding,this.factor_padding)):h.unreachable();let s=0,e=this.factors.length+i;if("percent"==this.range_padding_units){const t=(e-s)*this.range_padding/2;s-=t,e+=t}else s-=this.range_padding,e+=this.range_padding;this.setv({start:s,end:e,levels:n},{silent:t}),"auto"==this.bounds&&this.setv({bounds:[s,e]},{silent:!0})}}i.FactorRange=l,l.__name__="FactorRange",l.init_FactorRange()},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),a=e(69),r=i.__importStar(e(19));class s extends a.Model{constructor(e){super(e),this.have_updated_interactively=!1}static init_Range(){this.define({bounds:[r.Any],min_interval:[r.Any],max_interval:[r.Any]}),this.internal({plots:[r.Array,[]]})}get is_reversed(){return this.start>this.end}}n.Range=s,s.__name__="Range",s.init_Range()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1).__importStar(e(87));i.generic_line_legend=function(e,t,{x0:i,x1:n,y0:c,y1:o},r){t.save(),t.beginPath(),t.moveTo(i,(c+o)/2),t.lineTo(n,(c+o)/2),e.line.doit&&(e.line.set_vectorize(t,r),t.stroke()),t.restore()},i.generic_area_legend=function(e,t,{x0:i,x1:n,y0:c,y1:o},r){const l=.1*Math.abs(n-i),a=.1*Math.abs(o-c),s=i+l,_=n-l,h=c+a,v=o-a;e.fill.doit&&(e.fill.set_vectorize(t,r),t.fillRect(s,h,_-s,v-h)),null!=e.hatch&&e.hatch.doit&&(e.hatch.set_vectorize(t,r),t.fillRect(s,h,_-s,v-h)),e.line&&e.line.doit&&(t.beginPath(),t.rect(s,h,_-s,v-h),e.line.set_vectorize(t,r),t.stroke())},i.line_interpolation=function(e,t,i,c,o,r){const{sx:l,sy:a}=t;let s,_,h,v;"point"==t.type?([h,v]=e.yscale.r_invert(a-1,a+1),[s,_]=e.xscale.r_invert(l-1,l+1)):"v"==t.direction?([h,v]=e.yscale.r_invert(a,a),[s,_]=[Math.min(i-1,o-1),Math.max(i+1,o+1)]):([s,_]=e.xscale.r_invert(l,l),[h,v]=[Math.min(c-1,r-1),Math.max(c+1,r+1)]);const{x,y}=n.check_2_segments_intersect(s,h,_,v,i,c,o,r);return[x,y]}},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=e(81),_=e(90),n=s.__importStar(e(87));class a extends l.XYGlyphView{_inner_loop(e,t,i,s,l){for(const _ of t)0!=_?isNaN(i[_]+s[_])?(e.closePath(),l.apply(e),e.beginPath()):e.lineTo(i[_],s[_]):(e.beginPath(),e.moveTo(i[_],s[_]));e.closePath(),l.call(e)}_render(e,t,{sx:i,sy:s}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner_loop(e,t,i,s,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner_loop(e,t,i,s,e.fill),()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_value(e),this._inner_loop(e,t,i,s,e.stroke))}draw_legend_for_index(e,t,i){_.generic_area_legend(this.visuals,e,t,i)}_hit_point(e){const t=n.create_empty_hit_test_result();return n.point_in_poly(e.sx,e.sy,this.sx,this.sy)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}}i.PatchView=a,a.__name__="PatchView";class o extends l.XYGlyph{constructor(e){super(e)}static init_Patch(){this.prototype.default_view=a,this.mixins(["line","fill","hatch"])}}i.Patch=o,o.__name__="Patch",o.init_Patch()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(93),n=e(82),_=i.__importStar(e(87)),a=i.__importStar(e(19));class h extends r.AreaView{_index_data(){const e=[];for(let t=0,s=this._x1.length;t<s;t++){const s=this._x1[t],i=this._x2[t],r=this._y[t];!isNaN(s+i+r)&&isFinite(s+i+r)&&e.push({x0:Math.min(s,i),y0:r,x1:Math.max(s,i),y1:r,i:t})}return new n.SpatialIndex(e)}_inner(e,t,s,i,r){e.beginPath();for(let s=0,r=t.length;s<r;s++)e.lineTo(t[s],i[s]);for(let t=s.length-1;t>=0;t–)e.lineTo(s[t],i[t]);e.closePath(),r.call(e)}_render(e,t,{sx1:s,sx2:i,sy:r}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner(e,s,i,r,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner(e,s,i,r,e.fill),()=>this.renderer.request_render())}_hit_point(e){const t=_.create_empty_hit_test_result(),s=this.sy.length,i=new Float64Array(2*s),r=new Float64Array(2*s);for(let e=0,t=s;e<t;e++)i[e]=this.sx1[e],r[e]=this.sy[e],i[s+e]=this.sx2[s-e-1],r[s+e]=this.sy[s-e-1];return _.point_in_poly(e.sx,e.sy,i,r)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}scenterx(e){return(this.sx1[e]+this.sx2[e])/2}scentery(e){return this.sy[e]}_map_data(){this.sx1=this.renderer.xscale.v_compute(this._x1),this.sx2=this.renderer.xscale.v_compute(this._x2),this.sy=this.renderer.yscale.v_compute(this._y)}}s.HAreaView=h,h.__name__="HAreaView";class l extends r.Area{constructor(e){super(e)}static init_HArea(){this.prototype.default_view=h,this.define({x1:[a.CoordinateSpec],x2:[a.CoordinateSpec],y:[a.CoordinateSpec]})}}s.HArea=l,l.__name__="HArea",l.init_HArea()},n function _(e,i,_){Object.defineProperty(_,"__esModule",{value:!0});const a=e(86),n=e(90);class s extends a.GlyphView{draw_legend_for_index(e,i,_){n.generic_area_legend(this.visuals,e,i,_)}}_.AreaView=s,s.__name__="AreaView";class r extends a.Glyph{constructor(e){super(e)}static init_Area(){this.mixins(["fill","hatch"])}}_.Area=r,r.__name__="Area",r.init_Area()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(93),n=e(82),_=i.__importStar(e(87)),a=i.__importStar(e(19));class h extends r.AreaView{_index_data(){const e=[];for(let t=0,s=this._x.length;t<s;t++){const s=this._x[t],i=this._y1[t],r=this._y2[t];!isNaN(s+i+r)&&isFinite(s+i+r)&&e.push({x0:s,y0:Math.min(i,r),x1:s,y1:Math.max(i,r),i:t})}return new n.SpatialIndex(e)}_inner(e,t,s,i,r){e.beginPath();for(let i=0,r=s.length;i<r;i++)e.lineTo(t[i],s[i]);for(let s=i.length-1;s>=0;s–)e.lineTo(t[s],i[s]);e.closePath(),r.call(e)}_render(e,t,{sx:s,sy1:i,sy2:r}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner(e,s,i,r,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner(e,s,i,r,e.fill),()=>this.renderer.request_render())}scenterx(e){return this.sx[e]}scentery(e){return(this.sy1[e]+this.sy2[e])/2}_hit_point(e){const t=_.create_empty_hit_test_result(),s=this.sx.length,i=new Float64Array(2*s),r=new Float64Array(2*s);for(let e=0,t=s;e<t;e++)i[e]=this.sx[e],r[e]=this.sy1[e],i[s+e]=this.sx[s-e-1],r[s+e]=this.sy2[s-e-1];return _.point_in_poly(e.sx,e.sy,i,r)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sy1=this.renderer.yscale.v_compute(this._y1),this.sy2=this.renderer.yscale.v_compute(this._y2)}}s.VAreaView=h,h.__name__="VAreaView";class l extends r.Area{constructor(e){super(e)}static init_VArea(){this.prototype.default_view=h,this.define({x:[a.CoordinateSpec],y1:[a.CoordinateSpec],y2:[a.CoordinateSpec]})}}s.VArea=l,l.__name__="VArea",l.init_VArea()},n function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),n=i(69),c=t.__importStar(i(19)),o=i(76),r=i(9),_=i(74);class h extends n.Model{constructor(i){super(i)}static init_CDSView(){this.define({filters:[c.Array,[]],source:[c.Instance]}),this.internal({indices:[c.Array,[]],indices_map:[c.Any,{}]})}initialize(){super.initialize(),this.compute_indices()}connect_signals(){super.connect_signals(),this.connect(this.properties.filters.change,()=>{this.compute_indices(),this.change.emit()});const i=()=>{const i=()=>this.compute_indices();null!=this.source&&(this.connect(this.source.change,i),this.source instanceof _.ColumnarDataSource&&(this.connect(this.source.streaming,i),this.connect(this.source.patching,i)))};let e=null!=this.source;e?i():this.connect(this.properties.source.change,()=>{e||(i(),e=!0)})}compute_indices(){const i=this.filters.map(i=>i.compute_indices(this.source)).filter(i=>null!=i);i.length>0?this.indices=r.intersection.apply(this,i):this.source instanceof _.ColumnarDataSource&&(this.indices=this.source.get_indices()),this.indices_map_to_subset()}indices_map_to_subset(){this.indices_map={};for(let i=0;i<this.indices.length;i++)this.indices_map[this.indices[i]]=i}convert_selection_from_subset(i){const e=new o.Selection;e.update_through_union(i);const s=i.indices.map(i=>this.indices[i]);return e.indices=s,e.image_indices=i.image_indices,e}convert_selection_to_subset(i){const e=new o.Selection;e.update_through_union(i);const s=i.indices.map(i=>this.indices_map[i]);return e.indices=s,e.image_indices=i.image_indices,e}convert_indices_from_subset(i){return i.map(i=>this.indices[i])}}s.CDSView=h,h.__name__="CDSView",h.init_CDSView()},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(9);async function o(e,n,t){const i=new e(Object.assign(Object.assign({},t),{model:n}));return i.initialize(),await i.lazy_initialize(),i}t.build_view=async function(e,n={parent:null},t=(e=>e.default_view)){const i=await o(t(e),e,n);return i.connect_signals(),i},t.build_views=async function(e,n,t={parent:null},c=(e=>e.default_view)){const s=i.difference(Object.keys(e),n.map(e=>e.id));for(const n of s)e[n].remove(),delete e[n];const a=[],l=n.filter(n=>null==e[n.id]);for(const n of l){const i=await o(c(n),n,t);e[n.id]=i,a.push(i)}for(const e of a)e.connect_signals();return a},t.remove_views=function(e){for(const n in e)e[n].remove(),delete e[n]}},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(1),r=e(79),a=e(98),i=s.__importStar(e(19)),d=e(96);class _ extends r.DataRendererView{initialize(){super.initialize(),this.xscale=this.plot_view.frame.xscales.default,this.yscale=this.plot_view.frame.yscales.default,this._renderer_views={}}async lazy_initialize(){[this.node_view,this.edge_view]=await d.build_views(this._renderer_views,[this.model.node_renderer,this.model.edge_renderer],{parent:this.parent}),this.set_data()}connect_signals(){super.connect_signals(),this.connect(this.model.layout_provider.change,()=>this.set_data()),this.connect(this.model.node_renderer.data_source._select,()=>this.set_data()),this.connect(this.model.node_renderer.data_source.inspect,()=>this.set_data()),this.connect(this.model.node_renderer.data_source.change,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source._select,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source.inspect,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source.change,()=>this.set_data());const{x_ranges:e,y_ranges:t}=this.plot_view.frame;for(const t in e){const n=e[t];this.connect(n.change,()=>this.set_data())}for(const e in t){const n=t[e];this.connect(n.change,()=>this.set_data())}}set_data(e=!0){this.node_view.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0}),this.edge_view.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0});const t=this.node_view.glyph;[t._x,t._y]=this.model.layout_provider.get_node_coordinates(this.model.node_renderer.data_source);const n=this.edge_view.glyph;[n._xs,n._ys]=this.model.layout_provider.get_edge_coordinates(this.model.edge_renderer.data_source),t.index_data(),n.index_data(),e&&this.request_render()}render(){this.edge_view.render(),this.node_view.render()}}n.GraphRendererView=_,_.__name__="GraphRendererView";class o extends r.DataRenderer{constructor(e){super(e)}static init_GraphRenderer(){this.prototype.default_view=_,this.define({layout_provider:[i.Instance],node_renderer:[i.Instance],edge_renderer:[i.Instance],selection_policy:[i.Instance,()=>new a.NodesOnly],inspection_policy:[i.Instance,()=>new a.NodesOnly]})}get_selection_manager(){return this.node_renderer.data_source.selection_manager}}n.GraphRenderer=o,o.__name__="GraphRenderer",o.init_GraphRenderer()},n function _(e,t,d){Object.defineProperty(d,"__esModule",{value:!0});const n=e(69),s=e(12),o=e(9),_=e(87);class i extends n.Model{constructor(e){super(e)}_hit_test_nodes(e,t){if(!t.model.visible)return null;const d=t.node_view.glyph.hit_test(e);return null==d?null:t.node_view.model.view.convert_selection_from_subset(d)}_hit_test_edges(e,t){if(!t.model.visible)return null;const d=t.edge_view.glyph.hit_test(e);return null==d?null:t.edge_view.model.view.convert_selection_from_subset(d)}}d.GraphHitTestPolicy=i,i.__name__="GraphHitTestPolicy";class r extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_nodes(e,t)}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;return s.update(e,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.model.get_selection_manager().get_or_create_inspector(d.node_view.model);return o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view,{geometry:t}]),!o.is_empty()}}d.NodesOnly=r,r.__name__="NodesOnly";class c extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_nodes(e,t)}get_linked_edges(e,t,d){let n=[];"selection"==d?n=e.selected.indices.map(t=>e.data.index[t]):"inspection"==d&&(n=e.inspected.indices.map(t=>e.data.index[t]));const s=[];for(let e=0;e<t.data.start.length;e++)(o.contains(n,t.data.start[e])||o.contains(n,t.data.end[e]))&&s.push(e);const i=_.create_empty_hit_test_result();for(const e of s)i.multiline_indices[e]=[0];return i.indices=s,i}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;s.update(e,d,n);const o=t.edge_renderer.data_source.selected,_=this.get_linked_edges(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.update(_,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model);o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0});const _=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model),i=this.get_linked_edges(d.node_view.model.data_source,d.edge_view.model.data_source,"inspection");return _.update(i,n,s),d.edge_view.model.data_source.setv({inspected:_},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view,{geometry:t}]),!o.is_empty()}}d.NodesAndLinkedEdges=c,c.__name__="NodesAndLinkedEdges";class a extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_edges(e,t)}get_linked_nodes(e,t,d){let n=[];"selection"==d?n=t.selected.indices:"inspection"==d&&(n=t.inspected.indices);const i=[];for(const e of n)i.push(t.data.start[e]),i.push(t.data.end[e]);const r=o.uniq(i).map(t=>s.indexOf(e.data.index,t)),c=_.create_empty_hit_test_result();return c.indices=r,c}do_selection(e,t,d,n){if(null==e)return!1;const s=t.edge_renderer.data_source.selected;s.update(e,d,n);const o=t.node_renderer.data_source.selected,_=this.get_linked_nodes(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.update(_,d,n),t.edge_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model);o.update(e,n,s),d.edge_view.model.data_source.setv({inspected:o},{silent:!0});const _=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model),i=this.get_linked_nodes(d.node_view.model.data_source,d.edge_view.model.data_source,"inspection");return _.update(i,n,s),d.node_view.model.data_source.setv({inspected:_},{silent:!0}),d.edge_view.model.data_source.inspect.emit([d.edge_view,{geometry:t}]),!o.is_empty()}}d.EdgesAndLinkedNodes=a,a.__name__="EdgesAndLinkedNodes"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(69);class o extends s.Model{do_selection(e,t,n,s){return null!==e&&(t.selected.update(e,n,s),t._select.emit(),!t.selected.is_empty())}}n.SelectionPolicy=o,o.__name__="SelectionPolicy";class r extends o{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!==t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_intersection(t);return e}return null}}n.IntersectRenderers=r,r.__name__="IntersectRenderers";class c extends o{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!==t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_union(t);return e}return null}}n.UnionRenderers=c,c.__name__="UnionRenderers"},n function _(r,n,t){Object.defineProperty(t,"__esModule",{value:!0});const e=r(8),a=r(101);function o(r){const n=new Uint8Array(r.buffer,r.byteOffset,2*r.length);for(let r=0,t=n.length;r<t;r+=2){const t=n[r];n[r]=n[r+1],n[r+1]=t}}function i(r){const n=new Uint8Array(r.buffer,r.byteOffset,4*r.length);for(let r=0,t=n.length;r<t;r+=4){let t=n[r];n[r]=n[r+3],n[r+3]=t,t=n[r+1],n[r+1]=n[r+2],n[r+2]=t}}function s(r){const n=new Uint8Array(r.buffer,r.byteOffset,8*r.length);for(let r=0,t=n.length;r<t;r+=8){let t=n[r];n[r]=n[r+7],n[r+7]=t,t=n[r+1],n[r+1]=n[r+6],n[r+6]=t,t=n[r+2],n[r+2]=n[r+5],n[r+5]=t,t=n[r+3],n[r+3]=n[r+4],n[r+4]=t}}function c(r,n){const e=r.order!==t.BYTE_ORDER,{shape:a}=r;let c=null;for(const t of n){if(JSON.parse(t[0]).id===r.__buffer__){c=t[1];break}}const f=new t.ARRAY_TYPES[r.dtype](c);return e&&(2===f.BYTES_PER_ELEMENT?o(f):4===f.BYTES_PER_ELEMENT?i(f):8===f.BYTES_PER_ELEMENT&&s(f)),[f,a]}function f(r,n){return e.isObject(r)&&"__ndarray__"in r?A(r):e.isObject(r)&&"__buffer__"in r?c(r,n):e.isArray(r)||e.isTypedArray(r)?[r,[]]:void 0}function u(r){const n=new Uint8Array(r),t=Array.from(n).map(r=>String.fromCharCode(r));return btoa(t.join(""))}function y(r){const n=atob(r),t=n.length,e=new Uint8Array(t);for(let r=0,a=t;r<a;r++)e[r]=n.charCodeAt(r);return e.buffer}function A(r){const n=y(r.__ndarray__),e=r.dtype,a=r.shape;let o;if(!(e in t.ARRAY_TYPES))throw new Error(unknown dtype: ${e});return o=new t.ARRAY_TYPES[e](n),[o,a]}function l(r,n){const e=u(r.buffer),a=function(r){if("name"in r.constructor)return r.constructor.name;switch(!0){case r instanceof Uint8Array:return"Uint8Array";case r instanceof Int8Array:return"Int8Array";case r instanceof Uint16Array:return"Uint16Array";case r instanceof Int16Array:return"Int16Array";case r instanceof Uint32Array:return"Uint32Array";case r instanceof Int32Array:return"Int32Array";case r instanceof Float32Array:return"Float32Array";case r instanceof Float64Array:return"Float64Array";default:throw new Error("unsupported typed array")}}(r);let o;if(!(a in t.DTYPES))throw new Error(unknown array type: ${a});return o=t.DTYPES[a],{__ndarray__:e,shape:n,dtype:o}}function _(r,n){if(0==r.length||!e.isObject(r[0])&&!e.isArray(r[0]))return[r,[]];const t=[],a=[];for(const o of r){const[r,i]=e.isArray(o)?_(o,n):f(o,n);t.push(r),a.push(i)}return[t,a.map(r=>r.filter(r=>0!=r.length))]}function d(r,n){const t=[];for(let a=0,o=r.length;a<o;a++){const o=r[a];if(e.isTypedArray(o)){const r=n[a]?n[a]:void 0;t.push(l(o,r))}else e.isArray(o)?t.push(d(o,n?n[a]:[])):t.push(o)}return t}t.ARRAY_TYPES={uint8:Uint8Array,int8:Int8Array,uint16:Uint16Array,int16:Int16Array,uint32:Uint32Array,int32:Int32Array,float32:Float32Array,float64:Float64Array},t.DTYPES={Uint8Array:"uint8",Int8Array:"int8",Uint16Array:"uint16",Int16Array:"int16",Uint32Array:"uint32",Int32Array:"int32",Float32Array:"float32",Float64Array:"float64"},t.BYTE_ORDER=a.is_little_endian?"little":"big",t.swap16=o,t.swap32=i,t.swap64=s,t.process_buffer=c,t.process_array=f,t.arrayBufferToBase64=u,t.base64ToArrayBuffer=y,t.decode_base64=A,t.encode_base64=l,t.decode_column_data=function(r,n=[]){const t={},a={};for(const o in r){const i=r[o];if(e.isArray(i)){if(0==i.length||!e.isObject(i[0])&&!e.isArray(i[0])){t[o]=i;continue}const[r,s]=_(i,n);t[o]=r,a[o]=s}else{const[r,e]=f(i,n);t[o]=r,a[o]=e}}return[t,a]},t.encode_column_data=function(r,n){const t={};for(const a in r){const o=r[a],i=null!=n?n[a]:void 0;let s;s=e.isTypedArray(o)?l(o,i):e.isArray(o)?d(o,i||[]):o,t[a]=s}return t}},n function _(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.is_ie=(()=>{const e="undefined"!=typeof navigator?navigator.userAgent:"";return e.indexOf("MSIE")>=0||e.indexOf("Trident")>0||e.indexOf("Edge")>0})(),i.is_mobile="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0),i.is_little_endian=(()=>{const e=new ArrayBuffer(4),n=new Uint8Array(e);new Uint32Array(e)[1]=168496141;let i=!0;return 10==n[4]&&11==n[5]&&12==n[6]&&13==n[7]&&(i=!1),i})()},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.concat=function(t,…e){let n=t.length;for(const t of e)n+=t.length;const o=new t.constructor(n);o.set(t,0);let c=t.length;for(const t of e)o.set(t,c),c+=t.length;return o}},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(13);class o{constructor(e){this.document=e}}s.DocumentChangedEvent=o,o.__name__="DocumentChangedEvent";class r extends o{constructor(e,t,s){super(e),this.msg_type=t,this.msg_data=s}json(e){const t=this.msg_data,s=n.HasProps._value_to_json("",t,null);return n.HasProps._value_record_references(t,{},!0),{kind:"MessageSent",msg_type:this.msg_type,msg_data:s}}}s.MessageSentEvent=r,r.__name__="MessageSentEvent";class d extends o{constructor(e,t,s,n,o,r,d){super(e),this.model=t,this.attr=s,this.old=n,this.new_=o,this.setter_id=r,this.hint=d}json(e){if("id"===this.attr)throw new Error("’id’ field should never change, whatever code just set it is wrong");if(null!=this.hint)return this.hint.json(e);const t=this.new_,s=n.HasProps._value_to_json(this.attr,t,this.model),o={};n.HasProps._value_record_references(t,o,!0),this.model.id in o&&this.model!==t&&delete o[this.model.id];for(const t in o)e[t]=o[t];return{kind:"ModelChanged",model:this.model.ref(),attr:this.attr,new:s}}}s.ModelChangedEvent=d,d.__name__="ModelChangedEvent";class i extends o{constructor(e,t,s){super(e),this.column_source=t,this.patches=s}json(e){return{kind:"ColumnsPatched",column_source:this.column_source,patches:this.patches}}}s.ColumnsPatchedEvent=i,i.__name__="ColumnsPatchedEvent";class _ extends o{constructor(e,t,s,n){super(e),this.column_source=t,this.data=s,this.rollover=n}json(e){return{kind:"ColumnsStreamed",column_source:this.column_source,data:this.data,rollover:this.rollover}}}s.ColumnsStreamedEvent=_,_.__name__="ColumnsStreamedEvent";class a extends o{constructor(e,t,s){super(e),this.title=t,this.setter_id=s}json(e){return{kind:"TitleChanged",title:this.title}}}s.TitleChangedEvent=a,a.__name__="TitleChangedEvent";class l extends o{constructor(e,t,s){super(e),this.model=t,this.setter_id=s}json(e){return n.HasProps._value_record_references(this.model,e,!0),{kind:"RootAdded",model:this.model.ref()}}}s.RootAddedEvent=l,l.__name__="RootAddedEvent";class h extends o{constructor(e,t,s){super(e),this.model=t,this.setter_id=s}json(e){return{kind:"RootRemoved",model:this.model.ref()}}}s.RootRemovedEvent=h,h.__name__="RootRemovedEvent"},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),_=e(29),o=e(73),l=i.__importStar(e(19));class a extends _.AnnotationView{initialize(){super.initialize(),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source)),this.connect(this.model.source.change,()=>this.set_data(this.model.source))}set_data(e){super.set_data(e),this.visuals.warm_cache(e),this.plot_view.request_render()}_map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=e.xscales[this.model.x_range_name],i=e.yscales[this.model.y_range_name],_="height"==t?i:s,o="height"==t?s:i,l="height"==t?e.yview:e.xview,a="height"==t?e.xview:e.yview;let n,h,r;n="data"==this.model.properties.lower.units?_.v_compute(this._lower):l.v_compute(this._lower),h="data"==this.model.properties.upper.units?_.v_compute(this._upper):l.v_compute(this._upper),r="data"==this.model.properties.base.units?o.v_compute(this._base):a.v_compute(this._base);const[c,p]="height"==t?[1,0]:[0,1],u=[n,r],d=[h,r];this._lower_sx=u[c],this._lower_sy=u[p],this._upper_sx=d[c],this._upper_sy=d[p]}render(){if(!this.model.visible)return;this._map_data();const{ctx:e}=this.plot_view.canvas_view;e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let t=0,s=this._lower_sx.length;t<s;t++)e.lineTo(this._lower_sx[t],this._lower_sy[t]);for(let t=this._upper_sx.length-1;t>=0;t–)e.lineTo(this._upper_sx[t],this._upper_sy[t]);e.closePath(),this.visuals.fill.doit&&(this.visuals.fill.set_value(e),e.fill()),e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let t=0,s=this._lower_sx.length;t<s;t++)e.lineTo(this._lower_sx[t],this._lower_sy[t]);this.visuals.line.doit&&(this.visuals.line.set_value(e),e.stroke()),e.beginPath(),e.moveTo(this._upper_sx[0],this._upper_sy[0]);for(let t=0,s=this._upper_sx.length;t<s;t++)e.lineTo(this._upper_sx[t],this._upper_sy[t]);this.visuals.line.doit&&(this.visuals.line.set_value(e),e.stroke())}}s.BandView=a,a.__name__="BandView";class n extends _.Annotation{constructor(e){super(e)}static init_Band(){this.prototype.default_view=a,this.mixins(["line","fill"]),this.define({lower:[l.DistanceSpec],upper:[l.DistanceSpec],base:[l.DistanceSpec],dimension:[l.Dimension,"height"],source:[l.Instance,()=>new o.ColumnDataSource],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}}s.Band=n,n.__name__="Band",n.init_Band()},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(1),l=t(29),o=t(14),n=t(66),a=s.__importStar(t(19)),h=t(85),r=t(106);e.EDGE_TOLERANCE=2.5;class d extends l.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),this.el.classList.add(r.bk_shading),n.undisplay(this.el)}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?(this.connect(this.model.change,()=>this.render()),this.connect(this.model.data_update,()=>this.render())):(this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.data_update,()=>this.plot_view.request_render()))}render(){if(this.model.visible||"css"!=this.model.render_mode||n.undisplay(this.el),!this.model.visible)return;if(null==this.model.left&&null==this.model.right&&null==this.model.top&&null==this.model.bottom)return void n.undisplay(this.el);const{frame:t}=this.plot_view,i=t.xscales[this.model.x_range_name],e=t.yscales[this.model.y_range_name],s=(t,i,e,s,l)=>{let o;return o=null!=t?this.model.screen?t:"data"==i?e.compute(t):s.compute(t):l,o};this.sleft=s(this.model.left,this.model.left_units,i,t.xview,t._left.value),this.sright=s(this.model.right,this.model.right_units,i,t.xview,t._right.value),this.stop=s(this.model.top,this.model.top_units,e,t.yview,t._top.value),this.sbottom=s(this.model.bottom,this.model.bottom_units,e,t.yview,t._bottom.value),("css"==this.model.render_mode?this._css_box.bind(this):this._canvas_box.bind(this))(this.sleft,this.sright,this.sbottom,this.stop)}_css_box(t,i,e,s){const l=this.model.properties.line_width.value(),o=Math.floor(i-t)-l,a=Math.floor(e-s)-l;this.el.style.left=`${t}px`,this.el.style.width=`${o}px`,this.el.style.top=`${s}px`,this.el.style.height=`${a}px`,this.visuals.line.doit&&(this.el.style.borderWidth=`${l}px`,this.el.style.borderColor=this.model.properties.line_color.value()),this.visuals.fill.doit&&(this.el.style.backgroundColor=this.model.properties.fill_color.value(),this.el.style.opacity=this.model.properties.fill_alpha.value());const h=this.model.properties.line_dash.value().length<2?"solid":"dashed";this.el.style.borderStyle=h,n.display(this.el)}_canvas_box(t,i,e,s){const{ctx:l}=this.plot_view.canvas_view;l.save(),l.beginPath(),l.rect(t,s,i-t,e-s),this.visuals.fill.doit&&(this.visuals.fill.set_value(l),l.fill()),this.visuals.line.doit&&(this.visuals.line.set_value(l),l.stroke()),l.restore()}interactive_bbox(){const t=this.model.properties.line_width.value()+e.EDGE_TOLERANCE;return new h.BBox({x0:this.sleft-t,y0:this.stop-t,x1:this.sright+t,y1:this.sbottom+t})}interactive_hit(t,i){if(null==this.model.in_cursor)return!1;return this.interactive_bbox().contains(t,i)}cursor(t,i){return Math.abs(t-this.sleft)<3||Math.abs(t-this.sright)<3?this.model.ew_cursor:Math.abs(i-this.sbottom)<3||Math.abs(i-this.stop)<3?this.model.ns_cursor:t>this.sleft&&t<this.sright&&i>this.stop&&i<this.sbottom?this.model.in_cursor:null}}e.BoxAnnotationView=d,d.__name__="BoxAnnotationView";class _ extends l.Annotation{constructor(t){super(t)}static init_BoxAnnotation(){this.prototype.default_view=d,this.mixins(["line","fill"]),this.define({render_mode:[a.RenderMode,"canvas"],x_range_name:[a.String,"default"],y_range_name:[a.String,"default"],top:[a.Number,null],top_units:[a.SpatialUnits,"data"],bottom:[a.Number,null],bottom_units:[a.SpatialUnits,"data"],left:[a.Number,null],left_units:[a.SpatialUnits,"data"],right:[a.Number,null],right_units:[a.SpatialUnits,"data"]}),this.internal({screen:[a.Boolean,!1],ew_cursor:[a.String,null],ns_cursor:[a.String,null],in_cursor:[a.String,null]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}initialize(){super.initialize(),this.data_update=new o.Signal0(this,"data_update")}update({left:t,right:i,top:e,bottom:s}){this.setv({left:t,right:i,top:e,bottom:s,screen:!0},{silent:!0}),this.data_update.emit()}}e.BoxAnnotation=_,_.__name__="BoxAnnotation",_.init_BoxAnnotation()},n function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const a=n(1);n(67),a.__importStar(n(66)).styles.append(".bk-root .bk-shading {\n position: absolute;\n display: block;\n border: 1px dashed green;\n}\n"),t.bk_annotation="bk-annotation",t.bk_shading="bk-shading",t.bk_annotation_child="bk-annotation-child"},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1),s=t(29),a=t(108),l=t(112),r=t(114),n=t(119),_=t(129),h=t(130),m=o.__importStar(t(19)),d=o.__importStar(t(131)),c=t(9),u=t(12),p=t(24),g=t(8),f=t(11);class b extends s.AnnotationView{initialize(){super.initialize(),this._set_canvas_image()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.visible.change,()=>this.plot_view.request_render()),this.connect(this.model.ticker.change,()=>this.plot_view.request_render()),this.connect(this.model.formatter.change,()=>this.plot_view.request_render()),null!=this.model.color_mapper&&this.connect(this.model.color_mapper.change,()=>{this._set_canvas_image(),this.plot_view.request_render()})}_get_size(){if(null==this.model.color_mapper)return{width:0,height:0};{const{width:t,height:e}=this.compute_legend_dimensions();return{width:t,height:e}}}_set_canvas_image(){if(null==this.model.color_mapper)return;let t,e,{palette:i}=this.model.color_mapper;switch("vertical"==this.model.orientation&&(i=c.reversed(i)),this.model.orientation){case"vertical":[t,e]=[1,i.length];break;case"horizontal":[t,e]=[i.length,1]}const o=document.createElement("canvas");o.width=t,o.height=e;const s=o.getContext("2d"),a=s.getImageData(0,0,t,e),l=new r.LinearColorMapper({palette:i}).rgba_mapper.v_compute(c.range(0,i.length));a.data.set(l),s.putImageData(a,0,0),this.image=o}compute_legend_dimensions(){const t=this._computed_image_dimensions(),[e,i]=[t.height,t.width],o=this._get_label_extent(),s=this._title_extent(),a=this._tick_extent(),{padding:l}=this.model;let r,n;switch(this.model.orientation){case"vertical":r=e+s+2*l,n=i+a+o+2*l;break;case"horizontal":r=e+s+a+o+2*l,n=i+2*l}return{width:n,height:r}}compute_legend_location(){const t=this.compute_legend_dimensions(),[e,i]=[t.height,t.width],o=this.model.margin,s=null!=this.panel?this.panel:this.plot_view.frame,[a,l]=s.bbox.ranges,{location:r}=this.model;let n,_;if(g.isString(r))switch(r){case"top_left":n=a.start+o,_=l.start+o;break;case"top_center":n=(a.end+a.start)/2-i/2,_=l.start+o;break;case"top_right":n=a.end-o-i,_=l.start+o;break;case"bottom_right":n=a.end-o-i,_=l.end-o-e;break;case"bottom_center":n=(a.end+a.start)/2-i/2,_=l.end-o-e;break;case"bottom_left":n=a.start+o,_=l.end-o-e;break;case"center_left":n=a.start+o,_=(l.end+l.start)/2-e/2;break;case"center":n=(a.end+a.start)/2-i/2,_=(l.end+l.start)/2-e/2;break;case"center_right":n=a.end-o-i,_=(l.end+l.start)/2-e/2}else if(g.isArray(r)&&2==r.length){const[t,i]=r;n=s.xview.compute(t),_=s.yview.compute(i)-e}else f.unreachable();return{sx:n,sy:_}}render(){if(!this.model.visible||null==this.model.color_mapper)return;const{ctx:t}=this.plot_view.canvas_view;t.save();const{sx:e,sy:i}=this.compute_legend_location();t.translate(e,i),this._draw_bbox(t);const o=this._get_image_offset();if(t.translate(o.x,o.y),this._draw_image(t),null!=this.model.color_mapper.low&&null!=this.model.color_mapper.high){const e=this.tick_info();this._draw_major_ticks(t,e),this._draw_minor_ticks(t,e),this._draw_major_labels(t,e)}this.model.title&&this._draw_title(t),t.restore()}_draw_bbox(t){const e=this.compute_legend_dimensions();t.save(),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(0,0,e.width,e.height)),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.strokeRect(0,0,e.width,e.height)),t.restore()}_draw_image(t){const e=this._computed_image_dimensions();t.save(),t.setImageSmoothingEnabled(!1),t.globalAlpha=this.model.scale_alpha,t.drawImage(this.image,0,0,e.width,e.height),this.visuals.bar_line.doit&&(this.visuals.bar_line.set_value(t),t.strokeRect(0,0,e.width,e.height)),t.restore()}_draw_major_ticks(t,e){if(!this.visuals.major_tick_line.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],[r,n]=e.coords.major,_=this.model.major_tick_in,h=this.model.major_tick_out;t.save(),t.translate(a,l),this.visuals.major_tick_line.set_value(t);for(let e=0,s=r.length;e<s;e++)t.beginPath(),t.moveTo(Math.round(r[e]+i*h),Math.round(n[e]+o*h)),t.lineTo(Math.round(r[e]-i*_),Math.round(n[e]-o*_)),t.stroke();t.restore()}_draw_minor_ticks(t,e){if(!this.visuals.minor_tick_line.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],[r,n]=e.coords.minor,_=this.model.minor_tick_in,h=this.model.minor_tick_out;t.save(),t.translate(a,l),this.visuals.minor_tick_line.set_value(t);for(let e=0,s=r.length;e<s;e++)t.beginPath(),t.moveTo(Math.round(r[e]+i*h),Math.round(n[e]+o*h)),t.lineTo(Math.round(r[e]-i*_),Math.round(n[e]-o*_)),t.stroke();t.restore()}_draw_major_labels(t,e){if(!this.visuals.major_label_text.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],r=this.model.label_standoff+this._tick_extent(),[n,_]=[r*i,r*o],[h,m]=e.coords.major,d=e.labels.major;this.visuals.major_label_text.set_value(t),t.save(),t.translate(a+n,l+_);for(let e=0,s=h.length;e<s;e++)t.fillText(d[e],Math.round(h[e]+i*this.model.label_standoff),Math.round(m[e]+o*this.model.label_standoff));t.restore()}_draw_title(t){this.visuals.title_text.doit&&(t.save(),this.visuals.title_text.set_value(t),t.fillText(this.model.title,0,-this.model.title_standoff),t.restore())}_get_label_extent(){const t=this.tick_info().labels.major;let e;if(null==this.model.color_mapper.low||null==this.model.color_mapper.high||p.isEmpty(t))e=0;else{const{ctx:i}=this.plot_view.canvas_view;switch(i.save(),this.visuals.major_label_text.set_value(i),this.model.orientation){case"vertical":e=c.max(t.map(t=>i.measureText(t.toString()).width));break;case"horizontal":e=d.measure_font(this.visuals.major_label_text.font_value()).height}e+=this.model.label_standoff,i.restore()}return e}_get_image_offset(){return{x:this.model.padding,y:this.model.padding+this._title_extent()}}_normals(){return"vertical"==this.model.orientation?[1,0]:[0,1]}_title_extent(){const t=this.model.title_text_font+" "+this.model.title_text_font_size+" "+this.model.title_text_font_style;return this.model.title?d.measure_font(t).height+this.model.title_standoff:0}_tick_extent(){return null!=this.model.color_mapper.low&&null!=this.model.color_mapper.high?c.max([this.model.major_tick_out,this.model.minor_tick_out]):0}_computed_image_dimensions(){const t=this.plot_view.frame._height.value,e=this.plot_view.frame._width.value,i=this._title_extent();let o,s;switch(this.model.orientation){case"vertical":"auto"==this.model.height?null!=this.panel?o=t-2*this.model.padding-i:(o=c.max([25*this.model.color_mapper.palette.length,.3*t]),o=c.min([o,.8*t-2*this.model.padding-i])):o=this.model.height,s="auto"==this.model.width?25:this.model.width;break;case"horizontal":o="auto"==this.model.height?25:this.model.height,"auto"==this.model.width?null!=this.panel?s=e-2*this.model.padding:(s=c.max([25*this.model.color_mapper.palette.length,.3*e]),s=c.min([s,.8*e-2*this.model.padding])):s=this.model.width}return{width:s,height:o}}_tick_coordinate_scale(t){const e={source_range:new h.Range1d({start:this.model.color_mapper.low,end:this.model.color_mapper.high}),target_range:new h.Range1d({start:0,end:t})};switch(this.model.color_mapper.type){case"LinearColorMapper":return new n.LinearScale(e);case"LogColorMapper":return new _.LogScale(e);default:f.unreachable()}}_format_major_labels(t,e){const i=this.model.formatter.doFormat(t,null);for(let t=0,o=e.length;t<o;t++)e[t]in this.model.major_label_overrides&&(i[t]=this.model.major_label_overrides[e[t]]);return i}tick_info(){const t=this._computed_image_dimensions();let e;switch(this.model.orientation){case"vertical":e=t.height;break;case"horizontal":e=t.width}const i=this._tick_coordinate_scale(e),[o,s]=this._normals(),[a,l]=[this.model.color_mapper.low,this.model.color_mapper.high],r=this.model.ticker.get_ticks(a,l,null,null,this.model.ticker.desired_num_ticks),n=r.major,_=r.minor,h=[[],[]],m=[[],[]];for(let t=0,e=n.length;t<e;t++)n[t]<a||n[t]>l||(h[o].push(n[t]),h[s].push(0));for(let t=0,e=_.length;t<e;t++)_[t]<a||_[t]>l||(m[o].push(_[t]),m[s].push(0));const d={major:this._format_major_labels(h[o],n)},c={major:[[],[]],minor:[[],[]]};return c.major[o]=i.v_compute(h[o]),c.minor[o]=i.v_compute(m[o]),c.major[s]=h[s],c.minor[s]=m[s],"vertical"==this.model.orientation&&(c.major[o]=u.map(c.major[o],t=>e-t),c.minor[o]=u.map(c.minor[o],t=>e-t)),{coords:c,labels:d}}}i.ColorBarView=b,b.__name__="ColorBarView";class v extends s.Annotation{constructor(t){super(t)}static init_ColorBar(){this.prototype.default_view=b,this.mixins(["text:major_label_","text:title_","line:major_tick_","line:minor_tick_","line:border_","line:bar_","fill:background_"]),this.define({location:[m.Any,"top_right"],orientation:[m.Orientation,"vertical"],title:[m.String],title_standoff:[m.Number,2],width:[m.Any,"auto"],height:[m.Any,"auto"],scale_alpha:[m.Number,1],ticker:[m.Instance,()=>new a.BasicTicker],formatter:[m.Instance,()=>new l.BasicTickFormatter],major_label_overrides:[m.Any,{}],color_mapper:[m.Instance],label_standoff:[m.Number,5],margin:[m.Number,30],padding:[m.Number,10],major_tick_in:[m.Number,5],major_tick_out:[m.Number,0],minor_tick_in:[m.Number,0],minor_tick_out:[m.Number,0]}),this.override({background_fill_color:"#ffffff",background_fill_alpha:.95,bar_line_color:null,border_line_color:null,major_label_text_align:"center",major_label_text_baseline:"middle",major_label_text_font_size:"11px",major_tick_line_color:"#ffffff",minor_tick_line_color:null,title_text_font_size:"13px",title_text_font_style:"italic"})}}i.ColorBar=v,v.__name__="ColorBar",v.init_ColorBar()},n function _(e,c,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(109);class r extends i.AdaptiveTicker{constructor(e){super(e)}}s.BasicTicker=r,r.__name__="BasicTicker"},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const a=t(1),s=t(110),n=t(9),r=a.__importStar(t(19));class _ extends s.ContinuousTicker{constructor(t){super(t)}static init_AdaptiveTicker(){this.define({base:[r.Number,10],mantissas:[r.Array,[1,2,5]],min_interval:[r.Number,0],max_interval:[r.Number]})}initialize(){super.initialize();const t=n.nth(this.mantissas,-1)/this.base,i=n.nth(this.mantissas,0)*this.base;this.extended_mantissas=[t,…this.mantissas,i],this.base_factor=0===this.get_min_interval()?1:this.get_min_interval()}get_interval(t,i,e){const a=i-t,s=this.get_ideal_interval(t,i,e),r=Math.floor(function(t,i=Math.E){return Math.log(t)/Math.log(i)}(s/this.base_factor,this.base)),_=this.base**r*this.base_factor,h=this.extended_mantissas,m=h.map(t=>Math.abs(e-a/(t*_))),o=h[n.argmin(m)];return c=o*_,l=this.get_min_interval(),u=this.get_max_interval(),Math.max(l,Math.min(u,c));var c,l,u}}e.AdaptiveTicker=_,_.__name__="AdaptiveTicker",_.init_AdaptiveTicker()},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const n=t(1),r=t(111),s=n.__importStar(t(19)),o=t(9),_=t(8);class c extends r.Ticker{constructor(t){super(t)}static init_ContinuousTicker(){this.define({num_minor_ticks:[s.Number,5],desired_num_ticks:[s.Number,6]})}get_ticks(t,i,e,n,r){return this.get_ticks_no_defaults(t,i,n,this.desired_num_ticks)}get_ticks_no_defaults(t,i,e,n){const r=this.get_interval(t,i,n),s=Math.floor(t/r),c=Math.ceil(i/r);let u;u=_.isStrictNaN(s)||_.isStrictNaN(c)?[]:o.range(s,c+1);const a=u.map(t=>t*r).filter(e=>t<=e&&e<=i),l=this.num_minor_ticks,m=[];if(l>0&&a.length>0){const e=r/l,n=o.range(0,l).map(t=>t*e);for(const e of n.slice(1)){const n=a[0]-e;t<=n&&n<=i&&m.push(n)}for(const e of a)for(const r of n){const n=e+r;t<=n&&n<=i&&m.push(n)}}return{major:a,minor:m}}get_min_interval(){return this.min_interval}get_max_interval(){return null!=this.max_interval?this.max_interval:1/0}get_ideal_interval(t,i,e){return(i-t)/e}}e.ContinuousTicker=c,c.__name__="ContinuousTicker",c.init_ContinuousTicker()},n function _(e,c,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(69);class r extends o.Model{constructor(e){super(e)}}n.Ticker=r,r.__name__="Ticker"},n function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=i(1),s=i(113),n=r.__importStar(i(19));class o extends s.TickFormatter{constructor(i){super(i),this.last_precision=3}static init_BasicTickFormatter(){this.define({precision:[n.Any,"auto"],use_scientific:[n.Boolean,!0],power_limit_high:[n.Number,5],power_limit_low:[n.Number,-3]})}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}_need_sci(i){if(!this.use_scientific)return!1;const{scientific_limit_high:t}=this,{scientific_limit_low:e}=this,r=i.length<2?0:Math.abs(i[1]-i[0])/1e4;for(const s of i){const i=Math.abs(s);if(!(i<=r)&&(i>=t||i<=e))return!0}return!1}_format_with_precision(i,t,e){const r=new Array(i.length);if(t)for(let t=0,s=i.length;t<s;t++)r[t]=i[t].toExponential(e);else for(let t=0,s=i.length;t<s;t++)r[t]=i[t].toFixed(e).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");return r}_auto_precision(i,t){const e=new Array(i.length),r=this.last_precision<=15;i:for(let s=this.last_precision;r?s<=15:s>=1;r?s++:s–){if(t){e[0]=i[0].toExponential(s);for(let t=1;t<i.length;t++)if(e[t]==e[t-1])continue i;this.last_precision=s;break}e[0]=i[0].toFixed(s).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");for(let t=1;t<i.length;t++)if(e[t]=i[t].toFixed(s).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,""),e[t]==e[t-1])continue i;this.last_precision=s;break}return this.last_precision}doFormat(i,t){if(0==i.length)return[];const e=this._need_sci(i),r="auto"==this.precision?this._auto_precision(i,e):this.precision;return this._format_with_precision(i,e,r)}}e.BasicTickFormatter=o,o.__name__="BasicTickFormatter",o.init_BasicTickFormatter()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(69);class c extends r.Model{constructor(e){super(e)}}o.TickFormatter=c,c.__name__="TickFormatter"},n function _(o,n,l){Object.defineProperty(l,"__esModule",{value:!0});const e=o(115),t=o(12);class i extends e.ContinuousColorMapper{constructor(o){super(o)}_v_compute(o,n,l,e){const{nan_color:i,low_color:r,high_color:s}=e,c=null!=this.low?this.low:t.min(o),h=null!=this.high?this.high:t.max(o),u=l.length-1,a=1/(h-c),_=1/l.length;for(let e=0,t=o.length;e<t;e++){const t=o[e];if(isNaN(t)){n[e]=i;continue}if(t==h){n[e]=l[u];continue}const p=(t-c)*a,f=Math.floor(p/_);n[e]=f<0?null!=r?r:l[0]:f>u?null!=s?s:l[u]:l[f]}}}l.LinearColorMapper=i,i.__name__="LinearColorMapper"},n function _(o,r,l){Object.defineProperty(l,"__esModule",{value:!0});const i=o(1),t=o(116),e=i.__importStar(o(19));class s extends t.ColorMapper{constructor(o){super(o)}static init_ContinuousColorMapper(){this.define({high:[e.Number],low:[e.Number],high_color:[e.Color],low_color:[e.Color]})}_colors(o){return Object.assign(Object.assign({},super._colors(o)),{low_color:null!=this.low_color?o(this.low_color):void 0,high_color:null!=this.high_color?o(this.high_color):void 0})}}l.ContinuousColorMapper=s,s.__name__="ContinuousColorMapper",s.init_ContinuousColorMapper()},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const n=t(1),o=t(117),_=n.__importStar(t(19)),i=t(8),l=t(21),c=t(101);function a(t){return i.isNumber(t)?t:("#"!=t[0]&&(t=l.color2hex(t)),9!=t.length&&(t+="ff"),parseInt(t.slice(1),16))}function s(t){const e=new Uint32Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=a(t[r]);return e}function p(t){if(c.is_little_endian){const e=new DataView(t.buffer);for(let r=0,n=t.length;r<n;r++)e.setUint32(4*r,t[r])}return new Uint8Array(t.buffer)}r._convert_color=a,r._convert_palette=s,r._uint32_to_rgba=p;class u extends o.Mapper{constructor(t){super(t)}static init_ColorMapper(){this.define({palette:[_.Any],nan_color:[_.Color,"gray"]})}v_compute(t){const e=new Array(t.length);return this._v_compute(t,e,this.palette,this._colors(t=>t)),e}get rgba_mapper(){const t=this,e=s(this.palette),r=this._colors(a);return{v_compute(n){const o=new Uint32Array(n.length);return t._v_compute(n,o,e,r),p(o)}}}_colors(t){return{nan_color:t(this.nan_color)}}}r.ColorMapper=u,u.__name__="ColorMapper",u.init_ColorMapper()},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(118);class s extends o.Transform{constructor(e){super(e)}compute(e){throw new Error("mapping single values is not supported")}}n.Mapper=s,s.__name__="Mapper"},n function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(69);class s extends r.Model{constructor(e){super(e)}}o.Transform=s,s.__name__="Transform"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e(120);class _ extends r.ContinuousScale{constructor(e){super(e)}compute(e){return this._linear_compute(e)}v_compute(e){return this._linear_v_compute(e)}invert(e){return this._linear_invert(e)}v_invert(e){return this._linear_v_invert(e)}}n.LinearScale=_,_.__name__="LinearScale"},n function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});const c=e(121);class s extends c.Scale{constructor(e){super(e)}}o.ContinuousScale=s,s.__name__="ContinuousScale"},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const n=t(1),_=t(122),s=n.__importStar(t(19));class i extends _.Transform{constructor(t){super(t)}static init_Scale(){this.internal({source_range:[s.Any],target_range:[s.Any]})}r_compute(t,e){return this.target_range.is_reversed?[this.compute(e),this.compute(t)]:[this.compute(t),this.compute(e)]}r_invert(t,e){return this.target_range.is_reversed?[this.invert(e),this.invert(t)]:[this.invert(t),this.invert(e)]}_linear_compute(t){const[e,r]=this._linear_compute_state();return e*t+r}_linear_v_compute(t){const[e,r]=this._linear_compute_state(),n=new Float64Array(t.length);for(let _=0;_<t.length;_++)n[_]=e*t[_]+r;return n}_linear_invert(t){const[e,r]=this._linear_compute_state();return(t-r)/e}_linear_v_invert(t){const[e,r]=this._linear_compute_state(),n=new Float64Array(t.length);for(let _=0;_<t.length;_++)n[_]=(t[_]-r)/e;return n}_linear_compute_state(){const t=this.source_range.start,e=this.source_range.end,r=this.target_range.start,n=(this.target_range.end-r)/(e-t);return[n,-n*t+r]}}r.Scale=i,i.__name__="Scale",i.init_Scale()},n function _(r,o,t){Object.defineProperty(t,"__esModule",{value:!0});var e=r(123);t.CustomJSTransform=e.CustomJSTransform;var a=r(124);t.Dodge=a.Dodge;var n=r(125);t.Interpolator=n.Interpolator;var p=r(126);t.Jitter=p.Jitter;var l=r(127);t.LinearInterpolator=l.LinearInterpolator;var v=r(128);t.StepInterpolator=v.StepInterpolator;var s=r(118);t.Transform=s.Transform},n function _(t,r,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),e=t(118),a=n.__importStar(t(19)),o=t(24),u=t(26);class i extends e.Transform{constructor(t){super(t)}static init_CustomJSTransform(){this.define({args:[a.Any,{}],func:[a.String,""],v_func:[a.String,""]})}get names(){return o.keys(this.args)}get values(){return o.values(this.args)}_make_transform(t,r){return new Function(…this.names,t,u.use_strict(r))}get scalar_transform(){return this._make_transform("x",this.func)}get vector_transform(){return this._make_transform("xs",this.v_func)}compute(t){return this.scalar_transform(…this.values,t)}v_compute(t){return this.vector_transform(…this.values,t)}}s.CustomJSTransform=i,i.__name__="CustomJSTransform",i.init_CustomJSTransform()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(1),o=e(118),i=e(88),s=n.__importStar(e(19)),a=e(8);class c extends o.Transform{constructor(e){super(e)}static init_Dodge(){this.define({value:[s.Number,0],range:[s.Instance]})}v_compute(e){let t;if(this.range instanceof i.FactorRange)t=this.range.v_synthetic(e);else{if(!a.isArrayableOf(e,a.isNumber))throw new Error("unexpected");t=e}const r=new Float64Array(t.length);for(let e=0;e<t.length;e++){const n=t[e];r[e]=this._compute(n)}return r}compute(e){if(this.range instanceof i.FactorRange)return this._compute(this.range.synthetic(e));if(a.isNumber(e))return this._compute(e);throw new Error("unexpected")}_compute(e){return e+this.value}}r.Dodge=c,c.__name__="Dodge",c.init_Dodge()},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const s=t(1),o=t(118),n=s.__importStar(t(19)),i=t(9),a=t(8);class h extends o.Transform{constructor(t){super(t),this._sorted_dirty=!0}static init_Interpolator(){this.define({x:[n.Any],y:[n.Any],data:[n.Any],clip:[n.Boolean,!0]})}connect_signals(){super.connect_signals(),this.connect(this.change,()=>this._sorted_dirty=!0)}v_compute(t){const e=new Float64Array(t.length);for(let r=0;r<t.length;r++){const s=t[r];e[r]=this.compute(s)}return e}sort(t=!1){if(!this._sorted_dirty)return;let e,r;if(a.isString(this.x)&&a.isString(this.y)&&null!=this.data){const t=this.data.columns();if(!i.includes(t,this.x))throw new Error("The x parameter does not correspond to a valid column name defined in the data parameter");if(!i.includes(t,this.y))throw new Error("The y parameter does not correspond to a valid column name defined in the data parameter");e=this.data.get_column(this.x),r=this.data.get_column(this.y)}else{if(!a.isArray(this.x)||!a.isArray(this.y))throw new Error("parameters ‘x’ and ‘y’ must be both either string fields or arrays");e=this.x,r=this.y}if(e.length!==r.length)throw new Error("The length for x and y do not match");if(e.length<2)throw new Error("x and y must have at least two elements to support interpolation");const s=[];for(const t in e)s.push({x:e[t],y:r[t]});t?s.sort((t,e)=>t.x>e.x?-1:t.x==e.x?0:1):s.sort((t,e)=>t.x<e.x?-1:t.x==e.x?0:1),this._x_sorted=[],this._y_sorted=[];for(const{x:t,y:e}of s)this._x_sorted.push(t),this._y_sorted.push(e);this._sorted_dirty=!1}}r.Interpolator=h,h.__name__="Interpolator",h.init_Interpolator()},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),n=t(118),s=t(88),o=t(8),u=i.__importStar(t(19)),a=i.__importStar(t(10));class h extends n.Transform{constructor(t){super(t)}static init_Jitter(){this.define({mean:[u.Number,0],width:[u.Number,1],distribution:[u.Distribution,"uniform"],range:[u.Instance]}),this.internal({previous_values:[u.Array]})}v_compute(t){if(null!=this.previous_values&&this.previous_values.length==t.length)return this.previous_values;let e;if(this.range instanceof s.FactorRange)e=this.range.v_synthetic(t);else{if(!o.isArrayableOf(t,o.isNumber))throw new Error("unexpected");e=t}const r=new Float64Array(e.length);for(let t=0;t<e.length;t++){const i=e[t];r[t]=this._compute(i)}return this.previous_values=r,r}compute(t){if(this.range instanceof s.FactorRange)return this._compute(this.range.synthetic(t));if(o.isNumber(t))return this._compute(t);throw new Error("unexpected")}_compute(t){switch(this.distribution){case"uniform":return t+this.mean+(a.random()-.5)*this.width;case"normal":return t+a.rnorm(this.mean,this.width)}}}r.Jitter=h,h.__name__="Jitter",h.init_Jitter()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const _=t(9),r=t(125);class o extends r.Interpolator{constructor(t){super(t)}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}if(t==this._x_sorted[0])return this._y_sorted[0];const s=_.find_last_index(this._x_sorted,s=>s<t),e=this._x_sorted[s],r=this._x_sorted[s+1],o=this._y_sorted[s],i=this._y_sorted[s+1];return o+(t-e)/(r-e)*(i-o)}}e.LinearInterpolator=o,o.__name__="LinearInterpolator"},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const s=t(1),o=t(125),_=s.__importStar(t(19)),i=t(9);class n extends o.Interpolator{constructor(t){super(t)}static init_StepInterpolator(){this.define({mode:[_.StepMode,"after"]})}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}let e;switch(this.mode){case"after":e=i.find_last_index(this._x_sorted,e=>t>=e);break;case"before":e=i.find_index(this._x_sorted,e=>t<=e);break;case"center":{const r=this._x_sorted.map(e=>Math.abs(e-t)),s=i.min(r);e=i.find_index(r,t=>s===t);break}default:throw new Error(unknown mode: ${this.mode})}return-1!=e?this._y_sorted[e]:NaN}}r.StepInterpolator=n,n.__name__="StepInterpolator",n.init_StepInterpolator()},n function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const a=t(120);class s extends a.ContinuousScale{constructor(t){super(t)}compute(t){const[e,o,a,s]=this._compute_state();let n;if(0==a)n=0;else{const r=(Math.log(t)-s)/a;n=isFinite(r)?r*e+o:NaN}return n}v_compute(t){const[e,o,a,s]=this._compute_state(),n=new Float64Array(t.length);if(0==a)for(let e=0;e<t.length;e++)n[e]=0;else for(let r=0;r<t.length;r++){const l=(Math.log(t[r])-s)/a;let c;c=isFinite(l)?l*e+o:NaN,n[r]=c}return n}invert(t){const[e,o,a,s]=this._compute_state(),n=(t-o)/e;return Math.exp(a*n+s)}v_invert(t){const[e,o,a,s]=this._compute_state(),n=new Float64Array(t.length);for(let r=0;r<t.length;r++){const l=(t[r]-o)/e;n[r]=Math.exp(a*l+s)}return n}_get_safe_factor(t,e){let o=t<0?0:t,a=e<0?0:e;if(o==a)if(0==o)[o,a]=[1,10];else{const t=Math.log(o)/Math.log(10);o=10**Math.floor(t),a=Math.ceil(t)!=Math.floor(t)?10**Math.ceil(t):10**(Math.ceil(t)+1)}return[o,a]}_compute_state(){const t=this.source_range.start,e=this.source_range.end,o=this.target_range.start,a=this.target_range.end-o,[s,n]=this._get_safe_factor(t,e);let r,l;return 0==s?(r=Math.log(n),l=0):(r=Math.log(n)-Math.log(s),l=Math.log(s)),[a,o,r,l]}}o.LogScale=s,s.__name__="LogScale"},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(89),r=i.__importStar(t(19));class a extends n.Range{constructor(t){super(t)}static init_Range1d(){this.define({start:[r.Number,0],end:[r.Number,1],reset_start:[r.Number],reset_end:[r.Number]})}_set_auto_bounds(){if("auto"==this.bounds){const t=Math.min(this.reset_start,this.reset_end),e=Math.max(this.reset_start,this.reset_end);this.setv({bounds:[t,e]},{silent:!0})}}initialize(){super.initialize(),null==this.reset_start&&(this.reset_start=this.start),null==this.reset_end&&(this.reset_end=this.end),this._set_auto_bounds()}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}reset(){this._set_auto_bounds(),this.start!=this.reset_start||this.end!=this.reset_end?this.setv({start:this.reset_start,end:this.reset_end}):this.change.emit()}}s.Range1d=a,a.__name__="Range1d",a.init_Range1d()},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const o=t(66),i={};n.measure_font=function(t){if(null!=i[t])return i[t];const e=o.span({style:{font:t}},"Hg"),n=o.div({style:{display:"inline-block",width:"1px",height:"0px"}}),l=o.div({},e,n);document.body.appendChild(l);try{n.style.verticalAlign="baseline";const s=o.offset(n).top-o.offset(e).top;n.style.verticalAlign="bottom";const d=o.offset(n).top-o.offset(e).top,c={height:d,ascent:s,descent:d-s};return i[t]=c,c}finally{document.body.removeChild(l)}};const l={};n.measure_text=function(t,e){const n=l[e];if(null!=n){const e=n[t];if(null!=e)return e}else l[e]={};const i=o.div({style:{display:"inline-block","white-space":"nowrap",font:e}},t);document.body.appendChild(i);try{const{width:n,height:o}=i.getBoundingClientRect();return l[e][t]={width:n,height:o},{width:n,height:o}}finally{document.body.removeChild(i)}}},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),a=e(133),l=e(66),n=s.__importStar(e(19));class o extends a.TextAnnotationView{initialize(){super.initialize(),this.visuals.warm_cache()}_get_size(){const{ctx:e}=this.plot_view.canvas_view;this.visuals.text.set_value(e);const{width:t,ascent:i}=e.measureText(this.model.text);return{width:t,height:i}}render(){if(this.model.visible||"css"!=this.model.render_mode||l.undisplay(this.el),!this.model.visible)return;let e;switch(this.model.angle_units){case"rad":e=-this.model.angle;break;case"deg":e=-this.model.angle*Math.PI/180}const t=null!=this.panel?this.panel:this.plot_view.frame,i=this.plot_view.frame.xscales[this.model.x_range_name],s=this.plot_view.frame.yscales[this.model.y_range_name];let a="data"==this.model.x_units?i.compute(this.model.x):t.xview.compute(this.model.x),n="data"==this.model.y_units?s.compute(this.model.y):t.yview.compute(this.model.y);a+=this.model.x_offset,n-=this.model.y_offset,("canvas"==this.model.render_mode?this._canvas_text.bind(this):this._css_text.bind(this))(this.plot_view.canvas_view.ctx,this.model.text,a,n,e)}}i.LabelView=o,o.__name__="LabelView";class _ extends a.TextAnnotation{constructor(e){super(e)}static init_Label(){this.prototype.default_view=o,this.mixins(["text","line:border_","fill:background_"]),this.define({x:[n.Number],x_units:[n.SpatialUnits,"data"],y:[n.Number],y_units:[n.SpatialUnits,"data"],text:[n.String],angle:[n.Angle,0],angle_units:[n.AngleUnits,"rad"],x_offset:[n.Number,0],y_offset:[n.Number,0],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({background_fill_color:null,border_line_color:null})}}i.Label=_,_.__name__="Label",_.init_Label()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),l=e(29),a=e(66),n=i.__importStar(e(19)),o=e(131),r=e(106),_=e(11);class h extends l.AnnotationView{constructor(){super(…arguments),this.rotate=!0}initialize(){super.initialize(),"css"==this.model.render_mode&&(this.el.classList.add(r.bk_annotation),this.plot_view.canvas_view.add_overlay(this.el))}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?this.connect(this.model.change,()=>this.render()):this.connect(this.model.change,()=>this.plot_view.request_render())}_calculate_text_dimensions(e,t){const{width:s}=e.measureText(t),{height:i}=o.measure_font(this.visuals.text.font_value());return[s,i]}_calculate_bounding_box_dimensions(e,t){const[s,i]=this._calculate_text_dimensions(e,t);let l,a;switch(e.textAlign){case"left":l=0;break;case"center":l=-s/2;break;case"right":l=-s;break;default:_.unreachable()}switch(e.textBaseline){case"top":a=0;break;case"middle":a=-.5*i;break;case"bottom":a=-1*i;break;case"alphabetic":a=-.8*i;break;case"hanging":a=-.17*i;break;case"ideographic":a=-.83*i;break;default:_.unreachable()}return[l,a,s,i]}_canvas_text(e,t,s,i,l){this.visuals.text.set_value(e);const a=this._calculate_bounding_box_dimensions(e,t);e.save(),e.beginPath(),e.translate(s,i),l&&e.rotate(l),e.rect(a[0],a[1],a[2],a[3]),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(e),e.fill()),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(e),e.stroke()),this.visuals.text.doit&&(this.visuals.text.set_value(e),e.fillText(t,0,0)),e.restore()}_css_text(e,t,s,i,l){a.undisplay(this.el),this.visuals.text.set_value(e);const n=this._calculate_bounding_box_dimensions(e,t),o=this.visuals.border_line.line_dash.value().length<2?"solid":"dashed";this.visuals.border_line.set_value(e),this.visuals.background_fill.set_value(e),this.el.style.position="absolute",this.el.style.left=`${s+n[0]}px`,this.el.style.top=`${i+n[1]}px`,this.el.style.color=`${this.visuals.text.text_color.value()}`,this.el.style.opacity=`${this.visuals.text.text_alpha.value()}`,this.el.style.font=`${this.visuals.text.font_value()}`,this.el.style.lineHeight="normal",l&&(this.el.style.transform=`rotate(${l}rad)`),this.visuals.background_fill.doit&&(this.el.style.backgroundColor=`${this.visuals.background_fill.color_value()}`),this.visuals.border_line.doit&&(this.el.style.borderStyle=`${o}`,this.el.style.borderWidth=`${this.visuals.border_line.line_width.value()}px`,this.el.style.borderColor=`${this.visuals.border_line.color_value()}`),this.el.textContent=t,a.display(this.el)}}s.TextAnnotationView=h,h.__name__="TextAnnotationView";class c extends l.Annotation{constructor(e){super(e)}static init_TextAnnotation(){this.define({render_mode:[n.RenderMode,"canvas"]})}}s.TextAnnotation=c,c.__name__="TextAnnotation",c.init_TextAnnotation()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),l=t(133),o=t(73),a=t(66),n=i.__importStar(t(19)),r=t(106);class _ extends l.TextAnnotationView{initialize(){if(super.initialize(),this.set_data(this.model.source),"css"==this.model.render_mode)for(let t=0,e=this._text.length;t<e;t++){const t=a.div({class:r.bk_annotation_child,style:{display:"none"}});this.el.appendChild(t)}}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?(this.connect(this.model.change,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.streaming,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.patching,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.change,()=>{this.set_data(this.model.source),this.render()})):(this.connect(this.model.change,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.streaming,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.patching,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.change,()=>{this.set_data(this.model.source),this.plot_view.request_render()}))}set_data(t){super.set_data(t),this.visuals.warm_cache(t)}_map_data(){const t=this.plot_view.frame.xscales[this.model.x_range_name],e=this.plot_view.frame.yscales[this.model.y_range_name],s=null!=this.panel?this.panel:this.plot_view.frame;return["data"==this.model.x_units?t.v_compute(this._x):s.xview.v_compute(this._x),"data"==this.model.y_units?e.v_compute(this._y):s.yview.v_compute(this._y)]}render(){if(this.model.visible||"css"!=this.model.render_mode||a.undisplay(this.el),!this.model.visible)return;const t="canvas"==this.model.render_mode?this._v_canvas_text.bind(this):this._v_css_text.bind(this),{ctx:e}=this.plot_view.canvas_view,[s,i]=this._map_data();for(let l=0,o=this._text.length;l<o;l++)t(e,l,this._text[l],s[l]+this._x_offset[l],i[l]-this._y_offset[l],this._angle[l])}_get_size(){const{ctx:t}=this.plot_view.canvas_view;this.visuals.text.set_value(t);const{width:e,ascent:s}=t.measureText(this._text[0]);return{width:e,height:s}}_v_canvas_text(t,e,s,i,l,o){this.visuals.text.set_vectorize(t,e);const a=this._calculate_bounding_box_dimensions(t,s);t.save(),t.beginPath(),t.translate(i,l),t.rotate(o),t.rect(a[0],a[1],a[2],a[3]),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_vectorize(t,e),t.fill()),this.visuals.border_line.doit&&(this.visuals.border_line.set_vectorize(t,e),t.stroke()),this.visuals.text.doit&&(this.visuals.text.set_vectorize(t,e),t.fillText(s,0,0)),t.restore()}_v_css_text(t,e,s,i,l,o){const n=this.el.children[e];n.textContent=s,this.visuals.text.set_vectorize(t,e);const r=this._calculate_bounding_box_dimensions(t,s),_=this.visuals.border_line.line_dash.value().length<2?"solid":"dashed";this.visuals.border_line.set_vectorize(t,e),this.visuals.background_fill.set_vectorize(t,e),n.style.position="absolute",n.style.left=`${i+r[0]}px`,n.style.top=`${l+r[1]}px`,n.style.color=`${this.visuals.text.text_color.value()}`,n.style.opacity=`${this.visuals.text.text_alpha.value()}`,n.style.font=`${this.visuals.text.font_value()}`,n.style.lineHeight="normal",o&&(n.style.transform=`rotate(${o}rad)`),this.visuals.background_fill.doit&&(n.style.backgroundColor=`${this.visuals.background_fill.color_value()}`),this.visuals.border_line.doit&&(n.style.borderStyle=`${_}`,n.style.borderWidth=`${this.visuals.border_line.line_width.value()}px`,n.style.borderColor=`${this.visuals.border_line.color_value()}`),a.display(n)}}s.LabelSetView=_,_.__name__="LabelSetView";class h extends l.TextAnnotation{constructor(t){super(t)}static init_LabelSet(){this.prototype.default_view=_,this.mixins(["text","line:border_","fill:background_"]),this.define({x:[n.NumberSpec],y:[n.NumberSpec],x_units:[n.SpatialUnits,"data"],y_units:[n.SpatialUnits,"data"],text:[n.StringSpec,{field:"text"}],angle:[n.AngleSpec,0],x_offset:[n.NumberSpec,{value:0}],y_offset:[n.NumberSpec,{value:0}],source:[n.Instance,()=>new o.ColumnDataSource],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({background_fill_color:null,border_line_color:null})}}s.LabelSet=h,h.__name__="LabelSet",h.init_LabelSet()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),l=t(29),n=s.__importStar(t(19)),h=t(14),a=t(131),_=t(85),o=t(9),r=t(24),d=t(8),c=t(11);class m extends l.AnnotationView{cursor(t,e){return"none"==this.model.click_policy?null:"pointer"}get legend_padding(){return null!=this.visuals.border_line.line_color.value()?this.model.padding:0}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.item_change,()=>this.plot_view.request_render())}compute_legend_bbox(){const t=this.model.get_legend_names(),{glyph_height:e,glyph_width:i}=this.model,{label_height:s,label_width:l}=this.model;this.max_label_height=o.max([a.measure_font(this.visuals.label_text.font_value()).height,s,e]);const{ctx:n}=this.plot_view.canvas_view;n.save(),this.visuals.label_text.set_value(n),this.text_widths={};for(const e of t)this.text_widths[e]=o.max([n.measureText(e).width,l]);this.visuals.title_text.set_value(n),this.title_height=this.model.title?a.measure_font(this.visuals.title_text.font_value()).height+this.model.title_standoff:0,this.title_width=this.model.title?n.measureText(this.model.title).width:0,n.restore();const h=Math.max(o.max(r.values(this.text_widths)),0),m=this.model.margin,{legend_padding:g}=this,b=this.model.spacing,{label_standoff:f}=this.model;let u,x;if("vertical"==this.model.orientation)u=t.length*this.max_label_height+Math.max(t.length-1,0)*b+2*g+this.title_height,x=o.max([h+i+f+2*g,this.title_width+2*g]);else{let e=2*g+Math.max(t.length-1,0)*b;for(const t in this.text_widths){const s=this.text_widths[t];e+=o.max([s,l])+i+f}x=o.max([this.title_width+2*g,e]),u=this.max_label_height+this.title_height+2*g}const p=null!=this.panel?this.panel:this.plot_view.frame,[v,w]=p.bbox.ranges,{location:y}=this.model;let k,N;if(d.isString(y))switch(y){case"top_left":k=v.start+m,N=w.start+m;break;case"top_center":k=(v.end+v.start)/2-x/2,N=w.start+m;break;case"top_right":k=v.end-m-x,N=w.start+m;break;case"bottom_right":k=v.end-m-x,N=w.end-m-u;break;case"bottom_center":k=(v.end+v.start)/2-x/2,N=w.end-m-u;break;case"bottom_left":k=v.start+m,N=w.end-m-u;break;case"center_left":k=v.start+m,N=(w.end+w.start)/2-u/2;break;case"center":k=(v.end+v.start)/2-x/2,N=(w.end+w.start)/2-u/2;break;case"center_right":k=v.end-m-x,N=(w.end+w.start)/2-u/2}else if(d.isArray(y)&&2==y.length){const[t,e]=y;k=p.xview.compute(t),N=p.yview.compute(e)-u}else c.unreachable();return new _.BBox({left:k,top:N,width:x,height:u})}interactive_bbox(){return this.compute_legend_bbox()}interactive_hit(t,e){return this.interactive_bbox().contains(t,e)}on_hit(t,e){let i;const{glyph_width:s}=this.model,{legend_padding:l}=this,n=this.model.spacing,{label_standoff:h}=this.model;let a=i=l;const o=this.compute_legend_bbox(),r="vertical"==this.model.orientation;for(const d of this.model.items){const c=d.get_labels_list_from_label_prop();for(const m of c){const c=o.x+a,g=o.y+i+this.title_height;let b,f;if([b,f]=r?[o.width-2*l,this.max_label_height]:[this.text_widths[m]+s+h,this.max_label_height],new _.BBox({left:c,top:g,width:b,height:f}).contains(t,e)){switch(this.model.click_policy){case"hide":for(const t of d.renderers)t.visible=!t.visible;break;case"mute":for(const t of d.renderers)t.muted=!t.muted}return!0}r?i+=this.max_label_height+n:a+=this.text_widths[m]+s+h+n}}return!1}render(){if(!this.model.visible)return;if(0==this.model.items.length)return;for(const t of this.model.items)t.legend=this.model;const{ctx:t}=this.plot_view.canvas_view,e=this.compute_legend_bbox();t.save(),this._draw_legend_box(t,e),this._draw_legend_items(t,e),this.model.title&&this._draw_title(t,e),t.restore()}_draw_legend_box(t,e){t.beginPath(),t.rect(e.x,e.y,e.width,e.height),this.visuals.background_fill.set_value(t),t.fill(),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.stroke())}_draw_legend_items(t,e){const{glyph_width:i,glyph_height:s}=this.model,{legend_padding:l}=this,n=this.model.spacing,{label_standoff:h}=this.model;let a=l,_=l;const r="vertical"==this.model.orientation;for(const d of this.model.items){const c=d.get_labels_list_from_label_prop(),m=d.get_field_from_label_prop();if(0==c.length)continue;const g=(()=>{switch(this.model.click_policy){case"none":return!0;case"hide":return o.every(d.renderers,t=>t.visible);case"mute":return o.every(d.renderers,t=>!t.muted)}})();for(const o of c){const c=e.x+a,b=e.y+_+this.title_height,f=c+i,u=b+s;r?_+=this.max_label_height+n:a+=this.text_widths[o]+i+h+n,this.visuals.label_text.set_value(t),t.fillText(o,f+h,b+this.max_label_height/2);for(const e of d.renderers){this.plot_view.renderer_views[e.id].draw_legend(t,c,f,b,u,m,o,d.index)}if(!g){let s,n;[s,n]=r?[e.width-2*l,this.max_label_height]:[this.text_widths[o]+i+h,this.max_label_height],t.beginPath(),t.rect(c,b,s,n),this.visuals.inactive_fill.set_value(t),t.fill()}}}}_draw_title(t,e){this.visuals.title_text.doit&&(t.save(),t.translate(e.x0,e.y0+this.title_height),this.visuals.title_text.set_value(t),t.fillText(this.model.title,this.legend_padding,this.legend_padding-this.model.title_standoff),t.restore())}_get_size(){const{width:t,height:e}=this.compute_legend_bbox();return{width:t+2*this.model.margin,height:e+2*this.model.margin}}}i.LegendView=m,m.__name__="LegendView";class g extends l.Annotation{constructor(t){super(t)}initialize(){super.initialize(),this.item_change=new h.Signal0(this,"item_change")}static init_Legend(){this.prototype.default_view=m,this.mixins(["text:label_","text:title_","fill:inactive_","line:border_","fill:background_"]),this.define({orientation:[n.Orientation,"vertical"],location:[n.Any,"top_right"],title:[n.String],title_standoff:[n.Number,5],label_standoff:[n.Number,5],glyph_height:[n.Number,20],glyph_width:[n.Number,20],label_height:[n.Number,20],label_width:[n.Number,20],margin:[n.Number,10],padding:[n.Number,10],spacing:[n.Number,3],items:[n.Array,[]],click_policy:[n.Any,"none"]}),this.override({border_line_color:"#e5e5e5",border_line_alpha:.5,border_line_width:1,background_fill_color:"#ffffff",background_fill_alpha:.95,inactive_fill_color:"white",inactive_fill_alpha:.7,label_text_font_size:"13px",label_text_baseline:"middle",title_text_font_size:"13px",title_text_font_style:"italic"})}get_legend_names(){const t=[];for(const e of this.items){const i=e.get_labels_list_from_label_prop();t.push(…i)}return t}}i.Legend=g,g.__name__="Legend",g.init_Legend()},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),l=e(69),i=e(74),s=e(137),_=t.__importStar(e(19)),o=e(70),a=e(9);class u extends l.Model{constructor(e){super(e)}static init_LegendItem(){this.define({label:[_.StringSpec,null],renderers:[_.Array,[]],index:[_.Number,null]})}_check_data_sources_on_renderers(){if(null!=this.get_field_from_label_prop()){if(this.renderers.length<1)return!1;const e=this.renderers[0].data_source;if(null!=e)for(const r of this.renderers)if(r.data_source!=e)return!1}return!0}_check_field_label_on_data_source(){const e=this.get_field_from_label_prop();if(null!=e){if(this.renderers.length<1)return!1;const r=this.renderers[0].data_source;if(null!=r&&!a.includes(r.columns(),e))return!1}return!0}initialize(){super.initialize(),this.legend=null,this.connect(this.change,()=>{null!=this.legend&&this.legend.item_change.emit()}),this._check_data_sources_on_renderers()||o.logger.error("Non matching data sources on legend item renderers"),this._check_field_label_on_data_source()||o.logger.error(Bad column name on label: ${this.label})}get_field_from_label_prop(){const{label:e}=this;return s.isField(e)?e.field:null}get_labels_list_from_label_prop(){if(s.isValue(this.label)){const{value:e}=this.label;return null!=e?[e]:[]}const e=this.get_field_from_label_prop();if(null!=e){let r;if(!this.renderers[0]||null==this.renderers[0].data_source)return["No source found"];if(r=this.renderers[0].data_source,r instanceof i.ColumnarDataSource){const n=r.get_column(e);return null!=n?a.uniq(Array.from(n)):["Invalid field"]}}return[]}}n.LegendItem=u,u.__name__="LegendItem",u.init_LegendItem()},n function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(8);n.isValue=function(e){return t.isPlainObject(e)&&"value"in e},n.isField=function(e){return t.isPlainObject(e)&&"field"in e}},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1),s=t(29),l=t(14),o=n.__importStar(t(19));class a extends s.AnnotationView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.data_update,()=>this.plot_view.request_render())}render(){if(!this.model.visible)return;const{xs:t,ys:e}=this.model;if(t.length!=e.length)return;if(t.length<3||e.length<3)return;const{frame:i}=this.plot_view,{ctx:n}=this.plot_view.canvas_view;for(let s=0,l=t.length;s<l;s++){let l,o;if("screen"!=this.model.xs_units)throw new Error("not implemented");if(l=this.model.screen?t[s]:i.xview.compute(t[s]),"screen"!=this.model.ys_units)throw new Error("not implemented");o=this.model.screen?e[s]:i.yview.compute(e[s]),0==s?(n.beginPath(),n.moveTo(l,o)):n.lineTo(l,o)}n.closePath(),this.visuals.line.doit&&(this.visuals.line.set_value(n),n.stroke()),this.visuals.fill.doit&&(this.visuals.fill.set_value(n),n.fill())}}i.PolyAnnotationView=a,a.__name__="PolyAnnotationView";class r extends s.Annotation{constructor(t){super(t)}static init_PolyAnnotation(){this.prototype.default_view=a,this.mixins(["line","fill"]),this.define({xs:[o.Array,[]],xs_units:[o.SpatialUnits,"data"],ys:[o.Array,[]],ys_units:[o.SpatialUnits,"data"],x_range_name:[o.String,"default"],y_range_name:[o.String,"default"]}),this.internal({screen:[o.Boolean,!1]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}initialize(){super.initialize(),this.data_update=new l.Signal0(this,"data_update")}update({xs:t,ys:e}){this.setv({xs:t,ys:e,screen:!0},{silent:!0}),this.data_update.emit()}}i.PolyAnnotation=r,r.__name__="PolyAnnotation",r.init_PolyAnnotation()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(29),l=n.__importStar(e(19));class o extends s.AnnotationView{initialize(){super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render())}render(){this.model.visible&&this._draw_slope()}_draw_slope(){const e=this.model.gradient,t=this.model.y_intercept;if(null==e||null==t)return;const{frame:i}=this.plot_view,n=i.xscales[this.model.x_range_name],s=i.yscales[this.model.y_range_name],l=i._top.value,o=l+i._height.value,a=(s.invert(l)-t)/e,_=(s.invert(o)-t)/e,r=n.compute(a),c=n.compute(_),{ctx:u}=this.plot_view.canvas_view;u.save(),u.beginPath(),this.visuals.line.set_value(u),u.moveTo(r,l),u.lineTo(c,o),u.stroke(),u.restore()}}i.SlopeView=o,o.__name__="SlopeView";class a extends s.Annotation{constructor(e){super(e)}static init_Slope(){this.prototype.default_view=o,this.mixins(["line"]),this.define({gradient:[l.Number,null],y_intercept:[l.Number,null],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"]}),this.override({line_color:"black"})}}i.Slope=a,a.__name__="Slope",a.init_Slope()},n function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),o=e(29),n=e(66),l=s.__importStar(e(19));class a extends o.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),this.el.style.position="absolute",n.undisplay(this.el)}connect_signals(){super.connect_signals(),this.model.for_hover?this.connect(this.model.properties.computed_location.change,()=>this._draw_span()):"canvas"==this.model.render_mode?(this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.properties.location.change,()=>this.plot_view.request_render())):(this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.location.change,()=>this._draw_span()))}render(){this.model.visible||"css"!=this.model.render_mode||n.undisplay(this.el),this.model.visible&&this._draw_span()}_draw_span(){const e=this.model.for_hover?this.model.computed_location:this.model.location;if(null==e)return void n.undisplay(this.el);const{frame:i}=this.plot_view,t=i.xscales[this.model.x_range_name],s=i.yscales[this.model.y_range_name],o=(i,t)=>this.model.for_hover?this.model.computed_location:"data"==this.model.location_units?i.compute(e):t.compute(e);let l,a,h,d;if("width"==this.model.dimension?(h=o(s,i.yview),a=i._left.value,d=i._width.value,l=this.model.properties.line_width.value()):(h=i._top.value,a=o(t,i.xview),d=this.model.properties.line_width.value(),l=i._height.value),"css"==this.model.render_mode)this.el.style.top=`${h}px`,this.el.style.left=`${a}px`,this.el.style.width=`${d}px`,this.el.style.height=`${l}px`,this.el.style.backgroundColor=this.model.properties.line_color.value(),this.el.style.opacity=this.model.properties.line_alpha.value(),n.display(this.el);else if("canvas"==this.model.render_mode){const{ctx:e}=this.plot_view.canvas_view;e.save(),e.beginPath(),this.visuals.line.set_value(e),e.moveTo(a,h),"width"==this.model.dimension?e.lineTo(a+d,h):e.lineTo(a,h+l),e.stroke(),e.restore()}}}t.SpanView=a,a.__name__="SpanView";class h extends o.Annotation{constructor(e){super(e)}static init_Span(){this.prototype.default_view=a,this.mixins(["line"]),this.define({render_mode:[l.RenderMode,"canvas"],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"],location:[l.Number,null],location_units:[l.SpatialUnits,"data"],dimension:[l.Dimension,"width"]}),this.override({line_color:"black"}),this.internal({for_hover:[l.Boolean,!1],computed_location:[l.Number,null]})}}t.Span=h,h.__name__="Span",h.init_Span()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1),a=e(133),s=e(66),n=e(68),o=l.__importStar(e(19));class r extends a.TextAnnotationView{initialize(){super.initialize(),this.visuals.text=new n.Text(this.model)}_get_location(){const e=this.panel,t=this.model.offset;let i,l;switch(e.side){case"above":case"below":switch(this.model.vertical_align){case"top":l=e._top.value+5;break;case"middle":l=e._vcenter.value;break;case"bottom":l=e._bottom.value-5}switch(this.model.align){case"left":i=e._left.value+t;break;case"center":i=e._hcenter.value;break;case"right":i=e._right.value-t}break;case"left":switch(this.model.vertical_align){case"top":i=e._left.value-5;break;case"middle":i=e._hcenter.value;break;case"bottom":i=e._right.value+5}switch(this.model.align){case"left":l=e._bottom.value-t;break;case"center":l=e._vcenter.value;break;case"right":l=e._top.value+t}break;case"right":switch(this.model.vertical_align){case"top":i=e._right.value-5;break;case"middle":i=e._hcenter.value;break;case"bottom":i=e._left.value+5}switch(this.model.align){case"left":l=e._top.value+t;break;case"center":l=e._vcenter.value;break;case"right":l=e._bottom.value-t}}return[i,l]}render(){if(!this.model.visible)return void("css"==this.model.render_mode&&s.undisplay(this.el));const{text:e}=this.model;if(null==e||0==e.length)return;this.model.text_baseline=this.model.vertical_align,this.model.text_align=this.model.align;const[t,i]=this._get_location(),l=this.panel.get_label_angle_heuristic("parallel");("canvas"==this.model.render_mode?this._canvas_text.bind(this):this._css_text.bind(this))(this.plot_view.canvas_view.ctx,e,t,i,l)}_get_size(){const{text:e}=this.model;if(null==e||0==e.length)return{width:0,height:0};{this.visuals.text.set_value(this.ctx);const{width:t,ascent:i}=this.ctx.measureText(e);return{width:t,height:i*this.visuals.text.text_line_height.value()+10}}}}i.TitleView=r,r.__name__="TitleView";class c extends a.TextAnnotation{constructor(e){super(e)}static init_Title(){this.prototype.default_view=r,this.mixins(["line:border_","fill:background_"]),this.define({text:[o.String],text_font:[o.Font,"helvetica"],text_font_size:[o.FontSizeSpec,"13px"],text_font_style:[o.FontStyle,"bold"],text_color:[o.ColorSpec,"#444444"],text_alpha:[o.NumberSpec,1],text_line_height:[o.Number,1],vertical_align:[o.VerticalAlign,"bottom"],align:[o.TextAlign,"left"],offset:[o.Number,0]}),this.override({background_fill_color:null,border_line_color:null}),this.internal({text_align:[o.TextAlign,"left"],text_baseline:[o.TextBaseline,"bottom"]})}}i.Title=c,c.__name__="Title",c.init_Title()},n function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(1),l=e(29),s=e(96),a=e(66),n=o.__importStar(e(19));class r extends l.AnnotationView{constructor(){super(…arguments),this.rotate=!0}initialize(){super.initialize(),this.plot_view.canvas_view.add_event(this.el)}async lazy_initialize(){this._toolbar_view=await s.build_view(this.model.toolbar,{parent:this}),this.plot_view.visibility_callbacks.push(e=>this._toolbar_view.set_visibility(e))}remove(){this._toolbar_view.remove(),super.remove()}render(){super.render(),this.model.visible?(this.el.style.position="absolute",this.el.style.overflow="hidden",a.position(this.el,this.panel.bbox),this._toolbar_view.render(),a.empty(this.el),this.el.appendChild(this._toolbar_view.el),a.display(this.el)):a.undisplay(this.el)}_get_size(){const{tools:e,logo:i}=this.model.toolbar;return{width:30*e.length+(null!=i?25:0),height:30}}}t.ToolbarPanelView=r,r.__name__="ToolbarPanelView";class _ extends l.Annotation{constructor(e){super(e)}static init_ToolbarPanel(){this.prototype.default_view=r,this.define({toolbar:[n.Instance]})}}t.ToolbarPanel=_,_.__name__="ToolbarPanel",_.init_ToolbarPanel()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),l=t(29),o=t(66),a=i.__importStar(t(19)),h=t(144),n=t(145);function c(t,e,s,i,l){switch(t){case"horizontal":return e<i?"right":"left";case"vertical":return s<l?"below":"above";default:return t}}s.compute_side=c;class r extends l.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),o.undisplay(this.el)}connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,()=>this._draw_tips())}css_classes(){return super.css_classes().concat(h.bk_tooltip)}render(){this.model.visible&&this._draw_tips()}_draw_tips(){const{data:t}=this.model;if(o.empty(this.el),o.undisplay(this.el),this.model.custom?this.el.classList.add(h.bk_tooltip_custom):this.el.classList.remove(h.bk_tooltip_custom),0==t.length)return;const{frame:e}=this.plot_view;for(const[s,i,l]of t){if(this.model.inner_only&&!e.bbox.contains(s,i))continue;const t=o.div({},l);this.el.appendChild(t)}const[s,i]=t[t.length-1],l=c(this.model.attachment,s,i,e._hcenter.value,e._vcenter.value);this.el.classList.remove(n.bk_right),this.el.classList.remove(n.bk_left),this.el.classList.remove(n.bk_above),this.el.classList.remove(n.bk_below);let a;o.display(this.el);let r=0,d=0;switch(l){case"right":this.el.classList.add(n.bk_left),r=s+(this.el.offsetWidth-this.el.clientWidth)+10,a=i-this.el.offsetHeight/2;break;case"left":this.el.classList.add(n.bk_right),d=this.plot_view.layout.bbox.width-s+10,a=i-this.el.offsetHeight/2;break;case"below":this.el.classList.add(n.bk_above),a=i+(this.el.offsetHeight-this.el.clientHeight)+10,r=Math.round(s-this.el.offsetWidth/2);break;case"above":this.el.classList.add(n.bk_below),a=i-this.el.offsetHeight-10,r=Math.round(s-this.el.offsetWidth/2)}this.model.show_arrow&&this.el.classList.add(h.bk_tooltip_arrow),this.el.childNodes.length>0?(this.el.style.top=`${a}px`,this.el.style.left=r?`${r}px`:"auto",this.el.style.right=d?`${d}px`:"auto"):o.undisplay(this.el)}}s.TooltipView=r,r.__name__="TooltipView";class d extends l.Annotation{constructor(t){super(t)}static init_Tooltip(){this.prototype.default_view=r,this.define({attachment:[a.TooltipAttachment,"horizontal"],inner_only:[a.Boolean,!0],show_arrow:[a.Boolean,!0]}),this.override({level:"overlay"}),this.internal({data:[a.Any,[]],custom:[a.Any]})}clear(){this.data=[]}add(t,e,s){this.data=this.data.concat([[t,e,s]])}}s.Tooltip=d,d.__name__="Tooltip",d.init_Tooltip()},n function _(o,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=o(1);o(67),r.__importStar(o(66)).styles.append(‘.bk-root {\n /* Same border color used everywhere /\n / Gray of icons /\n}\n.bk-root .bk-tooltip {\n font-weight: 300;\n font-size: 12px;\n position: absolute;\n padding: 5px;\n border: 1px solid #e5e5e5;\n color: #2f2f2f;\n background-color: white;\n pointer-events: none;\n opacity: 0.95;\n z-index: 100;\n}\n.bk-root .bk-tooltip > div:not(:first-child) {\n / gives space when multiple elements are being hovered over /\n margin-top: 5px;\n border-top: #e5e5e5 1px dashed;\n}\n.bk-root .bk-tooltip.bk-left.bk-tooltip-arrow::before {\n position: absolute;\n margin: -7px 0 0 0;\n top: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 7px 0 7px 0;\n border-color: transparent;\n content: " ";\n display: block;\n left: -10px;\n border-right-width: 10px;\n border-right-color: #909599;\n}\n.bk-root .bk-tooltip.bk-left::before {\n left: -10px;\n border-right-width: 10px;\n border-right-color: #909599;\n}\n.bk-root .bk-tooltip.bk-right.bk-tooltip-arrow::after {\n position: absolute;\n margin: -7px 0 0 0;\n top: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 7px 0 7px 0;\n border-color: transparent;\n content: " ";\n display: block;\n right: -10px;\n border-left-width: 10px;\n border-left-color: #909599;\n}\n.bk-root .bk-tooltip.bk-right::after {\n right: -10px;\n border-left-width: 10px;\n border-left-color: #909599;\n}\n.bk-root .bk-tooltip.bk-above::before {\n position: absolute;\n margin: 0 0 0 -7px;\n left: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 7px 0 7px;\n border-color: transparent;\n content: " ";\n display: block;\n top: -10px;\n border-bottom-width: 10px;\n border-bottom-color: #909599;\n}\n.bk-root .bk-tooltip.bk-below::after {\n position: absolute;\n margin: 0 0 0 -7px;\n left: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 7px 0 7px;\n border-color: transparent;\n content: " ";\n display: block;\n bottom: -10px;\n border-top-width: 10px;\n border-top-color: #909599;\n}\n.bk-root .bk-tooltip-row-label {\n text-align: right;\n color: #26aae1;\n / blue from toolbar highlighting /\n}\n.bk-root .bk-tooltip-row-value {\n color: default;\n / seems to be necessary for notebook /\n}\n.bk-root .bk-tooltip-color-block {\n width: 12px;\n height: 12px;\n margin-left: 5px;\n margin-right: 5px;\n outline: #dddddd solid 1px;\n display: inline-block;\n}\n’),n.bk_tooltip="bk-tooltip",n.bk_tooltip_arrow="bk-tooltip-arrow",n.bk_tooltip_custom="bk-tooltip-custom",n.bk_tooltip_row_label="bk-tooltip-row-label",n.bk_tooltip_row_value="bk-tooltip-row-value",n.bk_tooltip_color_block="bk-tooltip-color-block"},n function _(e,b,t){Object.defineProperty(t,"__esModule",{value:!0}),e(1).__importStar(e(66)).styles.append(""),t.bk_active="bk-active",t.bk_inline="bk-inline",t.bk_left="bk-left",t.bk_right="bk-right",t.bk_above="bk-above",t.bk_below="bk-below",t.bk_up="bk-up",t.bk_down="bk-down",t.bk_side=function(e){switch(e){case"above":return t.bk_above;case"below":return t.bk_below;case"left":return t.bk_left;case"right":return t.bk_right}}},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(29),o=e(73),a=e(72),n=i.__importStar(e(19));class h extends r.AnnotationView{initialize(){super.initialize(),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source)),this.connect(this.model.source.change,()=>this.set_data(this.model.source))}set_data(e){super.set_data(e),this.visuals.warm_cache(e),this.plot_view.request_render()}_map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=e.xscales[this.model.x_range_name],i=e.yscales[this.model.y_range_name],r="height"==t?i:s,o="height"==t?s:i,a="height"==t?e.yview:e.xview,n="height"==t?e.xview:e.yview;let h,_,l;h="data"==this.model.properties.lower.units?r.v_compute(this._lower):a.v_compute(this._lower),_="data"==this.model.properties.upper.units?r.v_compute(this._upper):a.v_compute(this._upper),l="data"==this.model.properties.base.units?o.v_compute(this._base):n.v_compute(this._base);const[d,p]="height"==t?[1,0]:[0,1],c=[h,l],u=[_,l];this._lower_sx=c[d],this._lower_sy=c[p],this._upper_sx=u[d],this._upper_sy=u[p]}render(){if(!this.model.visible)return;this._map_data();const{ctx:e}=this.plot_view.canvas_view;if(this.visuals.line.doit)for(let t=0,s=this._lower_sx.length;t<s;t++)this.visuals.line.set_vectorize(e,t),e.beginPath(),e.moveTo(this._lower_sx[t],this._lower_sy[t]),e.lineTo(this._upper_sx[t],this._upper_sy[t]),e.stroke();const t="height"==this.model.dimension?0:Math.PI/2;if(null!=this.model.lower_head)for(let s=0,i=this._lower_sx.length;s<i;s++)e.save(),e.translate(this._lower_sx[s],this._lower_sy[s]),e.rotate(t+Math.PI),this.model.lower_head.render(e,s),e.restore();if(null!=this.model.upper_head)for(let s=0,i=this._upper_sx.length;s<i;s++)e.save(),e.translate(this._upper_sx[s],this._upper_sy[s]),e.rotate(t),this.model.upper_head.render(e,s),e.restore()}}s.WhiskerView=h,h.__name__="WhiskerView";class _ extends r.Annotation{constructor(e){super(e)}static init_Whisker(){this.prototype.default_view=h,this.mixins(["line"]),this.define({lower:[n.DistanceSpec],lower_head:[n.Instance,()=>new a.TeeHead({level:"underlay",size:10})],upper:[n.DistanceSpec],upper_head:[n.Instance,()=>new a.TeeHead({level:"underlay",size:10})],base:[n.DistanceSpec],dimension:[n.Dimension,"height"],source:[n.Instance,()=>new o.ColumnDataSource],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({level:"underlay"})}}s.Whisker=_,_.__name__="Whisker",_.init_Whisker()},n function _(i,a,e){Object.defineProperty(e,"__esModule",{value:!0});var r=i(148);e.Axis=r.Axis;var s=i(150);e.CategoricalAxis=s.CategoricalAxis;var x=i(153);e.ContinuousAxis=x.ContinuousAxis;var A=i(154);e.DatetimeAxis=A.DatetimeAxis;var o=i(155);e.LinearAxis=o.LinearAxis;var t=i(168);e.LogAxis=t.LogAxis;var n=i(171);e.MercatorAxis=n.MercatorAxis},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),a=e(149),l=s.__importStar(e(19)),n=e(9),o=e(8),r=e(88),{abs:_,min:h,max:c}=Math;class m extends a.GuideRendererView{constructor(){super(…arguments),this.rotate=!0}get panel(){return this.layout}render(){if(!this.model.visible)return;const e={tick:this._tick_extent(),tick_label:this._tick_label_extents(),axis_label:this._axis_label_extent()},t=this.tick_coords,i=this.plot_view.canvas_view.ctx;i.save(),this._draw_rule(i,e),this._draw_major_ticks(i,e,t),this._draw_minor_ticks(i,e,t),this._draw_major_labels(i,e,t),this._draw_axis_label(i,e,t),null!=this._render&&this._render(i,e,t),i.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_paint());const e=this.model.properties;this.on_change(e.visible,()=>this.plot_view.request_layout())}get_size(){if(this.model.visible&&null==this.model.fixed_location){const e=this._get_size();return{width:0,height:Math.round(e)}}return{width:0,height:0}}_get_size(){return this._tick_extent()+this._tick_label_extent()+this._axis_label_extent()}get needs_clip(){return null!=this.model.fixed_location}_draw_rule(e,t){if(!this.visuals.axis_line.doit)return;const[i,s]=this.rule_coords,[a,l]=this.plot_view.map_to_screen(i,s,this.model.x_range_name,this.model.y_range_name),[n,o]=this.normals,[r,_]=this.offsets;this.visuals.axis_line.set_value(e),e.beginPath(),e.moveTo(Math.round(a[0]+n*r),Math.round(l[0]+o*_));for(let t=1;t<a.length;t++){const i=Math.round(a[t]+n*r),s=Math.round(l[t]+o*_);e.lineTo(i,s)}e.stroke()}_draw_major_ticks(e,t,i){const s=this.model.major_tick_in,a=this.model.major_tick_out,l=this.visuals.major_tick_line;this._draw_ticks(e,i.major,s,a,l)}_draw_minor_ticks(e,t,i){const s=this.model.minor_tick_in,a=this.model.minor_tick_out,l=this.visuals.minor_tick_line;this._draw_ticks(e,i.minor,s,a,l)}_draw_major_labels(e,t,i){const s=i.major,a=this.compute_labels(s[this.dimension]),l=this.model.major_label_orientation,n=t.tick+this.model.major_label_standoff,o=this.visuals.major_label_text;this._draw_oriented_labels(e,a,s,l,this.panel.side,n,o)}_draw_axis_label(e,t,i){if(null==this.model.axis_label||0==this.model.axis_label.length||null!=this.model.fixed_location)return;let s,a;switch(this.panel.side){case"above":s=this.panel._hcenter.value,a=this.panel._bottom.value;break;case"below":s=this.panel._hcenter.value,a=this.panel._top.value;break;case"left":s=this.panel._right.value,a=this.panel._vcenter.value;break;case"right":s=this.panel._left.value,a=this.panel._vcenter.value;break;default:throw new Error(`unknown side: ${this.panel.side}`)}const l=[[s],[a]],o=t.tick+n.sum(t.tick_label)+this.model.axis_label_standoff,r=this.visuals.axis_label_text;this._draw_oriented_labels(e,[this.model.axis_label],l,"parallel",this.panel.side,o,r,"screen")}_draw_ticks(e,t,i,s,a){if(!a.doit)return;const[l,n]=t,[o,r]=this.plot_view.map_to_screen(l,n,this.model.x_range_name,this.model.y_range_name),[_,h]=this.normals,[c,m]=this.offsets,[d,u]=[_*(c-i),h*(m-i)],[b,x]=[_*(c+s),h*(m+s)];a.set_value(e);for(let t=0;t<o.length;t++){const i=Math.round(o[t]+b),s=Math.round(r[t]+x),a=Math.round(o[t]+d),l=Math.round(r[t]+u);e.beginPath(),e.moveTo(i,s),e.lineTo(a,l),e.stroke()}}_draw_oriented_labels(e,t,i,s,a,l,n,r="data"){if(!n.doit||0==t.length)return;let _,h,c,m;if("screen"==r)[_,h]=i,[c,m]=[0,0];else{const[e,t]=i;[_,h]=this.plot_view.map_to_screen(e,t,this.model.x_range_name,this.model.y_range_name),[c,m]=this.offsets}const[d,u]=this.normals,b=d*(c+l),x=u*(m+l);let p;n.set_value(e),this.panel.apply_label_text_heuristics(e,s),p=o.isString(s)?this.panel.get_label_angle_heuristic(s):-s;for(let i=0;i<_.length;i++){const s=Math.round(_[i]+b),a=Math.round(h[i]+x);e.translate(s,a),e.rotate(p),e.fillText(t[i],0,0),e.rotate(-p),e.translate(-s,-a)}}_axis_label_extent(){if(null==this.model.axis_label||""==this.model.axis_label)return 0;const e=this.model.axis_label_standoff,t=this.visuals.axis_label_text;return this._oriented_labels_extent([this.model.axis_label],"parallel",this.panel.side,e,t)}_tick_extent(){return this.model.major_tick_out}_tick_label_extent(){return n.sum(this._tick_label_extents())}_tick_label_extents(){const e=this.tick_coords.major,t=this.compute_labels(e[this.dimension]),i=this.model.major_label_orientation,s=this.model.major_label_standoff,a=this.visuals.major_label_text;return[this._oriented_labels_extent(t,i,this.panel.side,s,a)]}_oriented_labels_extent(e,t,i,s,a){if(0==e.length)return 0;const l=this.plot_view.canvas_view.ctx;let n,r;a.set_value(l),o.isString(t)?(n=1,r=this.panel.get_label_angle_heuristic(t)):(n=2,r=-t),r=Math.abs(r);const _=Math.cos(r),h=Math.sin(r);let c=0;for(let t=0;t<e.length;t++){const s=1.1*l.measureText(e[t]).width,a=.9*l.measureText(e[t]).ascent;let o;o="above"==i||"below"==i?s*h+a/n*_:s*_+a/n*h,o>c&&(c=o)}return c>0&&(c+=s),c}get normals(){return this.panel.normals}get dimension(){return this.panel.dimension}compute_labels(e){const t=this.model.formatter.doFormat(e,this);for(let i=0;i<e.length;i++)e[i]in this.model.major_label_overrides&&(t[i]=this.model.major_label_overrides[e[i]]);return t}get offsets(){if(null!=this.model.fixed_location)return[0,0];const{frame:e}=this.plot_view;let[t,i]=[0,0];switch(this.panel.side){case"below":i=_(this.panel._top.value-e._bottom.value);break;case"above":i=_(this.panel._bottom.value-e._top.value);break;case"right":t=_(this.panel._left.value-e._right.value);break;case"left":t=_(this.panel._right.value-e._left.value)}return[t,i]}get ranges(){const e=this.dimension,t=(e+1)%2,{frame:i}=this.plot_view,s=[i.x_ranges[this.model.x_range_name],i.y_ranges[this.model.y_range_name]];return[s[e],s[t]]}get computed_bounds(){const[e]=this.ranges,t=this.model.bounds,i=[e.min,e.max];if("auto"==t)return[e.min,e.max];if(o.isArray(t)){let e,s;const[a,l]=t,[n,o]=i;return _(a-l)>_(n-o)?(e=c(h(a,l),n),s=h(c(a,l),o)):(e=h(a,l),s=c(a,l)),[e,s]}throw new Error(`user bounds ‘${t}’ not understood`)}get rule_coords(){const e=this.dimension,t=(e+1)%2,[i]=this.ranges,[s,a]=this.computed_bounds,l=[new Array(2),new Array(2)];return l[e][0]=Math.max(s,i.min),l[e][1]=Math.min(a,i.max),l[e][0]>l[e][1]&&(l[e][0]=l[e][1]=NaN),l[t][0]=this.loc,l[t][1]=this.loc,l}get tick_coords(){const e=this.dimension,t=(e+1)%2,[i]=this.ranges,[s,a]=this.computed_bounds,l=this.model.ticker.get_ticks(s,a,i,this.loc,{}),n=l.major,o=l.minor,r=[[],[]],_=[[],[]],[h,c]=[i.min,i.max];for(let i=0;i<n.length;i++)n[i]<h||n[i]>c||(r[e].push(n[i]),r[t].push(this.loc));for(let i=0;i<o.length;i++)o[i]<h||o[i]>c||(_[e].push(o[i]),_[t].push(this.loc));return{major:r,minor:_}}get loc(){const{fixed_location:e}=this.model;if(null!=e){if(o.isNumber(e))return e;const[,t]=this.ranges;if(t instanceof r.FactorRange)return t.synthetic(e);throw new Error("unexpected")}const[,t]=this.ranges;switch(this.panel.side){case"left":case"below":return t.start;case"right":case"above":return t.end}}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.layout.bbox.box})}}i.AxisView=m,m.__name__="AxisView";class d extends a.GuideRenderer{constructor(e){super(e)}static init_Axis(){this.prototype.default_view=m,this.mixins(["line:axis_","line:major_tick_","line:minor_tick_","text:major_label_","text:axis_label_"]),this.define({bounds:[l.Any,"auto"],ticker:[l.Instance],formatter:[l.Instance],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"],axis_label:[l.String,""],axis_label_standoff:[l.Int,5],major_label_standoff:[l.Int,5],major_label_orientation:[l.Any,"horizontal"],major_label_overrides:[l.Any,{}],major_tick_in:[l.Number,2],major_tick_out:[l.Number,6],minor_tick_in:[l.Number,0],minor_tick_out:[l.Number,4],fixed_location:[l.Any,null]}),this.override({axis_line_color:"black",major_tick_line_color:"black",minor_tick_line_color:"black",major_label_text_font_size:"11px",major_label_text_align:"center",major_label_text_baseline:"alphabetic",axis_label_text_font_size:"13px",axis_label_text_font_style:"italic"})}}i.Axis=d,d.__name__="Axis",d.init_Axis()},n function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});const n=e(63);class i extends n.RendererView{}d.GuideRendererView=i,i.__name__="GuideRendererView";class t extends n.Renderer{constructor(e){super(e)}static init_GuideRenderer(){this.override({level:"overlay"})}}d.GuideRenderer=t,t.__name__="GuideRenderer",t.init_GuideRenderer()},n function _(t,s,o){Object.defineProperty(o,"__esModule",{value:!0});const e=t(1),i=t(148),r=t(151),a=t(152),l=e.__importStar(t(19));class _ extends i.AxisView{_render(t,s,o){this._draw_group_separators(t,s,o)}_draw_group_separators(t,s,o){const[e]=this.ranges,[i,r]=this.computed_bounds;if(!e.tops||e.tops.length<2||!this.visuals.separator_line.doit)return;const a=this.dimension,l=(a+1)%2,_=[[],[]];let n=0;for(let t=0;t<e.tops.length-1;t++){let s,o;for(let i=n;i<e.factors.length;i++)if(e.factors[i][0]==e.tops[t+1]){[s,o]=[e.factors[i-1],e.factors[i]],n=i;break}const h=(e.synthetic(s)+e.synthetic(o))/2;h>i&&h<r&&(_[a].push(h),_[l].push(this.loc))}const h=this._tick_label_extent();this._draw_ticks(t,_,-3,h-6,this.visuals.separator_line)}_draw_major_labels(t,s,o){const e=this._get_factor_info();let i=s.tick+this.model.major_label_standoff;for(let o=0;o<e.length;o++){const[r,a,l,_]=e[o];this._draw_oriented_labels(t,r,a,l,this.panel.side,i,_),i+=s.tick_label[o]}}_tick_label_extents(){const t=this._get_factor_info(),s=[];for(const[o,,e,i]of t){const t=this._oriented_labels_extent(o,e,this.panel.side,this.model.major_label_standoff,i);s.push(t)}return s}_get_factor_info(){const[t]=this.ranges,[s,o]=this.computed_bounds,e=this.loc,i=this.model.ticker.get_ticks(s,o,t,e,{}),r=this.tick_coords,a=[];if(1==t.levels){const t=i.major,s=this.model.formatter.doFormat(t,this);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text])}else if(2==t.levels){const t=i.major.map(t=>t[1]),s=this.model.formatter.doFormat(t,this);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([i.tops,r.tops,this.model.group_label_orientation,this.visuals.group_text])}else if(3==t.levels){const t=i.major.map(t=>t[2]),s=this.model.formatter.doFormat(t,this),o=i.mids.map(t=>t[1]);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([o,r.mids,this.model.subgroup_label_orientation,this.visuals.subgroup_text]),a.push([i.tops,r.tops,this.model.group_label_orientation,this.visuals.group_text])}return a}get tick_coords(){const t=this.dimension,s=(t+1)%2,[o]=this.ranges,[e,i]=this.computed_bounds,r=this.model.ticker.get_ticks(e,i,o,this.loc,{}),a={major:[[],[]],mids:[[],[]],tops:[[],[]],minor:[[],[]]};return a.major[t]=r.major,a.major[s]=r.major.map(t=>this.loc),3==o.levels&&(a.mids[t]=r.mids,a.mids[s]=r.mids.map(t=>this.loc)),o.levels>1&&(a.tops[t]=r.tops,a.tops[s]=r.tops.map(t=>this.loc)),a}}o.CategoricalAxisView=_,_.__name__="CategoricalAxisView";class n extends i.Axis{constructor(t){super(t)}static init_CategoricalAxis(){this.prototype.default_view=_,this.mixins(["line:separator_","text:group_","text:subgroup_"]),this.define({group_label_orientation:[l.Any,"parallel"],subgroup_label_orientation:[l.Any,"parallel"]}),this.override({ticker:()=>new r.CategoricalTicker,formatter:()=>new a.CategoricalTickFormatter,separator_line_color:"lightgrey",separator_line_width:2,group_text_font_style:"bold",group_text_font_size:"11px",group_text_color:"grey",subgroup_text_font_style:"bold",subgroup_text_font_size:"11px"})}}o.CategoricalAxis=n,n.__name__="CategoricalAxis",n.init_CategoricalAxis()},n function _(t,c,e){Object.defineProperty(e,"__esModule",{value:!0});const o=t(111);class s extends o.Ticker{constructor(t){super(t)}get_ticks(t,c,e,o,s){return{major:this._collect(e.factors,e,t,c),minor:[],tops:this._collect(e.tops||[],e,t,c),mids:this._collect(e.mids||[],e,t,c)}}_collect(t,c,e,o){const s=[];for(const r of t){const t=c.synthetic(r);t>e&&t<o&&s.push(r)}return s}}e.CategoricalTicker=s,s.__name__="CategoricalTicker"},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(113),c=e(9);class a extends o.TickFormatter{constructor(e){super(e)}doFormat(e,t){return c.copy(e)}}r.CategoricalTickFormatter=a,a.__name__="CategoricalTickFormatter"},n function _(s,e,n){Object.defineProperty(n,"__esModule",{value:!0});const o=s(148);class t extends o.Axis{constructor(s){super(s)}}n.ContinuousAxis=t,t.__name__="ContinuousAxis"},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(155),a=e(156),r=e(161);class n extends s.LinearAxisView{}i.DatetimeAxisView=n,n.__name__="DatetimeAxisView";class _ extends s.LinearAxis{constructor(e){super(e)}static init_DatetimeAxis(){this.prototype.default_view=n,this.override({ticker:()=>new r.DatetimeTicker,formatter:()=>new a.DatetimeTickFormatter})}}i.DatetimeAxis=_,_.__name__="DatetimeAxis",_.init_DatetimeAxis()},n function _(e,i,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(148),n=e(153),r=e(112),a=e(108);class _ extends t.AxisView{}s.LinearAxisView=_,_.__name__="LinearAxisView";class c extends n.ContinuousAxis{constructor(e){super(e)}static init_LinearAxis(){this.prototype.default_view=_,this.override({ticker:()=>new a.BasicTicker,formatter:()=>new r.BasicTickFormatter})}}s.LinearAxis=c,c.__name__="LinearAxis",c.init_LinearAxis()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const r=t(1),i=r.__importDefault(t(157)),n=t(113),o=t(70),a=r.__importStar(t(19)),c=t(158),m=t(9),u=t(8);function h(t){return i.default(t,"%Y %m %d %H %M %S").split(/\s+/).map(t=>parseInt(t,10))}function d(t,s){if(u.isFunction(s))return s(t);{const e=c.sprintf("$1%06d",function(t){return Math.round(t/1e3%1*1e6)}(t));return-1==(s=s.replace(/((^|[^%])(%%))%f/,e)).indexOf("%")?s:i.default(t,s)}}const l=["microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"];class _ extends n.TickFormatter{constructor(t){super(t),this.strip_leading_zeros=!0}static init_DatetimeTickFormatter(){this.define({microseconds:[a.Array,["%fus"]],milliseconds:[a.Array,["%3Nms","%S.%3Ns"]],seconds:[a.Array,["%Ss"]],minsec:[a.Array,[":%M:%S"]],minutes:[a.Array,[":%M","%Mm"]],hourmin:[a.Array,["%H:%M"]],hours:[a.Array,["%Hh","%H:%M"]],days:[a.Array,["%m/%d","%a%d"]],months:[a.Array,["%m/%Y","%b %Y"]],years:[a.Array,["%Y"]]})}initialize(){super.initialize(),this._update_width_formats()}_update_width_formats(){const t=+i.default(new Date),s=function(s){const e=s.map(s=>d(t,s).length),r=m.sort_by(m.zip(e,s),([t])=>t);return m.unzip(r)};this._width_formats={microseconds:s(this.microseconds),milliseconds:s(this.milliseconds),seconds:s(this.seconds),minsec:s(this.minsec),minutes:s(this.minutes),hourmin:s(this.hourmin),hours:s(this.hours),days:s(this.days),months:s(this.months),years:s(this.years)}}_get_resolution_str(t,s){const e=1.1*t;switch(!1){case!(e<.001):return"microseconds";case!(e<1):return"milliseconds";case!(e<60):return s>=60?"minsec":"seconds";case!(e<3600):return s>=3600?"hourmin":"minutes";case!(e<86400):return"hours";case!(e<2678400):return"days";case!(e<31536e3):return"months";default:return"years"}}doFormat(t,s){if(0==t.length)return[];const e=Math.abs(t[t.length-1]-t[0])/1e3,r=e/(t.length-1),i=this._get_resolution_str(r,e),[,[n]]=this._width_formats[i],a=[],c=l.indexOf(i),m={};for(const t of l)m[t]=0;m.seconds=5,m.minsec=4,m.minutes=4,m.hourmin=3,m.hours=3;for(const s of t){let t,e;try{e=h(s),t=d(s,n)}catch(t){o.logger.warn(unable to format tick for timestamp value ${s}),o.logger.warn(` - ${t}`),a.push("ERR");continue}let r=!1,u=c;for(;0==e[m[l[u]]];){let n;if(u+=1,u==l.length)break;if(("minsec"==i||"hourmin"==i)&&!r){if("minsec"==i&&0==e[4]&&0!=e[5]||"hourmin"==i&&0==e[3]&&0!=e[4]){n=this._width_formats[l[c-1]][1][0],t=d(s,n);break}r=!0}n=this._width_formats[l[u]][1][0],t=d(s,n)}if(this.strip_leading_zeros){let s=t.replace(/^0+/g,"");s!=t&&isNaN(parseInt(s))&&(s=`0${s}`),a.push(s)}else a.push(t)}return a}}e.DatetimeTickFormatter=_,_.__name__="DatetimeTickFormatter",_.init_DatetimeTickFormatter()},n function _(e,t,n){!function(e){"object"==typeof t&&t.exports?t.exports=e():"function"==typeof define?define(e):this.tz=e()}((function(){function e(e,t,n){var r,o=t.day[1];do{r=new Date(Date.UTC(n,t.month,Math.abs(o++)))}while(t.day[0]<7&&r.getUTCDay()!=t.day[0]);return(r={clock:t.clock,sort:r.getTime(),rule:t,save:6e4*t.save,offset:e.offset})[r.clock]=r.sort+6e4*t.time,r.posix?r.wallclock=r[r.clock]+(e.offset+t.saved):r.posix=r[r.clock]-(e.offset+t.saved),r}function t(t,n,r){var o,a,u,i,l,s,c,f=t[t.zone],h=[],T=new Date(r).getUTCFullYear(),g=1;for(o=1,a=f.length;o<a&&!(f[o][n]<=r);o++);if((u=f[o]).rules){for(s=t[u.rules],c=T+1;c>=T-g;–c)for(o=0,a=s.length;o<a;o++)s[o].from<=c&&c<=s[o].to?h.push(e(u,s[o],c)):s[o].to<c&&1==g&&(g=c-s[o].to);for(h.sort((function(e,t){return e.sort-t.sort})),o=0,a=h.length;o<a;o++)r>=h[o][n]&&h[o][h[o].clock]>u[h[o].clock]&&(i=h[o])}return i&&((l=/^(.*)\/(.*)$/.exec(u.format))?i.abbrev=l[i.save?2:1]:i.abbrev=u.format.replace(/%s/,i.rule.letter)),i||u}function n(e,n){return"UTC"==e.zone?n:(e.entry=t(e,"posix",n),n+e.entry.offset+e.entry.save)}function r(e,n){return"UTC"==e.zone?n:(e.entry=r=t(e,"wallclock",n),0<(o=n-r.wallclock)&&o<r.save?null:n-r.offset-r.save);var r,o}function o(e,t,o){var a,i=+(o[1]+1),s=o[2]*i,c=u.indexOf(o[3].toLowerCase());if(c>9)t+=s*l[c-10];else{if(a=new Date(n(e,t)),c<7)for(;s;)a.setUTCDate(a.getUTCDate()+i),a.getUTCDay()==c&&(s-=i);else 7==c?a.setUTCFullYear(a.getUTCFullYear()+s):8==c?a.setUTCMonth(a.getUTCMonth()+s):a.setUTCDate(a.getUTCDate()+s);null==(t=r(e,a.getTime()))&&(t=r(e,a.getTime()+864e5*i)-864e5*i)}return t}var a={clock:function(){return+new Date},zone:"UTC",entry:{abbrev:"UTC",offset:0,save:0},UTC:1,z:function(e,t,n,r){var o,a,u=this.entry.offset+this.entry.save,i=Math.abs(u/1e3),l=[],s=3600;for(o=0;o<3;o++)l.push(("0"+Math.floor(i/s)).slice(-2)),i%=s,s/=60;return"^"!=n||u?("^"==n&&(r=3),3==r?(a=(a=l.join(":")).replace(/:00$/,""),"^"!=n&&(a=a.replace(/:00$/,""))):r?(a=l.slice(0,r+1).join(":"),"^"==n&&(a=a.replace(/:00$/,""))):a=l.slice(0,2).join(""),a=(a=(u<0?"-":"+")+a).replace(/([-+])(0)/,{_:" $1","-":"$1"}[n]||"$1$2")):"Z"},"%":function(e){return"%"},n:function(e){return"\n"},t:function(e){return"\t"},U:function(e){return s(e,0)},W:function(e){return s(e,1)},V:function(e){return c(e)[0]},G:function(e){return c(e)[1]},g:function(e){return c(e)[1]%100},j:function(e){return Math.floor((e.getTime()-Date.UTC(e.getUTCFullYear(),0))/864e5)+1},s:function(e){return Math.floor(e.getTime()/1e3)},C:function(e){return Math.floor(e.getUTCFullYear()/100)},N:function(e){return e.getTime()%1e3*1e6},m:function(e){return e.getUTCMonth()+1},Y:function(e){return e.getUTCFullYear()},y:function(e){return e.getUTCFullYear()%100},H:function(e){return e.getUTCHours()},M:function(e){return e.getUTCMinutes()},S:function(e){return e.getUTCSeconds()},e:function(e){return e.getUTCDate()},d:function(e){return e.getUTCDate()},u:function(e){return e.getUTCDay()||7},w:function(e){return e.getUTCDay()},l:function(e){return e.getUTCHours()%12||12},I:function(e){return e.getUTCHours()%12||12},k:function(e){return e.getUTCHours()},Z:function(e){return this.entry.abbrev},a:function(e){return this[this.locale].day.abbrev[e.getUTCDay()]},A:function(e){return this[this.locale].day.full[e.getUTCDay()]},h:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},b:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},B:function(e){return this[this.locale].month.full[e.getUTCMonth()]},P:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)].toLowerCase()},p:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)]},R:function(e,t){return this.convert([t,"%H:%M"])},T:function(e,t){return this.convert([t,"%H:%M:%S"])},D:function(e,t){return this.convert([t,"%m/%d/%y"])},F:function(e,t){return this.convert([t,"%Y-%m-%d"])},x:function(e,t){return this.convert([t,this[this.locale].date])},r:function(e,t){return this.convert([t,this[this.locale].time12||"%I:%M:%S"])},X:function(e,t){return this.convert([t,this[this.locale].time24])},c:function(e,t){return this.convert([t,this[this.locale].dateTime])},convert:function(e){if(!e.length)return"1.0.23";var t,a,u,l,s,c=Object.create(this),f=[];for(t=0;t<e.length;t++)if(l=e[t],Array.isArray(l))t||isNaN(l[1])?l.splice.apply(e,[t–,1].concat(l)):s=l;else if(isNaN(l)){if("string"==(u=typeof l))~l.indexOf("%")?c.format=l:t||""!=l?!t&&(u=/^(\d{4})-(\d{2})-(\d{2})(?:[T\s](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|(([+-])(\d{2}(:\d{2}){0,2})))?)?$/.exec(l))?((s=[]).push.apply(s,u.slice(1,8)),u[9]?(s.push(u[10]+1),s.push.apply(s,u[11].split(/:/))):u[8]&&s.push(1)):/^\w{2,3}_\w{2}$/.test(l)?c.locale=l:(u=i.exec(l))?f.push(u):c.zone=l:s=l;else if("function"==u){if(u=l.call(c))return u}else if(/^\w{2,3}_\w{2}$/.test(l.name))c[l.name]=l;else if(l.zones){for(u in l.zones)c[u]=l.zones[u];for(u in l.rules)c[u]=l.rules[u]}}else t||(s=l);if(c[c.locale]||delete c.locale,c[c.zone]||delete c.zone,null!=s){if(""==s)s=c.clock();else if(Array.isArray(s)){for(u=[],a=!s[7],t=0;t<11;t++)u[t]=+(s[t]||0);–u[1],s=Date.UTC.apply(Date.UTC,u)+-u[7]*(36e5*u[8]+6e4*u[9]+1e3*u[10])}else s=Math.floor(s);if(!isNaN(s)){if(a&&(s=r(c,s)),null==s)return s;for(t=0,a=f.length;t<a;t++)s=o(c,s,f[t]);return c.format?(u=new Date(n(c,s)),c.format.replace(/%([-0_^]?)(:{0,3})(\d*)(.)/g,(function(e,t,n,r,o){var a,i,l="0";if(a=c[o]){for(e=String(a.call(c,u,s,t,n.length)),"_"==(t||a.style)&&(l=" "),i="-"==t?0:a.pad||0;e.length<i;)e=l+e;for(i="-"==t?0:r||a.pad;e.length<i;)e=l+e;"N"==o&&i<e.length&&(e=e.slice(0,i)),"^"==t&&(e=e.toUpperCase())}return e}))):s}}return function(){return c.convert(arguments)}},locale:"en_US",en_US:{date:"%m/%d/%Y",time24:"%I:%M:%S %p",time12:"%I:%M:%S %p",dateTime:"%a %d %b %Y %I:%M:%S %p %Z",meridiem:["AM","PM"],month:{abbrev:"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|\"),full:\"January|February|March|April|May|June|July|August|September|October|November|December\".split(\"|")},day:{abbrev:"Sun|Mon|Tue|Wed|Thu|Fri|Sat".split("|\"),full:\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday\".split(\"|")}}},u="Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond",i=new RegExp("^\\s*([+-])(\\d+)\\s+("+u+")s?\\s*$","i"),l=[36e5,6e4,1e3,1];function s(e,t){var n,r,o;return r=new Date(Date.UTC(e.getUTCFullYear(),0)),n=Math.floor((e.getTime()-r.getTime())/864e5),r.getUTCDay()==t?o=0:8==(o=7-r.getUTCDay()+t)&&(o=1),n>=o?Math.floor((n-o)/7)+1:0}function c(e){var t,n,r;return n=e.getUTCFullYear(),t=new Date(Date.UTC(n,0)).getUTCDay(),(r=s(e,1)+(t>1&&t<=4?1:0))?53!=r||4==t||3==t&&29==new Date(n,1,29).getDate()?[r,e.getUTCFullYear()]:[1,e.getUTCFullYear()+1]:(n=e.getUTCFullYear()-1,[r=4==(t=new Date(Date.UTC(n,0)).getUTCDay())||3==t&&29==new Date(n,1,29).getDate()?53:52,e.getUTCFullYear()-1])}return u=u.toLowerCase().split("|\"),\"delmHMSUWVgCIky\".replace(/./g,(function(e){a[e].pad=2})),a.N.pad=9,a.j.pad=3,a.k.style=\"_\",a.l.style=\"_\",a.e.style=\"_\",function(){return a.convert(arguments)}}))},\n function _(r,n,e){Object.defineProperty(e,\"__esModule\",{value:!0});const t=r(1),i=t.__importStar(r(159)),u=r(160),a=t.__importDefault(r(157)),f=r(26),o=r(8);function l(r,...n){return u.sprintf(r,...n)}function s(r,n,e){if(o.isNumber(r)){return l((()=>{switch(!1){case Math.floor(r)!=r:return\"%d\";case!(Math.abs(r)>.1&&Math.abs(r)<1e3):return\"%0.3f\";default:return\"%0.3e\"}})(),r)}return`${r}`}function c(r,n,t){if(null==n)return s;if(null!=t&&r in t){const n=t[r];if(o.isString(n)){if(n in e.DEFAULT_FORMATTERS)return e.DEFAULT_FORMATTERS[n];throw new Error(`Unknown tooltip field formatter type '${n}'`)}return function(r,e,t){return n.format(r,e,t)}}return e.DEFAULT_FORMATTERS.numeral}function m(r,n,e,t){if(\"$\"==r[0]){return function(r,n){if(r in n)return n[r];throw new Error(`Unknown special variable '$${r}'`)}(r.substring(1),t)}return function(r,n,e){const t=n.get_column(r);if(null==t)return null;if(o.isNumber(e))return t[e];const i=t[e.index];if(o.isTypedArray(i)||o.isArray(i)){if(o.isArray(i[0])){return i[e.dim2][e.dim1]}return i[e.flat_index]}return i}(r.substring(1).replace(/[{}]/g,\"\"),n,e)}e.DEFAULT_FORMATTERS={numeral:(r,n,e)=>i.format(r,n),datetime:(r,n,e)=>a.default(r,n),printf:(r,n,e)=>l(n,r)},e.sprintf=l,e.basic_formatter=s,e.get_formatter=c,e.get_value=m,e.replace_placeholders=function(r,n,e,t,i={}){return r=(r=r.replace(/@\\$name/g,r=>`@{${i.name}}`)).replace(/((?:\\$\\w+)|(?:@\\w+)|(?:@{(?:[^{}]+)}))(?:{([^{}]+)})?/g,(r,u,a)=>{const o=m(u,n,e,i);if(null==o)return`${f.escape(\"???\")}`;if(\"safe\"==a)return`${o}`;const l=c(u,a,t);return`${f.escape(l(o,a,i))}`})}},\n function _(e,n,t){\n /*!\n * numbro.js\n * version : 1.6.2\n * author : Företagsplatsen AB\n * license : MIT\n * http://www.foretagsplatsen.se\n */\n var r,i={},a=i,o=\"en-US\",l=null,u=\"0,0\";void 0!==n&&n.exports;function c(e){this._value=e}function s(e){var n,t=\"\";for(n=0;n<e;n++)t+=\"0\";return t}function f(e,n,t,r){var i,a,o=Math.pow(10,n);return a=e.toFixed(0).search(\"e\")>-1?function(e,n){var t,r,i,a;return t=(a=e.toString()).split(\"e\")[0],i=a.split(\"e\")[1],a=t.split(\".\")[0]+(r=t.split(\".\")[1]||"")+s(i-r.length),n>0&&(a+="."+s(n)),a}(e,n):(t(e*o)/o).toFixed(n),r&&(i=new RegExp("0{1,"+r+"}$"),a=a.replace(i,"")),a}function d(e,n,t){return n.indexOf("$")>-1?function(e,n,t){var r,a,l=n,u=l.indexOf("$"),c=l.indexOf("("),s=l.indexOf("+"),f=l.indexOf("-"),d="",p="";-1===l.indexOf("$")?"infix"===i[o].currency.position?(p=i[o].currency.symbol,i[o].currency.spaceSeparated&&(p=" "+p+" ")):i[o].currency.spaceSeparated&&(d=" "):l.indexOf(" $")>-1?(d=" ",l=l.replace(" $","")):l.indexOf("$ ")>-1?(d=" ",l=l.replace("$ ","")):l=l.replace("$","");if(a=h(e,l,t,p),-1===n.indexOf("$"))switch(i[o].currency.position){case"postfix":a.indexOf(")")>-1?((a=a.split("")).splice(-1,0,d+i[o].currency.symbol),a=a.join("")):a=a+d+i[o].currency.symbol;break;case"infix":break;case"prefix":a.indexOf("(")>-1||a.indexOf("-")>-1?(a=a.split(""),r=Math.max(c,f)+1,a.splice(r,0,i[o].currency.symbol+d),a=a.join("")):a=i[o].currency.symbol+d+a;break;default:throw Error(‘Currency position should be among ["prefix", "infix", "postfix"]’)}else u<=1?a.indexOf("(")>-1||a.indexOf("+")>-1||a.indexOf("-")>-1?(a=a.split(""),r=1,(u<c||u<s||u<f)&&(r=0),a.splice(r,0,i[o].currency.symbol+d),a=a.join("")):a=i[o].currency.symbol+d+a:a.indexOf(")")>-1?((a=a.split("")).splice(-1,0,d+i[o].currency.symbol),a=a.join("")):a=a+d+i[o].currency.symbol;return a}(e,n,t):n.indexOf("%")>-1?function(e,n,t){var r,i="";e*=100,n.indexOf(" %")>-1?(i=" ",n=n.replace(" %","")):n=n.replace("%","");(r=h(e,n,t)).indexOf(")")>-1?((r=r.split("")).splice(-1,0,i+"%"),r=r.join("")):r=r+i+"%";return r}(e,n,t):n.indexOf(":")>-1?function(e){var n=Math.floor(e/60/60),t=Math.floor((e-60*n*60)/60),r=Math.round(e-60*n*60-60*t);return n+":"+(t<10?"0"+t:t)+":"+(r<10?"0"+r:r)}(e):h(e,n,t)}function h(e,n,t,r){var a,u,c,s,d,h,p,m,x,g,O,b,w,y,M,v,$,B=!1,E=!1,F=!1,k="",U=!1,N=!1,S=!1,j=!1,D=!1,C="",L="",T=Math.abs(e),K=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],G=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],I="",P=!1,R=!1;if(0===e&&null!==l)return l;if(!isFinite(e))return""+e;if(0===n.indexOf("{")){var W=n.indexOf("}");if(-1===W)throw Error(‘Format should also contain a "}"’);b=n.slice(1,W),n=n.slice(W+1)}else b="";if(n.indexOf("}")===n.length-1){var Y=n.indexOf("{");if(-1===Y)throw Error(‘Format should also contain a "{"’);w=n.slice(Y+1,-1),n=n.slice(0,Y+1)}else w="";if(v=null===($=-1===n.indexOf(".")?n.match(/([0-9]+).*/):n.match(/([0-9]+)\..*/))?-1:$[1].length,-1!==n.indexOf("-")&&(P=!0),n.indexOf("(")>-1?(B=!0,n=n.slice(1,-1)):n.indexOf("+")>-1&&(E=!0,n=n.replace(/\+/g,"")),n.indexOf("a")>-1){if(g=n.split(".")[0].match(/[0-9]+/g)||["0"],g=parseInt(g[0],10),U=n.indexOf("aK")>=0,N=n.indexOf("aM")>=0,S=n.indexOf("aB")>=0,j=n.indexOf("aT")>=0,D=U||N||S||j,n.indexOf(" a")>-1?(k=" ",n=n.replace(" a","")):n=n.replace("a",""),p=0===(p=(d=Math.floor(Math.log(T)/Math.LN10)+1)%3)?3:p,g&&0!==T&&(h=Math.floor(Math.log(T)/Math.LN10)+1-g,m=3*~~((Math.min(g,d)-p)/3),T/=Math.pow(10,m),-1===n.indexOf(".")&&g>3))for(n+="[.]",M=(M=0===h?0:3*~~(h/3)-h)<0?M+3:M,a=0;a<M;a++)n+="0";Math.floor(Math.log(Math.abs(e))/Math.LN10)+1!==g&&(T>=Math.pow(10,12)&&!D||j?(k+=i[o].abbreviations.trillion,e/=Math.pow(10,12)):T<Math.pow(10,12)&&T>=Math.pow(10,9)&&!D||S?(k+=i[o].abbreviations.billion,e/=Math.pow(10,9)):T<Math.pow(10,9)&&T>=Math.pow(10,6)&&!D||N?(k+=i[o].abbreviations.million,e/=Math.pow(10,6)):(T<Math.pow(10,6)&&T>=Math.pow(10,3)&&!D||U)&&(k+=i[o].abbreviations.thousand,e/=Math.pow(10,3)))}if(n.indexOf("b")>-1)for(n.indexOf(" b")>-1?(C=" ",n=n.replace(" b","")):n=n.replace("b",""),s=0;s<=K.length;s++)if(u=Math.pow(1024,s),c=Math.pow(1024,s+1),e>=u&&e<c){C+=K[s],u>0&&(e/=u);break}if(n.indexOf("d")>-1)for(n.indexOf(" d")>-1?(C=" ",n=n.replace(" d","")):n=n.replace("d",""),s=0;s<=G.length;s++)if(u=Math.pow(1e3,s),c=Math.pow(1e3,s+1),e>=u&&e<c){C+=G[s],u>0&&(e/=u);break}if(n.indexOf("o")>-1&&(n.indexOf(" o")>-1?(L=" ",n=n.replace(" o","")):n=n.replace("o",""),i[o].ordinal&&(L+=i[o].ordinal(e))),n.indexOf("[.]")>-1&&(F=!0,n=n.replace("[.]",".")),x=e.toString().split(".")[0],O=n.split(".")[1],y=n.indexOf(","),O){if(x=(I=-1!==O.indexOf("")?f(e,e.toString().split(".")[1].length,t):O.indexOf("[")>-1?f(e,(O=(O=O.replace("]","")).split("["))[0].length+O[1].length,t,O[1].length):f(e,O.length,t)).split(".")[0],I.split(".")[1].length)I=(r?k+r:i[o].delimiters.decimal)+I.split(".")[1];else I="";F&&0===Number(I.slice(1))&&(I="")}else x=f(e,null,t);return x.indexOf("-")>-1&&(x=x.slice(1),R=!0),x.length<v&&(x=new Array(v-x.length+1).join("0")+x),y>-1&&(x=x.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i[o].delimiters.thousands)),0===n.indexOf(".")&&(x=""),b+(n.indexOf("(")<n.indexOf("-")?(B&&R?"(":"")+(P&&R||!B&&R?"-":""):(P&&R||!B&&R?"-":"")+(B&&R?"(":""))+(!R&&E&&0!==e?"+":"")+x+I+(L||"")+(k&&!r?k:"")+(C||"")+(B&&R?")":"")+w}function p(e,n){i[e]=n}function m(e){o=e;var n=i[e].defaults;n&&n.format&&r.defaultFormat(n.format),n&&n.currencyFormat&&r.defaultCurrencyFormat(n.currencyFormat)}(r=function(e){return r.isNumbro(e)?e=e.value():0===e||void 0===e?e=0:Number(e)||(e=r.fn.unformat(e)),new c(Number(e))}).version="1.6.2",r.isNumbro=function(e){return e instanceof c},r.setLanguage=function(e,n){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var t=e,r=e.split("-")[0],i=null;a[t]||(Object.keys(a).forEach((function(e){i||e.split("-")[0]!==r||(i=e)})),t=i||n||"en-US"),m(t)},r.setCulture=function(e,n){var t=e,r=e.split("-")[1],a=null;i[t]||(r&&Object.keys(i).forEach((function(e){a||e.split("-")[1]!==r||(a=e)})),t=a||n||"en-US"),m(t)},r.language=function(e,n){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!e)return o;if(e&&!n){if(!a[e])throw new Error("Unknown language : "+e);m(e)}return!n&&a[e]||p(e,n),r},r.culture=function(e,n){if(!e)return o;if(e&&!n){if(!i[e])throw new Error("Unknown culture : "+e);m(e)}return!n&&i[e]||p(e,n),r},r.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return a[o];if(!a[e])throw new Error("Unknown language : "+e);return a[e]},r.cultureData=function(e){if(!e)return i[o];if(!i[e])throw new Error("Unknown culture : "+e);return i[e]},r.culture("en-US",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var n=e%10;return 1==~~(e%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}}),r.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),a},r.cultures=function(){return i},r.zeroFormat=function(e){l="string"==typeof e?e:null},r.defaultFormat=function(e){u="string"==typeof e?e:"0.0"},r.defaultCurrencyFormat=function(e){"string"==typeof e?e:"0$"},r.validate=function(e,n){var t,i,a,o,l,u,c,s;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;if(""===e)return!1;try{c=r.cultureData(n)}catch(e){c=r.cultureData(r.culture())}return a=c.currency.symbol,l=c.abbreviations,t=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(s=e.match(/^[^\d]+/))||(e=e.substr(1),s[0]===a))&&((null===(s=e.match(/[^\d]+$/))||(e=e.slice(0,-1),s[0]===l.thousand||s[0]===l.million||s[0]===l.billion||s[0]===l.trillion))&&(u=new RegExp(i+"{2}"),!e.match(/[^\d.,]/g)&&(!((o=e.split(t)).length>2)&&(o.length<2?!!o[0].match(/^\d+.\d$/)&&!o[0].match(u):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))))},n.exports={format:function(e,n,t,i){return null!=t&&t!==r.culture()&&r.setCulture(t),d(Number(e),null!=n?n:u,null==i?Math.round:i)}}},n function _(e,n,t){!function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|’[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(e){return i(a(e),arguments)}function r(e,t){return n.apply(null,[e].concat(t||[]))}function i(t,r){var i,s,a,o,p,c,l,u,f,d=1,g=t.length,y="";for(s=0;s<g;s++)if("string"==typeof t[s])y+=t[s];else if("object"==typeof t[s]){if((o=t[s]).keys)for(i=r[d],a=0;a<o.keys.length;a++){if(null==i)throw new Error(n(‘[sprintf] Cannot access property "%s" of undefined value "%s"’,o.keys[a],o.keys[a-1]));i=i[o.keys[a]]}else i=o.param_no?r[o.param_no]:r[d++];if(e.not_type.test(o.type)&&e.not_primitive.test(o.type)&&i instanceof Function&&(i=i()),e.numeric_arg.test(o.type)&&"number"!=typeof i&&isNaN(i))throw new TypeError(n("[sprintf] expecting number but found %T",i));switch(e.number.test(o.type)&&(u=i>=0),o.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,o.width?parseInt(o.width):0);break;case"e":i=o.precision?parseFloat(i).toExponential(o.precision):parseFloat(i).toExponential();break;case"f":i=o.precision?parseFloat(i).toFixed(o.precision):parseFloat(i);break;case"g":i=o.precision?String(Number(i.toPrecision(o.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}e.json.test(o.type)?y+=i:(!e.number.test(o.type)||u&&!o.sign?f="":(f=u?"+":"-",i=i.toString().replace(e.sign,"")),c=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",l=o.width-(f+i).length,p=o.width&&l>0?c.repeat(l):"",y+=o.align?f+i+p:"0"===c?f+p+i:p+f+i)}return y}var s=Object.create(null);function a(n){if(s[n])return s[n];for(var t,r=n,i=[],a=0;r;){if(null!==(t=e.text.exec(r)))i.push(t[0]);else if(null!==(t=e.modulo.exec(r)))i.push("%");else{if(null===(t=e.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var o=[],p=t[2],c=[];if(null===(c=e.key.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(p=p.substring(c[0].length));)if(null!==(c=e.key_access.exec(p)))o.push(c[1]);else{if(null===(c=e.index_access.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}t[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return s[n]=i}void 0!==t&&(t.sprintf=n,t.vsprintf=r),"undefined"!=typeof window&&(window.sprintf=n,window.vsprintf=r,"function"==typeof define&&define.amd&&define((function(){return{sprintf:n,vsprintf:r}})))}()},n function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(9),a=e(109),s=e(162),r=e(163),c=e(166),_=e(167),m=e(165);class k extends s.CompositeTicker{constructor(e){super(e)}static init_DatetimeTicker(){this.override({num_minor_ticks:0,tickers:()=>[new a.AdaptiveTicker({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*m.ONE_MILLI,num_minor_ticks:0}),new a.AdaptiveTicker({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:m.ONE_SECOND,max_interval:30*m.ONE_MINUTE,num_minor_ticks:0}),new a.AdaptiveTicker({mantissas:[1,2,4,6,8,12],base:24,min_interval:m.ONE_HOUR,max_interval:12*m.ONE_HOUR,num_minor_ticks:0}),new r.DaysTicker({days:t.range(1,32)}),new r.DaysTicker({days:t.range(1,31,3)}),new r.DaysTicker({days:[1,8,15,22]}),new r.DaysTicker({days:[1,15]}),new c.MonthsTicker({months:t.range(0,12,1)}),new c.MonthsTicker({months:t.range(0,12,2)}),new c.MonthsTicker({months:t.range(0,12,4)}),new c.MonthsTicker({months:t.range(0,12,6)}),new _.YearsTicker({})]})}}n.DatetimeTicker=k,k.__name__="DatetimeTicker",k.init_DatetimeTicker()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(1),s=t(110),n=r.__importStar(t(19)),_=t(9),a=t(24);class c extends s.ContinuousTicker{constructor(t){super(t)}static init_CompositeTicker(){this.define({tickers:[n.Array,[]]})}get min_intervals(){return this.tickers.map(t=>t.get_min_interval())}get max_intervals(){return this.tickers.map(t=>t.get_max_interval())}get min_interval(){return this.min_intervals[0]}get max_interval(){return this.max_intervals[0]}get_best_ticker(t,e,i){const r=e-t,s=this.get_ideal_interval(t,e,i),n=[_.sorted_index(this.min_intervals,s)-1,_.sorted_index(this.max_intervals,s)],c=[this.min_intervals[n[0]],this.max_intervals[n[1]]].map(t=>Math.abs(i-r/t));let l;if(a.isEmpty(c.filter(t=>!isNaN(t))))l=this.tickers[0];else{const t=n[_.argmin(c)];l=this.tickers[t]}return l}get_interval(t,e,i){return this.get_best_ticker(t,e,i).get_interval(t,e,i)}get_ticks_no_defaults(t,e,i,r){return this.get_best_ticker(t,e,r).get_ticks_no_defaults(t,e,i,r)}}i.CompositeTicker=c,c.__name__="CompositeTicker",c.init_CompositeTicker()},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),s=t(164),a=t(165),o=i.__importStar(t(19)),r=t(9);class _ extends s.SingleIntervalTicker{constructor(t){super(t)}static init_DaysTicker(){this.define({days:[o.Array,[]]}),this.override({num_minor_ticks:0})}initialize(){super.initialize();const t=this.days;t.length>1?this.interval=(t[1]-t[0])*a.ONE_DAY:this.interval=31*a.ONE_DAY}get_ticks_no_defaults(t,e,n,i){const s=function(t,e){const n=a.last_month_no_later_than(new Date(t)),i=a.last_month_no_later_than(new Date(e));i.setUTCMonth(i.getUTCMonth()+1);const s=[],o=n;for(;s.push(a.copy_date(o)),o.setUTCMonth(o.getUTCMonth()+1),!(o>i););return s}(t,e),o=this.days,_=this.interval;return{major:r.concat(s.map(t=>((t,e)=>{const n=t.getUTCMonth(),i=[];for(const s of o){const o=a.copy_date(t);o.setUTCDate(s),new Date(o.getTime()+e/2).getUTCMonth()==n&&i.push(o)}return i})(t,_))).map(t=>t.getTime()).filter(n=>t<=n&&n<=e),minor:[]}}}n.DaysTicker=_,_.__name__="DaysTicker",_.init_DaysTicker()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),r=e(110),l=n.__importStar(e(19));class a extends r.ContinuousTicker{constructor(e){super(e)}static init_SingleIntervalTicker(){this.define({interval:[l.Number]})}get_interval(e,t,i){return this.interval}get min_interval(){return this.interval}get max_interval(){return this.interval}}i.SingleIntervalTicker=a,a.__name__="SingleIntervalTicker",a.init_SingleIntervalTicker()},n function _(t,e,n){function _(t){return new Date(t.getTime())}function O(t){const e=_(t);return e.setUTCDate(1),e.setUTCHours(0),e.setUTCMinutes(0),e.setUTCSeconds(0),e.setUTCMilliseconds(0),e}Object.defineProperty(n,"__esModule",{value:!0}),n.ONE_MILLI=1,n.ONE_SECOND=1e3,n.ONE_MINUTE=60*n.ONE_SECOND,n.ONE_HOUR=60*n.ONE_MINUTE,n.ONE_DAY=24*n.ONE_HOUR,n.ONE_MONTH=30*n.ONE_DAY,n.ONE_YEAR=365*n.ONE_DAY,n.copy_date=_,n.last_month_no_later_than=O,n.last_year_no_later_than=function(t){const e=O(t);return e.setUTCMonth(0),e}},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),i=t(164),s=t(165),a=r.__importStar(t(19)),o=t(9);class _ extends i.SingleIntervalTicker{constructor(t){super(t)}static init_MonthsTicker(){this.define({months:[a.Array,[]]})}initialize(){super.initialize();const t=this.months;t.length>1?this.interval=(t[1]-t[0])*s.ONE_MONTH:this.interval=12*s.ONE_MONTH}get_ticks_no_defaults(t,e,n,r){const i=function(t,e){const n=s.last_year_no_later_than(new Date(t)),r=s.last_year_no_later_than(new Date(e));r.setUTCFullYear(r.getUTCFullYear()+1);const i=[],a=n;for(;i.push(s.copy_date(a)),a.setUTCFullYear(a.getUTCFullYear()+1),!(a>r););return i}(t,e),a=this.months;return{major:o.concat(i.map(t=>a.map(e=>{const n=s.copy_date(t);return n.setUTCMonth(e),n}))).map(t=>t.getTime()).filter(n=>t<=n&&n<=e),minor:[]}}}n.MonthsTicker=_,_.__name__="MonthsTicker",_.init_MonthsTicker()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(108),r=e(164),n=e(165);class _ extends r.SingleIntervalTicker{constructor(e){super(e)}initialize(){super.initialize(),this.interval=n.ONE_YEAR,this.basic_ticker=new i.BasicTicker({num_minor_ticks:0})}get_ticks_no_defaults(e,t,a,i){const r=n.last_year_no_later_than(new Date(e)).getUTCFullYear(),_=n.last_year_no_later_than(new Date(t)).getUTCFullYear();return{major:this.basic_ticker.get_ticks_no_defaults(r,_,a,i).major.map(e=>Date.UTC(e,0,1)).filter(a=>e<=a&&a<=t),minor:[]}}}a.YearsTicker=_,_.__name__="YearsTicker"},n function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(148),o=e(153),n=e(169),r=e(170);class _ extends s.AxisView{}t.LogAxisView=_,_.__name__="LogAxisView";class c extends o.ContinuousAxis{constructor(e){super(e)}static init_LogAxis(){this.prototype.default_view=_,this.override({ticker:()=>new r.LogTicker,formatter:()=>new n.LogTickFormatter})}}t.LogAxis=c,c.__name__="LogAxis",c.init_LogAxis()},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),o=t(113),a=t(112),n=i.__importStar(t(19));class c extends o.TickFormatter{constructor(t){super(t)}static init_LogTickFormatter(){this.define({ticker:[n.Instance,null]})}initialize(){super.initialize(),this.basic_formatter=new a.BasicTickFormatter}doFormat(t,e){if(0==t.length)return[];const r=null!=this.ticker?this.ticker.base:10;let i=!1;const o=new Array(t.length);for(let e=0,a=t.length;e<a;e++)if(o[e]=`${r}^${Math.round(Math.log(t[e])/Math.log(r))}`,e>0&&o[e]==o[e-1]){i=!0;break}return i?this.basic_formatter.doFormat(t,e):o}}r.LogTickFormatter=c,c.__name__="LogTickFormatter",c.init_LogTickFormatter()},n function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(109),s=t(9);class n extends i.AdaptiveTicker{constructor(t){super(t)}static init_LogTicker(){this.override({mantissas:[1,5]})}get_ticks_no_defaults(t,o,e,i){const n=this.num_minor_ticks,r=[],c=this.base,a=Math.log(t)/Math.log(c),f=Math.log(o)/Math.log(c),l=f-a;let h;if(isFinite(l))if(l<2){const e=this.get_interval(t,o,i),c=Math.floor(t/e),a=Math.ceil(o/e);if(h=s.range(c,a+1).filter(t=>0!=t).map(t=>t*e).filter(e=>t<=e&&e<=o),n>0&&h.length>0){const t=e/n,o=s.range(0,n).map(o=>o*t);for(const t of o.slice(1))r.push(h[0]-t);for(const t of h)for(const e of o)r.push(t+e)}}else{const t=Math.ceil(.999999*a),o=Math.floor(1.000001*f),e=Math.ceil((o-t)/9);if(h=s.range(t-1,o+1,e).map(t=>c**t),n>0&&h.length>0){const t=c**e/n,o=s.range(1,n+1).map(o=>o*t);for(const t of o)r.push(h[0]/t);r.push(h[0]);for(const t of h)for(const e of o)r.push(t*e)}}else h=[];return{major:h.filter(e=>t<=e&&e<=o),minor:r.filter(e=>t<=e&&e<=o)}}}e.LogTicker=n,n.__name__="LogTicker",n.init_LogTicker()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(148),s=e(155),o=e(172),a=e(173);class c extends i.AxisView{}r.MercatorAxisView=c,c.__name__="MercatorAxisView";class n extends s.LinearAxis{constructor(e){super(e)}static init_MercatorAxis(){this.prototype.default_view=c,this.override({ticker:()=>new a.MercatorTicker({dimension:"lat"}),formatter:()=>new o.MercatorTickFormatter({dimension:"lat"})})}}r.MercatorAxis=n,n.__name__="MercatorAxis",n.init_MercatorAxis()},n function _(r,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=r(1),n=r(112),i=o.__importStar(r(19)),c=r(30);class s extends n.BasicTickFormatter{constructor(r){super(r)}static init_MercatorTickFormatter(){this.define({dimension:[i.LatLon]})}doFormat(r,t){if(null==this.dimension)throw new Error("MercatorTickFormatter.dimension not configured");if(0==r.length)return[];const e=r.length,o=new Array(e);if("lon"==this.dimension)for(let n=0;n<e;n++){const[e]=c.wgs84_mercator.inverse([r[n],t.loc]);o[n]=e}else for(let n=0;n<e;n++){const[,e]=c.wgs84_mercator.inverse([t.loc,r[n]]);o[n]=e}return super.doFormat(o,t)}}e.MercatorTickFormatter=s,s.__name__="MercatorTickFormatter",s.init_MercatorTickFormatter()},n function _(r,o,e){Object.defineProperty(e,"__esModule",{value:!0});const n=r(1),s=r(108),i=n.__importStar(r(19)),t=r(30);class c extends s.BasicTicker{constructor(r){super(r)}static init_MercatorTicker(){this.define({dimension:[i.LatLon]})}get_ticks_no_defaults(r,o,e,n){if(null==this.dimension)throw new Error("MercatorTicker.dimension not configured");let s,i,c;[r,o]=t.clip_mercator(r,o,this.dimension),"lon"===this.dimension?([s,c]=t.wgs84_mercator.inverse([r,e]),[i,c]=t.wgs84_mercator.inverse([o,e])):([c,s]=t.wgs84_mercator.inverse([e,r]),[c,i]=t.wgs84_mercator.inverse([e,o]));const a=super.get_ticks_no_defaults(s,i,e,n),_=[],f=[];if("lon"===this.dimension){for(const r of a.major)if(t.in_bounds(r,"lon")){const[o]=t.wgs84_mercator.forward([r,c]);_.push(o)}for(const r of a.minor)if(t.in_bounds(r,"lon")){const[o]=t.wgs84_mercator.forward([r,c]);f.push(o)}}else{for(const r of a.major)if(t.in_bounds(r,"lat")){const[,o]=t.wgs84_mercator.forward([c,r]);_.push(o)}for(const r of a.minor)if(t.in_bounds(r,"lat")){const[,o]=t.wgs84_mercator.forward([c,r]);f.push(o)}}return{major:_,minor:f}}}e.MercatorTicker=c,c.__name__="MercatorTicker",c.init_MercatorTicker()},n function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});var t=e(175);o.CustomJS=t.CustomJS;var u=e(177);o.OpenURL=u.OpenURL},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),u=t(176),c=n.__importStar(t(19)),r=t(24),a=t(26);class i extends u.Callback{constructor(t){super(t)}static init_CustomJS(){this.define({args:[c.Any,{}],code:[c.String,""]})}get names(){return r.keys(this.args)}get values(){return r.values(this.args)}get func(){const t=a.use_strict(this.code);return new Function(…this.names,"cb_obj","cb_data",t)}execute(t,e={}){return this.func.apply(t,this.values.concat(t,e))}}s.CustomJS=i,i.__name__="CustomJS",i.init_CustomJS()},n function _(e,c,l){Object.defineProperty(l,"__esModule",{value:!0});const a=e(69);class n extends a.Model{constructor(e){super(e)}}l.Callback=n,n.__name__="Callback"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(1),s=e(176),i=e(158),c=o.__importStar(e(19));class r extends s.Callback{constructor(e){super(e)}static init_OpenURL(){this.define({url:[c.String,"http://"],same_tab:[c.Boolean,!1]})}execute(e,{source:t}){const n=e=>{const n=i.replace_placeholders(this.url,t,e);this.same_tab?window.location.href=n:window.open(n)},{selected:o}=t;for(const e of o.indices)n(e);for(const e of o.line_indices)n(e)}}n.OpenURL=r,r.__name__="OpenURL",r.init_OpenURL()},n function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=a(179);r.Canvas=n.Canvas;var s=a(183);r.CartesianFrame=s.CartesianFrame},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const a=e(1),i=e(13),n=e(64),l=e(70),o=a.__importStar(e(19)),c=e(66),d=e(85),h=e(180),_=e(181),r=(()=>{const e=document.createElement("canvas"),t=e.getContext("webgl",{premultipliedAlpha:!0});return null!=t?{canvas:e,gl:t}:void l.logger.trace("WebGL is not supported")})(),v=a.__importDefault(e(182));class p extends n.DOMView{get ctx(){return this._ctx}initialize(){super.initialize();const e={position:"absolute",top:"0",left:"0",width:"100%",height:"100%"};switch(this.model.output_backend){case"webgl":this.webgl=r;case"canvas":{this.canvas_el=c.canvas({class:_.bk_canvas,style:e});const t=this.canvas_el.getContext("2d");if(null==t)throw new Error("unable to obtain 2D rendering context");this._ctx=t;break}case"svg":{const e=new v.default;this._ctx=e,this.canvas_el=e.getSvg();break}}this.underlays_el=c.div({class:_.bk_canvas_underlays,style:e}),this.overlays_el=c.div({class:_.bk_canvas_overlays,style:e}),this.events_el=c.div({class:_.bk_canvas_events,style:e}),c.append(this.el,this.underlays_el,this.canvas_el,this.overlays_el,this.events_el),h.fixup_ctx(this._ctx),l.logger.debug("CanvasView initialized")}add_underlay(e){this.underlays_el.appendChild(e)}add_overlay(e){this.overlays_el.appendChild(e)}add_event(e){this.events_el.appendChild(e)}prepare_canvas(e,t){this.bbox=new d.BBox({left:0,top:0,width:e,height:t}),this.el.style.width=`${e}px`,this.el.style.height=`${t}px`;const{use_hidpi:s,output_backend:a}=this.model,i=s&&"svg"!=a?devicePixelRatio:1;this.model.pixel_ratio=i,this.canvas_el.style.width=`${e}px`,this.canvas_el.style.height=`${t}px`,this.canvas_el.setAttribute("width",`${e*i}`),this.canvas_el.setAttribute("height",`${t*i}`),l.logger.debug(Rendering CanvasView with width: ${e}, height: ${t}, pixel ratio: ${i})}save(e){if(this.canvas_el instanceof HTMLCanvasElement){const t=this.canvas_el;if(null!=t.msToBlob){const s=t.msToBlob();window.navigator.msSaveBlob(s,e)}else{const s=document.createElement("a");s.href=t.toDataURL("image/png"),s.download=e+".png",s.target="_blank",s.dispatchEvent(new MouseEvent("click"))}}else{const t=this._ctx.getSerializedSvg(!0),s=new Blob([t],{type:"text/plain"}),a=document.createElement("a");a.download=e+".svg",a.innerHTML="Download svg",a.href=window.URL.createObjectURL(s),a.onclick=e=>document.body.removeChild(e.target),a.style.display="none",document.body.appendChild(a),a.click()}}}s.CanvasView=p,p.__name__="CanvasView";class u extends i.HasProps{constructor(e){super(e)}static init_Canvas(){this.prototype.default_view=p,this.internal({use_hidpi:[o.Boolean,!0],pixel_ratio:[o.Number,1],output_backend:[o.OutputBackend,"canvas"]})}}s.Canvas=u,u.__name__="Canvas",u.init_Canvas()},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fixup_ctx=function(e){!function(e){e.setLineDash||(e.setLineDash=t=>{e.mozDash=t,e.webkitLineDash=t}),e.getLineDash||(e.getLineDash=()=>e.mozDash)}(e),function(e){e.setLineDashOffset=t=>{e.lineDashOffset=t,e.mozDashOffset=t,e.webkitLineDashOffset=t},e.getLineDashOffset=()=>e.mozDashOffset}(e),function(e){e.setImageSmoothingEnabled=t=>{e.imageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.oImageSmoothingEnabled=t,e.webkitImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t},e.getImageSmoothingEnabled=()=>{const t=e.imageSmoothingEnabled;return null==t||t}}(e),function(e){e.measureText&&null==e.html5MeasureText&&(e.html5MeasureText=e.measureText,e.measureText=t=>{const n=e.html5MeasureText(t);return n.ascent=1.6*e.html5MeasureText("m").width,n})}(e),function(e){e.ellipse||(e.ellipse=function(t,n,a,o,s,i,m,h=!1){const l=.551784;e.translate(t,n),e.rotate(s);let u=a,r=o;h&&(u=-a,r=-o),e.moveTo(-u,0),e.bezierCurveTo(-u,r*l,-u*l,r,0,r),e.bezierCurveTo(u*l,r,u,r*l,u,0),e.bezierCurveTo(u,-r*l,u*l,-r,0,-r),e.bezierCurveTo(-u*l,-r,-u,-r*l,-u,0),e.rotate(-s),e.translate(-t,-n)})}(e)}},n function _(a,e,n){Object.defineProperty(n,"__esModule",{value:!0}),a(67),n.bk_canvas="bk-canvas",n.bk_canvas_underlays="bk-canvas-underlays",n.bk_canvas_overlays="bk-canvas-overlays",n.bk_canvas_events="bk-canvas-events"},n function _(t,e,r){var i,n,s,a,o;function h(t,e){var r,i=Object.keys(e);for(r=0;r<i.length;r++)t=t.replace(new RegExp("\\{"+i[r]+"\\}","gi"),e[i[r]]);return t}function l(t){var e,r,i;if(!t)throw new Error("cannot create a random attribute name for an undefined object");e="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",r="";do{for(r="",i=0;i<12;i++)r+=e[Math.floor(Math.random()*e.length)]}while(t[r]);return r}function c(t){var e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}n /!!n * Canvas 2 Svg v1.0.21n * A low level canvas to SVG converter. Uses a mock canvas context to build an SVG document.n *n * Licensed under the MIT license:n * http://www.opensource.org/licenses/mit-license.phpn *n * Author:n * Kerry Liun *n * Copyright (c) 2014 Gliffy Inc.n */n Object.defineProperty(r,"__esModule",{value:!0}),o=function(t,e){var r,i,n,s={};for(t=t.split(","),e=e||10,r=0;r<t.length;r+=2)i="&"+t[r+1]+";",n=parseInt(t[r],e),s[i]="&#"+n+";";return s["\\xa0"]=" ",s}("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),i={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}},(s=function(t,e){this.__root=t,this.__ctx=e}).prototype.addColorStop=function(t,e){var r,i=this.__ctx.__createElement("stop");i.setAttribute("offset",t),-1!==e.indexOf("rgba")?(r=/rgba\(\s*(\d+)\s,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e),i.setAttribute("stop-color",h("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),i.setAttribute("stop-opacity",r[4])):i.setAttribute("stop-color",e),this.__root.appendChild(i)},a=function(t,e){this.__root=t,this.__ctx=e},(n=function(t){var e,r={width:500,height:500,enableMirroring:!1};if(arguments.length>1?((e=r).width=arguments[0],e.height=arguments[1]):e=t||r,!(this instanceof n))return new n(e);this.width=e.width||r.width,this.height=e.height||r.height,this.enableMirroring=void 0!==e.enableMirroring?e.enableMirroring:r.enableMirroring,this.canvas=this,this.__document=e.document||document,e.ctx?this.__ctx=e.ctx:(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d")),this.__setDefaultStyles(),this.__stack=[this.__getStyleState()],this.__groupStack=[],this.__root=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__root.setAttribute("version",1.1),this.__root.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__root.setAttribute("width",this.width),this.__root.setAttribute("height",this.height),this.__ids={},this.__defs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__root.appendChild(this.__defs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__root.appendChild(this.__currentElement)}).prototype.__createElement=function(t,e,r){void 0===e&&(e={});var i,n,s=this.__document.createElementNS("http://www.w3.org/2000/svg",t),a=Object.keys(e);for(r&&(s.setAttribute("fill","none"),s.setAttribute("stroke","none")),i=0;i<a.length;i++)n=a[i],s.setAttribute(n,e[n]);return s},n.prototype.__setDefaultStyles=function(){var t,e,r=Object.keys(i);for(t=0;t<r.length;t++)this[e=r[t]]=i[e].canvas},n.prototype.__applyStyleState=function(t){var e,r,i=Object.keys(t);for(e=0;e<i.length;e++)this[r=i[e]]=t[r]},n.prototype.__getStyleState=function(){var t,e,r={},n=Object.keys(i);for(t=0;t<n.length;t++)r[e=n[t]]=this[e];return r},n.prototype.__applyStyleToCurrentElement=function(t){var e=this.__currentElement,r=this.__currentElementsToStyle;r&&(e.setAttribute(t,""),e=r.element,r.children.forEach((function(e){e.setAttribute(t,"")})));var n,o,l,c,p,_=Object.keys(i);for(n=0;n<_.length;n++)if(o=i[_[n]],l=this[_[n]],o.apply)if(l instanceof a){if(l.__ctx)for(;l.__ctx.__defs.childNodes.length;)c=l.__ctx.__defs.childNodes[0].getAttribute("id"),this.__ids[c]=c,this.__defs.appendChild(l.__ctx.__defs.childNodes[0]);e.setAttribute(o.apply,h("url(#{id})",{id:l.__root.getAttribute("id")}))}else if(l instanceof s)e.setAttribute(o.apply,h("url(#{id})",{id:l.__root.getAttribute("id")}));else if(-1!==o.apply.indexOf(t)&&o.svg!==l)if("stroke"!==o.svgAttr&&"fill"!==o.svgAttr||-1===l.indexOf("rgba")){var u=o.svgAttr;if("globalAlpha"===_[n]&&(u=t+"-"+o.svgAttr,e.getAttribute(u)))continue;e.setAttribute(u,l)}else{p=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(l),e.setAttribute(o.svgAttr,h("rgb({r},{g},{b})",{r:p[1],g:p[2],b:p[3]}));var d=p[4],g=this.globalAlpha;null!=g&&(d*=g),e.setAttribute(o.svgAttr+"-opacity",d)}},n.prototype.__closestGroupOrSvg=function(t){return"g"===(t=t||this.__currentElement).nodeName||"svg"===t.nodeName?t:this.__closestGroupOrSvg(t.parentNode)},n.prototype.getSerializedSvg=function(t){var e,r,i,n,s,a=(new XMLSerializer).serializeToString(this.__root);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(a)&&(a=a.replace(‘xmlns="http://www.w3.org/2000/svg’,’xmlns:xlink="http://www.w3.org/1999/xlink’)),t)for(e=Object.keys(o),r=0;r<e.length;r++)i=e[r],n=o[i],(s=new RegExp(i,"gi")).test(a)&&(a=a.replace(s,n));return a},n.prototype.getSvg=function(){return this.__root},n.prototype.save=function(){var t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__stack.push(this.__getStyleState())},n.prototype.restore=function(){this.__currentElement=this.__groupStack.pop(),this.__currentElementsToStyle=null,this.__currentElement||(this.__currentElement=this.__root.childNodes[1]);var t=this.__stack.pop();this.__applyStyleState(t)},n.prototype.__addTransform=function(t){var e=this.__closestGroupOrSvg();if(e.childNodes.length>0){"path"===this.__currentElement.nodeName&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());var r=this.__createElement("g");e.appendChild(r),this.__currentElement=r}var i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=t,this.__currentElement.setAttribute("transform",i)},n.prototype.scale=function(t,e){void 0===e&&(e=t),this.__addTransform(h("scale({x},{y})",{x:t,y:e}))},n.prototype.rotate=function(t){var e=180*t/Math.PI;this.__addTransform(h("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))},n.prototype.translate=function(t,e){this.__addTransform(h("translate({x},{y})",{x:t,y:e}))},n.prototype.transform=function(t,e,r,i,n,s){this.__addTransform(h("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:r,d:i,e:n,f:s}))},n.prototype.beginPath=function(){var t;this.__currentDefaultPath="",this.__currentPosition={},t=this.__createElement("path",{},!0),this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t},n.prototype.__applyCurrentDefaultPath=function(){var t=this.__currentElement;"path"===t.nodeName?t.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",t.nodeName)},n.prototype.__addPathCommand=function(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t},n.prototype.moveTo=function(t,e){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(h("M {x} {y}",{x:t,y:e}))},n.prototype.closePath=function(){this.__currentDefaultPath&&this.__addPathCommand("Z")},n.prototype.lineTo=function(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(h("L {x} {y}",{x:t,y:e})):this.__addPathCommand(h("M {x} {y}",{x:t,y:e}))},n.prototype.bezierCurveTo=function(t,e,r,i,n,s){this.__currentPosition={x:n,y:s},this.__addPathCommand(h("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:r,cp2y:i,x:n,y:s}))},n.prototype.quadraticCurveTo=function(t,e,r,i){this.__currentPosition={x:r,y:i},this.__addPathCommand(h("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:r,y:i}))};var p=function(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]};n.prototype.arcTo=function(t,e,r,i,n){var s=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(void 0!==s&&void 0!==a){if(n<0)throw new Error("IndexSizeError: The radius provided ("+n+") is negative.");if(s===t&&a===e||t===r&&e===i||0===n)this.lineTo(t,e);else{var o=p([s-t,a-e]),h=p([r-t,i-e]);if(o[0]*h[1]!=o[1]*h[0]){var l=o[0]*h[0]+o[1]*h[1],c=Math.acos(Math.abs(l)),_=p([o[0]+h[0],o[1]+h[1]]),u=n/Math.sin(c/2),d=t+u*_[0],g=e+u*_[1],m=[-o[1],o[0]],f=[h[1],-h[0]],y=function(t){var e=t[0];return t[1]>=0?Math.acos(e):-Math.acos(e)},v=y(m),b=y(f);this.lineTo(d+m[0]*n,g+m[1]*n),this.arc(d,g,n,v,b)}else this.lineTo(t,e)}}},n.prototype.stroke=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")},n.prototype.fill=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")},n.prototype.rect=function(t,e,r,i){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()},n.prototype.fillRect=function(t,e,r,i){var n;n=this.__createElement("rect",{x:t,y:e,width:r,height:i},!0),this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("fill")},n.prototype.strokeRect=function(t,e,r,i){var n;n=this.__createElement("rect",{x:t,y:e,width:r,height:i},!0),this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("stroke")},n.prototype.__clearCanvas=function(){for(var t=this.__closestGroupOrSvg().getAttribute("transform"),e=this.__root.childNodes[1],r=e.childNodes,i=r.length-1;i>=0;i–)r[i]&&e.removeChild(r[i]);this.__currentElement=e,this.__groupStack=[],t&&this.__addTransform(t)},n.prototype.clearRect=function(t,e,r,i){if(0!==t||0!==e||r!==this.width||i!==this.height){var n,s=this.__closestGroupOrSvg();n=this.__createElement("rect",{x:t,y:e,width:r,height:i,fill:"#FFFFFF"},!0),s.appendChild(n)}else this.__clearCanvas()},n.prototype.createLinearGradient=function(t,e,r,i){var n=this.__createElement("linearGradient",{id:l(this.__ids),x1:t+"px",x2:r+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(n),new s(n,this)},n.prototype.createRadialGradient=function(t,e,r,i,n,a){var o=this.__createElement("radialGradient",{id:l(this.__ids),cx:i+"px",cy:n+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(o),new s(o,this)},n.prototype.__parseFont=function(){var t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\’\"\sa-z0-9]+?)\s*$/i.exec(this.font),e={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return"underline"===this.__fontUnderline&&(e.decoration="underline"),this.__fontHref&&(e.href=this.__fontHref),e},n.prototype.__wrapTextLink=function(t,e){if(t.href){var r=this.__createElement("a");return r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),r.appendChild(e),r}return e},n.prototype.__applyText=function(t,e,r,i){var n,s,a=this.__parseFont(),o=this.__closestGroupOrSvg(),h=this.__createElement("text",{"font-family":a.family,"font-size":a.size,"font-style":a.style,"font-weight":a.weight,"text-decoration":a.decoration,x:e,y:r,"text-anchor":(n=this.textAlign,s={left:"start",right:"end",center:"middle",start:"start",end:"end"},s[n]||s.start),"dominant-baseline":c(this.textBaseline)},!0);h.appendChild(this.__document.createTextNode(t)),this.__currentElement=h,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(a,h))},n.prototype.fillText=function(t,e,r){this.__applyText(t,e,r,"fill")},n.prototype.strokeText=function(t,e,r){this.__applyText(t,e,r,"stroke")},n.prototype.measureText=function(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)},n.prototype.arc=function(t,e,r,i,n,s){if(i!==n){(i%=2*Math.PI)===(n%=2*Math.PI)&&(n=(n+2*Math.PI-.001*(s?-1:1))%(2*Math.PI));var a=t+r*Math.cos(n),o=e+r*Math.sin(n),l=t+r*Math.cos(i),c=e+r*Math.sin(i),p=s?0:1,_=0,u=n-i;u<0&&(u+=2*Math.PI),_=s?u>Math.PI?0:1:u>Math.PI?1:0,this.lineTo(l,c),this.__addPathCommand(h("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:r,ry:r,xAxisRotation:0,largeArcFlag:_,sweepFlag:p,endX:a,endY:o})),this.__currentPosition={x:a,y:o}}},n.prototype.clip=function(){var t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),r=l(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",r),e.appendChild(this.__currentElement),this.__defs.appendChild(e),t.setAttribute("clip-path",h("url(#{id})",{id:r})),t.appendChild(i),this.__currentElement=i},n.prototype.drawImage=function(){var t,e,r,i,s,a,o,h,l,c,p,_,u,d,g=Array.prototype.slice.call(arguments),m=g[0],f=0,y=0;if(3===g.length)t=g[1],e=g[2],r=s=m.width,i=a=m.height;else if(5===g.length)t=g[1],e=g[2],r=g[3],i=g[4],s=m.width,a=m.height;else{if(9!==g.length)throw new Error("Inavlid number of arguments passed to drawImage: "+arguments.length);f=g[1],y=g[2],s=g[3],a=g[4],t=g[5],e=g[6],r=g[7],i=g[8]}o=this.__closestGroupOrSvg(),this.__currentElement;var v="translate("+t+", "+e+")";if(m instanceof n){if((h=m.getSvg().cloneNode(!0)).childNodes&&h.childNodes.length>1){for(l=h.childNodes[0];l.childNodes.length;)d=l.childNodes[0].getAttribute("id"),this.__ids[d]=d,this.__defs.appendChild(l.childNodes[0]);if(c=h.childNodes[1]){var b,x=c.getAttribute("transform");b=x?x+" "+v:v,c.setAttribute("transform",b),o.appendChild(c)}}}else"IMG"===m.nodeName?((p=this.__createElement("image")).setAttribute("width",r),p.setAttribute("height",i),p.setAttribute("preserveAspectRatio","none"),(f||y||s!==m.width||a!==m.height)&&((_=this.__document.createElement("canvas")).width=r,_.height=i,(u=_.getContext("2d")).drawImage(m,f,y,s,a,0,0,r,i),m=_),p.setAttribute("transform",v),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===m.nodeName?m.toDataURL():m.getAttribute("src")),o.appendChild(p)):"CANVAS"===m.nodeName&&((p=this.__createElement("image")).setAttribute("width",r),p.setAttribute("height",i),p.setAttribute("preserveAspectRatio","none"),(_=this.__document.createElement("canvas")).width=r,_.height=i,(u=_.getContext("2d")).imageSmoothingEnabled=!1,u.mozImageSmoothingEnabled=!1,u.oImageSmoothingEnabled=!1,u.webkitImageSmoothingEnabled=!1,u.drawImage(m,f,y,s,a,0,0,r,i),m=_,p.setAttribute("transform",v),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m.toDataURL()),o.appendChild(p))},n.prototype.createPattern=function(t,e){var r,i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),s=l(this.__ids);return i.setAttribute("id",s),i.setAttribute("width",t.width),i.setAttribute("height",t.height),"CANVAS"===t.nodeName||"IMG"===t.nodeName?((r=this.__document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("width",t.width),r.setAttribute("height",t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===t.nodeName?t.toDataURL():t.getAttribute("src")),i.appendChild(r),this.__defs.appendChild(i)):t instanceof n&&(i.appendChild(t.__root.childNodes[1]),this.__defs.appendChild(i)),new a(i,this)},n.prototype.setLineDash=function(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null},n.prototype.drawFocusRing=function(){},n.prototype.createImageData=function(){},n.prototype.getImageData=function(){},n.prototype.putImageData=function(){},n.prototype.globalCompositeOperation=function(){},n.prototype.setTransform=function(){},r.default=n},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const a=e(184),_=e(120),n=e(129),r=e(130),i=e(185),g=e(88),c=e(187);class h extends c.LayoutItem{constructor(e,t,s,a,_={},n={}){super(),this.x_scale=e,this.y_scale=t,this.x_range=s,this.y_range=a,this.extra_x_ranges=_,this.extra_y_ranges=n,this._configure_scales()}map_to_screen(e,t,s="default",a="default"){return[this.xscales[s].v_compute(e),this.yscales[a].v_compute(t)]}_get_ranges(e,t){return Object.assign(Object.assign({},t),{default:e})}_get_scales(e,t,s){const c={};for(const h in t){const o=t[h];if((o instanceof i.DataRange1d||o instanceof r.Range1d)&&!(e instanceof _.ContinuousScale))throw new Error(Range ${o.type} is incompatible is Scale ${e.type});if(o instanceof g.FactorRange&&!(e instanceof a.CategoricalScale))throw new Error(Range ${o.type} is incompatible is Scale ${e.type});e instanceof n.LogScale&&o instanceof i.DataRange1d&&(o.scale_hint="log");const l=e.clone();l.setv({source_range:o,target_range:s}),c[h]=l}return c}_configure_frame_ranges(){this._h_target=new r.Range1d({start:this._left.value,end:this._right.value}),this._v_target=new r.Range1d({start:this._bottom.value,end:this._top.value})}_configure_scales(){this._configure_frame_ranges(),this._x_ranges=this._get_ranges(this.x_range,this.extra_x_ranges),this._y_ranges=this._get_ranges(this.y_range,this.extra_y_ranges),this._xscales=this._get_scales(this.x_scale,this._x_ranges,this._h_target),this._yscales=this._get_scales(this.y_scale,this._y_ranges,this._v_target)}_update_scales(){this._configure_frame_ranges();for(const e in this._xscales){this._xscales[e].target_range=this._h_target}for(const e in this._yscales){this._yscales[e].target_range=this._v_target}}_set_geometry(e,t){super._set_geometry(e,t),this._update_scales()}get x_ranges(){return this._x_ranges}get y_ranges(){return this._y_ranges}get xscales(){return this._xscales}get yscales(){return this._yscales}}s.CartesianFrame=h,h.__name__="CartesianFrame"},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(121);class _ extends n.Scale{constructor(e){super(e)}compute(e){return super._linear_compute(this.source_range.synthetic(e))}v_compute(e){return super._linear_v_compute(this.source_range.v_synthetic(e))}invert(e){return this._linear_invert(e)}v_invert(e){return this._linear_v_invert(e)}}t.CategoricalScale=_,_.__name__="CategoricalScale"},n function _(t,i,n){Object.defineProperty(n,"__esModule",{value:!0});const e=t(1),a=t(186),s=t(78),l=t(70),_=e.__importStar(t(19)),o=e.__importStar(t(85)),r=t(9);class d extends a.DataRange{constructor(t){super(t),this._plot_bounds={},this.have_updated_interactively=!1}static init_DataRange1d(){this.define({start:[_.Number],end:[_.Number],range_padding:[_.Number,.1],range_padding_units:[_.PaddingUnits,"percent"],flipped:[_.Boolean,!1],follow:[_.StartEnd],follow_interval:[_.Number],default_span:[_.Number,2],only_visible:[_.Boolean,!1]}),this.internal({scale_hint:[_.String,"auto"]})}initialize(){super.initialize(),this._initial_start=this.start,this._initial_end=this.end,this._initial_range_padding=this.range_padding,this._initial_range_padding_units=this.range_padding_units,this._initial_follow=this.follow,this._initial_follow_interval=this.follow_interval,this._initial_default_span=this.default_span}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}computed_renderers(){const t=this.names;let i=this.renderers;if(0==i.length)for(const t of this.plots){const n=t.renderers.filter(t=>t instanceof s.GlyphRenderer);i=i.concat(n)}t.length>0&&(i=i.filter(i=>r.includes(t,i.name))),l.logger.debug(computed ${i.length} renderers for DataRange1d ${this.id});for(const t of i)l.logger.trace(` - ${t.type} ${t.id}`);return i}_compute_plot_bounds(t,i){let n=o.empty();for(const e of t)null==i[e.id]||!e.visible&&this.only_visible||(n=o.union(n,i[e.id]));return n}adjust_bounds_for_aspect(t,i){const n=o.empty();let e=t.x1-t.x0;e<=0&&(e=1);let a=t.y1-t.y0;a<=0&&(a=1);const s=.5*(t.x1+t.x0),l=.5*(t.y1+t.y0);return e<i*a?e=i*a:a=e/i,n.x1=s+.5*e,n.x0=s-.5*e,n.y1=l+.5*a,n.y0=l-.5*a,n}_compute_min_max(t,i){let n,e,a=o.empty();for(const i in t){const n=t[i];a=o.union(a,n)}return[n,e]=0==i?[a.x0,a.x1]:[a.y0,a.y1],[n,e]}_compute_range(t,i){const n=this.range_padding;let e,a;if(null!=this._initial_start&&(t=this._initial_start),null!=this._initial_end&&(i=this._initial_end),"log"==this.scale_hint){let s,_;if((isNaN(t)||!isFinite(t)||t<=0)&&(t=isNaN(i)||!isFinite(i)||i<=0?.1:i/100,l.logger.warn(could not determine minimum data value for log axis, DataRange1d using value ${t})),(isNaN(i)||!isFinite(i)||i<=0)&&(i=isNaN(t)||!isFinite(t)||t<=0?10:100*t,l.logger.warn(could not determine maximum data value for log axis, DataRange1d using value ${i})),i==t)_=this.default_span+.001,s=Math.log(t)/Math.log(10);else{let e,a;"percent"==this.range_padding_units?(e=Math.log(t)/Math.log(10),a=Math.log(i)/Math.log(10),_=(a-e)*(1+n)):(e=Math.log(t-n)/Math.log(10),a=Math.log(i+n)/Math.log(10),_=a-e),s=(e+a)/2}e=10**(s-_/2),a=10**(s+_/2)}else{let s;s=i==t?this.default_span:"percent"==this.range_padding_units?(i-t)*(1+n):i-t+2*n;const l=(i+t)/2;e=l-s/2,a=l+s/2}let s=1;this.flipped&&([e,a]=[a,e],s=-1);const _=this.follow_interval;return null!=_&&Math.abs(e-a)>_&&("start"==this.follow?a=e+s*_:"end"==this.follow&&(e=a-s*_)),[e,a]}update(t,i,n,e){if(this.have_updated_interactively)return;const a=this.computed_renderers();let s=this._compute_plot_bounds(a,t);null!=e&&(s=this.adjust_bounds_for_aspect(s,e)),this._plot_bounds[n]=s;const[l,_]=this._compute_min_max(this._plot_bounds,i);let[o,r]=this._compute_range(l,_);null!=this._initial_start&&("log"==this.scale_hint?this._initial_start>0&&(o=this._initial_start):o=this._initial_start),null!=this._initial_end&&("log"==this.scale_hint?this._initial_end>0&&(r=this._initial_end):r=this._initial_end);const[d,h]=[this.start,this.end];if(o!=d||r!=h){const t={};o!=d&&(t.start=o),r!=h&&(t.end=r),this.setv(t)}"auto"==this.bounds&&this.setv({bounds:[o,r]},{silent:!0}),this.change.emit()}reset(){this.have_updated_interactively=!1,this.setv({range_padding:this._initial_range_padding,range_padding_units:this._initial_range_padding_units,follow:this._initial_follow,follow_interval:this._initial_follow_interval,default_span:this._initial_default_span},{silent:!0}),this.change.emit()}}n.DataRange1d=d,d.__name__="DataRange1d",d.init_DataRange1d()},n function _(e,a,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),r=e(89),s=n.__importStar(e(19));class _ extends r.Range{constructor(e){super(e)}static init_DataRange(){this.define({names:[s.Array,[]],renderers:[s.Array,[]]})}}t.DataRange=_,_.__name__="DataRange",_.init_DataRange()},n function _(a,o,t){Object.defineProperty(t,"__esModule",{value:!0});var e=a(188);t.Sizeable=e.Sizeable;var r=a(189);t.Layoutable=r.Layoutable,t.LayoutItem=r.LayoutItem;var n=a(190);t.HStack=n.HStack,t.VStack=n.VStack,t.AnchorLayout=n.AnchorLayout;var u=a(191);t.Grid=u.Grid,t.Row=u.Row,t.Column=u.Column;var c=a(192);t.ContentBox=c.ContentBox,t.VariadicBox=c.VariadicBox},n function _(h,t,i){Object.defineProperty(i,"__esModule",{value:!0});const{min:e,max:w}=Math;class d{constructor(h={}){this.width=null!=h.width?h.width:0,this.height=null!=h.height?h.height:0}bounded_to({width:h,height:t}){return new d({width:this.width==1/0&&null!=h?h:this.width,height:this.height==1/0&&null!=t?t:this.height})}expanded_to({width:h,height:t}){return new d({width:h!=1/0?w(this.width,h):this.width,height:t!=1/0?w(this.height,t):this.height})}expand_to({width:h,height:t}){this.width=w(this.width,h),this.height=w(this.height,t)}narrowed_to({width:h,height:t}){return new d({width:e(this.width,h),height:e(this.height,t)})}narrow_to({width:h,height:t}){this.width=e(this.width,h),this.height=e(this.height,t)}grow_by({left:h,right:t,top:i,bottom:e}){const w=this.width+h+t,s=this.height+i+e;return new d({width:w,height:s})}shrink_by({left:h,right:t,top:i,bottom:e}){const s=w(this.width-h-t,0),n=w(this.height-i-e,0);return new d({width:s,height:n})}map(h,t){return new d({width:h(this.width),height:(null!=t?t:h)(this.height)})}}i.Sizeable=d,d.__name__="Sizeable"},n function _(i,t,h){Object.defineProperty(h,"__esModule",{value:!0});const e=i(188),s=i(85),{min:n,max:g,round:a}=Math;class r{constructor(){this._bbox=new s.BBox,this._inner_bbox=new s.BBox;const i=this;this._top={get value(){return i.bbox.top}},this._left={get value(){return i.bbox.left}},this._width={get value(){return i.bbox.width}},this._height={get value(){return i.bbox.height}},this._right={get value(){return i.bbox.right}},this._bottom={get value(){return i.bbox.bottom}},this._hcenter={get value(){return i.bbox.hcenter}},this._vcenter={get value(){return i.bbox.vcenter}}}get bbox(){return this._bbox}get inner_bbox(){return this._inner_bbox}get sizing(){return this._sizing}set_sizing(i){const t=i.width_policy||"fit",h=i.width,e=null!=i.min_width?i.min_width:0,s=null!=i.max_width?i.max_width:1/0,n=i.height_policy||"fit",g=i.height,a=null!=i.min_height?i.min_height:0,r=null!=i.max_height?i.max_height:1/0,l=i.aspect,_=i.margin||{top:0,right:0,bottom:0,left:0},d=!1!==i.visible,o=i.halign||"start",u=i.valign||"start";this._sizing={width_policy:t,min_width:e,width:h,max_width:s,height_policy:n,min_height:a,height:g,max_height:r,aspect:l,margin:_,visible:d,halign:o,valign:u,size:{width:h,height:g},min_size:{width:e,height:a},max_size:{width:s,height:r}},this._init()}_init(){}_set_geometry(i,t){this._bbox=i,this._inner_bbox=t}set_geometry(i,t){this._set_geometry(i,t||i)}is_width_expanding(){return"max"==this.sizing.width_policy}is_height_expanding(){return"max"==this.sizing.height_policy}apply_aspect(i,{width:t,height:h}){const{aspect:e}=this.sizing;if(null!=e){const{width_policy:s,height_policy:n}=this.sizing,g=(i,t)=>{const h={max:4,fit:3,min:2,fixed:1};return h[i]>h[t]};if("fixed"!=s&&"fixed"!=n)if(s==n){const s=t,n=a(t/e),g=a(h*e),r=h;Math.abs(i.width-s)+Math.abs(i.height-n)<=Math.abs(i.width-g)+Math.abs(i.height-r)?(t=s,h=n):(t=g,h=r)}else g(s,n)?h=a(t/e):t=a(h*e);else"fixed"==s?h=a(t/e):"fixed"==n&&(t=a(h*e))}return{width:t,height:h}}measure(i){if(!this.sizing.visible)return{width:0,height:0};const t=i=>"fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:i,h=i=>"fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:i,s=new e.Sizeable(i).shrink_by(this.sizing.margin).map(t,h),n=this._measure(s),g=this.clip_size(n),a=t(g.width),r=h(g.height),l=this.apply_aspect(s,{width:a,height:r});return Object.assign(Object.assign({},n),l)}compute(i={}){const t=this.measure({width:null!=i.width&&this.is_width_expanding()?i.width:1/0,height:null!=i.height&&this.is_height_expanding()?i.height:1/0}),{width:h,height:e}=t,n=new s.BBox({left:0,top:0,width:h,height:e});let g=void 0;if(null!=t.inner){const{left:i,top:n,right:a,bottom:r}=t.inner;g=new s.BBox({left:i,top:n,right:h-a,bottom:e-r})}this.set_geometry(n,g)}get xview(){return this.bbox.xview}get yview(){return this.bbox.yview}clip_width(i){return g(this.sizing.min_width,n(i,this.sizing.max_width))}clip_height(i){return g(this.sizing.min_height,n(i,this.sizing.max_height))}clip_size({width:i,height:t}){return{width:this.clip_width(i),height:this.clip_height(t)}}}h.Layoutable=r,r.__name__="Layoutable";class l extends r{_measure(i){const{width_policy:t,height_policy:h}=this.sizing;let e,s;if(i.width==1/0)e=null!=this.sizing.width?this.sizing.width:0;else switch(t){case"fixed":e=null!=this.sizing.width?this.sizing.width:0;break;case"min":e=null!=this.sizing.width?n(i.width,this.sizing.width):0;break;case"fit":e=null!=this.sizing.width?n(i.width,this.sizing.width):i.width;break;case"max":e=null!=this.sizing.width?g(i.width,this.sizing.width):i.width}if(i.height==1/0)s=null!=this.sizing.height?this.sizing.height:0;else switch(h){case"fixed":s=null!=this.sizing.height?this.sizing.height:0;break;case"min":s=null!=this.sizing.height?n(i.height,this.sizing.height):0;break;case"fit":s=null!=this.sizing.height?n(i.height,this.sizing.height):i.height;break;case"max":s=null!=this.sizing.height?g(i.height,this.sizing.height):i.height}return{width:e,height:s}}}h.LayoutItem=l,l.__name__="LayoutItem";class _ extends r{_measure(i){const t=this._content_size(),h=i.bounded_to(this.sizing.size).bounded_to(t);return{width:(()=>{switch(this.sizing.width_policy){case"fixed":return null!=this.sizing.width?this.sizing.width:t.width;case"min":return t.width;case"fit":return h.width;case"max":return Math.max(t.width,h.width)}})(),height:(()=>{switch(this.sizing.height_policy){case"fixed":return null!=this.sizing.height?this.sizing.height:t.height;case"min":return t.height;case"fit":return h.height;case"max":return Math.max(t.height,h.height)}})()}}}h.ContentLayoutable=_,_.__name__="ContentLayoutable"},n function _(t,e,h){Object.defineProperty(h,"__esModule",{value:!0});const o=t(189),r=t(85);class i extends o.Layoutable{constructor(){super(…arguments),this.children=[]}}h.Stack=i,i.__name__="Stack";class s extends i{_measure(t){let e=0,h=0;for(const t of this.children){const o=t.measure({width:0,height:0});e+=o.width,h=Math.max(h,o.height)}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);const{top:h,bottom:o}=t;let{left:i}=t;for(const t of this.children){const{width:e}=t.measure({width:0,height:0});t.set_geometry(new r.BBox({left:i,width:e,top:h,bottom:o})),i+=e}}}h.HStack=s,s.__name__="HStack";class n extends i{_measure(t){let e=0,h=0;for(const t of this.children){const o=t.measure({width:0,height:0});e=Math.max(e,o.width),h+=o.height}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);const{left:h,right:o}=t;let{top:i}=t;for(const t of this.children){const{height:e}=t.measure({width:0,height:0});t.set_geometry(new r.BBox({top:i,height:e,left:h,right:o})),i+=e}}}h.VStack=n,n.__name__="VStack";class c extends o.Layoutable{constructor(){super(…arguments),this.children=[]}_measure(t){let e=0,h=0;for(const{layout:o}of this.children){const r=o.measure(t);e=Math.max(e,r.width),h=Math.max(h,r.height)}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);for(const{layout:e,anchor:h,margin:o}of this.children){const{left:i,right:s,top:n,bottom:c,hcenter:a,vcenter:_}=t,{width:g,height:d}=e.measure(t);let m;switch(h){case"top_left":m=new r.BBox({left:i+o,top:n+o,width:g,height:d});break;case"top_center":m=new r.BBox({hcenter:a,top:n+o,width:g,height:d});break;case"top_right":m=new r.BBox({right:s-o,top:n+o,width:g,height:d});break;case"bottom_right":m=new r.BBox({right:s-o,bottom:c-o,width:g,height:d});break;case"bottom_center":m=new r.BBox({hcenter:a,bottom:c-o,width:g,height:d});break;case"bottom_left":m=new r.BBox({left:i+o,bottom:c-o,width:g,height:d});break;case"center_left":m=new r.BBox({left:i+o,vcenter:_,width:g,height:d});break;case"center":m=new r.BBox({hcenter:a,vcenter:_,width:g,height:d});break;case"center_right":m=new r.BBox({right:s-o,vcenter:_,width:g,height:d})}e.set_geometry(m)}}}h.AnchorLayout=c,c.__name__="AnchorLayout"},n function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const e=t(188),o=t(189),n=t(8),r=t(85),h=t(9),{max:l,round:c}=Math;class a{constructor(t){this.def=t,this._map=new Map}get(t){let i=this._map.get(t);return void 0===i&&(i=this.def(),this._map.set(t,i)),i}apply(t,i){const s=this.get(t);this._map.set(t,i(s))}}a.__name__="DefaultMap";class g{constructor(){this._items=[],this._nrows=0,this._ncols=0}get nrows(){return this._nrows}get ncols(){return this._ncols}add(t,i){const{r1:s,c1:e}=t;this._nrows=l(this._nrows,s+1),this._ncols=l(this._ncols,e+1),this._items.push({span:t,data:i})}at(t,i){return this._items.filter(({span:s})=>s.r0<=t&&t<=s.r1&&s.c0<=i&&i<=s.c1).map(({data:t})=>t)}row(t){return this._items.filter(({span:i})=>i.r0<=t&&t<=i.r1).map(({data:t})=>t)}col(t){return this._items.filter(({span:i})=>i.c0<=t&&t<=i.c1).map(({data:t})=>t)}foreach(t){for(const{span:i,data:s}of this._items)t(i,s)}map(t){const i=new g;for(const{span:s,data:e}of this._items)i.add(s,t(s,e));return i}}g.__name__="Container";class p extends o.Layoutable{constructor(t=[]){super(),this.items=t,this.rows="auto",this.cols="auto",this.spacing=0,this.absolute=!1}is_width_expanding(){if(super.is_width_expanding())return!0;if("fixed"==this.sizing.width_policy)return!1;const{cols:t}=this._state;return h.some(t,t=>"max"==t.policy)}is_height_expanding(){if(super.is_height_expanding())return!0;if("fixed"==this.sizing.height_policy)return!1;const{rows:t}=this._state;return h.some(t,t=>"max"==t.policy)}_init(){super._init();const t=new g;for(const{layout:i,row:s,col:e,row_span:o,col_span:n}of this.items)if(i.sizing.visible){const r=s,h=e,l=s+(null!=o?o:1)-1,c=e+(null!=n?n:1)-1;t.add({r0:r,c0:h,r1:l,c1:c},i)}const{nrows:i,ncols:s}=t,e=new Array(i);for(let s=0;s<i;s++){const i=(()=>{const t=n.isPlainObject(this.rows)?this.rows[s]||this.rows[""]:this.rows;return null==t?{policy:"auto"}:n.isNumber(t)?{policy:"fixed",height:t}:n.isString(t)?{policy:t}:t})(),o=i.align||"auto";if("fixed"==i.policy)e[s]={policy:"fixed",height:i.height,align:o};else if("min"==i.policy)e[s]={policy:"min",align:o};else if("fit"==i.policy||"max"==i.policy)e[s]={policy:i.policy,flex:i.flex||1,align:o};else{if("auto"!=i.policy)throw new Error("unrechable");h.some(t.row(s),t=>t.is_height_expanding())?e[s]={policy:"max",flex:1,align:o}:e[s]={policy:"min",align:o}}}const o=new Array(s);for(let i=0;i<s;i++){const s=(()=>{const t=n.isPlainObject(this.cols)?this.cols[i]||this.cols[""]:this.cols;return null==t?{policy:"auto"}:n.isNumber(t)?{policy:"fixed",width:t}:n.isString(t)?{policy:t}:t})(),e=s.align||"auto";if("fixed"==s.policy)o[i]={policy:"fixed",width:s.width,align:e};else if("min"==s.policy)o[i]={policy:"min",align:e};else if("fit"==s.policy||"max"==s.policy)o[i]={policy:s.policy,flex:s.flex||1,align:e};else{if("auto"!=s.policy)throw new Error("unrechable");h.some(t.col(i),t=>t.is_width_expanding())?o[i]={policy:"max",flex:1,align:e}:o[i]={policy:"min",align:e}}}const[r,l]=n.isNumber(this.spacing)?[this.spacing,this.spacing]:this.spacing;this._state={items:t,nrows:i,ncols:s,rows:e,cols:o,rspacing:r,cspacing:l}}_measure_totals(t,i){const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state;return{height:h.sum(t)+(s-1)*o,width:h.sum(i)+(e-1)*n}}_measure_cells(t){const{items:i,nrows:s,ncols:o,rows:n,cols:r,rspacing:h,cspacing:a}=this._state,p=new Array(s);for(let t=0;t<s;t++){const i=n[t];p[t]="fixed"==i.policy?i.height:0}const _=new Array(o);for(let t=0;t<o;t++){const i=r[t];_[t]="fixed"==i.policy?i.width:0}const f=new g;return i.foreach((i,s)=>{const{r0:o,c0:g,r1:d,c1:w}=i,u=(d-o)*h,m=(w-g)*a;let y=0;for(let i=o;i<=d;i++)y+=t(i,g).height;y+=u;let x=0;for(let i=g;i<=w;i++)x+=t(o,i).width;x+=m;const b=s.measure({width:x,height:y});f.add(i,{layout:s,size_hint:b});const z=new e.Sizeable(b).grow_by(s.sizing.margin);z.height-=u,z.width-=m;const j=[];for(let t=o;t<=d;t++){const i=n[t];"fixed"==i.policy?z.height-=i.height:j.push(t)}if(z.height>0){const t=c(z.height/j.length);for(const i of j)p[i]=l(p[i],t)}const O=[];for(let t=g;t<=w;t++){const i=r[t];"fixed"==i.policy?z.width-=i.width:O.push(t)}if(z.width>0){const t=c(z.width/O.length);for(const i of O)_[i]=l(_[i],t)}}),{size:this._measure_totals(p,_),row_heights:p,col_widths:_,size_hints:f}}_measure_grid(t){const{nrows:i,ncols:s,rows:e,cols:o,rspacing:n,cspacing:r}=this._state,h=this._measure_cells((t,i)=>{const s=e[t],n=o[i];return{width:"fixed"==n.policy?n.width:1/0,height:"fixed"==s.policy?s.height:1/0}});let a;a="fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:t.height!=1/0&&this.is_height_expanding()?t.height:h.size.height;let g,p=0;for(let t=0;t<i;t++){const i=e[t];"fit"==i.policy||"max"==i.policy?p+=i.flex:a-=h.row_heights[t]}if(a-=(i-1)*n,0!=p&&a>0)for(let t=0;t<i;t++){const i=e[t];if("fit"==i.policy||"max"==i.policy){const s=c(a*(i.flex/p));a-=s,h.row_heights[t]=s,p-=i.flex}}else if(a<0){let t=0;for(let s=0;s<i;s++){"fixed"!=e[s].policy&&t++}let s=-a;for(let o=0;o<i;o++){if("fixed"!=e[o].policy){const i=h.row_heights[o],e=c(s/t);h.row_heights[o]=l(i-e,0),s-=e>i?i:e,t–}}}g="fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:t.width!=1/0&&this.is_width_expanding()?t.width:h.size.width;let _=0;for(let t=0;t<s;t++){const i=o[t];"fit"==i.policy||"max"==i.policy?_+=i.flex:g-=h.col_widths[t]}if(g-=(s-1)*r,0!=_&&g>0)for(let t=0;t<s;t++){const i=o[t];if("fit"==i.policy||"max"==i.policy){const s=c(g*(i.flex/_));g-=s,h.col_widths[t]=s,_-=i.flex}}else if(g<0){let t=0;for(let i=0;i<s;i++){"fixed"!=o[i].policy&&t++}let i=-g;for(let e=0;e<s;e++){if("fixed"!=o[e].policy){const s=h.col_widths[e],o=c(i/t);h.col_widths[e]=l(s-o,0),i-=o>s?s:o,t–}}}const{row_heights:f,col_widths:d,size_hints:w}=this._measure_cells((t,i)=>({width:h.col_widths[i],height:h.row_heights[t]}));return{size:this._measure_totals(f,d),row_heights:f,col_widths:d,size_hints:w}}_measure(t){const{size:i}=this._measure_grid(t);return i}_set_geometry(t,i){super._set_geometry(t,i);const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state,{row_heights:h,col_widths:g,size_hints:p}=this._measure_grid(t),_=this._state.rows.map((t,i)=>Object.assign(Object.assign({},t),{top:0,height:h[i],get bottom(){return this.top+this.height}})),f=this._state.cols.map((t,i)=>Object.assign(Object.assign({},t),{left:0,width:g[i],get right(){return this.left+this.width}})),d=p.map((t,i)=>Object.assign(Object.assign({},i),{outer:new r.BBox,inner:new r.BBox}));for(let i=0,e=this.absolute?t.top:0;i<s;i++){const t=_[i];t.top=e,e+=t.height+o}for(let i=0,s=this.absolute?t.left:0;i<e;i++){const t=f[i];t.left=s,s+=t.width+n}d.foreach(({r0:t,c0:i,r1:s,c1:e},h)=>{const{layout:l,size_hint:a}=h,{sizing:g}=l,{width:p,height:d}=a,w=function(t,i){let s=(i-t)*n;for(let e=t;e<=i;e++)s+=f[e].width;return s}(i,e),u=function(t,i){let s=(i-t)*o;for(let e=t;e<=i;e++)s+=_[e].height;return s}(t,s),m=i==e&&"auto"!=f[i].align?f[i].align:g.halign,y=t==s&&"auto"!=_[t].align?_[t].align:g.valign;let x=f[i].left;"start"==m?x+=g.margin.left:"center"==m?x+=c((w-p)/2):"end"==m&&(x+=w-g.margin.right-p);let b=_[t].top;"start"==y?b+=g.margin.top:"center"==y?b+=c((u-d)/2):"end"==y&&(b+=u-g.margin.bottom-d),h.outer=new r.BBox({left:x,top:b,width:p,height:d})});const w=_.map(()=>({start:new a(()=>0),end:new a(()=>0)})),u=f.map(()=>({start:new a(()=>0),end:new a(()=>0)}));d.foreach(({r0:t,c0:i,r1:s,c1:e},{size_hint:o,outer:n})=>{const{inner:r}=o;null!=r&&(w[t].start.apply(n.top,t=>l(t,r.top)),w[s].end.apply(_[s].bottom-n.bottom,t=>l(t,r.bottom)),u[i].start.apply(n.left,t=>l(t,r.left)),u[e].end.apply(f[e].right-n.right,t=>l(t,r.right)))}),d.foreach(({r0:t,c0:i,r1:s,c1:e},o)=>{const{size_hint:n,outer:h}=o;function l({left:t,right:i,top:s,bottom:e}){const o=h.width-t-i,n=h.height-s-e;return new r.BBox({left:t,top:s,width:o,height:n})}if(null!=n.inner){let r=l(n.inner);if(!1!==n.align){const o=w[t].start.get(h.top),n=w[s].end.get(_[s].bottom-h.bottom),c=u[i].start.get(h.left),a=u[e].end.get(f[e].right-h.right);try{r=l({top:o,bottom:n,left:c,right:a})}catch(t){}}o.inner=r}else o.inner=h}),d.foreach((t,{layout:i,outer:s,inner:e})=>{i.set_geometry(s,e)})}}s.Grid=p,p.__name__="Grid";class _ extends p{constructor(t){super(),this.items=t.map((t,i)=>({layout:t,row:0,col:i})),this.rows="fit"}}s.Row=_,_.__name__="Row";class f extends p{constructor(t){super(),this.items=t.map((t,i)=>({layout:t,row:i,col:0})),this.cols="fit"}}s.Column=f,f.__name__="Column"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(189),i=e(188),o=e(66);class r extends s.ContentLayoutable{constructor(e){super(),this.content_size=o.unsized(e,()=>new i.Sizeable(o.size(e)))}_content_size(){return this.content_size}}n.ContentBox=r,r.__name__="ContentBox";class a extends s.Layoutable{constructor(e){super(),this.el=e}_measure(e){const t=new i.Sizeable(e).bounded_to(this.sizing.size);return o.sized(this.el,t,()=>{const e=new i.Sizeable(o.content_size(this.el)),{border:t,padding:n}=o.extents(this.el);return e.grow_by(t).grow_by(n).map(Math.ceil)})}}n.VariadicBox=a,a.__name__="VariadicBox"},n function _(e,r,u){Object.defineProperty(u,"__esModule",{value:!0});var a=e(194);u.Expression=a.Expression;var n=e(195);u.Stack=n.Stack;var o=e(196);u.CumSum=o.CumSum},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(69);class n extends s.Model{constructor(e){super(e),this._connected={},this._result={}}initialize(){super.initialize(),this._connected={},this._result={}}v_compute(e){null==this._connected[e.id]&&(this.connect(e.change,()=>delete this._result[e.id]),this.connect(e.patching,()=>delete this._result[e.id]),this.connect(e.streaming,()=>delete this._result[e.id]),this._connected[e.id]=!0);let t=this._result[e.id];return null==t&&(this._result[e.id]=t=this._v_compute(e)),t}}i.Expression=n,n.__name__="Expression"},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),o=t(194),r=i.__importStar(t(19));class s extends o.Expression{constructor(t){super(t)}static init_Stack(){this.define({fields:[r.Array,[]]})}_v_compute(t){var e;const n=null!==(e=t.get_length())&&void 0!==e?e:0,i=new Float64Array(n);for(const e of this.fields){const o=t.data[e];if(null!=o)for(let t=0,e=Math.min(n,o.length);t<e;t++)i[t]+=o[t]}return i}}n.Stack=s,s.__name__="Stack",s.init_Stack()},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),u=e(194),o=i.__importStar(e(19));class r extends u.Expression{constructor(e){super(e)}static init_CumSum(){this.define({field:[o.String],include_zero:[o.Boolean,!1]})}_v_compute(e){const t=new Float64Array(e.get_length()||0),n=e.data[this.field],i=this.include_zero?1:0;t[0]=this.include_zero?0:n[0];for(let e=1;e<t.length;e++)t[e]=t[e-1]+n[e-i];return t}}n.CumSum=r,r.__name__="CumSum",r.init_CumSum()},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});var l=e(198);t.BooleanFilter=l.BooleanFilter;var i=e(200);t.CustomJSFilter=i.CustomJSFilter;var o=e(199);t.Filter=o.Filter;var F=e(201);t.GroupFilter=F.GroupFilter;var a=e(202);t.IndexFilter=a.IndexFilter},n function _(e,o,l){Object.defineProperty(l,"__esModule",{value:!0});const n=e(1),t=e(199),i=n.__importStar(e(19)),r=e(70),a=e(9),s=e(8);class g extends t.Filter{constructor(e){super(e)}static init_BooleanFilter(){this.define({booleans:[i.Array,null]})}compute_indices(e){const o=this.booleans;return null!=o&&o.length>0?a.every(o,s.isBoolean)?(o.length!==e.get_length()&&r.logger.warn(BooleanFilter ${this.id}: length of booleans doesn’t match data source),a.range(0,o.length).filter(e=>!0===o[e])):(r.logger.warn(BooleanFilter ${this.id}: booleans should be array of booleans, defaulting to no filtering),null):(null!=o&&0==o.length?r.logger.warn(BooleanFilter ${this.id}: booleans is empty, defaulting to no filtering):r.logger.warn(BooleanFilter ${this.id}: booleans was not set, defaulting to no filtering),null)}}l.BooleanFilter=g,g.__name__="BooleanFilter",g.init_BooleanFilter()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1),l=e(69),n=i.__importStar(e(19)),o=e(8),s=e(9),a=e(70);class f extends l.Model{constructor(e){super(e)}static init_Filter(){this.define({filter:[n.Array,null]})}compute_indices(e){const t=this.filter;return null!=t?o.isArrayOf(t,o.isBoolean)?s.range(0,t.length).filter(e=>!0===t[e]):o.isArrayOf(t,o.isInteger)?t:(a.logger.warn(Filter ${this.id}: filter should either be array of only booleans or only integers, defaulting to no filtering),null):(a.logger.warn(Filter ${this.id}: filter was not set to be an array, defaulting to no filtering),null)}}r.Filter=f,f.__name__="Filter",f.init_Filter()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),r=t(199),n=i.__importStar(t(19)),u=t(24),c=t(26);class o extends r.Filter{constructor(t){super(t)}static init_CustomJSFilter(){this.define({args:[n.Any,{}],code:[n.String,""]})}get names(){return u.keys(this.args)}get values(){return u.values(this.args)}get func(){const t=c.use_strict(this.code);return new Function(…this.names,"source",t)}compute_indices(t){return this.filter=this.func(…this.values,t),super.compute_indices(t)}}s.CustomJSFilter=o,o.__name__="CustomJSFilter",o.init_CustomJSFilter()},n function _(t,n,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1),r=t(199),o=e.__importStar(t(19)),u=t(70),l=t(9);class s extends r.Filter{constructor(t){super(t),this.indices=null}static init_GroupFilter(){this.define({column_name:[o.String],group:[o.String]})}compute_indices(t){const n=t.get_column(this.column_name);return null==n?(u.logger.warn("group filter: groupby column not found in data source"),null):(this.indices=l.range(0,t.get_length()||0).filter(t=>n[t]===this.group),0===this.indices.length&&u.logger.warn(group filter: group ‘${this.group}’ did not match any values in column ‘${this.column_name}’),this.indices)}}i.GroupFilter=s,s.__name__="GroupFilter",s.init_GroupFilter()},n function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),r=e(199),s=t.__importStar(e(19)),l=e(70),d=e(8),o=e(9);class c extends r.Filter{constructor(e){super(e)}static init_IndexFilter(){this.define({indices:[s.Array,null]})}compute_indices(e){return null!=this.indices?o.every(this.indices,d.isInteger)?this.indices:(l.logger.warn(IndexFilter ${this.id}: indices should be array of integers, defaulting to no filtering),null):(l.logger.warn(IndexFilter ${this.id}: indices was not set, defaulting to no filtering),null)}}n.IndexFilter=c,c.__name__="IndexFilter",c.init_IndexFilter()},n function _(r,t,a){Object.defineProperty(a,"__esModule",{value:!0});var e=r(112);a.BasicTickFormatter=e.BasicTickFormatter;var c=r(152);a.CategoricalTickFormatter=c.CategoricalTickFormatter;var i=r(156);a.DatetimeTickFormatter=i.DatetimeTickFormatter;var o=r(204);a.FuncTickFormatter=o.FuncTickFormatter;var m=r(169);a.LogTickFormatter=m.LogTickFormatter;var F=r(172);a.MercatorTickFormatter=F.MercatorTickFormatter;var k=r(205);a.NumeralTickFormatter=k.NumeralTickFormatter;var T=r(206);a.PrintfTickFormatter=T.PrintfTickFormatter;var v=r(113);a.TickFormatter=v.TickFormatter},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),s=t(113),i=r.__importStar(t(19)),c=t(24),a=t(26);class u extends s.TickFormatter{constructor(t){super(t)}static init_FuncTickFormatter(){this.define({args:[i.Any,{}],code:[i.String,""]})}get names(){return c.keys(this.args)}get values(){return c.values(this.args)}_make_func(){const t=a.use_strict(this.code);return new Function("tick","index","ticks",…this.names,t)}doFormat(t,e){const n=this._make_func().bind({});return t.map((t,e,r)=>n(t,e,r,…this.values))}}n.FuncTickFormatter=u,u.__name__="FuncTickFormatter",u.init_FuncTickFormatter()},n function _(r,t,n){Object.defineProperty(n,"__esModule",{value:!0});const e=r(1),o=e.__importStar(r(159)),a=r(113),i=e.__importStar(r(19));class u extends a.TickFormatter{constructor(r){super(r)}static init_NumeralTickFormatter(){this.define({format:[i.String,"0,0"],language:[i.String,"en"],rounding:[i.RoundingFunction,"round"]})}get _rounding_fn(){switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}doFormat(r,t){const{format:n,language:e,_rounding_fn:a}=this;return r.map(r=>o.format(r,n,e,a))}}n.NumeralTickFormatter=u,u.__name__="NumeralTickFormatter",u.init_NumeralTickFormatter()},n function _(t,r,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1),n=t(113),o=t(158),a=e.__importStar(t(19));class c extends n.TickFormatter{constructor(t){super(t)}static init_PrintfTickFormatter(){this.define({format:[a.String,"%s"]})}doFormat(t,r){return t.map(t=>o.sprintf(this.format,t))}}i.PrintfTickFormatter=c,c.__name__="PrintfTickFormatter",c.init_PrintfTickFormatter()},n function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var v=a(208);r.AnnularWedge=v.AnnularWedge;var l=a(209);r.Annulus=l.Annulus;var t=a(210);r.Arc=t.Arc;var i=a(211);r.Bezier=i.Bezier;var n=a(212);r.Circle=n.Circle;var u=a(213);r.CenterRotatable=u.CenterRotatable;var c=a(214);r.Ellipse=c.Ellipse;var g=a(215);r.EllipseOval=g.EllipseOval;var A=a(86);r.Glyph=A.Glyph;var p=a(92);r.HArea=p.HArea;var s=a(216);r.HBar=s.HBar;var d=a(218);r.HexTile=d.HexTile;var R=a(219);r.Image=R.Image;var o=a(221);r.ImageRGBA=o.ImageRGBA;var y=a(222);r.ImageURL=y.ImageURL;var h=a(80);r.Line=h.Line;var m=a(224);r.MultiLine=m.MultiLine;var B=a(225);r.MultiPolygons=B.MultiPolygons;var P=a(226);r.Oval=P.Oval;var G=a(91);r.Patch=G.Patch;var H=a(227);r.Patches=H.Patches;var I=a(228);r.Quad=I.Quad;var L=a(229);r.Quadratic=L.Quadratic;var M=a(230);r.Ray=M.Ray;var O=a(231);r.Rect=O.Rect;var x=a(232);r.Segment=x.Segment;var C=a(233);r.Step=C.Step;var E=a(234);r.Text=E.Text;var Q=a(94);r.VArea=Q.VArea;var S=a(235);r.VBar=S.VBar;var T=a(236);r.Wedge=T.Wedge;var V=a(81);r.XYGlyph=V.XYGlyph},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(81),n=e(90),a=i.__importStar(e(87)),_=i.__importStar(e(19)),o=e(10);class h extends r.XYGlyphView{_map_data(){"data"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this._inner_radius):this.sinner_radius=this._inner_radius,"data"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this._outer_radius):this.souter_radius=this._outer_radius,this._angle=new Float32Array(this._start_angle.length);for(let e=0,t=this._start_angle.length;e<t;e++)this._angle[e]=this._end_angle[e]-this._start_angle[e]}_render(e,t,{sx:s,sy:i,_start_angle:r,_angle:n,sinner_radius:a,souter_radius:_}){const o=this.model.properties.direction.value();for(const h of t)isNaN(s[h]+i[h]+a[h]+_[h]+r[h]+n[h])||(e.translate(s[h],i[h]),e.rotate(r[h]),e.moveTo(_[h],0),e.beginPath(),e.arc(0,0,_[h],0,n[h],o),e.rotate(n[h]),e.lineTo(a[h],0),e.arc(0,0,a[h],0,-n[h],!o),e.closePath(),e.rotate(-n[h]-r[h]),e.translate(-s[h],-i[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,h),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,h),e.stroke()))}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(s);let n,_,h,u;if("data"==this.model.properties.outer_radius.units)n=i-this.max_outer_radius,h=i+this.max_outer_radius,_=r-this.max_outer_radius,u=r+this.max_outer_radius;else{const e=t-this.max_outer_radius,i=t+this.max_outer_radius;[n,h]=this.renderer.xscale.r_invert(e,i);const r=s-this.max_outer_radius,a=s+this.max_outer_radius;[_,u]=this.renderer.yscale.r_invert(r,a)}const l=[];for(const e of this.index.indices({x0:n,x1:h,y0:_,y1:u})){const t=this.souter_radius[e]**2,s=this.sinner_radius[e]**2,[n,a]=this.renderer.xscale.r_compute(i,this._x[e]),[_,o]=this.renderer.yscale.r_compute(r,this._y[e]),h=(n-a)**2+(_-o)**2;h<=t&&h>=s&&l.push([e,h])}const d=this.model.properties.direction.value(),c=[];for(const[e,i]of l){const r=Math.atan2(s-this.sy[e],t-this.sx[e]);o.angle_between(-r,-this._start_angle[e],-this._end_angle[e],d)&&c.push([e,i])}return a.create_hit_test_result_from_hits(c)}draw_legend_for_index(e,t,s){n.generic_area_legend(this.visuals,e,t,s)}_scenterxy(e){const t=(this.sinner_radius[e]+this.souter_radius[e])/2,s=(this._start_angle[e]+this._end_angle[e])/2;return{x:this.sx[e]+t*Math.cos(s),y:this.sy[e]+t*Math.sin(s)}}scenterx(e){return this._scenterxy(e).x}scentery(e){return this._scenterxy(e).y}}s.AnnularWedgeView=h,h.__name__="AnnularWedgeView";class u extends r.XYGlyph{constructor(e){super(e)}static init_AnnularWedge(){this.prototype.default_view=h,this.mixins(["line","fill"]),this.define({direction:[_.Direction,"anticlock"],inner_radius:[_.DistanceSpec],outer_radius:[_.DistanceSpec],start_angle:[_.AngleSpec],end_angle:[_.AngleSpec]})}}s.AnnularWedge=u,u.__name__="AnnularWedge",u.init_AnnularWedge()},n function _(s,i,t){Object.defineProperty(t,"__esModule",{value:!0});const e=s(1),r=s(81),a=e.__importStar(s(87)),n=e.__importStar(s(19)),_=s(101);class u extends r.XYGlyphView{_map_data(){"data"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this._inner_radius):this.sinner_radius=this._inner_radius,"data"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this._outer_radius):this.souter_radius=this._outer_radius}_render(s,i,{sx:t,sy:e,sinner_radius:r,souter_radius:a}){for(const n of i)if(!isNaN(t[n]+e[n]+r[n]+a[n])){if(this.visuals.fill.doit){if(this.visuals.fill.set_vectorize(s,n),s.beginPath(),_.is_ie)for(const i of[!1,!0])s.arc(t[n],e[n],r[n],0,Math.PI,i),s.arc(t[n],e[n],a[n],Math.PI,0,!i);else s.arc(t[n],e[n],r[n],0,2*Math.PI,!0),s.arc(t[n],e[n],a[n],2*Math.PI,0,!1);s.fill()}this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,n),s.beginPath(),s.arc(t[n],e[n],r[n],0,2*Math.PI),s.moveTo(t[n]+a[n],e[n]),s.arc(t[n],e[n],a[n],0,2*Math.PI),s.stroke())}}_hit_point(s){const{sx:i,sy:t}=s,e=this.renderer.xscale.invert(i),r=this.renderer.yscale.invert(t);let n,_,u,o;if("data"==this.model.properties.outer_radius.units)n=e-this.max_outer_radius,u=e+this.max_outer_radius,_=r-this.max_outer_radius,o=r+this.max_outer_radius;else{const s=i-this.max_outer_radius,e=i+this.max_outer_radius;[n,u]=this.renderer.xscale.r_invert(s,e);const r=t-this.max_outer_radius,a=t+this.max_outer_radius;[_,o]=this.renderer.yscale.r_invert(r,a)}const h=[];for(const s of this.index.indices({x0:n,x1:u,y0:_,y1:o})){const i=this.souter_radius[s]**2,t=this.sinner_radius[s]**2,[a,n]=this.renderer.xscale.r_compute(e,this._x[s]),[_,u]=this.renderer.yscale.r_compute(r,this._y[s]),o=(a-n)**2+(_-u)**2;o<=i&&o>=t&&h.push([s,o])}return a.create_hit_test_result_from_hits(h)}draw_legend_for_index(s,{x0:i,y0:t,x1:e,y1:r},a){const n=a+1,_=new Array(n);_[a]=(i+e)/2;const u=new Array(n);u[a]=(t+r)/2;const o=.5*Math.min(Math.abs(e-i),Math.abs(r-t)),h=new Array(n);h[a]=.4*o;const d=new Array(n);d[a]=.8*o,this._render(s,[a],{sx:_,sy:u,sinner_radius:h,souter_radius:d})}}t.AnnulusView=u,u.__name__="AnnulusView";class o extends r.XYGlyph{constructor(s){super(s)}static init_Annulus(){this.prototype.default_view=u,this.mixins(["line","fill"]),this.define({inner_radius:[n.DistanceSpec],outer_radius:[n.DistanceSpec]})}}t.Annulus=o,o.__name__="Annulus",o.init_Annulus()},n function _(e,i,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(1),r=e(81),n=e(90),a=t.__importStar(e(19));class _ extends r.XYGlyphView{_map_data(){"data"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius):this.sradius=this._radius}_render(e,i,{sx:s,sy:t,sradius:r,_start_angle:n,_end_angle:a}){if(this.visuals.line.doit){const _=this.model.properties.direction.value();for(const c of i)isNaN(s[c]+t[c]+r[c]+n[c]+a[c])||(e.beginPath(),e.arc(s[c],t[c],r[c],n[c],a[c],_),this.visuals.line.set_vectorize(e,c),e.stroke())}}draw_legend_for_index(e,i,s){n.generic_line_legend(this.visuals,e,i,s)}}s.ArcView=_,_.__name__="ArcView";class c extends r.XYGlyph{constructor(e){super(e)}static init_Arc(){this.prototype.default_view=_,this.mixins(["line"]),this.define({direction:[a.Direction,"anticlock"],radius:[a.DistanceSpec],start_angle:[a.AngleSpec],end_angle:[a.AngleSpec]})}}s.Arc=c,c.__name__="Arc",c.init_Arc()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(82),n=t(86),c=t(90);function o(t,e,i,s,n,c,o,h){const r=[],_=[[],[]];for(let _=0;_<=2;_++){let a,x,l;if(0===_?(x=6*t-12*i+6*n,a=-3*t+9*i-9*n+3*o,l=3*i-3*t):(x=6*e-12*s+6*c,a=-3*e+9*s-9*c+3*h,l=3*s-3*e),Math.abs(a)<1e-12){if(Math.abs(x)<1e-12)continue;const t=-l/x;0<t&&t<1&&r.push(t);continue}const y=x*x-4*l*a,u=Math.sqrt(y);if(y<0)continue;const d=(-x+u)/(2*a);0<d&&d<1&&r.push(d);const f=(-x-u)/(2*a);0<f&&f<1&&r.push(f)}let a=r.length;const x=a;for(;a–;){const x=r[a],l=1-x,y=l*l*l*t+3*l*l*x*i+3*l*x*x*n+x*x*x*o;_[0][a]=y;const u=l*l*l*e+3*l*l*x*s+3*l*x*x*c+x*x*x*h;_[1][a]=u}return _[0][x]=t,_[1][x]=e,_[0][x+1]=o,_[1][x+1]=h,[Math.min(…_[0]),Math.max(…_[1]),Math.max(…_[0]),Math.min(…_[1])]}class h extends n.GlyphView{_index_data(){const t=[];for(let e=0,i=this._x0.length;e<i;e++){if(isNaN(this._x0[e]+this._x1[e]+this._y0[e]+this._y1[e]+this._cx0[e]+this._cy0[e]+this._cx1[e]+this._cy1[e]))continue;const[i,s,n,c]=o(this._x0[e],this._y0[e],this._x1[e],this._y1[e],this._cx0[e],this._cy0[e],this._cx1[e],this._cy1[e]);t.push({x0:i,y0:s,x1:n,y1:c,i:e})}return new s.SpatialIndex(t)}_render(t,e,{sx0:i,sy0:s,sx1:n,sy1:c,scx0:o,scy0:h,scx1:r,scy1:_}){if(this.visuals.line.doit)for(const a of e)isNaN(i[a]+s[a]+n[a]+c[a]+o[a]+h[a]+r[a]+_[a])||(t.beginPath(),t.moveTo(i[a],s[a]),t.bezierCurveTo(o[a],h[a],r[a],_[a],n[a],c[a]),this.visuals.line.set_vectorize(t,a),t.stroke())}draw_legend_for_index(t,e,i){c.generic_line_legend(this.visuals,t,e,i)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}i.BezierView=h,h.__name__="BezierView";class r extends n.Glyph{constructor(t){super(t)}static init_Bezier(){this.prototype.default_view=h,this.coords([["x0","y0"],["x1","y1"],["cx0","cy0"],["cx1","cy1"]]),this.mixins(["line"])}}i.Bezier=r,r.__name__="Bezier",r.init_Bezier()},n function _(s,i,e){Object.defineProperty(e,"__esModule",{value:!0});const t=s(1),r=s(81),a=t.__importStar(s(87)),n=t.__importStar(s(19)),h=s(9),d=s(12);class _ extends r.XYGlyphView{_map_data(){if(null!=this._radius)if("data"==this.model.properties.radius.spec.units){switch(this.model.properties.radius_dimension.spec.value){case"x":this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius);break;case"y":this.sradius=this.sdist(this.renderer.yscale,this._y,this._radius);break;case"max":{const s=this.sdist(this.renderer.xscale,this._x,this._radius),i=this.sdist(this.renderer.yscale,this._y,this._radius);this.sradius=d.map(s,(s,e)=>Math.max(s,i[e]));break}case"min":{const s=this.sdist(this.renderer.xscale,this._x,this._radius),i=this.sdist(this.renderer.yscale,this._y,this._radius);this.sradius=d.map(s,(s,e)=>Math.min(s,i[e]));break}}}else this.sradius=this._radius,this.max_size=2*this.max_radius;else this.sradius=d.map(this._size,s=>s/2)}_mask_data(){const[s,i]=this.renderer.plot_view.frame.bbox.ranges;let e,t,r,a;if(null!=this._radius&&"data"==this.model.properties.radius.units){const n=s.start,h=s.end;[e,r]=this.renderer.xscale.r_invert(n,h),e-=this.max_radius,r+=this.max_radius;const d=i.start,_=i.end;[t,a]=this.renderer.yscale.r_invert(d,_),t-=this.max_radius,a+=this.max_radius}else{const n=s.start-this.max_size,h=s.end+this.max_size;[e,r]=this.renderer.xscale.r_invert(n,h);const d=i.start-this.max_size,_=i.end+this.max_size;[t,a]=this.renderer.yscale.r_invert(d,_)}return this.index.indices({x0:e,x1:r,y0:t,y1:a})}_render(s,i,{sx:e,sy:t,sradius:r}){for(const a of i)isNaN(e[a]+t[a]+r[a])||(s.beginPath(),s.arc(e[a],t[a],r[a],0,2*Math.PI,!1),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(s,a),s.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,a),s.stroke()))}_hit_point(s){const{sx:i,sy:e}=s,t=this.renderer.xscale.invert(i),r=this.renderer.yscale.invert(e);let n,h,d,_;if(null!=this._radius&&"data"==this.model.properties.radius.units)n=t-this.max_radius,h=t+this.max_radius,d=r-this.max_radius,_=r+this.max_radius;else{const s=i-this.max_size,t=i+this.max_size;[n,h]=this.renderer.xscale.r_invert(s,t);const r=e-this.max_size,a=e+this.max_size;[d,_]=this.renderer.yscale.r_invert(r,a)}const l=this.index.indices({x0:n,x1:h,y0:d,y1:_}),c=[];if(null!=this._radius&&"data"==this.model.properties.radius.units)for(const s of l){const i=this.sradius[s]**2,[e,a]=this.renderer.xscale.r_compute(t,this._x[s]),[n,h]=this.renderer.yscale.r_compute(r,this._y[s]),d=(e-a)**2+(n-h)**2;d<=i&&c.push([s,d])}else for(const s of l){const t=this.sradius[s]**2,r=(this.sx[s]-i)**2+(this.sy[s]-e)**2;r<=t&&c.push([s,r])}return a.create_hit_test_result_from_hits(c)}_hit_span(s){const{sx:i,sy:e}=s,t=this.bounds(),r=a.create_empty_hit_test_result();let n,h,d,_;if("h"==s.direction){let s,e;if(d=t.y0,_=t.y1,null!=this._radius&&"data"==this.model.properties.radius.units)s=i-this.max_radius,e=i+this.max_radius,[n,h]=this.renderer.xscale.r_invert(s,e);else{const t=this.max_size/2;s=i-t,e=i+t,[n,h]=this.renderer.xscale.r_invert(s,e)}}else{let s,i;if(n=t.x0,h=t.x1,null!=this._radius&&"data"==this.model.properties.radius.units)s=e-this.max_radius,i=e+this.max_radius,[d,_]=this.renderer.yscale.r_invert(s,i);else{const t=this.max_size/2;s=e-t,i=e+t,[d,_]=this.renderer.yscale.r_invert(s,i)}}const l=this.index.indices({x0:n,x1:h,y0:d,y1:_});return r.indices=l,r}_hit_rect(s){const{sx0:i,sx1:e,sy0:t,sy1:r}=s,[n,h]=this.renderer.xscale.r_invert(i,e),[d,_]=this.renderer.yscale.r_invert(t,r),l=a.create_empty_hit_test_result();return l.indices=this.index.indices({x0:n,x1:h,y0:d,y1:_}),l}_hit_poly(s){const{sx:i,sy:e}=s,t=h.range(0,this.sx.length),r=[];for(let s=0,n=t.length;s<n;s++){const n=t[s];a.point_in_poly(this.sx[s],this.sy[s],i,e)&&r.push(n)}const n=a.create_empty_hit_test_result();return n.indices=r,n}draw_legend_for_index(s,{x0:i,y0:e,x1:t,y1:r},a){const n=a+1,h=new Array(n);h[a]=(i+t)/2;const d=new Array(n);d[a]=(e+r)/2;const _=new Array(n);_[a]=.2*Math.min(Math.abs(t-i),Math.abs(r-e)),this._render(s,[a],{sx:h,sy:d,sradius:_})}}e.CircleView=_,_.__name__="CircleView";class l extends r.XYGlyph{constructor(s){super(s)}static init_Circle(){this.prototype.default_view=_,this.mixins(["line","fill"]),this.define({angle:[n.AngleSpec,0],size:[n.DistanceSpec,{units:"screen",value:4}],radius:[n.DistanceSpec],radius_dimension:[n.RadiusDimension,"x"]})}initialize(){super.initialize(),this.properties.radius.optional=!0}}e.Circle=l,l.__name__="Circle",l.init_Circle()},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const a=e(1),i=e(81),l=a.__importStar(e(19));class s extends i.XYGlyphView{}n.CenterRotatableView=s,s.__name__="CenterRotatableView";class _ extends i.XYGlyph{constructor(e){super(e)}static init_CenterRotatable(){this.mixins(["line","fill"]),this.define({angle:[l.AngleSpec,0],width:[l.DistanceSpec],height:[l.DistanceSpec]})}}n.CenterRotatable=_,_.__name__="CenterRotatable",_.init_CenterRotatable()},n function _(e,l,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(215);class t extends s.EllipseOvalView{}i.EllipseView=t,t.__name__="EllipseView";class _ extends s.EllipseOval{constructor(e){super(e)}static init_Ellipse(){this.prototype.default_view=t}}i.Ellipse=_,_.__name__="Ellipse",_.init_Ellipse()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(213),r=i.__importStar(t(87));class a extends h.CenterRotatableView{_set_data(){this.max_w2=0,"data"==this.model.properties.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,"data"==this.model.properties.height.units&&(this.max_h2=this.max_height/2)}_map_data(){"data"==this.model.properties.width.units?this.sw=this.sdist(this.renderer.xscale,this._x,this._width,"center"):this.sw=this._width,"data"==this.model.properties.height.units?this.sh=this.sdist(this.renderer.yscale,this._y,this._height,"center"):this.sh=this._height}_render(t,s,{sx:e,sy:i,sw:h,sh:r,_angle:a}){for(const _ of s)isNaN(e[_]+i[_]+h[_]+r[_]+a[_])||(t.beginPath(),t.ellipse(e[_],i[_],h[_]/2,r[_]/2,a[_],0,2*Math.PI),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,_),t.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,_),t.stroke()))}_hit_point(t){let s,e,i,h,a,_,n,l,d,o;const{sx:x,sy:m}=t,c=this.renderer.xscale.invert(x),w=this.renderer.yscale.invert(m);"data"==this.model.properties.width.units?(s=c-this.max_width,e=c+this.max_width):(n=x-this.max_width,l=x+this.max_width,[s,e]=this.renderer.xscale.r_invert(n,l)),"data"==this.model.properties.height.units?(i=w-this.max_height,h=w+this.max_height):(d=m-this.max_height,o=m+this.max_height,[i,h]=this.renderer.yscale.r_invert(d,o));const p=this.index.indices({x0:s,x1:e,y0:i,y1:h}),y=[];for(const t of p)a=r.point_in_ellipse(x,m,this._angle[t],this.sh[t]/2,this.sw[t]/2,this.sx[t],this.sy[t]),a&&([n,l]=this.renderer.xscale.r_compute(c,this._x[t]),[d,o]=this.renderer.yscale.r_compute(w,this._y[t]),_=(n-l)**2+(d-o)**2,y.push([t,_]));return r.create_hit_test_result_from_hits(y)}draw_legend_for_index(t,{x0:s,y0:e,x1:i,y1:h},r){const a=r+1,_=new Array(a);_[r]=(s+i)/2;const n=new Array(a);n[r]=(e+h)/2;const l=this.sw[r]/this.sh[r],d=.8*Math.min(Math.abs(i-s),Math.abs(h-e)),o=new Array(a),x=new Array(a);l>1?(o[r]=d,x[r]=d/l):(o[r]=d*l,x[r]=d),this._render(t,[r],{sx:_,sy:n,sw:o,sh:x,_angle:[0]})}_bounds({x0:t,x1:s,y0:e,y1:i}){return{x0:t-this.max_w2,x1:s+this.max_w2,y0:e-this.max_h2,y1:i+this.max_h2}}}e.EllipseOvalView=a,a.__name__="EllipseOvalView";class _ extends h.CenterRotatable{constructor(t){super(t)}}e.EllipseOval=_,_.__name__="EllipseOval"},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(217),r=i.__importStar(t(19));class _ extends h.BoxView{scenterx(t){return(this.sleft[t]+this.sright[t])/2}scentery(t){return this.sy[t]}_index_data(){return this._index_box(this._y.length)}_lrtb(t){return[Math.min(this._left[t],this._right[t]),Math.max(this._left[t],this._right[t]),this._y[t]+.5*this._height[t],this._y[t]-.5*this._height[t]]}_map_data(){this.sy=this.renderer.yscale.v_compute(this._y),this.sh=this.sdist(this.renderer.yscale,this._y,this._height,"center"),this.sleft=this.renderer.xscale.v_compute(this._left),this.sright=this.renderer.xscale.v_compute(this._right);const t=this.sy.length;this.stop=new Float64Array(t),this.sbottom=new Float64Array(t);for(let s=0;s<t;s++)this.stop[s]=this.sy[s]-this.sh[s]/2,this.sbottom[s]=this.sy[s]+this.sh[s]/2;this._clamp_viewport()}}e.HBarView=_,_.__name__="HBarView";class a extends h.Box{constructor(t){super(t)}static init_HBar(){this.prototype.default_view=_,this.coords([["left","y"]]),this.define({height:[r.NumberSpec],right:[r.CoordinateSpec]}),this.override({left:0})}}e.HBar=a,a.__name__="HBar",a.init_HBar()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),r=t(82),n=t(86),h=t(90),a=i.__importStar(t(87));class o extends n.GlyphView{get_anchor_point(t,e,s){const i=Math.min(this.sleft[e],this.sright[e]),r=Math.max(this.sright[e],this.sleft[e]),n=Math.min(this.stop[e],this.sbottom[e]),h=Math.max(this.sbottom[e],this.stop[e]);switch(t){case"top_left":return{x:i,y:n};case"top_center":return{x:(i+r)/2,y:n};case"top_right":return{x:r,y:n};case"bottom_left":return{x:i,y:h};case"bottom_center":return{x:(i+r)/2,y:h};case"bottom_right":return{x:r,y:h};case"center_left":return{x:i,y:(n+h)/2};case"center":return{x:(i+r)/2,y:(n+h)/2};case"center_right":return{x:r,y:(n+h)/2};default:return null}}_index_box(t){const e=[];for(let s=0;s<t;s++){const[t,i,r,n]=this._lrtb(s);!isNaN(t+i+r+n)&&isFinite(t+i+r+n)&&e.push({x0:Math.min(t,i),y0:Math.min(r,n),x1:Math.max(i,t),y1:Math.max(r,n),i:s})}return new r.SpatialIndex(e)}_render(t,e,{sleft:s,sright:i,stop:r,sbottom:n}){for(const h of e)isNaN(s[h]+r[h]+i[h]+n[h])||(t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,h),t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.fill()),this.visuals.hatch.doit2(t,h,()=>{t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.fill()},()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,h),t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.stroke()))}_clamp_viewport(){const t=this.renderer.plot_view.frame.bbox.h_range,e=this.renderer.plot_view.frame.bbox.v_range,s=this.stop.length;for(let i=0;i<s;i++)this.stop[i]=Math.max(this.stop[i],e.start),this.sbottom[i]=Math.min(this.sbottom[i],e.end),this.sleft[i]=Math.max(this.sleft[i],t.start),this.sright[i]=Math.min(this.sright[i],t.end)}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){const{sx:e,sy:s}=t,i=this.renderer.xscale.invert(e),r=this.renderer.yscale.invert(s),n=this.index.indices({x0:i,y0:r,x1:i,y1:r}),h=a.create_empty_hit_test_result();return h.indices=n,h}_hit_span(t){const{sx:e,sy:s}=t;let i;if("v"==t.direction){const t=this.renderer.yscale.invert(s),e=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(e.start,e.end);i=this.index.indices({x0:r,y0:t,x1:n,y1:t})}else{const t=this.renderer.xscale.invert(e),s=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(s.start,s.end);i=this.index.indices({x0:t,y0:r,x1:t,y1:n})}const r=a.create_empty_hit_test_result();return r.indices=i,r}draw_legend_for_index(t,e,s){h.generic_area_legend(this.visuals,t,e,s)}}s.BoxView=o,o.__name__="BoxView";class _ extends n.Glyph{constructor(t){super(t)}static init_Box(){this.mixins(["line","fill","hatch"])}}s.Box=_,_.__name__="Box",_.init_Box()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(86),n=i.__importStar(e(87)),a=i.__importStar(e(19)),h=e(82),_=e(90);class l extends r.GlyphView{scenterx(e){return this.sx[e]}scentery(e){return this.sy[e]}_set_data(){const e=this._q.length,t=this.model.size,s=this.model.aspect_scale;if(this._x=new Float64Array(e),this._y=new Float64Array(e),"pointytop"==this.model.orientation)for(let i=0;i<e;i++)this._x[i]=t*Math.sqrt(3)*(this._q[i]+this._r[i]/2)/s,this._y[i]=3*-t/2*this._r[i];else for(let i=0;i<e;i++)this._x[i]=3*t/2*this._q[i],this._y[i]=-t*Math.sqrt(3)*(this._r[i]+this._q[i]/2)*s}_index_data(){let e=this.model.size,t=Math.sqrt(3)*e/2;"flattop"==this.model.orientation?([t,e]=[e,t],e*=this.model.aspect_scale):t/=this.model.aspect_scale;const s=[];for(let i=0;i<this._x.length;i++){const r=this._x[i],n=this._y[i];!isNaN(r+n)&&isFinite(r+n)&&s.push({x0:r-t,y0:n-e,x1:r+t,y1:n+e,i})}return new h.SpatialIndex(s)}map_data(){[this.sx,this.sy]=this.map_to_screen(this._x,this._y),[this.svx,this.svy]=this._get_unscaled_vertices()}_get_unscaled_vertices(){const e=this.model.size,t=this.model.aspect_scale;if("pointytop"==this.model.orientation){const s=this.renderer.yscale,i=this.renderer.xscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))/t,a=r/2;return[[0,-n,-n,0,n,n],[r,a,-a,-r,-a,a]]}{const s=this.renderer.xscale,i=this.renderer.yscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))*t,a=r/2;return[[r,a,-a,-r,-a,a],[0,-n,-n,0,n,n]]}}_render(e,t,{sx:s,sy:i,svx:r,svy:n,_scale:a}){for(const h of t)if(!isNaN(s[h]+i[h]+a[h])){e.translate(s[h],i[h]),e.beginPath();for(let t=0;t<6;t++)e.lineTo(r[t]*a[h],n[t]*a[h]);e.closePath(),e.translate(-s[h],-i[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,h),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,h),e.stroke())}}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(s),a=this.index.indices({x0:i,y0:r,x1:i,y1:r}),h=[];for(const e of a)n.point_in_poly(t-this.sx[e],s-this.sy[e],this.svx,this.svy)&&h.push(e);const _=n.create_empty_hit_test_result();return _.indices=h,_}_hit_span(e){const{sx:t,sy:s}=e;let i;if("v"==e.direction){const e=this.renderer.yscale.invert(s),t=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(t.start,t.end);i=this.index.indices({x0:r,y0:e,x1:n,y1:e})}else{const e=this.renderer.xscale.invert(t),s=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(s.start,s.end);i=this.index.indices({x0:e,y0:r,x1:e,y1:n})}const r=n.create_empty_hit_test_result();return r.indices=i,r}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:r}=e,[a,h]=this.renderer.xscale.r_invert(t,s),[_,l]=this.renderer.yscale.r_invert(i,r),o=n.create_empty_hit_test_result();return o.indices=this.index.indices({x0:a,x1:h,y0:_,y1:l}),o}draw_legend_for_index(e,t,s){_.generic_area_legend(this.visuals,e,t,s)}}s.HexTileView=l,l.__name__="HexTileView";class o extends r.Glyph{constructor(e){super(e)}static init_HexTile(){this.prototype.default_view=l,this.coords([["r","q"]]),this.mixins(["line","fill"]),this.define({size:[a.Number,1],aspect_scale:[a.Number,1],scale:[a.NumberSpec,1],orientation:[a.HexTileOrientation,"pointytop"]}),this.override({line_color:null})}}s.HexTile=o,o.__name__="HexTile",o.init_HexTile()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(1),s=e(220),_=e(114),n=i.__importStar(e(19)),h=e(9);class o extends s.ImageBaseView{initialize(){super.initialize(),this.connect(this.model.color_mapper.change,()=>this._update_image()),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_update_image(){null!=this.image_data&&(this._set_data(),this.renderer.plot_view.request_render())}_set_data(){this._set_width_heigh_data();const e=this.model.color_mapper.rgba_mapper;for(let t=0,a=this._image.length;t<a;t++){let a;if(null!=this._image_shape&&this._image_shape[t].length>0){a=this._image[t];const e=this._image_shape[t];this._height[t]=e[0],this._width[t]=e[1]}else{const e=this._image[t];a=h.concat(e),this._height[t]=e.length,this._width[t]=e[0].length}const i=e.v_compute(a);this._set_image_data_from_buffer(t,i)}}_render(e,t,{image_data:a,sx:i,sy:s,sw:_,sh:n}){const h=e.getImageSmoothingEnabled();e.setImageSmoothingEnabled(!1),e.globalAlpha=this.model.global_alpha;for(const h of t){if(null==a[h])continue;if(isNaN(i[h]+s[h]+_[h]+n[h]))continue;const t=s[h];e.translate(0,t),e.scale(1,-1),e.translate(0,-t),e.drawImage(a[h],0|i[h],0|s[h],_[h],n[h]),e.translate(0,t),e.scale(1,-1),e.translate(0,-t)}e.setImageSmoothingEnabled(h)}}a.ImageView=o,o.__name__="ImageView";class l extends s.ImageBase{constructor(e){super(e)}static init_Image(){this.prototype.default_view=o,this.define({color_mapper:[n.Instance,()=>new _.LinearColorMapper({palette:["#000000","#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0","#ffffff"]})]})}}a.Image=l,l.__name__="Image",l.init_Image()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),h=e(81),a=s.__importStar(e(19)),_=s.__importStar(e(87)),r=e(82);class n extends h.XYGlyphView{_render(e,t,i){}_index_data(){const e=[];for(let t=0,i=this._x.length;t<i;t++){const[i,s,h,a]=this._lrtb(t);!isNaN(i+s+h+a)&&isFinite(i+s+h+a)&&e.push({x0:i,y0:a,x1:s,y1:h,i:t})}return new r.SpatialIndex(e)}_lrtb(e){const t=this.renderer.xscale.source_range,i=this._x[e],s=t.is_reversed?i-this._dw[e]:i+this._dw[e],h=this.renderer.yscale.source_range,a=this._y[e],_=h.is_reversed?a-this._dh[e]:a+this._dh[e],[r,n]=i<s?[i,s]:[s,i],[d,g]=a<_?[a,_]:[_,a];return[r,n,g,d]}_set_width_heigh_data(){null!=this.image_data&&this.image_data.length==this._image.length||(this.image_data=new Array(this._image.length)),null!=this._width&&this._width.length==this._image.length||(this._width=new Array(this._image.length)),null!=this._height&&this._height.length==this._image.length||(this._height=new Array(this._image.length))}_get_or_create_canvas(e){const t=this.image_data[e];if(null!=t&&t.width==this._width[e]&&t.height==this._height[e])return t;{const t=document.createElement("canvas");return t.width=this._width[e],t.height=this._height[e],t}}_set_image_data_from_buffer(e,t){const i=this._get_or_create_canvas(e),s=i.getContext("2d"),h=s.getImageData(0,0,this._width[e],this._height[e]);h.data.set(t),s.putImageData(h,0,0),this.image_data[e]=i}_map_data(){switch(this.model.properties.dw.units){case"data":this.sw=this.sdist(this.renderer.xscale,this._x,this._dw,"edge",this.model.dilate);break;case"screen":this.sw=this._dw}switch(this.model.properties.dh.units){case"data":this.sh=this.sdist(this.renderer.yscale,this._y,this._dh,"edge",this.model.dilate);break;case"screen":this.sh=this._dh}}_image_index(e,t,i){const[s,h,a,_]=this._lrtb(e),r=this._width[e],n=this._height[e],d=(h-s)/r,g=(a-_)/n;let l=Math.floor((t-s)/d),c=Math.floor((i-_)/g);return this.renderer.xscale.source_range.is_reversed&&(l=r-l-1),this.renderer.yscale.source_range.is_reversed&&(c=n-c-1),{index:e,dim1:l,dim2:c,flat_index:c*r+l}}_hit_point(e){const{sx:t,sy:i}=e,s=this.renderer.xscale.invert(t),h=this.renderer.yscale.invert(i),a=this.index.indices({x0:s,x1:s,y0:h,y1:h}),r=_.create_empty_hit_test_result();r.image_indices=[];for(const e of a)t!=1/0&&i!=1/0&&r.image_indices.push(this._image_index(e,s,h));return r}}i.ImageBaseView=n,n.__name__="ImageBaseView";class d extends h.XYGlyph{constructor(e){super(e)}static init_ImageBase(){this.prototype.default_view=n,this.define({image:[a.NumberSpec],dw:[a.DistanceSpec],dh:[a.DistanceSpec],dilate:[a.Boolean,!1],global_alpha:[a.Number,1]})}}i.ImageBase=d,d.__name__="ImageBase",d.init_ImageBase()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(220),s=e(9);class n extends i.ImageBaseView{initialize(){super.initialize(),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_set_data(e){this._set_width_heigh_data();for(let t=0,a=this._image.length;t<a;t++){if(null!=e&&e.indexOf(t)<0)continue;let a;if(null!=this._image_shape&&this._image_shape[t].length>0){a=this._image[t].buffer;const e=this._image_shape[t];this._height[t]=e[0],this._width[t]=e[1]}else{const e=this._image[t],i=s.concat(e);a=new ArrayBuffer(4*i.length);const n=new Uint32Array(a);for(let e=0,t=i.length;e<t;e++)n[e]=i[e];this._height[t]=e.length,this._width[t]=e[0].length}const i=new Uint8Array(a);this._set_image_data_from_buffer(t,i)}}_render(e,t,{image_data:a,sx:i,sy:s,sw:n,sh:h}){const _=e.getImageSmoothingEnabled();e.setImageSmoothingEnabled(!1),e.globalAlpha=this.model.global_alpha;for(const _ of t){if(isNaN(i[_]+s[_]+n[_]+h[_]))continue;const t=s[_];e.translate(0,t),e.scale(1,-1),e.translate(0,-t),e.drawImage(a[_],0|i[_],0|s[_],n[_],h[_]),e.translate(0,t),e.scale(1,-1),e.translate(0,-t)}e.setImageSmoothingEnabled(_)}}a.ImageRGBAView=n,n.__name__="ImageRGBAView";class h extends i.ImageBase{constructor(e){super(e)}static init_ImageRGBA(){this.prototype.default_view=n}}a.ImageRGBA=h,h.__name__="ImageRGBA",h.init_ImageRGBA()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(81),a=i.__importStar(e(19)),n=e(12),h=e(82),l=e(223);class _ extends r.XYGlyphView{constructor(){super(…arguments),this._images_rendered=!1}initialize(){super.initialize(),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_index_data(){return new h.SpatialIndex([])}_set_data(){null!=this.image&&this.image.length==this._url.length||(this.image=n.map(this._url,()=>null));const{retry_attempts:e,retry_timeout:t}=this.model;for(let s=0,i=this._url.length;s<i;s++){const i=this._url[s];null!=i&&""!=i&&new l.ImageLoader(i,{loaded:e=>{this.image[s]=e,this.renderer.request_render()},attempts:e+1,timeout:t})}const s="data"==this.model.properties.w.units,i="data"==this.model.properties.h.units,r=this._x.length,a=new Array(s?2*r:r),h=new Array(i?2*r:r);for(let e=0;e<r;e++)a[e]=this._x[e],h[e]=this._y[e];if(s)for(let e=0;e<r;e++)a[r+e]=this._x[e]+this._w[e];if(i)for(let e=0;e<r;e++)h[r+e]=this._y[e]+this._h[e];const _=n.min(a),o=n.max(a),d=n.min(h),c=n.max(h);this._bounds_rect={x0:_,x1:o,y0:d,y1:c}}has_finished(){return super.has_finished()&&1==this._images_rendered}_map_data(){const e=null!=this.model.w?this._w:n.map(this._x,()=>NaN),t=null!=this.model.h?this._h:n.map(this._x,()=>NaN);switch(this.model.properties.w.units){case"data":this.sw=this.sdist(this.renderer.xscale,this._x,e,"edge",this.model.dilate);break;case"screen":this.sw=e}switch(this.model.properties.h.units){case"data":this.sh=this.sdist(this.renderer.yscale,this._y,t,"edge",this.model.dilate);break;case"screen":this.sh=t}}_render(e,t,{image:s,sx:i,sy:r,sw:a,sh:n,_angle:h}){const{frame:l}=this.renderer.plot_view;e.rect(l._left.value+1,l._top.value+1,l._width.value-2,l._height.value-2),e.clip();let _=!0;for(const l of t){if(isNaN(i[l]+r[l]+h[l]))continue;const t=s[l];null!=t?this._render_image(e,l,t,i,r,a,n,h):_=!1}_&&!this._images_rendered&&(this._images_rendered=!0,this.notify_finished())}_final_sx_sy(e,t,s,i,r){switch(e){case"top_left":return[t,s];case"top_center":return[t-i/2,s];case"top_right":return[t-i,s];case"center_right":return[t-i,s-r/2];case"bottom_right":return[t-i,s-r];case"bottom_center":return[t-i/2,s-r];case"bottom_left":return[t,s-r];case"center_left":return[t,s-r/2];case"center":return[t-i/2,s-r/2]}}_render_image(e,t,s,i,r,a,n,h){isNaN(a[t])&&(a[t]=s.width),isNaN(n[t])&&(n[t]=s.height);const{anchor:l}=this.model,[_,o]=this._final_sx_sy(l,i[t],r[t],a[t],n[t]);e.save(),e.globalAlpha=this.model.global_alpha;const d=a[t]/2,c=n[t]/2;h[t]?(e.translate(_,o),e.translate(d,c),e.rotate(h[t]),e.translate(-d,-c),e.drawImage(s,0,0,a[t],n[t]),e.translate(d,c),e.rotate(-h[t]),e.translate(-d,-c),e.translate(-_,-o)):e.drawImage(s,_,o,a[t],n[t]),e.restore()}bounds(){return this._bounds_rect}}s.ImageURLView=_,_.__name__="ImageURLView";class o extends r.XYGlyph{constructor(e){super(e)}static init_ImageURL(){this.prototype.default_view=_,this.define({url:[a.StringSpec],anchor:[a.Anchor,"top_left"],global_alpha:[a.Number,1],angle:[a.AngleSpec,0],w:[a.DistanceSpec],h:[a.DistanceSpec],dilate:[a.Boolean,!1],retry_attempts:[a.Number,0],retry_timeout:[a.Number,0]})}}s.ImageURL=o,o.__name__="ImageURL",o.init_ImageURL()},n function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const s=i(70);class a{constructor(i,e={}){this._image=new Image,this._finished=!1;const{attempts:t=1,timeout:a=1}=e;this.promise=new Promise((o,n)=>{this._image.crossOrigin="anonymous";let r=0;this._image.onerror=()=>{if(++r==t){const a=`unable to load ${i} image after ${t} attempts`;if(s.logger.warn(a),null==this._image.crossOrigin)return void(null!=e.failed&&e.failed());s.logger.warn(attempting to load ${i} without a cross origin policy),this._image.crossOrigin=null,r=0}setTimeout(()=>this._image.src=i,a)},this._image.onload=()=>{this._finished=!0,null!=e.loaded&&e.loaded(this._image),o(this._image)},this._image.src=i})}get finished(){return this._finished}get image(){return this._image}}t.ImageLoader=a,a.__name__="ImageLoader"},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(82),r=i.__importStar(t(87)),l=t(24),o=t(9),_=t(8),h=t(86),c=t(90);class a extends h.GlyphView{_index_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++){if(null==this._xs[e]||0===this._xs[e].length)continue;const s=this._xs[e],i=[];for(let t=0,e=s.length;t<e;t++){const e=s[t];_.isStrictNaN(e)||i.push(e)}const n=this._ys[e],r=[];for(let t=0,e=n.length;t<e;t++){const e=n[t];_.isStrictNaN(e)||r.push(e)}const[l,h]=[o.min(i),o.max(i)],[c,a]=[o.min(r),o.max(r)];t.push({x0:l,y0:c,x1:h,y1:a,i:e})}return new n.SpatialIndex(t)}_render(t,e,{sxs:s,sys:i}){for(const n of e){const[e,r]=[s[n],i[n]];this.visuals.line.set_vectorize(t,n);for(let s=0,i=e.length;s<i;s++)0!=s?isNaN(e[s])||isNaN(r[s])?(t.stroke(),t.beginPath()):t.lineTo(e[s],r[s]):(t.beginPath(),t.moveTo(e[s],r[s]));t.stroke()}}_hit_point(t){const e=r.create_empty_hit_test_result(),s={x:t.sx,y:t.sy};let i=9999;const n={};for(let t=0,e=this.sxs.length;t<e;t++){const e=Math.max(2,this.visuals.line.cache_select("line_width",t)/2);let l=null;for(let n=0,o=this.sxs[t].length-1;n<o;n++){const o={x:this.sxs[t][n],y:this.sys[t][n]},_={x:this.sxs[t][n+1],y:this.sys[t][n+1]},h=r.dist_to_segment(s,o,_);h<e&&h<i&&(i=h,l=[n])}l&&(n[t]=l)}return e.indices=l.keys(n).map(t=>parseInt(t,10)),e.multiline_indices=n,e}_hit_span(t){const{sx:e,sy:s}=t,i=r.create_empty_hit_test_result();let n,o;"v"===t.direction?(n=this.renderer.yscale.invert(s),o=this._ys):(n=this.renderer.xscale.invert(e),o=this._xs);const _={};for(let t=0,e=o.length;t<e;t++){const e=[];for(let s=0,i=o[t].length-1;s<i;s++)o[t][s]<=n&&n<=o[t][s+1]&&e.push(s);e.length>0&&(_[t]=e)}return i.indices=l.keys(_).map(t=>parseInt(t,10)),i.multiline_indices=_,i}get_interpolation_hit(t,e,s){const[i,n,r,l]=[this._xs[t][e],this._ys[t][e],this._xs[t][e+1],this._ys[t][e+1]];return c.line_interpolation(this.renderer,s,i,n,r,l)}draw_legend_for_index(t,e,s){c.generic_line_legend(this.visuals,t,e,s)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}s.MultiLineView=a,a.__name__="MultiLineView";class x extends h.Glyph{constructor(t){super(t)}static init_MultiLine(){this.prototype.default_view=a,this.coords([["xs","ys"]]),this.mixins(["line"])}}s.MultiLine=x,x.__name__="MultiLine",x.init_MultiLine()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(82),r=t(86),l=t(90),o=t(9),h=t(12),_=i.__importStar(t(87)),a=t(8),c=t(11);class d extends r.GlyphView{_index_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++)for(let s=0,i=this._xs[e].length;s<i;s++){const i=this._xs[e][s][0],n=this._ys[e][s][0];0!=i.length&&t.push({x0:o.min(i),y0:o.min(n),x1:o.max(i),y1:o.max(n),i:e})}return this.hole_index=this._index_hole_data(),new n.SpatialIndex(t)}_index_hole_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++)for(let s=0,i=this._xs[e].length;s<i;s++)if(this._xs[e][s].length>1)for(let i=1,n=this._xs[e][s].length;i<n;i++){const n=this._xs[e][s][i],r=this._ys[e][s][i];0!=n.length&&t.push({x0:o.min(n),y0:o.min(r),x1:o.max(n),y1:o.max(r),i:e})}return new n.SpatialIndex(t)}_mask_data(){const t=this.renderer.plot_view.frame.x_ranges.default,[e,s]=[t.min,t.max],i=this.renderer.plot_view.frame.y_ranges.default,[n,r]=[i.min,i.max];return this.index.indices({x0:e,x1:s,y0:n,y1:r}).sort((t,e)=>t-e).filter((t,e,s)=>0===e||t!==s[e-1])}_inner_loop(t,e,s){t.beginPath();for(let i=0,n=e.length;i<n;i++)for(let n=0,r=e[i].length;n<r;n++){const r=e[i][n],l=s[i][n];for(let e=0,s=r.length;e<s;e++)0!=e?t.lineTo(r[e],l[e]):t.moveTo(r[e],l[e]);t.closePath()}}_render(t,e,{sxs:s,sys:i}){if(this.visuals.fill.doit||this.visuals.line.doit)for(const n of e){const[e,r]=[s[n],i[n]];this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,n),this._inner_loop(t,e,r),t.fill("evenodd")),this.visuals.hatch.doit2(t,n,()=>{this._inner_loop(t,e,r),t.fill("evenodd")},()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,n),this._inner_loop(t,e,r),t.stroke())}}_hit_rect(t){const{sx0:e,sx1:s,sy0:i,sy1:n}=t,r=[e,s,s,e],l=[i,i,n,n],[o,h]=this.renderer.xscale.r_invert(e,s),[a,c]=this.renderer.yscale.r_invert(i,n),d=this.index.indices({x0:o,x1:h,y0:a,y1:c}),x=[];for(let t=0,e=d.length;t<e;t++){const e=d[t],s=this.sxs[e],i=this.sys[e];let n=!0;for(let t=0,e=s.length;t<e;t++){for(let e=0,o=s[t][0].length;e<o;e++){const o=s[t][0][e],h=i[t][0][e];if(!_.point_in_poly(o,h,r,l)){n=!1;break}}if(!n)break}n&&x.push(e)}const y=_.create_empty_hit_test_result();return y.indices=x,y}_hit_point(t){const{sx:e,sy:s}=t,i=this.renderer.xscale.invert(e),n=this.renderer.yscale.invert(s),r=this.index.indices({x0:i,y0:n,x1:i,y1:n}),l=this.hole_index.indices({x0:i,y0:n,x1:i,y1:n}),o=[];for(let t=0,i=r.length;t<i;t++){const i=r[t],n=this.sxs[i],h=this.sys[i];for(let t=0,r=n.length;t<r;t++){const r=n[t].length;if(_.point_in_poly(e,s,n[t][0],h[t][0]))if(1==r)o.push(i);else if(-1==l.indexOf(i))o.push(i);else if(r>1){let l=!1;for(let i=1;i<r;i++){const r=n[t][i],o=h[t][i];if(_.point_in_poly(e,s,r,o)){l=!0;break}}l||o.push(i)}}}const h=_.create_empty_hit_test_result();return h.indices=o,h}_get_snap_coord(t){return h.sum(t)/t.length}scenterx(t,e,s){if(1==this.sxs[t].length)return this._get_snap_coord(this.sxs[t][0][0]);{const i=this.sxs[t],n=this.sys[t];for(let t=0,r=i.length;t<r;t++)if(_.point_in_poly(e,s,i[t][0],n[t][0]))return this._get_snap_coord(i[t][0])}c.unreachable()}scentery(t,e,s){if(1==this.sys[t].length)return this._get_snap_coord(this.sys[t][0][0]);{const i=this.sxs[t],n=this.sys[t];for(let t=0,r=i.length;t<r;t++)if(_.point_in_poly(e,s,i[t][0],n[t][0]))return this._get_snap_coord(n[t][0])}c.unreachable()}map_data(){const t=this;for(let[e,s]of this.model._coords){const i=`s${e}`,n=`s${s}`;if(e=`_${e}`,s=`_${s}`,null!=t[e]&&(a.isArray(t[e][0])||a.isTypedArray(t[e][0]))){const r=t[e].length;t[i]=new Array(r),t[n]=new Array(r);for(let l=0;l<r;l++){const r=t[e][l].length;t[i][l]=new Array(r),t[n][l]=new Array(r);for(let o=0;o<r;o++){const r=t[e][l][o].length;t[i][l][o]=new Array(r),t[n][l][o]=new Array(r);for(let h=0;h<r;h++){const[r,_]=this.map_to_screen(t[e][l][o][h],t[s][l][o][h]);t[i][l][o][h]=r,t[n][l][o][h]=_}}}}}}draw_legend_for_index(t,e,s){l.generic_area_legend(this.visuals,t,e,s)}}s.MultiPolygonsView=d,d.__name__="MultiPolygonsView";class x extends r.Glyph{constructor(t){super(t)}static init_MultiPolygons(){this.prototype.default_view=d,this.coords([["xs","ys"]]),this.mixins(["line","fill","hatch"])}}s.MultiPolygons=x,x.__name__="MultiPolygons",x.init_MultiPolygons()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const l=e(215);class s extends l.EllipseOvalView{_map_data(){super._map_data();const{sw:e}=this,t=e.length;for(let a=0;a<t;a++)e[a]*=.75}}a.OvalView=s,s.__name__="OvalView";class _ extends l.EllipseOval{constructor(e){super(e)}static init_Oval(){this.prototype.default_view=s}}a.Oval=_,_.__name__="Oval",_.init_Oval()},n function _(s,t,e){Object.defineProperty(e,"__esModule",{value:!0});const i=s(1),n=s(82),r=s(86),o=s(90),_=s(9),l=s(12),h=s(8),c=i.__importStar(s(87)),a=s(11);class d extends r.GlyphView{_build_discontinuous_object(s){const t=[];for(let e=0,i=s.length;e<i;e++){t[e]=[];let i=_.copy(s[e]);for(;i.length>0;){const s=_.find_last_index(i,s=>h.isStrictNaN(s));let n;s>=0?n=i.splice(s):(n=i,i=[]);const r=n.filter(s=>!h.isStrictNaN(s));t[e].push(r)}}return t}_index_data(){const s=this._build_discontinuous_object(this._xs),t=this._build_discontinuous_object(this._ys),e=[];for(let i=0,n=this._xs.length;i<n;i++)for(let n=0,r=s[i].length;n<r;n++){const r=s[i][n],o=t[i][n];0!=r.length&&e.push({x0:_.min(r),y0:_.min(o),x1:_.max(r),y1:_.max(o),i})}return new n.SpatialIndex(e)}_mask_data(){const s=this.renderer.plot_view.frame.x_ranges.default,[t,e]=[s.min,s.max],i=this.renderer.plot_view.frame.y_ranges.default,[n,r]=[i.min,i.max];return this.index.indices({x0:t,x1:e,y0:n,y1:r}).sort((s,t)=>s-t)}_inner_loop(s,t,e,i){for(let n=0,r=t.length;n<r;n++)0!=n?isNaN(t[n]+e[n])?(s.closePath(),i.apply(s),s.beginPath()):s.lineTo(t[n],e[n]):(s.beginPath(),s.moveTo(t[n],e[n]));s.closePath(),i.call(s)}_render(s,t,{sxs:e,sys:i}){this.sxss=this._build_discontinuous_object(e),this.syss=this._build_discontinuous_object(i);for(const n of t){const[t,r]=[e[n],i[n]];this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(s,n),this._inner_loop(s,t,r,s.fill)),this.visuals.hatch.doit2(s,n,()=>this._inner_loop(s,t,r,s.fill),()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,n),this._inner_loop(s,t,r,s.stroke))}}_hit_rect(s){const{sx0:t,sx1:e,sy0:i,sy1:n}=s,r=[t,e,e,t],o=[i,i,n,n],[_,l]=this.renderer.xscale.r_invert(t,e),[h,a]=this.renderer.yscale.r_invert(i,n),d=this.index.indices({x0:_,x1:l,y0:h,y1:a}),u=[];for(let s=0,t=d.length;s<t;s++){const t=d[s],e=this.sxs[t],i=this.sys[t];let n=!0;for(let s=0,t=e.length;s<t;s++){const t=e[s],_=i[s];if(!c.point_in_poly(t,_,r,o)){n=!1;break}}n&&u.push(t)}const x=c.create_empty_hit_test_result();return x.indices=u,x}_hit_point(s){const{sx:t,sy:e}=s,i=this.renderer.xscale.invert(t),n=this.renderer.yscale.invert(e),r=this.index.indices({x0:i,y0:n,x1:i,y1:n}),o=[];for(let s=0,i=r.length;s<i;s++){const i=r[s],n=this.sxss[i],_=this.syss[i];for(let s=0,r=n.length;s<r;s++)c.point_in_poly(t,e,n[s],_[s])&&o.push(i)}const _=c.create_empty_hit_test_result();return _.indices=o,_}_get_snap_coord(s){return l.sum(s)/s.length}scenterx(s,t,e){if(1==this.sxss[s].length)return this._get_snap_coord(this.sxs[s]);{const i=this.sxss[s],n=this.syss[s];for(let s=0,r=i.length;s<r;s++)if(c.point_in_poly(t,e,i[s],n[s]))return this._get_snap_coord(i[s])}a.unreachable()}scentery(s,t,e){if(1==this.syss[s].length)return this._get_snap_coord(this.sys[s]);{const i=this.sxss[s],n=this.syss[s];for(let s=0,r=i.length;s<r;s++)if(c.point_in_poly(t,e,i[s],n[s]))return this._get_snap_coord(n[s])}a.unreachable()}draw_legend_for_index(s,t,e){o.generic_area_legend(this.visuals,s,t,e)}}e.PatchesView=d,d.__name__="PatchesView";class u extends r.Glyph{constructor(s){super(s)}static init_Patches(){this.prototype.default_view=d,this.coords([["xs","ys"]]),this.mixins(["line","fill","hatch"])}}e.Patches=u,u.__name__="Patches",u.init_Patches()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(217);class _ extends i.BoxView{scenterx(t){return(this.sleft[t]+this.sright[t])/2}scentery(t){return(this.stop[t]+this.sbottom[t])/2}_index_data(){return this._index_box(this._right.length)}_lrtb(t){return[this._left[t],this._right[t],this._top[t],this._bottom[t]]}}s.QuadView=_,_.__name__="QuadView";class o extends i.Box{constructor(t){super(t)}static init_Quad(){this.prototype.default_view=_,this.coords([["right","bottom"],["left","top"]])}}s.Quad=o,o.__name__="Quad",o.init_Quad()},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(82),n=t(86),r=t(90);function _(t,i,e){if(i==(t+e)/2)return[t,e];{const s=(t-i)/(t-2*i+e),n=t*(1-s)**2+2*i*(1-s)*s+e*s**2;return[Math.min(t,e,n),Math.max(t,e,n)]}}class a extends n.GlyphView{_index_data(){const t=[];for(let i=0,e=this._x0.length;i<e;i++){if(isNaN(this._x0[i]+this._x1[i]+this._y0[i]+this._y1[i]+this._cx[i]+this._cy[i]))continue;const[e,s]=_(this._x0[i],this._cx[i],this._x1[i]),[n,r]=_(this._y0[i],this._cy[i],this._y1[i]);t.push({x0:e,y0:n,x1:s,y1:r,i})}return new s.SpatialIndex(t)}_render(t,i,{sx0:e,sy0:s,sx1:n,sy1:r,scx:_,scy:a}){if(this.visuals.line.doit)for(const c of i)isNaN(e[c]+s[c]+n[c]+r[c]+_[c]+a[c])||(t.beginPath(),t.moveTo(e[c],s[c]),t.quadraticCurveTo(_[c],a[c],n[c],r[c]),this.visuals.line.set_vectorize(t,c),t.stroke())}draw_legend_for_index(t,i,e){r.generic_line_legend(this.visuals,t,i,e)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}e.QuadraticView=a,a.__name__="QuadraticView";class c extends n.Glyph{constructor(t){super(t)}static init_Quadratic(){this.prototype.default_view=a,this.coords([["x0","y0"],["x1","y1"],["cx","cy"]]),this.mixins(["line"])}}e.Quadratic=c,c.__name__="Quadratic",c.init_Quadratic()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(81),a=e(90),l=s.__importStar(e(19));class r extends n.XYGlyphView{_map_data(){"data"==this.model.properties.length.units?this.slength=this.sdist(this.renderer.xscale,this._x,this._length):this.slength=this._length}_render(e,t,{sx:i,sy:s,slength:n,_angle:a}){if(this.visuals.line.doit){const l=2*(this.renderer.plot_view.frame._width.value+this.renderer.plot_view.frame._height.value);for(let e=0,t=n.length;e<t;e++)0==n[e]&&(n[e]=l);for(const l of t)isNaN(i[l]+s[l]+a[l]+n[l])||(e.translate(i[l],s[l]),e.rotate(a[l]),e.beginPath(),e.moveTo(0,0),e.lineTo(n[l],0),this.visuals.line.set_vectorize(e,l),e.stroke(),e.rotate(-a[l]),e.translate(-i[l],-s[l]))}}draw_legend_for_index(e,t,i){a.generic_line_legend(this.visuals,e,t,i)}}i.RayView=r,r.__name__="RayView";class _ extends n.XYGlyph{constructor(e){super(e)}static init_Ray(){this.prototype.default_view=r,this.mixins(["line"]),this.define({length:[l.DistanceSpec],angle:[l.AngleSpec]})}}i.Ray=_,_.__name__="Ray",_.init_Ray()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(213),a=t(90),r=i.__importStar(t(87)),n=i.__importStar(t(19)),_=t(12);class o extends h.CenterRotatableView{_set_data(){this.max_w2=0,"data"==this.model.properties.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,"data"==this.model.properties.height.units&&(this.max_h2=this.max_height/2)}_map_data(){if("data"==this.model.properties.width.units)[this.sw,this.sx0]=this._map_dist_corner_for_data_side_length(this._x,this._width,this.renderer.xscale);else{this.sw=this._width;const t=this.sx.length;this.sx0=new Float64Array(t);for(let s=0;s<t;s++)this.sx0[s]=this.sx[s]-this.sw[s]/2}if("data"==this.model.properties.height.units)[this.sh,this.sy1]=this._map_dist_corner_for_data_side_length(this._y,this._height,this.renderer.yscale);else{this.sh=this._height;const t=this.sy.length;this.sy1=new Float64Array(t);for(let s=0;s<t;s++)this.sy1[s]=this.sy[s]-this.sh[s]/2}const t=this.sw.length;this.ssemi_diag=new Float64Array(t);for(let s=0;s<t;s++)this.ssemi_diag[s]=Math.sqrt(this.sw[s]/2*this.sw[s]/2+this.sh[s]/2*this.sh[s]/2)}_render(t,s,{sx:e,sy:i,sx0:h,sy1:a,sw:r,sh:n,_angle:_}){if(this.visuals.fill.doit)for(const o of s)isNaN(e[o]+i[o]+h[o]+a[o]+r[o]+n[o]+_[o])||(this.visuals.fill.set_vectorize(t,o),_[o]?(t.translate(e[o],i[o]),t.rotate(_[o]),t.fillRect(-r[o]/2,-n[o]/2,r[o],n[o]),t.rotate(-_[o]),t.translate(-e[o],-i[o])):t.fillRect(h[o],a[o],r[o],n[o]));if(this.visuals.line.doit){t.beginPath();for(const o of s)isNaN(e[o]+i[o]+h[o]+a[o]+r[o]+n[o]+_[o])||0!=r[o]&&0!=n[o]&&(_[o]?(t.translate(e[o],i[o]),t.rotate(_[o]),t.rect(-r[o]/2,-n[o]/2,r[o],n[o]),t.rotate(-_[o]),t.translate(-e[o],-i[o])):t.rect(h[o],a[o],r[o],n[o]),this.visuals.line.set_vectorize(t,o),t.stroke(),t.beginPath());t.stroke()}}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){let{sx:s,sy:e}=t;const i=this.renderer.xscale.invert(s),h=this.renderer.yscale.invert(e),a=[];for(let t=0,s=this.sx0.length;t<s;t++)a.push(this.sx0[t]+this.sw[t]/2);const n=[];for(let t=0,s=this.sy1.length;t<s;t++)n.push(this.sy1[t]+this.sh[t]/2);const o=_.max(this._ddist(0,a,this.ssemi_diag)),l=_.max(this._ddist(1,n,this.ssemi_diag)),d=i-o,c=i+o,x=h-l,y=h+l,m=[];for(const t of this.index.indices({x0:d,x1:c,y0:x,y1:y})){let i,h;if(this._angle[t]){const a=Math.sin(-this._angle[t]),r=Math.cos(-this._angle[t]),n=r*(s-this.sx[t])-a*(e-this.sy[t])+this.sx[t],_=a*(s-this.sx[t])+r*(e-this.sy[t])+this.sy[t];s=n,e=_,h=Math.abs(this.sx[t]-s)<=this.sw[t]/2,i=Math.abs(this.sy[t]-e)<=this.sh[t]/2}else h=s-this.sx0[t]<=this.sw[t]&&s-this.sx0[t]>=0,i=e-this.sy1[t]<=this.sh[t]&&e-this.sy1[t]>=0;i&&h&&m.push(t)}const f=r.create_empty_hit_test_result();return f.indices=m,f}_map_dist_corner_for_data_side_length(t,s,e){const i=t.length,h=new Float64Array(i),a=new Float64Array(i);for(let e=0;e<i;e++)h[e]=Number(t[e])-s[e]/2,a[e]=Number(t[e])+s[e]/2;const r=e.v_compute(h),n=e.v_compute(a),_=this.sdist(e,h,s,"edge",this.model.dilate);let o=r;for(let t=0,s=r.length;t<s;t++)if(r[t]!=n[t]){o=r[t]<n[t]?r:n;break}return[_,o]}_ddist(t,s,e){const i=0==t?this.renderer.xscale:this.renderer.yscale,h=s,a=h.length,r=new Float64Array(a);for(let t=0;t<a;t++)r[t]=h[t]+e[t];const n=i.v_invert(h),_=i.v_invert(r),o=n.length,l=new Float64Array(o);for(let t=0;t<o;t++)l[t]=Math.abs(_[t]-n[t]);return l}draw_legend_for_index(t,s,e){a.generic_area_legend(this.visuals,t,s,e)}_bounds({x0:t,x1:s,y0:e,y1:i}){return{x0:t-this.max_w2,x1:s+this.max_w2,y0:e-this.max_h2,y1:i+this.max_h2}}}e.RectView=o,o.__name__="RectView";class l extends h.CenterRotatable{constructor(t){super(t)}static init_Rect(){this.prototype.default_view=o,this.define({dilate:[n.Boolean,!1]})}}e.Rect=l,l.__name__="Rect",l.init_Rect()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1).__importStar(e(87)),n=e(82),r=e(86),h=e(90);class _ extends r.GlyphView{_index_data(){const e=[];for(let t=0,s=this._x0.length;t<s;t++){const s=this._x0[t],i=this._x1[t],n=this._y0[t],r=this._y1[t];isNaN(s+i+n+r)||e.push({x0:Math.min(s,i),y0:Math.min(n,r),x1:Math.max(s,i),y1:Math.max(n,r),i:t})}return new n.SpatialIndex(e)}_render(e,t,{sx0:s,sy0:i,sx1:n,sy1:r}){if(this.visuals.line.doit)for(const h of t)isNaN(s[h]+i[h]+n[h]+r[h])||(e.beginPath(),e.moveTo(s[h],i[h]),e.lineTo(n[h],r[h]),this.visuals.line.set_vectorize(e,h),e.stroke())}_hit_point(e){const{sx:t,sy:s}=e,n={x:t,y:s},r=[],[h,_]=this.renderer.xscale.r_invert(t-2,t+2),[a,c]=this.renderer.yscale.r_invert(s-2,s+2),o=this.index.indices({x0:h,y0:a,x1:_,y1:c});for(const e of o){const t=Math.max(2,this.visuals.line.cache_select("line_width",e)/2)**2,s={x:this.sx0[e],y:this.sy0[e]},h={x:this.sx1[e],y:this.sy1[e]};i.dist_to_segment_squared(n,s,h)<t&&r.push(e)}const x=i.create_empty_hit_test_result();return x.indices=r,x}_hit_span(e){const[t,s]=this.renderer.plot_view.frame.bbox.ranges,{sx:n,sy:r}=e;let h,_,a;"v"==e.direction?(a=this.renderer.yscale.invert(r),[h,_]=[this._y0,this._y1]):(a=this.renderer.xscale.invert(n),[h,_]=[this._x0,this._x1]);const c=[],[o,x]=this.renderer.xscale.r_invert(t.start,t.end),[l,d]=this.renderer.yscale.r_invert(s.start,s.end),y=this.index.indices({x0:o,y0:l,x1:x,y1:d});for(const t of y){(h[t]<=a&&a<=_[t]||_[t]<=a&&a<=h[t])&&c.push(t);const s=1.5+this.visuals.line.cache_select("line_width",t)/2;h[t]==_[t]&&("h"==e.direction?Math.abs(this.sx0[t]-n)<=s&&c.push(t):Math.abs(this.sy0[t]-r)<=s&&c.push(t))}const u=i.create_empty_hit_test_result();return u.indices=c,u}scenterx(e){return(this.sx0[e]+this.sx1[e])/2}scentery(e){return(this.sy0[e]+this.sy1[e])/2}draw_legend_for_index(e,t,s){h.generic_line_legend(this.visuals,e,t,s)}}s.SegmentView=_,_.__name__="SegmentView";class a extends r.Glyph{constructor(e){super(e)}static init_Segment(){this.prototype.default_view=_,this.coords([["x0","y0"],["x1","y1"]]),this.mixins(["line"])}}s.Segment=a,a.__name__="Segment",a.init_Segment()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(81),o=e(90),r=n.__importStar(e(19));class l extends s.XYGlyphView{_render(e,t,{sx:i,sy:n}){let s=!1,o=null;this.visuals.line.set_value(e);const r=t.length;if(!(r<2)){e.beginPath(),e.moveTo(i[0],n[0]);for(const r of t){let t,l,a,_;switch(this.model.mode){case"before":[t,a]=[i[r-1],n[r]],[l,_]=[i[r],n[r]];break;case"after":[t,a]=[i[r],n[r-1]],[l,_]=[i[r],n[r]];break;case"center":{const e=(i[r-1]+i[r])/2;[t,a]=[e,n[r-1]],[l,_]=[e,n[r]];break}default:throw new Error("unexpected")}if(s){if(!isFinite(i[r]+n[r])){e.stroke(),e.beginPath(),s=!1,o=r;continue}null!=o&&r-o>1&&(e.stroke(),s=!1)}s?(e.lineTo(t,a),e.lineTo(l,_)):(e.beginPath(),e.moveTo(i[r],n[r]),s=!0),o=r}e.lineTo(i[r-1],n[r-1]),e.stroke()}}draw_legend_for_index(e,t,i){o.generic_line_legend(this.visuals,e,t,i)}}i.StepView=l,l.__name__="StepView";class a extends s.XYGlyph{constructor(e){super(e)}static init_Step(){this.prototype.default_view=l,this.mixins(["line"]),this.define({mode:[r.StepMode,"before"]})}}i.Step=a,a.__name__="Step",a.init_Step()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),_=t(81),n=i.__importStar(t(87)),o=i.__importStar(t(19)),h=t(131);class r extends _.XYGlyphView{_rotate_point(t,s,e,i,_){return[(t-e)*Math.cos(_)-(s-i)*Math.sin(_)+e,(t-e)*Math.sin(_)+(s-i)*Math.cos(_)+i]}_text_bounds(t,s,e,i){return[[t,t+e,t+e,t,t],[s,s,s-i,s-i,s]]}_render(t,s,{sx:e,sy:i,_x_offset:_,_y_offset:n,_angle:o,_text:r}){this._sys=[],this._sxs=[];for(const l of s)if(!isNaN(e[l]+i[l]+_[l]+n[l]+o[l])&&null!=r[l]&&(this._sxs[l]=[],this._sys[l]=[],this.visuals.text.doit)){const s=`${r[l]}`;t.save(),t.translate(e[l]+_[l],i[l]+n[l]),t.rotate(o[l]),this.visuals.text.set_vectorize(t,l);const a=this.visuals.text.cache_select("font",l),{height:x}=h.measure_font(a),c=this.visuals.text.text_line_height.value()*x;if(-1==s.indexOf("\n")){t.fillText(s,0,0);const o=e[l]+_[l],h=i[l]+n[l],r=t.measureText(s).width,[a,x]=this._text_bounds(o,h,r,c);this._sxs[l].push(a),this._sys[l].push(x)}else{const o=s.split("\n"),h=c*o.length,r=this.visuals.text.cache_select("text_baseline",l);let a;switch(r){case"top":a=0;break;case"middle":a=-h/2+c/2;break;case"bottom":a=-h+c;break;default:a=0,console.warn(‘${r}’ baseline not supported with multi line text)}for(const s of o){t.fillText(s,0,a);const o=e[l]+_[l],h=a+i[l]+n[l],r=t.measureText(s).width,[x,u]=this._text_bounds(o,h,r,c);this._sxs[l].push(x),this._sys[l].push(u),a+=c}}t.restore()}}_hit_point(t){const{sx:s,sy:e}=t,i=[];for(let t=0;t<this._sxs.length;t++){const _=this._sxs[t],o=this._sys[t],h=_.length;for(let r=0,l=h;r<l;r++){const[l,a]=this._rotate_point(s,e,_[h-1][0],o[h-1][0],-this._angle[t]);n.point_in_poly(l,a,_[r],o[r])&&i.push(t)}}const _=n.create_empty_hit_test_result();return _.indices=i,_}_scenterxy(t){const s=this._sxs[t][0][0],e=this._sys[t][0][0],i=(this._sxs[t][0][2]+s)/2,_=(this._sys[t][0][2]+e)/2,[n,o]=this._rotate_point(i,_,s,e,this._angle[t]);return{x:n,y:o}}scenterx(t){return this._scenterxy(t).x}scentery(t){return this._scenterxy(t).y}}e.TextView=r,r.__name__="TextView";class l extends _.XYGlyph{constructor(t){super(t)}static init_Text(){this.prototype.default_view=r,this.mixins(["text"]),this.define({text:[o.NullStringSpec,{field:"text"}],angle:[o.AngleSpec,0],x_offset:[o.NumberSpec,0],y_offset:[o.NumberSpec,0]})}}e.Text=l,l.__name__="Text",l.init_Text()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(217),r=i.__importStar(t(19));class o extends h.BoxView{scenterx(t){return this.sx[t]}scentery(t){return(this.stop[t]+this.sbottom[t])/2}_index_data(){return this._index_box(this._x.length)}_lrtb(t){return[this._x[t]-this._width[t]/2,this._x[t]+this._width[t]/2,Math.max(this._top[t],this._bottom[t]),Math.min(this._top[t],this._bottom[t])]}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sw=this.sdist(this.renderer.xscale,this._x,this._width,"center"),this.stop=this.renderer.yscale.v_compute(this._top),this.sbottom=this.renderer.yscale.v_compute(this._bottom);const t=this.sx.length;this.sleft=new Float64Array(t),this.sright=new Float64Array(t);for(let s=0;s<t;s++)this.sleft[s]=this.sx[s]-this.sw[s]/2,this.sright[s]=this.sx[s]+this.sw[s]/2;this._clamp_viewport()}}e.VBarView=o,o.__name__="VBarView";class _ extends h.Box{constructor(t){super(t)}static init_VBar(){this.prototype.default_view=o,this.coords([["x","bottom"]]),this.define({width:[r.NumberSpec],top:[r.CoordinateSpec]}),this.override({bottom:0})}}e.VBar=_,_.__name__="VBar",_.init_VBar()},n function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(1),r=e(81),n=e(90),a=i.__importStar(e(87)),_=i.__importStar(e(19)),d=e(10);class l extends r.XYGlyphView{_map_data(){"data"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius):this.sradius=this._radius}_render(e,s,{sx:t,sy:i,sradius:r,_start_angle:n,_end_angle:a}){const _=this.model.properties.direction.value();for(const d of s)isNaN(t[d]+i[d]+r[d]+n[d]+a[d])||(e.beginPath(),e.arc(t[d],i[d],r[d],n[d],a[d],_),e.lineTo(t[d],i[d]),e.closePath(),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,d),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,d),e.stroke()))}_hit_point(e){let s,t,i,r,n,_,l,h,o;const{sx:c,sy:u}=e,p=this.renderer.xscale.invert(c),x=this.renderer.yscale.invert(u),g=2*this.max_radius;"data"===this.model.properties.radius.units?(_=p-g,l=p+g,h=x-g,o=x+g):(t=c-g,i=c+g,[_,l]=this.renderer.xscale.r_invert(t,i),r=u-g,n=u+g,[h,o]=this.renderer.yscale.r_invert(r,n));const y=[];for(const e of this.index.indices({x0:_,x1:l,y0:h,y1:o})){const a=this.sradius[e]**2;[t,i]=this.renderer.xscale.r_compute(p,this._x[e]),[r,n]=this.renderer.yscale.r_compute(x,this._y[e]),s=(t-i)**2+(r-n)**2,s<=a&&y.push([e,s])}const f=this.model.properties.direction.value(),v=[];for(const[e,s]of y){const t=Math.atan2(u-this.sy[e],c-this.sx[e]);d.angle_between(-t,-this._start_angle[e],-this._end_angle[e],f)&&v.push([e,s])}return a.create_hit_test_result_from_hits(v)}draw_legend_for_index(e,s,t){n.generic_area_legend(this.visuals,e,s,t)}_scenterxy(e){const s=this.sradius[e]/2,t=(this._start_angle[e]+this._end_angle[e])/2;return{x:this.sx[e]+s*Math.cos(t),y:this.sy[e]+s*Math.sin(t)}}scenterx(e){return this._scenterxy(e).x}scentery(e){return this._scenterxy(e).y}}t.WedgeView=l,l.__name__="WedgeView";class h extends r.XYGlyph{constructor(e){super(e)}static init_Wedge(){this.prototype.default_view=l,this.mixins(["line","fill"]),this.define({direction:[_.Direction,"anticlock"],radius:[_.DistanceSpec],start_angle:[_.AngleSpec],end_angle:[_.AngleSpec]})}}t.Wedge=h,h.__name__="Wedge",h.init_Wedge()},n function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const r=e(1);r.__exportStar(e(98),_),r.__exportStar(e(238),_),r.__exportStar(e(239),_)},n function _(e,o,r){Object.defineProperty(r,"__esModule",{value:!0});const t=e(69);class n extends t.Model{constructor(e){super(e)}}r.LayoutProvider=n,n.__name__="LayoutProvider"},n function _(t,a,e){Object.defineProperty(e,"__esModule",{value:!0});const o=t(1),r=t(238),s=o.__importStar(t(19));class n extends r.LayoutProvider{constructor(t){super(t)}static init_StaticLayoutProvider(){this.define({graph_layout:[s.Any,{}]})}get_node_coordinates(t){const a=[],e=[],o=t.data.index;for(let t=0,r=o.length;t<r;t++){const r=this.graph_layout[o[t]],[s,n]=null!=r?r:[NaN,NaN];a.push(s),e.push(n)}return[a,e]}get_edge_coordinates(t){const a=[],e=[],o=t.data.start,r=t.data.end,s=null!=t.data.xs&&null!=t.data.ys;for(let n=0,u=o.length;n<u;n++){const u=null!=this.graph_layout[o[n]]&&null!=this.graph_layout[r[n]];if(s&&u)a.push(t.data.xs[n]),e.push(t.data.ys[n]);else{let t,s;[s,t]=u?[this.graph_layout[o[n]],this.graph_layout[r[n]]]:[[NaN,NaN],[NaN,NaN]],a.push([s[0],t[0]]),e.push([s[1],t[1]])}}return[a,e]}}e.StaticLayoutProvider=n,n.__name__="StaticLayoutProvider",n.init_StaticLayoutProvider()},n function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});var i=e(241);d.Grid=i.Grid},n function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),s=e(149),r=n.__importStar(e(19)),_=e(8);class o extends s.GuideRendererView{render(){if(!this.model.visible)return;const e=this.plot_view.canvas_view.ctx;e.save(),this._draw_regions(e),this._draw_minor_grids(e),this._draw_grids(e),e.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render())}_draw_regions(e){if(!this.visuals.band_fill.doit&&!this.visuals.band_hatch.doit)return;this.visuals.band_fill.set_value(e);const[i,t]=this.grid_coords("major",!1);for(let n=0;n<i.length-1;n++){if(n%2!=1)continue;const[s,r]=this.plot_view.map_to_screen(i[n],t[n],this.model.x_range_name,this.model.y_range_name),[_,o]=this.plot_view.map_to_screen(i[n+1],t[n+1],this.model.x_range_name,this.model.y_range_name);this.visuals.band_fill.doit&&e.fillRect(s[0],r[0],_[1]-s[0],o[1]-r[0]),this.visuals.band_hatch.doit2(e,n,()=>{e.fillRect(s[0],r[0],_[1]-s[0],o[1]-r[0])},()=>this.request_render())}}_draw_grids(e){if(!this.visuals.grid_line.doit)return;const[i,t]=this.grid_coords("major");this._draw_grid_helper(e,this.visuals.grid_line,i,t)}_draw_minor_grids(e){if(!this.visuals.minor_grid_line.doit)return;const[i,t]=this.grid_coords("minor");this._draw_grid_helper(e,this.visuals.minor_grid_line,i,t)}_draw_grid_helper(e,i,t,n){i.set_value(e);for(let i=0;i<t.length;i++){const[s,r]=this.plot_view.map_to_screen(t[i],n[i],this.model.x_range_name,this.model.y_range_name);e.beginPath(),e.moveTo(Math.round(s[0]),Math.round(r[0]));for(let i=1;i<s.length;i++)e.lineTo(Math.round(s[i]),Math.round(r[i]));e.stroke()}}ranges(){const e=this.model.dimension,i=(e+1)%2,t=this.plot_view.frame,n=[t.x_ranges[this.model.x_range_name],t.y_ranges[this.model.y_range_name]];return[n[e],n[i]]}computed_bounds(){const[e]=this.ranges(),i=this.model.bounds,t=[e.min,e.max];let n,s;if(_.isArray(i))n=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]),n<t[0]&&(n=t[0]),s>t[1]&&(s=t[1]);else{[n,s]=t;for(const e of this.plot_view.axis_views)e.dimension==this.model.dimension&&e.model.x_range_name==this.model.x_range_name&&e.model.y_range_name==this.model.y_range_name&&([n,s]=e.computed_bounds)}return[n,s]}grid_coords(e,i=!0){const t=this.model.dimension,n=(t+1)%2,[s,r]=this.ranges();let[_,o]=this.computed_bounds();[_,o]=[Math.min(_,o),Math.max(_,o)];const a=[[],[]],l=this.model.get_ticker();if(null==l)return a;const d=l.get_ticks(_,o,s,r.min,{})[e],h=s.min,m=s.max,c=r.min,u=r.max;i||(d[0]!=h&&d.splice(0,0,h),d[d.length-1]!=m&&d.push(m));for(let e=0;e<d.length;e++){if((d[e]==h||d[e]==m)&&i)continue;const s=[],r=[],_=2;for(let i=0;i<_;i++){const t=c+(u-c)/(_-1)*i;s.push(d[e]),r.push(t)}a[t].push(s),a[n].push(r)}return a}}t.GridView=o,o.__name__="GridView";class a extends s.GuideRenderer{constructor(e){super(e)}static init_Grid(){this.prototype.default_view=o,this.mixins(["line:grid_","line:minor_grid_","fill:band_","hatch:band_"]),this.define({bounds:[r.Any,"auto"],dimension:[r.Any,0],axis:[r.Instance],ticker:[r.Instance],x_range_name:[r.String,"default"],y_range_name:[r.String,"default"]}),this.override({level:"underlay",band_fill_color:null,band_fill_alpha:0,grid_line_color:"#e5e5e5",minor_grid_line_color:null})}get_ticker(){return null!=this.ticker?this.ticker:null!=this.axis?this.axis.ticker:null}}t.Grid=a,a.__name__="Grid",a.init_Grid()},n function _(a,o,r){Object.defineProperty(r,"__esModule",{value:!0});var e=a(243);r.Box=e.Box;var v=a(245);r.Column=v.Column;var x=a(246);r.GridBox=x.GridBox;var B=a(247);r.HTMLBox=B.HTMLBox;var n=a(244);r.LayoutDOM=n.LayoutDOM;var t=a(248);r.Row=t.Row;var u=a(249);r.Spacer=u.Spacer;var d=a(250);r.Panel=d.Panel,r.Tabs=d.Tabs;var i=a(254);r.WidgetBox=i.WidgetBox},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(244),o=n.__importStar(e(19));class c extends s.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.children.change,()=>this.rebuild())}get child_models(){return this.model.children}}i.BoxView=c,c.__name__="BoxView";class r extends s.LayoutDOM{constructor(e){super(e)}static init_Box(){this.define({children:[o.Array,[]],spacing:[o.Number,0]})}}i.Box=r,r.__name__="Box",r.init_Box()},n function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const s=i(1),o=i(69),l=i(66),n=i(70),h=i(8),a=s.__importStar(i(19)),_=i(96),r=i(64),d=i(67);class u extends r.DOMView{constructor(){super(…arguments),this._idle_notified=!1,this._offset_parent=null,this._viewport={}}initialize(){super.initialize(),this.el.style.position=this.is_root?"relative":"absolute",this._child_views={}}async lazy_initialize(){await this.build_child_views()}remove(){for(const i of this.child_views)i.remove();this._child_views={},super.remove()}connect_signals(){super.connect_signals(),this.is_root&&(this._on_resize=()=>this.resize_layout(),window.addEventListener("resize",this._on_resize),this._parent_observer=setInterval(()=>{const i=this.el.offsetParent;this._offset_parent!=i&&(this._offset_parent=i,null!=i&&(this.compute_viewport(),this.invalidate_layout()))},250));const i=this.model.properties;this.on_change([i.width,i.height,i.min_width,i.min_height,i.max_width,i.max_height,i.margin,i.width_policy,i.height_policy,i.sizing_mode,i.aspect_ratio,i.visible],()=>this.invalidate_layout()),this.on_change([i.background,i.css_classes],()=>this.invalidate_render())}disconnect_signals(){null!=this._parent_observer&&clearTimeout(this._parent_observer),null!=this._on_resize&&window.removeEventListener("resize",this._on_resize),super.disconnect_signals()}css_classes(){return super.css_classes().concat(this.model.css_classes)}get child_views(){return this.child_models.map(i=>this._child_views[i.id])}async build_child_views(){await _.build_views(this._child_views,this.child_models,{parent:this})}render(){super.render(),l.empty(this.el);const{background:i}=this.model;this.el.style.backgroundColor=null!=i?i:"",l.classes(this.el).clear().add(…this.css_classes());for(const i of this.child_views)this.el.appendChild(i.el),i.render()}update_layout(){for(const i of this.child_views)i.update_layout();this._update_layout()}update_position(){this.el.style.display=this.model.visible?"block":"none";const i=this.is_root?this.layout.sizing.margin:void 0;l.position(this.el,this.layout.bbox,i);for(const i of this.child_views)i.update_position()}after_layout(){for(const i of this.child_views)i.after_layout();this._has_finished=!0}compute_viewport(){this._viewport=this._viewport_size()}renderTo(i){i.appendChild(this.el),this._offset_parent=this.el.offsetParent,this.compute_viewport(),this.build()}build(){return this.assert_root(),this.render(),this.update_layout(),this.compute_layout(),this}async rebuild(){await this.build_child_views(),this.invalidate_render()}compute_layout(){const i=Date.now();this.layout.compute(this._viewport),this.update_position(),this.after_layout(),n.logger.debug(layout computed in ${Date.now()-i} ms),this.notify_finished()}resize_layout(){this.root.compute_viewport(),this.root.compute_layout()}invalidate_layout(){this.root.update_layout(),this.root.compute_layout()}invalidate_render(){this.render(),this.invalidate_layout()}has_finished(){if(!super.has_finished())return!1;for(const i of this.child_views)if(!i.has_finished())return!1;return!0}notify_finished(){this.is_root?!this._idle_notified&&this.has_finished()&&null!=this.model.document&&(this._idle_notified=!0,this.model.document.notify_idle(this.model)):this.root.notify_finished()}_width_policy(){return null!=this.model.width?"fixed":"fit"}_height_policy(){return null!=this.model.height?"fixed":"fit"}box_sizing(){let{width_policy:i,height_policy:t,aspect_ratio:e}=this.model;"auto"==i&&(i=this._width_policy()),"auto"==t&&(t=this._height_policy());const{sizing_mode:s}=this.model;if(null!=s)if("fixed"==s)i=t="fixed";else if("stretch_both"==s)i=t="max";else if("stretch_width"==s)i="max";else if("stretch_height"==s)t="max";else switch(null==e&&(e="auto"),s){case"scale_width":i="max",t="min";break;case"scale_height":i="min",t="max";break;case"scale_both":i="max",t="max"}const o={width_policy:i,height_policy:t},{min_width:l,min_height:n}=this.model;null!=l&&(o.min_width=l),null!=n&&(o.min_height=n);const{width:a,height:_}=this.model;null!=a&&(o.width=a),null!=_&&(o.height=_);const{max_width:r,max_height:d}=this.model;null!=r&&(o.max_width=r),null!=d&&(o.max_height=d),"auto"==e&&null!=a&&null!=_?o.aspect=a/_:h.isNumber(e)&&(o.aspect=e);const{margin:u}=this.model;if(null!=u)if(h.isNumber(u))o.margin={top:u,right:u,bottom:u,left:u};else if(2==u.length){const[i,t]=u;o.margin={top:i,right:t,bottom:i,left:t}}else{const[i,t,e,s]=u;o.margin={top:i,right:t,bottom:e,left:s}}o.visible=this.model.visible;const{align:c}=this.model;return h.isArray(c)?[o.halign,o.valign]=c:o.halign=o.valign=c,o}_viewport_size(){return l.undisplayed(this.el,()=>{let i=this.el;for(;i=i.parentElement;){if(i.classList.contains(d.bk_root))continue;if(i==document.body){const{margin:{left:i,right:t,top:e,bottom:s}}=l.extents(document.body);return{width:Math.ceil(document.documentElement.clientWidth-i-t),height:Math.ceil(document.documentElement.clientHeight-e-s)}}const{padding:{left:t,right:e,top:s,bottom:o}}=l.extents(i),{width:n,height:h}=i.getBoundingClientRect(),a=Math.ceil(n-t-e),_=Math.ceil(h-s-o);if(a>0||_>0)return{width:a>0?a:void 0,height:_>0?_:void 0}}return{}})}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.layout.bbox.box,children:this.child_views.map(i=>i.serializable_state())})}}e.LayoutDOMView=u,u.__name__="LayoutDOMView";class c extends o.Model{constructor(i){super(i)}static init_LayoutDOM(){this.define({width:[a.Number,null],height:[a.Number,null],min_width:[a.Number,null],min_height:[a.Number,null],max_width:[a.Number,null],max_height:[a.Number,null],margin:[a.Any,[0,0,0,0]],width_policy:[a.Any,"auto"],height_policy:[a.Any,"auto"],aspect_ratio:[a.Any,null],sizing_mode:[a.SizingMode,null],visible:[a.Boolean,!0],disabled:[a.Boolean,!1],align:[a.Any,"start"],background:[a.Color,null],css_classes:[a.Array,[]]})}}e.LayoutDOM=c,c.__name__="LayoutDOM",c.init_LayoutDOM()},n function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(243),n=t(191),l=s.__importStar(t(19));class u extends e.BoxView{_update_layout(){const t=this.child_views.map(t=>t.layout);this.layout=new n.Column(t),this.layout.rows=this.model.rows,this.layout.spacing=[this.model.spacing,0],this.layout.set_sizing(this.box_sizing())}}i.ColumnView=u,u.__name__="ColumnView";class _ extends e.Box{constructor(t){super(t)}static init_Column(){this.prototype.default_view=u,this.define({rows:[l.Any,"auto"]})}}i.Column=_,_.__name__="Column",_.init_Column()},n function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t(1),e=t(244),n=t(191),l=o.__importStar(t(19));class r extends e.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.children.change,()=>this.rebuild())}get child_models(){return this.model.children.map(([t])=>t)}_update_layout(){this.layout=new n.Grid,this.layout.rows=this.model.rows,this.layout.cols=this.model.cols,this.layout.spacing=this.model.spacing;for(const[t,i,s,o,e]of this.model.children){const n=this._child_views[t.id];this.layout.items.push({layout:n.layout,row:i,col:s,row_span:o,col_span:e})}this.layout.set_sizing(this.box_sizing())}}s.GridBoxView=r,r.__name__="GridBoxView";class a extends e.LayoutDOM{constructor(t){super(t)}static init_GridBox(){this.prototype.default_view=r,this.define({children:[l.Array,[]],rows:[l.Any,"auto"],cols:[l.Any,"auto"],spacing:[l.Any,0]})}}s.GridBox=a,a.__name__="GridBox",a.init_GridBox()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(244),_=e(187);class n extends s.LayoutDOMView{get child_models(){return[]}_update_layout(){this.layout=new _.ContentBox(this.el),this.layout.set_sizing(this.box_sizing())}}o.HTMLBoxView=n,n.__name__="HTMLBoxView";class i extends s.LayoutDOM{constructor(e){super(e)}}o.HTMLBox=i,i.__name__="HTMLBox"},n function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(243),_=t(191),a=s.__importStar(t(19));class n extends e.BoxView{_update_layout(){const t=this.child_views.map(t=>t.layout);this.layout=new _.Row(t),this.layout.cols=this.model.cols,this.layout.spacing=[0,this.model.spacing],this.layout.set_sizing(this.box_sizing())}}i.RowView=n,n.__name__="RowView";class l extends e.Box{constructor(t){super(t)}static init_Row(){this.prototype.default_view=n,this.define({cols:[a.Any,"auto"]})}}i.Row=l,l.__name__="Row",l.init_Row()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(244),s=e(187);class _ extends i.LayoutDOMView{get child_models(){return[]}_update_layout(){this.layout=new s.LayoutItem,this.layout.set_sizing(this.box_sizing())}}a.SpacerView=_,_.__name__="SpacerView";class o extends i.LayoutDOM{constructor(e){super(e)}static init_Spacer(){this.prototype.default_view=_}}a.Spacer=o,o.__name__="Spacer",o.init_Spacer()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),a=e(187),l=e(66),h=e(9),o=i.__importStar(e(19)),c=e(244),d=e(69),n=e(145),r=e(251),_=e(252),b=e(253);class p extends c.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.tabs.change,()=>this.rebuild()),this.connect(this.model.properties.active.change,()=>this.on_active_change())}get child_models(){return this.model.tabs.map(e=>e.child)}_update_layout(){const e=this.model.tabs_location,t="above"==e||"below"==e,{scroll_el:s,headers_el:i}=this;this.header=new class extends a.ContentBox{_measure(e){const a=l.size(s),o=l.children(i).slice(0,3).map(e=>l.size(e)),{width:c,height:d}=super._measure(e);if(t){const t=a.width+h.sum(o.map(e=>e.width));return{width:e.width!=1/0?e.width:t,height:d}}{const t=a.height+h.sum(o.map(e=>e.height));return{width:c,height:e.height!=1/0?e.height:t}}}}(this.header_el),t?this.header.set_sizing({width_policy:"fit",height_policy:"fixed"}):this.header.set_sizing({width_policy:"fixed",height_policy:"fit"});let o=1,c=1;switch(e){case"above":o-=1;break;case"below":o+=1;break;case"left":c-=1;break;case"right":c+=1}const d={layout:this.header,row:o,col:c},n=this.child_views.map(e=>({layout:e.layout,row:1,col:1}));this.layout=new a.Grid([d,…n]),this.layout.set_sizing(this.box_sizing())}update_position(){super.update_position(),this.header_el.style.position="absolute",l.position(this.header_el,this.header.bbox);const e=this.model.tabs_location,t="above"==e||"below"==e,s=l.size(this.scroll_el),i=l.scroll_size(this.headers_el);if(t){const{width:e}=this.header.bbox;i.width>e?(this.wrapper_el.style.maxWidth=`${e-s.width}px`,l.display(this.scroll_el)):(this.wrapper_el.style.maxWidth="",l.undisplay(this.scroll_el))}else{const{height:e}=this.header.bbox;i.height>e?(this.wrapper_el.style.maxHeight=`${e-s.height}px`,l.display(this.scroll_el)):(this.wrapper_el.style.maxHeight="",l.undisplay(this.scroll_el))}const{child_views:a}=this;for(const e of a)l.hide(e.el);const h=a[this.model.active];null!=h&&l.show(h.el)}render(){super.render();const{active:e}=this.model,t=this.model.tabs_location,s="above"==t||"below"==t,i=this.model.tabs.map((t,s)=>{const i=l.div({class:[r.bk_tab,s==e?n.bk_active:null]},t.title);if(i.addEventListener("click",e=>{e.target==e.currentTarget&&this.change_active(s)}),t.closable){const e=l.div({class:r.bk_close});e.addEventListener("click",e=>{if(e.target==e.currentTarget){this.model.tabs=h.remove_at(this.model.tabs,s);const e=this.model.tabs.length;this.model.active>e-1&&(this.model.active=e-1)}}),i.appendChild(e)}return i});this.headers_el=l.div({class:[r.bk_headers]},i),this.wrapper_el=l.div({class:r.bk_headers_wrapper},this.headers_el);const a=l.div({class:[_.bk_btn,_.bk_btn_default],disabled:""},l.div({class:[b.bk_caret,n.bk_left]})),o=l.div({class:[_.bk_btn,_.bk_btn_default]},l.div({class:[b.bk_caret,n.bk_right]}));let c=0;const d=e=>()=>{const t=this.model.tabs.length;c="left"==e?Math.max(c-1,0):Math.min(c+1,t-1),0==c?a.setAttribute("disabled",""):a.removeAttribute("disabled"),c==t-1?o.setAttribute("disabled",""):o.removeAttribute("disabled");const i=l.children(this.headers_el).slice(0,c).map(e=>e.getBoundingClientRect());if(s){const e=-h.sum(i.map(e=>e.width));this.headers_el.style.left=`${e}px`}else{const e=-h.sum(i.map(e=>e.height));this.headers_el.style.top=`${e}px`}};a.addEventListener("click",d("left")),o.addEventListener("click",d("right")),this.scroll_el=l.div({class:_.bk_btn_group},a,o),this.header_el=l.div({class:[r.bk_tabs_header,n.bk_side(t)]},this.scroll_el,this.wrapper_el),this.el.appendChild(this.header_el)}change_active(e){e!=this.model.active&&(this.model.active=e)}on_active_change(){const e=this.model.active,t=l.children(this.headers_el);for(const e of t)e.classList.remove(n.bk_active);t[e].classList.add(n.bk_active);const{child_views:s}=this;for(const e of s)l.hide(e.el);l.show(s[e].el)}}s.TabsView=p,p.__name__="TabsView";class u extends c.LayoutDOM{constructor(e){super(e)}static init_Tabs(){this.prototype.default_view=p,this.define({tabs:[o.Array,[]],tabs_location:[o.Location,"above"],active:[o.Number,0]})}}s.Tabs=u,u.__name__="Tabs",u.init_Tabs();class m extends d.Model{constructor(e){super(e)}static init_Panel(){this.define({title:[o.String,""],child:[o.Instance],closable:[o.Boolean,!1]})}}s.Panel=m,m.__name__="Panel",m.init_Panel()},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const b=e(1);e(67),b.__importStar(e(66)).styles.append(‘.bk-root .bk-tabs-header {\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n overflow: hidden;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-tabs-header .bk-btn-group {\n height: auto;\n margin-right: 5px;\n}\n.bk-root .bk-tabs-header .bk-btn-group > .bk-btn {\n flex-grow: 0;\n -webkit-flex-grow: 0;\n height: auto;\n padding: 4px 4px;\n}\n.bk-root .bk-tabs-header .bk-headers-wrapper {\n flex-grow: 1;\n -webkit-flex-grow: 1;\n overflow: hidden;\n color: #666666;\n}\n.bk-root .bk-tabs-header.bk-above .bk-headers-wrapper {\n border-bottom: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-right .bk-headers-wrapper {\n border-left: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-below .bk-headers-wrapper {\n border-top: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-left .bk-headers-wrapper {\n border-right: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-above,\n.bk-root .bk-tabs-header.bk-below {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-tabs-header.bk-above .bk-headers,\n.bk-root .bk-tabs-header.bk-below .bk-headers {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-tabs-header.bk-left,\n.bk-root .bk-tabs-header.bk-right {\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-tabs-header.bk-left .bk-headers,\n.bk-root .bk-tabs-header.bk-right .bk-headers {\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-tabs-header .bk-headers {\n position: relative;\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n}\n.bk-root .bk-tabs-header .bk-tab {\n padding: 4px 8px;\n border: solid transparent;\n white-space: nowrap;\n cursor: pointer;\n}\n.bk-root .bk-tabs-header .bk-tab:hover {\n background-color: #f2f2f2;\n}\n.bk-root .bk-tabs-header .bk-tab.bk-active {\n color: #4d4d4d;\n background-color: white;\n border-color: #e6e6e6;\n}\n.bk-root .bk-tabs-header .bk-tab .bk-close {\n margin-left: 10px;\n}\n.bk-root .bk-tabs-header.bk-above .bk-tab {\n border-width: 3px 1px 0px 1px;\n border-radius: 4px 4px 0 0;\n}\n.bk-root .bk-tabs-header.bk-right .bk-tab {\n border-width: 1px 3px 1px 0px;\n border-radius: 0 4px 4px 0;\n}\n.bk-root .bk-tabs-header.bk-below .bk-tab {\n border-width: 0px 1px 3px 1px;\n border-radius: 0 0 4px 4px;\n}\n.bk-root .bk-tabs-header.bk-left .bk-tab {\n border-width: 1px 0px 1px 3px;\n border-radius: 4px 0 0 4px;\n}\n.bk-root .bk-close {\n display: inline-block;\n width: 10px;\n height: 10px;\n vertical-align: middle;\n background-image: url(\’data:image/svg+xml;utf8,\\\n <svg viewPort="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg">\\\n <line x1="1" y1="9" x2="9" y2="1" stroke="gray" stroke-width="2"/>\\\n <line x1="1" y1="1" x2="9" y2="9" stroke="gray" stroke-width="2"/>\\\n </svg>\’);\n}\n.bk-root .bk-close:hover {\n background-image: url(\’data:image/svg+xml;utf8,\\\n <svg viewPort="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg">\\\n <line x1="1" y1="9" x2="9" y2="1" stroke="red" stroke-width="2"/>\\\n <line x1="1" y1="1" x2="9" y2="9" stroke="red" stroke-width="2"/>\\\n </svg>\’);\n}\n’),n.bk_tabs_header="bk-tabs-header",n.bk_headers_wrapper="bk-headers-wrapper",n.bk_headers="bk-headers",n.bk_tab="bk-tab",n.bk_close="bk-close"},n function _(n,o,b){Object.defineProperty(b,"__esModule",{value:!0});const r=n(1);n(67),r.__importStar(n(66)).styles.append(".bk-root .bk-btn {\n height: 100%;\n display: inline-block;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n cursor: pointer;\n padding: 6px 12px;\n font-size: 12px;\n border: 1px solid transparent;\n border-radius: 4px;\n outline: 0;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-btn:hover,\n.bk-root .bk-btn:focus {\n text-decoration: none;\n}\n.bk-root .bk-btn:active,\n.bk-root .bk-btn.bk-active {\n background-image: none;\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.bk-root .bk-btn[disabled] {\n cursor: not-allowed;\n pointer-events: none;\n opacity: 0.65;\n box-shadow: none;\n}\n.bk-root .bk-btn-default {\n color: #333;\n background-color: #fff;\n border-color: #ccc;\n}\n.bk-root .bk-btn-default:hover {\n background-color: #f5f5f5;\n border-color: #b8b8b8;\n}\n.bk-root .bk-btn-default.bk-active {\n background-color: #ebebeb;\n border-color: #adadad;\n}\n.bk-root .bk-btn-default[disabled],\n.bk-root .bk-btn-default[disabled]:hover,\n.bk-root .bk-btn-default[disabled]:focus,\n.bk-root .bk-btn-default[disabled]:active,\n.bk-root .bk-btn-default[disabled].bk-active {\n background-color: #e6e6e6;\n border-color: #ccc;\n}\n.bk-root .bk-btn-primary {\n color: #fff;\n background-color: #428bca;\n border-color: #357ebd;\n}\n.bk-root .bk-btn-primary:hover {\n background-color: #3681c1;\n border-color: #2c699e;\n}\n.bk-root .bk-btn-primary.bk-active {\n background-color: #3276b1;\n border-color: #285e8e;\n}\n.bk-root .bk-btn-primary[disabled],\n.bk-root .bk-btn-primary[disabled]:hover,\n.bk-root .bk-btn-primary[disabled]:focus,\n.bk-root .bk-btn-primary[disabled]:active,\n.bk-root .bk-btn-primary[disabled].bk-active {\n background-color: #506f89;\n border-color: #357ebd;\n}\n.bk-root .bk-btn-success {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.bk-root .bk-btn-success:hover {\n background-color: #4eb24e;\n border-color: #409240;\n}\n.bk-root .bk-btn-success.bk-active {\n background-color: #47a447;\n border-color: #398439;\n}\n.bk-root .bk-btn-success[disabled],\n.bk-root .bk-btn-success[disabled]:hover,\n.bk-root .bk-btn-success[disabled]:focus,\n.bk-root .bk-btn-success[disabled]:active,\n.bk-root .bk-btn-success[disabled].bk-active {\n background-color: #667b66;\n border-color: #4cae4c;\n}\n.bk-root .bk-btn-warning {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.bk-root .bk-btn-warning:hover {\n background-color: #eea43b;\n border-color: #e89014;\n}\n.bk-root .bk-btn-warning.bk-active {\n background-color: #ed9c28;\n border-color: #d58512;\n}\n.bk-root .bk-btn-warning[disabled],\n.bk-root .bk-btn-warning[disabled]:hover,\n.bk-root .bk-btn-warning[disabled]:focus,\n.bk-root .bk-btn-warning[disabled]:active,\n.bk-root .bk-btn-warning[disabled].bk-active {\n background-color: #c89143;\n border-color: #eea236;\n}\n.bk-root .bk-btn-danger {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.bk-root .bk-btn-danger:hover {\n background-color: #d5433e;\n border-color: #bd2d29;\n}\n.bk-root .bk-btn-danger.bk-active {\n background-color: #d2322d;\n border-color: #ac2925;\n}\n.bk-root .bk-btn-danger[disabled],\n.bk-root .bk-btn-danger[disabled]:hover,\n.bk-root .bk-btn-danger[disabled]:focus,\n.bk-root .bk-btn-danger[disabled]:active,\n.bk-root .bk-btn-danger[disabled].bk-active {\n background-color: #a55350;\n border-color: #d43f3a;\n}\n.bk-root .bk-btn-group {\n height: 100%;\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-btn-group > .bk-btn {\n flex-grow: 1;\n -webkit-flex-grow: 1;\n}\n.bk-root .bk-btn-group > .bk-btn + .bk-btn {\n margin-left: -1px;\n}\n.bk-root .bk-btn-group > .bk-btn:first-child:not(:last-child) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):last-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.bk-root .bk-btn-group .bk-dropdown-toggle {\n flex: 0 0 0;\n -webkit-flex: 0 0 0;\n padding: 6px 6px;\n}\n"),b.bk_btn="bk-btn",b.bk_btn_group="bk-btn-group",b.bk_btn_default="bk-btn-default",b.bk_btn_primary="bk-btn-primary",b.bk_btn_success="bk-btn-success",b.bk_btn_warning="bk-btn-warning",b.bk_btn_danger="bk-btn-danger",b.bk_btn_type=function(n){switch(n){case"default":return b.bk_btn_default;case"primary":return b.bk_btn_primary;case"success":return b.bk_btn_success;case"warning":return b.bk_btn_warning;case"danger":return b.bk_btn_danger}},b.bk_dropdown_toggle="bk-dropdown-toggle"},n function _(n,o,r){Object.defineProperty(r,"__esModule",{value:!0});const b=n(1);n(67),b.__importStar(n(66)).styles.append(".bk-root .bk-menu {\n position: absolute;\n left: 0;\n width: 100%;\n z-index: 100;\n cursor: pointer;\n font-size: 12px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n}\n.bk-root .bk-menu.bk-above {\n bottom: 100%;\n}\n.bk-root .bk-menu.bk-below {\n top: 100%;\n}\n.bk-root .bk-menu > .bk-divider {\n height: 1px;\n margin: 7.5px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.bk-root .bk-menu > :not(.bk-divider) {\n padding: 6px 12px;\n}\n.bk-root .bk-menu > :not(.bk-divider):hover,\n.bk-root .bk-menu > :not(.bk-divider).bk-active {\n background-color: #e6e6e6;\n}\n.bk-root .bk-caret {\n display: inline-block;\n vertical-align: middle;\n width: 0;\n height: 0;\n margin: 0 5px;\n}\n.bk-root .bk-caret.bk-down {\n border-top: 4px solid;\n}\n.bk-root .bk-caret.bk-up {\n border-bottom: 4px solid;\n}\n.bk-root .bk-caret.bk-down,\n.bk-root .bk-caret.bk-up {\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n}\n.bk-root .bk-caret.bk-left {\n border-right: 4px solid;\n}\n.bk-root .bk-caret.bk-right {\n border-left: 4px solid;\n}\n.bk-root .bk-caret.bk-left,\n.bk-root .bk-caret.bk-right {\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n}\n"),r.bk_menu="bk-menu",r.bk_caret="bk-caret",r.bk_divider="bk-divider"},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const o=e(245);class _ extends o.ColumnView{}i.WidgetBoxView=_,_.__name__="WidgetBoxView";class n extends o.Column{constructor(e){super(e)}static init_WidgetBox(){this.prototype.default_view=_}}i.WidgetBox=n,n.__name__="WidgetBox",n.init_WidgetBox()},n function _(r,a,o){Object.defineProperty(o,"__esModule",{value:!0});var e=r(256);o.CategoricalColorMapper=e.CategoricalColorMapper;var p=r(258);o.CategoricalMarkerMapper=p.CategoricalMarkerMapper;var l=r(259);o.CategoricalPatternMapper=l.CategoricalPatternMapper;var C=r(115);o.ContinuousColorMapper=C.ContinuousColorMapper;var M=r(116);o.ColorMapper=M.ColorMapper;var t=r(114);o.LinearColorMapper=t.LinearColorMapper;var i=r(260);o.LogColorMapper=i.LogColorMapper},n function _(r,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=r(1),a=r(257),c=r(116),i=o.__importStar(r(19));class s extends c.ColorMapper{constructor(r){super(r)}static init_CategoricalColorMapper(){this.define({factors:[i.Array],start:[i.Number,0],end:[i.Number]})}_v_compute(r,t,e,{nan_color:o}){a.cat_v_compute(r,this.factors,e,t,this.start,this.end,o)}}e.CategoricalColorMapper=s,s.__name__="CategoricalColorMapper",s.init_CategoricalColorMapper()},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const l=e(12),i=e(8);function u(e,n){if(e.length!=n.length)return!1;for(let t=0,l=e.length;t<l;t++)if(e[t]!==n[t])return!1;return!0}t._cat_equals=u,t.cat_v_compute=function(e,n,t,c,f,o,r){for(let _=0,g=e.length;_<g;_++){let g,s,d=e[_];i.isString(d)?g=l.index_of(n,d):(null!=f?d=null!=o?d.slice(f,o):d.slice(f):null!=o&&(d=d.slice(0,o)),g=1==d.length?l.index_of(n,d[0]):l.find_index(n,e=>u(e,d))),s=g<0||g>=t.length?r:t[g],c[_]=s}}},n function _(r,e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=r(1),s=r(257),i=r(117),c=t.__importStar(r(19));class n extends i.Mapper{constructor(r){super(r)}static init_CategoricalMarkerMapper(){this.define({factors:[c.Array],markers:[c.Array],start:[c.Number,0],end:[c.Number],default_value:[c.MarkerType,"circle"]})}v_compute(r){const e=new Array(r.length);return s.cat_v_compute(r,this.factors,this.markers,e,this.start,this.end,this.default_value),e}}a.CategoricalMarkerMapper=n,n.__name__="CategoricalMarkerMapper",n.init_CategoricalMarkerMapper()},n function _(t,e,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t(1),n=t(257),s=t(117),i=r.__importStar(t(19));class c extends s.Mapper{constructor(t){super(t)}static init_CategoricalPatternMapper(){this.define({factors:[i.Array],patterns:[i.Array],start:[i.Number,0],end:[i.Number],default_value:[i.HatchPatternType," "]})}v_compute(t){const e=new Array(t.length);return n.cat_v_compute(t,this.factors,this.patterns,e,this.start,this.end,this.default_value),e}}a.CategoricalPatternMapper=c,c.__name__="CategoricalPatternMapper",c.init_CategoricalPatternMapper()},n function _(o,l,n){Object.defineProperty(n,"__esModule",{value:!0});const t=o(115),e=o(12);class i extends t.ContinuousColorMapper{constructor(o){super(o)}_v_compute(o,l,n,t){const{nan_color:i,low_color:h,high_color:c}=t,r=n.length,s=null!=this.low?this.low:e.min(o),u=null!=this.high?this.high:e.max(o),a=r/(Math.log(u)-Math.log(s)),g=n.length-1;for(let t=0,e=o.length;t<e;t++){const e=o[t];if(isNaN(e)){l[t]=i;continue}if(e>u){l[t]=null!=c?c:n[g];continue}if(e==u){l[t]=n[g];continue}if(e<s){l[t]=null!=h?h:n[0];continue}const r=Math.log(e)-Math.log(s);let _=Math.floor(r*a);_>g&&(_=g),l[t]=n[_]}}}n.LogColorMapper=i,i.__name__="LogColorMapper"},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0}),e(1).__exportStar(e(262),t);var a=e(263);t.Marker=a.Marker;var _=e(264);t.Scatter=_.Scatter},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e(263),s=Math.sqrt(3);function r(e,t){e.moveTo(-t,t),e.lineTo(t,-t),e.moveTo(-t,-t),e.lineTo(t,t)}function n(e,t){e.moveTo(0,t),e.lineTo(0,-t),e.moveTo(-t,0),e.lineTo(t,0)}function c(e,t){e.moveTo(0,t),e.lineTo(t/1.5,0),e.lineTo(0,-t),e.lineTo(-t/1.5,0),e.closePath()}function l(e,t){const o=t*s,i=o/3;e.moveTo(-t,i),e.lineTo(t,i),e.lineTo(0,i-o),e.closePath()}function a(e,t,o,i,s){const c=.65*o;n(e,o),r(e,c),i.doit&&(i.set_vectorize(e,t),e.stroke())}function d(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function _(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),r(e,o),e.stroke())}function v(e,t,o,i,s){n(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function f(e,t,o,i,s){c(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function u(e,t,o,i,s){c(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function T(e,t,o,i,r){!function(e,t){const o=t/2,i=s*o;e.moveTo(t,0),e.lineTo(o,-i),e.lineTo(-o,-i),e.lineTo(-t,0),e.lineTo(-o,i),e.lineTo(o,i),e.closePath()}(e,o),r.doit&&(r.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function z(e,t,o,i,s){e.rotate(Math.PI),l(e,o),e.rotate(-Math.PI),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function k(e,t,o,i,s){const r=2*o;e.rect(-o,-o,r,r),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function m(e,t,o,i,s){const r=2*o;e.rect(-o,-o,r,r),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function C(e,t,o,i,s){const n=2*o;e.rect(-o,-o,n,n),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),r(e,o),e.stroke())}function h(e,t,o,i,s){l(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function q(e,t,o,i,s){!function(e,t){e.moveTo(-t,0),e.lineTo(t,0)}(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function M(e,t,o,i,s){r(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function P(e,t){var o;const s=class extends i.MarkerView{static initClass(){this.prototype._render_one=t}};s.initClass();const r=((o=class extends i.Marker{static initClass(){this.prototype.default_view=s}}).__name__=e,o);return r.initClass(),r}o.Asterisk=P("Asterisk",a),o.CircleCross=P("CircleCross",d),o.CircleX=P("CircleX",_),o.Cross=P("Cross",v),o.Dash=P("Dash",q),o.Diamond=P("Diamond",f),o.DiamondCross=P("DiamondCross",u),o.Hex=P("Hex",T),o.InvertedTriangle=P("InvertedTriangle",z),o.Square=P("Square",k),o.SquareCross=P("SquareCross",m),o.SquareX=P("SquareX",C),o.Triangle=P("Triangle",h),o.X=P("X",M),o.marker_funcs={asterisk:a,circle:function(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())},circle_cross:d,circle_x:_,cross:v,diamond:f,diamond_cross:u,hex:T,inverted_triangle:z,square:k,square_cross:m,square_x:C,triangle:h,dash:q,x:M}},n function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(1),r=e(81),n=i.__importStar(e(87)),a=i.__importStar(e(19)),_=e(9);class h extends r.XYGlyphView{_render(e,s,{sx:t,sy:i,_size:r,_angle:n}){for(const a of s){if(isNaN(t[a]+i[a]+r[a]+n[a]))continue;const s=r[a]/2;e.beginPath(),e.translate(t[a],i[a]),n[a]&&e.rotate(n[a]),this._render_one(e,a,s,this.visuals.line,this.visuals.fill),n[a]&&e.rotate(-n[a]),e.translate(-t[a],-i[a])}}_mask_data(){const e=this.renderer.plot_view.frame.bbox.h_range,s=e.start-this.max_size,t=e.end+this.max_size,[i,r]=this.renderer.xscale.r_invert(s,t),n=this.renderer.plot_view.frame.bbox.v_range,a=n.start-this.max_size,_=n.end+this.max_size,[h,c]=this.renderer.yscale.r_invert(a,_);return this.index.indices({x0:i,x1:r,y0:h,y1:c})}_hit_point(e){const{sx:s,sy:t}=e,i=s-this.max_size,r=s+this.max_size,[a,_]=this.renderer.xscale.r_invert(i,r),h=t-this.max_size,c=t+this.max_size,[o,x]=this.renderer.yscale.r_invert(h,c),l=this.index.indices({x0:a,x1:_,y0:o,y1:x}),y=[];for(const e of l){const i=this._size[e]/2,r=Math.abs(this.sx[e]-s)+Math.abs(this.sy[e]-t);Math.abs(this.sx[e]-s)<=i&&Math.abs(this.sy[e]-t)<=i&&y.push([e,r])}return n.create_hit_test_result_from_hits(y)}_hit_span(e){const{sx:s,sy:t}=e,i=this.bounds(),r=this.max_size/2,a=n.create_empty_hit_test_result();let _,h,c,o;if("h"==e.direction){c=i.y0,o=i.y1;const e=s-r,t=s+r;[_,h]=this.renderer.xscale.r_invert(e,t)}else{_=i.x0,h=i.x1;const e=t-r,s=t+r;[c,o]=this.renderer.yscale.r_invert(e,s)}const x=this.index.indices({x0:_,x1:h,y0:c,y1:o});return a.indices=x,a}_hit_rect(e){const{sx0:s,sx1:t,sy0:i,sy1:r}=e,[a,_]=this.renderer.xscale.r_invert(s,t),[h,c]=this.renderer.yscale.r_invert(i,r),o=n.create_empty_hit_test_result();return o.indices=this.index.indices({x0:a,x1:_,y0:h,y1:c}),o}_hit_poly(e){const{sx:s,sy:t}=e,i=_.range(0,this.sx.length),r=[];for(let e=0,a=i.length;e<a;e++){const a=i[e];n.point_in_poly(this.sx[e],this.sy[e],s,t)&&r.push(a)}const a=n.create_empty_hit_test_result();return a.indices=r,a}draw_legend_for_index(e,{x0:s,x1:t,y0:i,y1:r},n){const a=n+1,_=new Array(a);_[n]=(s+t)/2;const h=new Array(a);h[n]=(i+r)/2;const c=new Array(a);c[n]=.4*Math.min(Math.abs(t-s),Math.abs(r-i));const o=new Array(a);o[n]=0,this._render(e,[n],{sx:_,sy:h,_size:c,_angle:o})}}t.MarkerView=h,h.__name__="MarkerView";class c extends r.XYGlyph{constructor(e){super(e)}static init_Marker(){this.mixins(["line","fill"]),this.define({size:[a.DistanceSpec,{units:"screen",value:4}],angle:[a.AngleSpec,0]})}}t.Marker=c,c.__name__="Marker",c.init_Marker()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=e(1),s=e(263),n=e(262),i=a.__importStar(e(19));class _ extends s.MarkerView{_render(e,t,{sx:r,sy:a,_size:s,_angle:i,_marker:_}){for(const c of t){if(isNaN(r[c]+a[c]+s[c]+i[c])||null==_[c])continue;const t=s[c]/2;e.beginPath(),e.translate(r[c],a[c]),i[c]&&e.rotate(i[c]),n.marker_funcs[_[c]](e,c,t,this.visuals.line,this.visuals.fill),i[c]&&e.rotate(-i[c]),e.translate(-r[c],-a[c])}}draw_legend_for_index(e,{x0:t,x1:r,y0:a,y1:s},n){const i=n+1,_=new Array(i);_[n]=(t+r)/2;const c=new Array(i);c[n]=(a+s)/2;const o=new Array(i);o[n]=.4*Math.min(Math.abs(r-t),Math.abs(s-a));const l=new Array(i);l[n]=0;const u=new Array(i);u[n]=this._marker[n],this._render(e,[n],{sx:_,sy:c,_size:o,_angle:l,_marker:u})}}r.ScatterView=_,_.__name__="ScatterView";class c extends s.Marker{constructor(e){super(e)}static init_Scatter(){this.prototype.default_view=_,this.define({marker:[i.MarkerSpec,{value:"circle"}]})}}r.Scatter=c,c.__name__="Scatter",c.init_Scatter()},n function _(a,o,p){Object.defineProperty(p,"__esModule",{value:!0});var t=a(266);p.MapOptions=t.MapOptions;var e=a(266);p.GMapOptions=e.GMapOptions;var n=a(266);p.GMapPlot=n.GMapPlot;var M=a(267);p.Plot=M.Plot},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1),n=t(70),a=t(267),s=o.__importStar(t(19)),p=t(69),r=t(130),_=t(287);i.GMapPlotView=_.GMapPlotView;class l extends p.Model{constructor(t){super(t)}static init_MapOptions(){this.define({lat:[s.Number],lng:[s.Number],zoom:[s.Number,12]})}}i.MapOptions=l,l.__name__="MapOptions",l.init_MapOptions();class c extends l{constructor(t){super(t)}static init_GMapOptions(){this.define({map_type:[s.String,"roadmap"],scale_control:[s.Boolean,!1],styles:[s.String],tilt:[s.Int,45]})}}i.GMapOptions=c,c.__name__="GMapOptions",c.init_GMapOptions();class u extends a.Plot{constructor(t){super(t)}static init_GMapPlot(){this.prototype.default_view=_.GMapPlotView,this.define({map_options:[s.Instance],api_key:[s.String]}),this.override({x_range:()=>new r.Range1d,y_range:()=>new r.Range1d})}initialize(){super.initialize(),this.use_map=!0,this.api_key||n.logger.error("api_key is required. See https://developers.google.com/maps/documentation/javascript/get-api-key for more information on how to obtain your own.")}}i.GMapPlot=u,u.__name__="GMapPlot",u.init_GMapPlot()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(1).__importStar(e(19)),o=e(14),i=e(9),a=e(24),l=e(8),s=e(244),_=e(141),h=e(119),c=e(268),u=e(73),d=e(78),b=e(185),g=e(280);r.PlotView=g.PlotView;class m extends s.LayoutDOM{constructor(e){super(e)}static init_Plot(){this.prototype.default_view=g.PlotView,this.mixins(["line:outline_","fill:background_","fill:border_"]),this.define({toolbar:[n.Instance,()=>new c.Toolbar],toolbar_location:[n.Location,"right"],toolbar_sticky:[n.Boolean,!0],plot_width:[n.Number,600],plot_height:[n.Number,600],frame_width:[n.Number,null],frame_height:[n.Number,null],title:[n.Any,()=>new _.Title({text:""})],title_location:[n.Location,"above"],above:[n.Array,[]],below:[n.Array,[]],left:[n.Array,[]],right:[n.Array,[]],center:[n.Array,[]],renderers:[n.Array,[]],x_range:[n.Instance,()=>new b.DataRange1d],extra_x_ranges:[n.Any,{}],y_range:[n.Instance,()=>new b.DataRange1d],extra_y_ranges:[n.Any,{}],x_scale:[n.Instance,()=>new h.LinearScale],y_scale:[n.Instance,()=>new h.LinearScale],lod_factor:[n.Number,10],lod_interval:[n.Number,300],lod_threshold:[n.Number,2e3],lod_timeout:[n.Number,500],hidpi:[n.Boolean,!0],output_backend:[n.OutputBackend,"canvas"],min_border:[n.Number,5],min_border_top:[n.Number,null],min_border_left:[n.Number,null],min_border_bottom:[n.Number,null],min_border_right:[n.Number,null],inner_width:[n.Number],inner_height:[n.Number],outer_width:[n.Number],outer_height:[n.Number],match_aspect:[n.Boolean,!1],aspect_scale:[n.Number,1],reset_policy:[n.ResetPolicy,"standard"]}),this.override({outline_line_color:"#e5e5e5",border_fill_color:"#ffffff",background_fill_color:"#ffffff"})}get width(){const e=this.getv("width");return null!=e?e:this.plot_width}get height(){const e=this.getv("height");return null!=e?e:this.plot_height}_doc_attached(){super._doc_attached(),this._tell_document_about_change("inner_height",null,this.inner_height,{}),this._tell_document_about_change("inner_width",null,this.inner_width,{})}initialize(){super.initialize(),this.reset=new o.Signal0(this,"reset");for(const e of a.values(this.extra_x_ranges).concat(this.x_range)){let t=e.plots;l.isArray(t)&&(t=t.concat(this),e.setv({plots:t},{silent:!0}))}for(const e of a.values(this.extra_y_ranges).concat(this.y_range)){let t=e.plots;l.isArray(t)&&(t=t.concat(this),e.setv({plots:t},{silent:!0}))}}add_layout(e,t="center"){this.setv({[t]:[…this.getv(t),e]})}remove_layout(e){const t=t=>{i.remove_by(t,t=>t==e)};t(this.left),t(this.right),t(this.above),t(this.below),t(this.center)}add_renderers(…e){this.renderers=this.renderers.concat(e)}add_glyph(e,t=new u.ColumnDataSource,r={}){const n=Object.assign(Object.assign({},r),{data_source:t,glyph:e}),o=new d.GlyphRenderer(n);return this.add_renderers(o),o}add_tools(…e){this.toolbar.tools=this.toolbar.tools.concat(e)}get panels(){return this.side_panels.concat(this.center)}get side_panels(){const{above:e,below:t,left:r,right:n}=this;return i.concat([e,t,r,n])}}r.Plot=m,m.__name__="Plot",m.init_Plot()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),c=t(8),o=t(9),n=t(269),a=t(274),l=t=>{switch(t){case"tap":return"active_tap";case"pan":return"active_drag";case"pinch":case"scroll":return"active_scroll";case"multi":return"active_multi"}return null},r=t=>"tap"==t||"pan"==t;class _ extends a.ToolbarBase{constructor(t){super(t)}static init_Toolbar(){this.prototype.default_view=a.ToolbarBaseView,this.define({active_drag:[i.Any,"auto"],active_inspect:[i.Any,"auto"],active_scroll:[i.Any,"auto"],active_tap:[i.Any,"auto"],active_multi:[i.Any,null]})}connect_signals(){super.connect_signals(),this.connect(this.properties.tools.change,()=>this._init_tools())}_init_tools(){if(super._init_tools(),"auto"==this.active_inspect);else if(this.active_inspect instanceof n.InspectTool){let t=!1;for(const s of this.inspectors)s!=this.active_inspect?s.active=!1:t=!0;t||(this.active_inspect=null)}else if(c.isArray(this.active_inspect)){const t=o.intersection(this.active_inspect,this.inspectors);t.length!=this.active_inspect.length&&(this.active_inspect=t);for(const t of this.inspectors)o.includes(this.active_inspect,t)||(t.active=!1)}else if(null==this.active_inspect)for(const t of this.inspectors)t.active=!1;const t=t=>{t.active?this._active_change(t):t.active=!0};for(const t in this.gestures){const s=this.gestures[t];s.tools=o.sort_by(s.tools,t=>t.default_order);for(const t of s.tools)this.connect(t.properties.active.change,this._active_change.bind(this,t))}for(const s in this.gestures){const e=l(s);if(e){const i=this[e];if("auto"==i){const e=this.gestures[s];0!=e.tools.length&&r(s)&&t(e.tools[0])}else null!=i&&(o.includes(this.tools,i)?t(i):this[e]=null)}}}}e.Toolbar=_,_.__name__="Toolbar",_.init_Toolbar()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(1),s=e(270),i=e(273),_=n.__importStar(e(19));class c extends s.ButtonToolView{}o.InspectToolView=c,c.__name__="InspectToolView";class l extends s.ButtonTool{constructor(e){super(e),this.event_type="move"}static init_InspectTool(){this.prototype.button_view=i.OnOffButtonView,this.define({toggleable:[_.Boolean,!0]}),this.override({active:!0})}}o.InspectTool=l,l.__name__="InspectTool",l.init_InspectTool()},n function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t(1),s=t(64),n=t(271),l=t(66),c=i.__importStar(t(19)),a=t(26),r=t(8),_=t(272);class u extends s.DOMView{initialize(){super.initialize(),this.connect(this.model.change,()=>this.render()),this.el.addEventListener("click",()=>this._clicked()),this.render()}css_classes(){return super.css_classes().concat(_.bk_toolbar_button)}render(){l.empty(this.el);const t=this.model.computed_icon;r.isString(t)&&(a.startsWith(t,"data:image")?this.el.style.backgroundImage="url(’"+t+"’)":this.el.classList.add(t)),this.el.title=this.model.tooltip}}o.ButtonToolButtonView=u,u.__name__="ButtonToolButtonView";class d extends n.ToolView{}o.ButtonToolView=d,d.__name__="ButtonToolView";class h extends n.Tool{constructor(t){super(t)}static init_ButtonTool(){this.internal({disabled:[c.Boolean,!1]})}get tooltip(){return this.tool_name}get computed_icon(){return this.icon}}o.ButtonTool=h,h.__name__="ButtonTool",h.init_ButtonTool()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1).__importStar(t(19)),o=t(65),s=t(9),a=t(69);class r extends o.View{get plot_view(){return this.parent}get plot_model(){return this.parent.model}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>{this.model.active?this.activate():this.deactivate()})}activate(){}deactivate(){}}i.ToolView=r,r.__name__="ToolView";class _ extends a.Model{constructor(t){super(t)}static init_Tool(){this.prototype._known_aliases=new Map,this.internal({active:[n.Boolean,!1]})}get synthetic_renderers(){return[]}_get_dim_tooltip(t,e){switch(e){case"width":return`${t} (x-axis)`;case"height":return`${t} (y-axis)`;case"both":return t}}_get_dim_limits([t,e],[i,n],o,a){const r=o.bbox.h_range;let _;"width"==a||"both"==a?(_=[s.min([t,i]),s.max([t,i])],_=[s.max([_[0],r.start]),s.min([_[1],r.end])]):_=[r.start,r.end];const l=o.bbox.v_range;let c;return"height"==a||"both"==a?(c=[s.min([e,n]),s.max([e,n])],c=[s.max([c[0],l.start]),s.min([c[1],l.end])]):c=[l.start,l.end],[_,c]}static register_alias(t,e){this.prototype._known_aliases.set(t,e)}static from_string(t){const e=this.prototype._known_aliases.get(t);if(null!=e)return e();{const e=[…this.prototype._known_aliases.keys()];throw new Error(unexpected tool name ‘${t}’, possible tools are ${e.join(", ")})}}}i.Tool=_,_.__name__="Tool",_.init_Tool()},n function _(o,b,t){Object.defineProperty(t,"__esModule",{value:!0});const n=o(1);o(67),n.__importStar(o(66)).styles.append(‘.bk-root .bk-toolbar-hidden {\n visibility: hidden;\n opacity: 0;\n transition: visibility 0.3s linear, opacity 0.3s linear;\n}\n.bk-root .bk-toolbar,\n.bk-root .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-toolbar .bk-logo {\n flex-shrink: 0;\n -webkit-flex-shrink: 0;\n}\n.bk-root .bk-toolbar.bk-above,\n.bk-root .bk-toolbar.bk-below {\n flex-direction: row;\n -webkit-flex-direction: row;\n justify-content: flex-end;\n -webkit-justify-content: flex-end;\n}\n.bk-root .bk-toolbar.bk-above .bk-button-bar,\n.bk-root .bk-toolbar.bk-below .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-toolbar.bk-above .bk-logo,\n.bk-root .bk-toolbar.bk-below .bk-logo {\n order: 1;\n -webkit-order: 1;\n margin-left: 5px;\n margin-right: 0px;\n}\n.bk-root .bk-toolbar.bk-left,\n.bk-root .bk-toolbar.bk-right {\n flex-direction: column;\n -webkit-flex-direction: column;\n justify-content: flex-start;\n -webkit-justify-content: flex-start;\n}\n.bk-root .bk-toolbar.bk-left .bk-button-bar,\n.bk-root .bk-toolbar.bk-right .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-toolbar.bk-left .bk-logo,\n.bk-root .bk-toolbar.bk-right .bk-logo {\n order: 0;\n -webkit-order: 0;\n margin-bottom: 5px;\n margin-top: 0px;\n}\n.bk-root .bk-toolbar-button {\n width: 30px;\n height: 30px;\n background-size: 60%;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center;\n}\n.bk-root .bk-toolbar-button:hover {\n background-color: #f9f9f9;\n}\n.bk-root .bk-toolbar-button:focus {\n outline: none;\n}\n.bk-root .bk-toolbar-button::-moz-focus-inner {\n border: 0;\n}\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button {\n border-bottom: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button.bk-active {\n border-bottom-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button {\n border-top: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button.bk-active {\n border-top-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button {\n border-left: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button.bk-active {\n border-left-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button {\n border-right: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button.bk-active {\n border-right-color: #26aae1;\n}\n.bk-root .bk-button-bar + .bk-button-bar:before {\n content: " ";\n display: inline-block;\n background-color: lightgray;\n}\n.bk-root .bk-toolbar.bk-above .bk-button-bar + .bk-button-bar:before,\n.bk-root .bk-toolbar.bk-below .bk-button-bar + .bk-button-bar:before {\n height: 10px;\n width: 1px;\n}\n.bk-root .bk-toolbar.bk-left .bk-button-bar + .bk-button-bar:before,\n.bk-root .bk-toolbar.bk-right .bk-button-bar + .bk-button-bar:before {\n height: 1px;\n width: 10px;\n}\n’),t.bk_toolbar="bk-toolbar",t.bk_toolbar_hidden="bk-toolbar-hidden",t.bk_toolbar_button="bk-toolbar-button",t.bk_button_bar="bk-button-bar",t.bk_toolbar_button_custom_action="bk-toolbar-button-custom-action"},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(270),n=e(145);class o extends s.ButtonToolButtonView{render(){super.render(),this.model.active?this.el.classList.add(n.bk_active):this.el.classList.remove(n.bk_active)}_clicked(){const e=this.model.active;this.model.active=!e}}i.OnOffButtonView=o,o.__name__="OnOffButtonView"},n function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),s=t(70),l=t(66),n=t(96),a=i.__importStar(t(19)),r=t(64),_=t(9),c=t(15),h=t(8),u=t(69),d=t(275),v=t(276),b=t(277),p=t(269),g=t(272),m=t(279),f=t(145);class w extends u.Model{constructor(t){super(t)}static init_ToolbarViewModel(){this.define({_visible:[a.Any,null],autohide:[a.Boolean,!1]})}get visible(){return!this.autohide||null!=this._visible&&this._visible}}e.ToolbarViewModel=w,w.__name__="ToolbarViewModel",w.init_ToolbarViewModel();class y extends r.DOMView{initialize(){super.initialize(),this._tool_button_views={},this._toolbar_view_model=new w({autohide:this.model.autohide})}async lazy_initialize(){await this._build_tool_button_views()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.tools.change,async()=>{await this._build_tool_button_views(),this.render()}),this.connect(this.model.properties.autohide.change,()=>{this._toolbar_view_model.autohide=this.model.autohide,this._on_visible_change()}),this.connect(this._toolbar_view_model.properties._visible.change,()=>this._on_visible_change())}remove(){n.remove_views(this._tool_button_views),super.remove()}async _build_tool_button_views(){const t=null!=this.model._proxied_tools?this.model._proxied_tools:this.model.tools;await n.build_views(this._tool_button_views,t,{parent:this},t=>t.button_view)}set_visibility(t){t!=this._toolbar_view_model._visible&&(this._toolbar_view_model._visible=t)}_on_visible_change(){const t=this._toolbar_view_model.visible,o=g.bk_toolbar_hidden;this.el.classList.contains(o)&&t?this.el.classList.remove(o):t||this.el.classList.add(o)}render(){if(l.empty(this.el),this.el.classList.add(g.bk_toolbar),this.el.classList.add(f.bk_side(this.model.toolbar_location)),this._toolbar_view_model.autohide=this.model.autohide,this._on_visible_change(),null!=this.model.logo){const t="grey"===this.model.logo?m.bk_grey:null,o=l.a({href:"https://bokeh.org/",target:"_blank",class:[m.bk_logo,m.bk_logo_small,t]});this.el.appendChild(o)}const t=[],o=t=>this._tool_button_views[t.id].el,{gestures:e}=this.model;for(const i in e)t.push(e[i].tools.map(o));t.push(this.model.actions.map(o)),t.push(this.model.inspectors.filter(t=>t.toggleable).map(o));for(const o of t)if(0!==o.length){const t=l.div({class:g.bk_button_bar},o);this.el.appendChild(t)}}update_layout(){}update_position(){}after_layout(){this._has_finished=!0}}function T(){return{pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}}}e.ToolbarBaseView=y,y.__name__="ToolbarBaseView";class k extends u.Model{constructor(t){super(t)}static init_ToolbarBase(){this.prototype.default_view=y,this.define({tools:[a.Array,[]],logo:[a.Logo,"normal"],autohide:[a.Boolean,!1]}),this.internal({gestures:[a.Any,T],actions:[a.Array,[]],inspectors:[a.Array,[]],help:[a.Array,[]],toolbar_location:[a.Location,"right"]})}initialize(){super.initialize(),this._init_tools()}_init_tools(){const t=function(t,o){if(t.length!=o.length)return!0;const e=new c.Set(o.map(t=>t.id));return _.some(t,t=>!e.has(t.id))},o=this.tools.filter(t=>t instanceof p.InspectTool);t(this.inspectors,o)&&(this.inspectors=o);const e=this.tools.filter(t=>t instanceof b.HelpTool);t(this.help,e)&&(this.help=e);const i=this.tools.filter(t=>t instanceof v.ActionTool);t(this.actions,i)&&(this.actions=i);const l=(t,o)=>{t in this.gestures||s.logger.warn(Toolbar: unknown event type ‘${t}’ for tool: ${o.type} (${o.id}))},n={pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}};for(const t of this.tools)if(t instanceof d.GestureTool&&t.event_type)if(h.isString(t.event_type))n[t.event_type].tools.push(t),l(t.event_type,t);else{n.multi.tools.push(t);for(const o of t.event_type)l(o,t)}for(const o of Object.keys(n)){const e=this.gestures[o];t(e.tools,n[o].tools)&&(e.tools=n[o].tools),e.active&&_.every(e.tools,t=>t.id!=e.active.id)&&(e.active=null)}}get horizontal(){return"above"===this.toolbar_location||"below"===this.toolbar_location}get vertical(){return"left"===this.toolbar_location||"right"===this.toolbar_location}_active_change(t){const{event_type:o}=t;if(null==o)return;const e=h.isString(o)?[o]:o;for(const o of e)if(t.active){const e=this.gestures[o].active;null!=e&&t!=e&&(s.logger.debug(Toolbar: deactivating tool: ${e.type} (${e.id}) for event type ‘${o}’),e.active=!1),this.gestures[o].active=t,s.logger.debug(Toolbar: activating tool: ${t.type} (${t.id}) for event type ‘${o}’)}else this.gestures[o].active=null}}e.ToolbarBase=k,k.__name__="ToolbarBase",k.init_ToolbarBase()},n function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(270),n=e(273);class u extends s.ButtonToolView{}t.GestureToolView=u,u.__name__="GestureToolView";class _ extends s.ButtonTool{constructor(e){super(e),this.button_view=n.OnOffButtonView}}t.GestureTool=_,_.__name__="GestureTool"},n function _(o,t,n){Object.defineProperty(n,"__esModule",{value:!0});const e=o(270),i=o(14);class s extends e.ButtonToolButtonView{_clicked(){this.model.do.emit()}}n.ActionToolButtonView=s,s.__name__="ActionToolButtonView";class c extends e.ButtonToolView{connect_signals(){super.connect_signals(),this.connect(this.model.do,()=>this.doit())}}n.ActionToolView=c,c.__name__="ActionToolView";class l extends e.ButtonTool{constructor(o){super(o),this.button_view=s,this.do=new i.Signal0(this,"do")}}n.ActionTool=l,l.__name__="ActionTool"},n function _(o,e,t){Object.defineProperty(t,"__esModule",{value:!0});const i=o(1),l=o(276),s=i.__importStar(o(19)),n=o(278);class _ extends l.ActionToolView{doit(){window.open(this.model.redirect)}}t.HelpToolView=_,_.__name__="HelpToolView";class r extends l.ActionTool{constructor(o){super(o),this.tool_name="Help",this.icon=n.bk_tool_icon_help}static init_HelpTool(){this.prototype.default_view=_,this.define({help_tooltip:[s.String,"Click the question mark to learn more about Bokeh plot tools."],redirect:[s.String,"https://docs.bokeh.org/en/latest/docs/user_guide/tools.html"]}),this.register_alias("help",()=>new r)}get tooltip(){return this.help_tooltip}}t.HelpTool=r,r.__name__="HelpTool",r.init_HelpTool()},n function _(A,g,o){Object.defineProperty(o,"__esModule",{value:!0});const C=A(1);A(67),C.__importStar(A(66)).styles.append(‘.bk-root .bk-tool-icon-box-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg0kduFrowAAAIdJREFUWMPtVtEKwCAI9KL//4e9DPZ3+wP3KgOjNZouFYI4C8q7s7DtB1lGIeMoRMRinCLXg/ML3EcFqpjjloOyZxRntxpwQ8HsgHYARKFAtSFrCg3TCdMFCE1BuuALEXJLjC4qENsFVXCESZw38/kWLOkC/K4PcOc/Hj03WkoDT3EaWW9egQul6CUbq90JTwAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-box-zoom {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg82t254aQAAAkBJREFUWMPN11+E1FEUB/DPTFn2qaeIpcSwr5NlUyJiKWVXWUqvlUh/iE3RY9mUekkPPURtLKNRrFJEeuphGfUUaVliiX1aVjGs6aG7+XX9ZnZ+d2fTl2vmnHvPPfeee/79Sk+may2/UQq/q7Qu+bAJoxjHIKqB/wlfUMcMVqI9bLZ+DGIKwzlzQ2GcxCx2xwvKOUKlaHTiX8bHNspjDONHkOmJBW5jIof/FvPh/06MZOb6cRc7cGn1AKUE5cdzlM/gAr5F/O24H3xkFRfxAbVygvK+cIsspjGWo1zgjeFpxL+BvnLw7laBA4xjIFJwrgu52DoVjKdY4HBEX8dSF3JLYe1fe6UcYCii3xWQjdfuSTnAtoheKCC7GNED5Zx4L4qt61jbTLHA94geKSC7P7ZeShQ0Inoi1IJuEOeORooFXkV0FZNdZs5qvFfKAeqYy7nZ6yg//HG0MBfffh71lFrQDCW2EvEP4mt4okZUDftz9rmGZkotmMxJRtlisy+MTniAWrty3AlXw0hFM2TD89l+oNsoOJXjbIs4EpqNtTCLXbiZ0g+M4mFObj8U3vsNjoZCVcmk60ZwthpepLZkB/AsivWfOJZxtpUQHfWib7KWDwzjeegBZJSdKFiE2qJTFFTwElsi/unQ/awXrU4WGMD7nOJxBY/1EO2iYConq93CHT1GOwucjdqnRyFz+VcHmMNefMY9nNkA3SWUOoXhQviSWQ4huLIRFlirFixnQq/XaKXUgg2xQNGv4V7x/RcW+AXPB3h7H1PaiQAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-zoom-in {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsUBmL8iQAAA2JJREFUWMO9l12IlFUYx3//MzPrLpSjkm5oN4FFIWVEl66IQlFYwtLOzozsjHdGRSCRF0sfBEXRVV0FQuQiLm5CZNBFgRRaRLVFhbJ2EdiN5gbK7toObTPn6eYdPTvNzPvOBz5Xh/ec5/n/n89zXtEHmZqeSXSuXBz/3zfdKvBWJHQrwZuRcP0El+QkbQXeBX6WZEgm6TtJk5lM5o4Lc+cV6qpf4Ga20Tm338zeATItVK9Ker6yvPzp4NDQ3+XieGsCU9MzTYumGbhz7m4ze9/MHgvBgItACrgfGAj2jgAvAYs3wlEujjc13kii8YyZrXXOfWhmo9GnFUlvOOemarVapVqtkslksmb2KjARqL62ecuWN9NxbRInzrldAXhV0uFSIfdew7G/gNLU9MwS8CwSmE3Oz88fcXG5blfpqVRq0Ix8VIAAX0XgrVL7HDCHGcCaWrV60LUBN8Dae58aQIxEqcA592I9M610JL0cpG/U9TIHJNKY3RV5z0R+7Nd4HZ0P1g/2RMBuegLAsRMnb4vT8d5vqKfMzOgtAlADrkmqGywmiMBTwfr3dC9j1Xv/r6Tvg/5/5ejxE6cO7M9faVbQZrYNOFSPmqQvVo9FKexvi5uWX58943aM7DwAfBDY+FbSCxP5sdkGx55GeguzrUEXPaSo2pFkAbiSZQCAzZJOmdkjwd6SpB/M7KykQTPbA2wDhoIzRzcNDx9MJwGNIXdJ0mEzmwbujL7dbma7gd03A7lKfnTOvf74nl0r6bonTUbujRSUCrm2d4L3/kvn3JPe+8+BDW2i9o+kT7z3kxP5sYsA6W47oE64TsR7P9tQL4vA2mh9WdIscKxUyJ0M7aR7acOGzikD65EQLEjaa2ZXzMwDFeB6qZBbbLTRE4EGeSaozNOZgYFf8qP7lmIvs354n0qlHpB0T7B9Ogl4IgJJrmjv/SiQjbrkD+BMUkfSbYATPdckrTOzkciWAXOlQu5cYgLdPEIapud9wMOR9zVJH3ViKx333mtHMJvNuoWFhZ3A+ojMcja77njXBEKwJJfTcqUyCIQ34Mf7nnh0paMnXacFuGoC1mr3AtuDfLzd8Zuyl+rfuGn4HLAD+Az4qZQf+61TAj0Noj8vX6oC35SL43u7teG6rf5+iXppwW7/JUL5D03qaFRvvUe+AAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-zoom-out {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsHgty9VwAAA0FJREFUWMO9l09oXFUUxn/fmXlpItppi22k7UJBRSlVkCytSAuKUloIdjKT0El3FXVXdVFKRVAQV7qQohsNwdA0UFvBhYtqUVyIVlRaogtFQVq7qSTVjA3z3nHzBq/jvPmTN/Ss7rv3nvN99/y794kByMzcfE/7picn/jenmwWeRUI3E7wdCRskuCSTdDfwBvCtJEdySV9KOhpF0e0/LF5SqKtBgbv7ZjObcvfXgShD9Zqk5+orKx8Oj4z8NT05kU1gZm6+bdK0Azezu9z9hLs/HoIBvwAF4H5gKFh7B3gBWFY3460kWve4+3oze9fdx9OpVUmvmNlMHMf1RqNBFEUldz8OHAxUX9q6bduryut+Sfvc/Wz62ZD0fK1afjND9y3gGSRwv1GMojstTxUUCoVhdyopEYDzKXjWwZ4FFnEHWBc3Goet00m7lZlZYQixKw0FZnakGZksHUnHgvCN5/KARBH37enpOVg58H13HV0Kxg/kIuD/ngSA2ZMLt3bTSZJkUzNk7k4+D0AM/CGpaXCyBw/sC8Y/qZd2GpZiuL9YLN4Sx/HpoP5/c/exQ1OVq+1yyt13SLoArEsJnMjlgfOffvK3u58Kprab2QezJxfG2iTzUzI70wRPG9jbmpmb95SNB9mpzp7/j2yVdNbdx4K565K+cvfPJQ27+x5gBzAS7Hlvy+jo4WIvoC3kWpcvS3rR3eeAO9K529x9N7C7zX6AC2b28hN7Hl1Vt44niVq13LUjmtlYkiQfA5s6eO+GpDNJkhw9NFX5ueNt2ARodyF1IHIN2JiOl4H16fiKpK+B2Vq1vBAqFAf4IJkGNiIhWJK0192vunsC1IE/a9XycquNXARa5OnApeeioaHvKuP7r3dTGsiLqFAo7JR0T7B8rhfwXARa2us4UEqr5Ffgs151i/08oTNKdIO770ptObBYq5Yv5ibQq/sl3Qc8lJ4+lnSqH1vFfp9koZRKJVtaWnqkWXqSVkqlDe+vmUDWpZMlK/X6MBDegKf3P/nYaj8ErN9fqZBYEsf3Ag8G8Xit33BaniTcvGX0IvAw8BHwTa1y4Md+CeRqRL9fudwAvpienNi7Vhu21uwflOT+L+i1X2TJP57iUvUFtHWsAAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-help {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABltpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPHRpZmY6Q29tcHJlc3Npb24+NTwvdGlmZjpDb21wcmVzc2lvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDNDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMTIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDMjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOnN1YmplY3Q+CiAgICAgICAgICAgIDxyZGY6U2VxLz4KICAgICAgICAgPC9kYzpzdWJqZWN0PgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxNjoxMToyOCAxMToxMTo4MjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+UGl4ZWxtYXRvciAzLjY8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cphjt2AAAAT7SURBVFgJxRdbaFxFdGb2bhui227BWrsVKYgf2kJUbP9EUPuzEB803WTXJjH61Q/7Ya1+CMYKEVTsh4J/EpvY7BoabUiNiA8s1p+4KIhpoUUEselHqyS76TbZ3HuP58ydc3d2u4+IkQxczpz3mZkzZ86VYpXjvenpjZsLhUcliE4AuUuASAgptmt1EFdwPiclzIIUUwubNn17OJlcXo1p2UpodHRiux9xB1Eug1+slbzhFxGOKc851tu7/0oznYYBDA8Pt0U2tL8KQryIq2tvZqQhD0QJHRz3yqWhgYGBpXpydQMwqz6NCnurleCSADkJEfgKfOePqL80R/wV1ZaQyr1LenKfkPCkEPKeaj0xg7vxVL3duCmA0Vyuw/fl52hgBxsBED+h4Cv9z3R/zbRm8MTJTx7HQN7GQB6w5C4L4SX7M5lfLBpurjXMyvNIShiyi0l1pL8n9b7EDGPR8fHxzSsQ6XDB3618/xqo6Pk25V5MpVJllgHM1BO58RdQ612kOYZ+GXdij70TYQB05mpj+1kU5G2fB+l3PZtOf8NGx6ambnMXb3yAxg8wjSEG6OKKR9oicBQD+ZvpH2Wzj0lQpxCPG9qMv1x6hHNCsSAlHM7ZOa682vlI9tRDbvHGbD3nZAPpDoD/3JIrLpAs26UFkC3EMUA99hpfGtEBfJjNJnS2Gwnadnvl+Xw+iuc3DAJuNyIaSCHpilVldyDjjUxj3WDZIAhxhHHyRcdNuA7AAfUaXzVKODpzFiZ4/uLvh5G+m2no+C/pyIf7MqlEJB7bpqR6nXkEUfbeawuLaZsW2ISfNQ2vtaktQlGFQyIVGT0o2+2EC4iQNGwjBIN9qdQ5Qg4mk4X4rW3vCClLtowE2FOFUxKDfNmiZci3ovKKRFPh4FK9q4Zbdr+lKKJiA13TcHR2dmLBgdmQ0GAS2MZaEowY+XbAk09IvgtYZGp16SyvFhaHcIUh645t8T9DBCcnz5zZ4hZLu3DzK2QlL1QQa0Y+pHiJKPSuOGj3PmZTheM5w2TwqBxnvBZOTk7G5gvXJ5Aelms8wnJURL+olSWcfEhf6gDoUXPMq6ZlqbzWU2pE+3hi4s6F68tfIj9cBMlikr7Z0/P0b/X0yIcUXsDCF1WhtL4OROHaXk+xlkbV0Cu732Nmhc4peaWSg73pA8dq5RkvO37ldUTfXCKZv2q45MkhvG87WQEzpCCUSvV1d9GONBy3lMvgKSwrZig8gjAietWY0QriylO2jIo4yVbOSb7KB/qmI9BPKjHpSSXYauRyn92Nq9/Kcrj13x3s3v8D481glQ/0raiNYgX9njPSBOImbrHZePl+tfFmc9sH+Xaoh8NjOKSVdDMhjjYzQLy+dFceH5+IJQf9VYXX4tROg4ZFU8m31M3mfPEqUoJqCGJfvWpo2xnNfdrhC28n06SCeSzNZxlvBINGRXCtKS7EY1uV6V7HWAm38y1cXaXsMcOCvr9ySPj+af7A1U2HJXHzVNvUXVLIGyPf+jV0pf8GHoN+TLAyPkidTCi2RpPApmnR0Bd1zGRaB/B8Oj2HSw7LLbVR1MmskW8RdEWVXSJf3JbpAMgRtc4IZoxTh9qotQjCasm46M0YX9pV1VmbpvRH5OwwgdRtSg2vKaAz/1dNKVtb17Y8DCL4HVufHxMOYl1/zTgIgiYvBnFKfaNp3YjTdPz3n9Na8//X7/k/O1tdwopcZlcAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-hover {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4oVHp0SwAAAQJJREFUWMPtlsENgzAMRb8RQ5VJItFDOgaZAMaAA0iZpN3KPZSoEEHSQBCViI/G8pfNt/KAFFcPshPdoAGgZkYVVYjQAFCyFLN8tlAbXRwAxp61nc9XCkGERpZCxRDvBl0zoxp7K98GAACxxH29srNNmPsK2l7zHoHHXZDr+/9vwDfB3kgeSB5IHkgeOH0DmesJjSXi6pUvkYt5u9teVy6aWREDM0D0BRvmGRV5N6DsQkMzI64FidtI5t3AOKWaFhuioY8dlYf9TO1PREUh/9HVeAqzIThHgWZ6MuNmC1jiL1mK4pAzlKUojEmNsxcmL0J60tazWjLZFpClPbd9BMJfL95145YajN5RHQAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-crosshair {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADEUlEQVRYR81XXVIaQRCeHqug8CXmBNETaE4gniDwIgpVspxAbxC9ATkBkCpQ8gKeQDiB5AQxNyAvUlrldr7eHxyGXZi1rMJ5opbp7m++7un+htSGF204vsoMoNXrlzSpfWa1oxQfhAegCZGaEtPorHo8znIoJwCt6+td8uk7ApUQCIHTF4BNAWzImq8ap6cP68CsBdDp9i9ZqXM7ML79g/EnCWD+jgMKENKqWT+tXK0CkQqgNRjs0OxpQIqKhoMxaG6/6JeRnK7T6yO2UvVqhYSlLX+ryORfgKn9ORDFIy7ky41yGcwsr0QAQfDH5zucOswx819fs4egI9OFCcD8DjBF7VNbEX0JzdWEt3NHSSASAcCxBDqMgt/623kvyTgNgNjJIfTjk4D4FqaJR1715MjmYAmA5Bx3AwUXQL+t105KaTlcBSC26XRvhjEIoLiq1yqXpr8FAGG16/ug4IT27fxBWu7EiQuAiImJpEMKE6nYM30uAIDDttSUOPfJP7JzbjPhAiBIh9QE67vIvoOi9WJfCwDavf40ulpjbCqmUf+W753ezURuh7Dg1SqflwAEHU6pgfyBq9Y4qx0LG++2fnZ/eUzcstmdM2AWH+jfc+liWdBJfSENf8Lifi3GVwC9mybOfi5dzatWVrbbLIHNva8p5h/16gkaFiLGGxbufkoE6XguwePiXLF3XmMfCUCUAqtKXU7sumd1CowOuJEi3Pg1FBpjitIGhyvVSfvmjci6ZR+rFQfDiPVE2jFYeICQ+PoewwjC5h7CZld6DBdyu6nDSKgzOyIMhmhK5TTqXYbRorZYM46TmpKAAOrGWwSJJekSB1yqJNOzp1Gs7YJ0EDeySDIMtJbQHh6Kf/uFfNFZkolJICRmz0P8DKWZuIG2g1hpok+Mk0Qphs0h9lzMtWRoNvYLuVImUWrmPJDlBKeRBDfATGOpHkhw670QSHWGLLckmF1PTsMlYqMJpyUbiO0weiMMceqLVTcotnMCYAYJJbcuQrVgZFP0NOOJYpr62pf3AmrHfWUG4O7abefGAfwH7EXSMJafOlYAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-lasso-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgwlGP1qdAAABMBJREFUWMO9V1uIVVUY/r61z57ZMx4DnbzgkbQXL5iCJphlWdpIGY4jpFBkEiU9ZNaDRRcITcIwMwgxoQtU2IMXdAZfMjFvpERXYiSbysyBEXFmyuHMnLP32uvrwT2xnY5nxvHQ93Jg7fWv71/r//7L4a59TRgqJk+Z6v3a+sv0OI5nk5wu6VaSVZImAThHsgjgrKTvM5nMUWvtmf5n8HodCIKgOgzDhc65pSTrJQWDsSNpJX1ljHnDOfdT37oZLLHv+8OMMasKhcIJ59xHAJYMlhwAJGUAzJfUTHLFuFzOG5QDU6dNMyQfs9Yedc5tBpAD4IYYNQGoBrDtQnt7/b0LFrJsCHzfn2itfQfAnZLiazytA3AaQAuAiwDaEgeNpGkkswAWSBqRONB38b88z5uTKePt6iiKXkk8jq+iJC5LOmiMaTLGHLPWhmWeHr7vV0dRtATAapAzIVmSo51zyzIlbm2stesFPA6pKk0r6Ryg93y/ek8YFvPOOTg3cDSiKCoC2OP7/rEoirYm4rUkF12lAWNM1lr7lqQn0+QA8gI2jBg5cj6Aj8OwmB+KAKIoukhyp6SRJAUgl0ndPLDWPi9pJQCbuviXvu+/GIZhW1dnJ24UJFuTjCCA2ADA8sYGWmsXS3qmL94kDYAtkh4Nw7ANlQJ5U6INT1KrAYC9zQdykl7nFSj5fXp5Y8NWVBhy7mUAjqShMYdMXV2dJ2klyRwAJ8lIeuGWCRMP7N7frEqSG2OmAFhKshNAp5wrmO7u7jEAngPQm1S2z2pqapr+OPt7XEly0oxwzq2RdFmSD2AMgKKJouhhAL4kA+Cs53l7e3t7uytJHgRBreTWkXwkKVJnJD0B4GAGwIJE9R6AFufc6UqSZ7PZbD6ff5dkA4CQZEHSqwAOISmXtwGIE+F1SeqqIP8d+Xz+C0mLJYWSAODteXffczjdDQNJ0BWMCoLg5gqIbRTJNwHsljQhUb0luWPM2LE7Thw/9m/5NCT/TByxAOYWi8X6/gdWV1dnfN8fNRBxJpMZTXKdc+6IpFVJWAEgkvSJpA0X2tvtVTaSjgOYBCAEEADYSHK87/sfhmEYA9gShuEDkgzJHyWtB/B1irQ2juP7ADxkrX0wOUOpzmdpzEY590HJ7Ni1r2kSyZOSiv2+hSRjSTXp/QAukzySNJOJkmalyNIl10hqMcasdc61XDNcQRD8BnITgNp+36r6kfcNFMMlLQGwTNLMEuQGQBfJl2bdPru+HDkAZAqFQux53jZHEsC6aw0eg2gylNRBcqcx5v04ji999+03AwsWAOI4Lsy9a94WkisAnE5a5WCJYwCfA1g7LJudI2lTHMeXBm1faiQzxkyRtF3S5CTupeAB+KG2tnZFT0/P30NO2VKLzrmfAbwGMipjG5Oc0dPTc0Md05SZ5U4Q2FxChErtEYD7jTGNQ3UgM8Asv90Yc9I5LSKRlXSI5CxJa0jWSALJjKRnAewfkniT+vwf7N7fXHK9rq7O7+jo+BTA/NRrdBpjnnLOnUrvXd7YMPQXSBunneno6IhIHgYwW1JtkgmBpBkATlVMAwOk3nFJ+VSoqgCMr6gIy2FcLtdKspAedyQN/98caDt/3kpyabUmf8WvG/8A1vODTBVE/0MAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-pan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4lKssI9gAAAOtJREFUWMPVll0KwyAMgNPgoc0JzDX2Mtgp3csKErSamGabIEUo/T6bHz0ezxdsjPJ5kvUDaROem7VJAp3gufkbtwtI+JYEOsHNEugIN0mgM1wtsVoF1MnyKtZHZBW4DVxoMh6jaAW0MTfnBAbALyUwCD6UwEB4VyJN4FXx4aqUAACgFLjzrsRP9AECAP4Cm88QtJeJrGivdeNdPpko+j1H7XzUB+6WYHmo4eDk4wj41XFMEfBZGXpK0F/eB+QhVcXslVo7i6eANjF5NYSojCN7wi05MJNgbfKiMaPZA75TBVKCrWWbnGrb3DPePZ9Bcbe/QecAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-xpan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4X4hxZdgAAAMpJREFUWMPtlsEKwjAMhr/pwOOedINJe/PobWXCfAIvgo/nA4heOiilZQqN2yE5lpD/I38SWt3uD9aMHSuHAiiAAmwaYCqoM/0KMABtQYDW11wEaHyiEei28bWb8LGOkk5C4iEEgE11YBQWDyHGuAMD0CeS30IQPfACbC3o+Vd2bOIOWMCtoO1mC+ap3CfmoCokFs/SZd6E0ILjnzrhvFbyEJ2FIZzXyB6iZ3AkjITn8WOdSbbAoaD4NSW+tIZdQYBOPyQKoAAKkIsPv0se4A/1UC0AAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-ypan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4anK0lywAAAMVJREFUWMPtlzEKwzAMRX/S7rlpIMXeOnaLaME36FLo8XqCdNFghGljyc4kgQi2Q/SUj0F/eL7eMMTKz6j9wNlYPGRrFcSoLH4XxQPvdQeYuPOlcLbw2dRTgqvoXEaolWM0aP4LYm0NkHYWzyFSSwlmzjw2sR6OvAXNwgEcwAEcwAEcwAEcoGYk20SiMCHlmVoCzACoojEqjHBmCeJOCOo1lgPA7Q8E8TvdjMmHuzsV3NFD4w+1t+Ai/gTx3qHuOFqdMQB8ASMwJX0IEHOeAAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-range {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABCJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjMyPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4zMjwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxkYzpzdWJqZWN0PgogICAgICAgICAgICA8cmRmOkJhZy8+CiAgICAgICAgIDwvZGM6c3ViamVjdD4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDQtMjhUMTQ6MDQ6NDk8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPlBpeGVsbWF0b3IgMy43PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrsrWBhAAAD60lEQVRYCcVWv2scRxSemZ097SHbSeWkcYwwclDhzr1Q5T6QE1LghP6BGNIYJGRWNlaZItiFK1mr+JAu4HQu0kjpU8sgF3ITAsaFg0hOvt2Zyfvmdsa7a610Unx44Zgf773vvfneezPHNzrbhn3CT3xC3wPXYOC8LDzqdi8YY/gwh4BeknS/2th6dr2kf94AOp3OFyWgMyziOPbMDxV9FTtJnl1ut795Xd0/YQ0/vtYQwMT1KXWCfr2IjOWwtNehwN4xL9ykTrm6Pzl58yLn3J+mKh9mXbT3uRjGEDph+O8/TjfP5dBp7Ha7AX7O3o5nZeD/0E/OGyXntDgzA0X6qmCnrVutVlrUWV9f/3xo+pwhGDhvEPHOjoxnZjJggXmMHzBQ7NGNp9vxk61fr0HR7e/u7pZzCGHlc7qwBYYTT7tJYSx1AQzppyFPft5apta9w7SKcn0b7P7+/jCsDQ5mbc0dCmIJGDN0ehdcjsmkm6A6KUeKFOTE11PLxrC7Ukqh3ylL2fT0NAP9q6ur6rRCJJYsbKB0JsbCKMuy+xREePDyxQPCz+Crlw062QcA5wBOOt1l6vIl2WiI9F1fN6Q+BBqit6hEC4Hk08GQJMn4myjSP7RavVxgdaVUh/3U6HCMsPr9pYnJKRziHtWQ+un58+hGs6nsjQSjpuTyKGN3CX+FBwHXSiEVgjP+O8X6N12kIePES+GzTKAkGbNp8yJsGUMVzz8jPKReiyAQRimy5/cjye5RpF8utFp/+nwmT7d/NMzcFkS7yjJNGDaPURQxIQThEQy0SyF4l5WJYYhBa816vZ6dU7A6CAhbZVow/pDe0O9hVOoCi13r4BgBAvJHqMSQL2vE/iH6IAXEwgrRVUmBoRRwnwJQT98xEeVeSUyB4dJ5nwJBKdCFFGRmUCcu7rwIYypCTblaChuNBhWODrman5ub+4v0rMNBt8z6Ezh7GksJQpCbm79cMQE7QBFm/X6f0rjWnv8WRYg/QdbUpwDAEBy8vPyA8rNGzg3a8MiElwiM7dAtRqNoNptjGPM1laVxP9umWEMGLOKhKUOJDtBwDmzsw9fC/CzHr9SGuCTi2LbbKvVtmqXpCjMihBFa79Wrt5fGx9PDzc3fmu32Lf8qFliwU9emKhBSp+kRKn/hu9k1COEDbFdt/BoKWOAkuEbdVYyoIXv8+I/QK9dMHEb1Knb7MHOv8LFFOsjzCVHWOD7Ltn+MXCRF4729vWMDK+p8rLkvwjLg4N4v741m5YuwCI9CvHp1Ha8gFdBoPnQAkGsYYGxxcfEI7QQlFCTGUXwjAz4tWF+EpymOWu7fglE7qsOvrYE6g4+9/x/vhRbMdLOCFgAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-polygon-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjc1OfiVKAAAAe1JREFUWMPt1r9rU1EUB/DPK0XbqphFHETo4OCiFhwF0V1KHbRSROLqon+AUMVRRFBwEbRFMBiV+mMW/wIxi5OD1kERRVKRJHUwLvfBTZrU5OWBGXLgQu7Jfe98z/ec7z0vKa88b2q1BDtRHdAPBaylm1NzsxsOjPnPNt6WSWprbft+/c3I3zOAjhT1Y4+fvcjEQJIXnVECSa+AhqIHqlHH5lWCZoe+Gk4GRgDG86j9SAUdlDBSQaZhlOkuHyoVdJmsw98D1S5fM4NYM1LCpqM+Lwa240oLgmZzpVZvzKT75VLZcqksSZKWlQeAy/iORVwIvh31xvotvK7VG3Px4aWHj3Jl4C2uYSvq+Bn8v6LLbaVWb9zsBiKLCvbiNG7gLm7jAYqbPHMJMziZ9lsKoh8GtqCEVVzHftwJn+TFHp4/hg8BSCYVfMOZoPEv2NZGdy9WCGUr9toDR3E2/H4V6nwRe/BmgN65H1ZhvMuB3XiKIyFoGefwO6ysVkUlrNUNsyAK/jli533Q+Y8cJFvAeXyMS1CI/jiMr/gUtD2LQwMGr4R3p7bY3oQHQ5b38CT4D2AXXg6YcQXHpyYnlqKsi5iOAVSwL9zd7zJ09r+Cpwq72omFMazjT9Dnibym0dTkRDUKrrgwH7MwXVyYB38BstaGDfLUTsgAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-redo {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4itK+dVQAAAaFJREFUWMPt1L1rFFEUBfDfJDaBBSslIFjbaSFp1FJQFMVCHkzhKIqdUYOCoBgErVz8rCwiTDMwBCIKipDWyip/gxAIWAmBgBC0eYFh2Gx2l9lFcA5M8e59782Zc84dWrT435Hs1siLchqn43MS0zgW22vYxjesYjVLw3YjBPKinMUTBOwf8J5fKLGYpWFjJAJ5Uc7gIW6jM6Kim3iNZ1katgYmEL/6I+YasvY7Lg6iRpIX5VF8wuEe/XV8wGf8jN6LWTiAc7iEQ7ucPZ+lYW0vAtfwvlbfwCKW9gpXDOv1mJvZHiSO91MiyYsyiQSuxtpXXM7SsDmM5nlRdrCMMz3sOJWl4Xevc/vwBzdwAl+yNNwZxfRI+GxelK9ikHcwh8d4NNR/YFRES1ZwoTYdR7I0rNf3TzVNIGbmSvR/Bx08mIgCFSVu4l2ltIWD9WxNGR+W8KOynqnZ0rwCeVG+wa0hjrxtWoF5dAfc28V8Mib/n+Nev5dnabg/zgw87aNEN/bHOwVRiRe4Wym9zNKwMKkpgIWKEt24njxiJlq0aPFv4i9ZWXMSPPhE/QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-reset {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4gWqH8eQAABLdJREFUWMPtlktsVGUUx3/nfvfOlLQaY2IiRRMQIRpI0PjamJhoVASDvNpCpYw1vJQYSVwZwIVQF6wwRHmkAUof9ElrI6VqDAXcID4TF0IiYQMkSlTokNCZ+b7jove2t+NMH7rQBWd3v+989/zP+Z8X3Jb/WGQySvUNTQBJESkNguAVYIWqzhaRhwBU9WcR+QXoymazn6jqzUQiMQSQzWZRVdal1vwzAI2tHQBPOuc2AbWTdOyQ53n7nHNfRwee51GzqoIQMCLDpr3x/tLQ0oZzrk5Vj0/BOEBt+KYuOlBVGlrahr0Wob27t3gEjnZ2AyQzmUwHsDgP6J/AYRE553neDwDOuUdU9QngNeCumK4TkRMhZUORcYC1qysLA6iuSQHIwkWLD6lqapQsuSmwTVV3h99I7EcAR462A2xR2Ilq6ehTaejvO1774kuLNALR33eclsaGsQDe3fYegHl43vyNwEeqGl1963mm2jl7YZRTQ82qlWP4HM6ZToC5ztkW4LHQoALru7s6Di5dvlIj/e6ujrEAWoZDn8hmMjXATMACGaAVuBjXTVVXFc/AxhaA+4zvn1DV+eHxVWPMAmvtb5GeMWZyZVhI2rt7qVy2pOh9U1snwIPW2vMi4oWJuBPYHkVAVScPoKmtkzVVK6cEMsyJraHhiCqJqJUwj/JRz7TW1iSSyR2rVyylqa0Ta+24Ic8vXaAEmDFc/l5Z2A/80OibuVyuz/f9ElUdHCmvw82t5HK5h6y1PYhsz2YyGw43t2KtBZHIGwB6+j4rCkBVUdV7gXrggnPuu8h4eP+xMeZS2D0rJYZ6AdAMzAt1b4nI26p6IFZOY8pugijcKSIHVLUK0LyST4vnrVfnWr3mjmP4QTATaERkXkypRFX3isjmuHdRJEK6Ckqquopp06bdKCkp2Sgi7XnGLcg7gzeutwNIiPYc8HixqIrIOlU9ONVIhHPEd851icgSVXUiskVV94gIqoonIt0i8gfQCfwae38e6BWRXuBZz5jZ8VbaOE4EIqlZVUEQBLlkMplS1QER2RwkEnsSyaREDUzyeNsvIhvCMqkH1kdIJ2o+k8iJB1LVVRfjZ6nqqlEAIbdVQGto8Lrv+/dbawcjAL7vc+6bs+zetetfLSHxniIFGofGGsU2oC7eOCbDfZ7nQawBOSAX74SF9oEPImOq+r7nmVmxb5raukZa8UReGmNmhbMkAwwBH467EYVZe49z7kdgenj8k7V2oTHm8kgdWcvrNdVFjR8cHkYzjDH9wLjDaEwEzpwa4MypgWvAjtjxfGNMj4jMiT+M+kFsZI/Q6Pv+HGNMT8w4wI7TAyevxXVPD5z8+zD64tRXAMHVK1eaVLUyVvuDqroV2BOnJF4ZIedviUidqt4Re9s+vbx8zZXLl7PR2+nl5Tz/zNOFp2FzxzGAklw22wUsLLaSKXwf8vhosZUM6PeDYEUum70VHfpBwKsVyyfeikOP6oBNwN1TrLbfgX3A1kKLzKeff8nLLzw38T5wZDgxn1LnNk5lLRfP26/OnR2hwfNYW2Atn9RCsrf+EECyrKysDFimqhXhyjY3VLkAXBKRDqA7nU6nS0tLhyIj6XSaN9bVclv+l/IXAmkwvZc+jNUAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-save {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4UexUIzAAAAIRJREFUWMNjXLhs5X+GAQRMDAMMWJDYjGhyf7CoIQf8x2H+f0KGM9M7BBio5FNcITo408CoA0YdQM1cwEhtB/ylgqMkCJmFLwrOQguj/xTg50hmkeyARAYGhlNUCIXjDAwM0eREwTUGBgbz0Ww46oBRB4w6YNQBow4YdcCIahP+H5EhAAAH2R8hH3Rg0QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-tap-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCOTJBQzE0RDQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCOTJBQzE0QzQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTQ0QzIwMUM1RjIxNjgxMUE3QkFFMzhGRjc2NTI3MjgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6eYZ88AAADLklEQVR42rSXf2TUYRzHv7tuGcfE6Vwb5zLSSjEj7Y9KWqfEmFZJP+yPMdKKmUrrn0iUfjhWlLFi6YfNrF+StBoTo39iYkTGco4xxxG59P7k/T2PT8/37nu3bx9ezvPj+zyf5/PreS78bGLS8SmrwE6yje3NHJsDBTALpknBz6JhH3NiYAB0gHqPOVv52wJ6QQ48BzdAttTioRJjdeA8mAHHS2xuk3p+M8M16ipVQE49Ds6CiFO9RLjGONf05QLx6wPQaBlbBlPgJVgkP0ETiIJ2sB/E1XfimjfgBOOlKDUqCGOcqBcQnw6BYW5YTo4wbvQhMmCfGRemC2rBiGXzWUb+kM/NRZ6CHWBM9ce5R61NgX6ayhSJ5EPlItlDRNkz4JbFHf06BkSzHjXxM+gDv1S/mPUo2AXWgt9UUHL/IVhS8yUV1/EbV3o4N+NaoE9Fu/i827K5pNYHnqAVJECShWmAaddpscYFFXwR7vnXBRGlnUN/L6kqKJlxnRUuDbaDBiL+vst5d4gpcpBrqk/2jIgCKVUolhntplzivHmwh4stGOPfwBWwl/2dpp8p7xjQZqFLiQJtauKkivYm+kzccpK57yXfOUe+P23JqAnVbhMFmlXntCWnxbT31am9ZJ4BJifsUmNTqt0cYhA5ypympPg7VkEKunPbVb8cIG+0kyHLJZNR7fUMooUKFHAPkfQo58VLK+RzwRDd4FdWG9mjpaAXzqkJa1R7kQttqEABWXMjOOxxVRfnhRm5URX1prk/0pQHwNcKlchZ+jdpC+hFdVqO0my9Hj5dkYgCn1Rfh/KdlNDHrJhPqlDih+IfBd6qwpOgEqYMsorJ2HtWxtagLJDn/W3KRfPOZhoeBJfZPgVeGKeKrkQBh5dLXl25Ny3pc4/1fkTdbvFqFQgbxWeYD0hXulhQ0pYiM1jG547fcbMQpVnHTZEn9W3ljsCzwHxCdVteNHIZvQa7/7cC7nV6zHIfyFP9EXjFa7YxKAVqPP4bxhhoLWW+z9JyCb6M/MREg59/RlmmXbmneIybB+YC/ay+yrffqEddDzwGvKxxDmzhc0tc80XVgblqFfgjwAAPubcGjAOl1wAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-undo {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4em8Dh0gAAAatJREFUWMPt1rFrFFEQBvDfGhACASshkL/ALpWVrSAKEQV5sIULWlgZNSgIFkGIVQ412gkBt1lYLERREFJqJRaW1oHAoZUQsDqwecWy7N3tbe6C4H2wxc682Zn3zTfvLXPM8b8j6RqYF+UCzsfnHBawGt3fMcAX7GEvS8NgKgXkRbmMxwg41TLsN0psZmnodyogL8pFPMIdLHUk7hA7eJKl4U/rAuKu3+HslFr/FZezNPSTFslX8QErDe4DvMVH/Iq9F7VwGpdwZUjsPtaSFjv/1vCBPjaxO0xcNbHejLpZrrlvJCMCT+JzA+2fcC1Lw+GE4l3CG1yIptfjCtiKoqtiJ0vD3aM0Py/K57iIMxgkQxat4EdN7e9xdRzlk+LEEPvDWvIDXJ928sYxjL36icWK+VaWhlezOIqbGFirJd/H7szugrwoX+D2BDEvszSsT5OBdfRaru/F9dPXQF6U27g/KnmWhgctxqyzBrZGMNGL/rHI0nDkKXiKexXTsywNGx0OnFbFNk3BRoWJXnw//j+ivCi32/S8CxPVNiWOAdUiJtXITIqYY45/Cn8B2D97FYW2H+IAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-wheel-pan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgswOmEYWAAABddJREFUWMO9l09oXNcVxn/n3vc0fzRjj2RHyIZ6ERuy6CarxJtS0pQSCsXNpqGFWK5tTHAwyqIGN7VdEts1LV04BEoxdlJnUbfNogtDCYWQRZOSxtAUCoFiJY0pWJVUjeTKM9LMe+9+Xcyb8ZMychuofeHCffeee7/vnXvOuefYlV/+mv932//tb91z/Y2rvxmMHQ+4FcEfOIGN4A+UwDDwoQScc7vM7AIwB8yZ2QXn3K77Ab6OgJnVgeOSbkqaBiaACUnTkm4Cx3OZzwf+qzcRQup1zNZ9RwDe+0YI4YKZTUn6zCGSMLOfAF/03r+QZdnyfwO+ePEiI6N1nPMgMDMkETLRbd2mXG8gCbd9YiIKIUxLKoLfBN7I+80+CUlTIYTp7RMT0b3Af37p8kh5y9gZcy4Fzt+5szqSaxkzUR7dwtrKMmaGW242d0t6vrD/He/90865o865o977p4F3Ctp4frnZ3L0Z+OryUrVSrZ0z8ZxhHjhcq1XPrS43q/0flDlK9XpPA2ma7gMeyvfPx3H8TJZlH4YQWiGEVpZlH8Zx/Awwn8s8lKbpvmq1ahvB641SXNk6dhLskNA2MIBtwKHK1vGTW8bKMRbAMgyPqWeETxUM8VSSJAv52JmZA0iSZMHMThWwnipXKp8hsLLcSaIR92oU8xjSayCQXotiHotG3Ku3m+0EOQwPQCDggMf7BzQajSs5eAk4B5zLx4O1vD2eJMmAQKliscgASJMw21pansFs1swQ/DNLmUmTMNuXX+taXHTDaj5OW612R1JZ0nFJJ/J+XFJ5aWmpA6S5bHV8fHsPHFU6q3pJCjtFxtrKMuXRLUUXXxdrRLazFOtUolZlsGhmACsgnHPTwJnCnjP5HMBKLotzxsTE9rgDL0t6LoriKsDIaB31ZEK+JxQJRHFUBR2NqLw8OTkZR0OC0ntm9k1JWU7OA4vD/mZ+YfElsANmNEKi75vztzB5M8uAr+bx48me88g757PQ1U5zNg52YH7hX8l6f+4Fi3c3BqHNmkI4YQOV2MGCNu9qHPYCewfzbrC+XSGcWEcgTRKA3wFfyzdDz5d+D3x9CIcfA4eBbQS9LscskgfLnHNPAnslvS/pbZDHLLPADpx9N9fqpSIBH8cxWZY9m6bpb4Ev5fN/iKLo2TRNgdx/eo8Wk5O7Ts/N/SOSdMjHdj4kmgkIEJLJzPZKetvMTkIvFLsR25Ml2gfuF5M7vnA66sdooJYkCSGERe/9VAjhzRxoKk3Tvg3U8nulVqvx8cyNpER2umM+SdOkbc5B8JhpqBdIgTRR24h+lpKen731aRIN7thscH9Zlv0d2F8YD2TIX7F2uw3A7ZWV1a0TYz9ca8cJZHRbuRuaDfUCw9/qJHamPOKToAwHtHN6lMvlSkH2o7wDMDo6WuGuQbbn5+YAKNcb3J5fSvrhtTY+vsOPuD1IOyRhMOkj9kSx29HfXB5RUnS964NT2+3vbGbxG9auO2cDNuV6A8NTb5TitBuOpQkfYD2vwOxgmvBB2g3Hto5X42EJyVsFlztbKpXGNgqVSqUxSWcLU2+tdToa9hasLjfPYlwGa+bTi8Dl1dvNsyvNtQQL9MO2w+HM7BqwlAtPdrvdq9773WAVsIr3fne3270KTOYyS2Z2bbXdHhogKmPj7YWF+VOSXs/v/9KdO+0fVBrjbRkgB/KIDBnYu9f/7D+ZmfmRxPd6qwB8YmZXcq1MAQ/nJhTM+OnDe/a8+PGNG9lm19V/D1Qw7HXZlcRa69+U6w38l5/4ipxzf5X0CPBILjcGPJH34pVcc8692FxcXLlXRnTwwH7+9P4f8aWe3fY59LIqo1NMyQBCCHNmdgx4BegUWefjDvCKmR0LIcz9L8nokSNH+PRvH4HC3YQ098pSbevg24qlmZmNmtmjkg4D3+j/tZldkvQXSa3PW5ptlpL3ZaIN99OS9F7+IgKUgSyEkNyv2nHT7DZX0dr9rpjua2l2r4rogRAYVqZvnPsPqVnpEXjEaB4AAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-wheel-zoom {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgskILvMJQAABTtJREFUWMPdl1+MXVUVxn/fPvf2zrSFmUKnoBCUdjRoVaIxEpO2JhilMYBCtBQS2hejpg1Uo2NUrIFAoyGmtiE+GHwQGtvQJhqDmKYRBv+URFsFDNCSptH60DJTO3dKnX/33rM/H7rvsDu9M20fDMaVnGTvtb69z7fWXmvtc/TEzqd4OyXwNsv/FwFJQVI/sA14SZKRLOlPkr5TrVYXHz70quYkEEK4TtI2YAgYkrQthHDdhV5uuw+43/ZrwCbgRttgY/tjtrc0m83X3/f+D6ydnJhYcB4BSZcBA7aP2d4ELAGW2N5k+xgwkDB0IH19CGGH7R8B1aQeAf4KvAw0ku4K2zu7uru3ApdPEyiKohd4TNKjtjt5h6RHgccSNrddbvuHtm9Jqoak7xVF8WFgdavV+pSk5cCObNmXgK++85prCj3z28HKqZMnH7D9YAY4BvwujT8BvCuL1INX9vVt+dfwcCvNb7f9q2RuSfrGvWu/sL2Nf3LX7pzvj4ENSGBPVarVd4fRkZFltjdmoMGiKO4IIWwIIWwoiuIOYDDzeOPoyMiyFLkum7WJCMDztrcrTTrIRuAQZ6NcK1utL4dWq/VZoC8BhqvV6l1lWb4YYxyLMY6VZflitVq9CxhOmL60hhCKeYiV7WMKIXw9jT1HpXw3c+bOAKzOjJubzebJrKQCQLPZPClpc7bP6rMYKtjXth2OMf7tIkr11Wz8oQDc1Fb09vY+kQw1YAuwJY2nbUluAnCWpKkaFl6IQIzxivaR2SYA89sJVK/Xp2x32R6w/a30DNjuqtfrU0ArYecDCEqgLqm94T0dEm9mBG7PxkdDlkBnkhebgIezNQ8nHcCZPL9ijE1Jf/bZZoPtzbavmqNZLbf9tSxq+yoduuJ+SZ+zXSZyBXCqU+d8fvC5yRUrV+0G2j3g2hDCLyXd/+Su3QdnvP/zCuH72LWsgf2k0oHlH2c2odlkxcpVEdgr6aDtjyb8x20/J+mA7T9I6rL9SWA5dne2/GdXLl58qNJh398An85yTMA+4DOz8Dgu6Zu2dwJXJ91ltm8Gbp7Fgb+EEB4aHhpq5CEtACqVyr3AC0AlPS8k3TSmQ2YPhhBuS/1/LpmS9JTtNTHGfwBU2uUALARotVqniqJYH2Pck85pfavVaufAwnQvnHc0McaDKVptebN94QAnJB0EdtjekydyZXqjs/0ZgLIs/w6sy8bnYGYJ63pgERKC05JutT1kOwITwL9tvzlzUQUYB+Zjs2DBgu6xsbGJZHstByZbezregcBXeCsEz1bnzXt5anLyzLq71zDLxTRdVgemdx0fv2e2w5thO5DbiqL4oKT3ZKpnpyYnz+SY2ZpTAPZmJfdIrVZbNBNUq9UW2X4kU+2dcf53Aj1pj2PA7y/6m1DS00A9za9uNBq7iqJYBuoGdRdFsazRaOzKSqye1rTbaa/tlbYrqXQP2X4FIA9/J1l39xrC0v7+w5IeB8XkwS1lWe6TGJAYKMty31tfO4qSHl/a3384I3CDpI+kzC4lnRfrue6GytEjR8oQwlY73gC0L4qlth/q0M1/LYWtR48cKQF6enrC6dOnVwGLEpnxnp7en4+O1i/tszzGOCTpPmB7ahb57QUwBWyXdF+McWg6MScmuoA8OX8xOlpvXGz422XYTsB/SnpA0h7bX5R0WzI9HUL4qe2XbI+dk3xl+V7gxoztD5jRI+YK/zkEEokx2/uB/RdzIfUtueqVN04cXwF8G3iHY3z9Urw/j8ClyhsnjrcS2Vv/J/8NLxT+/zqBTkcxU/cfEkyEAu3kmjAAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-box-edit {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4QfHjM1QAAAGRJREFUWMNjXLhsJcNAAiaGAQYsDAwM/+lsJ+OgCwGsLqMB+D8o08CoA0YdMOqAUQewDFQdMBoFIyoN/B/U7YFRB7DQIc7xyo9GwbBMA4xDqhxgISH1klXbDYk0QOseEeOgDgEAIS0JQleje6IAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-freehand-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADTElEQVRYCeWWTWwMYRjH/88721X1lZJIGxJxcEE4OOiBgzjXWh8TJKR76kWacOBGxdEJIdk4VChZI/phidRBHMRRIr7DSUiaSCRFRM3u88gz+o7Z6bBTdjmYZPf9eJ55fv/5zzvvDPC/H9QsA66Olo9Ga+/MdR+Ljm2/KQIULsz9FqItGdOfJKLhApLgVkiSCGODjWit7QpKWy+TNrFeXvzKVUT8NiTVaIgDcbiCFJ7GiT8WkARXAdYBK0Lbhi/CenArRNskuM7/tgNp4ArQ42dwjf3WY5gWTqC7O/NbNn2Xkfw/YwdSw/We14HP2IEZwX+y9cZ9SH0LmgFP7UCz4KkENBNeV0Cz4b8U8DfgKiDxMWwUXETqLvJpCQpXZfawbzS7t9v5pL19cHBwfja7YA0y/lyCM0+E5hv5+piZXwKYcF23as+37bTXsQVqgkL0p/34fHR7DcBtbetFsBmGDwMOJCggYG55yw7dMlk6DuC1Bdu2RsCU9TYWQq2IoGbsreZ5NzvEqfSBsIsIy8OTbcdgiRHeh4o8AFAEwDakbY2AaCCpH7V9aGhoUUUy3UyVbkPYFuYLDlUZH8XBpwxkK0Dbgxg5HcVi0ent7a0RULMIozaHBSMfF9b2SzdutFcFB2FkwMIJOG6qfteXOa1nHZ48tyefuwyfT9s6wtzZ3t7eZse2DR2I228TtHXzuWCx9g8MtK5cuHCZTH4tiHEOa4xFngvTyS8f35d6enomiCi4/foEXBkZaQuukChL4FYA2Whd7YcC4gEdW3CpdL3LtGAVCVYJywEyTpAuJKeMOKXZs/Bw947C50KhUFOG4cwz35cjWNBlHGeD53n3xsfHP/T19U1qciggar8Fa4I3PHobIotBWBtc2hSiChyZxVzM53Pv7FVH6Tp3uVy+g0r1ImD2GjIrQGYIxjnfuXTZGICS5k/bBwJoubwEFX4TLah9EXomJGMA3za+f9913Yl4TnzsDQ+vE6YTZOjHh4ngibstt1pzQwd04F0bPStEBpXqRoBeQ/AKghfBnOEKgS+Q7z91Xfdz/HGKg8Ox7z8iYD9z6wqTkZFgnvhMGP9VZ2or1XVkPM9z0mytSfVsHa1RLBZbLoyNzUnK+ydz3wC6I9x+lwbngwAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-poly-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjglo9eZgwAAAc5JREFUWMPt1zFrU1EUB/DfS4OmVTGDIChCP4BgnQXRxVHqIJUupp9AB8VBQcRBQUXIB9DWQoMRiXZzcnQSA34A7aAuHSJKkgo2LvfBrU3aJnlYkBy4vHcP557zP/9z3r33JdXa647N0kHSZd5Nn0rSxc8G3cXp85sMcnZZ8vge3osZ+l3vB8CWFA0iL14t79h210swAjACMAIwAjACkB90D/8/GchI9ve4nPwTBh5E9ws7OepzGWb9EddSn51Op9ZstadSg4VK1UKlKkmSDSMLALewiuNh/hVJq71Wxttmqz0dG88vPc+MgWP4grvYG3SLOBrZFFFrttqPe4HIDxh4GSei+98iSlusuYopXEAjBtEPA3tQwUpwluAbDm4TPJUz+BTW9l2Ce6G7L0X/Bw8D3T/7SKKIDzHg7QCcxjvcQAEtXAnrrg/RP0/DKPbqgcN4iVOR7gcO4dcQgRuoh7HSqwlP4n20m63jJu5n8MkWMYfP3UowhzdR8FU8w9iQwevBdyq3/27CMRzAE5yLuvsRLg+ZcR1nJ8YL81HWJUzGAPaFZwe/Q5MdyYDyNHgjzO90YyGHtVDncuiJchaHw8R4oREFV5qdiVmYLM3OgD9k5209/atmIAAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-point-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEiERGWPELgAAA4RJREFUWMO1lr1uG1cQhb9ztdRSP7AF1QxgwKlcuZSqRC9gWUUUINWqTh5AnaFOnVPEteQmRuhCURqWsSqqc9IolREXdEvQBElxtdw7KURSFEVKu4w8wAKLxdw9Z+bMnRmZGXfZ29//II8th4WwGVNyIoQLYB5vxA9Caq04iUd9A+7ZlsNC2I7TdSd2hZXMJKlnTqp9jtl/GBaqoyQ0noFKpUIzBicYYc+DEFpxkglc4oVJa5gvDn8v1xV2irG3FM4NSVwjUKlUaMcpJhCGmSEJQ6QGD8M5WnHCd8+f3QCXpPLx8WNwv0j6Bm9FMK7FJ3WBE+R/2t7c/GBmFvSBrzRTCsyTDjXrxUgEMtpxynJYmJoBJ4VAybwVARgvL7Oik0okCodnKpVKX7P0leiVMb0VvbJT+upznK4vh0GIeQwwQStJkHQD3MwsCALTJRG7Qrdrj5m/djgYaIa0hlkRdJk26XEgC9txurccBtVW3IudBImmZuACUP+ZlIDBt9FKcubYNTcAH/X0RYM1E7utJPlqe+uZzPxUcEkiSS4sTT95n15Mud0xWC0o2PAWOCdK3KYZlFxfM+tHOcnMzNr1es18ug+cgsVjP4yBU/Ppfrter1m/+l0+zYygML1xRVHU7TSb1cSzBzoBzszsH+AMdJJ49jrNZjWKou6wBnwOzcyndBpNbuueURR1Dw8Pq35p9cc5p/Dy9Dypt7jXrtdGwQECS9NPhr6Gq6txUzNigE6zydLK6lTw12/KT4FGFEUfJX2YJNONq5tVs4ODA7sD/DnwJ/BoADZuE3tHFs12dna6d4C/BI6AlbyzI8ii2TTw12/KK33gb2cdXsNZoAntbZC2SeO4c9592k/5eNQbiwvFd1kJuFGwLJr1wSPg/SwpvyFBHufOeXcFeAlE97U/uCxOY+P3b+Bn4B3Q+L8EdJfD4a+/AbC4UBzPxiPg3wlHZquB28Cn2IuR9x3gr3uV4DbwfvSDOvi4uFA8BDZmIRHkjHpS9Ht9iRqd8+5G3g05mAGcQbsdiX5QJ428G7Kygo8XYdb1/K4NWVmjzkNge2sz84bs+ELmpDDLtqWsNZBXgvmw8CTtpWVMT7x5YWBjLARnwZfKQNYN2U2LPvrh+5nBt7c2M2/It9bArCTKR8eZN+SJ13AScPnoODeRdqNenH+wul5w2gUr2WUjMFAt8bZ/0axX/wNnv4H8vTFb1QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-poly-edit {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gELFi46qJmxxAAABV9JREFUWMOdl19vFFUYxn9n9u9sCyylUIzWUoMQBAWCMdEEIt6xIRQSLIEKtvHe6AcA4yeQb7CAUNJy0daLeomJN8SEULAC2kBBapBKoLvbmdl/c14vdmY7u91tF95kknPOnHmf95znPc97Ro2OTeBbdjFDT3c32ZxVHUOE9kSMB0/m6ExuoJn1H+ur6Y+OTfD50SMN5168OgrAlyf7CfuD+z7+iDs3p8hkLUQ0iFQ/yFl5Nm/qonfHVva+s32Zw9GxCYILsZ08tpNfBhbs+1YN4OH9+7huGdECSBVfqUosbsllfmauBqiR+cCNwOr7AEo8pPHJnymXykhg5fUWjoQpl0vVvhZhbSzGoUOHqgBlt6B6uruj2Zy1E9jo0fhfeyL2x4Mnc8VErK0KUEOB64JSyptfG4RSytsJjUJVxw2lsFy3urL9nx1Qd25ObctkrVMi+jQivd7U2ZyV/3Hzpq7h3h1b/7p9Y0o8v8rwAbTWrGpSocN/FGDlbAI0Rl23PCBan0Ok158H9Ipwzi25A/Mzc9Gl/BYx/E4kYqC1NKRARNAaDCNUM27Z+Zr+ouXs0q4+LSLBHPYCFkTkC6uU39kwCdsS7WRKmaYUiAhdnZ3MPX2K4+QjQI+C94A93rMzm8ltMwyDeDzWjMZeEb2pYQDdW3vITU2jtUZ5QThOPgm8C7wP7J15OPsBsB3oWpGnVWisCeDS1VHj4vBI92+/3tgB7Ab2AruAXiDBK5oIOkhtkEYRNRuJhObrd8Dl9ewf4D5wG7hVLpen29vb5wzD+BrkbBMaL3d1dk5nsrnlFDTTFWAWmAZueWD3gCemGde2k2fw1Al1YXhEvjozoO49eczdqekrWmsc2zlrmvEKOGoW1GUjFLqSk2KpJrCLwyMCPAP+BO54QL8DM6YZX/ClsP9YnwKkXnIBP4jdIpJRpdJTCYdMwwi98KU0Hjc/dDILNyUcwTCWdOSMJ0TRmBktGRhLugu0xyLk7CIqVNm+0bGJptl1YXikD0grpY4Rjc4a8Fbgdab/6OGbAJeCUuyJnnHmZH9pbSyGuBXV8NUwlUpR1EWyixmSyTWEwqGlJ2Swbo2JXbAAfgDGgGQA9I1A9t1tlq0AxrXxn0ilUpw4fhQqYkH/sT41OTnJJwf2s6FjI5mshdYa7bqVR2uezr9MJmJt14FvGrh/O9D+e6UkM/xyCuCqEKCYnJyUTKFQrZDHjxzGshwWLQcRsOz8Hi85P23id0ug/XilAMLBmm4tPGdoaKjSH5+oAGrhwvBI9SjZTn4QSK9yenoD7dlrExPoJlXW8G8ytpNHxRKk02lGxsdRKFwXLNvx5yY94HQLGhGk4LFCYQSqaE0AwWM1eOoEbR0dKBSW7bC4mKuffxs4D/wCLKwQQPAUzIkslfp6cVomROWSolh0GjldAM4nzDi2k9/i5UAzC9aKfwNJ3zgJg9YEvN6+C7SHgKm69+sD7RfNnKTTaZRPQfAut4oFV//IS7gkcB34VlVo8kGzphlfB+DU+TfNGBpZtRastvrvARJmfMF28ge9sc2B9/PNnCilMIDwK6y8/ow/Ai4kvILTljAXvDvEvrqKSUs60KolzPjBxspavQD2tKqCAGF/Ba+xE/Wbilu54wZV8NEKF5fXzQHl/bh4hUsE0WAXSlDMYcQSrQXgCmsTseXHsJkNnjqBFGwKJaHsKlxtUHYVhbLCzr1kaOA4bcn1y1Swmb+iLpJKpVrfgdpfsiVVCYcgluwgnU7jEgJ4s5UkLFtWYyHyEg0/N1q1tmQH+YXnAMFr97Nmv3p+0QsHQRsF8qpBOE5+rb9Nkaj50tVQKjqh4OU3GNL/1/So3vuUgbAAAAAASUVORK5CYII=");\n}\n’),o.bk_tool_icon_box_select="bk-tool-icon-box-select",o.bk_tool_icon_box_zoom="bk-tool-icon-box-zoom",o.bk_tool_icon_zoom_in="bk-tool-icon-zoom-in",o.bk_tool_icon_zoom_out="bk-tool-icon-zoom-out",o.bk_tool_icon_help="bk-tool-icon-help",o.bk_tool_icon_hover="bk-tool-icon-hover",o.bk_tool_icon_crosshair="bk-tool-icon-crosshair",o.bk_tool_icon_lasso_select="bk-tool-icon-lasso-select",o.bk_tool_icon_pan="bk-tool-icon-pan",o.bk_tool_icon_xpan="bk-tool-icon-xpan",o.bk_tool_icon_ypan="bk-tool-icon-ypan",o.bk_tool_icon_range="bk-tool-icon-range",o.bk_tool_icon_polygon_select="bk-tool-icon-polygon-select",o.bk_tool_icon_redo="bk-tool-icon-redo",o.bk_tool_icon_reset="bk-tool-icon-reset",o.bk_tool_icon_save="bk-tool-icon-save",o.bk_tool_icon_tap_select="bk-tool-icon-tap-select",o.bk_tool_icon_undo="bk-tool-icon-undo",o.bk_tool_icon_wheel_pan="bk-tool-icon-wheel-pan",o.bk_tool_icon_wheel_zoom="bk-tool-icon-wheel-zoom",o.bk_tool_icon_box_edit="bk-tool-icon-box-edit",o.bk_tool_icon_freehand_draw="bk-tool-icon-freehand-draw",o.bk_tool_icon_poly_draw="bk-tool-icon-poly-draw",o.bk_tool_icon_point_draw="bk-tool-icon-point-draw",o.bk_tool_icon_poly_edit="bk-tool-icon-poly-edit"},n function _(o,l,g){Object.defineProperty(g,"__esModule",{value:!0});const n=o(1);o(67),n.__importStar(o(66)).styles.append(".bk-root .bk-logo {\n margin: 5px;\n position: relative;\n display: block;\n background-repeat: no-repeat;\n}\n.bk-root .bk-logo.bk-grey {\n filter: url(\"data:image/svg+xml;utf8,<svg xmlns=\\’http://www.w3.org/2000/svg\\’><filter id=\\’grayscale\\’><feColorMatrix type=\\’matrix\\’ values=\\’0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\\’/></filter></svg>#grayscale\");\n /* Firefox 10+, Firefox on Android /\n filter: gray;\n / IE6-9 /\n -webkit-filter: grayscale(100%);\n / Chrome 19+, Safari 6+, Safari 6+ iOS /\n}\n.bk-root .bk-logo-small {\n width: 20px;\n height: 20px;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAOkSURBVDiNjZRtaJVlGMd/1/08zzln5zjP1LWcU9N0NkN8m2CYjpgQYQXqSs0I84OLIC0hkEKoPtiH3gmKoiJDU7QpLgoLjLIQCpEsNJ1vqUOdO7ppbuec5+V+rj4ctwzd8IIbbi6u+8f1539dt3A78eXC7QizUF7gyV1fD1Yqg4JWz84yffhm0qkFqBogB9rM8tZdtwVsPUhWhGcFJngGeWrPzHm5oaMmkfEg1usvLFyc8jLRqDOMru7AyC8saQr7GG7f5fvDeH7Ej8CM66nIF+8yngt6HWaKh7k49Soy9nXurCi1o3qUbS3zWfrYeQDTB/Qj6kX6Ybhw4B+bOYoLKCC9H3Nu/leUTZ1JdRWkkn2ldcCamzrcf47KKXdAJllSlxAOkRgyHsGC/zRday5Qld9DyoM4/q/rUoy/CXh3jzOu3bHUVZeU+DEn8FInkPBFlu3+nW3Nw0mk6vCDiWg8CeJaxEwuHS3+z5RgY+YBR6V1Z1nxSOfoaPa4LASWxxdNp+VWTk7+4vzaou8v8PN+xo+KY2xsw6une2frhw05CTYOmQvsEhjhWjn0bmXPjpE1+kplmmkP3suftwTubK9Vq22qKmrBhpY4jvd5afdRA3wGjFAgcnTK2s4hY0/GPNIb0nErGMCRxWOOX64Z8RAC4oCXdklmEvcL8o0BfkNK4lUg9HTl+oPlQxdNo3Mg4Nv175e/1LDGzZen30MEjRUtmXSfiTVu1kK8W4txyV6BMKlbgk3lMwYCiusNy9fVfvvwMxv8Ynl6vxoByANLTWplvuj/nF9m2+PDtt1eiHPBr1oIfhCChQMBw6Aw0UulqTKZdfVvfG7VcfIqLG9bcldL/+pdWTLxLUy8Qq38heUIjh4XlzZxzQm19lLFlr8vdQ97rjZVOLf8nclzckbcD4wxXMidpX30sFd37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==);\n}\n.bk-root .bk-logo-notebook {\n display: inline-block;\n vertical-align: middle;\n margin-right: 5px;\n}\n"),g.bk_logo="bk-logo",g.bk_logo_notebook="bk-logo-notebook",g.bk_logo_small="bk-logo-small",g.bk_grey="bk-grey"},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});var s=this&&this.__rest||function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i};const n=t(183),a=t(179),o=t(185),r=t(78),l=t(244),h=t(141),_=t(148),d=t(142),u=t(281),c=t(14),p=t(96),g=t(282),m=t(68),b=t(70),f=t(285),w=t(8),v=t(9),y=t(24),x=t(187),O=t(190),z=t(286),S=t(191),M=t(85);class R extends x.Layoutable{constructor(){super(…arguments),this.min_border={left:0,top:0,right:0,bottom:0}}_measure(t){t=new x.Sizeable(t).bounded_to(this.sizing.size);const e=this.left_panel.measure({width:0,height:t.height}),i=Math.max(e.width,this.min_border.left),s=this.right_panel.measure({width:0,height:t.height}),n=Math.max(s.width,this.min_border.right),a=this.top_panel.measure({width:t.width,height:0}),o=Math.max(a.height,this.min_border.top),r=this.bottom_panel.measure({width:t.width,height:0}),l=Math.max(r.height,this.min_border.bottom),h=new x.Sizeable(t).shrink_by({left:i,right:n,top:o,bottom:l}),_=this.center_panel.measure(h);return{width:i+_.width+n,height:o+_.height+l,inner:{left:i,right:n,top:o,bottom:l},align:(()=>{const{width_policy:t,height_policy:e}=this.center_panel.sizing;return"fixed"!=t&&"fixed"!=e})()}}_set_geometry(t,e){super._set_geometry(t,e),this.center_panel.set_geometry(e);const i=this.left_panel.measure({width:0,height:t.height}),s=this.right_panel.measure({width:0,height:t.height}),n=this.top_panel.measure({width:t.width,height:0}),a=this.bottom_panel.measure({width:t.width,height:0}),{left:o,top:r,right:l,bottom:h}=e;this.top_panel.set_geometry(new M.BBox({left:o,right:l,bottom:r,height:n.height})),this.bottom_panel.set_geometry(new M.BBox({left:o,right:l,top:h,height:a.height})),this.left_panel.set_geometry(new M.BBox({top:r,bottom:h,right:o,width:i.width})),this.right_panel.set_geometry(new M.BBox({top:r,bottom:h,left:l,width:s.width}))}}i.PlotLayout=R,R.__name__="PlotLayout";class k extends l.LayoutDOMView{constructor(){super(…arguments),this._outer_bbox=new M.BBox,this._inner_bbox=new M.BBox,this._needs_paint=!0,this._needs_layout=!1}get is_paused(){return null!=this._is_paused&&0!==this._is_paused}get child_models(){return[]}pause(){null==this._is_paused?this._is_paused=1:this._is_paused+=1}unpause(t=!1){if(null==this._is_paused)throw new Error("wasn’t paused");this._is_paused-=1,0!=this._is_paused||t||this.request_paint()}request_render(){this.request_paint()}request_paint(){if(!this.is_paused){const t=this.throttled_paint();this._ready=this._ready.then(()=>t)}}request_layout(){this._needs_layout=!0,this.request_paint()}reset(){"standard"==this.model.reset_policy&&(this.clear_state(),this.reset_range(),this.reset_selection()),this.model.trigger_event(new u.Reset)}remove(){this.ui_event_bus.destroy(),p.remove_views(this.renderer_views),p.remove_views(this.tool_views),this.canvas_view.remove(),super.remove()}render(){super.render(),this.el.appendChild(this.canvas_view.el),this.canvas_view.render()}initialize(){this.pause(),super.initialize(),this.state_changed=new c.Signal0(this,"state_changed"),this.lod_started=!1,this.visuals=new m.Visuals(this.model),this._initial_state_info={selection:{},dimensions:{width:0,height:0}},this.visibility_callbacks=[],this.state={history:[],index:-1},this.canvas=new a.Canvas({use_hidpi:this.model.hidpi,output_backend:this.model.output_backend}),this.frame=new n.CartesianFrame(this.model.x_scale,this.model.y_scale,this.model.x_range,this.model.y_range,this.model.extra_x_ranges,this.model.extra_y_ranges),this.throttled_paint=f.throttle(()=>this.repaint(),1e3/60);const{title_location:t,title:e}=this.model;null!=t&&null!=e&&(this._title=e instanceof h.Title?e:new h.Title({text:e}));const{toolbar_location:i,toolbar:s}=this.model;null!=i&&null!=s&&(this._toolbar=new d.ToolbarPanel({toolbar:s}),s.toolbar_location=i),this.renderer_views={},this.tool_views={}}async lazy_initialize(){this.canvas_view=await p.build_view(this.canvas,{parent:this}),this.ui_event_bus=new g.UIEvents(this,this.model.toolbar,this.canvas_view.events_el),await this.build_renderer_views(),await this.build_tool_views(),this.update_dataranges(),this.unpause(!0),b.logger.debug("PlotView initialized")}_width_policy(){return null==this.model.frame_width?super._width_policy():"min"}_height_policy(){return null==this.model.frame_height?super._height_policy():"min"}_update_layout(){this.layout=new R,this.layout.set_sizing(this.box_sizing());const{frame_width:t,frame_height:e}=this.model;this.layout.center_panel=this.frame,this.layout.center_panel.set_sizing(Object.assign(Object.assign({},null!=t?{width_policy:"fixed",width:t}:{width_policy:"fit"}),null!=e?{height_policy:"fixed",height:e}:{height_policy:"fit"}));const i=v.copy(this.model.above),s=v.copy(this.model.below),n=v.copy(this.model.left),a=v.copy(this.model.right),o=t=>{switch(t){case"above":return i;case"below":return s;case"left":return n;case"right":return a}},{title_location:r,title:l}=this.model;null!=r&&null!=l&&o(r).push(this._title);const{toolbar_location:_,toolbar:u}=this.model;if(null!=_&&null!=u){const t=o(_);let e=!0;if(this.model.toolbar_sticky)for(let i=0;i<t.length;i++){const s=t[i];if(s instanceof h.Title){t[i]="above"==_||"below"==_?[s,this._toolbar]:[this._toolbar,s],e=!1;break}}e&&t.push(this._toolbar)}const c=(t,e)=>{const i=this.renderer_views[e.id];return i.layout=new z.SidePanel(t,i)},p=(t,e)=>{const i="above"==t||"below"==t,s=[];for(const n of e)if(w.isArray(n)){const e=n.map(e=>{const s=c(t,e);if(e instanceof d.ToolbarPanel){const t=i?"width_policy":"height_policy";s.set_sizing(Object.assign(Object.assign({},s.sizing),{[t]:"min"}))}return s});let a;i?(a=new S.Row(e),a.set_sizing({width_policy:"max",height_policy:"min"})):(a=new S.Column(e),a.set_sizing({width_policy:"min",height_policy:"max"})),a.absolute=!0,s.push(a)}else s.push(c(t,n));return s},g=null!=this.model.min_border?this.model.min_border:0;this.layout.min_border={left:null!=this.model.min_border_left?this.model.min_border_left:g,top:null!=this.model.min_border_top?this.model.min_border_top:g,right:null!=this.model.min_border_right?this.model.min_border_right:g,bottom:null!=this.model.min_border_bottom?this.model.min_border_bottom:g};const m=new O.VStack,b=new O.VStack,f=new O.HStack,y=new O.HStack;m.children=v.reversed(p("above",i)),b.children=p("below",s),f.children=v.reversed(p("left",n)),y.children=p("right",a),m.set_sizing({width_policy:"fit",height_policy:"min"}),b.set_sizing({width_policy:"fit",height_policy:"min"}),f.set_sizing({width_policy:"min",height_policy:"fit"}),y.set_sizing({width_policy:"min",height_policy:"fit"}),this.layout.top_panel=m,this.layout.bottom_panel=b,this.layout.left_panel=f,this.layout.right_panel=y}get axis_views(){const t=[];for(const e in this.renderer_views){const i=this.renderer_views[e];i instanceof _.AxisView&&t.push(i)}return t}set_cursor(t="default"){this.canvas_view.el.style.cursor=t}set_toolbar_visibility(t){for(const e of this.visibility_callbacks)e(t)}prepare_webgl(t,e){const{webgl:i}=this.canvas_view;if(null!=i){const{width:s,height:n}=this.canvas_view.bbox,{pixel_ratio:a}=this.canvas_view.model;i.canvas.width=a*s,i.canvas.height=a*n;const{gl:o}=i;o.enable(o.SCISSOR_TEST);const[r,l,h,_]=e,{xview:d,yview:u}=this.canvas_view.bbox,c=d.compute(r),p=u.compute(l+_);o.scissor(t*c,t*p,t*h,t*_),o.enable(o.BLEND),o.blendFuncSeparate(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA,o.ONE_MINUS_DST_ALPHA,o.ONE)}}clear_webgl(){const{webgl:t}=this.canvas_view;if(null!=t){const{gl:e,canvas:i}=t;e.viewport(0,0,i.width,i.height),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT||e.DEPTH_BUFFER_BIT)}}blit_webgl(){const{ctx:t,webgl:e}=this.canvas_view;if(null!=e&&(b.logger.debug("drawing with WebGL"),t.restore(),t.drawImage(e.canvas,0,0),t.save(),this.model.hidpi)){const e=this.canvas.pixel_ratio;t.scale(e,e),t.translate(.5,.5)}}update_dataranges(){const t={},e={};let i=!1;for(const t of y.values(this.frame.x_ranges).concat(y.values(this.frame.y_ranges)))t instanceof o.DataRange1d&&"log"==t.scale_hint&&(i=!0);for(const s in this.renderer_views){const n=this.renderer_views[s];if(n instanceof r.GlyphRendererView){const a=n.glyph.bounds();if(null!=a&&(t[s]=a),i){const t=n.glyph.log_bounds();null!=t&&(e[s]=t)}}}let s=!1,n=!1;const{width:a,height:l}=this.frame.bbox;let h;!1!==this.model.match_aspect&&0!=a&&0!=l&&(h=1/this.model.aspect_scale*(a/l));for(const i of y.values(this.frame.x_ranges)){if(i instanceof o.DataRange1d){const n="log"==i.scale_hint?e:t;i.update(n,0,this.model.id,h),i.follow&&(s=!0)}null!=i.bounds&&(n=!0)}for(const i of y.values(this.frame.y_ranges)){if(i instanceof o.DataRange1d){const n="log"==i.scale_hint?e:t;i.update(n,1,this.model.id,h),i.follow&&(s=!0)}null!=i.bounds&&(n=!0)}if(s&&n){b.logger.warn("Follow enabled so bounds are unset.");for(const t of y.values(this.frame.x_ranges))t.bounds=null;for(const t of y.values(this.frame.y_ranges))t.bounds=null}this.range_update_timestamp=Date.now()}map_to_screen(t,e,i="default",s="default"){return this.frame.map_to_screen(t,e,i,s)}push_state(t,e){const{history:i,index:s}=this.state,n=null!=i[s]?i[s].info:{},a=Object.assign(Object.assign(Object.assign({},this._initial_state_info),n),e);this.state.history=this.state.history.slice(0,this.state.index+1),this.state.history.push({type:t,info:a}),this.state.index=this.state.history.length-1,this.state_changed.emit()}clear_state(){this.state={history:[],index:-1},this.state_changed.emit()}can_undo(){return this.state.index>=0}can_redo(){return this.state.index<this.state.history.length-1}undo(){this.can_undo()&&(this.state.index-=1,this._do_state_change(this.state.index),this.state_changed.emit())}redo(){this.can_redo()&&(this.state.index+=1,this._do_state_change(this.state.index),this.state_changed.emit())}_do_state_change(t){const e=null!=this.state.history[t]?this.state.history[t].info:this._initial_state_info;null!=e.range&&this.update_range(e.range),null!=e.selection&&this.update_selection(e.selection)}get_selection(){const t={};for(const e of this.model.renderers)if(e instanceof r.GlyphRenderer){const{selected:i}=e.data_source;t[e.id]=i}return t}update_selection(t){for(const e of this.model.renderers){if(!(e instanceof r.GlyphRenderer))continue;const i=e.data_source;null!=t?null!=t[e.id]&&i.selected.update(t[e.id],!0,!1):i.selection_manager.clear()}}reset_selection(){this.update_selection(null)}_update_ranges_together(t){let e=1;for(const[i,s]of t)e=Math.min(e,this._get_weight_to_constrain_interval(i,s));if(e<1)for(const[i,s]of t)s.start=e*s.start+(1-e)*i.start,s.end=e*s.end+(1-e)*i.end}_update_ranges_individually(t,e,i,s){let n=!1;for(const[s,a]of t){if(!i){const t=this._get_weight_to_constrain_interval(s,a);t<1&&(a.start=t*a.start+(1-t)*s.start,a.end=t*a.end+(1-t)*s.end)}if(null!=s.bounds&&"auto"!=s.bounds){const[t,o]=s.bounds,r=Math.abs(a.end-a.start);s.is_reversed?(null!=t&&t>=a.end&&(n=!0,a.end=t,(e||i)&&(a.start=t+r)),null!=o&&o<=a.start&&(n=!0,a.start=o,(e||i)&&(a.end=o-r))):(null!=t&&t>=a.start&&(n=!0,a.start=t,(e||i)&&(a.end=t+r)),null!=o&&o<=a.end&&(n=!0,a.end=o,(e||i)&&(a.start=o-r)))}}if(!(i&&n&&s))for(const[e,i]of t)e.have_updated_interactively=!0,e.start==i.start&&e.end==i.end||e.setv(i)}_get_weight_to_constrain_interval(t,e){const{min_interval:i}=t;let{max_interval:s}=t;if(null!=t.bounds&&"auto"!=t.bounds){const[e,i]=t.bounds;if(null!=e&&null!=i){const t=Math.abs(i-e);s=null!=s?Math.min(s,t):t}}let n=1;if(null!=i||null!=s){const a=Math.abs(t.end-t.start),o=Math.abs(e.end-e.start);i>0&&o<i&&(n=(a-i)/(a-o)),s>0&&o>s&&(n=(s-a)/(o-a)),n=Math.max(0,Math.min(1,n))}return n}update_range(t,e=!1,i=!1,s=!0){this.pause();const{x_ranges:n,y_ranges:a}=this.frame;if(null==t){for(const t in n){n[t].reset()}for(const t in a){a[t].reset()}this.update_dataranges()}else{const o=[];for(const e in n){const i=n[e];o.push([i,t.xrs[e]])}for(const e in a){const i=a[e];o.push([i,t.yrs[e]])}i&&this._update_ranges_together(o),this._update_ranges_individually(o,e,i,s)}this.unpause()}reset_range(){this.update_range(null)}_invalidate_layout(){(()=>{for(const t of this.model.side_panels){if(this.renderer_views[t.id].layout.has_size_changed())return!0}return!1})()&&this.root.compute_layout()}get_renderer_views(){return this.computed_renderers.map(t=>this.renderer_views[t.id])}async build_renderer_views(){this.computed_renderers=[];const{above:t,below:e,left:i,right:s,center:n,renderers:a}=this.model;this.computed_renderers.push(…t,…e,…i,…s,…n,…a),null!=this._title&&this.computed_renderers.push(this._title),null!=this._toolbar&&this.computed_renderers.push(this._toolbar);for(const t of this.model.toolbar.tools)null!=t.overlay&&this.computed_renderers.push(t.overlay),this.computed_renderers.push(…t.synthetic_renderers);await p.build_views(this.renderer_views,this.computed_renderers,{parent:this})}async build_tool_views(){const t=this.model.toolbar.tools;(await p.build_views(this.tool_views,t,{parent:this})).map(t=>this.ui_event_bus.register_tool(t))}connect_signals(){super.connect_signals();const{x_ranges:t,y_ranges:e}=this.frame;for(const e in t){const i=t[e];this.connect(i.change,()=>{this._needs_layout=!0,this.request_paint()})}for(const t in e){const i=e[t];this.connect(i.change,()=>{this._needs_layout=!0,this.request_paint()})}const{above:i,below:s,left:n,right:a,center:o,renderers:r}=this.model.properties;this.on_change([i,s,n,a,o,r],async()=>await this.build_renderer_views()),this.connect(this.model.toolbar.properties.tools.change,async()=>{await this.build_renderer_views(),await this.build_tool_views()}),this.connect(this.model.change,()=>this.request_paint()),this.connect(this.model.reset,()=>this.reset())}set_initial_range(){let t=!0;const{x_ranges:e,y_ranges:i}=this.frame,s={},n={};for(const i in e){const{start:n,end:a}=e[i];if(null==n||null==a||w.isStrictNaN(n+a)){t=!1;break}s[i]={start:n,end:a}}if(t)for(const e in i){const{start:s,end:a}=i[e];if(null==s||null==a||w.isStrictNaN(s+a)){t=!1;break}n[e]={start:s,end:a}}t?(this._initial_state_info.range={xrs:s,yrs:n},b.logger.debug("initial ranges set")):b.logger.warn("could not set initial ranges")}has_finished(){if(!super.has_finished())return!1;for(const t in this.renderer_views){if(!this.renderer_views[t].has_finished())return!1}return!0}after_layout(){if(super.after_layout(),this._needs_layout=!1,this.model.setv({inner_width:Math.round(this.frame._width.value),inner_height:Math.round(this.frame._height.value),outer_width:Math.round(this.layout._width.value),outer_height:Math.round(this.layout._height.value)},{no_change:!0}),!1!==this.model.match_aspect&&(this.pause(),this.update_dataranges(),this.unpause(!0)),!this._outer_bbox.equals(this.layout.bbox)){const{width:t,height:e}=this.layout.bbox;this.canvas_view.prepare_canvas(t,e),this._outer_bbox=this.layout.bbox,this._needs_paint=!0}this._inner_bbox.equals(this.frame.inner_bbox)||(this._inner_bbox=this.layout.inner_bbox,this._needs_paint=!0),this._needs_paint&&(this._needs_paint=!1,this.paint())}repaint(){this._needs_layout&&this._invalidate_layout(),this.paint()}paint(){if(this.is_paused)return;b.logger.trace(`PlotView.paint() for ${this.model.id}`);const{document:t}=this.model;if(null!=t){const e=t.interactive_duration();e>=0&&e<this.model.lod_interval?setTimeout(()=>{t.interactive_duration()>this.model.lod_timeout&&t.interactive_stop(this.model),this.request_paint()},this.model.lod_timeout):t.interactive_stop(this.model)}for(const t in this.renderer_views){const e=this.renderer_views[t];if(null==this.range_update_timestamp||e instanceof r.GlyphRendererView&&e.set_data_timestamp>this.range_update_timestamp){this.update_dataranges();break}}const{ctx:e}=this.canvas_view,i=this.canvas.pixel_ratio;e.save(),this.model.hidpi&&(e.scale(i,i),e.translate(.5,.5));const s=[this.frame._left.value,this.frame._top.value,this.frame._width.value,this.frame._height.value];if(this._map_hook(e,s),this._paint_empty(e,s),this.prepare_webgl(i,s),this.clear_webgl(),this.visuals.outline_line.doit){e.save(),this.visuals.outline_line.set_value(e);let[t,i,n,a]=s;t+n==this.layout._width.value&&(n-=1),i+a==this.layout._height.value&&(a-=1),e.strokeRect(t,i,n,a),e.restore()}this._paint_levels(e,["image","underlay","glyph"],s,!0),this._paint_levels(e,["annotation"],s,!1),this._paint_levels(e,["overlay"],s,!1),null==this._initial_state_info.range&&this.set_initial_range(),e.restore()}_paint_levels(t,e,i,s){for(const n of e)for(const e of this.computed_renderers){if(e.level!=n)continue;const a=this.renderer_views[e.id];t.save(),(s||a.needs_clip)&&(t.beginPath(),t.rect(…i),t.clip()),a.render(),t.restore(),a.has_webgl&&(this.blit_webgl(),this.clear_webgl())}}_map_hook(t,e){}_paint_empty(t,e){const[i,s,n,a]=[0,0,this.layout._width.value,this.layout._height.value],[o,r,l,h]=e;t.clearRect(i,s,n,a),this.visuals.border_fill.doit&&(this.visuals.border_fill.set_value(t),t.fillRect(i,s,n,a),t.clearRect(o,r,l,h)),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(o,r,l,h))}save(t){this.canvas_view.save(t)}serializable_state(){const t=super.serializable_state(),{children:e}=t,i=s(t,["children"]),n=this.get_renderer_views().map(t=>t.serializable_state()).filter(t=>"bbox"in t);return Object.assign(Object.assign({},i),{children:[…e,…n]})}}i.PlotView=k,k.__name__="PlotView"},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});var n=this&&this.__decorate||function(e,t,s,n){var _,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,n);else for(var r=e.length-1;r>=0;r–)(_=e[r])&&(o=(a<3?_(o):a>3?_(t,s,o):_(t,s))||o);return a>3&&o&&Object.defineProperty(t,s,o),o};function _(e){return function(t){t.prototype.event_name=e}}class a{constructor(){this.origin=null}to_json(){const{event_name:e}=this;return{event_name:e,event_values:this._to_json()}}_to_json(){return{model:this.origin}}}s.BokehEvent=a,a.__name__="BokehEvent";let o=class extends a{};s.ButtonClick=o,o.__name__="ButtonClick",s.ButtonClick=o=n([_("button_click")],o);let r=class extends a{constructor(e){super(),this.item=e}_to_json(){const{item:e}=this;return Object.assign(Object.assign({},super._to_json()),{item:e})}};s.MenuItemClick=r,r.__name__="MenuItemClick",s.MenuItemClick=r=n([_("menu_item_click")],r);class c extends a{}s.UIEvent=c,c.__name__="UIEvent";let i=class extends c{};s.LODStart=i,i.__name__="LODStart",s.LODStart=i=n([_("lodstart")],i);let l=class extends c{};s.LODEnd=l,l.__name__="LODEnd",s.LODEnd=l=n([_("lodend")],l);let u=class extends c{constructor(e,t){super(),this.geometry=e,this.final=t}_to_json(){const{geometry:e,final:t}=this;return Object.assign(Object.assign({},super._to_json()),{geometry:e,final:t})}};s.SelectionGeometry=u,u.__name__="SelectionGeometry",s.SelectionGeometry=u=n([_("selectiongeometry")],u);let h=class extends c{};s.Reset=h,h.__name__="Reset",s.Reset=h=n([_("reset")],h);class d extends c{constructor(e,t,s,n){super(),this.sx=e,this.sy=t,this.x=s,this.y=n}_to_json(){const{sx:e,sy:t,x:s,y:n}=this;return Object.assign(Object.assign({},super._to_json()),{sx:e,sy:t,x:s,y:n})}}s.PointEvent=d,d.__name__="PointEvent";let m=class extends d{constructor(e,t,s,n,_,a){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.delta_x=_,this.delta_y=a}_to_json(){const{delta_x:e,delta_y:t}=this;return Object.assign(Object.assign({},super._to_json()),{delta_x:e,delta_y:t})}};s.Pan=m,m.__name__="Pan",s.Pan=m=n([_("pan")],m);let p=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.scale=_}_to_json(){const{scale:e}=this;return Object.assign(Object.assign({},super._to_json()),{scale:e})}};s.Pinch=p,p.__name__="Pinch",s.Pinch=p=n([_("pinch")],p);let x=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.rotation=_}_to_json(){const{rotation:e}=this;return Object.assign(Object.assign({},super._to_json()),{rotation:e})}};s.Rotate=x,x.__name__="Rotate",s.Rotate=x=n([_("rotate")],x);let j=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.delta=_}_to_json(){const{delta:e}=this;return Object.assign(Object.assign({},super._to_json()),{delta:e})}};s.MouseWheel=j,j.__name__="MouseWheel",s.MouseWheel=j=n([_("wheel")],j);let y=class extends d{};s.MouseMove=y,y.__name__="MouseMove",s.MouseMove=y=n([_("mousemove")],y);let P=class extends d{};s.MouseEnter=P,P.__name__="MouseEnter",s.MouseEnter=P=n([_("mouseenter")],P);let O=class extends d{};s.MouseLeave=O,O.__name__="MouseLeave",s.MouseLeave=O=n([_("mouseleave")],O);let b=class extends d{};s.Tap=b,b.__name__="Tap",s.Tap=b=n([_("tap")],b);let g=class extends d{};s.DoubleTap=g,g.__name__="DoubleTap",s.DoubleTap=g=n([_("doubletap")],g);let v=class extends d{};s.Press=v,v.__name__="Press",s.Press=v=n([_("press")],v);let E=class extends d{};s.PressUp=E,E.__name__="PressUp",s.PressUp=E=n([_("pressup")],E);let M=class extends d{};s.PanStart=M,M.__name__="PanStart",s.PanStart=M=n([_("panstart")],M);let f=class extends d{};s.PanEnd=f,f.__name__="PanEnd",s.PanEnd=f=n([_("panend")],f);let R=class extends d{};s.PinchStart=R,R.__name__="PinchStart",s.PinchStart=R=n([_("pinchstart")],R);let S=class extends d{};s.PinchEnd=S,S.__name__="PinchEnd",s.PinchEnd=S=n([_("pinchend")],S);let k=class extends d{};s.RotateStart=k,k.__name__="RotateStart",s.RotateStart=k=n([_("rotatestart")],k);let D=class extends d{};s.RotateEnd=D,D.__name__="RotateEnd",s.RotateEnd=D=n([_("rotateend")],D)},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),i=n.__importDefault(t(283)),r=t(14),a=t(70),h=t(66),_=t(284),o=t(9),c=t(24),l=t(8),p=t(101),u=n.__importStar(t(281));class d{constructor(t,e,s){this.plot_view=t,this.toolbar=e,this.hit_area=s,this.pan_start=new r.Signal(this,"pan:start"),this.pan=new r.Signal(this,"pan"),this.pan_end=new r.Signal(this,"pan:end"),this.pinch_start=new r.Signal(this,"pinch:start"),this.pinch=new r.Signal(this,"pinch"),this.pinch_end=new r.Signal(this,"pinch:end"),this.rotate_start=new r.Signal(this,"rotate:start"),this.rotate=new r.Signal(this,"rotate"),this.rotate_end=new r.Signal(this,"rotate:end"),this.tap=new r.Signal(this,"tap"),this.doubletap=new r.Signal(this,"doubletap"),this.press=new r.Signal(this,"press"),this.pressup=new r.Signal(this,"pressup"),this.move_enter=new r.Signal(this,"move:enter"),this.move=new r.Signal(this,"move"),this.move_exit=new r.Signal(this,"move:exit"),this.scroll=new r.Signal(this,"scroll"),this.keydown=new r.Signal(this,"keydown"),this.keyup=new r.Signal(this,"keyup"),this.hammer=new i.default(this.hit_area,{touchAction:"auto",inputClass:i.default.TouchMouseInput}),this._configure_hammerjs(),this.hit_area.addEventListener("mousemove",t=>this._mouse_move(t)),this.hit_area.addEventListener("mouseenter",t=>this._mouse_enter(t)),this.hit_area.addEventListener("mouseleave",t=>this._mouse_exit(t)),this.hit_area.addEventListener("wheel",t=>this._mouse_wheel(t)),document.addEventListener("keydown",this),document.addEventListener("keyup",this)}destroy(){this.hammer.destroy(),document.removeEventListener("keydown",this),document.removeEventListener("keyup",this)}handleEvent(t){"keydown"==t.type?this._key_down(t):"keyup"==t.type&&this._key_up(t)}_configure_hammerjs(){this.hammer.get("doubletap").recognizeWith("tap"),this.hammer.get("tap").requireFailure("doubletap"),this.hammer.get("doubletap").dropRequireFailure("tap"),this.hammer.on("doubletap",t=>this._doubletap(t)),this.hammer.on("tap",t=>this._tap(t)),this.hammer.on("press",t=>this._press(t)),this.hammer.on("pressup",t=>this._pressup(t)),this.hammer.get("pan").set({direction:i.default.DIRECTION_ALL}),this.hammer.on("panstart",t=>this._pan_start(t)),this.hammer.on("pan",t=>this._pan(t)),this.hammer.on("panend",t=>this._pan_end(t)),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("pinchstart",t=>this._pinch_start(t)),this.hammer.on("pinch",t=>this._pinch(t)),this.hammer.on("pinchend",t=>this._pinch_end(t)),this.hammer.get("rotate").set({enable:!0}),this.hammer.on("rotatestart",t=>this._rotate_start(t)),this.hammer.on("rotate",t=>this._rotate(t)),this.hammer.on("rotateend",t=>this._rotate_end(t))}register_tool(t){const e=t.model.event_type;null!=e&&(l.isString(e)?this._register_tool(t,e):e.forEach((e,s)=>this._register_tool(t,e,s<1)))}_register_tool(t,e,s=!0){const n=t,{id:i}=n.model,r=t=>e=>{e.id==i&&t(e.e)},h=t=>e=>{t(e.e)};switch(e){case"pan":null!=n._pan_start&&n.connect(this.pan_start,r(n._pan_start.bind(n))),null!=n._pan&&n.connect(this.pan,r(n._pan.bind(n))),null!=n._pan_end&&n.connect(this.pan_end,r(n._pan_end.bind(n)));break;case"pinch":null!=n._pinch_start&&n.connect(this.pinch_start,r(n._pinch_start.bind(n))),null!=n._pinch&&n.connect(this.pinch,r(n._pinch.bind(n))),null!=n._pinch_end&&n.connect(this.pinch_end,r(n._pinch_end.bind(n)));break;case"rotate":null!=n._rotate_start&&n.connect(this.rotate_start,r(n._rotate_start.bind(n))),null!=n._rotate&&n.connect(this.rotate,r(n._rotate.bind(n))),null!=n._rotate_end&&n.connect(this.rotate_end,r(n._rotate_end.bind(n)));break;case"move":null!=n._move_enter&&n.connect(this.move_enter,r(n._move_enter.bind(n))),null!=n._move&&n.connect(this.move,r(n._move.bind(n))),null!=n._move_exit&&n.connect(this.move_exit,r(n._move_exit.bind(n)));break;case"tap":null!=n._tap&&n.connect(this.tap,r(n._tap.bind(n)));break;case"press":null!=n._press&&n.connect(this.press,r(n._press.bind(n))),null!=n._pressup&&n.connect(this.pressup,r(n._pressup.bind(n)));break;case"scroll":null!=n._scroll&&n.connect(this.scroll,r(n._scroll.bind(n)));break;default:throw new Error(`unsupported event_type: ${e}`)}s&&(null!=n._doubletap&&n.connect(this.doubletap,h(n._doubletap.bind(n))),null!=n._keydown&&n.connect(this.keydown,h(n._keydown.bind(n))),null!=n._keyup&&n.connect(this.keyup,h(n._keyup.bind(n))),p.is_mobile&&null!=n._scroll&&"pinch"==e&&(a.logger.debug("Registering scroll on touch screen"),n.connect(this.scroll,r(n._scroll.bind(n)))))}_hit_test_renderers(t,e){const s=this.plot_view.get_renderer_views();for(const n of o.reversed(s)){const{level:s}=n.model;if(("annotation"==s||"overlay"==s)&&null!=n.interactive_hit&&n.interactive_hit(t,e))return n}return null}_hit_test_frame(t,e){return this.plot_view.frame.bbox.contains(t,e)}_hit_test_canvas(t,e){return this.plot_view.layout.bbox.contains(t,e)}_trigger(t,e,s){const n=this.toolbar.gestures,i=t.name.split(":")[0],r=this._hit_test_renderers(e.sx,e.sy),a=this._hit_test_canvas(e.sx,e.sy);switch(i){case"move":{const s=n[i].active;null!=s&&this.trigger(t,e,s.id);const h=this.toolbar.inspectors.filter(t=>t.active);let _="default";null!=r?(_=r.cursor(e.sx,e.sy)||_,c.isEmpty(h)||(t=this.move_exit)):this._hit_test_frame(e.sx,e.sy)&&(c.isEmpty(h)||(_="crosshair")),this.plot_view.set_cursor(_),this.plot_view.set_toolbar_visibility(a),h.map(s=>this.trigger(t,e,s.id));break}case"tap":{const{target:a}=s;if(null!=a&&a!=this.hit_area)return;null!=r&&null!=r.on_hit&&r.on_hit(e.sx,e.sy);const h=n[i].active;null!=h&&this.trigger(t,e,h.id);break}case"scroll":{const i=n[p.is_mobile?"pinch":"scroll"].active;null!=i&&(s.preventDefault(),s.stopPropagation(),this.trigger(t,e,i.id));break}case"pan":{const r=n[i].active;null!=r&&(s.preventDefault(),this.trigger(t,e,r.id));break}default:{const s=n[i].active;null!=s&&this.trigger(t,e,s.id)}}this._trigger_bokeh_event(e)}trigger(t,e,s=null){t.emit({id:s,e})}_trigger_bokeh_event(t){const e=(()=>{const e=this.plot_view.frame.xscales.default,s=this.plot_view.frame.yscales.default,{sx:n,sy:i}=t,r=e.invert(n),a=s.invert(i);switch(t.type){case"wheel":return new u.MouseWheel(n,i,r,a,t.delta);case"mousemove":return new u.MouseMove(n,i,r,a);case"mouseenter":return new u.MouseEnter(n,i,r,a);case"mouseleave":return new u.MouseLeave(n,i,r,a);case"tap":return new u.Tap(n,i,r,a);case"doubletap":return new u.DoubleTap(n,i,r,a);case"press":return new u.Press(n,i,r,a);case"pressup":return new u.PressUp(n,i,r,a);case"pan":return new u.Pan(n,i,r,a,t.deltaX,t.deltaY);case"panstart":return new u.PanStart(n,i,r,a);case"panend":return new u.PanEnd(n,i,r,a);case"pinch":return new u.Pinch(n,i,r,a,t.scale);case"pinchstart":return new u.PinchStart(n,i,r,a);case"pinchend":return new u.PinchEnd(n,i,r,a);case"rotate":return new u.Rotate(n,i,r,a,t.rotation);case"rotatestart":return new u.RotateStart(n,i,r,a);case"rotateend":return new u.RotateEnd(n,i,r,a);default:return}})();null!=e&&this.plot_view.model.trigger_event(e)}_get_sxy(t){const{pageX:e,pageY:s}=function(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}(t)?(0!=t.touches.length?t.touches:t.changedTouches)[0]:t,{left:n,top:i}=h.offset(this.hit_area);return{sx:e-n,sy:s-i}}_pan_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{deltaX:t.deltaX,deltaY:t.deltaY,shiftKey:t.srcEvent.shiftKey})}_pinch_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{scale:t.scale,shiftKey:t.srcEvent.shiftKey})}_rotate_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{rotation:t.rotation,shiftKey:t.srcEvent.shiftKey})}_tap_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{shiftKey:t.srcEvent.shiftKey})}_move_event(t){return Object.assign({type:t.type},this._get_sxy(t))}_scroll_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t)),{delta:_.getDeltaY(t)})}_key_event(t){return{type:t.type,keyCode:t.keyCode}}_pan_start(t){const e=this._pan_event(t);e.sx-=t.deltaX,e.sy-=t.deltaY,this._trigger(this.pan_start,e,t.srcEvent)}_pan(t){this._trigger(this.pan,this._pan_event(t),t.srcEvent)}_pan_end(t){this._trigger(this.pan_end,this._pan_event(t),t.srcEvent)}_pinch_start(t){this._trigger(this.pinch_start,this._pinch_event(t),t.srcEvent)}_pinch(t){this._trigger(this.pinch,this._pinch_event(t),t.srcEvent)}_pinch_end(t){this._trigger(this.pinch_end,this._pinch_event(t),t.srcEvent)}_rotate_start(t){this._trigger(this.rotate_start,this._rotate_event(t),t.srcEvent)}_rotate(t){this._trigger(this.rotate,this._rotate_event(t),t.srcEvent)}_rotate_end(t){this._trigger(this.rotate_end,this._rotate_event(t),t.srcEvent)}_tap(t){this._trigger(this.tap,this._tap_event(t),t.srcEvent)}_doubletap(t){const e=this._tap_event(t);this._trigger_bokeh_event(e),this.trigger(this.doubletap,e)}_press(t){this._trigger(this.press,this._tap_event(t),t.srcEvent)}_pressup(t){this._trigger(this.pressup,this._tap_event(t),t.srcEvent)}_mouse_enter(t){this._trigger(this.move_enter,this._move_event(t),t)}_mouse_move(t){this._trigger(this.move,this._move_event(t),t)}_mouse_exit(t){this._trigger(this.move_exit,this._move_event(t),t)}_mouse_wheel(t){this._trigger(this.scroll,this._scroll_event(t),t)}_key_down(t){this.trigger(this.keydown,this._key_event(t))}_key_up(t){this.trigger(this.keyup,this._key_event(t))}}s.UIEvents=d,d.__name__="UIEvents"},n function _(t,e,n){n /! Hammer.JS - v2.0.7 - 2016-04-22n * http://hammerjs.github.io/n n * Copyright (c) 2016 Jorik Tangelder;n * Licensed under the MIT license */n !function(t,n,i,r){"use strict";var s,o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),h=Math.round,u=Math.abs,c=Date.now;function l(t,e,n){return setTimeout(y(t,n),e)}function p(t,e,n){return!!Array.isArray(t)&&(f(t,n[e],n),!0)}function f(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function v(e,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,r,i),e.apply(this,arguments)}}s="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var d=v((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use assign."),m=v((function(t,e){return d(t,e,!0)}),"merge","Use assign.");function g(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&s(i,n)}function y(t,e){return function(){return t.apply(e,arguments)}}function T(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function E(t,e){return void 0===t?e:t}function I(t,e,n){f(S(e),(function(e){t.addEventListener(e,n,!1)}))}function A(t,e,n){f(S(e),(function(e){t.removeEventListener(e,n,!1)}))}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function C(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function b(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];b(r,o)<0&&i.push(t[s]),r[s]=o,s++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function D(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<o.length;){if((i=(n=o[s])?n+r:e)in t)return i;s++}}var w=1;function O(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var R="ontouchstart"in t,M=void 0!==D(t,"PointerEvent"),z=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N=["x","y"],X=["clientX","clientY"];function Y(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){T(t.options.enable,[t])&&n.handler(e)},this.init()}function F(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=W(e));r>1&&!n.firstMultiple?n.firstMultiple=W(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,h=e.center=q(i);e.timeStamp=c(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=U(a,h),e.distance=L(a,h),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=H(e.deltaX,e.deltaY);var l=k(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=u(l.x)>u(l.y)?l.x:l.y,e.scale=o?(p=o.pointers,f=i,L(f[0],f[1],X)/L(p[0],p[1],X)):1,e.rotation=o?function(t,e){return U(e[1],e[0],X)+U(t[1],t[0],X)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,o=t.lastInterval||e,a=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(a>25||void 0===o.velocity)){var h=e.deltaX-o.deltaX,c=e.deltaY-o.deltaY,l=k(a,h,c);i=l.x,r=l.y,n=u(l.x)>u(l.y)?l.x:l.y,s=H(h,c),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var p,f;var v=t.element;_(e.srcEvent.target,v)&&(v=e.srcEvent.target);e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:e,center:q(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:h(n/e),y:h(i/e)}}function k(t,e,n){return{x:e/t||0,y:n/t||0}}function H(t,e){return t===e?1:u(t)>=u(e)?t<0?2:4:e<0?8:16}function L(t,e,n){n||(n=N);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function U(t,e,n){n||(n=N);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}Y.prototype={handler:function(){},init:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(O(this.element),this.evWin,this.domHandler)}};var V={mousedown:1,mousemove:2,mouseup:4};function j(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,Y.apply(this,arguments)}g(j,Y,{handler:function(t){var e=V[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var G={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},B="pointerdown",$="pointermove pointerup pointercancel";function J(){this.evEl=B,this.evWin=$,Y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(B="MSPointerDown",$="MSPointerMove MSPointerUp MSPointerCancel"),g(J,Y,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=G[i],s=Z[t.pointerType]||t.pointerType,o="touch"==s,a=b(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var K={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Q(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Y.apply(this,arguments)}function tt(t,e){var n=x(t.touches),i=x(t.changedTouches);return 12&e&&(n=P(n.concat(i),"identifier",!0)),[n,i]}g(Q,Y,{handler:function(t){var e=K[t.type];if(1===e&&(this.started=!0),this.started){var n=tt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},Y.apply(this,arguments)}function it(t,e){var n=x(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=x(t.changedTouches),a=[],h=this.target;if(s=n.filter((function(t){return _(t.target,h)})),1===e)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),12&e&&delete i[o[r].identifier],r++;return a.length?[P(s.concat(a),"identifier",!0),a]:void 0}g(nt,Y,{handler:function(t){var e=et[t.type],n=it.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});function rt(){Y.apply(this,arguments);var t=y(this.handler,this);this.touch=new nt(this.manager,t),this.mouse=new j(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function st(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ot.call(this,e)):12&t&&ot.call(this,e)}function ot(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function at(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}g(rt,Y,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)st.call(this,e,n);else if(r&&at.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ht=D(a.style,"touchAction"),ut=void 0!==ht,ct=function(){if(!ut)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){e[i]=!n||t.CSS.supports("touch-action",i)})),e}();function lt(t,e){this.manager=t,this.set(e)}lt.prototype={set:function(t){"compute"==t&&(t=this.compute()),ut&&this.manager.element.style&&ct[t]&&(this.manager.element.style[ht]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,(function(e){T(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(C(t,"none"))return"none";var e=C(t,"pan-x"),n=C(t,"pan-y");if(e&&n)return"none";if(e||n)return e?"pan-x":"pan-y";if(C(t,"manipulation"))return"manipulation";return"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=C(i,"none")&&!ct.none,s=C(i,"pan-y")&&!ct["pan-y"],o=C(i,"pan-x")&&!ct["pan-x"];if(r){var a=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(a&&h&&u)return}if(!o||!s)return r||s&&6&n||o&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};function pt(t){this.options=s({},this.defaults,t||{}),this.id=w++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ft(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function vt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function dt(t,e){var n=e.manager;return n?n.get(t):t}function mt(){pt.apply(this,arguments)}function gt(){mt.apply(this,arguments),this.pX=null,this.pY=null}function yt(){mt.apply(this,arguments)}function Tt(){pt.apply(this,arguments),this._timer=null,this._input=null}function Et(){mt.apply(this,arguments)}function It(){mt.apply(this,arguments)}function At(){pt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function _t(t,e){return(e=e||{}).recognizers=E(e.recognizers,_t.defaults.preset),new Ct(t,e)}pt.prototype={defaults:{},set:function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(p(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=dt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return p(t,"dropRecognizeWith",this)||(t=dt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(p(t,"requireFailure",this))return this;var e=this.requireFail;return-1===b(e,t=dt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(p(t,"dropRequireFailure",this))return this;t=dt(t,this);var e=b(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+ft(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+ft(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=s({},t);if(!T(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},g(mt,pt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:32}}),g(gt,mt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return mt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=vt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),g(yt,mt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),g(Tt,pt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=l((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),g(Et,mt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),g(It,mt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return gt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=vt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),g(At,pt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||L(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=l((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),_t.VERSION="2.0.7",_t.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Et,{enable:!1}],[yt,{enable:!1},["rotate"]],[It,{direction:6}],[gt,{direction:6},["swipe"]],[At],[At,{event:"doubletap",taps:2},["tap"]],[Tt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ct(t,e){var n;this.options=s({},_t.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(M?J:z?nt:R?rt:j))(n,F),this.touchAction=new lt(this,this.options.touchAction),St(this,!0),f(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function St(t,e){var n,i=t.element;i.style&&(f(t.options.cssProps,(function(r,s){n=D(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Ct.prototype={set:function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof pt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(p(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(p(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=b(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return f(S(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return f(S(t),(function(t){e?n[t]&&n[t].splice(b(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var i=n.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<i.length;)i[r](e),r++}},destroy:function(){this.element&&St(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(_t,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ct,Input:Y,TouchAction:lt,TouchInput:nt,MouseInput:j,PointerEventInput:J,TouchMouseInput:rt,SingleTouchInput:Q,Recognizer:pt,AttrRecognizer:mt,Tap:At,Pan:gt,Swipe:It,Pinch:yt,Rotate:Et,Press:Tt,on:I,off:A,each:f,merge:m,extend:d,assign:s,inherit:g,bindFn:y,prefixed:D}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=_t,"function"==typeof define&&define.amd?define((function(){return _t})):void 0!==e&&e.exports?e.exports=_t:t.Hammer=_t}(window,document)},n function _(e,t,n){n /!n * jQuery Mousewheel 3.1.13n *n * Copyright jQuery Foundation and other contributorsn * Released under the MIT licensen * http://jquery.org/licensen */n function r(e){const t=getComputedStyle(e).fontSize;return null!=t?parseInt(t,10):null}Object.defineProperty(n,"__esModule",{value:!0}),n.getDeltaY=function(e){let t=-e.deltaY;if(e.target instanceof HTMLElement)switch(e.deltaMode){case e.DOM_DELTA_LINE:t*=r((n=e.target).offsetParent||document.body)||r(n)||16;break;case e.DOM_DELTA_PAGE:t*=function(e){return e.clientHeight}(e.target)}var n;return t}},n function _(n,e,o){Object.defineProperty(o,"__esModule",{value:!0});const t=("undefined"!=typeof window?window.requestAnimationFrame:void 0)||("undefined"!=typeof window?window.webkitRequestAnimationFrame:void 0)||("undefined"!=typeof window?window.mozRequestAnimationFrame:void 0)||("undefined"!=typeof window?window.msRequestAnimationFrame:void 0)||function(n){return n(Date.now()),-1};o.throttle=function(n,e){let o=null,i=0,u=!1;return function(){return new Promise((d,w)=>{const r=function(){i=Date.now(),o=null,u=!1;try{n(),d()}catch(n){w(n)}},a=Date.now(),f=e-(a-i);f<=0&&!u?(null!=o&&clearTimeout(o),u=!0,t(r)):o||u?d():o=setTimeout(()=>t(r),f)})}}},n function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const l=i(188),a=i(189),r=i(8),h=Math.PI/2,o="left",s="center",n={above:{parallel:0,normal:-h,horizontal:0,vertical:-h},below:{parallel:0,normal:h,horizontal:0,vertical:h},left:{parallel:-h,normal:0,horizontal:0,vertical:-h},right:{parallel:h,normal:0,horizontal:0,vertical:h}},d={above:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"alphabetic",vertical:"middle"},below:{justified:"bottom",parallel:"hanging",normal:"middle",horizontal:"hanging",vertical:"middle"},left:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"},right:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"}},_={above:{justified:s,parallel:s,normal:o,horizontal:s,vertical:o},below:{justified:s,parallel:s,normal:o,horizontal:s,vertical:o},left:{justified:s,parallel:s,normal:"right",horizontal:"right",vertical:s},right:{justified:s,parallel:s,normal:o,horizontal:o,vertical:s}},c={above:"right",below:o,left:"right",right:o},m={above:o,below:"right",left:"right",right:o};class g extends a.ContentLayoutable{constructor(i,t){switch(super(),this.side=i,this.obj=t,this.side){case"above":this._dim=0,this._normals=[0,-1];break;case"below":this._dim=0,this._normals=[0,1];break;case"left":this._dim=1,this._normals=[-1,0];break;case"right":this._dim=1,this._normals=[1,0]}this.is_horizontal?this.set_sizing({width_policy:"max",height_policy:"fixed"}):this.set_sizing({width_policy:"fixed",height_policy:"max"})}_content_size(){return new l.Sizeable(this.get_oriented_size())}get_oriented_size(){const{width:i,height:t}=this.obj.get_size();return!this.obj.rotate||this.is_horizontal?{width:i,height:t}:{width:t,height:i}}has_size_changed(){const{width:i,height:t}=this.get_oriented_size();return this.is_horizontal?this.bbox.height!=t:this.bbox.width!=i}get dimension(){return this._dim}get normals(){return this._normals}get is_horizontal(){return 0==this._dim}get is_vertical(){return 1==this._dim}apply_label_text_heuristics(i,t){const e=this.side;let l,a;r.isString(t)?(l=d[e][t],a=_[e][t]):0===t?(l="whatever",a="whatever"):t<0?(l="middle",a=c[e]):(l="middle",a=m[e]),i.textBaseline=l,i.textAlign=a}get_label_angle_heuristic(i){return n[this.side][i]}}e.SidePanel=g,g.__name__="SidePanel"},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(14),o=t(66),a=t(30),n=t(280),p=new i.Signal0({},"gmaps_ready");class l extends n.PlotView{initialize(){this.pause(),super.initialize(),this._tiles_loaded=!1,this.zoom_count=0;const{zoom:t,lat:e,lng:s}=this.model.map_options;if(this.initial_zoom=t,this.initial_lat=e,this.initial_lng=s,"undefined"==typeof google||null==google.maps){if(void 0===window._bokeh_gmaps_callback){!function(t){window._bokeh_gmaps_callback=()=>p.emit();const e=document.createElement("script");e.type="text/javascript",e.src=`https://maps.googleapis.com/maps/api/js?v=3.36&key=${t}&callback=_bokeh_gmaps_callback`,document.body.appendChild(e)}(atob(this.model.api_key))}p.connect(()=>this.request_render())}this.unpause()}remove(){o.remove(this.map_el),super.remove()}update_range(t){if(null==t)this.map.setCenter({lat:this.initial_lat,lng:this.initial_lng}),this.map.setOptions({zoom:this.initial_zoom}),super.update_range(null);else if(null!=t.sdx||null!=t.sdy)this.map.panBy(t.sdx||0,t.sdy||0),super.update_range(t);else if(null!=t.factor){if(10!==this.zoom_count)return void(this.zoom_count+=1);this.zoom_count=0,this.pause(),super.update_range(t);const e=t.factor<0?-1:1,s=this.map.getZoom(),i=s+e;if(i>=2){this.map.setZoom(i);const[t,e,,]=this._get_projected_bounds();e-t<0&&this.map.setZoom(s)}this.unpause()}this._set_bokeh_ranges()}_build_map(){const{maps:t}=google;this.map_types={satellite:t.MapTypeId.SATELLITE,terrain:t.MapTypeId.TERRAIN,roadmap:t.MapTypeId.ROADMAP,hybrid:t.MapTypeId.HYBRID};const e=this.model.map_options,s={center:new t.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:this.map_types[e.map_type],scaleControl:e.scale_control,tilt:e.tilt};null!=e.styles&&(s.styles=JSON.parse(e.styles)),this.map_el=o.div({style:{position:"absolute"}}),this.canvas_view.add_underlay(this.map_el),this.map=new t.Map(this.map_el,s),t.event.addListener(this.map,"idle",()=>this._set_bokeh_ranges()),t.event.addListener(this.map,"bounds_changed",()=>this._set_bokeh_ranges()),t.event.addListenerOnce(this.map,"tilesloaded",()=>this._render_finished()),this.connect(this.model.properties.map_options.change,()=>this._update_options()),this.connect(this.model.map_options.properties.styles.change,()=>this._update_styles()),this.connect(this.model.map_options.properties.lat.change,()=>this._update_center("lat")),this.connect(this.model.map_options.properties.lng.change,()=>this._update_center("lng")),this.connect(this.model.map_options.properties.zoom.change,()=>this._update_zoom()),this.connect(this.model.map_options.properties.map_type.change,()=>this._update_map_type()),this.connect(this.model.map_options.properties.scale_control.change,()=>this._update_scale_control()),this.connect(this.model.map_options.properties.tilt.change,()=>this._update_tilt())}_render_finished(){this._tiles_loaded=!0,this.notify_finished()}has_finished(){return super.has_finished()&&!0===this._tiles_loaded}_get_latlon_bounds(){const t=this.map.getBounds(),e=t.getNorthEast(),s=t.getSouthWest();return[s.lng(),e.lng(),s.lat(),e.lat()]}_get_projected_bounds(){const[t,e,s,i]=this._get_latlon_bounds(),[o,n]=a.wgs84_mercator.forward([t,s]),[p,l]=a.wgs84_mercator.forward([e,i]);return[o,p,n,l]}_set_bokeh_ranges(){const[t,e,s,i]=this._get_projected_bounds();this.frame.x_range.setv({start:t,end:e}),this.frame.y_range.setv({start:s,end:i})}_update_center(t){const e=this.map.getCenter().toJSON();e[t]=this.model.map_options[t],this.map.setCenter(e),this._set_bokeh_ranges()}_update_map_type(){this.map.setOptions({mapTypeId:this.map_types[this.model.map_options.map_type]})}_update_scale_control(){this.map.setOptions({scaleControl:this.model.map_options.scale_control})}_update_tilt(){this.map.setOptions({tilt:this.model.map_options.tilt})}_update_options(){this._update_styles(),this._update_center("lat"),this._update_center("lng"),this._update_zoom(),this._update_map_type()}_update_styles(){this.map.setOptions({styles:JSON.parse(this.model.map_options.styles)})}_update_zoom(){this.map.setOptions({zoom:this.model.map_options.zoom}),this._set_bokeh_ranges()}_map_hook(t,e){if(null==this.map&&"undefined"!=typeof google&&null!=google.maps&&this._build_map(),null!=this.map_el){const[t,s,i,o]=e;this.map_el.style.top=`${s}px`,this.map_el.style.left=`${t}px`,this.map_el.style.width=`${i}px`,this.map_el.style.height=`${o}px`}}_paint_empty(t,e){const s=this.layout._width.value,i=this.layout._height.value,[o,a,n,p]=e;t.clearRect(0,0,s,i),t.beginPath(),t.moveTo(0,0),t.lineTo(0,i),t.lineTo(s,i),t.lineTo(s,0),t.lineTo(0,0),t.moveTo(o,a),t.lineTo(o+n,a),t.lineTo(o+n,a+p),t.lineTo(o,a+p),t.lineTo(o,a),t.closePath(),null!=this.model.border_fill_color&&(t.fillStyle=this.model.border_fill_color,t.fill())}}s.GMapPlotView=l,l.__name__="GMapPlotView"},n function _(a,e,n){Object.defineProperty(n,"__esModule",{value:!0});var g=a(186);n.DataRange=g.DataRange;var R=a(185);n.DataRange1d=R.DataRange1d;var r=a(88);n.FactorRange=r.FactorRange;var t=a(89);n.Range=t.Range;var d=a(130);n.Range1d=d.Range1d},n function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});var n=e(78);d.GlyphRenderer=n.GlyphRenderer;var R=e(97);d.GraphRenderer=R.GraphRenderer;var a=e(149);d.GuideRenderer=a.GuideRenderer;var G=e(63);d.Renderer=G.Renderer},n function _(a,e,c){Object.defineProperty(c,"__esModule",{value:!0});var l=a(184);c.CategoricalScale=l.CategoricalScale;var o=a(120);c.ContinuousScale=o.ContinuousScale;var r=a(119);c.LinearScale=r.LinearScale;var S=a(129);c.LogScale=S.LogScale;var n=a(121);c.Scale=n.Scale},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),e(1).__exportStar(e(99),o);var n=e(76);o.Selection=n.Selection},n function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var o=a(293);r.ServerSentDataSource=o.ServerSentDataSource;var S=a(295);r.AjaxDataSource=S.AjaxDataSource;var u=a(73);r.ColumnDataSource=u.ColumnDataSource;var t=a(74);r.ColumnarDataSource=t.ColumnarDataSource;var c=a(95);r.CDSView=c.CDSView;var D=a(75);r.DataSource=D.DataSource;var v=a(296);r.GeoJSONDataSource=v.GeoJSONDataSource;var n=a(294);r.WebDataSource=n.WebDataSource},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const a=e(294);class s extends a.WebDataSource{constructor(e){super(e),this.initialized=!1}destroy(){super.destroy()}setup(){if(!this.initialized){this.initialized=!0,new EventSource(this.data_url).onmessage=e=>{this.load_data(JSON.parse(e.data),this.mode,this.max_size)}}}}i.ServerSentDataSource=s,s.__name__="ServerSentDataSource"},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const r=e(1),s=e(73),i=r.__importStar(e(19));class n extends s.ColumnDataSource{constructor(e){super(e)}get_column(e){const t=this.data[e];return null!=t?t:[]}initialize(){super.initialize(),this.setup()}load_data(e,t,a){const{adapter:r}=this;let s;switch(s=null!=r?r.execute(this,{response:e}):e,t){case"replace":this.data=s;break;case"append":{const e=this.data;for(const t of this.columns()){const r=Array.from(e[t]),i=Array.from(s[t]);s[t]=r.concat(i).slice(-a)}this.data=s;break}}}static init_WebDataSource(){this.define({mode:[i.UpdateMode,"replace"],max_size:[i.Number],adapter:[i.Any,null],data_url:[i.String]})}}a.WebDataSource=n,n.__name__="WebDataSource",n.init_WebDataSource()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),a=t(294),r=t(70),o=s.__importStar(t(19));class n extends a.WebDataSource{constructor(t){super(t),this.initialized=!1}static init_AjaxDataSource(){this.define({polling_interval:[o.Number],content_type:[o.String,"application/json"],http_headers:[o.Any,{}],method:[o.HTTPMethod,"POST"],if_modified:[o.Boolean,!1]})}destroy(){null!=this.interval&&clearInterval(this.interval),super.destroy()}setup(){if(!this.initialized&&(this.initialized=!0,this.get_data(this.mode),this.polling_interval)){const t=()=>this.get_data(this.mode,this.max_size,this.if_modified);this.interval=setInterval(t,this.polling_interval)}}get_data(t,e=0,i=!1){const s=this.prepare_request();s.addEventListener("load",()=>this.do_load(s,t,e)),s.addEventListener("error",()=>this.do_error(s)),s.send()}prepare_request(){const t=new XMLHttpRequest;t.open(this.method,this.data_url,!0),t.withCredentials=!1,t.setRequestHeader("Content-Type",this.content_type);const e=this.http_headers;for(const i in e){const s=e[i];t.setRequestHeader(i,s)}return t}do_load(t,e,i){if(200===t.status){const s=JSON.parse(t.responseText);this.load_data(s,e,i)}}do_error(t){r.logger.error(`Failed to fetch JSON from ${this.data_url} with code ${t.status}`)}}i.AjaxDataSource=n,n.__name__="AjaxDataSource",n.init_AjaxDataSource()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1),n=e(74),s=e(70),a=r.__importStar(e(19)),i=e(9);function l(e){return null!=e?e:NaN}class c extends n.ColumnarDataSource{constructor(e){super(e)}static init_GeoJSONDataSource(){this.define({geojson:[a.Any]}),this.internal({data:[a.Any,{}]})}initialize(){super.initialize(),this._update_data()}connect_signals(){super.connect_signals(),this.connect(this.properties.geojson.change,()=>this._update_data())}_update_data(){this.data=this.geojson_to_column_data()}_get_new_list_array(e){return i.range(0,e).map(e=>[])}_get_new_nan_array(e){return i.range(0,e).map(e=>NaN)}_add_properties(e,t,o,r){const n=e.properties||{};for(const e in n)t.hasOwnProperty(e)||(t[e]=this._get_new_nan_array(r)),t[e][o]=l(n[e])}_add_geometry(e,t,o){function r(e,t){return e.concat([[NaN,NaN,NaN]]).concat(t)}switch(e.type){case"Point":{const[r,n,s]=e.coordinates;t.x[o]=r,t.y[o]=n,t.z[o]=l(s);break}case"LineString":{const{coordinates:r}=e;for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"Polygon":{e.coordinates.length>1&&s.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used.");const r=e.coordinates[0];for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"MultiPoint":s.logger.warn("MultiPoint not supported in Bokeh");break;case"MultiLineString":{const n=e.coordinates.reduce(r);for(let e=0;e<n.length;e++){const[r,s,a]=n[e];t.xs[o][e]=r,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"MultiPolygon":{const n=[];for(const t of e.coordinates)t.length>1&&s.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used."),n.push(t[0]);const a=n.reduce(r);for(let e=0;e<a.length;e++){const[r,n,s]=a[e];t.xs[o][e]=r,t.ys[o][e]=n,t.zs[o][e]=l(s)}break}default:throw new Error(`Invalid GeoJSON geometry type: ${e.type}`)}}geojson_to_column_data(){const e=JSON.parse(this.geojson);let t;switch(e.type){case"GeometryCollection":if(null==e.geometries)throw new Error("No geometries found in GeometryCollection");if(0===e.geometries.length)throw new Error("geojson.geometries must have one or more items");t=e.geometries;break;case"FeatureCollection":if(null==e.features)throw new Error("No features found in FeaturesCollection");if(0==e.features.length)throw new Error("geojson.features must have one or more items");t=e.features;break;default:throw new Error("Bokeh only supports type GeometryCollection and FeatureCollection at top level")}let o=0;for(const e of t){const t="Feature"===e.type?e.geometry:e;"GeometryCollection"==t.type?o+=t.geometries.length:o+=1}const r={x:this._get_new_nan_array(o),y:this._get_new_nan_array(o),z:this._get_new_nan_array(o),xs:this._get_new_list_array(o),ys:this._get_new_list_array(o),zs:this._get_new_list_array(o)};let n=0;for(const e of t){const t="Feature"==e.type?e.geometry:e;if("GeometryCollection"==t.type)for(const s of t.geometries)this._add_geometry(s,r,n),"Feature"===e.type&&this._add_properties(e,r,n,o),n+=1;else this._add_geometry(t,r,n),"Feature"===e.type&&this._add_properties(e,r,n,o),n+=1}return r}}o.GeoJSONDataSource=c,c.__name__="GeoJSONDataSource",c.init_GeoJSONDataSource()},n function _(e,r,i){Object.defineProperty(i,"__esModule",{value:!0});var c=e(109);i.AdaptiveTicker=c.AdaptiveTicker;var a=e(108);i.BasicTicker=a.BasicTicker;var k=e(151);i.CategoricalTicker=k.CategoricalTicker;var T=e(162);i.CompositeTicker=T.CompositeTicker;var t=e(110);i.ContinuousTicker=t.ContinuousTicker;var o=e(161);i.DatetimeTicker=o.DatetimeTicker;var v=e(163);i.DaysTicker=v.DaysTicker;var n=e(298);i.FixedTicker=n.FixedTicker;var s=e(170);i.LogTicker=s.LogTicker;var l=e(173);i.MercatorTicker=l.MercatorTicker;var u=e(166);i.MonthsTicker=u.MonthsTicker;var d=e(164);i.SingleIntervalTicker=d.SingleIntervalTicker;var g=e(111);i.Ticker=g.Ticker;var C=e(167);i.YearsTicker=C.YearsTicker},n function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=i(1),n=i(110),s=r.__importStar(i(19));class _ extends n.ContinuousTicker{constructor(i){super(i),this.min_interval=0,this.max_interval=0}static init_FixedTicker(){this.define({ticks:[s.Array,[]],minor_ticks:[s.Array,[]]})}get_ticks_no_defaults(i,t,e,r){return{major:this.ticks,minor:this.minor_ticks}}get_interval(i,t,e){return 0}}e.FixedTicker=_,_.__name__="FixedTicker",_.init_FixedTicker()},n function _(e,r,o){Object.defineProperty(o,"__esModule",{value:!0});var T=e(300);o.BBoxTileSource=T.BBoxTileSource;var c=e(301);o.MercatorTileSource=c.MercatorTileSource;var i=e(304);o.QUADKEYTileSource=i.QUADKEYTileSource;var l=e(305);o.TileRenderer=l.TileRenderer;var S=e(302);o.TileSource=S.TileSource;var u=e(308);o.TMSTileSource=u.TMSTileSource;var a=e(306);o.WMTSTileSource=a.WMTSTileSource},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(1),i=e(301),l=o.__importStar(e(19));class _ extends i.MercatorTileSource{constructor(e){super(e)}static init_BBoxTileSource(){this.define({use_latlon:[l.Boolean,!1]})}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars);let i,l,_,n;return this.use_latlon?[l,n,i,_]=this.get_tile_geographic_bounds(e,t,r):[l,n,i,_]=this.get_tile_meter_bounds(e,t,r),o.replace("{XMIN}",l.toString()).replace("{YMIN}",n.toString()).replace("{XMAX}",i.toString()).replace("{YMAX}",_.toString())}}r.BBoxTileSource=_,_.__name__="BBoxTileSource",_.init_BBoxTileSource()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const _=t(1),s=t(302),r=_.__importStar(t(19)),o=t(9),n=t(303);class l extends s.TileSource{constructor(t){super(t)}static init_MercatorTileSource(){this.define({snap_to_zoom:[r.Boolean,!1],wrap_around:[r.Boolean,!0]}),this.override({x_origin_offset:20037508.34,y_origin_offset:20037508.34,initial_resolution:156543.03392804097})}initialize(){super.initialize(),this._resolutions=o.range(this.min_zoom,this.max_zoom+1).map(t=>this.get_resolution(t))}_computed_initial_resolution(){return null!=this.initial_resolution?this.initial_resolution:2*Math.PI*6378137/this.tile_size}is_valid_tile(t,e,i){return!(!this.wrap_around&&(t<0||t>=2**i))&&!(e<0||e>=2**i)}parent_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=_.substring(0,_.length-1);return this.quadkey_to_tile_xyz(s)}get_resolution(t){return this._computed_initial_resolution()/2**t}get_resolution_by_extent(t,e,i){return[(t[2]-t[0])/i,(t[3]-t[1])/e]}get_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s);let o=0;for(const t of this._resolutions){if(r>t){if(0==o)return 0;if(o>0)return o-1}o+=1}return o-1}get_closest_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s),o=this._resolutions.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t}));return this._resolutions.indexOf(o)}snap_to_zoom_level(t,e,i,_){const[s,r,o,n]=t,l=this._resolutions[_];let u=i*l,a=e*l;if(!this.snap_to_zoom){const t=(o-s)/u,e=(n-r)/a;t>e?(u=o-s,a*=t):(u*=e,a=n-r)}const h=(u-(o-s))/2,c=(a-(n-r))/2;return[s-h,r-c,o+h,n+c]}tms_to_wmts(t,e,i){return[t,2**i-1-e,i]}wmts_to_tms(t,e,i){return[t,2**i-1-e,i]}pixels_to_meters(t,e,i){const _=this.get_resolution(i);return[t*_-this.x_origin_offset,e*_-this.y_origin_offset]}meters_to_pixels(t,e,i){const _=this.get_resolution(i);return[(t+this.x_origin_offset)/_,(e+this.y_origin_offset)/_]}pixels_to_tile(t,e){let i=Math.ceil(t/this.tile_size);return i=0===i?i:i-1,[i,Math.max(Math.ceil(e/this.tile_size)-1,0)]}pixels_to_raster(t,e,i){return[t,(this.tile_size<<i)-e]}meters_to_tile(t,e,i){const[_,s]=this.meters_to_pixels(t,e,i);return this.pixels_to_tile(_,s)}get_tile_meter_bounds(t,e,i){const[_,s]=this.pixels_to_meters(t*this.tile_size,e*this.tile_size,i),[r,o]=this.pixels_to_meters((t+1)*this.tile_size,(e+1)*this.tile_size,i);return[_,s,r,o]}get_tile_geographic_bounds(t,e,i){const _=this.get_tile_meter_bounds(t,e,i),[s,r,o,l]=n.meters_extent_to_geographic(_);return[s,r,o,l]}get_tiles_by_extent(t,e,i=1){const[_,s,r,o]=t;let[n,l]=this.meters_to_tile(_,s,e),[u,a]=this.meters_to_tile(r,o,e);n-=i,l-=i,u+=i,a+=i;const h=[];for(let t=a;t>=l;t–)for(let i=n;i<=u;i++)this.is_valid_tile(i,t,e)&&h.push([i,t,e,this.get_tile_meter_bounds(i,t,e)]);return this.sort_tiles_from_center(h,[n,l,u,a]),h}quadkey_to_tile_xyz(t){let e=0,i=0;const _=t.length;for(let s=_;s>0;s–){const r=1<<s-1;switch(t.charAt(_-s)){case"0":continue;case"1":e|=r;break;case"2":i|=r;break;case"3":e|=r,i|=r;break;default:throw new TypeError(`Invalid Quadkey: ${t}`)}}return[e,i,_]}tile_xyz_to_quadkey(t,e,i){let _="";for(let s=i;s>0;s–){const i=1<<s-1;let r=0;0!=(t&i)&&(r+=1),0!=(e&i)&&(r+=2),_+=r.toString()}return _}children_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=[];for(let t=0;t<=3;t++){const[e,i,r]=this.quadkey_to_tile_xyz(_+t.toString()),o=this.get_tile_meter_bounds(e,i,r);s.push([e,i,r,o])}return s}get_closest_parent_by_tile_xyz(t,e,i){const _=this.calculate_world_x_by_tile_xyz(t,e,i);[t,e,i]=this.normalize_xyz(t,e,i);let s=this.tile_xyz_to_quadkey(t,e,i);for(;s.length>0;)if(s=s.substring(0,s.length-1),[t,e,i]=this.quadkey_to_tile_xyz(s),[t,e,i]=this.denormalize_xyz(t,e,i,_),this.tiles.has(this.tile_xyz_to_key(t,e,i)))return[t,e,i];return[0,0,0]}normalize_xyz(t,e,i){if(this.wrap_around){const _=2**i;return[(t%_+_)%_,e,i]}return[t,e,i]}denormalize_xyz(t,e,i,_){return[t+_*2**i,e,i]}denormalize_meters(t,e,i,_){return[t+2*_*Math.PI*6378137,e]}calculate_world_x_by_tile_xyz(t,e,i){return Math.floor(t/2**i)}}i.MercatorTileSource=l,l.__name__="MercatorTileSource",l.init_MercatorTileSource()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1),n=e(69),s=i.__importStar(e(19));class l extends n.Model{constructor(e){super(e)}static init_TileSource(){this.define({url:[s.String,""],tile_size:[s.Number,256],max_zoom:[s.Number,30],min_zoom:[s.Number,0],extra_url_vars:[s.Any,{}],attribution:[s.String,""],x_origin_offset:[s.Number],y_origin_offset:[s.Number],initial_resolution:[s.Number]})}initialize(){super.initialize(),this.tiles=new Map,this._normalize_case()}connect_signals(){super.connect_signals(),this.connect(this.change,()=>this._clear_cache())}string_lookup_replace(e,t){let r=e;for(const e in t){const i=t[e];r=r.replace(`{${e}}`,i)}return r}_normalize_case(){const e=this.url.replace("{x}","{X}").replace("{y}","{Y}").replace("{z}","{Z}").replace("{q}","{Q}").replace("{xmin}","{XMIN}").replace("{ymin}","{YMIN}").replace("{xmax}","{XMAX}").replace("{ymax}","{YMAX}");this.url=e}_clear_cache(){this.tiles=new Map}tile_xyz_to_key(e,t,r){return`${e}:${t}:${r}`}key_to_tile_xyz(e){const[t,r,i]=e.split(":").map(e=>parseInt(e));return[t,r,i]}sort_tiles_from_center(e,t){const[r,i,n,s]=t,l=(n-r)/2+r,a=(s-i)/2+i;e.sort((function(e,t){return Math.sqrt((l-e[0])**2+(a-e[1])**2)-Math.sqrt((l-t[0])**2+(a-t[1])**2)}))}get_image_url(e,t,r){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",t.toString()).replace("{Z}",r.toString())}}r.TileSource=l,l.__name__="TileSource",l.init_TileSource()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(30);function o(e,t){return n.wgs84_mercator.forward([e,t])}function c(e,t){return n.wgs84_mercator.inverse([e,t])}r.geographic_to_meters=o,r.meters_to_geographic=c,r.geographic_extent_to_meters=function(e){const[t,r,n,c]=e,[_,i]=o(t,r),[s,u]=o(n,c);return[_,i,s,u]},r.meters_extent_to_geographic=function(e){const[t,r,n,o]=e,[_,i]=c(t,r),[s,u]=c(n,o);return[_,i,s,u]}},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const _=e(301);class s extends _.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const _=this.string_lookup_replace(this.url,this.extra_url_vars),[s,o,u]=this.tms_to_wmts(e,t,r),c=this.tile_xyz_to_quadkey(s,o,u);return _.replace("{Q}",c)}}r.QUADKEYTileSource=s,s.__name__="QUADKEYTileSource"},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),_=e(306),a=e(79),n=e(130),r=e(66),h=s.__importStar(e(19)),l=e(223),o=e(9),d=e(8),m=e(77),c=e(73),u=e(307);class p extends a.DataRendererView{initialize(){this._tiles=[],super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render()),this.connect(this.model.tile_source.change,()=>this.request_render())}get_extent(){return[this.x_range.start,this.y_range.start,this.x_range.end,this.y_range.end]}get map_plot(){return this.plot_model}get map_canvas(){return this.plot_view.canvas_view.ctx}get map_frame(){return this.plot_view.frame}get x_range(){return this.map_plot.x_range}get y_range(){return this.map_plot.y_range}_set_data(){this.extent=this.get_extent(),this._last_height=void 0,this._last_width=void 0}_update_attribution(){null!=this.attribution_el&&r.removeElement(this.attribution_el);const{attribution:e}=this.model.tile_source;if(d.isString(e)&&e.length>0){const{layout:t,frame:i}=this.plot_view,s=t._width.value-i._right.value,_=t._height.value-i._bottom.value,a=i._width.value;this.attribution_el=r.div({class:u.bk_tile_attribution,style:{position:"absolute",right:`${s}px`,bottom:`${_}px`,"max-width":`${a-4}px`,padding:"2px","background-color":"rgba(255,255,255,0.5)","font-size":"9px","line-height":"1.05","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}}),this.plot_view.canvas_view.add_event(this.attribution_el),this.attribution_el.innerHTML=e,this.attribution_el.title=this.attribution_el.textContent.replace(/\s\n\s*/g," ")}}_map_data(){this.initial_extent=this.get_extent();const e=this.model.tile_source.get_level_by_extent(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value),t=this.model.tile_source.snap_to_zoom_level(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value,e);this.x_range.start=t[0],this.y_range.start=t[1],this.x_range.end=t[2],this.y_range.end=t[3],this.x_range instanceof n.Range1d&&(this.x_range.reset_start=t[0],this.x_range.reset_end=t[2]),this.y_range instanceof n.Range1d&&(this.y_range.reset_start=t[1],this.y_range.reset_end=t[3]),this._update_attribution()}_create_tile(e,t,i,s,_=!1){const[a,n,r]=this.model.tile_source.normalize_xyz(e,t,i),h={img:void 0,tile_coords:[e,t,i],normalized_coords:[a,n,r],quadkey:this.model.tile_source.tile_xyz_to_quadkey(e,t,i),cache_key:this.model.tile_source.tile_xyz_to_key(e,t,i),bounds:s,loaded:!1,finished:!1,x_coord:s[0],y_coord:s[3]},o=this.model.tile_source.get_image_url(a,n,r);new l.ImageLoader(o,{loaded:e=>{Object.assign(h,{img:e,loaded:!0}),_?(h.finished=!0,this.notify_finished()):this.request_render()},failed(){h.finished=!0}}),this.model.tile_source.tiles.set(h.cache_key,h),this._tiles.push(h)}_enforce_aspect_ratio(){if(this._last_height!==this.map_frame._height.value||this._last_width!==this.map_frame._width.value){const e=this.get_extent(),t=this.model.tile_source.get_level_by_extent(e,this.map_frame._height.value,this.map_frame._width.value),i=this.model.tile_source.snap_to_zoom_level(e,this.map_frame._height.value,this.map_frame._width.value,t);this.x_range.setv({start:i[0],end:i[2]}),this.y_range.setv({start:i[1],end:i[3]}),this.extent=i,this._last_height=this.map_frame._height.value,this._last_width=this.map_frame._width.value}}has_finished(){if(!super.has_finished())return!1;if(0===this._tiles.length)return!1;for(const e of this._tiles)if(!e.finished)return!1;return!0}render(){null==this.map_initialized&&(this._set_data(),this._map_data(),this.map_initialized=!0),this._enforce_aspect_ratio(),this._update(),null!=this.prefetch_timer&&clearTimeout(this.prefetch_timer),this.prefetch_timer=setTimeout(this._prefetch_tiles.bind(this),500),this.has_finished()&&this.notify_finished()}_draw_tile(e){const t=this.model.tile_source.tiles.get(e);if(null!=t&&t.loaded){const[[e],[i]]=this.plot_view.map_to_screen([t.bounds[0]],[t.bounds[3]]),[[s],[_]]=this.plot_view.map_to_screen([t.bounds[2]],[t.bounds[1]]),a=s-e,n=_-i,r=e,h=i,l=this.map_canvas.getImageSmoothingEnabled();this.map_canvas.setImageSmoothingEnabled(this.model.smoothing),this.map_canvas.drawImage(t.img,r,h,a,n),this.map_canvas.setImageSmoothingEnabled(l),t.finished=!0}}_set_rect(){const e=this.plot_model.properties.outline_line_width.value(),t=this.map_frame._left.value+e/2,i=this.map_frame._top.value+e/2,s=this.map_frame._width.value-e,_=this.map_frame._height.value-e;this.map_canvas.rect(t,i,s,_),this.map_canvas.clip()}_render_tiles(e){this.map_canvas.save(),this._set_rect(),this.map_canvas.globalAlpha=this.model.alpha;for(const t of e)this._draw_tile(t);this.map_canvas.restore()}_prefetch_tiles(){const{tile_source:e}=this.model,t=this.get_extent(),i=this.map_frame._height.value,s=this.map_frame._width.value,_=this.model.tile_source.get_level_by_extent(t,i,s),a=this.model.tile_source.get_tiles_by_extent(t,_);for(let t=0,i=Math.min(10,a.length);t<i;t++){const[i,s,_]=a[t],n=this.model.tile_source.children_by_tile_xyz(i,s,_);for(const t of n){const[i,s,_,a]=t;e.tiles.has(e.tile_xyz_to_key(i,s,_))||this._create_tile(i,s,_,a,!0)}}}_fetch_tiles(e){for(const t of e){const[e,i,s,_]=t;this._create_tile(e,i,s,_)}}_update(){const{tile_source:e}=this.model,{min_zoom:t}=e,{max_zoom:i}=e;let s=this.get_extent();const _=this.extent[2]-this.extent[0]<s[2]-s[0],a=this.map_frame._height.value,n=this.map_frame._width.value;let r=e.get_level_by_extent(s,a,n),h=!1;r<t?(s=this.extent,r=t,h=!0):r>i&&(s=this.extent,r=i,h=!0),h&&(this.x_range.setv({x_range:{start:s[0],end:s[2]}}),this.y_range.setv({start:s[1],end:s[3]})),this.extent=s;const l=e.get_tiles_by_extent(s,r),d=[],m=[],c=[],u=[];for(const t of l){const[i,s,a]=t,n=e.tile_xyz_to_key(i,s,a),r=e.tiles.get(n);if(null!=r&&r.loaded)m.push(n);else if(this.model.render_parents){const[t,n,r]=e.get_closest_parent_by_tile_xyz(i,s,a),h=e.tile_xyz_to_key(t,n,r),l=e.tiles.get(h);if(null!=l&&l.loaded&&!o.includes(c,h)&&c.push(h),_){const t=e.children_by_tile_xyz(i,s,a);for(const[i,s,_]of t){const t=e.tile_xyz_to_key(i,s,_);e.tiles.has(t)&&u.push(t)}}}null==r&&d.push(t)}this._render_tiles(c),this._render_tiles(u),this._render_tiles(m),null!=this.render_timer&&clearTimeout(this.render_timer),this.render_timer=setTimeout(()=>this._fetch_tiles(d),65)}}i.TileRendererView=p,p.__name__="TileRendererView";class g extends a.DataRenderer{constructor(e){super(e),this._selection_manager=new m.SelectionManager({source:new c.ColumnDataSource})}static init_TileRenderer(){this.prototype.default_view=p,this.define({alpha:[h.Number,1],smoothing:[h.Boolean,!0],tile_source:[h.Instance,()=>new _.WMTSTileSource],render_parents:[h.Boolean,!0]})}get_selection_manager(){return this._selection_manager}}i.TileRenderer=g,g.__name__="TileRenderer",g.init_TileRenderer()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(301);class s extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars),[s,c,_]=this.tms_to_wmts(e,t,r);return o.replace("{X}",s.toString()).replace("{Y}",c.toString()).replace("{Z}",_.toString())}}r.WMTSTileSource=s,s.__name__="WMTSTileSource"},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1);t(67),o.__importStar(t(66)).styles.append(".bk-root .bk-tile-attribution a {\n color: black;\n}\n"),i.bk_tile_attribution="bk-tile-attribution"},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(301);class c extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,r,t){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",r.toString()).replace("{Z}",t.toString())}}t.TMSTileSource=c,c.__name__="TMSTileSource"},n function _(e,r,a){Object.defineProperty(a,"__esModule",{value:!0});var t=e(310);a.CanvasTexture=t.CanvasTexture;var u=e(312);a.ImageURLTexture=u.ImageURLTexture;var v=e(311);a.Texture=v.Texture},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),c=t(311),s=r.__importStar(t(19)),i=t(26);class a extends c.Texture{constructor(t){super(t)}static init_CanvasTexture(){this.define({code:[s.String]})}get func(){const t=i.use_strict(this.code);return new Function("ctx","color","scale","weight",t)}get_pattern(t,e,n){return r=>{const c=document.createElement("canvas");c.width=e,c.height=e;const s=c.getContext("2d");return this.func.call(this,s,t,e,n),r.createPattern(c,this.repetition)}}}n.CanvasTexture=a,a.__name__="CanvasTexture",a.init_CanvasTexture()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),n=e(69),o=r.__importStar(e(19));class _ extends n.Model{constructor(e){super(e)}static init_Texture(){this.define({repetition:[o.TextureRepetition,"repeat"]})}onload(e){e()}}i.Texture=_,_.__name__="Texture",_.init_Texture()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),a=e(311),n=r.__importStar(e(19)),s=e(223);class o extends a.Texture{constructor(e){super(e)}static init_ImageURLTexture(){this.define({url:[n.String]})}initialize(){super.initialize(),this._loader=new s.ImageLoader(this.url)}get_pattern(e,t,i){return e=>this._loader.finished?e.createPattern(this._loader.image,this.repetition):null}onload(e){this._loader.promise.then(()=>e())}}i.ImageURLTexture=o,o.__name__="ImageURLTexture",o.init_ImageURLTexture()},n function _(o,l,T){Object.defineProperty(T,"__esModule",{value:!0});var a=o(276);T.ActionTool=a.ActionTool;var r=o(314);T.CustomAction=r.CustomAction;var e=o(277);T.HelpTool=e.HelpTool;var v=o(315);T.RedoTool=v.RedoTool;var t=o(316);T.ResetTool=t.ResetTool;var n=o(317);T.SaveTool=n.SaveTool;var s=o(318);T.UndoTool=s.UndoTool;var P=o(319);T.ZoomInTool=P.ZoomInTool;var c=o(321);T.ZoomOutTool=c.ZoomOutTool;var i=o(270);T.ButtonTool=i.ButtonTool;var d=o(322);T.EditTool=d.EditTool;var u=o(323);T.BoxEditTool=u.BoxEditTool;var y=o(324);T.FreehandDrawTool=y.FreehandDrawTool;var m=o(325);T.PointDrawTool=m.PointDrawTool;var x=o(326);T.PolyDrawTool=x.PolyDrawTool;var B=o(327);T.PolyTool=B.PolyTool;var S=o(328);T.PolyEditTool=S.PolyEditTool;var b=o(329);T.BoxSelectTool=b.BoxSelectTool;var h=o(332);T.BoxZoomTool=h.BoxZoomTool;var Z=o(275);T.GestureTool=Z.GestureTool;var p=o(333);T.LassoSelectTool=p.LassoSelectTool;var w=o(334);T.PanTool=w.PanTool;var C=o(335);T.PolySelectTool=C.PolySelectTool;var D=o(336);T.RangeTool=D.RangeTool;var E=o(330);T.SelectTool=E.SelectTool;var H=o(337);T.TapTool=H.TapTool;var R=o(338);T.WheelPanTool=R.WheelPanTool;var A=o(339);T.WheelZoomTool=A.WheelZoomTool;var I=o(340);T.CrosshairTool=I.CrosshairTool;var W=o(341);T.CustomJSHover=W.CustomJSHover;var O=o(342);T.HoverTool=O.HoverTool;var _=o(269);T.InspectTool=_.InspectTool;var f=o(271);T.Tool=f.Tool;var g=o(343);T.ToolProxy=g.ToolProxy;var F=o(268);T.Toolbar=F.Toolbar;var G=o(274);T.ToolbarBase=G.ToolbarBase;var J=o(344);T.ProxyToolbar=J.ProxyToolbar;var L=o(344);T.ToolbarBox=L.ToolbarBox},n function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1),s=t(276),e=n.__importStar(t(19)),c=t(272);class _ extends s.ActionToolButtonView{css_classes(){return super.css_classes().concat(c.bk_toolbar_button_custom_action)}}i.CustomActionButtonView=_,_.__name__="CustomActionButtonView";class l extends s.ActionToolView{doit(){null!=this.model.callback&&this.model.callback.execute(this.model)}}i.CustomActionView=l,l.__name__="CustomActionView";class u extends s.ActionTool{constructor(t){super(t),this.tool_name="Custom Action",this.button_view=_}static init_CustomAction(){this.prototype.default_view=l,this.define({action_tooltip:[e.String,"Perform a Custom Action"],callback:[e.Any],icon:[e.String]})}get tooltip(){return this.action_tooltip}}i.CustomAction=u,u.__name__="CustomAction",u.init_CustomAction()},n function _(o,e,t){Object.defineProperty(t,"__esModule",{value:!0});const i=o(276),s=o(278);class n extends i.ActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state_changed,()=>this.model.disabled=!this.plot_view.can_redo())}doit(){this.plot_view.redo()}}t.RedoToolView=n,n.__name__="RedoToolView";class _ extends i.ActionTool{constructor(o){super(o),this.tool_name="Redo",this.icon=s.bk_tool_icon_redo}static init_RedoTool(){this.prototype.default_view=n,this.override({disabled:!0}),this.register_alias("redo",()=>new _)}}t.RedoTool=_,_.__name__="RedoTool",_.init_RedoTool()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(276),i=e(278);class _ extends s.ActionToolView{doit(){this.plot_view.reset()}}o.ResetToolView=_,_.__name__="ResetToolView";class l extends s.ActionTool{constructor(e){super(e),this.tool_name="Reset",this.icon=i.bk_tool_icon_reset}static init_ResetTool(){this.prototype.default_view=_,this.register_alias("reset",()=>new l)}}o.ResetTool=l,l.__name__="ResetTool",l.init_ResetTool()},n function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(276),s=e(278);class _ extends i.ActionToolView{doit(){this.plot_view.save("bokeh_plot")}}t.SaveToolView=_,_.__name__="SaveToolView";class a extends i.ActionTool{constructor(e){super(e),this.tool_name="Save",this.icon=s.bk_tool_icon_save}static init_SaveTool(){this.prototype.default_view=_,this.register_alias("save",()=>new a)}}t.SaveTool=a,a.__name__="SaveTool",a.init_SaveTool()},n function _(o,t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=o(276),i=o(278);class s extends n.ActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state_changed,()=>this.model.disabled=!this.plot_view.can_undo())}doit(){this.plot_view.undo()}}e.UndoToolView=s,s.__name__="UndoToolView";class _ extends n.ActionTool{constructor(o){super(o),this.tool_name="Undo",this.icon=i.bk_tool_icon_undo}static init_UndoTool(){this.prototype.default_view=s,this.override({disabled:!0}),this.register_alias("undo",()=>new _)}}e.UndoTool=_,_.__name__="UndoTool",_.init_UndoTool()},n function _(o,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=o(1),n=o(276),s=o(320),_=e.__importStar(o(19)),m=o(278);class l extends n.ActionToolView{doit(){const o=this.plot_view.frame,t=this.model.dimensions,i="width"==t||"both"==t,e="height"==t||"both"==t,n=s.scale_range(o,this.model.factor,i,e);this.plot_view.push_state("zoom_out",{range:n}),this.plot_view.update_range(n,!1,!0),this.model.document&&this.model.document.interactive_start(this.plot_model)}}i.ZoomInToolView=l,l.__name__="ZoomInToolView";class h extends n.ActionTool{constructor(o){super(o),this.tool_name="Zoom In",this.icon=m.bk_tool_icon_zoom_in}static init_ZoomInTool(){this.prototype.default_view=l,this.define({factor:[_.Percent,.1],dimensions:[_.Dimensions,"both"]}),this.register_alias("zoom_in",()=>new h({dimensions:"both"})),this.register_alias("xzoom_in",()=>new h({dimensions:"width"})),this.register_alias("yzoom_in",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}i.ZoomInTool=h,h.__name__="ZoomInTool",h.init_ZoomInTool()},n function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=n(10);function r(n,t,e){const[o,r]=[n.start,n.end],c=null!=e?e:(r+o)/2;return[o-(o-c)*t,r-(r-c)*t]}function c(n,[t,e]){const o={};for(const r in n){const c=n[r],[s,l]=c.r_invert(t,e);o[r]={start:s,end:l}}return o}e.scale_highlow=r,e.get_info=c,e.scale_range=function(n,t,e=!0,s=!0,l){t=o.clamp(t,-.9,.9);const a=e?t:0,[u,i]=r(n.bbox.h_range,a,null!=l?l.x:void 0),_=c(n.xscales,[u,i]),f=s?t:0,[d,b]=r(n.bbox.v_range,f,null!=l?l.y:void 0);return{xrs:_,yrs:c(n.yscales,[d,b]),factor:t}}},n function _(o,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=o(1),s=o(276),n=o(320),_=e.__importStar(o(19)),m=o(278);class l extends s.ActionToolView{doit(){const o=this.plot_view.frame,t=this.model.dimensions,i="width"==t||"both"==t,e="height"==t||"both"==t,s=n.scale_range(o,-this.model.factor,i,e);this.plot_view.push_state("zoom_out",{range:s}),this.plot_view.update_range(s,!1,!0),this.model.document&&this.model.document.interactive_start(this.plot_model)}}i.ZoomOutToolView=l,l.__name__="ZoomOutToolView";class h extends s.ActionTool{constructor(o){super(o),this.tool_name="Zoom Out",this.icon=m.bk_tool_icon_zoom_out}static init_ZoomOutTool(){this.prototype.default_view=l,this.define({factor:[_.Percent,.1],dimensions:[_.Dimensions,"both"]}),this.register_alias("zoom_out",()=>new h({dimensions:"both"})),this.register_alias("xzoom_out",()=>new h({dimensions:"width"})),this.register_alias("yzoom_out",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}i.ZoomOutTool=h,h.__name__="ZoomOutTool",h.init_ZoomOutTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(1).__importStar(e(19)),n=e(9),i=e(8),_=e(275);class r extends _.GestureToolView{constructor(){super(…arguments),this._mouse_in_frame=!0}_move_enter(e){this._mouse_in_frame=!0}_move_exit(e){this._mouse_in_frame=!1}_map_drag(e,t,s){const o=this.plot_view.frame;return o.bbox.contains(e,t)?[o.xscales[s.x_range_name].invert(e),o.yscales[s.y_range_name].invert(t)]:null}_delete_selected(e){const t=e.data_source,s=t.selected.indices;s.sort();for(const e of t.columns()){const o=t.get_array(e);for(let e=0;e<s.length;e++){const t=s[e];o.splice(t-e,1)}}this._emit_cds_changes(t)}_pop_glyphs(e,t){const s=e.columns();if(t&&s.length)for(const o of s){let s=e.get_array(o);const n=s.length-t+1;n<1||(i.isArray(s)||(s=Array.from(s),e.data[o]=s),s.splice(0,n))}}_emit_cds_changes(e,t=!0,s=!0,o=!0){s&&e.selection_manager.clear(),t&&e.change.emit(),o&&(e.data=e.data,e.properties.data.change.emit())}_drag_points(e,t){if(null==this._basepoint)return;const[s,o]=this._basepoint;for(const n of t){const t=this._map_drag(s,o,n),i=this._map_drag(e.sx,e.sy,n);if(null==i||null==t)continue;const[_,r]=i,[a,c]=t,[l,d]=[_-a,r-c],m=n.glyph,u=n.data_source,[p,h]=[m.x.field,m.y.field];for(const e of u.selected.indices)p&&(u.data[p][e]+=l),h&&(u.data[h][e]+=d);u.change.emit()}this._basepoint=[e.sx,e.sy]}_pad_empty_columns(e,t){for(const s of e.columns())n.includes(t,s)||e.get_array(s).push(this.model.empty_value)}_select_event(e,t,s){const o=this.plot_view.frame,{sx:n,sy:i}=e;if(!o.bbox.contains(n,i))return[];const _={type:"point",sx:n,sy:i},r=[];for(const e of s){const s=e.get_selection_manager(),o=e.data_source,n=[this.plot_view.renderer_views[e.id]];s.select(n,_,!0,t)&&r.push(e),o.properties.selected.change.emit()}return r}}s.EditToolView=r,r.__name__="EditToolView";class a extends _.GestureTool{constructor(e){super(e)}static init_EditTool(){this.define({custom_icon:[o.String],custom_tooltip:[o.String],empty_value:[o.Any],renderers:[o.Array,[]]})}get tooltip(){return this.custom_tooltip||this.tool_name}get computed_icon(){return this.custom_icon||this.icon}}s.EditTool=a,a.__name__="EditTool",a.init_EditTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),_=e(66),o=i.__importStar(e(19)),n=e(322),a=e(278);class d extends n.EditToolView{_tap(e){if(null!=this._draw_basepoint||null!=this._basepoint)return;const t=e.shiftKey;this._select_event(e,t,this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)if(e.keyCode===_.Keys.Backspace)this._delete_selected(t);else if(e.keyCode==_.Keys.Esc){t.data_source.selection_manager.clear()}}_set_extent([e,t],[s,i],_,o=!1){const n=this.model.renderers[0],a=this.plot_view.frame,d=n.glyph,l=n.data_source,r=a.xscales[n.x_range_name],h=a.yscales[n.y_range_name],[p,u]=r.r_invert(e,t),[c,m]=h.r_invert(s,i),[f,b]=[(p+u)/2,(c+m)/2],[y,x]=[u-p,m-c],[w,g]=[d.x.field,d.y.field],[v,E]=[d.width.field,d.height.field];if(_)this._pop_glyphs(l,this.model.num_objects),w&&l.get_array(w).push(f),g&&l.get_array(g).push(b),v&&l.get_array(v).push(y),E&&l.get_array(E).push(x),this._pad_empty_columns(l,[w,g,v,E]);else{const e=l.data[w].length-1;w&&(l.data[w][e]=f),g&&(l.data[g][e]=b),v&&(l.data[v][e]=y),E&&(l.data[E][e]=x)}this._emit_cds_changes(l,!0,!1,o)}_update_box(e,t=!1,s=!1){if(null==this._draw_basepoint)return;const i=[e.sx,e.sy],_=this.plot_view.frame,o=this.model.dimensions,n=this.model._get_dim_limits(this._draw_basepoint,i,_,o);if(null!=n){const[e,i]=n;this._set_extent(e,i,t,s)}}_doubletap(e){this.model.active&&(null!=this._draw_basepoint?(this._update_box(e,!1,!0),this._draw_basepoint=null):(this._draw_basepoint=[e.sx,e.sy],this._select_event(e,!0,this.model.renderers),this._update_box(e,!0,!1)))}_move(e){this._update_box(e,!1,!1)}_pan_start(e){if(e.shiftKey){if(null!=this._draw_basepoint)return;this._draw_basepoint=[e.sx,e.sy],this._update_box(e,!0,!1)}else{if(null!=this._basepoint)return;this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy]}}_pan(e,t=!1,s=!1){if(e.shiftKey){if(null==this._draw_basepoint)return;this._update_box(e,t,s)}else{if(null==this._basepoint)return;this._drag_points(e,this.model.renderers)}}_pan_end(e){if(this._pan(e,!1,!0),e.shiftKey)this._draw_basepoint=null;else{this._basepoint=null;for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0)}}}s.BoxEditToolView=d,d.__name__="BoxEditToolView";class l extends n.EditTool{constructor(e){super(e),this.tool_name="Box Edit Tool",this.icon=a.bk_tool_icon_box_edit,this.event_type=["tap","pan","move"],this.default_order=1}static init_BoxEditTool(){this.prototype.default_view=d,this.define({dimensions:[o.Dimensions,"both"],num_objects:[o.Int,0]})}}s.BoxEditTool=l,l.__name__="BoxEditTool",l.init_BoxEditTool()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1),r=e(66),_=s.__importStar(e(19)),o=e(8),i=e(322),d=e(278);class n extends i.EditToolView{_draw(e,t,a=!1){if(!this.model.active)return;const s=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,s);if(null==r)return;const[_,i]=r,d=s.data_source,n=s.glyph,[h,l]=[n.xs.field,n.ys.field];if("new"==t)this._pop_glyphs(d,this.model.num_objects),h&&d.get_array(h).push([_]),l&&d.get_array(l).push([i]),this._pad_empty_columns(d,[h,l]);else if("add"==t){if(h){const e=d.data[h].length-1;let t=d.get_array(h)[e];o.isArray(t)||(t=Array.from(t),d.data[h][e]=t),t.push(_)}if(l){const e=d.data[l].length-1;let t=d.get_array(l)[e];o.isArray(t)||(t=Array.from(t),d.data[l][e]=t),t.push(i)}}this._emit_cds_changes(d,!0,!0,a)}_pan_start(e){this._draw(e,"new")}_pan(e){this._draw(e,"add")}_pan_end(e){this._draw(e,"add",!0)}_tap(e){this._select_event(e,e.shiftKey,this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===r.Keys.Esc?t.data_source.selection_manager.clear():e.keyCode===r.Keys.Backspace&&this._delete_selected(t)}}a.FreehandDrawToolView=n,n.__name__="FreehandDrawToolView";class h extends i.EditTool{constructor(e){super(e),this.tool_name="Freehand Draw Tool",this.icon=d.bk_tool_icon_freehand_draw,this.event_type=["pan","tap"],this.default_order=3}static init_FreehandDrawTool(){this.prototype.default_view=n,this.define({num_objects:[_.Int,0]})}}a.FreehandDrawTool=h,h.__name__="FreehandDrawTool",h.init_FreehandDrawTool()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(1),i=e(66),a=s.__importStar(e(19)),n=e(322),_=e(278);class r extends n.EditToolView{_tap(e){const t=e.shiftKey;if(this._select_event(e,t,this.model.renderers).length||!this.model.add)return;const o=this.model.renderers[0],s=this._map_drag(e.sx,e.sy,o);if(null==s)return;const i=o.glyph,a=o.data_source,[n,_]=[i.x.field,i.y.field],[r,d]=s;this._pop_glyphs(a,this.model.num_objects),n&&a.get_array(n).push(r),_&&a.get_array(_).push(d),this._pad_empty_columns(a,[n,_]),a.change.emit(),a.data=a.data,a.properties.data.change.emit()}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===i.Keys.Backspace?this._delete_selected(t):e.keyCode==i.Keys.Esc&&t.data_source.selection_manager.clear()}_pan_start(e){this.model.drag&&(this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){this.model.drag&&null!=this._basepoint&&this._drag_points(e,this.model.renderers)}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0);this._basepoint=null}}}o.PointDrawToolView=r,r.__name__="PointDrawToolView";class d extends n.EditTool{constructor(e){super(e),this.tool_name="Point Draw Tool",this.icon=_.bk_tool_icon_point_draw,this.event_type=["tap","pan","move"],this.default_order=2}static init_PointDrawTool(){this.prototype.default_view=r,this.define({add:[a.Boolean,!0],drag:[a.Boolean,!0],num_objects:[a.Int,0]})}}o.PointDrawTool=d,d.__name__="PointDrawTool",d.init_PointDrawTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(66),a=i.__importStar(e(19)),o=e(8),n=e(327),_=e(278);class d extends n.PolyToolView{constructor(){super(…arguments),this._drawing=!1,this._initialized=!1}_tap(e){this._drawing?this._draw(e,"add",!0):this._select_event(e,e.shiftKey,this.model.renderers)}_draw(e,t,s=!1){const i=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,i);if(this._initialized||this.activate(),null==r)return;const[a,n]=this._snap_to_vertex(e,…r),_=i.data_source,d=i.glyph,[l,h]=[d.xs.field,d.ys.field];if("new"==t)this._pop_glyphs(_,this.model.num_objects),l&&_.get_array(l).push([a,a]),h&&_.get_array(h).push([n,n]),this._pad_empty_columns(_,[l,h]);else if("edit"==t){if(l){const e=_.data[l][_.data[l].length-1];e[e.length-1]=a}if(h){const e=_.data[h][_.data[h].length-1];e[e.length-1]=n}}else if("add"==t){if(l){const e=_.data[l].length-1;let t=_.get_array(l)[e];const s=t[t.length-1];t[t.length-1]=a,o.isArray(t)||(t=Array.from(t),_.data[l][e]=t),t.push(s)}if(h){const e=_.data[h].length-1;let t=_.get_array(h)[e];const s=t[t.length-1];t[t.length-1]=n,o.isArray(t)||(t=Array.from(t),_.data[h][e]=t),t.push(s)}}this._emit_cds_changes(_,!0,!1,s)}_show_vertices(){if(!this.model.active)return;const e=[],t=[];for(let s=0;s<this.model.renderers.length;s++){const i=this.model.renderers[s],r=i.data_source,a=i.glyph,[o,n]=[a.xs.field,a.ys.field];if(o)for(const t of r.get_array(o))Array.prototype.push.apply(e,t);if(n)for(const e of r.get_array(n))Array.prototype.push.apply(t,e);this._drawing&&s==this.model.renderers.length-1&&(e.splice(e.length-1,1),t.splice(t.length-1,1))}this._set_vertices(e,t)}_doubletap(e){this.model.active&&(this._drawing?(this._drawing=!1,this._draw(e,"edit",!0)):(this._drawing=!0,this._draw(e,"new",!0)))}_move(e){this._drawing&&this._draw(e,"edit")}_remove(){const e=this.model.renderers[0],t=e.data_source,s=e.glyph,[i,r]=[s.xs.field,s.ys.field];if(i){const e=t.data[i].length-1,s=t.get_array(i)[e];s.splice(s.length-1,1)}if(r){const e=t.data[r].length-1,s=t.get_array(r)[e];s.splice(s.length-1,1)}this._emit_cds_changes(t)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===r.Keys.Backspace?this._delete_selected(t):e.keyCode==r.Keys.Esc&&(this._drawing&&(this._remove(),this._drawing=!1),t.data_source.selection_manager.clear())}_pan_start(e){this.model.drag&&(this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){if(null==this._basepoint||!this.model.drag)return;const[t,s]=this._basepoint;for(const i of this.model.renderers){const r=this._map_drag(t,s,i),a=this._map_drag(e.sx,e.sy,i);if(null==a||null==r)continue;const o=i.data_source,n=i.glyph,[_,d]=[n.xs.field,n.ys.field];if(!_&&!d)continue;const[l,h]=a,[c,g]=r,[p,f]=[l-c,h-g];for(const e of o.selected.indices){let t,s,i;_&&(s=o.data[_][e]),d?(i=o.data[d][e],t=i.length):t=s.length;for(let e=0;e<t;e++)s&&(s[e]+=p),i&&(i[e]+=f)}o.change.emit()}this._basepoint=[e.sx,e.sy]}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source);this._basepoint=null}}activate(){if(this.model.vertex_renderer&&this.model.active){if(this._show_vertices(),!this._initialized)for(const e of this.model.renderers){const t=e.data_source;t.connect(t.properties.data.change,()=>this._show_vertices())}this._initialized=!0}}deactivate(){this._drawing&&(this._remove(),this._drawing=!1),this.model.vertex_renderer&&this._hide_vertices()}}s.PolyDrawToolView=d,d.__name__="PolyDrawToolView";class l extends n.PolyTool{constructor(e){super(e),this.tool_name="Polygon Draw Tool",this.icon=_.bk_tool_icon_poly_draw,this.event_type=["pan","tap","move"],this.default_order=3}static init_PolyDrawTool(){this.prototype.default_view=d,this.define({drag:[a.Boolean,!0],num_objects:[a.Int,0]})}}s.PolyDrawTool=l,l.__name__="PolyDrawTool",l.init_PolyDrawTool()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(1).__importStar(e(19)),i=e(8),s=e(322);class _ extends s.EditToolView{_set_vertices(e,t){const r=this.model.vertex_renderer.glyph,o=this.model.vertex_renderer.data_source,[s,_]=[r.x.field,r.y.field];s&&(i.isArray(e)?o.data[s]=e:r.x={value:e}),_&&(i.isArray(t)?o.data[_]=t:r.y={value:t}),this._emit_cds_changes(o,!0,!0,!1)}_hide_vertices(){this._set_vertices([],[])}_snap_to_vertex(e,t,r){if(this.model.vertex_renderer){const o=this._select_event(e,!1,[this.model.vertex_renderer]),i=this.model.vertex_renderer.data_source,s=this.model.vertex_renderer.glyph,[_,l]=[s.x.field,s.y.field];if(o.length){const e=i.selected.indices[0];_&&(t=i.data[_][e]),l&&(r=i.data[l][e]),i.selection_manager.clear()}}return[t,r]}}r.PolyToolView=_,_.__name__="PolyToolView";class l extends s.EditTool{constructor(e){super(e)}static init_PolyTool(){this.prototype.default_view=_,this.define({vertex_renderer:[o.Instance]})}}r.PolyTool=l,l.__name__="PolyTool",l.init_PolyTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(66),i=e(8),_=e(327),d=e(278);class n extends _.PolyToolView{constructor(){super(…arguments),this._drawing=!1}_doubletap(e){if(!this.model.active)return;const t=this._map_drag(e.sx,e.sy,this.model.vertex_renderer);if(null==t)return;const[s,r]=t,i=this._select_event(e,!1,[this.model.vertex_renderer]),_=this.model.vertex_renderer.data_source,d=this.model.vertex_renderer.glyph,[n,l]=[d.x.field,d.y.field];if(i.length&&null!=this._selected_renderer){const e=_.selected.indices[0];this._drawing?(this._drawing=!1,_.selection_manager.clear()):(_.selected.indices=[e+1],n&&_.get_array(n).splice(e+1,0,s),l&&_.get_array(l).splice(e+1,0,r),this._drawing=!0),_.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}else this._show_vertices(e)}_show_vertices(e){if(!this.model.active)return;const t=this._select_event(e,!1,this.model.renderers);if(!t.length)return this._set_vertices([],[]),this._selected_renderer=null,void(this._drawing=!1);const s=t[0],r=s.glyph,_=s.data_source,d=_.selected.indices[0],[n,l]=[r.xs.field,r.ys.field];let a,c;n?(a=_.data[n][d],i.isArray(a)||(_.data[n][d]=a=Array.from(a))):a=r.xs.value,l?(c=_.data[l][d],i.isArray(c)||(_.data[l][d]=c=Array.from(c))):c=r.ys.value,this._selected_renderer=s,this._set_vertices(a,c)}_move(e){if(this._drawing&&null!=this._selected_renderer){const t=this.model.vertex_renderer,s=t.data_source,r=t.glyph,i=this._map_drag(e.sx,e.sy,t);if(null==i)return;let[_,d]=i;const n=s.selected.indices;[_,d]=this._snap_to_vertex(e,_,d),s.selected.indices=n;const[l,a]=[r.x.field,r.y.field],c=n[0];l&&(s.data[l][c]=_),a&&(s.data[a][c]=d),s.change.emit(),this._selected_renderer.data_source.change.emit()}}_tap(e){const t=this.model.vertex_renderer,s=this._map_drag(e.sx,e.sy,t);if(null==s)return;if(this._drawing&&this._selected_renderer){let[r,i]=s;const _=t.data_source,d=t.glyph,[n,l]=[d.x.field,d.y.field],a=_.selected.indices;[r,i]=this._snap_to_vertex(e,r,i);const c=a[0];if(_.selected.indices=[c+1],n){const e=_.get_array(n),t=e[c];e[c]=r,e.splice(c+1,0,t)}if(l){const e=_.get_array(l),t=e[c];e[c]=i,e.splice(c+1,0,t)}return _.change.emit(),void this._emit_cds_changes(this._selected_renderer.data_source,!0,!1,!0)}const r=e.shiftKey;this._select_event(e,r,[t]),this._select_event(e,r,this.model.renderers)}_remove_vertex(){if(!this._drawing||!this._selected_renderer)return;const e=this.model.vertex_renderer,t=e.data_source,s=e.glyph,r=t.selected.indices[0],[i,_]=[s.x.field,s.y.field];i&&t.get_array(i).splice(r,1),_&&t.get_array(_).splice(r,1),t.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}_pan_start(e){this._select_event(e,!0,[this.model.vertex_renderer]),this._basepoint=[e.sx,e.sy]}_pan(e){null!=this._basepoint&&(this._drag_points(e,[this.model.vertex_renderer]),this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&(this._drag_points(e,[this.model.vertex_renderer]),this._emit_cds_changes(this.model.vertex_renderer.data_source,!1,!0,!0),this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}_keyup(e){if(!this.model.active||!this._mouse_in_frame)return;let t;t=this._selected_renderer?[this.model.vertex_renderer]:this.model.renderers;for(const s of t)e.keyCode===r.Keys.Backspace?(this._delete_selected(s),this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source)):e.keyCode==r.Keys.Esc&&(this._drawing?(this._remove_vertex(),this._drawing=!1):this._selected_renderer&&this._hide_vertices(),s.data_source.selection_manager.clear())}deactivate(){this._selected_renderer&&(this._drawing&&(this._remove_vertex(),this._drawing=!1),this._hide_vertices())}}s.PolyEditToolView=n,n.__name__="PolyEditToolView";class l extends _.PolyTool{constructor(e){super(e),this.tool_name="Poly Edit Tool",this.icon=d.bk_tool_icon_poly_edit,this.event_type=["tap","pan","move"],this.default_order=4}static init_PolyEditTool(){this.prototype.default_view=n}}s.PolyEditTool=l,l.__name__="PolyEditTool",l.init_PolyEditTool()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(1),i=e(330),l=e(105),n=s.__importStar(e(19)),_=e(278);class c extends i.SelectToolView{_compute_limits(e){const t=this.plot_view.frame,o=this.model.dimensions;let s=this._base_point;if("center"==this.model.origin){const[t,o]=s,[i,l]=e;s=[t-(i-t),o-(l-o)]}return this.model._get_dim_limits(s,e,t,o)}_pan_start(e){const{sx:t,sy:o}=e;this._base_point=[t,o]}_pan(e){const{sx:t,sy:o}=e,s=[t,o],[i,l]=this._compute_limits(s);if(this.model.overlay.update({left:i[0],right:i[1],top:l[0],bottom:l[1]}),this.model.select_every_mousemove){const t=e.shiftKey;this._do_select(i,l,!1,t)}}_pan_end(e){const{sx:t,sy:o}=e,s=[t,o],[i,l]=this._compute_limits(s),n=e.shiftKey;this._do_select(i,l,!0,n),this.model.overlay.update({left:null,right:null,top:null,bottom:null}),this._base_point=null,this.plot_view.push_state("box_select",{selection:this.plot_view.get_selection()})}_do_select([e,t],[o,s],i,l=!1){const n={type:"rect",sx0:e,sx1:t,sy0:o,sy1:s};this._select(n,i,l)}}o.BoxSelectToolView=c,c.__name__="BoxSelectToolView";const a=()=>new l.BoxAnnotation({level:"overlay",render_mode:"css",top_units:"screen",left_units:"screen",bottom_units:"screen",right_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class r extends i.SelectTool{constructor(e){super(e),this.tool_name="Box Select",this.icon=_.bk_tool_icon_box_select,this.event_type="pan",this.default_order=30}static init_BoxSelectTool(){this.prototype.default_view=c,this.define({dimensions:[n.Dimensions,"both"],select_every_mousemove:[n.Boolean,!1],overlay:[n.Instance,a],origin:[n.BoxOrigin,"corner"]}),this.register_alias("box_select",()=>new r),this.register_alias("xbox_select",()=>new r({dimensions:"width"})),this.register_alias("ybox_select",()=>new r({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}o.BoxSelectTool=r,r.__name__="BoxSelectTool",r.init_BoxSelectTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(1),n=e(275),o=e(78),i=e(97),c=e(331),_=r.__importStar(e(19)),a=e(66),l=e(281);class d extends n.GestureToolView{get computed_renderers(){const e=this.model.renderers,t=this.plot_model.renderers,s=this.model.names;return c.compute_renderers(e,t,s)}_computed_renderers_by_data_source(){const e={};for(const t of this.computed_renderers){let s;if(t instanceof o.GlyphRenderer)s=t.data_source.id;else{if(!(t instanceof i.GraphRenderer))continue;s=t.node_renderer.data_source.id}s in e||(e[s]=[]),e[s].push(t)}return e}_keyup(e){if(e.keyCode==a.Keys.Esc){for(const e of this.computed_renderers)e.get_selection_manager().clear();this.plot_view.request_render()}}_select(e,t,s){const r=this._computed_renderers_by_data_source();for(const n in r){const o=r[n],i=o[0].get_selection_manager(),c=[];for(const e of o)e.id in this.plot_view.renderer_views&&c.push(this.plot_view.renderer_views[e.id]);i.select(c,e,t,s)}null!=this.model.callback&&this._emit_callback(e),this._emit_selection_event(e,t)}_emit_selection_event(e,t=!0){const{frame:s}=this.plot_view,r=s.xscales.default,n=s.yscales.default;let o;switch(e.type){case"point":{const{sx:t,sy:s}=e,i=r.invert(t),c=n.invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}case"span":{const{sx:t,sy:s}=e,i=r.invert(t),c=n.invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}case"rect":{const{sx0:t,sx1:s,sy0:i,sy1:c}=e,[_,a]=r.r_invert(t,s),[l,d]=n.r_invert(i,c);o=Object.assign(Object.assign({},e),{x0:_,y0:l,x1:a,y1:d});break}case"poly":{const{sx:t,sy:s}=e,i=r.v_invert(t),c=n.v_invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}}this.plot_model.trigger_event(new l.SelectionGeometry(o,t))}}s.SelectToolView=d,d.__name__="SelectToolView";class u extends n.GestureTool{constructor(e){super(e)}static init_SelectTool(){this.define({renderers:[_.Any,"auto"],names:[_.Array,[]]})}}s.SelectTool=u,u.__name__="SelectTool",u.init_SelectTool()},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const r=e(9);t.compute_renderers=function(e,n,t){if(null==e)return[];let u="auto"==e?n:e;return t.length>0&&(u=u.filter(e=>r.includes(t,e.name))),u}},n function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(1),i=t(275),n=t(105),a=s.__importStar(t(19)),_=t(278);class l extends i.GestureToolView{_match_aspect(t,o,e){const s=e.bbox.aspect,i=e.bbox.h_range.end,n=e.bbox.h_range.start,a=e.bbox.v_range.end,_=e.bbox.v_range.start;let l=Math.abs(t[0]-o[0]),r=Math.abs(t[1]-o[1]);const h=0==r?0:l/r,[c]=h>=s?[1,h/s]:[s/h,1];let m,p,d,u;return t[0]<=o[0]?(m=t[0],p=t[0]+l*c,p>i&&(p=i)):(p=t[0],m=t[0]-l*c,m<n&&(m=n)),l=Math.abs(p-m),t[1]<=o[1]?(u=t[1],d=t[1]+l/s,d>a&&(d=a)):(d=t[1],u=t[1]-l/s,u<_&&(u=_)),r=Math.abs(d-u),t[0]<=o[0]?p=t[0]+s*r:m=t[0]-s*r,[[m,p],[u,d]]}_compute_limits(t){const o=this.plot_view.frame,e=this.model.dimensions;let s,i,n=this._base_point;if("center"==this.model.origin){const[o,e]=n,[s,i]=t;n=[o-(s-o),e-(i-e)]}return this.model.match_aspect&&"both"==e?[s,i]=this._match_aspect(n,t,o):[s,i]=this.model._get_dim_limits(n,t,o,e),[s,i]}_pan_start(t){this._base_point=[t.sx,t.sy]}_pan(t){const o=[t.sx,t.sy],[e,s]=this._compute_limits(o);this.model.overlay.update({left:e[0],right:e[1],top:s[0],bottom:s[1]})}_pan_end(t){const o=[t.sx,t.sy],[e,s]=this._compute_limits(o);this._update(e,s),this.model.overlay.update({left:null,right:null,top:null,bottom:null}),this._base_point=null}_update([t,o],[e,s]){if(Math.abs(o-t)<=5||Math.abs(s-e)<=5)return;const{xscales:i,yscales:n}=this.plot_view.frame,a={};for(const e in i){const s=i[e],[n,_]=s.r_invert(t,o);a[e]={start:n,end:_}}const _={};for(const t in n){const o=n[t],[i,a]=o.r_invert(e,s);_[t]={start:i,end:a}}const l={xrs:a,yrs:_};this.plot_view.push_state("box_zoom",{range:l}),this.plot_view.update_range(l)}}e.BoxZoomToolView=l,l.__name__="BoxZoomToolView";const r=()=>new n.BoxAnnotation({level:"overlay",render_mode:"css",top_units:"screen",left_units:"screen",bottom_units:"screen",right_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class h extends i.GestureTool{constructor(t){super(t),this.tool_name="Box Zoom",this.icon=_.bk_tool_icon_box_zoom,this.event_type="pan",this.default_order=20}static init_BoxZoomTool(){this.prototype.default_view=l,this.define({dimensions:[a.Dimensions,"both"],overlay:[a.Instance,r],match_aspect:[a.Boolean,!1],origin:[a.BoxOrigin,"corner"]}),this.register_alias("box_zoom",()=>new h({dimensions:"both"})),this.register_alias("xbox_zoom",()=>new h({dimensions:"width"})),this.register_alias("ybox_zoom",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}e.BoxZoomTool=h,h.__name__="BoxZoomTool",h.init_BoxZoomTool()},n function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const l=e(1),a=e(330),o=e(138),i=e(66),_=l.__importStar(e(19)),c=e(278);class n extends a.SelectToolView{initialize(){super.initialize(),this.data=null}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._active_change())}_active_change(){this.model.active||this._clear_overlay()}_keyup(e){e.keyCode==i.Keys.Enter&&this._clear_overlay()}_pan_start(e){const{sx:s,sy:t}=e;this.data={sx:[s],sy:[t]}}_pan(e){const{sx:s,sy:t}=e,[l,a]=this.plot_view.frame.bbox.clip(s,t);if(this.data.sx.push(l),this.data.sy.push(a),this.model.overlay.update({xs:this.data.sx,ys:this.data.sy}),this.model.select_every_mousemove){const s=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!1,s)}}_pan_end(e){this._clear_overlay();const s=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!0,s),this.plot_view.push_state("lasso_select",{selection:this.plot_view.get_selection()})}_clear_overlay(){this.model.overlay.update({xs:[],ys:[]})}_do_select(e,s,t,l){const a={type:"poly",sx:e,sy:s};this._select(a,t,l)}}t.LassoSelectToolView=n,n.__name__="LassoSelectToolView";const h=()=>new o.PolyAnnotation({level:"overlay",xs_units:"screen",ys_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class r extends a.SelectTool{constructor(e){super(e),this.tool_name="Lasso Select",this.icon=c.bk_tool_icon_lasso_select,this.event_type="pan",this.default_order=12}static init_LassoSelectTool(){this.prototype.default_view=n,this.define({select_every_mousemove:[_.Boolean,!0],overlay:[_.Instance,h]}),this.register_alias("lasso_select",()=>new r)}}t.LassoSelectTool=r,r.__name__="LassoSelectTool",r.init_LassoSelectTool()},n function _(t,s,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),e=t(275),o=i.__importStar(t(19)),a=t(278);class _ extends e.GestureToolView{_pan_start(t){this.last_dx=0,this.last_dy=0;const{sx:s,sy:n}=t,i=this.plot_view.frame.bbox;if(!i.contains(s,n)){const t=i.h_range,e=i.v_range;(s<t.start||s>t.end)&&(this.v_axis_only=!0),(n<e.start||n>e.end)&&(this.h_axis_only=!0)}null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}_pan(t){this._update(t.deltaX,t.deltaY),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}_pan_end(t){this.h_axis_only=!1,this.v_axis_only=!1,null!=this.pan_info&&this.plot_view.push_state("pan",{range:this.pan_info})}_update(t,s){const n=this.plot_view.frame,i=t-this.last_dx,e=s-this.last_dy,o=n.bbox.h_range,a=o.start-i,_=o.end-i,h=n.bbox.v_range,l=h.start-e,r=h.end-e,d=this.model.dimensions;let c,p,m,u,x,y;"width"!=d&&"both"!=d||this.v_axis_only?(c=o.start,p=o.end,m=0):(c=a,p=_,m=-i),"height"!=d&&"both"!=d||this.h_axis_only?(u=h.start,x=h.end,y=0):(u=l,x=r,y=-e),this.last_dx=t,this.last_dy=s;const{xscales:v,yscales:b}=n,g={};for(const t in v){const s=v[t],[n,i]=s.r_invert(c,p);g[t]={start:n,end:i}}const w={};for(const t in b){const s=b[t],[n,i]=s.r_invert(u,x);w[t]={start:n,end:i}}this.pan_info={xrs:g,yrs:w,sdx:m,sdy:y},this.plot_view.update_range(this.pan_info,!0)}}n.PanToolView=_,_.__name__="PanToolView";class h extends e.GestureTool{constructor(t){super(t),this.tool_name="Pan",this.event_type="pan",this.default_order=10}static init_PanTool(){this.prototype.default_view=_,this.define({dimensions:[o.Dimensions,"both"]}),this.register_alias("pan",()=>new h({dimensions:"both"})),this.register_alias("xpan",()=>new h({dimensions:"width"})),this.register_alias("ypan",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip("Pan",this.dimensions)}get icon(){switch(this.dimensions){case"both":return a.bk_tool_icon_pan;case"width":return a.bk_tool_icon_xpan;case"height":return a.bk_tool_icon_ypan}}}n.PanTool=h,h.__name__="PanTool",h.init_PanTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const l=e(1),o=e(330),i=e(138),a=e(66),_=l.__importStar(e(19)),c=e(9),n=e(278);class h extends o.SelectToolView{initialize(){super.initialize(),this.data={sx:[],sy:[]}}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._active_change())}_active_change(){this.model.active||this._clear_data()}_keyup(e){e.keyCode==a.Keys.Enter&&this._clear_data()}_doubletap(e){const t=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!0,t),this.plot_view.push_state("poly_select",{selection:this.plot_view.get_selection()}),this._clear_data()}_clear_data(){this.data={sx:[],sy:[]},this.model.overlay.update({xs:[],ys:[]})}_tap(e){const{sx:t,sy:s}=e;this.plot_view.frame.bbox.contains(t,s)&&(this.data.sx.push(t),this.data.sy.push(s),this.model.overlay.update({xs:c.copy(this.data.sx),ys:c.copy(this.data.sy)}))}_do_select(e,t,s,l){const o={type:"poly",sx:e,sy:t};this._select(o,s,l)}}s.PolySelectToolView=h,h.__name__="PolySelectToolView";const y=()=>new i.PolyAnnotation({level:"overlay",xs_units:"screen",ys_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class d extends o.SelectTool{constructor(e){super(e),this.tool_name="Poly Select",this.icon=n.bk_tool_icon_polygon_select,this.event_type="tap",this.default_order=11}static init_PolySelectTool(){this.prototype.default_view=h,this.define({overlay:[_.Instance,y]}),this.register_alias("poly_select",()=>new d)}}s.PolySelectTool=d,d.__name__="PolySelectTool",d.init_PolySelectTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(105),l=e(70),a=i.__importStar(e(19)),r=e(275),o=e(278);function _(e){switch(e){case 1:return 2;case 2:return 1;case 4:return 5;case 5:return 4;default:return e}}function h(e,t,s,i){if(null==t)return!1;const n=s.compute(t);return Math.abs(e-n)<i}function d(e,t,s,i,n){let l=!0;if(null!=n.left&&null!=n.right){const t=s.invert(e);(t<n.left||t>n.right)&&(l=!1)}if(null!=n.bottom&&null!=n.top){const e=i.invert(t);(e<n.bottom||e>n.top)&&(l=!1)}return l}function u(e,t,s){let i=0;return e>=s.start&&e<=s.end&&(i+=1),t>=s.start&&t<=s.end&&(i+=1),i}function c(e,t,s,i){const n=t.compute(e),l=t.invert(n+s);return l>=i.start&&l<=i.end?l:e}function g(e,t,s){return e>t.start?(t.end=e,s):(t.end=t.start,t.start=e,_(s))}function y(e,t,s){return e<t.end?(t.start=e,s):(t.start=t.end,t.end=e,_(s))}function f(e,t,s,i){const[n,l]=t.r_compute(e.start,e.end),[a,r]=t.r_invert(n+s,l+s),o=u(e.start,e.end,i);u(a,r,i)>=o&&(e.start=a,e.end=r)}s.flip_side=_,s.is_near=h,s.is_inside=d,s.sides_inside=u,s.compute_value=c,s.update_range_end_side=g,s.update_range_start_side=y,s.update_range=f;class v extends r.GestureToolView{initialize(){super.initialize(),this.side=0,this.model.update_overlay_from_ranges()}connect_signals(){super.connect_signals(),null!=this.model.x_range&&this.connect(this.model.x_range.change,()=>this.model.update_overlay_from_ranges()),null!=this.model.y_range&&this.connect(this.model.y_range.change,()=>this.model.update_overlay_from_ranges())}_pan_start(e){this.last_dx=0,this.last_dy=0;const t=this.model.x_range,s=this.model.y_range,i=this.plot_view.frame,l=i.xscales.default,a=i.yscales.default,r=this.model.overlay,{left:o,right:_,top:u,bottom:c}=r,g=this.model.overlay.properties.line_width.value()+n.EDGE_TOLERANCE;null!=t&&this.model.x_interaction&&(h(e.sx,o,l,g)?this.side=1:h(e.sx,_,l,g)?this.side=2:d(e.sx,e.sy,l,a,r)&&(this.side=3)),null!=s&&this.model.y_interaction&&(0==this.side&&h(e.sy,c,a,g)&&(this.side=4),0==this.side&&h(e.sy,u,a,g)?this.side=5:d(e.sx,e.sy,l,a,this.model.overlay)&&(3==this.side?this.side=7:this.side=6))}_pan(e){const t=this.plot_view.frame,s=e.deltaX-this.last_dx,i=e.deltaY-this.last_dy,n=this.model.x_range,l=this.model.y_range,a=t.xscales.default,r=t.yscales.default;if(null!=n)if(3==this.side||7==this.side)f(n,a,s,t.x_range);else if(1==this.side){const e=c(n.start,a,s,t.x_range);this.side=y(e,n,this.side)}else if(2==this.side){const e=c(n.end,a,s,t.x_range);this.side=g(e,n,this.side)}if(null!=l)if(6==this.side||7==this.side)f(l,r,i,t.y_range);else if(4==this.side){const e=c(l.start,r,i,t.y_range);this.side=y(e,l,this.side)}else if(5==this.side){const e=c(l.end,r,i,t.y_range);this.side=g(e,l,this.side)}this.last_dx=e.deltaX,this.last_dy=e.deltaY}_pan_end(e){this.side=0}}s.RangeToolView=v,v.__name__="RangeToolView";const m=()=>new n.BoxAnnotation({level:"overlay",render_mode:"canvas",fill_color:"lightgrey",fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:.5},line_dash:[2,2]});class p extends r.GestureTool{constructor(e){super(e),this.tool_name="Range Tool",this.icon=o.bk_tool_icon_range,this.event_type="pan",this.default_order=1}static init_RangeTool(){this.prototype.default_view=v,this.define({x_range:[a.Instance,null],x_interaction:[a.Boolean,!0],y_range:[a.Instance,null],y_interaction:[a.Boolean,!0],overlay:[a.Instance,m]})}initialize(){super.initialize(),this.overlay.in_cursor="grab",this.overlay.ew_cursor=null!=this.x_range&&this.x_interaction?"ew-resize":null,this.overlay.ns_cursor=null!=this.y_range&&this.y_interaction?"ns-resize":null}update_overlay_from_ranges(){null==this.x_range&&null==this.y_range&&(this.overlay.left=null,this.overlay.right=null,this.overlay.bottom=null,this.overlay.top=null,l.logger.warn("RangeTool not configured with any Ranges.")),null==this.x_range?(this.overlay.left=null,this.overlay.right=null):(this.overlay.left=this.x_range.start,this.overlay.right=this.x_range.end),null==this.y_range?(this.overlay.bottom=null,this.overlay.top=null):(this.overlay.bottom=this.y_range.start,this.overlay.top=this.y_range.end)}}s.RangeTool=p,p.__name__="RangeTool",p.init_RangeTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),o=e(330),n=i.__importStar(e(19)),a=e(278);class _ extends o.SelectToolView{_tap(e){const{sx:t,sy:s}=e,i={type:"point",sx:t,sy:s},o=e.shiftKey;this._select(i,!0,o)}_select(e,t,s){const i=this.model.callback;if("select"==this.model.behavior){const o=this._computed_renderers_by_data_source();for(const n in o){const a=o[n],_=a[0].get_selection_manager(),c=a.map(e=>this.plot_view.renderer_views[e.id]);if(_.select(c,e,t,s)&&null!=i){const{frame:t}=this.plot_view,s=t.xscales[a[0].x_range_name],o=t.yscales[a[0].y_range_name],n=s.invert(e.sx),c=o.invert(e.sy),l={geometries:Object.assign(Object.assign({},e),{x:n,y:c}),source:_.source};i.execute(this.model,l)}}this._emit_selection_event(e),this.plot_view.push_state("tap",{selection:this.plot_view.get_selection()})}else for(const t of this.computed_renderers){const s=t.get_selection_manager();if(s.inspect(this.plot_view.renderer_views[t.id],e)&&null!=i){const{frame:o}=this.plot_view,n=o.xscales[t.x_range_name],a=o.yscales[t.y_range_name],_=n.invert(e.sx),c=a.invert(e.sy),l={geometries:Object.assign(Object.assign({},e),{x:_,y:c}),source:s.source};i.execute(this.model,l)}}}}s.TapToolView=_,_.__name__="TapToolView";class c extends o.SelectTool{constructor(e){super(e),this.tool_name="Tap",this.icon=a.bk_tool_icon_tap_select,this.event_type="tap",this.default_order=10}static init_TapTool(){this.prototype.default_view=_,this.define({behavior:[n.TapBehavior,"select"],callback:[n.Any]}),this.register_alias("click",()=>new c({behavior:"inspect"})),this.register_alias("tap",()=>new c)}}s.TapTool=c,c.__name__="TapTool",c.init_TapTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),o=e(275),i=n.__importStar(e(19)),a=e(278);class l extends o.GestureToolView{_scroll(e){let t=this.model.speed*e.delta;t>.9?t=.9:t<-.9&&(t=-.9),this._update_ranges(t)}_update_ranges(e){const{frame:t}=this.plot_view,s=t.bbox.h_range,n=t.bbox.v_range,[o,i]=[s.start,s.end],[a,l]=[n.start,n.end];let r,h,_,d;switch(this.model.dimension){case"height":{const t=Math.abs(l-a);r=o,h=i,_=a-t*e,d=l-t*e;break}case"width":{const t=Math.abs(i-o);r=o-t*e,h=i-t*e,_=a,d=l;break}default:throw new Error("this shouldn’t have happened")}const{xscales:c,yscales:p}=t,m={};for(const e in c){const t=c[e],[s,n]=t.r_invert(r,h);m[e]={start:s,end:n}}const u={};for(const e in p){const t=p[e],[s,n]=t.r_invert(_,d);u[e]={start:s,end:n}}const w={xrs:m,yrs:u,factor:e};this.plot_view.push_state("wheel_pan",{range:w}),this.plot_view.update_range(w,!1,!0),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}}s.WheelPanToolView=l,l.__name__="WheelPanToolView";class r extends o.GestureTool{constructor(e){super(e),this.tool_name="Wheel Pan",this.icon=a.bk_tool_icon_wheel_pan,this.event_type="scroll",this.default_order=12}static init_WheelPanTool(){this.prototype.default_view=l,this.define({dimension:[i.Dimension,"width"]}),this.internal({speed:[i.Number,.001]}),this.register_alias("xwheel_pan",()=>new r({dimension:"width"})),this.register_alias("ywheel_pan",()=>new r({dimension:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimension)}}s.WheelPanTool=r,r.__name__="WheelPanTool",r.init_WheelPanTool()},n function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),i=e(275),l=e(320),n=s.__importStar(e(19)),_=e(101),h=e(278);class a extends i.GestureToolView{_pinch(e){const{sx:o,sy:t,scale:s}=e;let i;i=s>=1?20*(s-1):-20/s,this._scroll({type:"wheel",sx:o,sy:t,delta:i})}_scroll(e){const{frame:o}=this.plot_view,t=o.bbox.h_range,s=o.bbox.v_range,{sx:i,sy:n}=e,_=this.model.dimensions,h=("width"==_||"both"==_)&&t.start<i&&i<t.end,a=("height"==_||"both"==_)&&s.start<n&&n<s.end;if(!(h&&a||this.model.zoom_on_axis))return;const m=this.model.speed*e.delta,r=l.scale_range(o,m,h,a,{x:i,y:n});this.plot_view.push_state("wheel_zoom",{range:r}),this.plot_view.update_range(r,!1,!0,this.model.maintain_focus),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}}t.WheelZoomToolView=a,a.__name__="WheelZoomToolView";class m extends i.GestureTool{constructor(e){super(e),this.tool_name="Wheel Zoom",this.icon=h.bk_tool_icon_wheel_zoom,this.event_type=_.is_mobile?"pinch":"scroll",this.default_order=10}static init_WheelZoomTool(){this.prototype.default_view=a,this.define({dimensions:[n.Dimensions,"both"],maintain_focus:[n.Boolean,!0],zoom_on_axis:[n.Boolean,!0],speed:[n.Number,1/600]}),this.register_alias("wheel_zoom",()=>new m({dimensions:"both"})),this.register_alias("xwheel_zoom",()=>new m({dimensions:"width"})),this.register_alias("ywheel_zoom",()=>new m({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}t.WheelZoomTool=m,m.__name__="WheelZoomTool",m.init_WheelZoomTool()},n function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),o=i(269),n=i(140),l=t.__importStar(i(19)),h=i(24),r=i(278);class _ extends o.InspectToolView{_move(i){if(!this.model.active)return;const{sx:e,sy:s}=i;this.plot_view.frame.bbox.contains(e,s)?this._update_spans(e,s):this._update_spans(null,null)}_move_exit(i){this._update_spans(null,null)}_update_spans(i,e){const s=this.model.dimensions;"width"!=s&&"both"!=s||(this.model.spans.width.computed_location=e),"height"!=s&&"both"!=s||(this.model.spans.height.computed_location=i)}}s.CrosshairToolView=_,_.__name__="CrosshairToolView";class a extends o.InspectTool{constructor(i){super(i),this.tool_name="Crosshair",this.icon=r.bk_tool_icon_crosshair}static init_CrosshairTool(){this.prototype.default_view=_,this.define({dimensions:[l.Dimensions,"both"],line_color:[l.Color,"black"],line_width:[l.Number,1],line_alpha:[l.Number,1]}),this.internal({location_units:[l.SpatialUnits,"screen"],render_mode:[l.RenderMode,"css"],spans:[l.Any]}),this.register_alias("crosshair",()=>new a)}get tooltip(){return this._get_dim_tooltip("Crosshair",this.dimensions)}get synthetic_renderers(){return h.values(this.spans)}initialize(){super.initialize(),this.spans={width:new n.Span({for_hover:!0,dimension:"width",render_mode:this.render_mode,location_units:this.location_units,line_color:this.line_color,line_width:this.line_width,line_alpha:this.line_alpha}),height:new n.Span({for_hover:!0,dimension:"height",render_mode:this.render_mode,location_units:this.location_units,line_color:this.line_color,line_width:this.line_width,line_alpha:this.line_alpha})}}}s.CrosshairTool=a,a.__name__="CrosshairTool",a.init_CrosshairTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(1),o=e(69),i=r.__importStar(e(19)),a=e(24),n=e(26);class u extends o.Model{constructor(e){super(e)}static init_CustomJSHover(){this.define({args:[i.Any,{}],code:[i.String,""]})}get values(){return a.values(this.args)}_make_code(e,t,s,r){return new Function(…a.keys(this.args),e,t,s,n.use_strict(r))}format(e,t,s){return this._make_code("value","format","special_vars",this.code)(…this.values,e,t,s)}}s.CustomJSHover=u,u.__name__="CustomJSHover",u.init_CustomJSHover()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),i=e(269),o=e(143),r=e(78),l=e(97),a=e(331),c=n.__importStar(e(87)),d=e(158),_=e(66),p=n.__importStar(e(19)),h=e(21),m=e(24),u=e(8),y=e(96),x=e(278),f=e(144);function v(e,t,s,n,i,o){const r={x:i[e],y:o[e]},l={x:i[e+1],y:o[e+1]};let a,d;if("span"==t.type)"h"==t.direction?(a=Math.abs(r.x-s),d=Math.abs(l.x-s)):(a=Math.abs(r.y-n),d=Math.abs(l.y-n));else{const e={x:s,y:n};a=c.dist_2_pts(r,e),d=c.dist_2_pts(l,e)}return a<d?[[r.x,r.y],e]:[[l.x,l.y],e+1]}function w(e,t,s){return[[e[s],t[s]],s]}s._nearest_line_hit=v,s._line_hit=w;class b extends i.InspectToolView{initialize(){super.initialize(),this.ttviews={}}remove(){y.remove_views(this.ttviews),super.remove()}connect_signals(){super.connect_signals();for(const e of this.computed_renderers)e instanceof r.GlyphRenderer?this.connect(e.data_source.inspect,this._update):e instanceof l.GraphRenderer&&(this.connect(e.node_renderer.data_source.inspect,this._update),this.connect(e.edge_renderer.data_source.inspect,this._update));this.connect(this.model.properties.renderers.change,()=>this._computed_renderers=this._ttmodels=null),this.connect(this.model.properties.names.change,()=>this._computed_renderers=this._ttmodels=null),this.connect(this.model.properties.tooltips.change,()=>this._ttmodels=null)}_compute_ttmodels(){const e={},t=this.model.tooltips;if(null!=t)for(const s of this.computed_renderers)if(s instanceof r.GlyphRenderer){const n=new o.Tooltip({custom:u.isString(t)||u.isFunction(t),attachment:this.model.attachment,show_arrow:this.model.show_arrow});e[s.id]=n}else if(s instanceof l.GraphRenderer){const n=new o.Tooltip({custom:u.isString(t)||u.isFunction(t),attachment:this.model.attachment,show_arrow:this.model.show_arrow});e[s.node_renderer.id]=n,e[s.edge_renderer.id]=n}return y.build_views(this.ttviews,m.values(e),{parent:this.plot_view}),e}get computed_renderers(){if(null==this._computed_renderers){const e=this.model.renderers,t=this.plot_model.renderers,s=this.model.names;this._computed_renderers=a.compute_renderers(e,t,s)}return this._computed_renderers}get ttmodels(){return null==this._ttmodels&&(this._ttmodels=this._compute_ttmodels()),this._ttmodels}_clear(){this._inspect(1/0,1/0);for(const e in this.ttmodels){this.ttmodels[e].clear()}}_move(e){if(!this.model.active)return;const{sx:t,sy:s}=e;this.plot_view.frame.bbox.contains(t,s)?this._inspect(t,s):this._clear()}_move_exit(){this._clear()}_inspect(e,t){let s;if("mouse"==this.model.mode)s={type:"point",sx:e,sy:t};else{s={type:"span",direction:"vline"==this.model.mode?"h":"v",sx:e,sy:t}}for(const e of this.computed_renderers){e.get_selection_manager().inspect(this.plot_view.renderer_views[e.id],s)}null!=this.model.callback&&this._emit_callback(s)}_update([e,{geometry:t}]){if(!this.model.active)return;if(!(e instanceof r.GlyphRendererView||e instanceof l.GraphRendererView))return;const{model:s}=e;if("ignore"==this.model.muted_policy&&s instanceof r.GlyphRenderer&&s.muted)return;const n=this.ttmodels[s.id];if(null==n)return;n.clear();const i=s.get_selection_manager();let o=i.inspectors[s.id];if(s instanceof r.GlyphRenderer&&(o=s.view.convert_selection_to_subset(o)),o.is_empty())return;const a=i.source,{frame:c}=this.plot_view,{sx:d,sy:_}=t,p=c.xscales[s.x_range_name],h=c.yscales[s.y_range_name],u=p.invert(d),y=h.invert(_),x=e.glyph;for(const s of o.line_indices){let i,r,l=x._x[s+1],c=x._y[s+1],m=s;switch(this.model.line_policy){case"interp":[l,c]=x.get_interpolation_hit(s,t),i=p.compute(l),r=h.compute(c);break;case"prev":[[i,r],m]=w(x.sx,x.sy,s);break;case"next":[[i,r],m]=w(x.sx,x.sy,s+1);break;case"nearest":[[i,r],m]=v(s,t,d,_,x.sx,x.sy),l=x._x[m],c=x._y[m];break;default:[i,r]=[d,_]}const f={index:m,x:u,y,sx:d,sy:_,data_x:l,data_y:c,rx:i,ry:r,indices:o.line_indices,name:e.model.name};n.add(i,r,this._render_tooltips(a,m,f))}for(const e of o.image_indices){const t={index:e.index,x:u,y,sx:d,sy:_},s=this._render_tooltips(a,e,t);n.add(d,_,s)}for(const i of o.indices)if(m.isEmpty(o.multiline_indices)){const t=null!=x._x?x._x[i]:void 0,l=null!=x._y?x._y[i]:void 0;let c,p,h;if("snap_to_data"==this.model.point_policy){let e=x.get_anchor_point(this.model.anchor,i,[d,_]);null==e&&(e=x.get_anchor_point("center",i,[d,_])),c=e.x,p=e.y}else[c,p]=[d,_];h=s instanceof r.GlyphRenderer?s.view.convert_indices_from_subset([i])[0]:i;const m={index:h,x:u,y,sx:d,sy:_,data_x:t,data_y:l,indices:o.indices,name:e.model.name};n.add(c,p,this._render_tooltips(a,h,m))}else for(const l of o.multiline_indices[i.toString()]){let c,m,f,b=x._xs[i][l],g=x._ys[i][l],k=l;switch(this.model.line_policy){case"interp":[b,g]=x.get_interpolation_hit(i,l,t),c=p.compute(b),m=h.compute(g);break;case"prev":[[c,m],k]=w(x.sxs[i],x.sys[i],l);break;case"next":[[c,m],k]=w(x.sxs[i],x.sys[i],l+1);break;case"nearest":[[c,m],k]=v(l,t,d,_,x.sxs[i],x.sys[i]),b=x._xs[i][k],g=x._ys[i][k];break;default:throw new Error("should’t have happened")}f=s instanceof r.GlyphRenderer?s.view.convert_indices_from_subset([i])[0]:i;const T={index:f,x:u,y,sx:d,sy:_,data_x:b,data_y:g,segment_index:k,indices:o.multiline_indices,name:e.model.name};n.add(c,m,this._render_tooltips(a,f,T))}}_emit_callback(e){for(const t of this.computed_renderers){const s=t.data_source.inspected,{frame:n}=this.plot_view,i=n.xscales[t.x_range_name],o=n.yscales[t.y_range_name],r=i.invert(e.sx),l=o.invert(e.sy),a=Object.assign({x:r,y:l},e);this.model.callback.execute(this.model,{index:s,geometry:a,renderer:t})}}_render_tooltips(e,t,s){const n=this.model.tooltips;if(u.isString(n)){const i=_.div();return i.innerHTML=d.replace_placeholders(n,e,t,this.model.formatters,s),i}if(u.isFunction(n))return n(e,s);{const i=_.div({style:{display:"table",borderSpacing:"2px"}});for(const[o,r]of n){const n=_.div({style:{display:"table-row"}});let l;if(i.appendChild(n),l=_.div({style:{display:"table-cell"},class:f.bk_tooltip_row_label},0!=o.length?`${o}: :""),n.appendChild(l),l=_.div({style:{display:"table-cell"},class:f.bk_tooltip_row_value}),n.appendChild(l),r.indexOf("$color")>=0){const[,s="",n]=r.match(/\$color(\[.*\])?:(\w*)/),i=e.get_column(n);if(null==i){const e=_.span({},`${n} unknown);l.appendChild(e);continue}const o=s.indexOf("hex")>=0,a=s.indexOf("swatch")>=0;let c=u.isNumber(t)?i[t]:null;if(null==c){const e=_.span({},"(null)");l.appendChild(e);continue}o&&(c=h.color2hex(c));let d=_.span({},c);l.appendChild(d),a&&(d=_.span({class:f.bk_tooltip_color_block,style:{backgroundColor:c}}," "),l.appendChild(d))}else{const n=_.span();n.innerHTML=d.replace_placeholders(r.replace("$~","$data_"),e,t,this.model.formatters,s),l.appendChild(n)}}return i}}}s.HoverToolView=b,b.__name__="HoverToolView";class g extends i.InspectTool{constructor(e){super(e),this.tool_name="Hover",this.icon=x.bk_tool_icon_hover}static init_HoverTool(){this.prototype.default_view=b,this.define({tooltips:[p.Any,[["index","$index"],["data (x, y)","($x, $y)"],["screen (x, y)","($sx, $sy)"]]],formatters:[p.Any,{}],renderers:[p.Any,"auto"],names:[p.Array,[]],mode:[p.HoverMode,"mouse"],muted_policy:[p.MutedPolicy,"show"],point_policy:[p.PointPolicy,"snap_to_data"],line_policy:[p.LinePolicy,"nearest"],show_arrow:[p.Boolean,!0],anchor:[p.Anchor,"center"],attachment:[p.TooltipAttachment,"horizontal"],callback:[p.Any]}),this.register_alias("hover",()=>new g)}}s.HoverTool=g,g.__name__="HoverTool",g.init_HoverTool()},n function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),s=t(14),n=t(69),l=t(269);class c extends n.Model{constructor(t){super(t)}static init_ToolProxy(){this.define({tools:[i.Array,[]],active:[i.Boolean,!1],disabled:[i.Boolean,!1]})}get button_view(){return this.tools[0].button_view}get event_type(){return this.tools[0].event_type}get tooltip(){return this.tools[0].tooltip}get tool_name(){return this.tools[0].tool_name}get icon(){return this.tools[0].computed_icon}get computed_icon(){return this.icon}get toggleable(){const t=this.tools[0];return t instanceof l.InspectTool&&t.toggleable}initialize(){super.initialize(),this.do=new s.Signal0(this,"do")}connect_signals(){super.connect_signals(),this.connect(this.do,()=>this.doit()),this.connect(this.properties.active.change,()=>this.set_active())}doit(){for(const t of this.tools)t.do.emit()}set_active(){for(const t of this.tools)t.active=this.active}}e.ToolProxy=c,c.__name__="ToolProxy",c.init_ToolProxy()},n function _(t,o,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),e=t(9),n=t(274),r=t(343),l=t(244),c=t(187);class h extends n.ToolbarBase{constructor(t){super(t)}static init_ProxyToolbar(){this.define({toolbars:[i.Array,[]]})}initialize(){super.initialize(),this._merge_tools()}_merge_tools(){this._proxied_tools=[];const t={},o={},s={},i=[],n=[];for(const t of this.help)e.includes(n,t.redirect)||(i.push(t),n.push(t.redirect));this._proxied_tools.push(…i),this.help=i;for(const t in this.gestures){const o=this.gestures[t];t in s||(s[t]={});for(const i of o.tools)i.type in s[t]||(s[t][i.type]=[]),s[t][i.type].push(i)}for(const o of this.inspectors)o.type in t||(t[o.type]=[]),t[o.type].push(o);for(const t of this.actions)t.type in o||(o[t.type]=[]),o[t.type].push(t);const l=(t,o=!1)=>{const s=new r.ToolProxy({tools:t,active:o});return this._proxied_tools.push(s),s};for(const t in s){const o=this.gestures[t];o.tools=[];for(const i in s[t]){const e=s[t][i];if(e.length>0)if("multi"==t)for(const t of e){const s=l([t]);o.tools.push(s),this.connect(s.properties.active.change,this._active_change.bind(this,s))}else{const t=l(e);o.tools.push(t),this.connect(t.properties.active.change,this._active_change.bind(this,t))}}}this.actions=[];for(const t in o){const s=o[t];if("CustomAction"==t)for(const t of s)this.actions.push(l([t]));else s.length>0&&this.actions.push(l(s))}this.inspectors=[];for(const o in t){const s=t[o];s.length>0&&this.inspectors.push(l(s,!0))}for(const t in this.gestures){const o=this.gestures[t];0!=o.tools.length&&(o.tools=e.sort_by(o.tools,t=>t.default_order),"pinch"!=t&&"scroll"!=t&&"multi"!=t&&(o.tools[0].active=!0))}}}s.ProxyToolbar=h,h.__name__="ProxyToolbar",h.init_ProxyToolbar();class a extends l.LayoutDOMView{initialize(){this.model.toolbar.toolbar_location=this.model.toolbar_location,super.initialize()}get child_models(){return[this.model.toolbar]}_update_layout(){this.layout=new c.ContentBox(this.child_views[0].el);const{toolbar:t}=this.model;t.horizontal?this.layout.set_sizing({width_policy:"fit",min_width:100,height_policy:"fixed"}):this.layout.set_sizing({width_policy:"fixed",height_policy:"fit",min_height:100})}}s.ToolbarBoxView=a,a.__name__="ToolbarBoxView";class _ extends l.LayoutDOM{constructor(t){super(t)}static init_ToolbarBox(){this.prototype.default_view=a,this.define({toolbar:[i.Instance],toolbar_location:[i.Location,"right"]})}}s.ToolbarBox=_,_.__name__="ToolbarBox",_.init_ToolbarBox()},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(5),i=e(64),d=e(96),c=e(66),l=e(346);t.index={},t.add_document_standalone=async function(e,n,s=[],a=!1){const u=new Map;async function r(o){let a;const r=e.roots().indexOf(o),f=s[r];null!=f?a=f:n.classList.contains(l.BOKEH_ROOT)?a=n:(a=c.div({class:l.BOKEH_ROOT}),n.appendChild(a));const v=await d.build_view(o,{parent:null});return v instanceof i.DOMView&&v.renderTo(a),u.set(o,v),t.index[o.id]=v,v}for(const n of e.roots())await r(n);return a&&(window.document.title=e.title()),e.on_change(e=>{e instanceof o.RootAddedEvent?r(e.model):e instanceof o.RootRemovedEvent?function(e){const n=u.get(e);null!=n&&(n.remove(),u.delete(e),delete t.index[e.id])}(e.model):a&&e instanceof o.TitleChangedEvent&&(window.document.title=e.title)}),[…u.values()]}},n function _(e,o,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(66),r=e(67);function l(e){let o=document.getElementById(e);if(null==o)throw new Error(Error rendering Bokeh model: could not find #${e} HTML tag);if(!document.body.contains(o))throw new Error(Error rendering Bokeh model: element #${e} must be under <body>);if("SCRIPT"==o.tagName){const e=t.div({class:n.BOKEH_ROOT});t.replaceWith(o,e),o=e}return o}n.BOKEH_ROOT=r.bk_root,n._resolve_element=function(e){const{elementid:o}=e;return null!=o?l(o):document.body},n._resolve_root_elements=function(e){const o=[];if(null!=e.root_ids&&null!=e.roots)for(const n of e.root_ids)o.push(l(e.roots[n]));return o}},n function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const e=n(348),s=n(70),c=n(345);t._get_ws_url=function(n,o){let t,e="ws:";return"https:"==window.location.protocol&&(e="wss:"),null!=o?(t=document.createElement("a"),t.href=o):t=window.location,null!=n?"/"==n&&(n=""):n=t.pathname.replace(/\/+$/,""),e+"//"+t.host+n+"/ws"};const r={};t.add_document_from_session=async function(n,o,t,a=[],i=!1){const l=window.location.search.substr(1);let d;try{d=await function(n,o,t){const s=e.parse_token(o).session_id;n in r||(r[n]={});const c=r[n];return s in c||(c[s]=e.pull_session(n,o,t)),c[s]}(n,o,l)}catch(n){const t=e.parse_token(o).session_id;throw s.logger.error(Failed to load Bokeh session ${t}: ${n}),n}return c.add_document_standalone(d.document,t,a,i)}},n function _(e,s,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(70),o=e(5),r=e(349),i=e(350),c=e(351);n.DEFAULT_SERVER_WEBSOCKET_URL="ws://localhost:5006/ws",n.DEFAULT_TOKEN="eyJzZXNzaW9uX2lkIjogImRlZmF1bHQifQ";let l=0;function _(e){let s=e.split(".")[0];const n=s.length%4;return 0!=n&&(s+="=".repeat(4-n)),JSON.parse(atob(s.replace(/_/g,"/").replace(/-/g,"+")))}n.parse_token=_;class h{constructor(e=n.DEFAULT_SERVER_WEBSOCKET_URL,s=n.DEFAULT_TOKEN,o=null){this.url=e,this.token=s,this.args_string=o,this._number=l++,this.socket=null,this.session=null,this.closed_permanently=!1,this._current_handler=null,this._pending_replies=new Map,this._pending_messages=[],this._receiver=new i.Receiver,this.id=_(s).session_id.split(".")[0],t.logger.debug(Creating websocket ${this._number} to ‘${this.url}’ session ‘${this.id}’)}async connect(){if(this.closed_permanently)throw new Error("Cannot connect() a closed ClientConnection");if(null!=this.socket)throw new Error("Already connected");this._current_handler=null,this._pending_replies.clear(),this._pending_messages=[];try{let e=`${this.url}`;return null!=this.args_string&&this.args_string.length>0&&(e+=`?${this.args_string}`),this.socket=new WebSocket(e,["bokeh",this.token]),new Promise((e,s)=>{this.socket.binaryType="arraybuffer",this.socket.onopen=()=>this._on_open(e,s),this.socket.onmessage=e=>this._on_message(e),this.socket.onclose=e=>this._on_close(e,s),this.socket.onerror=()=>this._on_error(s)})}catch(e){throw t.logger.error(websocket creation failed to url: ${this.url}),t.logger.error(` - ${e}`),e}}close(){this.closed_permanently||(t.logger.debug(Permanently closing websocket connection ${this._number}),this.closed_permanently=!0,null!=this.socket&&this.socket.close(1e3,`close method called on ClientConnection ${this._number}`),this.session._connection_closed())}_schedule_reconnect(e){setTimeout(()=>{this.closed_permanently||t.logger.info(Websocket connection ${this._number} disconnected, will not attempt to reconnect)},e)}send(e){if(null==this.socket)throw new Error(not connected so cannot send ${e});e.send(this.socket)}async send_with_reply(e){const s=await new Promise((s,n)=>{this._pending_replies.set(e.msgid(),{resolve:s,reject:n}),this.send(e)});if("ERROR"===s.msgtype())throw new Error(Error reply ${s.content.text});return s}async _pull_doc_json(){const e=r.Message.create("PULL-DOC-REQ",{}),s=await this.send_with_reply(e);if(!("doc"in s.content))throw new Error("No ‘doc’ field in PULL-DOC-REPLY");return s.content.doc}async _repull_session_doc(e,s){var n;t.logger.debug(this.session?"Repulling session":"Pulling session for first time");try{const n=await this._pull_doc_json();if(null==this.session)if(this.closed_permanently)t.logger.debug("Got new document after connection was already closed"),s(new Error("The connection has been closed"));else{const s=o.Document.from_json(n),i=o.Document._compute_patch_since_json(n,s);if(i.events.length>0){t.logger.debug(Sending ${i.events.length} changes from model construction back to server);const e=r.Message.create("PATCH-DOC",{},i);this.send(e)}this.session=new c.ClientSession(this,s,this.id);for(const e of this._pending_messages)this.session.handle(e);this._pending_messages=[],t.logger.debug("Created a new session from new pulled doc"),e(this.session)}else this.session.document.replace_with_json(n),t.logger.debug("Updated existing session with new pulled doc")}catch(e){null===(n=console.trace)||void 0===n||n.call(console,e),t.logger.error(Failed to repull session ${e}),s(e)}}_on_open(e,s){t.logger.info(Websocket connection ${this._number} is now open),this._current_handler=n=>{this._awaiting_ack_handler(n,e,s)}}_on_message(e){null==this._current_handler&&t.logger.error("Got a message with no current handler set");try{this._receiver.consume(e.data)}catch(e){this._close_bad_protocol(e.toString())}const s=this._receiver.message;if(null!=s){const e=s.problem();null!=e&&this._close_bad_protocol(e),this._current_handler(s)}}_on_close(e,s){t.logger.info(Lost websocket ${this._number} connection, ${e.code} (${e.reason})),this.socket=null,this._pending_replies.forEach(e=>e.reject("Disconnected")),this._pending_replies.clear(),this.closed_permanently||this._schedule_reconnect(2e3),s(new Error(Lost websocket connection, ${e.code} (${e.reason})))}_on_error(e){t.logger.debug(Websocket error on socket ${this._number});const s="Could not open websocket";t.logger.error(Failed to connect to Bokeh server: ${s}),e(new Error(s))}_close_bad_protocol(e){t.logger.error(Closing connection: ${e}),null!=this.socket&&this.socket.close(1002,e)}_awaiting_ack_handler(e,s,n){"ACK"===e.msgtype()?(this._current_handler=e=>this._steady_state_handler(e),this._repull_session_doc(s,n)):this._close_bad_protocol("First message was not an ACK")}_steady_state_handler(e){const s=e.reqid(),n=this._pending_replies.get(s);n?(this._pending_replies.delete(s),n.resolve(e)):this.session?this.session.handle(e):"PATCH-DOC"!=e.msgtype()&&this._pending_messages.push(e)}}n.ClientConnection=h,h.__name__="ClientConnection",n.pull_session=function(e,s,n){return new h(e,s,n).connect()}},n function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const r=e(26);class n{constructor(e,s,t){this.header=e,this.metadata=s,this.content=t,this.buffers=[]}static assemble(e,s,t){const r=JSON.parse(e),i=JSON.parse(s),h=JSON.parse(t);return new n(r,i,h)}assemble_buffer(e,s){if((null!=this.header.num_buffers?this.header.num_buffers:0)<=this.buffers.length)throw new Error("too many buffers received, expecting #{nb}");this.buffers.push([e,s])}static create(e,s,t={}){const r=n.create_header(e);return new n(r,s,t)}static create_header(e){return{msgid:r.uniqueId(),msgtype:e}}complete(){return null!=this.header&&null!=this.metadata&&null!=this.content&&(!("num_buffers"in this.header)||this.buffers.length===this.header.num_buffers)}send(e){if((null!=this.header.num_buffers?this.header.num_buffers:0)>0)throw new Error("BokehJS only supports receiving buffers, not sending");const s=JSON.stringify(this.header),t=JSON.stringify(this.metadata),r=JSON.stringify(this.content);e.send(s),e.send(t),e.send(r)}msgid(){return this.header.msgid}msgtype(){return this.header.msgtype}reqid(){return this.header.reqid}problem(){return"msgid"in this.header?"msgtype"in this.header?null:"No msgtype in header":"No msgid in header"}}t.Message=n,n.__name__="Message"},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const _=e(349);class r{constructor(){this.message=null,this._partial=null,this._fragments=[],this._buf_header=null,this._current_consumer=this._HEADER}consume(e){this._current_consumer(e)}_HEADER(e){this._assume_text(e),this.message=null,this._partial=null,this._fragments=[e],this._buf_header=null,this._current_consumer=this._METADATA}_METADATA(e){this._assume_text(e),this._fragments.push(e),this._current_consumer=this._CONTENT}_CONTENT(e){this._assume_text(e),this._fragments.push(e);const[t,s,r]=this._fragments.slice(0,3);this._partial=_.Message.assemble(t,s,r),this._check_complete()}_BUFFER_HEADER(e){this._assume_text(e),this._buf_header=e,this._current_consumer=this._BUFFER_PAYLOAD}_BUFFER_PAYLOAD(e){this._assume_binary(e),this._partial.assemble_buffer(this._buf_header,e),this._check_complete()}_assume_text(e){if(e instanceof ArrayBuffer)throw new Error("Expected text fragment but received binary fragment")}_assume_binary(e){if(!(e instanceof ArrayBuffer))throw new Error("Expected binary fragment but received text fragment")}_check_complete(){this._partial.complete()?(this.message=this._partial,this._current_consumer=this._HEADER):this._current_consumer=this._BUFFER_HEADER}}s.Receiver=r,r.__name__="Receiver"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(5),s=e(349),i=e(70);class c{constructor(e,t,n){this._connection=e,this.document=t,this.id=n,this._document_listener=e=>this._document_changed(e),this.document.on_change(this._document_listener)}handle(e){const t=e.msgtype();"PATCH-DOC"===t?this._handle_patch(e):"OK"===t?this._handle_ok(e):"ERROR"===t?this._handle_error(e):i.logger.debug(Doing nothing with message ${e.msgtype()})}close(){this._connection.close()}_connection_closed(){this.document.remove_on_change(this._document_listener)}async request_server_info(){const e=s.Message.create("SERVER-INFO-REQ",{});return(await this._connection.send_with_reply(e)).content}async force_roundtrip(){await this.request_server_info()}_document_changed(e){if(e.setter_id===this.id)return;if(e instanceof o.ModelChangedEvent&&!(e.attr in e.model.serializable_attributes()))return;const t=s.Message.create("PATCH-DOC",{},this.document.create_json_patch([e]));this._connection.send(t)}_handle_patch(e){this.document.apply_json_patch(e.content,e.buffers,this.id)}_handle_ok(e){i.logger.trace(Unhandled OK reply to ${e.reqid()})}_handle_error(e){i.logger.error(Unhandled ERROR reply to ${e.reqid()}: ${e.content.text})}}n.ClientSession=c,c.__name__="ClientSession"},n function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(5),r=e(350),s=e(70),i=e(24),c=e(345),l=e(346);function u(e,o){o.buffers.length>0?e.consume(o.buffers[0].buffer):e.consume(o.content.data);const t=e.message;null!=t&&this.apply_json_patch(t.content,t.buffers)}function g(e,o){if("undefined"!=typeof Jupyter&&null!=Jupyter.notebook.kernel){s.logger.info(Registering Jupyter comms for target ${e});const t=Jupyter.notebook.kernel.comm_manager;try{t.register_target(e,t=>{s.logger.info(Registering Jupyter comms for target ${e});const n=new r.Receiver;t.on_msg(u.bind(o,n))})}catch(e){s.logger.warn(Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e}))}}else if(o.roots()[0].id in t.kernels){s.logger.info(Registering JupyterLab comms for target ${e});const n=t.kernels[o.roots()[0].id];try{n.registerCommTarget(e,t=>{s.logger.info(Registering JupyterLab comms for target ${e});const n=new r.Receiver;t.onMsg=u.bind(o,n)})}catch(e){s.logger.warn(Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e}))}}else console.warn("Jupyter notebooks comms not available. push_notebook() will not function. If running JupyterLab ensure the latest @bokeh/jupyter_bokeh extension is installed. In an exported notebook this warning is expected.")}e(279),e(353),t.kernels={},t.embed_items_notebook=function(e,o){if(1!=i.size(e))throw new Error("embed_items_notebook expects exactly one document in docs_json");const t=n.Document.from_json(i.values(e)[0]);for(const e of o){null!=e.notebook_comms_target&&g(e.notebook_comms_target,t);const o=l._resolve_element(e),n=l._resolve_root_elements(e);c.add_document_standalone(t,o,n)}}},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(1);e(67),n.__importStar(e(66)).styles.append("/* notebook specific tweaks so no black outline and matching padding\n/* can’t be wrapped inside bk-root. here are the offending jupyter lines:\n/* https://github.com/jupyter/notebook/blob/master/notebook/static/notebook/less/renderedhtml.less#L59-L76 /\n.rendered_html .bk-root .bk-tooltip table,\n.rendered_html .bk-root .bk-tooltip tr,\n.rendered_html .bk-root .bk-tooltip th,\n.rendered_html .bk-root .bk-tooltip td {\n border: none;\n padding: 1px;\n}\n")},n function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const o=e(1);o.__exportStar(e(349),_),o.__exportStar(e(350),_)},n function _(e,t,n){function s(){const e=document.getElementsByTagName("body")[0],t=document.getElementsByClassName("bokeh-test-div");1==t.length&&(e.removeChild(t[0]),delete t[0]);const n=document.createElement("div");n.classList.add("bokeh-test-div"),n.style.display="none",e.insertBefore(n,e.firstChild)}Object.defineProperty(n,"__esModule",{value:!0}),n.results={},n.init=function(){s()},n.record0=function(e,t){n.results[e]=t},n.record=function(e,t){n.results[e]=t,s()},n.count=function(e){null==n.results[e]&&(n.results[e]=0),n.results[e]+=1,s()}},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.safely=function(e,t=!1){try{return e()}catch(e){if(function(e){const t=document.createElement("div");t.style.backgroundColor="#f2dede",t.style.border="1px solid #a94442",t.style.borderRadius="4px",t.style.display="inline-block",t.style.fontFamily="sans-serif",t.style.marginTop="5px",t.style.minWidth="200px",t.style.padding="5px 5px 5px 10px",t.classList.add("bokeh-error-box-into-flames");const o=document.createElement("span");o.style.backgroundColor="#a94442",o.style.borderRadius="0px 4px 0px 0px",o.style.color="white",o.style.cursor="pointer",o.style.cssFloat="right",o.style.fontSize="0.8em",o.style.margin="-6px -6px 0px 0px",o.style.padding="2px 5px 4px 5px",o.title="close",o.setAttribute("aria-label","close"),o.appendChild(document.createTextNode("x")),o.addEventListener("click",()=>r.removeChild(t));const n=document.createElement("h3");n.style.color="#a94442",n.style.margin="8px 0px 0px 0px",n.style.padding="0px",n.appendChild(document.createTextNode("Bokeh Error"));const l=document.createElement("pre");l.style.whiteSpace="unset",l.style.overflowX="auto";const s=e instanceof Error?e.message:e;l.appendChild(document.createTextNode(s)),t.appendChild(o),t.appendChild(n),t.appendChild(l);const r=document.getElementsByTagName("body")[0];r.insertBefore(t,r.firstChild)}(e),t)return;throw e}}},n ], 0, {"main":0,"tslib":1,"index":2,"version":3,"embed/index":4,"document/index":5,"document/document":6,"base":7,"core/util/types":8,"core/util/array":9,"core/util/math":10,"core/util/assert":11,"core/util/arrayable":12,"core/has_props":13,"core/signaling":14,"core/util/data_structures":15,"core/util/eq":16,"core/util/callback":17,"core/property_mixins":18,"core/properties":19,"core/enums":20,"core/util/color":21,"core/util/svg_colors":22,"core/settings":23,"core/util/object":24,"core/util/refs":25,"core/util/string":26,"models/index":27,"models/annotations/index":28,"models/annotations/annotation":29,"core/util/projections":30,"models/renderers/renderer":63,"core/dom_view":64,"core/view":65,"core/dom":66,"styles/root":67,"core/visuals":68,"model":69,"core/logging":70,"models/annotations/arrow":71,"models/annotations/arrow_head":72,"models/sources/column_data_source":73,"models/sources/columnar_data_source":74,"models/sources/data_source":75,"models/selections/selection":76,"core/selection_manager":77,"models/renderers/glyph_renderer":78,"models/renderers/data_renderer":79,"models/glyphs/line":80,"models/glyphs/xy_glyph":81,"core/util/spatial":82,"core/util/bbox":85,"models/glyphs/glyph":86,"core/hittest":87,"models/ranges/factor_range":88,"models/ranges/range":89,"models/glyphs/utils":90,"models/glyphs/patch":91,"models/glyphs/harea":92,"models/glyphs/area":93,"models/glyphs/varea":94,"models/sources/cds_view":95,"core/build_views":96,"models/renderers/graph_renderer":97,"models/graphs/graph_hit_test_policy":98,"models/selections/interaction_policy":99,"core/util/serialization":100,"core/util/compat":101,"core/util/typed_array":102,"document/events":103,"models/annotations/band":104,"models/annotations/box_annotation":105,"styles/annotations":106,"models/annotations/color_bar":107,"models/tickers/basic_ticker":108,"models/tickers/adaptive_ticker":109,"models/tickers/continuous_ticker":110,"models/tickers/ticker":111,"models/formatters/basic_tick_formatter":112,"models/formatters/tick_formatter":113,"models/mappers/linear_color_mapper":114,"models/mappers/continuous_color_mapper":115,"models/mappers/color_mapper":116,"models/mappers/mapper":117,"models/transforms/transform":118,"models/scales/linear_scale":119,"models/scales/continuous_scale":120,"models/scales/scale":121,"models/transforms/index":122,"models/transforms/customjs_transform":123,"models/transforms/dodge":124,"models/transforms/interpolator":125,"models/transforms/jitter":126,"models/transforms/linear_interpolator":127,"models/transforms/step_interpolator":128,"models/scales/log_scale":129,"models/ranges/range1d":130,"core/util/text":131,"models/annotations/label":132,"models/annotations/text_annotation":133,"models/annotations/label_set":134,"models/annotations/legend":135,"models/annotations/legend_item":136,"core/vectorization":137,"models/annotations/poly_annotation":138,"models/annotations/slope":139,"models/annotations/span":140,"models/annotations/title":141,"models/annotations/toolbar_panel":142,"models/annotations/tooltip":143,"styles/tooltips":144,"styles/mixins":145,"models/annotations/whisker":146,"models/axes/index":147,"models/axes/axis":148,"models/renderers/guide_renderer":149,"models/axes/categorical_axis":150,"models/tickers/categorical_ticker":151,"models/formatters/categorical_tick_formatter":152,"models/axes/continuous_axis":153,"models/axes/datetime_axis":154,"models/axes/linear_axis":155,"models/formatters/datetime_tick_formatter":156,"core/util/templating":158,"models/tickers/datetime_ticker":161,"models/tickers/composite_ticker":162,"models/tickers/days_ticker":163,"models/tickers/single_interval_ticker":164,"models/tickers/util":165,"models/tickers/months_ticker":166,"models/tickers/years_ticker":167,"models/axes/log_axis":168,"models/formatters/log_tick_formatter":169,"models/tickers/log_ticker":170,"models/axes/mercator_axis":171,"models/formatters/mercator_tick_formatter":172,"models/tickers/mercator_ticker":173,"models/callbacks/index":174,"models/callbacks/customjs":175,"models/callbacks/callback":176,"models/callbacks/open_url":177,"models/canvas/index":178,"models/canvas/canvas":179,"core/util/canvas":180,"styles/canvas":181,"models/canvas/cartesian_frame":183,"models/scales/categorical_scale":184,"models/ranges/data_range1d":185,"models/ranges/data_range":186,"core/layout/index":187,"core/layout/types":188,"core/layout/layoutable":189,"core/layout/alignments":190,"core/layout/grid":191,"core/layout/html":192,"models/expressions/index":193,"models/expressions/expression":194,"models/expressions/stack":195,"models/expressions/cumsum":196,"models/filters/index":197,"models/filters/boolean_filter":198,"models/filters/filter":199,"models/filters/customjs_filter":200,"models/filters/group_filter":201,"models/filters/index_filter":202,"models/formatters/index":203,"models/formatters/func_tick_formatter":204,"models/formatters/numeral_tick_formatter":205,"models/formatters/printf_tick_formatter":206,"models/glyphs/index":207,"models/glyphs/annular_wedge":208,"models/glyphs/annulus":209,"models/glyphs/arc":210,"models/glyphs/bezier":211,"models/glyphs/circle":212,"models/glyphs/center_rotatable":213,"models/glyphs/ellipse":214,"models/glyphs/ellipse_oval":215,"models/glyphs/hbar":216,"models/glyphs/box":217,"models/glyphs/hex_tile":218,"models/glyphs/image":219,"models/glyphs/image_base":220,"models/glyphs/image_rgba":221,"models/glyphs/image_url":222,"core/util/image":223,"models/glyphs/multi_line":224,"models/glyphs/multi_polygons":225,"models/glyphs/oval":226,"models/glyphs/patches":227,"models/glyphs/quad":228,"models/glyphs/quadratic":229,"models/glyphs/ray":230,"models/glyphs/rect":231,"models/glyphs/segment":232,"models/glyphs/step":233,"models/glyphs/text":234,"models/glyphs/vbar":235,"models/glyphs/wedge":236,"models/graphs/index":237,"models/graphs/layout_provider":238,"models/graphs/static_layout_provider":239,"models/grids/index":240,"models/grids/grid":241,"models/layouts/index":242,"models/layouts/box":243,"models/layouts/layout_dom":244,"models/layouts/column":245,"models/layouts/grid_box":246,"models/layouts/html_box":247,"models/layouts/row":248,"models/layouts/spacer":249,"models/layouts/tabs":250,"styles/tabs":251,"styles/buttons":252,"styles/menus":253,"models/layouts/widget_box":254,"models/mappers/index":255,"models/mappers/categorical_color_mapper":256,"models/mappers/categorical_mapper":257,"models/mappers/categorical_marker_mapper":258,"models/mappers/categorical_pattern_mapper":259,"models/mappers/log_color_mapper":260,"models/markers/index":261,"models/markers/defs":262,"models/markers/marker":263,"models/markers/scatter":264,"models/plots/index":265,"models/plots/gmap_plot":266,"models/plots/plot":267,"models/tools/toolbar":268,"models/tools/inspectors/inspect_tool":269,"models/tools/button_tool":270,"models/tools/tool":271,"styles/toolbar":272,"models/tools/on_off_button":273,"models/tools/toolbar_base":274,"models/tools/gestures/gesture_tool":275,"models/tools/actions/action_tool":276,"models/tools/actions/help_tool":277,"styles/icons":278,"styles/logo":279,"models/plots/plot_canvas":280,"core/bokeh_events":281,"core/ui_events":282,"core/util/wheel":284,"core/util/throttle":285,"core/layout/side_panel":286,"models/plots/gmap_plot_canvas":287,"models/ranges/index":288,"models/renderers/index":289,"models/scales/index":290,"models/selections/index":291,"models/sources/index":292,"models/sources/server_sent_data_source":293,"models/sources/web_data_source":294,"models/sources/ajax_data_source":295,"models/sources/geojson_data_source":296,"models/tickers/index":297,"models/tickers/fixed_ticker":298,"models/tiles/index":299,"models/tiles/bbox_tile_source":300,"models/tiles/mercator_tile_source":301,"models/tiles/tile_source":302,"models/tiles/tile_utils":303,"models/tiles/quadkey_tile_source":304,"models/tiles/tile_renderer":305,"models/tiles/wmts_tile_source":306,"styles/tiles":307,"models/tiles/tms_tile_source":308,"models/textures/index":309,"models/textures/canvas_texture":310,"models/textures/texture":311,"models/textures/image_url_texture":312,"models/tools/index":313,"models/tools/actions/custom_action":314,"models/tools/actions/redo_tool":315,"models/tools/actions/reset_tool":316,"models/tools/actions/save_tool":317,"models/tools/actions/undo_tool":318,"models/tools/actions/zoom_in_tool":319,"core/util/zoom":320,"models/tools/actions/zoom_out_tool":321,"models/tools/edit/edit_tool":322,"models/tools/edit/box_edit_tool":323,"models/tools/edit/freehand_draw_tool":324,"models/tools/edit/point_draw_tool":325,"models/tools/edit/poly_draw_tool":326,"models/tools/edit/poly_tool":327,"models/tools/edit/poly_edit_tool":328,"models/tools/gestures/box_select_tool":329,"models/tools/gestures/select_tool":330,"models/tools/util":331,"models/tools/gestures/box_zoom_tool":332,"models/tools/gestures/lasso_select_tool":333,"models/tools/gestures/pan_tool":334,"models/tools/gestures/poly_select_tool":335,"models/tools/gestures/range_tool":336,"models/tools/gestures/tap_tool":337,"models/tools/gestures/wheel_pan_tool":338,"models/tools/gestures/wheel_zoom_tool":339,"models/tools/inspectors/crosshair_tool":340,"models/tools/inspectors/customjs_hover":341,"models/tools/inspectors/hover_tool":342,"models/tools/tool_proxy":343,"models/tools/toolbar_box":344,"embed/standalone":345,"embed/dom":346,"embed/server":347,"client/connection":348,"protocol/message":349,"protocol/receiver":350,"client/session":351,"embed/notebook":352,"styles/notebook":353,"protocol/index":354,"testing":355,"safely":356}, {});n })nnn / END bokeh.min.js /n },n n function(Bokeh) {n / BEGIN bokeh-widgets.min.js /n /!n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn * All rights reserved.n * n * Redistribution and use in source and binary forms, with or without modification,n * are permitted provided that the following conditions are met:n * n * Redistributions of source code must retain the above copyright notice,n * this list of conditions and the following disclaimer.n * n * Redistributions in binary form must reproduce the above copyright notice,n * this list of conditions and the following disclaimer in the documentationn * and/or other materials provided with the distribution.n * n * Neither the name of Anaconda nor the names of any contributorsn * may be used to endorse or promote products derived from this softwaren * without specific prior written permission.n * n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn * THE POSSIBILITY OF SUCH DAMAGE.n /n (function(root, factory) {n factory(root["Bokeh"], "2.0.2");n })(this, function(Bokeh, version) {n var define;n return (function(modules, entry, aliases, externals) {n const bokeh = typeof Bokeh !== "undefined" && (version != null ? Bokeh[version] : Bokeh);n if (bokeh != null) {n return bokeh.register_plugin(modules, entry, aliases);n } else {n throw new Error("Cannot find Bokeh " + version + ". You have to load it prior to loading plugins.");n }n })n ({n 376: function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1).__importStar(e(377));o.Widgets=r,e(7).register_models(r)},n 377: function _(r,e,t){Object.defineProperty(t,"__esModule",{value:!0});var a=r(378);t.AbstractButton=a.AbstractButton;var o=r(381);t.AbstractIcon=o.AbstractIcon;var u=r(382);t.AutocompleteInput=u.AutocompleteInput;var n=r(386);t.Button=n.Button;var i=r(387);t.CheckboxButtonGroup=i.CheckboxButtonGroup;var v=r(389);t.CheckboxGroup=v.CheckboxGroup;var p=r(391);t.ColorPicker=p.ColorPicker;var l=r(392);t.DatePicker=l.DatePicker;var c=r(395);t.DateRangeSlider=c.DateRangeSlider;var d=r(400);t.DateSlider=d.DateSlider;var g=r(401);t.Div=g.Div;var I=r(404);t.Dropdown=I.Dropdown;var S=r(405);t.FileInput=S.FileInput;var P=r(384);t.InputWidget=P.InputWidget;var k=r(402);t.Markup=k.Markup;var x=r(406);t.MultiSelect=x.MultiSelect;var D=r(407);t.Paragraph=D.Paragraph;var b=r(408);t.PasswordInput=b.PasswordInput;var s=r(409);t.MultiChoice=s.MultiChoice;var h=r(412);t.PreText=h.PreText;var A=r(413);t.RadioButtonGroup=A.RadioButtonGroup;var B=r(414);t.RadioGroup=B.RadioGroup;var C=r(415);t.RangeSlider=C.RangeSlider;var G=r(416);t.Select=G.Select;var R=r(417);t.Slider=R.Slider;var T=r(418);t.Spinner=T.Spinner;var M=r(383);t.TextInput=M.TextInput;var w=r(419);t.TextAreaInput=w.TextAreaInput;var W=r(420);t.Toggle=W.Toggle;var _=r(441);t.Widget=_.Widget},n 378: function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),s=t(66),o=t(96),l=t(379),r=t(252);class _ extends l.ControlView{async lazy_initialize(){await super.lazy_initialize();const{icon:t}=this.model;null!=t&&(this.icon_view=await o.build_view(t,{parent:this}))}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}remove(){null!=this.icon_view&&this.icon_view.remove(),super.remove()}_render_button(…t){return s.button({type:"button",disabled:this.model.disabled,class:[r.bk_btn,r.bk_btn_type(this.model.button_type)]},…t)}render(){super.render(),this.button_el=this._render_button(this.model.label),this.button_el.addEventListener("click",()=>this.click()),null!=this.icon_view&&(s.prepend(this.button_el,this.icon_view.el,s.nbsp()),this.icon_view.render()),this.group_el=s.div({class:r.bk_btn_group},this.button_el),this.el.appendChild(this.group_el)}click(){}}n.AbstractButtonView=_,_.__name__="AbstractButtonView";class c extends l.Control{constructor(t){super(t)}static init_AbstractButton(){this.define({label:[i.String,"Button"],icon:[i.Instance],button_type:[i.ButtonType,"default"]})}}n.AbstractButton=c,c.__name__="AbstractButton",c.init_AbstractButton()},n 379: function _(e,n,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(441);class o extends t.WidgetView{connect_signals(){super.connect_signals();const e=this.model.properties;this.on_change(e.disabled,()=>this.render())}}s.ControlView=o,o.__name__="ControlView";class i extends t.Widget{constructor(e){super(e)}}s.Control=i,i.__name__="Control"},n 441: function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=i(1),n=i(247),r=o.__importStar(i(19));class _ extends n.HTMLBoxView{_width_policy(){return"horizontal"==this.model.orientation?super._width_policy():"fixed"}_height_policy(){return"horizontal"==this.model.orientation?"fixed":super._height_policy()}box_sizing(){const i=super.box_sizing();return"horizontal"==this.model.orientation?null==i.width&&(i.width=this.model.default_size):null==i.height&&(i.height=this.model.default_size),i}}t.WidgetView=_,_.__name__="WidgetView";class s extends n.HTMLBox{constructor(i){super(i)}static init_Widget(){this.define({orientation:[r.Orientation,"horizontal"],default_size:[r.Number,300]}),this.override({margin:[5,5,5,5]})}}t.Widget=s,s.__name__="Widget",s.init_Widget()},n 381: function _(e,t,c){Object.defineProperty(c,"__esModule",{value:!0});const s=e(69),n=e(64);class o extends n.DOMView{}c.AbstractIconView=o,o.__name__="AbstractIconView";class _ extends s.Model{constructor(e){super(e)}}c.AbstractIcon=_,_.__name__="AbstractIcon"},n 382: function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),s=e(383),h=e(66),_=i.__importStar(e(19)),o=e(10),u=e(145),r=e(253);class c extends s.TextInputView{constructor(){super(…arguments),this._open=!1,this._last_value="",this._hover_index=0}render(){super.render(),this.input_el.addEventListener("keydown",e=>this._keydown(e)),this.input_el.addEventListener("keyup",e=>this._keyup(e)),this.menu=h.div({class:[r.bk_menu,u.bk_below]}),this.menu.addEventListener("click",e=>this._menu_click(e)),this.menu.addEventListener("mouseover",e=>this._menu_hover(e)),this.el.appendChild(this.menu),h.undisplay(this.menu)}change_input(){this._open&&this.menu.children.length>0&&(this.model.value=this.menu.children[this._hover_index].textContent,this.input_el.focus(),this._hide_menu())}_update_completions(e){h.empty(this.menu);for(const t of e){const e=h.div({},t);this.menu.appendChild(e)}e.length>0&&this.menu.children[0].classList.add(u.bk_active)}_show_menu(){if(!this._open){this._open=!0,this._hover_index=0,this._last_value=this.model.value,h.display(this.menu);const e=t=>{const{target:n}=t;n instanceof HTMLElement&&!this.el.contains(n)&&(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,h.undisplay(this.menu))}_menu_click(e){e.target!=e.currentTarget&&e.target instanceof Element&&(this.model.value=e.target.textContent,this.input_el.focus(),this._hide_menu())}_menu_hover(e){if(e.target!=e.currentTarget&&e.target instanceof Element){let t=0;for(t=0;t<this.menu.children.length&&this.menu.children[t].textContent!=e.target.textContent;t++);this._bump_hover(t)}}_bump_hover(e){const t=this.menu.children.length;this._open&&t>0&&(this.menu.children[this._hover_index].classList.remove(u.bk_active),this._hover_index=o.clamp(e,0,t-1),this.menu.children[this._hover_index].classList.add(u.bk_active))}_keydown(e){}_keyup(e){switch(e.keyCode){case h.Keys.Enter:this.change_input();break;case h.Keys.Esc:this._hide_menu();break;case h.Keys.Up:this._bump_hover(this._hover_index-1);break;case h.Keys.Down:this._bump_hover(this._hover_index+1);break;default:{const e=this.input_el.value;if(e.length<this.model.min_characters)return void this._hide_menu();const t=[];for(const n of this.model.completions)n.startsWith(e)&&t.push(n);this._update_completions(t),0==t.length?this._hide_menu():this._show_menu()}}}}n.AutocompleteInputView=c,c.__name__="AutocompleteInputView";class l extends s.TextInput{constructor(e){super(e)}static init_AutocompleteInput(){this.prototype.default_view=c,this.define({completions:[_.Array,[]],min_characters:[_.Int,2]})}}n.AutocompleteInput=l,l.__name__="AutocompleteInput",l.init_AutocompleteInput()},n 383: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(384),l=e(66),p=n.__importStar(e(19)),u=e(385);class a extends s.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.value.change,()=>this.input_el.value=this.model.value),this.connect(this.model.properties.value_input.change,()=>this.input_el.value=this.model.value_input),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled),this.connect(this.model.properties.placeholder.change,()=>this.input_el.placeholder=this.model.placeholder)}render(){super.render(),this.input_el=l.input({type:"text",class:u.bk_input,name:this.model.name,value:this.model.value,disabled:this.model.disabled,placeholder:this.model.placeholder}),this.input_el.addEventListener("change",()=>this.change_input()),this.input_el.addEventListener("input",()=>this.change_input_oninput()),this.group_el.appendChild(this.input_el)}change_input(){this.model.value=this.input_el.value,super.change_input()}change_input_oninput(){this.model.value_input=this.input_el.value,super.change_input()}}i.TextInputView=a,a.__name__="TextInputView";class h extends s.InputWidget{constructor(e){super(e)}static init_TextInput(){this.prototype.default_view=a,this.define({value:[p.String,""],value_input:[p.String,""],placeholder:[p.String,""]})}}i.TextInput=h,h.__name__="TextInput",h.init_TextInput()},n 384: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),l=e(379),s=e(66),_=n.__importStar(e(19)),o=e(385);class p extends l.ControlView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.title.change,()=>{this.label_el.textContent=this.model.title})}render(){super.render();const{title:e}=this.model;this.label_el=s.label({style:{display:0==e.length?"none":""}},e),this.group_el=s.div({class:o.bk_input_group},this.label_el),this.el.appendChild(this.group_el)}change_input(){}}i.InputWidgetView=p,p.__name__="InputWidgetView";class r extends l.Control{constructor(e){super(e)}static init_InputWidget(){this.define({title:[_.String,""]})}}i.InputWidget=r,r.__name__="InputWidget",r.init_InputWidget()},n 385: function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const e=n(1);n(67),e.__importStar(n(66)).styles.append(‘.bk-root .bk-input {\n display: inline-block;\n width: 100%;\n flex-grow: 1;\n -webkit-flex-grow: 1;\n min-height: 31px;\n padding: 0 12px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n.bk-root .bk-input:focus {\n border-color: #66afe9;\n outline: 0;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);\n}\n.bk-root .bk-input::placeholder,\n.bk-root .bk-input:-ms-input-placeholder,\n.bk-root .bk-input::-moz-placeholder,\n.bk-root .bk-input::-webkit-input-placeholder {\n color: #999;\n opacity: 1;\n}\n.bk-root .bk-input[disabled] {\n cursor: not-allowed;\n background-color: #eee;\n opacity: 1;\n}\n.bk-root select:not([multiple]).bk-input,\n.bk-root select:not([size]).bk-input {\n height: auto;\n appearance: none;\n -webkit-appearance: none;\n background-image: url(\’data:image/svg+xml;utf8,<svg version="1.1" viewBox="0 0 25 20" xmlns="http://www.w3.org/2000/svg"><path d="M 0,0 25,0 12.5,20 Z" fill="black" /></svg>\’);\n background-position: right 0.5em center;\n background-size: 8px 6px;\n background-repeat: no-repeat;\n}\n.bk-root select[multiple].bk-input,\n.bk-root select[size].bk-input,\n.bk-root textarea.bk-input {\n height: auto;\n}\n.bk-root .bk-input-group {\n width: 100%;\n height: 100%;\n display: inline-flex;\n display: -webkit-inline-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: start;\n -webkit-align-items: start;\n flex-direction: column;\n -webkit-flex-direction: column;\n white-space: nowrap;\n}\n.bk-root .bk-input-group.bk-inline {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-input-group.bk-inline > *:not(:first-child) {\n margin-left: 5px;\n}\n.bk-root .bk-input-group input[type="checkbox"] + span,\n.bk-root .bk-input-group input[type="radio"] + span {\n position: relative;\n top: -2px;\n margin-left: 3px;\n}\n’),t.bk_input="bk-input",t.bk_input_group="bk-input-group"},n 386: function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(378),o=t(281);class s extends n.AbstractButtonView{click(){this.model.clicks=this.model.clicks+1,this.model.trigger_event(new o.ButtonClick),super.click()}}i.ButtonView=s,s.__name__="ButtonView";class c extends n.AbstractButton{constructor(t){super(t)}static init_Button(){this.prototype.default_view=s,this.override({label:"Button"})}}i.Button=c,c.__name__="Button",c.init_Button()},n 387: function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t(1),c=t(388),n=t(66),s=t(15),u=i.__importStar(t(19)),a=t(145);class r extends c.ButtonGroupView{get active(){return new s.Set(this.model.active)}change_active(t){const{active:e}=this;e.toggle(t),this.model.active=e.values}_update_active(){const{active:t}=this;this._buttons.forEach((e,o)=>{n.classes(e).toggle(a.bk_active,t.has(o))})}}o.CheckboxButtonGroupView=r,r.__name__="CheckboxButtonGroupView";class _ extends c.ButtonGroup{constructor(t){super(t)}static init_CheckboxButtonGroup(){this.prototype.default_view=r,this.define({active:[u.Array,[]]})}}o.CheckboxButtonGroup=_,_.__name__="CheckboxButtonGroup",_.init_CheckboxButtonGroup()},n 388: function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const s=t(1),o=t(379),i=t(66),_=s.__importStar(t(19)),r=t(252);class a extends o.ControlView{connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.button_type,()=>this.render()),this.on_change(t.labels,()=>this.render()),this.on_change(t.active,()=>this._update_active())}render(){super.render(),this._buttons=this.model.labels.map((t,e)=>{const n=i.div({class:[r.bk_btn,r.bk_btn_type(this.model.button_type)],disabled:this.model.disabled},t);return n.addEventListener("click",()=>this.change_active(e)),n}),this._update_active();const t=i.div({class:r.bk_btn_group},this._buttons);this.el.appendChild(t)}}n.ButtonGroupView=a,a.__name__="ButtonGroupView";class u extends o.Control{constructor(t){super(t)}static init_ButtonGroup(){this.define({labels:[_.Array,[]],button_type:[_.ButtonType,"default"]})}}n.ButtonGroup=u,u.__name__="ButtonGroup",u.init_ButtonGroup()},n 389: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),o=e(390),s=e(66),c=e(9),l=e(15),a=n.__importStar(e(19)),r=e(145),d=e(385);class p extends o.InputGroupView{render(){super.render();const e=s.div({class:[d.bk_input_group,this.model.inline?r.bk_inline:null]});this.el.appendChild(e);const{active:t,labels:i}=this.model;for(let n=0;n<i.length;n++){const o=s.input({type:"checkbox",value:`${n}`});o.addEventListener("change",()=>this.change_active(n)),this.model.disabled&&(o.disabled=!0),c.includes(t,n)&&(o.checked=!0);const l=s.label({},o,s.span({},i[n]));e.appendChild(l)}}change_active(e){const t=new l.Set(this.model.active);t.toggle(e),this.model.active=t.values}}i.CheckboxGroupView=p,p.__name__="CheckboxGroupView";class u extends o.InputGroup{constructor(e){super(e)}static init_CheckboxGroup(){this.prototype.default_view=p,this.define({active:[a.Array,[]],labels:[a.Array,[]],inline:[a.Boolean,!1]})}}i.CheckboxGroup=u,u.__name__="CheckboxGroup",u.init_CheckboxGroup()},n 390: function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(379);class s extends o.ControlView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}}t.InputGroupView=s,s.__name__="InputGroupView";class c extends o.Control{constructor(e){super(e)}}t.InputGroup=c,c.__name__="InputGroup"},n 391: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),o=e(384),s=e(66),l=n.__importStar(e(19)),r=e(385);class c extends o.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.color.change,()=>this.input_el.value=this.model.color),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled)}render(){super.render(),this.input_el=s.input({type:"color",class:r.bk_input,name:this.model.name,value:this.model.color,disabled:this.model.disabled}),this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){this.model.color=this.input_el.value,super.change_input()}}t.ColorPickerView=c,c.__name__="ColorPickerView";class d extends o.InputWidget{constructor(e){super(e)}static init_ColorPicker(){this.prototype.default_view=c,this.define({color:[l.Color,"#000000"]})}}t.ColorPicker=d,d.__name__="ColorPicker",d.init_ColorPicker()},n 392: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),a=n.__importDefault(e(393)),s=e(384),l=e(66),o=n.__importStar(e(19)),d=e(8),r=e(385);function c(e){const t=[];for(const i of e)d.isString(i)?t.push(i):d.isArray(i)&&2==i.length&&t.push({from:i[0],to:i[1]});return t}e(394);class u extends s.InputWidgetView{connect_signals(){super.connect_signals();const{value:e,min_date:t,max_date:i,disabled_dates:n,enabled_dates:a,position:s,inline:l}=this.model.properties;this.connect(e.change,()=>{var t;return null===(t=this._picker)||void 0===t?void 0:t.setDate(e.value())}),this.connect(t.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("minDate",t.value())}),this.connect(i.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("maxDate",i.value())}),this.connect(n.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("disable",n.value())}),this.connect(a.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("enable",a.value())}),this.connect(s.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("position",s.value())}),this.connect(l.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("inline",l.value())})}render(){null==this._picker&&(super.render(),this.input_el=l.input({type:"text",class:r.bk_input,disabled:this.model.disabled}),this.group_el.appendChild(this.input_el),this._picker=a.default(this.input_el,{defaultDate:this.model.value,minDate:this.model.min_date,maxDate:this.model.max_date,inline:this.model.inline,position:this.model.position,disable:c(this.model.disabled_dates),enable:c(this.model.enabled_dates),onChange:(e,t,i)=>this._on_change(e,t,i)}))}_on_change(e,t,i){this.model.value=t,this.change_input()}}i.DatePickerView=u,u.__name__="DatePickerView";class _ extends s.InputWidget{constructor(e){super(e)}static init_DatePicker(){this.prototype.default_view=u,this.define({value:[o.Any],min_date:[o.Any],max_date:[o.Any],disabled_dates:[o.Any,[]],enabled_dates:[o.Any,[]],position:[o.CalendarPosition,"auto"],inline:[o.Boolean,!1]})}}i.DatePicker=_,_.__name__="DatePicker",_.init_DatePicker()},n 393: function _(e,t,n){n / flatpickr v4.6.3, @license MIT /var a,i;a=this,i=function(){"use strict";n /! *************************************************************************n Copyright (c) Microsoft Corporation. All rights reserved.n Licensed under the Apache License, Version 2.0 (the "License"); you may not usen this file except in compliance with the License. You may obtain a copy of then License at http://www.apache.org/licenses/LICENSE-2.0n n THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYn KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDn WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,n MERCHANTABLITY OR NON-INFRINGEMENT.n n See the Apache Version 2.0 License for specific language governing permissionsn and limitations under the License.n ************************************************************************* /var e=function(){return(e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version=’1.1’ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’ viewBox=’0 0 17 17’><g></g><path d=’M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z’ /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version=’1.1’ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’ viewBox=’0 0 17 17’><g></g><path d=’M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z’ /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},i=function(e){return("0"+e).slice(-2)},o=function(e){return!0===e?1:0};function r(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=window.setTimeout((function(){a=null,n||e.apply(i,o)}),t),n&&!a&&e.apply(i,o)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function s(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function u(e,t){var n=d("div","numInputWrapper"),a=d("input","numInput "+e),i=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}var f=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},g={D:f,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*o(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var a=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:f,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:f,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},p={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},h={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[h.w(e,t,n)]},F:function(e,t,n){return m(h.n(e,t,n)-1,!1,t)},G:function(e,t,n){return i(h.h(e,t,n))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},v=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,n){var a=n||r;return void 0!==i.formatDate?i.formatDate(e,t,a):t.split("").map((function(t,n,o){return h[t]&&"\\"!==o[n-1]?h[t](e,a,i):"\\"!==t?t:""})).join("")}},D=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,a,o){if(0===e||e){var l,c=o||r,d=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var s=t||(i||n).dateFormat,u=String(e).trim();if("today"===u)l=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else if(i&&i.parseDate)l=i.parseDate(e,s);else{l=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,m=[],h=0,v=0,D="";h<s.length;h++){var w=s[h],b="\\"===w,C="\\"===s[h-1]||b;if(p[w]&&!C){D+=p[w];var M=new RegExp(D).exec(e);M&&(f=!0)&&m["Y"!==w?"push":"unshift"]({fn:g[w],val:M[++v]})}else b||(D+=".");m.forEach((function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l}))}l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===a&&l.setHours(0,0,0,0),l;i.errorHandler(new Error("Invalid date provided: "+d))}}};function w(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var b=864e5;function C(f,g){var h={config:e({},n,y.defaultConfig),l10n:a};function C(e){return e.bind(h)}function M(){var e=h.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==h.calendarContainer&&(h.calendarContainer.style.visibility="hidden",h.calendarContainer.style.display="block"),void 0!==h.daysContainer){var t=(h.days.offsetWidth+1)*e.showMonths;h.daysContainer.style.width=t+"px",h.calendarContainer.style.width=t+(void 0!==h.weekWrapper?h.weekWrapper.offsetWidth:0)+"px",h.calendarContainer.style.removeProperty("visibility"),h.calendarContainer.style.removeProperty("display")}}))}function x(e){0===h.selectedDates.length&&ne(),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==h.amPM&&e.target===h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]);var a=parseFloat(n.getAttribute("min")),r=parseFloat(n.getAttribute("max")),l=parseFloat(n.getAttribute("step")),c=parseInt(n.value,10),d=e.delta||(t?38===e.which?1:-1:0),s=c+l*d;if(void 0!==n.value&&2===n.value.length){var u=n===h.hourElement,f=n===h.minuteElement;s<a?(s=r+s+o(!u)+(o(u)&&o(!h.amPM)),f&&Y(void 0,-1,h.hourElement)):s>r&&(s=n===h.hourElement?s-r-o(!h.amPM):a,f&&Y(void 0,1,h.hourElement)),h.amPM&&u&&(1===l?s+c===23:Math.abs(s-c)>l)&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]),n.value=i(s)}}(e);var t=h._input.value;E(),ve(),h._input.value!==t&&h._debouncedChange()}function E(){if(void 0!==h.hourElement&&void 0!==h.minuteElement){var e,t,n=(parseInt(h.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(h.minuteElement.value,10)||0)%60,i=void 0!==h.secondElement?(parseInt(h.secondElement.value,10)||0)%60:0;void 0!==h.amPM&&(e=n,t=h.amPM.textContent,n=e%12+12*o(t===h.l10n.amPM[1]));var r=void 0!==h.config.minTime||h.config.minDate&&h.minDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.minDate,!0);if(void 0!==h.config.maxTime||h.config.maxDate&&h.maxDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.maxDate,!0)){var l=void 0!==h.config.maxTime?h.config.maxTime:h.config.maxDate;(n=Math.min(n,l.getHours()))===l.getHours()&&(a=Math.min(a,l.getMinutes())),a===l.getMinutes()&&(i=Math.min(i,l.getSeconds()))}if(r){var c=void 0!==h.config.minTime?h.config.minTime:h.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(a=Math.max(a,c.getMinutes())),a===c.getMinutes()&&(i=Math.max(i,c.getSeconds()))}I(n,a,i)}}function T(e){var t=e||h.latestSelectedDateObj;t&&I(t.getHours(),t.getMinutes(),t.getSeconds())}function k(){var e=h.config.defaultHour,t=h.config.defaultMinute,n=h.config.defaultSeconds;if(void 0!==h.config.minDate){var a=h.config.minDate.getHours(),i=h.config.minDate.getMinutes();(e=Math.max(e,a))===a&&(t=Math.max(i,t)),e===a&&t===i&&(n=h.config.minDate.getSeconds())}if(void 0!==h.config.maxDate){var o=h.config.maxDate.getHours(),r=h.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(r,t)),e===o&&t===r&&(n=h.config.maxDate.getSeconds())}I(e,t,n)}function I(e,t,n){void 0!==h.latestSelectedDateObj&&h.latestSelectedDateObj.setHours(e%24,t,n||0,0),h.hourElement&&h.minuteElement&&!h.isMobile&&(h.hourElement.value=i(h.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),h.minuteElement.value=i(t),void 0!==h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(e>=12)]),void 0!==h.secondElement&&(h.secondElement.value=i(n)))}function S(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&V(t)}function O(e,t,n,a){return t instanceof Array?t.forEach((function(t){return O(e,t,n,a)})):e instanceof Array?e.forEach((function(e){return O(e,t,n,a)})):(e.addEventListener(t,n,a),void h._handlers.push({element:e,event:t,handler:n,options:a}))}function _(e){return function(t){1===t.which&&e(t)}}function F(){fe("onChange")}function N(e,t){var n=void 0!==e?h.parseDate(e):h.latestSelectedDateObj||(h.config.minDate&&h.config.minDate>h.now?h.config.minDate:h.config.maxDate&&h.config.maxDate<h.now?h.config.maxDate:h.now),a=h.currentYear,i=h.currentMonth;try{void 0!==n&&(h.currentYear=n.getFullYear(),h.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,h.config.errorHandler(e)}t&&h.currentYear!==a&&(fe("onYearChange"),B()),!t||h.currentYear===a&&h.currentMonth===i||fe("onMonthChange"),h.redraw()}function P(e){~e.target.className.indexOf("arrow")&&Y(e,e.target.classList.contains("arrowUp")?1:-1)}function Y(e,t,n){var a=e&&e.target,i=n||a&&a.parentNode&&a.parentNode.firstChild,o=me("increment");o.delta=t,i&&i.dispatchEvent(o)}function A(e,t,n,a){var i=Z(t,!0),o=d("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",h.formatDate(t,h.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,h.now)&&(h.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,ge(t)&&(o.classList.add("selected"),h.selectedDateElem=o,"range"===h.config.mode&&(c(o,"startRange",h.selectedDates[0]&&0===w(t,h.selectedDates[0],!0)),c(o,"endRange",h.selectedDates[1]&&0===w(t,h.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===h.config.mode&&function(e){return!("range"!==h.config.mode||h.selectedDates.length<2)&&w(e,h.selectedDates[0])>=0&&w(e,h.selectedDates[1])<=0}(t)&&!ge(t)&&o.classList.add("inRange"),h.weekNumbers&&1===h.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&h.weekNumbers.insertAdjacentHTML("beforeend","<span class=’flatpickr-day’>"+h.config.getWeek(t)+"</span>"),fe("onDayCreate",o),o}function j(e){e.focus(),"range"===h.config.mode&&ee(e)}function H(e){for(var t=e>0?0:h.config.showMonths-1,n=e>0?h.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=h.daysContainer.children[a],o=e>0?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&Z(c.dateObj))return c}}function L(e,t){var n=Q(document.activeElement||document.body),a=void 0!==e?e:n?document.activeElement:void 0!==h.selectedDateElem&&Q(h.selectedDateElem)?h.selectedDateElem:void 0!==h.todayDateElem&&Q(h.todayDateElem)?h.todayDateElem:H(t>0?1:-1);return void 0===a?h._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():h.currentMonth,a=t>0?h.config.showMonths:-1,i=t>0?1:-1,o=n-h.currentMonth;o!=a;o+=i)for(var r=h.daysContainer.children[o],l=n-h.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,d=l;d>=0&&d<c&&d!=(t>0?c:-1);d+=i){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&Z(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return j(s)}h.changeMonth(i),L(H(i),0)}(a,t):j(a)}function W(e,t){for(var n=(new Date(e,t,1).getDay()-h.l10n.firstDayOfWeek+7)%7,a=h.utils.getDaysInMonth((t-1+12)%12),i=h.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),r=h.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-n,u=0;s<=a;s++,u++)o.appendChild(A(l,new Date(e,t-1,s),s,u));for(s=1;s<=i;s++,u++)o.appendChild(A("",new Date(e,t,s),s,u));for(var f=i+1;f<=42-n&&(1===h.config.showMonths||u%7!=0);f++,u++)o.appendChild(A(c,new Date(e,t+1,f%i),f,u));var m=d("div","dayContainer");return m.appendChild(o),m}function R(){if(void 0!==h.daysContainer){s(h.daysContainer),h.weekNumbers&&s(h.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<h.config.showMonths;t++){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),e.appendChild(W(n.getFullYear(),n.getMonth()))}h.daysContainer.appendChild(e),h.days=h.daysContainer.firstChild,"range"===h.config.mode&&1===h.selectedDates.length&&ee()}}function B(){if(!(h.config.showMonths>1||"dropdown"!==h.config.monthSelectorType)){var e=function(e){return!(void 0!==h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&e<h.config.minDate.getMonth()||void 0!==h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()&&e>h.config.maxDate.getMonth())};h.monthsDropdownContainer.tabIndex=-1,h.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=d("option","flatpickr-monthDropdown-month");n.value=new Date(h.currentYear,t).getMonth().toString(),n.textContent=m(t,h.config.shorthandCurrentMonth,h.l10n),n.tabIndex=-1,h.currentMonth===t&&(n.selected=!0),h.monthsDropdownContainer.appendChild(n)}}}function J(){var e,t=d("div","flatpickr-month"),n=window.document.createDocumentFragment();h.config.showMonths>1||"static"===h.config.monthSelectorType?e=d("span","cur-month"):(h.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),O(h.monthsDropdownContainer,"change",(function(e){var t=e.target,n=parseInt(t.value,10);h.changeMonth(n-h.currentMonth),fe("onMonthChange")})),B(),e=h.monthsDropdownContainer);var a=u("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",h.l10n.yearAriaLabel),h.config.minDate&&i.setAttribute("min",h.config.minDate.getFullYear().toString()),h.config.maxDate&&(i.setAttribute("max",h.config.maxDate.getFullYear().toString()),i.disabled=!!h.config.minDate&&h.config.minDate.getFullYear()===h.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),t.appendChild(n),{container:t,yearElement:i,monthElement:e}}function K(){s(h.monthNav),h.monthNav.appendChild(h.prevMonthNav),h.config.showMonths&&(h.yearElements=[],h.monthElements=[]);for(var e=h.config.showMonths;e–;){var t=J();h.yearElements.push(t.yearElement),h.monthElements.push(t.monthElement),h.monthNav.appendChild(t.container)}h.monthNav.appendChild(h.nextMonthNav)}function U(){h.weekdayContainer?s(h.weekdayContainer):h.weekdayContainer=d("div","flatpickr-weekdays");for(var e=h.config.showMonths;e–;){var t=d("div","flatpickr-weekdaycontainer");h.weekdayContainer.appendChild(t)}return q(),h.weekdayContainer}function q(){if(h.weekdayContainer){var e=h.l10n.firstDayOfWeek,t=h.l10n.weekdays.shorthand.slice();e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=h.config.showMonths;n–;)h.weekdayContainer.children[n].innerHTML="\n <span class=’flatpickr-weekday’>\n "+t.join("</span><span class=’flatpickr-weekday’>")+"\n </span>\n "}}function $(e,t){void 0===t&&(t=!0);var n=t?e:e-h.currentMonth;n<0&&!0===h._hidePrevMonthArrow||n>0&&!0===h._hideNextMonthArrow||(h.currentMonth+=n,(h.currentMonth<0||h.currentMonth>11)&&(h.currentYear+=h.currentMonth>11?1:-1,h.currentMonth=(h.currentMonth+12)%12,fe("onYearChange"),B()),R(),fe("onMonthChange"),pe())}function z(e){return!(!h.config.appendTo||!h.config.appendTo.contains(e))||h.calendarContainer.contains(e)}function G(e){if(h.isOpen&&!h.config.inline){var t="function"==typeof(r=e).composedPath?r.composedPath()[0]:r.target,n=z(t),a=t===h.input||t===h.altInput||h.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(h.input)||~e.path.indexOf(h.altInput)),i="blur"===e.type?a&&e.relatedTarget&&!z(e.relatedTarget):!a&&!n&&!z(e.relatedTarget),o=!h.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&x(),h.close(),"range"===h.config.mode&&1===h.selectedDates.length&&(h.clear(!1),h.redraw()))}var r}function V(e){if(!(!e||h.config.minDate&&e<h.config.minDate.getFullYear()||h.config.maxDate&&e>h.config.maxDate.getFullYear())){var t=e,n=h.currentYear!==t;h.currentYear=t||h.currentYear,h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth=Math.min(h.config.maxDate.getMonth(),h.currentMonth):h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&(h.currentMonth=Math.max(h.config.minDate.getMonth(),h.currentMonth)),n&&(h.redraw(),fe("onYearChange"),B())}}function Z(e,t){void 0===t&&(t=!0);var n=h.parseDate(e,void 0,t);if(h.config.minDate&&n&&w(n,h.config.minDate,void 0!==t?t:!h.minDateHasTime)<0||h.config.maxDate&&n&&w(n,h.config.maxDate,void 0!==t?t:!h.maxDateHasTime)>0)return!1;if(0===h.config.enable.length&&0===h.config.disable.length)return!0;if(void 0===n)return!1;for(var a=h.config.enable.length>0,i=a?h.config.enable:h.config.disable,o=0,r=void 0;o<i.length;o++){if("function"==typeof(r=i[o])&&r(n))return a;if(r instanceof Date&&void 0!==n&&r.getTime()===n.getTime())return a;if("string"==typeof r&&void 0!==n){var l=h.parseDate(r,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof r&&void 0!==n&&r.from&&r.to&&n.getTime()>=r.from.getTime()&&n.getTime()<=r.to.getTime())return a}return!a}function Q(e){return void 0!==h.daysContainer&&-1===e.className.indexOf("hidden")&&h.daysContainer.contains(e)}function X(e){var t=e.target===h._input,n=h.config.allowInput,a=h.isOpen&&(!n||!t),i=h.config.inline&&t&&!n;if(13===e.keyCode&&t){if(n)return h.setDate(h._input.value,!0,e.target===h.altInput?h.config.altFormat:h.config.dateFormat),e.target.blur();h.open()}else if(z(e.target)||a||i){var o=!!h.timeContainer&&h.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?(e.preventDefault(),x(),le()):ce(e);break;case 27:e.preventDefault(),le();break;case 8:case 46:t&&!h.config.allowInput&&(e.preventDefault(),h.clear());break;case 37:case 39:if(o||t)h.hourElement&&h.hourElement.focus();else if(e.preventDefault(),void 0!==h.daysContainer&&(!1===n||document.activeElement&&Q(document.activeElement))){var r=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),$(r),L(H(1),0)):L(void 0,r)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;h.daysContainer&&void 0!==e.target.$i||e.target===h.input||e.target===h.altInput?e.ctrlKey?(e.stopPropagation(),V(h.currentYear-l),L(H(1),0)):o||L(void 0,7*l):e.target===h.currentYearElement?V(h.currentYear-l):h.config.enableTime&&(!o&&h.hourElement&&h.hourElement.focus(),x(e),h._debouncedChange());break;case 9:if(o){var c=[h.hourElement,h.minuteElement,h.secondElement,h.amPM].concat(h.pluginElements).filter((function(e){return e})),d=c.indexOf(e.target);if(-1!==d){var s=c[d+(e.shiftKey?-1:1)];e.preventDefault(),(s||h._input).focus()}}else!h.config.noCalendar&&h.daysContainer&&h.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),h._input.focus())}}if(void 0!==h.amPM&&e.target===h.amPM)switch(e.key){case h.l10n.amPM[0].charAt(0):case h.l10n.amPM[0].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[0],E(),ve();break;case h.l10n.amPM[1].charAt(0):case h.l10n.amPM[1].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[1],E(),ve()}(t||z(e.target))&&fe("onKeyDown",e)}function ee(e){if(1===h.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():h.days.firstElementChild.dateObj.getTime(),n=h.parseDate(h.selectedDates[0],void 0,!0).getTime(),a=Math.min(t,h.selectedDates[0].getTime()),i=Math.max(t,h.selectedDates[0].getTime()),o=!1,r=0,l=0,c=a;c<i;c+=b)Z(new Date(c),!0)||(o=o||c>a&&c<i,c<n&&(!r||c>r)?r=c:c>n&&(!l||c<l)&&(l=c));for(var d=0;d<h.config.showMonths;d++)for(var s=h.daysContainer.children[d],u=function(a,i){var c,d,u,f=s.children[a],m=f.dateObj.getTime(),g=r>0&&m<r||l>0&&m>l;return g?(f.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){f.classList.remove(e)})),"continue"):o&&!g?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){f.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=h.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&m===n?f.classList.add("startRange"):n>t&&m===n&&f.classList.add("endRange"),m>=r&&(0===l||m<=l)&&(d=n,u=t,(c=m)>Math.min(d,u)&&c<Math.max(d,u))&&f.classList.add("inRange"))))},f=0,m=s.children.length;f<m;f++)u(f)}}function te(){!h.isOpen||h.config.static||h.config.inline||oe()}function ne(){h.setDate(void 0!==h.config.minDate?new Date(h.config.minDate.getTime()):new Date,!0),k(),ve()}function ae(e){return function(t){var n=h.config["_"+e+"Date"]=h.parseDate(t,h.config.dateFormat),a=h.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(h["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),h.selectedDates&&(h.selectedDates=h.selectedDates.filter((function(e){return Z(e)})),h.selectedDates.length||"min"!==e||T(n),ve()),h.daysContainer&&(re(),void 0!==n?h.currentYearElement[e]=n.getFullYear().toString():h.currentYearElement.removeAttribute(e),h.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function ie(){"object"!=typeof h.config.locale&&void 0===y.l10ns[h.config.locale]&&h.config.errorHandler(new Error("flatpickr: invalid locale "+h.config.locale)),h.l10n=e({},y.l10ns.default,"object"==typeof h.config.locale?h.config.locale:"default"!==h.config.locale?y.l10ns[h.config.locale]:void 0),p.K="("+h.l10n.amPM[0]+"|\"+h.l10n.amPM[1]+\"|"+h.l10n.amPM[0].toLowerCase()+"|\"+h.l10n.amPM[1].toLowerCase()+\")\",void 0===e({},g,JSON.parse(JSON.stringify(f.dataset||{}))).time_24hr&&void 0===y.defaultConfig.time_24hr&&(h.config.time_24hr=h.l10n.time_24hr),h.formatDate=v(h),h.parseDate=D({config:h.config,l10n:h.l10n})}function oe(e){if(void 0!==h.calendarContainer){fe(\"onPreCalendarPosition\");var t=e||h._positionElement,n=Array.prototype.reduce.call(h.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),a=h.calendarContainer.offsetWidth,i=h.config.position.split(\" \"),o=i[0],r=i.length>1?i[1]:null,l=t.getBoundingClientRect(),d=window.innerHeight-l.bottom,s=\"above\"===o||"below"!==o&&d<n&&l.top>n,u=window.pageYOffset+l.top+(s?-n-2:t.offsetHeight+2);if(c(h.calendarContainer,"arrowTop",!s),c(h.calendarContainer,"arrowBottom",s),!h.config.inline){var f=window.pageXOffset+l.left-(null!=r&&"center"===r?(a-l.width)/2:0),m=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=f+a>window.document.body.offsetWidth,p=m+a>window.document.body.offsetWidth;if(c(h.calendarContainer,"rightMost",g),!h.config.static)if(h.calendarContainer.style.top=u+"px",g)if(p){var v=document.styleSheets[0];if(void 0===v)return;var D=window.document.body.offsetWidth,w=Math.max(0,D/2-a/2),b=v.cssRules.length,C="{left:"+l.left+"px;right:auto;}";c(h.calendarContainer,"rightMost",!1),c(h.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,b),h.calendarContainer.style.left=w+"px",h.calendarContainer.style.right="auto"}else h.calendarContainer.style.left="auto",h.calendarContainer.style.right=m+"px";else h.calendarContainer.style.left=f+"px",h.calendarContainer.style.right="auto"}}}function re(){h.config.noCalendar||h.isMobile||(pe(),R())}function le(){h._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(h.close,0):h.close()}function ce(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,a=h.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<h.currentMonth||a.getMonth()>h.currentMonth+h.config.showMonths-1)&&"range"!==h.config.mode;if(h.selectedDateElem=n,"single"===h.config.mode)h.selectedDates=[a];else if("multiple"===h.config.mode){var o=ge(a);o?h.selectedDates.splice(parseInt(o),1):h.selectedDates.push(a)}else"range"===h.config.mode&&(2===h.selectedDates.length&&h.clear(!1,!1),h.latestSelectedDateObj=a,h.selectedDates.push(a),0!==w(a,h.selectedDates[0],!0)&&h.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(E(),i){var r=h.currentYear!==a.getFullYear();h.currentYear=a.getFullYear(),h.currentMonth=a.getMonth(),r&&(fe("onYearChange"),B()),fe("onMonthChange")}if(pe(),R(),ve(),h.config.enableTime&&setTimeout((function(){return h.showTimeInput=!0}),50),i||"range"===h.config.mode||1!==h.config.showMonths?void 0!==h.selectedDateElem&&void 0===h.hourElement&&h.selectedDateElem&&h.selectedDateElem.focus():j(n),void 0!==h.hourElement&&void 0!==h.hourElement&&h.hourElement.focus(),h.config.closeOnSelect){var l="single"===h.config.mode&&!h.config.enableTime,c="range"===h.config.mode&&2===h.selectedDates.length&&!h.config.enableTime;(l||c)&&le()}F()}}h.parseDate=D({config:h.config,l10n:h.l10n}),h._handlers=[],h.pluginElements=[],h.loadedPlugins=[],h._bind=O,h._setHoursFromDate=T,h._positionCalendar=oe,h.changeMonth=$,h.changeYear=V,h.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),h.input.value="",void 0!==h.altInput&&(h.altInput.value=""),void 0!==h.mobileInput&&(h.mobileInput.value=""),h.selectedDates=[],h.latestSelectedDateObj=void 0,!0===t&&(h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth()),h.showTimeInput=!1,!0===h.config.enableTime&&k(),h.redraw(),e&&fe("onChange")},h.close=function(){h.isOpen=!1,h.isMobile||(void 0!==h.calendarContainer&&h.calendarContainer.classList.remove("open"),void 0!==h._input&&h._input.classList.remove("active")),fe("onClose")},h._createElement=d,h.destroy=function(){void 0!==h.config&&fe("onDestroy");for(var e=h._handlers.length;e–;){var t=h._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(h._handlers=[],h.mobileInput)h.mobileInput.parentNode&&h.mobileInput.parentNode.removeChild(h.mobileInput),h.mobileInput=void 0;else if(h.calendarContainer&&h.calendarContainer.parentNode)if(h.config.static&&h.calendarContainer.parentNode){var n=h.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else h.calendarContainer.parentNode.removeChild(h.calendarContainer);h.altInput&&(h.input.type="text",h.altInput.parentNode&&h.altInput.parentNode.removeChild(h.altInput),delete h.altInput),h.input&&(h.input.type=h.input._type,h.input.classList.remove("flatpickr-input"),h.input.removeAttribute("readonly"),h.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete h[e]}catch(e){}}))},h.isEnabled=Z,h.jumpToDate=N,h.open=function(e,t){if(void 0===t&&(t=h._positionElement),!0===h.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==h.mobileInput&&(h.mobileInput.focus(),h.mobileInput.click()),void fe("onOpen");if(!h._input.disabled&&!h.config.inline){var n=h.isOpen;h.isOpen=!0,n||(h.calendarContainer.classList.add("open"),h._input.classList.add("active"),fe("onOpen"),oe(t)),!0===h.config.enableTime&&!0===h.config.noCalendar&&(0===h.selectedDates.length&&ne(),!1!==h.config.allowInput||void 0!==e&&h.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return h.hourElement.select()}),50))}},h.redraw=re,h.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(h.config,e),e)void 0!==de[a]&&de[a].forEach((function(e){return e()}));else h.config[e]=n,void 0!==de[e]?de[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(h.config[e]=l(n));h.redraw(),ve(!1)},h.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=h.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return h.clear(t);se(e,n),h.showTimeInput=h.selectedDates.length>0,h.latestSelectedDateObj=h.selectedDates[h.selectedDates.length-1],h.redraw(),N(),T(),0===h.selectedDates.length&&h.clear(!1),ve(t),t&&fe("onChange")},h.toggle=function(e){if(!0===h.isOpen)return h.close();h.open(e)};var de={locale:[ie,q],showMonths:[K,M,U],minDate:[N],maxDate:[N]};function se(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return h.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[h.parseDate(e,t)];else if("string"==typeof e)switch(h.config.mode){case"single":case"time":n=[h.parseDate(e,t)];break;case"multiple":n=e.split(h.config.conjunction).map((function(e){return h.parseDate(e,t)}));break;case"range":n=e.split(h.l10n.rangeSeparator).map((function(e){return h.parseDate(e,t)}))}else h.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));h.selectedDates=n.filter((function(e){return e instanceof Date&&Z(e,!1)})),"range"===h.config.mode&&h.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ue(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?h.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:h.parseDate(e.from,void 0),to:h.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function fe(e,t){if(void 0!==h.config){var n=h.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](h.selectedDates,h.input.value,h,t);"onChange"===e&&(h.input.dispatchEvent(me("change")),h.input.dispatchEvent(me("input")))}}function me(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function ge(e){for(var t=0;t<h.selectedDates.length;t++)if(0===w(h.selectedDates[t],e))return""+t;return!1}function pe(){h.config.noCalendar||h.isMobile||!h.monthNav||(h.yearElements.forEach((function(e,t){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),h.config.showMonths>1||"static"===h.config.monthSelectorType?h.monthElements[t].textContent=m(n.getMonth(),h.config.shorthandCurrentMonth,h.l10n)+" ":h.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),h._hidePrevMonthArrow=void 0!==h.config.minDate&&(h.currentYear===h.config.minDate.getFullYear()?h.currentMonth<=h.config.minDate.getMonth():h.currentYear<h.config.minDate.getFullYear()),h._hideNextMonthArrow=void 0!==h.config.maxDate&&(h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth+1>h.config.maxDate.getMonth():h.currentYear>h.config.maxDate.getFullYear()))}function he(e){return h.selectedDates.map((function(t){return h.formatDate(t,e)})).filter((function(e,t,n){return"range"!==h.config.mode||h.config.enableTime||n.indexOf(e)===t})).join("range"!==h.config.mode?h.config.conjunction:h.l10n.rangeSeparator)}function ve(e){void 0===e&&(e=!0),void 0!==h.mobileInput&&h.mobileFormatStr&&(h.mobileInput.value=void 0!==h.latestSelectedDateObj?h.formatDate(h.latestSelectedDateObj,h.mobileFormatStr):""),h.input.value=he(h.config.dateFormat),void 0!==h.altInput&&(h.altInput.value=he(h.config.altFormat)),!1!==e&&fe("onValueUpdate")}function De(e){var t=h.prevMonthNav.contains(e.target),n=h.nextMonthNav.contains(e.target);t||n?$(t?-1:1):h.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?h.changeYear(h.currentYear+1):e.target.classList.contains("arrowDown")&&h.changeYear(h.currentYear-1)}return function(){h.element=h.input=f,h.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e({},g,JSON.parse(JSON.stringify(f.dataset||{}))),o={};h.config.parseDate=i.parseDate,h.config.formatDate=i.formatDate,Object.defineProperty(h.config,"enable",{get:function(){return h.config._enable},set:function(e){h.config._enable=ue(e)}}),Object.defineProperty(h.config,"disable",{get:function(){return h.config._disable},set:function(e){h.config._disable=ue(e)}});var r="time"===i.mode;if(!i.dateFormat&&(i.enableTime||r)){var c=y.defaultConfig.dateFormat||n.dateFormat;o.dateFormat=i.noCalendar||r?"H:i"+(i.enableSeconds?":S":""):c+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||r)&&!i.altFormat){var d=y.defaultConfig.altFormat||n.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):d+" h:i"+(i.enableSeconds?":S":"")+" K"}i.altInputClass||(h.config.altInputClass=h.input.className+" "+h.config.altInputClass),Object.defineProperty(h.config,"minDate",{get:function(){return h.config._minDate},set:ae("min")}),Object.defineProperty(h.config,"maxDate",{get:function(){return h.config._maxDate},set:ae("max")});var s=function(e){return function(t){h.config["min"===e?"_minTime":"_maxTime"]=h.parseDate(t,"H:i:S")}};Object.defineProperty(h.config,"minTime",{get:function(){return h.config._minTime},set:s("min")}),Object.defineProperty(h.config,"maxTime",{get:function(){return h.config._maxTime},set:s("max")}),"time"===i.mode&&(h.config.noCalendar=!0,h.config.enableTime=!0),Object.assign(h.config,o,i);for(var u=0;u<a.length;u++)h.config[a[u]]=!0===h.config[a[u]]||"true"===h.config[a[u]];for(t.filter((function(e){return void 0!==h.config[e]})).forEach((function(e){h.config[e]=l(h.config[e]||[]).map(C)})),h.isMobile=!h.config.disableMobile&&!h.config.inline&&"single"===h.config.mode&&!h.config.disable.length&&!h.config.enable.length&&!h.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),u=0;u<h.config.plugins.length;u++){var m=h.config.plugins[u](h)||{};for(var p in m)t.indexOf(p)>-1?h.config[p]=l(m[p]).map(C).concat(h.config[p]):void 0===i[p]&&(h.config[p]=m[p])}fe("onParseConfig")}(),ie(),h.input=h.config.wrap?f.querySelector("[data-input]"):f,h.input?(h.input._type=h.input.type,h.input.type="text",h.input.classList.add("flatpickr-input"),h._input=h.input,h.config.altInput&&(h.altInput=d(h.input.nodeName,h.config.altInputClass),h._input=h.altInput,h.altInput.placeholder=h.input.placeholder,h.altInput.disabled=h.input.disabled,h.altInput.required=h.input.required,h.altInput.tabIndex=h.input.tabIndex,h.altInput.type="text",h.input.setAttribute("type","hidden"),!h.config.static&&h.input.parentNode&&h.input.parentNode.insertBefore(h.altInput,h.input.nextSibling)),h.config.allowInput||h._input.setAttribute("readonly","readonly"),h._positionElement=h.config.positionElement||h._input):h.config.errorHandler(new Error("Invalid input element specified")),function(){h.selectedDates=[],h.now=h.parseDate(h.config.now)||new Date;var e=h.config.defaultDate||("INPUT"!==h.input.nodeName&&"TEXTAREA"!==h.input.nodeName||!h.input.placeholder||h.input.value!==h.input.placeholder?h.input.value:null);e&&se(e,h.config.dateFormat),h._initialDate=h.selectedDates.length>0?h.selectedDates[0]:h.config.minDate&&h.config.minDate.getTime()>h.now.getTime()?h.config.minDate:h.config.maxDate&&h.config.maxDate.getTime()<h.now.getTime()?h.config.maxDate:h.now,h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth(),h.selectedDates.length>0&&(h.latestSelectedDateObj=h.selectedDates[0]),void 0!==h.config.minTime&&(h.config.minTime=h.parseDate(h.config.minTime,"H:i")),void 0!==h.config.maxTime&&(h.config.maxTime=h.parseDate(h.config.maxTime,"H:i")),h.minDateHasTime=!!h.config.minDate&&(h.config.minDate.getHours()>0||h.config.minDate.getMinutes()>0||h.config.minDate.getSeconds()>0),h.maxDateHasTime=!!h.config.maxDate&&(h.config.maxDate.getHours()>0||h.config.maxDate.getMinutes()>0||h.config.maxDate.getSeconds()>0),Object.defineProperty(h,"showTimeInput",{get:function(){return h._showTimeInput},set:function(e){h._showTimeInput=e,h.calendarContainer&&c(h.calendarContainer,"showTimeInput",e),h.isOpen&&oe()}})}(),h.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=h.currentMonth),void 0===t&&(t=h.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:h.l10n.daysInMonth[e]}},h.isMobile||function(){var e=window.document.createDocumentFragment();if(h.calendarContainer=d("div","flatpickr-calendar"),h.calendarContainer.tabIndex=-1,!h.config.noCalendar){if(e.appendChild((h.monthNav=d("div","flatpickr-months"),h.yearElements=[],h.monthElements=[],h.prevMonthNav=d("span","flatpickr-prev-month"),h.prevMonthNav.innerHTML=h.config.prevArrow,h.nextMonthNav=d("span","flatpickr-next-month"),h.nextMonthNav.innerHTML=h.config.nextArrow,K(),Object.defineProperty(h,"_hidePrevMonthArrow",{get:function(){return h.__hidePrevMonthArrow},set:function(e){h.__hidePrevMonthArrow!==e&&(c(h.prevMonthNav,"flatpickr-disabled",e),h.__hidePrevMonthArrow=e)}}),Object.defineProperty(h,"_hideNextMonthArrow",{get:function(){return h.__hideNextMonthArrow},set:function(e){h.__hideNextMonthArrow!==e&&(c(h.nextMonthNav,"flatpickr-disabled",e),h.__hideNextMonthArrow=e)}}),h.currentYearElement=h.yearElements[0],pe(),h.monthNav)),h.innerContainer=d("div","flatpickr-innerContainer"),h.config.weekNumbers){var t=function(){h.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",h.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;h.innerContainer.appendChild(n),h.weekNumbers=a,h.weekWrapper=n}h.rContainer=d("div","flatpickr-rContainer"),h.rContainer.appendChild(U()),h.daysContainer||(h.daysContainer=d("div","flatpickr-days"),h.daysContainer.tabIndex=-1),R(),h.rContainer.appendChild(h.daysContainer),h.innerContainer.appendChild(h.rContainer),e.appendChild(h.innerContainer)}h.config.enableTime&&e.appendChild(function(){h.calendarContainer.classList.add("hasTime"),h.config.noCalendar&&h.calendarContainer.classList.add("noCalendar"),h.timeContainer=d("div","flatpickr-time"),h.timeContainer.tabIndex=-1;var e=d("span","flatpickr-time-separator",":"),t=u("flatpickr-hour",{"aria-label":h.l10n.hourAriaLabel});h.hourElement=t.getElementsByTagName("input")[0];var n=u("flatpickr-minute",{"aria-label":h.l10n.minuteAriaLabel});if(h.minuteElement=n.getElementsByTagName("input")[0],h.hourElement.tabIndex=h.minuteElement.tabIndex=-1,h.hourElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getHours():h.config.time_24hr?h.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(h.config.defaultHour)),h.minuteElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getMinutes():h.config.defaultMinute),h.hourElement.setAttribute("step",h.config.hourIncrement.toString()),h.minuteElement.setAttribute("step",h.config.minuteIncrement.toString()),h.hourElement.setAttribute("min",h.config.time_24hr?"0":"1"),h.hourElement.setAttribute("max",h.config.time_24hr?"23":"12"),h.minuteElement.setAttribute("min","0"),h.minuteElement.setAttribute("max","59"),h.timeContainer.appendChild(t),h.timeContainer.appendChild(e),h.timeContainer.appendChild(n),h.config.time_24hr&&h.timeContainer.classList.add("time24hr"),h.config.enableSeconds){h.timeContainer.classList.add("hasSeconds");var a=u("flatpickr-second");h.secondElement=a.getElementsByTagName("input")[0],h.secondElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getSeconds():h.config.defaultSeconds),h.secondElement.setAttribute("step",h.minuteElement.getAttribute("step")),h.secondElement.setAttribute("min","0"),h.secondElement.setAttribute("max","59"),h.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),h.timeContainer.appendChild(a)}return h.config.time_24hr||(h.amPM=d("span","flatpickr-am-pm",h.l10n.amPM[o((h.latestSelectedDateObj?h.hourElement.value:h.config.defaultHour)>11)]),h.amPM.title=h.l10n.toggleTitle,h.amPM.tabIndex=-1,h.timeContainer.appendChild(h.amPM)),h.timeContainer}()),c(h.calendarContainer,"rangeMode","range"===h.config.mode),c(h.calendarContainer,"animate",!0===h.config.animate),c(h.calendarContainer,"multiMonth",h.config.showMonths>1),h.calendarContainer.appendChild(e);var r=void 0!==h.config.appendTo&&void 0!==h.config.appendTo.nodeType;if((h.config.inline||h.config.static)&&(h.calendarContainer.classList.add(h.config.inline?"inline":"static"),h.config.inline&&(!r&&h.element.parentNode?h.element.parentNode.insertBefore(h.calendarContainer,h._input.nextSibling):void 0!==h.config.appendTo&&h.config.appendTo.appendChild(h.calendarContainer)),h.config.static)){var l=d("div","flatpickr-wrapper");h.element.parentNode&&h.element.parentNode.insertBefore(l,h.element),l.appendChild(h.element),h.altInput&&l.appendChild(h.altInput),l.appendChild(h.calendarContainer)}h.config.static||h.config.inline||(void 0!==h.config.appendTo?h.config.appendTo:window.document.body).appendChild(h.calendarContainer)}(),function(){if(h.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(h.element.querySelectorAll("[data-"+e+"]"),(function(t){return O(t,"click",h[e])}))})),h.isMobile)!function(){var e=h.config.enableTime?h.config.noCalendar?"time":"datetime-local":"date";h.mobileInput=d("input",h.input.className+" flatpickr-mobile"),h.mobileInput.step=h.input.getAttribute("step")||"any",h.mobileInput.tabIndex=1,h.mobileInput.type=e,h.mobileInput.disabled=h.input.disabled,h.mobileInput.required=h.input.required,h.mobileInput.placeholder=h.input.placeholder,h.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",h.selectedDates.length>0&&(h.mobileInput.defaultValue=h.mobileInput.value=h.formatDate(h.selectedDates[0],h.mobileFormatStr)),h.config.minDate&&(h.mobileInput.min=h.formatDate(h.config.minDate,"Y-m-d")),h.config.maxDate&&(h.mobileInput.max=h.formatDate(h.config.maxDate,"Y-m-d")),h.input.type="hidden",void 0!==h.altInput&&(h.altInput.type="hidden");try{h.input.parentNode&&h.input.parentNode.insertBefore(h.mobileInput,h.input.nextSibling)}catch(e){}O(h.mobileInput,"change",(function(e){h.setDate(e.target.value,!1,h.mobileFormatStr),fe("onChange"),fe("onClose")}))}();else{var e=r(te,50);h._debouncedChange=r(F,300),h.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&O(h.daysContainer,"mouseover",(function(e){"range"===h.config.mode&&ee(e.target)})),O(window.document.body,"keydown",X),h.config.inline||h.config.static||O(window,"resize",e),void 0!==window.ontouchstart?O(window.document,"touchstart",G):O(window.document,"mousedown",_(G)),O(window.document,"focus",G,{capture:!0}),!0===h.config.clickOpens&&(O(h._input,"focus",h.open),O(h._input,"mousedown",_(h.open))),void 0!==h.daysContainer&&(O(h.monthNav,"mousedown",_(De)),O(h.monthNav,["keyup","increment"],S),O(h.daysContainer,"mousedown",_(ce))),void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&(O(h.timeContainer,["increment"],x),O(h.timeContainer,"blur",x,{capture:!0}),O(h.timeContainer,"mousedown",_(P)),O([h.hourElement,h.minuteElement],["focus","click"],(function(e){return e.target.select()})),void 0!==h.secondElement&&O(h.secondElement,"focus",(function(){return h.secondElement&&h.secondElement.select()})),void 0!==h.amPM&&O(h.amPM,"mousedown",_((function(e){x(e),F()}))))}}(),(h.selectedDates.length||h.config.noCalendar)&&(h.config.enableTime&&T(h.config.noCalendar?h.latestSelectedDateObj||h.config.minDate:void 0),ve(!1)),M(),h.showTimeInput=h.selectedDates.length>0||h.config.noCalendar;var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!h.isMobile&&a&&oe(),fe("onReady")}(),h}function M(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=C(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},i=0,o=t;i<o.length;i++){var r=o[i];a(r)}return e}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return M(this,e)},HTMLElement.prototype.flatpickr=function(e){return M([this],e)});var y=function(e,t){return"string"==typeof e?M(window.document.querySelectorAll(e),t):e instanceof Node?M([e],t):M(e,t)};return y.defaultConfig={},y.l10ns={en:e({},a),default:e({},a)},y.localize=function(t){y.l10ns.default=e({},y.l10ns.default,t)},y.setDefaults=function(t){y.defaultConfig=e({},y.defaultConfig,t)},y.parseDate=D({}),y.formatDate=v({}),y.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return M(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=y),y},"object"==typeof n&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):(a=a||self).flatpickr=i()},n 394: function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const a=n(1);n(67),a.__importStar(n(66)).styles.append(‘.flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n background: #fff;\n -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);\n box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #e6e6e6;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: \’\’;\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #fff;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #fff;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n background: transparent;\n color: rgba(0, 0, 0, 0.9);\n fill: rgba(0, 0, 0, 0.9);\n height: 34px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0;\n height: 34px;\n padding: 10px;\n z-index: 3;\n color: rgba(0, 0, 0, 0.9);\n fill: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,\n.flatpickr-months .flatpickr-next-month.flatpickr-disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n /\n /*rtl:begin:ignore/\n /\n */\n left: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n /\n /*rtl:begin:ignore/\n /\n */\n right: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #959ea9;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(57, 57, 57, 0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0, 0, 0, 0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: "";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(57, 57, 57, 0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(57, 57, 57, 0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(0, 0, 0, 0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 7.48px 0 0 0;\n line-height: 1;\n height: 34px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(0, 0, 0, 0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months {\n appearance: menulist;\n background: transparent;\n border: none;\n border-radius: 0;\n box-sizing: border-box;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n height: auto;\n line-height: inherit;\n margin: -1px 0 0 0;\n outline: none;\n padding: 0 0 0 0.5ch;\n position: relative;\n vertical-align: initial;\n -webkit-box-sizing: border-box;\n -webkit-appearance: menulist;\n -moz-appearance: menulist;\n width: auto;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:focus,\n.flatpickr-current-month .flatpickr-monthDropdown-months:active {\n outline: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {\n background-color: transparent;\n outline: none;\n padding: 0;\n}\n.flatpickr-weekdays {\n background: transparent;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: transparent;\n color: rgba(0, 0, 0, 0.54);\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #e6e6e6;\n box-shadow: -1px 0 0 #e6e6e6;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #393939;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e6e6e6;\n border-color: #e6e6e6;\n}\n.flatpickr-day.today {\n border-color: #959ea9;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #959ea9;\n background: #959ea9;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #569ff7;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #569ff7;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #569ff7;\n box-shadow: -10px 0 0 #569ff7;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(57, 57, 57, 0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover {\n cursor: not-allowed;\n color: rgba(57, 57, 57, 0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n -webkit-box-shadow: 1px 0 0 #e6e6e6;\n box-shadow: 1px 0 0 #e6e6e6;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(57, 57, 57, 0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-time:after {\n content: "";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #393939;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #393939;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #393939;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n float: left;\n line-height: inherit;\n color: #393939;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eee;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n.flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n -webkit-box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);\n box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #eceef1;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-innerContainer {\n border-bottom: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n border: 1px solid #eceef1;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: \’\’;\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #eceef1;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #eceef1;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #eceef1;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #eceef1;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n border-radius: 5px 5px 0 0;\n background: #eceef1;\n color: #5a6171;\n fill: #5a6171;\n height: 34px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0;\n height: 34px;\n padding: 10px;\n z-index: 3;\n color: #5a6171;\n fill: #5a6171;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,\n.flatpickr-months .flatpickr-next-month.flatpickr-disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n /\n /*rtl:begin:ignore/\n /\n */\n left: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n /\n /*rtl:begin:ignore/\n /\n */\n right: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #bbb;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(72, 72, 72, 0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0, 0, 0, 0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: "";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(72, 72, 72, 0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(72, 72, 72, 0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(90, 97, 113, 0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 7.48px 0 0 0;\n line-height: 1;\n height: 34px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: #5a6171;\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: #5a6171;\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(90, 97, 113, 0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months {\n appearance: menulist;\n background: #eceef1;\n border: none;\n border-radius: 0;\n box-sizing: border-box;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n height: auto;\n line-height: inherit;\n margin: -1px 0 0 0;\n outline: none;\n padding: 0 0 0 0.5ch;\n position: relative;\n vertical-align: initial;\n -webkit-box-sizing: border-box;\n -webkit-appearance: menulist;\n -moz-appearance: menulist;\n width: auto;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:focus,\n.flatpickr-current-month .flatpickr-monthDropdown-months:active {\n outline: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {\n background-color: #eceef1;\n outline: none;\n padding: 0;\n}\n.flatpickr-weekdays {\n background: #eceef1;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: #eceef1;\n color: #5a6171;\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n border-left: 1px solid #eceef1;\n border-right: 1px solid #eceef1;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #eceef1;\n box-shadow: -1px 0 0 #eceef1;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #484848;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e2e2e2;\n border-color: #e2e2e2;\n}\n.flatpickr-day.today {\n border-color: #bbb;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #bbb;\n background: #bbb;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #ff5a5f;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #ff5a5f;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #ff5a5f;\n box-shadow: -10px 0 0 #ff5a5f;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;\n box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(72, 72, 72, 0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover {\n cursor: not-allowed;\n color: rgba(72, 72, 72, 0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;\n box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n border-left: 1px solid #eceef1;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(72, 72, 72, 0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n background: #fff;\n border-bottom: 1px solid #eceef1;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n background: #fff;\n border-radius: 0 0 5px 5px;\n}\n.flatpickr-time:after {\n content: "";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #484848;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #484848;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #484848;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n float: left;\n line-height: inherit;\n color: #484848;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eaeaea;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\nspan.flatpickr-day.selected {\n font-weight: bold;\n}\n’)},n 395: function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(1).__importDefault(e(157)),r=e(396);class n extends r.AbstractRangeSliderView{}a.DateRangeSliderView=n,n.__name__="DateRangeSliderView";class d extends r.AbstractSlider{constructor(e){super(e),this.behaviour="drag",this.connected=[!1,!0,!1]}static init_DateRangeSlider(){this.prototype.default_view=n,this.override({format:"%d %b %Y"})}_formatter(e,t){return i.default(e,t)}}a.DateRangeSlider=d,d.__name__="DateRangeSlider",d.init_DateRangeSlider()},n 396: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),l=i.__importStar(e(397)),r=i.__importStar(e(19)),o=e(66),n=e(9),a=e(379),d=e(398),h="bk-noUi-";class _ extends a.ControlView{get noUiSlider(){return this.slider_el.noUiSlider}initialize(){super.initialize()}connect_signals(){super.connect_signals();const{direction:e,orientation:t,tooltips:s}=this.model.properties;this.on_change([e,t,s],()=>this.render());const{start:i,end:l,value:r,step:o,title:n}=this.model.properties;this.on_change([i,l,r,o],()=>{const{start:e,end:t,value:s,step:i}=this._calc_to();this.noUiSlider.updateOptions({range:{min:e,max:t},start:s,step:i})});const{bar_color:a}=this.model.properties;this.on_change(a,()=>{this._set_bar_color()});const{show_value:d}=this.model.properties;this.on_change([r,n,d],()=>this._update_title())}_update_title(){o.empty(this.title_el);const e=null==this.model.title||0==this.model.title.length&&!this.model.show_value;if(this.title_el.style.display=e?"none":"",!e&&(0!=this.model.title.length&&(this.title_el.textContent=`${this.model.title}: ),this.model.show_value)){const{value:e}=this._calc_to(),t=e.map(e=>this.model.pretty(e)).join(" .. ");this.title_el.appendChild(o.span({class:d.bk_slider_value},t))}}_set_bar_color(){if(!this.model.disabled){this.slider_el.querySelector(.${h}connect`).style.backgroundColor=this.model.bar_color}}_keypress_handle(e,t=0){const{start:s,value:i,end:l,step:r}=this._calc_to(),o=2==i.length;let n=s,a=l;switch(o&&0==t?a=i[1]:o&&1==t&&(n=i[0]),e.which){case 37:i[t]=Math.max(i[t]-r,n);break;case 39:i[t]=Math.min(i[t]+r,a);break;default:return}this.model.value=o?i:i[0],this.model.properties.value.change.emit(),this.model.value_throttled=this.model.value,this.noUiSlider.set(i)}render(){super.render();const{start:e,end:t,value:s,step:i}=this._calc_to();let r;if(this.model.tooltips){const e={to:e=>this.model.pretty(e)};r=n.repeat(e,s.length)}else r=!1;if(null==this.slider_el){this.slider_el=o.div(),l.create(this.slider_el,{cssPrefix:h,range:{min:e,max:t},start:s,step:i,behaviour:this.model.behaviour,connect:this.model.connected,tooltips:r,orientation:this.model.orientation,direction:this.model.direction}),this.noUiSlider.on("slide",(e,t,s)=>this._slide(s)),this.noUiSlider.on("change",(e,t,s)=>this._change(s)),this._set_keypress_handles();const n=(e,t)=>{if(!r)return;this.slider_el.querySelectorAll(.${h}handle)[e].querySelector(.${h}tooltip).style.display=t?"block":""};this.noUiSlider.on("start",(e,t)=>n(t,!0)),this.noUiSlider.on("end",(e,t)=>n(t,!1))}else this.noUiSlider.updateOptions({range:{min:e,max:t},start:s,step:i});this._set_bar_color(),this.model.disabled?this.slider_el.setAttribute("disabled","true"):this.slider_el.removeAttribute("disabled"),this.title_el=o.div({class:d.bk_slider_title}),this._update_title(),this.group_el=o.div({class:d.bk_input_group},this.title_el,this.slider_el),this.el.appendChild(this.group_el)}_slide(e){this.model.value=this._calc_from(e)}_change(e){this.model.value=this._calc_from(e),this.model.value_throttled=this.model.value}}_.__name__="AbstractBaseSliderView";class c extends _{_calc_to(){return{start:this.model.start,end:this.model.end,value:[this.model.value],step:this.model.step}}_calc_from([e]){return Number.isInteger(this.model.start)&&Number.isInteger(this.model.end)&&Number.isInteger(this.model.step)?Math.round(e):e}_set_keypress_handles(){const e=this.slider_el.querySelector(.${h}handle);e.setAttribute("tabindex","0"),e.addEventListener("keydown",e=>this._keypress_handle(e))}}s.AbstractSliderView=c,c.__name__="AbstractSliderView";class u extends _{_calc_to(){return{start:this.model.start,end:this.model.end,value:this.model.value,step:this.model.step}}_calc_from(e){return e}_set_keypress_handles(){const e=this.slider_el.querySelector(.${h}handle-lower),t=this.slider_el.querySelector(.${h}handle-upper);e.setAttribute("tabindex","0"),e.addEventListener("keydown",e=>this._keypress_handle(e,0)),t.setAttribute("tabindex","1"),t.addEventListener("keydown",e=>this._keypress_handle(e,1))}}s.AbstractRangeSliderView=u,u.__name__="AbstractRangeSliderView";class m extends a.Control{constructor(e){super(e),this.connected=!1}static init_AbstractSlider(){this.define({title:[r.String,""],show_value:[r.Boolean,!0],start:[r.Any],end:[r.Any],value:[r.Any],value_throttled:[r.Any],step:[r.Number,1],format:[r.Any],direction:[r.Any,"ltr"],tooltips:[r.Boolean,!0],bar_color:[r.Color,"#e6e6e6"]})}_formatter(e,t){return`${e}`}pretty(e){return this._formatter(e,this.format)}}s.AbstractSlider=m,m.__name__="AbstractSlider",m.init_AbstractSlider()},n 397: function _(t,e,r){n /! nouislider - 10.1.0 - 2017-07-28 17:11:18 */var n;n=function(){"use strict";var t="10.1.0";function e(t){t.preventDefault()}function r(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function n(t,e,r){r>0&&(s(t,e),setTimeout((function(){a(t,e)}),r))}function i(t){return Array.isArray(t)?t:[t]}function o(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function s(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function a(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function l(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:r?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:r?t.documentElement.scrollTop:t.body.scrollTop}}function u(t,e){return 100/(e-t)}function c(t,e){return 100*e/(t[1]-t[0])}function p(t,e){for(var r=1;t>=e[r];)r+=1;return r}function f(t,e,r){if(r>=t.slice(-1)[0])return 100;var n,i,o,s,a=p(r,t);return n=t[a-1],i=t[a],o=e[a-1],s=e[a],o+function(t,e){return c(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}([n,i],r)/u(o,s)}function d(t,e,r,n){if(100===n)return n;var i,o,s=p(n,t);return r?n-(i=t[s-1])>((o=t[s])-i)/2?o:i:e[s-1]?t[s-1]+function(t,e){return Math.round(t/e)*e}(n-t[s-1],e[s-1]):n}function h(t,e,n){var i;if("number"==typeof e&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(e))throw new Error("noUiSlider (10.1.0): ‘range’ contains invalid value.");if(!r(i="min"===t?0:"max"===t?100:parseFloat(t))||!r(e[0]))throw new Error("noUiSlider (10.1.0): ‘range’ value isn’t numeric.");n.xPct.push(i),n.xVal.push(e[0]),i?n.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(n.xSteps[0]=e[1]),n.xHighestCompleteStep.push(0)}function m(t,e,r){if(!e)return!0;r.xSteps[t]=c([r.xVal[t],r.xVal[t+1]],e)/u(r.xPct[t],r.xPct[t+1]);var n=(r.xVal[t+1]-r.xVal[t])/r.xNumSteps[t],i=Math.ceil(Number(n.toFixed(3))-1),o=r.xVal[t]+r.xNumSteps[t]*i;r.xHighestCompleteStep[t]=o}function g(t,e,r){this.xPct=[],this.xVal=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var n,i=[];for(n in t)t.hasOwnProperty(n)&&i.push([t[n],n]);for(i.length&&"object"==typeof i[0][0]?i.sort((function(t,e){return t[0][0]-e[0][0]})):i.sort((function(t,e){return t[0]-e[0]})),n=0;n<i.length;n++)h(i[n][1],i[n][0],this);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)m(n,this.xNumSteps[n],this)}g.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!=0)throw new Error("noUiSlider (10.1.0): ‘limit’, ‘margin’ and ‘padding’ must be divisible by step.");return 2===this.xPct.length&&c(this.xVal,t)},g.prototype.toStepping=function(t){return t=f(this.xVal,this.xPct,t)},g.prototype.fromStepping=function(t){return function(t,e,r){if(r>=100)return t.slice(-1)[0];var n,i=p(r,e);return function(t,e){return e*(t[1]-t[0])/100+t[0]}([t[i-1],t[i]],(r-(n=e[i-1]))*u(n,e[i]))}(this.xVal,this.xPct,t)},g.prototype.getStep=function(t){return t=d(this.xPct,this.xSteps,this.snap,t)},g.prototype.getNearbySteps=function(t){var e=p(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},g.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(o);return Math.max.apply(null,t)},g.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var v={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};function b(t){if(function(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}(t))return!0;throw new Error("noUiSlider (10.1.0): ‘format’ requires ‘to’ and ‘from’ methods.")}function S(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘step’ is not numeric.");t.singleStep=e}function w(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider (10.1.0): ‘range’ is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider (10.1.0): Missing ‘min’ or ‘max’ in ‘range’.");if(e.min===e.max)throw new Error("noUiSlider (10.1.0): ‘range’ ‘min’ and ‘max’ cannot be equal.");t.spectrum=new g(e,t.snap,t.singleStep)}function x(t,e){if(e=i(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider (10.1.0): ‘start’ option is incorrect.");t.handles=e.length,t.start=e}function y(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘snap’ option must be a boolean.")}function E(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘animate’ option must be a boolean.")}function C(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘animationDuration’ option must be a number.")}function N(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider (10.1.0): ‘connect’ option doesn’t match handle count.");n=e}t.connect=n}function U(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider (10.1.0): ‘orientation’ option is invalid.")}}function P(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘margin’ option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider (10.1.0): ‘margin’ option is only supported on linear sliders.")}function A(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘limit’ option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit||t.handles<2)throw new Error("noUiSlider (10.1.0): ‘limit’ option is only supported on linear sliders with 2 or more handles.")}function M(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘padding’ option must be numeric.");if(0!==e){if(t.padding=t.spectrum.getMargin(e),!t.padding)throw new Error("noUiSlider (10.1.0): ‘padding’ option is only supported on linear sliders.");if(t.padding<0)throw new Error("noUiSlider (10.1.0): ‘padding’ option must be a positive number.");if(t.padding>=50)throw new Error("noUiSlider (10.1.0): ‘padding’ option must be less than half the range.")}}function O(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider (10.1.0): ‘direction’ option was not recognized.")}}function k(t,e){if("string"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘behaviour’ must be a string containing options.");var r=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider (10.1.0): ‘fixed’ behaviour must be used with 2 handles");P(t,t.start[1]-t.start[0])}t.events={tap:r||o,drag:n,fixed:i,snap:o,hover:s}}function V(t,e){if(t.multitouch=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘multitouch’ option must be a boolean.")}function F(t,e){if(!1!==e)if(!0===e){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(!0)}else{if(t.tooltips=i(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider (10.1.0): must pass a formatter for all handles.");t.tooltips.forEach((function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider (10.1.0): ‘tooltips’ must be passed a formatter or ‘false’.")}))}}function L(t,e){t.ariaFormat=e,b(e)}function z(t,e){t.format=e,b(e)}function j(t,e){if(void 0!==e&&"string"!=typeof e&&!1!==e)throw new Error("noUiSlider (10.1.0): ‘cssPrefix’ must be a string or `false`.");t.cssPrefix=e}function H(t,e){if(void 0!==e&&"object"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘cssClasses’ must be an object.");if("string"==typeof t.cssPrefix)for(var r in t.cssClasses={},e)e.hasOwnProperty(r)&&(t.cssClasses[r]=t.cssPrefix+e[r]);else t.cssClasses=e}function D(t,e){if(!0!==e&&!1!==e)throw new Error("noUiSlider (10.1.0): ‘useRequestAnimationFrame’ option should be true (default) or false.");t.useRequestAnimationFrame=e}function q(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:v,format:v},r={step:{r:!1,t:S},start:{r:!0,t:x},connect:{r:!0,t:N},direction:{r:!0,t:O},snap:{r:!1,t:y},animate:{r:!1,t:E},animationDuration:{r:!1,t:C},range:{r:!0,t:w},orientation:{r:!1,t:U},margin:{r:!1,t:P},limit:{r:!1,t:A},padding:{r:!1,t:M},behaviour:{r:!0,t:k},multitouch:{r:!0,t:V},ariaFormat:{r:!1,t:L},format:{r:!1,t:z},tooltips:{r:!1,t:F},cssPrefix:{r:!1,t:j},cssClasses:{r:!1,t:H},useRequestAnimationFrame:{r:!1,t:D}},n={connect:!1,direction:"ltr",behaviour:"tap",multitouch:!1,orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(r).forEach((function(i){if(void 0===t[i]&&void 0===n[i]){if(r[i].r)throw new Error("noUiSlider (10.1.0): ‘"+i+"’ is required.");return!0}r[i].t(e,void 0===t[i]?n[i]:t[i])})),e.pips=t.pips;var i=[["left","top"],["right","bottom"]];return e.style=i[e.dir][e.ort],e.styleOposite=i[e.dir?0:1][e.ort],e}function T(t,r,o){var u,c,p,f,d,h,m,g=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},v=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),b=t,S=[],w=[],x=0,y=r.spectrum,E=[],C={},N=t.ownerDocument,U=N.documentElement,P=N.body;function A(t,e){var r=N.createElement("div");return e&&s(r,e),t.appendChild(r),r}function M(t,e){var n=A(t,r.cssClasses.origin),i=A(n,r.cssClasses.handle);return i.setAttribute("data-handle",e),i.setAttribute("tabindex","0"),i.setAttribute("role","slider"),i.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),0===e?s(i,r.cssClasses.handleLower):e===r.handles-1&&s(i,r.cssClasses.handleUpper),n}function O(t,e){return!!e&&A(t,r.cssClasses.connect)}function k(t,e){return!!r.tooltips[e]&&A(t.firstChild,r.cssClasses.tooltip)}function V(t,e,n){var i=N.createElement("div"),o=[r.cssClasses.valueNormal,r.cssClasses.valueLarge,r.cssClasses.valueSub],a=[r.cssClasses.markerNormal,r.cssClasses.markerLarge,r.cssClasses.markerSub],l=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],u=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];function c(t,e){var n=e===r.cssClasses.value,i=n?o:a;return e+" "+(n?l:u)[r.ort]+" "+i[t]}return s(i,r.cssClasses.pips),s(i,0===r.ort?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical),Object.keys(t).forEach((function(o){!function(t,o){o[1]=o[1]&&e?e(o[0],o[1]):o[1];var s=A(i,!1);s.className=c(o[1],r.cssClasses.marker),s.style[r.style]=t+"%",o[1]&&((s=A(i,!1)).className=c(o[1],r.cssClasses.value),s.style[r.style]=t+"%",s.innerText=n.to(o[0]))}(o,t[o])})),i}function F(){var t;d&&((t=d).parentElement.removeChild(t),d=null)}function L(t){F();var e=t.mode,r=t.density||1,n=t.filter||!1,i=function(t,e,r){if("range"===t||"steps"===t)return y.xVal;if("count"===t){if(!e)throw new Error("noUiSlider (10.1.0): ‘values’ required for mode ‘count’.");var n,i=100/(e-1),o=0;for(e=[];(n=o++*i)<=100;)e.push(n);t="positions"}return"positions"===t?e.map((function(t){return y.fromStepping(r?y.getStep(t):t)})):"values"===t?r?e.map((function(t){return y.fromStepping(y.getStep(y.toStepping(t)))})):e:void 0}(e,t.values||!1,t.stepped||!1),o=function(t,e,r){var n,i={},o=y.xVal[0],s=y.xVal[y.xVal.length-1],a=!1,l=!1,u=0;return n=r.slice().sort((function(t,e){return t-e})),(r=n.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==o&&(r.unshift(o),a=!0),r[r.length-1]!==s&&(r.push(s),l=!0),r.forEach((function(n,o){var s,c,p,f,d,h,m,g,v,b=n,S=r[o+1];if("steps"===e&&(s=y.xNumSteps[o]),s||(s=S-b),!1!==b&&void 0!==S)for(s=Math.max(s,1e-7),c=b;c<=S;c=(c+s).toFixed(7)/1){for(m=(d=(f=y.toStepping(c))-u)/t,v=d/(g=Math.round(m)),p=1;p<=g;p+=1)i[(u+p*v).toFixed(5)]=["x",0];h=r.indexOf(c)>-1?1:"steps"===e?2:0,!o&&a&&(h=0),c===S&&l||(i[f.toFixed(5)]=[c,h]),u=f}})),i}(r,e,i),s=t.format||{to:Math.round};return d=b.appendChild(V(o,n,s))}function z(){var t=u.getBoundingClientRect(),e="offset"+["Width","Height"][r.ort];return 0===r.ort?t.width||u[e]:t.height||u[e]}function j(t,e,n,i){var o=function(o){return!b.hasAttribute("disabled")&&(s=b,a=r.cssClasses.tap,!(s.classList?s.classList.contains(a):new RegExp("\\b"+a+"\\b").test(s.className))&&!!(o=function(t,e,n){var i,o,s=0===t.type.indexOf("touch"),a=0===t.type.indexOf("mouse"),u=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(u=!0),s&&r.multitouch){var c=function(t){return t.target===n||n.contains(t.target)};if("touchstart"===t.type){var p=Array.prototype.filter.call(t.touches,c);if(p.length>1)return!1;i=p[0].pageX,o=p[0].pageY}else{var f=Array.prototype.find.call(t.changedTouches,c);if(!f)return!1;i=f.pageX,o=f.pageY}}else if(s){if(t.touches.length>1)return!1;i=t.changedTouches[0].pageX,o=t.changedTouches[0].pageY}return e=e||l(N),(a||u)&&(i=t.clientX+e.x,o=t.clientY+e.y),t.pageOffset=e,t.points=[i,o],t.cursor=a||u,t}(o,i.pageOffset,i.target||e))&&!(t===g.start&&void 0!==o.buttons&&o.buttons>1)&&(!i.hover||!o.buttons)&&(v||o.preventDefault(),o.calcPoint=o.points[r.ort],void n(o,i)));var s,a},s=[];return t.split(" ").forEach((function(t){e.addEventListener(t,o,!!v&&{passive:!0}),s.push([t,o])})),s}function H(t){var e,n,i,o,s,a,c=100*(t-(e=u,n=r.ort,i=e.getBoundingClientRect(),o=e.ownerDocument,s=o.documentElement,a=l(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?i.top+a.y-s.clientTop:i.left+a.x-s.clientLeft))/z();return r.dir?100-c:c}function D(t,e,r,n){var i=r.slice(),o=[!t,t],s=[t,!t];n=n.slice(),t&&n.reverse(),n.length>1?n.forEach((function(t,r){var n=W(i,t,i[t]+e,o[r],s[r],!1);!1===n?e=0:(e=n-i[t],i[t]=n)})):o=s=[!0];var a=!1;n.forEach((function(t,n){a=J(t,r[t]+e,o[n],s[n])||a})),a&&n.forEach((function(t){T("update",t),T("slide",t)}))}function T(t,e,n){Object.keys(C).forEach((function(i){var o=i.split(".")[0];t===o&&C[i].forEach((function(t){t.call(f,E.map(r.format.to),e,E.slice(),n||!1,S.slice())}))}))}function R(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&B(t,e)}function X(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return B(t,e);var n=(r.dir?-1:1)*(t.calcPoint-e.startCalcPoint);D(n>0,100*n/e.baseSize,e.locations,e.handleNumbers)}function B(t,n){n.handle&&(a(n.handle,r.cssClasses.active),x-=1),n.listeners.forEach((function(t){U.removeEventListener(t[0],t[1])})),0===x&&(a(b,r.cssClasses.drag),G(),t.cursor&&(P.style.cursor="",P.removeEventListener("selectstart",e))),n.handleNumbers.forEach((function(t){T("change",t),T("set",t),T("end",t)}))}function Y(t,n){var i;if(1===n.handleNumbers.length){var o=c[n.handleNumbers[0]];if(o.hasAttribute("disabled"))return!1;i=o.children[0],x+=1,s(i,r.cssClasses.active)}t.stopPropagation();var a=[],l=j(g.move,U,X,{target:t.target,handle:i,listeners:a,startCalcPoint:t.calcPoint,baseSize:z(),pageOffset:t.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:t.buttons,locations:S.slice()}),u=j(g.end,U,B,{target:t.target,handle:i,listeners:a,handleNumbers:n.handleNumbers}),p=j("mouseout",U,R,{target:t.target,handle:i,listeners:a,handleNumbers:n.handleNumbers});a.push.apply(a,l.concat(u,p)),t.cursor&&(P.style.cursor=getComputedStyle(t.target).cursor,c.length>1&&s(b,r.cssClasses.drag),P.addEventListener("selectstart",e,!1)),n.handleNumbers.forEach((function(t){T("start",t)}))}function _(t){t.stopPropagation();var e=H(t.calcPoint),i=function(t){var e=100,r=!1;return c.forEach((function(n,i){if(!n.hasAttribute("disabled")){var o=Math.abs(S[i]-t);o<e&&(r=i,e=o)}})),r}(e);if(!1===i)return!1;r.events.snap||n(b,r.cssClasses.tap,r.animationDuration),J(i,e,!0,!0),G(),T("slide",i,!0),T("update",i,!0),T("change",i,!0),T("set",i,!0),r.events.snap&&Y(t,{handleNumbers:[i]})}function I(t){var e=H(t.calcPoint),r=y.getStep(e),n=y.fromStepping(r);Object.keys(C).forEach((function(t){"hover"===t.split(".")[0]&&C[t].forEach((function(t){t.call(f,n)}))}))}function W(t,e,n,i,o,s){var a;return c.length>1&&(i&&e>0&&(n=Math.max(n,t[e-1]+r.margin)),o&&e<c.length-1&&(n=Math.min(n,t[e+1]-r.margin))),c.length>1&&r.limit&&(i&&e>0&&(n=Math.min(n,t[e-1]+r.limit)),o&&e<c.length-1&&(n=Math.max(n,t[e+1]-r.limit))),r.padding&&(0===e&&(n=Math.max(n,r.padding)),e===c.length-1&&(n=Math.min(n,100-r.padding))),n=y.getStep(n),a=n,!((n=Math.max(Math.min(a,100),0))===t[e]&&!s)&&n}function $(t){return t+"%"}function G(){w.forEach((function(t){var e=S[t]>50?-1:1,r=3+(c.length+e*t);c[t].childNodes[0].style.zIndex=r}))}function J(t,e,n,i){return!1!==(e=W(S,t,e,n,i,!1))&&(function(t,e){S[t]=e,E[t]=y.fromStepping(e);var n=function(){c[t].style[r.style]=$(e),K(t),K(t+1)};window.requestAnimationFrame&&r.useRequestAnimationFrame?window.requestAnimationFrame(n):n()}(t,e),!0)}function K(t){if(p[t]){var e=0,n=100;0!==t&&(e=S[t-1]),t!==p.length-1&&(n=S[t]),p[t].style[r.style]=$(e),p[t].style[r.styleOposite]=$(100-n)}}function Q(t,e){null!==t&&!1!==t&&("number"==typeof t&&(t=String(t)),!1===(t=r.format.from(t))||isNaN(t)||J(e,y.toStepping(t),!1,!1))}function Z(t,e){var o=i(t),s=void 0===S[0];e=void 0===e||!!e,o.forEach(Q),r.animate&&!s&&n(b,r.cssClasses.tap,r.animationDuration),w.forEach((function(t){J(t,S[t],!0,!1)})),G(),w.forEach((function(t){T("update",t),null!==o[t]&&e&&T("set",t)}))}function tt(){var t=E.map(r.format.to);return 1===t.length?t[0]:t}function et(t,e){C[t]=C[t]||[],C[t].push(e),"update"===t.split(".")[0]&&c.forEach((function(t,e){T("update",e)}))}if(b.noUiSlider)throw new Error("noUiSlider (10.1.0): Slider was already initialized.");return function(t){s(t,r.cssClasses.target),0===r.dir?s(t,r.cssClasses.ltr):s(t,r.cssClasses.rtl),0===r.ort?s(t,r.cssClasses.horizontal):s(t,r.cssClasses.vertical),u=A(t,r.cssClasses.base)}(b),function(t,e){c=[],(p=[]).push(O(e,t[0]));for(var n=0;n<r.handles;n++)c.push(M(e,n)),w[n]=n,p.push(O(e,t[n+1]))}(r.connect,u),f={destroy:function(){for(var t in r.cssClasses)r.cssClasses.hasOwnProperty(t)&&a(b,r.cssClasses[t]);for(;b.firstChild;)b.removeChild(b.firstChild);delete b.noUiSlider},steps:function(){return S.map((function(t,e){var r=y.getNearbySteps(t),n=E[e],i=r.thisStep.step,o=null;!1!==i&&n+i>r.stepAfter.startValue&&(i=r.stepAfter.startValue-n),o=n>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&n-r.stepBefore.highestStep,100===t?i=null:0===t&&(o=null);var s=y.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(s))),null!==o&&!1!==o&&(o=Number(o.toFixed(s))),[o,i]}))},on:et,off:function(t){var e=t&&t.split(".")[0],r=e&&t.substring(e.length);Object.keys(C).forEach((function(t){var n=t.split(".")[0],i=t.substring(n.length);e&&e!==n||r&&r!==i||delete C[t]}))},get:tt,set:Z,reset:function(t){Z(r.start,t)},__moveHandles:function(t,e,r){D(t,e,S,r)},options:o,updateOptions:function(t,e){var n=tt(),i=["margin","limit","padding","range","animate","snap","step","format"];i.forEach((function(e){void 0!==t[e]&&(o[e]=t[e])}));var s=q(o);i.forEach((function(e){void 0!==t[e]&&(r[e]=s[e])})),y=s.spectrum,r.margin=s.margin,r.limit=s.limit,r.padding=s.padding,r.pips&&L(r.pips),S=[],Z(t.start||n,e)},target:b,removePips:F,pips:L},(h=r.events).fixed||c.forEach((function(t,e){j(g.start,t.children[0],Y,{handleNumbers:[e]})})),h.tap&&j(g.start,u,_,{}),h.hover&&j(g.move,u,I,{hover:!0}),h.drag&&p.forEach((function(t,e){if(!1!==t&&0!==e&&e!==p.length-1){var n=c[e-1],i=c[e],o=[t];s(t,r.cssClasses.draggable),h.fixed&&(o.push(n.children[0]),o.push(i.children[0])),o.forEach((function(t){j(g.start,t,Y,{handles:[n,i],handleNumbers:[e-1,e]})}))}})),Z(r.start),r.pips&&L(r.pips),r.tooltips&&(m=c.map(k),et("update",(function(t,e,n){if(m[e]){var i=t[e];!0!==r.tooltips[e]&&(i=r.tooltips[e].to(n[e])),m[e].innerHTML=i}}))),et("update",(function(t,e,n,i,o){w.forEach((function(t){var e=c[t],i=W(S,t,0,!0,!0,!0),s=W(S,t,100,!0,!0,!0),a=o[t],l=r.ariaFormat.to(n[t]);e.children[0].setAttribute("aria-valuemin",i.toFixed(1)),e.children[0].setAttribute("aria-valuemax",s.toFixed(1)),e.children[0].setAttribute("aria-valuenow",a.toFixed(1)),e.children[0].setAttribute("aria-valuetext",l)}))})),f}return{version:t,create:function(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider (10.1.0): create requires a single element, got: "+t);var r=T(t,q(e),e);return t.noUiSlider=r,r}}},"function"==typeof define&&define.amd?define([],n):"object"==typeof r?e.exports=n():window.noUiSlider=n()},n 398: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1);e(67),e(399),l.__importStar(e(66)).styles.append(".bk-root .bk-slider-title {\n white-space: nowrap;\n}\n.bk-root .bk-slider-value {\n font-weight: 600;\n}\n"),i.bk_slider_value="bk-slider-value",i.bk_slider_title="bk-slider-title",i.bk_input_group="bk-input-group"},n 399: function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);n(67),r.__importStar(n(66)).styles.append(‘.bk-root {\n / Functional styling;\n * These styles are required for noUiSlider to function.\n * You don\’t need to change these rules to apply your design.\n /\n / Painting and performance;\n * Browsers can paint handles in their own layer.\n /\n / Slider size and handle placement;\n /\n / Styling;\n /\n / Handles and cursors;\n /\n / Handle stripes;\n /\n / Disabled state;\n /\n / Base;\n \n */\n / Values;\n \n */\n / Markings;\n \n */\n / Horizontal layout;\n \n */\n / Vertical layout;\n \n */\n}\n.bk-root .bk-noUi-target,\n.bk-root .bk-noUi-target * {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-user-select: none;\n -ms-touch-action: none;\n touch-action: none;\n -ms-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bk-root .bk-noUi-target {\n position: relative;\n direction: ltr;\n}\n.bk-root .bk-noUi-base {\n width: 100%;\n height: 100%;\n position: relative;\n z-index: 1;\n / Fix 401 /\n}\n.bk-root .bk-noUi-connect {\n position: absolute;\n right: 0;\n top: 0;\n left: 0;\n bottom: 0;\n}\n.bk-root .bk-noUi-origin {\n position: absolute;\n height: 0;\n width: 0;\n}\n.bk-root .bk-noUi-handle {\n position: relative;\n z-index: 1;\n}\n.bk-root .bk-noUi-state-tap .bk-noUi-connect,\n.bk-root .bk-noUi-state-tap .bk-noUi-origin {\n -webkit-transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\n transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\n}\n.bk-root .bk-noUi-state-drag * {\n cursor: inherit !important;\n}\n.bk-root .bk-noUi-base,\n.bk-root .bk-noUi-handle {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n.bk-root .bk-noUi-horizontal {\n height: 18px;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\n width: 34px;\n height: 28px;\n left: -17px;\n top: -6px;\n}\n.bk-root .bk-noUi-vertical {\n width: 18px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\n width: 28px;\n height: 34px;\n left: -6px;\n top: -17px;\n}\n.bk-root .bk-noUi-target {\n background: #FAFAFA;\n border-radius: 4px;\n border: 1px solid #D3D3D3;\n box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;\n}\n.bk-root .bk-noUi-connect {\n background: #3FB8AF;\n border-radius: 4px;\n box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45);\n -webkit-transition: background 450ms;\n transition: background 450ms;\n}\n.bk-root .bk-noUi-draggable {\n cursor: ew-resize;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-draggable {\n cursor: ns-resize;\n}\n.bk-root .bk-noUi-handle {\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #FFF;\n cursor: default;\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;\n}\n.bk-root .bk-noUi-active {\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;\n}\n.bk-root .bk-noUi-handle:before,\n.bk-root .bk-noUi-handle:after {\n content: "";\n display: block;\n position: absolute;\n height: 14px;\n width: 1px;\n background: #E8E7E6;\n left: 14px;\n top: 6px;\n}\n.bk-root .bk-noUi-handle:after {\n left: 17px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle:before,\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\n width: 14px;\n height: 1px;\n left: 6px;\n top: 14px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\n top: 17px;\n}\n.bk-root [disabled] .bk-noUi-connect {\n background: #B8B8B8;\n}\n.bk-root [disabled].bk-noUi-target,\n.bk-root [disabled].bk-noUi-handle,\n.bk-root [disabled] .bk-noUi-handle {\n cursor: not-allowed;\n}\n.bk-root .bk-noUi-pips,\n.bk-root .bk-noUi-pips * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bk-root .bk-noUi-pips {\n position: absolute;\n color: #999;\n}\n.bk-root .bk-noUi-value {\n position: absolute;\n white-space: nowrap;\n text-align: center;\n}\n.bk-root .bk-noUi-value-sub {\n color: #ccc;\n font-size: 10px;\n}\n.bk-root .bk-noUi-marker {\n position: absolute;\n background: #CCC;\n}\n.bk-root .bk-noUi-marker-sub {\n background: #AAA;\n}\n.bk-root .bk-noUi-marker-large {\n background: #AAA;\n}\n.bk-root .bk-noUi-pips-horizontal {\n padding: 10px 0;\n height: 80px;\n top: 100%;\n left: 0;\n width: 100%;\n}\n.bk-root .bk-noUi-value-horizontal {\n -webkit-transform: translate3d(-50%, 50%, 0);\n transform: translate3d(-50%, 50%, 0);\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker {\n margin-left: -1px;\n width: 2px;\n height: 5px;\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-sub {\n height: 10px;\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-large {\n height: 15px;\n}\n.bk-root .bk-noUi-pips-vertical {\n padding: 0 10px;\n height: 100%;\n top: 0;\n left: 100%;\n}\n.bk-root .bk-noUi-value-vertical {\n -webkit-transform: translate3d(0, 50%, 0);\n transform: translate3d(0, 50%, 0);\n padding-left: 25px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker {\n width: 5px;\n height: 2px;\n margin-top: -1px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-sub {\n width: 10px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-large {\n width: 15px;\n}\n.bk-root .bk-noUi-tooltip {\n display: block;\n position: absolute;\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #fff;\n color: #000;\n padding: 5px;\n text-align: center;\n white-space: nowrap;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-tooltip {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n left: 50%;\n bottom: 120%;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-tooltip {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n top: 50%;\n right: 120%;\n}\n.bk-root .bk-noUi-handle {\n cursor: grab;\n cursor: -webkit-grab;\n}\n.bk-root .bk-noUi-handle.bk-noUi-active {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n}\n.bk-root .bk-noUi-tooltip {\n display: none;\n white-space: nowrap;\n}\n.bk-root .bk-noUi-handle:hover .bk-noUi-tooltip {\n display: block;\n}\n.bk-root .bk-noUi-horizontal {\n width: 100%;\n height: 10px;\n}\n.bk-root .bk-noUi-horizontal.bk-noUi-target {\n margin: 5px 0px;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\n width: 14px;\n height: 18px;\n left: -7px;\n top: -5px;\n}\n.bk-root .bk-noUi-vertical {\n width: 10px;\n height: 100%;\n}\n.bk-root .bk-noUi-vertical.bk-noUi-target {\n margin: 0px 5px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\n width: 18px;\n height: 14px;\n left: -5px;\n top: -7px;\n}\n.bk-root .bk-noUi-handle:after,\n.bk-root .bk-noUi-handle:before {\n display: none;\n}\n.bk-root .bk-noUi-connect {\n box-shadow: none;\n}\n’)},n 400: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1).__importDefault(e(157)),a=e(396);class d extends a.AbstractSliderView{}i.DateSliderView=d,d.__name__="DateSliderView";class s extends a.AbstractSlider{constructor(e){super(e),this.behaviour="tap",this.connected=[!0,!1]}static init_DateSlider(){this.prototype.default_view=d,this.override({format:"%d %b %Y"})}_formatter(e,t){return r.default(e,t)}}i.DateSlider=s,s.__name__="DateSlider",s.init_DateSlider()},n 401: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),_=e(402),n=r.__importStar(e(19));class s extends _.MarkupView{render(){super.render(),this.model.render_as_text?this.markup_el.textContent=this.model.text:this.markup_el.innerHTML=this.model.text}}i.DivView=s,s.__name__="DivView";class a extends _.Markup{constructor(e){super(e)}static init_Div(){this.prototype.default_view=s,this.define({render_as_text:[n.Boolean,!1]})}}i.Div=a,a.__name__="Div",a.init_Div()},n 402: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(187),a=e(66),r=s.__importStar(e(19)),l=e(441),_=e(403);class c extends l.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>{this.render(),this.root.compute_layout()})}_update_layout(){this.layout=new n.VariadicBox(this.el),this.layout.set_sizing(this.box_sizing())}render(){super.render();const e=Object.assign(Object.assign({},this.model.style),{display:"inline-block"});this.markup_el=a.div({class:_.bk_clearfix,style:e}),this.el.appendChild(this.markup_el)}}i.MarkupView=c,c.__name__="MarkupView";class o extends l.Widget{constructor(e){super(e)}static init_Markup(){this.define({text:[r.String,""],style:[r.Any,{}]})}}i.Markup=o,o.__name__="Markup",o.init_Markup()},n 403: function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1);e(67),n.__importStar(e(66)).styles.append(‘.bk-root .bk-clearfix:before,\n.bk-root .bk-clearfix:after {\n content: "";\n display: table;\n}\n.bk-root .bk-clearfix:after {\n clear: both;\n}\n’),t.bk_clearfix="bk-clearfix"},n 404: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(378),o=e(281),_=e(66),d=n.__importStar(e(19)),l=e(8),r=e(145),c=e(252),u=e(253);class h extends s.AbstractButtonView{constructor(){super(…arguments),this._open=!1}render(){super.render();const e=_.div({class:[u.bk_caret,r.bk_down]});if(this.model.is_split){const t=this._render_button(e);t.classList.add(c.bk_dropdown_toggle),t.addEventListener("click",()=>this._toggle_menu()),this.group_el.appendChild(t)}else this.button_el.appendChild(e);const t=this.model.menu.map((e,t)=>{if(null==e)return _.div({class:u.bk_divider});{const i=l.isString(e)?e:e[0],n=_.div({},i);return n.addEventListener("click",()=>this._item_click(t)),n}});this.menu=_.div({class:[u.bk_menu,r.bk_below]},t),this.el.appendChild(this.menu),_.undisplay(this.menu)}_show_menu(){if(!this._open){this._open=!0,_.display(this.menu);const e=t=>{const{target:i}=t;i instanceof HTMLElement&&!this.el.contains(i)&&(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,_.undisplay(this.menu))}_toggle_menu(){this._open?this._hide_menu():this._show_menu()}click(){this.model.is_split?(this._hide_menu(),this.model.trigger_event(new o.ButtonClick),super.click()):this._toggle_menu()}_item_click(e){this._hide_menu();const t=this.model.menu[e];if(null!=t){const i=l.isString(t)?t:t[1];l.isString(i)?this.model.trigger_event(new o.MenuItemClick(i)):i.execute(this.model,{index:e})}}}i.DropdownView=h,h.__name__="DropdownView";class p extends s.AbstractButton{constructor(e){super(e)}static init_Dropdown(){this.prototype.default_view=h,this.define({split:[d.Boolean,!1],menu:[d.Array,[]]}),this.override({label:"Dropdown"})}get is_split(){return this.split}}i.Dropdown=p,p.__name__="Dropdown",p.init_Dropdown()},n 405: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1).__importStar(e(19)),s=e(441);class n extends s.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.width.change,()=>this.render())}render(){null==this.dialogEl&&(this.dialogEl=document.createElement("input"),this.dialogEl.type="file",this.dialogEl.multiple=this.model.multiple,this.dialogEl.onchange=()=>{const{files:e}=this.dialogEl;null!=e&&this.load_files(e)},this.el.appendChild(this.dialogEl)),null!=this.model.accept&&""!=this.model.accept&&(this.dialogEl.accept=this.model.accept),this.dialogEl.style.width="{this.model.width}px",this.dialogEl.disabled=this.model.disabled}async load_files(e){const t=[],i=[],l=[];let s;for(s=0;s<e.length;s++){i.push(e[s].name);const n=await this.readfile(e[s]),[,o,,a]=n.split(/[:;,]/,4);t.push(a),l.push(o)}this.model.multiple?(this.model.filename=i,this.model.mime_type=l,this.model.value=t):(this.model.filename=i[0],this.model.mime_type=l[0],this.model.value=t[0])}readfile(e){return new Promise((t,i)=>{const l=new FileReader;l.onload=()=>{var s;const{result:n}=l;null!=n?t(n):i(null!==(s=l.error)&&void 0!==s?s:new Error(`unable to read ‘${e.name}’`))},l.readAsDataURL(e)})}}i.FileInputView=n,n.__name__="FileInputView";class o extends s.Widget{constructor(e){super(e)}static init_FileInput(){this.prototype.default_view=n,this.define({value:[l.Any,""],mime_type:[l.Any,""],filename:[l.Any,""],accept:[l.String,""],multiple:[l.Boolean,!1]})}}i.FileInput=o,o.__name__="FileInput",o.init_FileInput()},n 406: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(66),l=e(8),o=e(15),r=i.__importStar(e(19)),c=e(384),h=e(385);class a extends c.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,()=>this.render_selection()),this.connect(this.model.properties.options.change,()=>this.render()),this.connect(this.model.properties.name.change,()=>this.render()),this.connect(this.model.properties.title.change,()=>this.render()),this.connect(this.model.properties.size.change,()=>this.render()),this.connect(this.model.properties.disabled.change,()=>this.render())}render(){super.render();const e=this.model.options.map(e=>{let t,s;return l.isString(e)?t=s=e:[t,s]=e,n.option({value:t},s)});this.select_el=n.select({multiple:!0,class:h.bk_input,name:this.model.name,disabled:this.model.disabled},e),this.select_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.select_el),this.render_selection()}render_selection(){const e=new o.Set(this.model.value);for(const t of Array.from(this.el.querySelectorAll("option")))t.selected=e.has(t.value);this.select_el.size=this.model.size}change_input(){const e=null!=this.el.querySelector("select:focus"),t=[];for(const e of Array.from(this.el.querySelectorAll("option")))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.select_el.focus()}}s.MultiSelectView=a,a.__name__="MultiSelectView";class d extends c.InputWidget{constructor(e){super(e)}static init_MultiSelect(){this.prototype.default_view=a,this.define({value:[r.Array,[]],options:[r.Array,[]],size:[r.Number,4]})}}s.MultiSelect=d,d.__name__="MultiSelect",d.init_MultiSelect()},n 407: function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});const t=a(402),p=a(66);class s extends t.MarkupView{render(){super.render();const a=p.p({style:{margin:0}},this.model.text);this.markup_el.appendChild(a)}}r.ParagraphView=s,s.__name__="ParagraphView";class i extends t.Markup{constructor(a){super(a)}static init_Paragraph(){this.prototype.default_view=s}}r.Paragraph=i,i.__name__="Paragraph",i.init_Paragraph()},n 408: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(383);class r extends n.TextInputView{render(){super.render(),this.input_el.type="password"}}s.PasswordInputView=r,r.__name__="PasswordInputView";class p extends n.TextInput{constructor(e){super(e)}static init_PasswordInput(){this.prototype.default_view=r}}s.PasswordInput=p,p.__name__="PasswordInput",p.init_PasswordInput()},n 409: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=s.__importDefault(e(410)),o=e(66),n=e(8),h=s.__importStar(e(19)),c=e(385);e(411);const r=e(384);class d extends r.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,()=>this.render_selection()),this.connect(this.model.properties.disabled.change,()=>this.set_disabled()),this.connect(this.model.properties.max_items.change,()=>this.render()),this.connect(this.model.properties.option_limit.change,()=>this.render()),this.connect(this.model.properties.delete_button.change,()=>this.render()),this.connect(this.model.properties.placeholder.change,()=>this.render()),this.connect(this.model.properties.options.change,()=>this.render()),this.connect(this.model.properties.name.change,()=>this.render()),this.connect(this.model.properties.title.change,()=>this.render())}render(){super.render();const e=this.model.options.map(e=>{let t,i;return n.isString(e)?t=i=e:[t,i]=e,o.option({value:t},i)});this.select_el=o.select({multiple:!0,class:c.bk_input,name:this.model.name,disabled:this.model.disabled},e),this.group_el.appendChild(this.select_el),this.render_selection();let t="choices__item",i="choices__button";this.model.solid?(t+=" solid",i+=" solid"):(t+=" light",i+=" light");const s={removeItemButton:this.model.delete_button,classNames:{item:t,button:i}};null!==this.model.placeholder&&(s.placeholderValue=this.model.placeholder),null!==this.model.max_items&&(s.maxItemCount=this.model.max_items),null!==this.model.option_limit&&(s.renderChoiceLimit=this.model.option_limit),this.choice_el=new l.default(this.select_el,s),this.select_el.addEventListener("change",()=>this.change_input())}render_selection(){const e=new Set(this.model.value);for(const t of Array.from(this.el.querySelectorAll("option")))t.selected=e.has(t.value)}set_disabled(){this.model.disabled?this.choice_el.disable():this.choice_el.enable()}change_input(){const e=null!=this.el.querySelector("select:focus"),t=[];for(const e of Array.from(this.el.querySelectorAll("option")))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.select_el.focus()}}i.MultiChoiceView=d,d.__name__="MultiChoiceView";class a extends r.InputWidget{constructor(e){super(e)}static init_MultiChoice(){this.prototype.default_view=d,this.define({value:[h.Array,[]],options:[h.Array,[]],max_items:[h.Number,null],delete_button:[h.Boolean,!0],placeholder:[h.String,null],option_limit:[h.Number,null],solid:[h.Boolean,!0]})}}i.MultiChoice=a,a.__name__="MultiChoice",a.init_MultiChoice()},n 410: function _(e,t,i){n /! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme /n var n,s;n=window,s=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/public/assets/scripts/",i(i.s=4)}([function(e,t,i){"use strict";var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function o(e,t,i){return e.concat(t).map((function(e){return r(e,i)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t,i){var n={};return i.isMergeableObject(e)&&a(e).forEach((function(t){n[t]=r(e[t],i)})),a(t).forEach((function(s){(function(e,t){try{return t in e&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}catch(e){return!1}})(e,s)||(i.isMergeableObject(t[s])&&e[s]?n[s]=function(e,t){if(!t.customMerge)return l;var i=t.customMerge(e);return"function"==typeof i?i:l}(s,i)(e[s],t[s],i):n[s]=r(t[s],i))})),n}function l(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||n,i.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(t);return s===Array.isArray(e)?s?i.arrayMerge(e,t,i):c(e,t,i):r(t,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return l(e,i,t)}),{})};var h=l;e.exports=h},function(e,t,i){"use strict";(function(e,n){var s,r=i(3);s="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var o=Object(r.a)(s);t.a=o}).call(this,i(5),i(6)(e))},function(e,t,i){n /!n * Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)n n * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)n * All Rights Reserved. Apache Software License 2.0n *n * http://www.apache.org/licenses/LICENSE-2.0n */n e.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,i){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=i(2),o=i(8),a=i(0),c=function(){function e(t,i){var n=i.location,s=void 0===n?0:n,r=i.distance,a=void 0===r?100:r,c=i.threshold,l=void 0===c?.6:c,h=i.maxPatternLength,u=void 0===h?32:h,d=i.caseSensitive,p=void 0!==d&&d,m=i.tokenSeparator,f=void 0===m?/ +/g:m,v=i.findAllMatches,g=void 0!==v&&v,_=i.minMatchCharLength,b=void 0===_?1:_,y=i.id,E=void 0===y?null:y,I=i.keys,S=void 0===I?[]:I,w=i.shouldSort,O=void 0===w||w,C=i.getFn,A=void 0===C?o:C,L=i.sortFn,T=void 0===L?function(e,t){return e.score-t.score}:L,x=i.tokenize,k=void 0!==x&&x,P=i.matchAllTokens,D=void 0!==P&&P,M=i.includeMatches,N=void 0!==M&&M,F=i.includeScore,j=void 0!==F&&F,K=i.verbose,R=void 0!==K&&K;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:l,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:f,findAllMatches:g,minMatchCharLength:b,id:E,keys:S,includeMatches:N,includeScore:j,shouldSort:O,getFn:A,sortFn:T,verbose:R,tokenize:k,matchAllTokens:D},this.setCollection(t)}var t,i;return t=e,(i=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log(’———\nSearch pattern: "’.concat(e,’"’));var i=this._prepareSearchers(e),n=i.tokenSearchers,s=i.fullSearcher,r=this._search(n,s),o=r.weights,a=r.results;return this._computeScore(o,a),this.options.shouldSort&&this._sort(a),t.limit&&"number"==typeof t.limit&&(a=a.slice(0,t.limit)),this._format(a)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var i=e.split(this.options.tokenSeparator),n=0,s=i.length;n<s;n+=1)t.push(new r(i[n],this.options));return{tokenSearchers:t,fullSearcher:new r(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,i=this.list,n={},s=[];if("string"==typeof i[0]){for(var r=0,o=i.length;r<o;r+=1)this._analyze({key:"",value:i[r],record:r,index:r},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t});return{weights:null,results:s}}for(var a={},c=0,l=i.length;c<l;c+=1)for(var h=i[c],u=0,d=this.options.keys.length;u<d;u+=1){var p=this.options.keys[u];if("string"!=typeof p){if(a[p.name]={weight:1-p.weight||1},p.weight<=0||p.weight>1)throw new Error("Key weight has to be > 0 and <= 1");p=p.name}else a[p]={weight:1};this._analyze({key:p,value:this.options.getFn(h,p),record:h,index:c},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t})}return{weights:a,results:s}}},{key:"_analyze",value:function(e,t){var i=e.key,n=e.arrayIndex,s=void 0===n?-1:n,r=e.value,o=e.record,c=e.index,l=t.tokenSearchers,h=void 0===l?[]:l,u=t.fullSearcher,d=void 0===u?[]:u,p=t.resultMap,m=void 0===p?{}:p,f=t.results,v=void 0===f?[]:f;if(null!=r){var g=!1,_=-1,b=0;if("string"==typeof r){this._log("\nKey: ".concat(""===i?"-":i));var y=d.search(r);if(this._log(‘Full text: "’.concat(r,’", score: ‘).concat(y.score)),this.options.tokenize){for(var E=r.split(this.options.tokenSeparator),I=[],S=0;S<h.length;S+=1){var w=h[S];this._log(’\nPattern: "’.concat(w.pattern,’"’));for(var O=!1,C=0;C<E.length;C+=1){var A=E[C],L=w.search(A),T={};L.isMatch?(T[A]=L.score,g=!0,O=!0,I.push(L.score)):(T[A]=1,this.options.matchAllTokens||I.push(1)),this._log(‘Token: "’.concat(A,’", score: ‘).concat(T[A]))}O&&(b+=1)}_=I[0];for(var x=I.length,k=1;k<x;k+=1)_+=I[k];_/=x,this._log("Token score average:",_)}var P=y.score;_>-1&&(P=(P+_)/2),this._log("Score average:",P);var D=!this.options.tokenize||!this.options.matchAllTokens||b>=h.length;if(this._log("\nCheck Matches: ".concat(D)),(g||y.isMatch)&&D){var M=m[c];M?M.output.push({key:i,arrayIndex:s,value:r,score:P,matchedIndices:y.matchedIndices}):(m[c]={item:o,output:[{key:i,arrayIndex:s,value:r,score:P,matchedIndices:y.matchedIndices}]},v.push(m[c]))}}else if(a(r))for(var N=0,F=r.length;N<F;N+=1)this._analyze({key:i,arrayIndex:N,value:r[N],record:o,index:c},{resultMap:m,results:v,tokenSearchers:h,fullSearcher:d})}}},{key:"_computeScore",value:function(e,t){this._log("\n\nComputing score:\n");for(var i=0,n=t.length;i<n;i+=1){for(var s=t[i].output,r=s.length,o=1,a=1,c=0;c<r;c+=1){var l=e?e[s[c].key].weight:1,h=(1===l?s[c].score:s[c].score||.001)*l;1!==l?a=Math.min(a,h):(s[c].nScore=h,o*=h)}t[i].score=1===a?o:a,this._log(t[i])}}},{key:"_sort",value:function(e){this._log("\n\nSorting…."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var i=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===n(t)&&null!==t){if(-1!==i.indexOf(t))return;i.push(t)}return t}))),i=null}var s=[];this.options.includeMatches&&s.push((function(e,t){var i=e.output;t.matches=[];for(var n=0,s=i.length;n<s;n+=1){var r=i[n];if(0!==r.matchedIndices.length){var o={indices:r.matchedIndices,value:r.value};r.key&&(o.key=r.key),r.hasOwnProperty("arrayIndex")&&r.arrayIndex>-1&&(o.arrayIndex=r.arrayIndex),t.matches.push(o)}}})),this.options.includeScore&&s.push((function(e,t){t.score=e.score}));for(var r=0,o=e.length;r<o;r+=1){var a=e[r];if(this.options.id&&(a.item=this.options.getFn(a.item,this.options.id)[0]),s.length){for(var c={item:a.item},l=0,h=s.length;l<h;l+=1)s[l](a,c);t.push(c)}else t.push(a.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&s(t.prototype,i),e}();e.exports=c},function(e,t,i){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=i(3),r=i(4),o=i(7),a=function(){function e(t,i){var n=i.location,s=void 0===n?0:n,r=i.distance,a=void 0===r?100:r,c=i.threshold,l=void 0===c?.6:c,h=i.maxPatternLength,u=void 0===h?32:h,d=i.isCaseSensitive,p=void 0!==d&&d,m=i.tokenSeparator,f=void 0===m?/ +/g:m,v=i.findAllMatches,g=void 0!==v&&v,_=i.minMatchCharLength,b=void 0===_?1:_;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:l,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:f,findAllMatches:g,minMatchCharLength:b},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=u&&(this.patternAlphabet=o(this.pattern))}var t,i;return t=e,(i=[{key:"search",value:function(e){if(this.options.isCaseSensitive||(e=e.toLowerCase()),this.pattern===e)return{isMatch:!0,score:0,matchedIndices:[[0,e.length-1]]};var t=this.options,i=t.maxPatternLength,n=t.tokenSeparator;if(this.pattern.length>i)return s(e,this.pattern,n);var o=this.options,a=o.location,c=o.distance,l=o.threshold,h=o.findAllMatches,u=o.minMatchCharLength;return r(e,this.pattern,this.patternAlphabet,{location:a,distance:c,threshold:l,findAllMatches:h,minMatchCharLength:u})}}])&&n(t.prototype,i),e}();e.exports=a},function(e,t){var i=/[\-\[\]\/\{\}\(\)\\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,s=new RegExp(t.replace(i,"\\$&").replace(n,"|\")),r=e.match(s),o=!!r,a=[];if(o)for(var c=0,l=r.length;c<l;c+=1){var h=r[c];a.push([e.indexOf(h),h.length-1])}return{score:o?.5:1,isMatch:o,matchedIndices:a}}},function(e,t,i){var n=i(5),s=i(6);e.exports=function(e,t,i,r){for(var o=r.location,a=void 0===o?0:o,c=r.distance,l=void 0===c?100:c,h=r.threshold,u=void 0===h?.6:h,d=r.findAllMatches,p=void 0!==d&&d,m=r.minMatchCharLength,f=void 0===m?1:m,v=a,g=e.length,_=u,b=e.indexOf(t,v),y=t.length,E=[],I=0;I<g;I+=1)E[I]=0;if(-1!==b){var S=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:l});if(_=Math.min(S,_),-1!==(b=e.lastIndexOf(t,v+y))){var w=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:l});_=Math.min(w,_)}}b=-1;for(var O=[],C=1,A=y+g,L=1<<y-1,T=0;T<y;T+=1){for(var x=0,k=A;x<k;)n(t,{errors:T,currentLocation:v+k,expectedLocation:v,distance:l})<=_?x=k:A=k,k=Math.floor((A-x)/2+x);A=k;var P=Math.max(1,v-k+1),D=p?g:Math.min(v+k,g)+y,M=Array(D+2);M[D+1]=(1<<T)-1;for(var N=D;N>=P;N-=1){var F=N-1,j=i[e.charAt(F)];if(j&&(E[F]=1),M[N]=(M[N+1]<<1|1)&j,0!==T&&(M[N]|=(O[N+1]|O[N])<<1|1|O[N+1]),M[N]&L&&(C=n(t,{errors:T,currentLocation:F,expectedLocation:v,distance:l}))<=_){if(_=C,(b=F)<=v)break;P=Math.max(1,2*v-b)}}if(n(t,{errors:T+1,currentLocation:v,expectedLocation:v,distance:l})>_)break;O=M}return{isMatch:b>=0,score:0===C?.001:C,matchedIndices:s(E,f)}}},function(e,t){e.exports=function(e,t){var i=t.errors,n=void 0===i?0:i,s=t.currentLocation,r=void 0===s?0:s,o=t.expectedLocation,a=void 0===o?0:o,c=t.distance,l=void 0===c?100:c,h=n/e.length,u=Math.abs(a-r);return l?h+u/l:u?1:h}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[],n=-1,s=-1,r=0,o=e.length;r<o;r+=1){var a=e[r];a&&-1===n?n=r:a||-1===n||((s=r-1)-n+1>=t&&i.push([n,s]),n=-1)}return e[r-1]&&r-n>=t&&i.push([n,r-1]),i}},function(e,t){e.exports=function(e){for(var t={},i=e.length,n=0;n<i;n+=1)t[e.charAt(n)]=0;for(var s=0;s<i;s+=1)t[e.charAt(s)]|=1<<i-s-1;return t}},function(e,t,i){var n=i(0);e.exports=function(e,t){return function e(t,i,s){if(i){var r=i.indexOf("."),o=i,a=null;-1!==r&&(o=i.slice(0,r),a=i.slice(r+1));var c=t[o];if(null!=c)if(a||"string"!=typeof c&&"number"!=typeof c)if(n(c))for(var l=0,h=c.length;l<h;l+=1)e(c[l],a,s);else a&&e(c,a,s);else s.push(c.toString())}else s.push(t);return s}(e,t,[])}}])},function(e,t,i){"use strict";function n(e){var t,i=e.Symbol;return"function"==typeof i?i.observable?t=i.observable:(t=i("observable"),i.observable=t):t="@@observable",t}i.d(t,"a",(function(){return n}))},function(e,t,i){e.exports=i(7)},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,i){"use strict";i.r(t);var n=i(2),s=i.n(n),r=i(0),o=i.n(r),a=i(1),c=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,i){var n;if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,r=t,o=[],c=o,d=!1;function p(){c===o&&(c=o.slice())}function m(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return r}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),c.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var i=c.indexOf(e);c.splice(i,1)}}}function v(e){if(!h(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error(‘Actions may not have an undefined "type" property. Have you misspelled a constant?’);if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,r=s(r,e)}finally{d=!1}for(var t=o=c,i=0;i<t.length;i++)(0,t[i])();return e}function g(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,v({type:l.REPLACE})}function _(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function i(){e.next&&e.next(m())}return i(),{unsubscribe:t(i)}}})[a.a]=function(){return this},e}return v({type:l.INIT}),(n={dispatch:v,subscribe:f,getState:m,replaceReducer:g})[a.a]=_,n}function d(e,t){var i=t&&t.type;return"Given "+(i&&’action "’+String(i)+’"’||"an action")+’, reducer "’+e+’" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.’}var p,m=[],f=[],v=[],g={loading:!1},_=function(e,t){switch(void 0===e&&(e=g),t.type){case"SET_IS_LOADING":return{loading:t.isLoading};default:return e}},b=function(e){return Array.from({length:e},(function(){return(e=0,t=36,Math.floor(Math.random()*(t-e)+e)).toString(36);var e,t})).join("")},y=function(e){return Object.prototype.toString.call(e).slice(8,-1)},E=function(e,t){return null!=t&&y(t)===e},I=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/</g,"<").replace(/"/g,""")},S=(p=document.createElement("div"),function(e){var t=e.trim();p.innerHTML=t;for(var i=p.children[0];p.firstChild;)p.removeChild(p.firstChild);return i}),w=function(e,t){return e.score-t.score},O=function(e){return JSON.parse(JSON.stringify(e))},C=function(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++){var s=t[n];"function"==typeof e[s]&&(i[s]=e[s])}var r,o=Object.keys(i);try{!function(e){Object.keys(e).forEach((function(t){var i=e[t];if(void 0===i(void 0,{type:l.INIT}))throw new Error(‘Reducer "’+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don’t want to set a value for this reducer, you can use null instead of undefined.");if(void 0===i(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(‘Reducer "’+t+"\" returned undefined when probed with a random type. Don’t try to handle "+l.INIT+’ or other actions in "redux/" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.’)}))}(i)}catch(e){r=e}return function(e,t){if(void 0===e&&(e={}),r)throw r;for(var n=!1,s={},a=0;a<o.length;a++){var c=o[a],l=i[c],h=e[c],u=l(h,t);if(void 0===u){var p=d(c,t);throw new Error(p)}s[c]=u,n=n||u!==h}return n?s:e}}({items:function(e,t){switch(void 0===e&&(e=m),t.type){case"ADD_ITEM":return[].concat(e,[{id:t.id,choiceId:t.choiceId,groupId:t.groupId,value:t.value,label:t.label,active:!0,highlighted:!1,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]).map((function(e){var t=e;return t.highlighted=!1,t}));case"REMOVE_ITEM":return e.map((function(e){var i=e;return i.id===t.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":return e.map((function(e){var i=e;return i.id===t.id&&(i.highlighted=t.highlighted),i}));default:return e}},groups:function(e,t){switch(void 0===e&&(e=f),t.type){case"ADD_GROUP":return[].concat(e,[{id:t.id,value:t.value,active:t.active,disabled:t.disabled}]);case"CLEAR_CHOICES":return[];default:return e}},choices:function(e,t){switch(void 0===e&&(e=v),t.type){case"ADD_CHOICE":return[].concat(e,[{id:t.id,elementId:t.elementId,groupId:t.groupId,value:t.value,label:t.label||t.value,disabled:t.disabled||!1,selected:!1,active:!0,score:9999,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return t.activateOptions?e.map((function(e){var i=e;return i.active=t.active,i})):t.choiceId>-1?e.map((function(e){var i=e;return i.id===parseInt(t.choiceId,10)&&(i.selected=!0),i})):e;case"REMOVE_ITEM":return t.choiceId>-1?e.map((function(e){var i=e;return i.id===parseInt(t.choiceId,10)&&(i.selected=!1),i})):e;case"FILTER_CHOICES":return e.map((function(e){var i=e;return i.active=t.results.some((function(e){var t=e.item,n=e.score;return t.id===i.id&&(i.score=n,!0)})),i}));case"ACTIVATE_CHOICES":return e.map((function(e){var i=e;return i.active=t.active,i}));case"CLEAR_CHOICES":return v;default:return e}},general:_}),A=function(e,t){var i=e;if("CLEAR_ALL"===t.type)i=void 0;else if("RESET_TO"===t.type)return O(t.state);return C(i,t)};function L(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var T=function(){function e(){this._store=u(A,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var t,i,n,s=e.prototype;return s.subscribe=function(e){this._store.subscribe(e)},s.dispatch=function(e){this._store.dispatch(e)},s.isLoading=function(){return this.state.general.loading},s.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},s.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},t=e,(i=[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter((function(e){return!0===e.active}))}},{key:"highlightedActiveItems",get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter((function(e){return!0===e.active}))}},{key:"selectableChoices",get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find((function(e){return!0===e.placeholder}))}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var i=!0===e.active&&!1===e.disabled,n=t.some((function(e){return!0===e.active&&!1===e.disabled}));return i&&n}),[])}}])&&L(t.prototype,i),n&&L(t,n),e}();function x(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var k=function(){function e(e){var t=e.element,i=e.type,n=e.classNames;this.element=t,this.classNames=n,this.type=i,this.isActive=!1}var t,i,n,s=e.prototype;return s.getChild=function(e){return this.element.querySelector(e)},s.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},s.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t=e,(i=[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}])&&x(t.prototype,i),n&&x(t,n),e}(),P={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:function(e,t){var i=e.value,n=e.label,s=void 0===n?i:n,r=t.value,o=t.label,a=void 0===o?r:o;return s.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading…",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return’Press Enter to add <b>"’+I(e)+’"</b>’},maxItemText:function(e){return"Only "+e+" values can be added"},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input–cloned",list:"choices__list",listItems:"choices__list–multiple",listSingle:"choices__list–single",listDropdown:"choices__list–dropdown",item:"choices__item",itemSelectable:"choices__item–selectable",itemDisabled:"choices__item–disabled",itemChoice:"choices__item–choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"}},D="showDropdown",M="hideDropdown",N="change",F="choice",j="search",K="addItem",R="removeItem",H="highlightItem",B="highlightChoice",V="ADD_CHOICE",G="FILTER_CHOICES",q="ACTIVATE_CHOICES",U="CLEAR_CHOICES",z="ADD_GROUP",W="ADD_ITEM",X="REMOVE_ITEM",$="HIGHLIGHT_ITEM",J=46,Y=8,Z=13,Q=65,ee=27,te=38,ie=40,ne=33,se=34,re=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,s=e.position;this.element=t,this.classNames=n,this.type=i,this.position=s,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t=e.prototype;return t.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.shouldFlip=function(e){if("number"!=typeof e)return!1;var t=!1;return"auto"===this.position?t=!window.matchMedia("(min-height: "+(e+1)+"px)").matches:"top"===this.position&&(t=!0),t},t.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},t.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.focus=function(){this.isFocussed||this.element.focus()},t.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),"select-one"===this.type&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),"select-one"===this.type&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.wrap=function(e){!function(e,t){void 0===t&&(t=document.createElement("div")),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)}(e,this.element)},t.unwrap=function(e){this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element)},t.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t._onFocus=function(){this.isFocussed=!0},t._onBlur=function(){this.isFocussed=!1},e}();function oe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ae=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,s=e.preventPaste;this.element=t,this.type=i,this.classNames=n,this.preventPaste=s,this.isFocussed=this.element===document.activeElement,this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t,i,n,s=e.prototype;return s.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},s.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},s.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},s.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},s.focus=function(){this.isFocussed||this.element.focus()},s.blur=function(){this.isFocussed&&this.element.blur()},s.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},s.setWidth=function(){var e=this.element,t=e.style,i=e.value,n=e.placeholder;t.minWidth=n.length+1+"ch",t.width=i.length+1+"ch"},s.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},s.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},s._onInput=function(){"select-one"!==this.type&&this.setWidth()},s._onPaste=function(e){this.preventPaste&&e.preventDefault()},s._onFocus=function(){this.isFocussed=!0},s._onBlur=function(){this.isFocussed=!1},t=e,(i=[{key:"placeholder",set:function(e){this.element.placeholder=e}},{key:"value",get:function(){return I(this.element.value)},set:function(e){this.element.value=e}}])&&oe(t.prototype,i),n&&oe(t,n),e}(),ce=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}var t=e.prototype;return t.clear=function(){this.element.innerHTML=""},t.append=function(e){this.element.appendChild(e)},t.getChild=function(e){return this.element.querySelector(e)},t.hasChildren=function(){return this.element.hasChildNodes()},t.scrollToTop=function(){this.element.scrollTop=0},t.scrollToChildElement=function(e,t){var i=this;if(e){var n=this.element.offsetHeight,s=this.element.scrollTop+n,r=e.offsetHeight,o=e.offsetTop+r,a=t>0?this.element.scrollTop+o-s:e.offsetTop;requestAnimationFrame((function(){i._animateScroll(a,t)}))}},t._scrollDown=function(e,t,i){var n=(i-e)/t,s=n>1?n:1;this.element.scrollTop=e+s},t._scrollUp=function(e,t,i){var n=(e-i)/t,s=n>1?n:1;this.element.scrollTop=e-s},t._animateScroll=function(e,t){var i=this,n=this.element.scrollTop,s=!1;t>0?(this._scrollDown(n,4,e),n<e&&(s=!0)):(this._scrollUp(n,4,e),n>e&&(s=!0)),s&&requestAnimationFrame((function(){i._animateScroll(e,t)}))},e}();function le(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var he=function(){function e(e){var t=e.element,i=e.classNames;if(this.element=t,this.classNames=i,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var t,i,n,s=e.prototype;return s.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},s.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},s.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},s.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},s.triggerEvent=function(e,t){!function(e,t,i){void 0===i&&(i=null);var n=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}(this.element,e,t)},t=e,(i=[{key:"isActive",get:function(){return"active"===this.element.dataset.choice}},{key:"dir",get:function(){return this.element.dir}},{key:"value",get:function(){return this.element.value},set:function(e){this.element.value=e}}])&&le(t.prototype,i),n&&le(t,n),e}();function ue(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var de=function(e){var t,i,n,s,r;function o(t){var i,n=t.element,s=t.classNames,r=t.delimiter;return(i=e.call(this,{element:n,classNames:s})||this).delimiter=r,i}return i=e,(t=o).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,n=o,(s=[{key:"value",get:function(){return this.element.value},set:function(e){var t=e.map((function(e){return e.value})).join(this.delimiter);this.element.setAttribute("value",t),this.element.value=t}}])&&ue(n.prototype,s),r&&ue(n,r),o}(he);function pe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var me=function(e){var t,i,n,s,r;function o(t){var i,n=t.element,s=t.classNames,r=t.template;return(i=e.call(this,{element:n,classNames:s})||this).template=r,i}return i=e,(t=o).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,o.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},n=o,(s=[{key:"placeholderOption",get:function(){return this.element.querySelector(‘option[value=""]’)||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach((function(e){return n=e,s=t.template(n),void i.appendChild(s);var n,s})),this.appendDocFragment(i)}}])&&pe(n.prototype,s),r&&pe(n,r),o}(he),fe={containerOuter:function(e,t,i,n,s,r){var o=e.containerOuter,a=Object.assign(document.createElement("div"),{className:o});return a.dataset.type=r,t&&(a.dir=t),n&&(a.tabIndex=0),i&&(a.setAttribute("role",s?"combobox":"listbox"),s&&a.setAttribute("aria-autocomplete","list")),a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"),a},containerInner:function(e){var t=e.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var i=e.list,n=e.listSingle,s=e.listItems;return Object.assign(document.createElement("div"),{className:i+" "+(t?n:s)})},placeholder:function(e,t){var i=e.placeholder;return Object.assign(document.createElement("div"),{className:i,innerHTML:t})},item:function(e,t,i){var n=e.item,s=e.button,r=e.highlightedState,o=e.itemSelectable,a=e.placeholder,c=t.id,l=t.value,h=t.label,u=t.customProperties,d=t.active,p=t.disabled,m=t.highlighted,f=t.placeholder,v=Object.assign(document.createElement("div"),{className:n,innerHTML:h});if(Object.assign(v.dataset,{item:"",id:c,value:l,customProperties:u}),d&&v.setAttribute("aria-selected","true"),p&&v.setAttribute("aria-disabled","true"),f&&v.classList.add(a),v.classList.add(m?r:o),i){p&&v.classList.remove(o),v.dataset.deletable="";var g=Object.assign(document.createElement("button"),{type:"button",className:s,innerHTML:"Remove item"});g.setAttribute("aria-label","Remove item: ‘"+l+"’"),g.dataset.button="",v.appendChild(g)}return v},choiceList:function(e,t){var i=e.list,n=Object.assign(document.createElement("div"),{className:i});return t||n.setAttribute("aria-multiselectable","true"),n.setAttribute("role","listbox"),n},choiceGroup:function(e,t){var i=e.group,n=e.groupHeading,s=e.itemDisabled,r=t.id,o=t.value,a=t.disabled,c=Object.assign(document.createElement("div"),{className:i+" "+(a?s:"")});return c.setAttribute("role","group"),Object.assign(c.dataset,{group:"",id:r,value:o}),a&&c.setAttribute("aria-disabled","true"),c.appendChild(Object.assign(document.createElement("div"),{className:n,innerHTML:o})),c},choice:function(e,t,i){var n=e.item,s=e.itemChoice,r=e.itemSelectable,o=e.selectedState,a=e.itemDisabled,c=e.placeholder,l=t.id,h=t.value,u=t.label,d=t.groupId,p=t.elementId,m=t.disabled,f=t.selected,v=t.placeholder,g=Object.assign(document.createElement("div"),{id:p,innerHTML:u,className:n+" "+s});return f&&g.classList.add(o),v&&g.classList.add(c),g.setAttribute("role",d>0?"treeitem":"option"),Object.assign(g.dataset,{choice:"",id:l,value:h,selectText:i}),m?(g.classList.add(a),g.dataset.choiceDisabled="",g.setAttribute("aria-disabled","true")):(g.classList.add(r),g.dataset.choiceSelectable=""),g},input:function(e,t){var i=e.input,n=e.inputCloned,s=Object.assign(document.createElement("input"),{type:"text",className:i+" "+n,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return s.setAttribute("role","textbox"),s.setAttribute("aria-autocomplete","list"),s.setAttribute("aria-label",t),s},dropdown:function(e){var t=e.list,i=e.listDropdown,n=document.createElement("div");return n.classList.add(t,i),n.setAttribute("aria-expanded","false"),n},notice:function(e,t,i){var n=e.item,s=e.itemChoice,r=e.noResults,o=e.noChoices;void 0===i&&(i="");var a=[n,s];return"no-choices"===i?a.push(o):"no-results"===i&&a.push(r),Object.assign(document.createElement("div"),{innerHTML:t,className:a.join(" ")})},option:function(e){var t=e.label,i=e.value,n=e.customProperties,s=e.active,r=e.disabled,o=new Option(t,i,!1,s);return n&&(o.dataset.customProperties=n),o.disabled=r,o}},ve=function(e){return void 0===e&&(e=!0),{type:q,active:e}},ge=function(e,t){return{type:$,id:e,highlighted:t}},_e=function(e){var t=e.value,i=e.id,n=e.active,s=e.disabled;return{type:z,value:t,id:i,active:n,disabled:s}},be=function(e){return{type:"SET_IS_LOADING",isLoading:e}};function ye(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ee="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Ie={},Se=function(){var e,t,i;function n(e,t){var i=this;void 0===e&&(e="[data-choice]"),void 0===t&&(t={}),this.config=o.a.all([P,n.defaults.options,t],{arrayMerge:function(e,t){return[].concat(t)}});var s,r,a,c,l=(s=this.config,r=P,a=Object.keys(s).sort(),c=Object.keys(r).sort(),a.filter((function(e){return c.indexOf(e)<0})));l.length&&console.warn("Unknown config option(s) passed",l.join(", "));var h="string"==typeof e?document.querySelector(e):e;if(!(h instanceof HTMLInputElement||h instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement="text"===h.type,this._isSelectOneElement="select-one"===h.type,this._isSelectMultipleElement="select-multiple"===h.type,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto"),t.addItemFilter&&"function"!=typeof t.addItemFilter){var u=t.addItemFilter instanceof RegExp?t.addItemFilter:new RegExp(t.addItemFilter);this.config.addItemFilter=u.test.bind(u)}if(this._isTextElement?this.passedElement=new de({element:h,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new me({element:h,classNames:this.config.classNames,template:function(e){return i._templates.option(e)}}),this.initialised=!1,this._store=new T,this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(e,t){var i=e.id||e.name&&e.name+"-"+b(2)||b(4);return i=t+"-"+(i=i.replace(/(:|\.|\[|\]|,)/g,""))}(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var d=window.getComputedStyle(this.passedElement.element).direction;d!==window.getComputedStyle(document.documentElement).direction&&(this._direction=d)}if(this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach((function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:e.getAttribute("data-custom-properties")})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),void(this.initialised=!0);this.init()}e=n,i=[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return Ie},get templates(){return fe}})}}],(t=null)&&ye(e.prototype,t),i&&ye(e,i);var r=n.prototype;return r.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=O(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},r.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=null,this.initialised=!1)},r.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},r.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},r.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e)return this;var i=e.id,n=e.groupId,s=void 0===n?-1:n,r=e.value,o=void 0===r?"":r,a=e.label,c=void 0===a?"":a,l=s>=0?this._store.getGroupById(s):null;return this._store.dispatch(ge(i,!0)),t&&this.passedElement.triggerEvent(H,{id:i,value:o,label:c,groupValue:l&&l.value?l.value:null}),this},r.unhighlightItem=function(e){if(!e)return this;var t=e.id,i=e.groupId,n=void 0===i?-1:i,s=e.value,r=void 0===s?"":s,o=e.label,a=void 0===o?"":o,c=n>=0?this._store.getGroupById(n):null;return this._store.dispatch(ge(t,!1)),this.passedElement.triggerEvent(H,{id:t,value:r,label:a,groupValue:c&&c.value?c.value:null}),this},r.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},r.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},r.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},r.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},r.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(i){t._removeItem(i),e&&t._triggerChange(i.value)})),this},r.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(D,{})})),this},r.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(M,{})})),this):this},r.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,i){var n=e?i.value:i;return t.push(n),t}),[]);return this._isSelectOneElement?t[0]:t},r.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},r.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},r.setChoices=function(e,t,i,n){var s=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===i&&(i="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can’t be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of ‘value’ field in passed objects");if(n&&this.clearChoices(),"function"==typeof e){var r=e(this);if("function"==typeof Promise&&r instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return s._handleLoadingState(!0)})).then((function(){return r})).then((function(e){return s.setChoices(e,t,i,n)})).catch((function(e){s.config.silent||console.error(e)})).then((function(){return s._handleLoadingState(!1)})).then((function(){return s}));if(!Array.isArray(r))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof r);return this.setChoices(r,t,i,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){e.choices?s._addGroup({id:parseInt(e.id,10)||null,group:e,valueKey:t,labelKey:i}):s._addChoice({value:e[t],label:e[i],isSelected:e.selected,isDisabled:e.disabled,customProperties:e.customProperties,placeholder:e.placeholder})})),this._stopLoading(),this},r.clearChoices=function(){return this._store.dispatch({type:U}),this},r.clearStore=function(){return this._store.dispatch({type:"CLEAR_ALL"}),this},r.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(ve(!0))),this},r._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState)}},r._renderChoices=function(){var e=this,t=this._store,i=t.activeGroups,n=t.activeChoices,s=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),i.length>=1&&!this._isSearching){var r=n.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));r.length>=1&&(s=this._createChoicesFragment(r,s)),s=this._createGroupsFragment(i,n,s)}else n.length>=1&&(s=this._createChoicesFragment(n,s));if(s.childNodes&&s.childNodes.length>0){var o=this._store.activeItems,a=this._canAddItem(o,this.input.value);a.response?(this.choiceList.append(s),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",a.notice))}else{var c,l;this._isSearching?(l="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,c=this._getTemplate("notice",l,"no-results")):(l="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,c=this._getTemplate("notice",l,"no-choices")),this.choiceList.append(c)}},r._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},r._createGroupsFragment=function(e,t,i){var n=this;return void 0===i&&(i=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var s=function(e){return t.filter((function(t){return n._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===n.config.renderSelectedChoices||!t.selected)}))}(e);if(s.length>=1){var r=n._getTemplate("choiceGroup",e);i.appendChild(r),n._createChoicesFragment(s,i,!0)}})),i},r._createChoicesFragment=function(e,t,i){var n=this;void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1);var s=this.config,r=s.renderSelectedChoices,o=s.searchResultLimit,a=s.renderChoiceLimit,c=this._isSearching?w:this.config.sorter,l=function(e){if("auto"!==r||n._isSelectOneElement||!e.selected){var i=n._getTemplate("choice",e,n.config.itemSelectText);t.appendChild(i)}},h=e;"auto"!==r||this._isSelectOneElement||(h=e.filter((function(e){return!e.selected})));var u=h.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),d=u.placeholderChoices,p=u.normalChoices;(this.config.shouldSort||this._isSearching)&&p.sort(c);var m=h.length,f=this._isSelectOneElement?[].concat(d,p):p;this._isSearching?m=o:a&&a>0&&!i&&(m=a);for(var v=0;v<m;v+=1)f[v]&&l(f[v]);return t},r._createItemsFragment=function(e,t){var i=this;void 0===t&&(t=document.createDocumentFragment());var n=this.config,s=n.shouldSortItems,r=n.sorter,o=n.removeItemButton;return s&&!this._isSelectOneElement&&e.sort(r),this._isTextElement?this.passedElement.value=e:this.passedElement.options=e,e.forEach((function(e){var n=i._getTemplate("item",e,o);t.appendChild(n)})),t},r._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(N,{value:e})},r._selectPlaceholderChoice=function(){var e=this._store.placeholderChoice;e&&(this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value))},r._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var i=t.parentNode.getAttribute("data-id"),n=e.find((function(e){return e.id===parseInt(i,10)}));this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},r._handleItemAction=function(e,t,i){var n=this;if(void 0===i&&(i=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var s=t.getAttribute("data-id");e.forEach((function(e){e.id!==parseInt(s,10)||e.highlighted?!i&&e.highlighted&&n.unhighlightItem(e):n.highlightItem(e)})),this.input.focus()}},r._handleChoiceAction=function(e,t){if(e&&t){var i=t.dataset.id,n=this._store.getChoiceById(i);if(n){var s=e[0]&&e[0].keyCode?e[0].keyCode:null,r=this.dropdown.isActive;n.keyCode=s,this.passedElement.triggerEvent(F,{choice:n}),n.selected||n.disabled||this._canAddItem(e,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),r&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},r._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],i=e.some((function(e){return e.highlighted}));this.config.editItems&&!i&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(i||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},r._startLoading=function(){this._store.dispatch(be(!0))},r._stopLoading=function(){this._store.dispatch(be(!1))},r._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild("."+this.config.classNames.placeholder);e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(t)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},r._handleSearch=function(e){if(e&&this.input.isFocussed){var t=this._store.choices,i=this.config,n=i.searchFloor,s=i.searchChoices,r=t.some((function(e){return!e.active}));if(e&&e.length>=n){var o=s?this._searchChoices(e):0;this.passedElement.triggerEvent(j,{value:e,resultCount:o})}else r&&(this._isSearching=!1,this._store.dispatch(ve(!0)))}},r._canAddItem=function(e,t){var i=!0,n="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var s=function(e,t,i){return void 0===i&&(i="value"),e.some((function(e){return"string"==typeof t?e[i]===t.trim():e[i]===t}))}(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(i=!1,n="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&s&&i&&(i=!1,n="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&i&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(i=!1,n="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:i,notice:n}},r._searchChoices=function(e){var t="string"==typeof e?e.trim():e,i="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t===i+" ")return 0;var n=this._store.searchableChoices,r=t,o=[].concat(this.config.searchFields),a=Object.assign(this.config.fuseOptions,{keys:o}),c=new s.a(n,a).search(r);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(function(e){return{type:G,results:e}}(c)),c.length},r._addEventListeners=function(){var e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},r._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},r._onKeyDown=function(e){var t,i=e.target,n=e.keyCode,s=e.ctrlKey,r=e.metaKey,o=this._store.activeItems,a=this.input.isFocussed,c=this.dropdown.isActive,l=this.itemList.hasChildren(),h=String.fromCharCode(n),u=J,d=Y,p=Z,m=Q,f=ee,v=te,g=ie,_=ne,b=se,y=s||r;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(h)&&this.showDropdown();var E=((t={})[m]=this._onAKey,t[p]=this._onEnterKey,t[f]=this._onEscapeKey,t[v]=this._onDirectionKey,t[_]=this._onDirectionKey,t[g]=this._onDirectionKey,t[b]=this._onDirectionKey,t[d]=this._onDeleteKey,t[u]=this._onDeleteKey,t);E[n]&&E[n]({event:e,target:i,keyCode:n,metaKey:r,activeItems:o,hasFocusedInput:a,hasActiveDropdown:c,hasItems:l,hasCtrlDownKeyPressed:y})},r._onKeyUp=function(e){var t=e.target,i=e.keyCode,n=this.input.value,s=this._store.activeItems,r=this._canAddItem(s,n),o=J,a=Y;if(this._isTextElement)if(r.notice&&n){var c=this._getTemplate("notice",r.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var l=(i===o||i===a)&&!t.value,h=!this._isTextElement&&this._isSearching,u=this._canSearch&&r.response;l&&h?(this._isSearching=!1,this._store.dispatch(ve(!0))):u&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},r._onAKey=function(e){var t=e.hasItems;e.hasCtrlDownKeyPressed&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},r._onEnterKey=function(e){var t=e.event,i=e.target,n=e.activeItems,s=e.hasActiveDropdown,r=Z,o=i.hasAttribute("data-button");if(this._isTextElement&&i.value){var a=this.input.value;this._canAddItem(n,a).response&&(this.hideDropdown(!0),this._addItem({value:a}),this._triggerChange(a),this.clearInput())}if(o&&(this._handleButtonAction(n,i),t.preventDefault()),s){var c=this.dropdown.getChild("."+this.config.classNames.highlightedState);c&&(n[0]&&(n[0].keyCode=r),this._handleChoiceAction(n,c)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},r._onEscapeKey=function(e){e.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())},r._onDirectionKey=function(e){var t,i,n,s=e.event,r=e.hasActiveDropdown,o=e.keyCode,a=e.metaKey,c=ie,l=ne,h=se;if(r||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var u,d=o===c||o===h?1:-1;if(a||o===h||o===l)u=d>0?this.dropdown.element.querySelector("[data-choice-selectable]:last-of-type"):this.dropdown.element.querySelector("[data-choice-selectable]");else{var p=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);u=p?function(e,t,i){if(void 0===i&&(i=1),e instanceof Element&&"string"==typeof t){for(var n=(i>0?"next":"previous")+"ElementSibling",s=e[n];s;){if(s.matches(t))return s;s=s[n]}return s}}(p,"[data-choice-selectable]",d):this.dropdown.element.querySelector("[data-choice-selectable]")}u&&(t=u,i=this.choiceList.element,void 0===(n=d)&&(n=1),t&&(n>0?i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=i.scrollTop)||this.choiceList.scrollToChildElement(u,d),this._highlightChoice(u)),s.preventDefault()}},r._onDeleteKey=function(e){var t=e.event,i=e.target,n=e.hasFocusedInput,s=e.activeItems;!n||i.value||this._isSelectOneElement||(this._handleBackspace(s),t.preventDefault())},r._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},r._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},r._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(Ee&&this.choiceList.element.contains(t)){var i=this.choiceList.element.firstElementChild,n="ltr"===this._direction?e.offsetX>=i.offsetWidth:e.offsetX<i.offsetLeft;this._isScrollingOnIe=n}if(t!==this.input.element){var s=t.closest("[data-button],[data-item],[data-choice]");if(s instanceof HTMLElement){var r=e.shiftKey,o=this._store.activeItems,a=s.dataset;"button"in a?this._handleButtonAction(o,s):"item"in a?this._handleItemAction(o,s,r):"choice"in a&&this._handleChoiceAction(o,s)}e.preventDefault()}}},r._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},r._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},r._onFocus=function(e){var t,i=this,n=e.target;this.containerOuter.element.contains(n)&&((t={}).text=function(){n===i.input.element&&i.containerOuter.addFocusState()},t["select-one"]=function(){i.containerOuter.addFocusState(),n===i.input.element&&i.showDropdown(!0)},t["select-multiple"]=function(){n===i.input.element&&(i.showDropdown(!0),i.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},r._onBlur=function(e){var t=this,i=e.target;if(this.containerOuter.element.contains(i)&&!this._isScrollingOnIe){var n,s=this._store.activeItems.some((function(e){return e.highlighted}));((n={}).text=function(){i===t.input.element&&(t.containerOuter.removeFocusState(),s&&t.unhighlightAll(),t.hideDropdown(!0))},n["select-one"]=function(){t.containerOuter.removeFocusState(),(i===t.input.element||i===t.containerOuter.element&&!t._canSearch)&&t.hideDropdown(!0)},n["select-multiple"]=function(){i===t.input.element&&(t.containerOuter.removeFocusState(),t.hideDropdown(!0),s&&t.unhighlightAll())},n)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},r._onFormReset=function(){this._store.dispatch({type:"RESET_TO",state:this._initialState})},r._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(i.length){var n=e;Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState)).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),n?this._highlightPosition=i.indexOf(n):(n=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||(n=i[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(B,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},r._addItem=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,s=e.choiceId,r=void 0===s?-1:s,o=e.groupId,a=void 0===o?-1:o,c=e.customProperties,l=void 0===c?null:c,h=e.placeholder,u=void 0!==h&&h,d=e.keyCode,p=void 0===d?null:d,m="string"==typeof t?t.trim():t,f=p,v=l,g=this._store.items,_=n||m,b=r||-1,y=a>=0?this._store.getGroupById(a):null,E=g?g.length+1:1;return this.config.prependValue&&(m=this.config.prependValue+m.toString()),this.config.appendValue&&(m+=this.config.appendValue.toString()),this._store.dispatch(function(e){var t=e.value,i=e.label,n=e.id,s=e.choiceId,r=e.groupId,o=e.customProperties,a=e.placeholder,c=e.keyCode;return{type:W,value:t,label:i,id:n,choiceId:s,groupId:r,customProperties:o,placeholder:a,keyCode:c}}({value:m,label:_,id:E,choiceId:b,groupId:a,customProperties:l,placeholder:u,keyCode:f})),this._isSelectOneElement&&this.removeActiveItems(E),this.passedElement.triggerEvent(K,{id:E,value:m,label:_,customProperties:v,groupValue:y&&y.value?y.value:void 0,keyCode:f}),this},r._removeItem=function(e){if(!e||!E("Object",e))return this;var t=e.id,i=e.value,n=e.label,s=e.choiceId,r=e.groupId,o=r>=0?this._store.getGroupById(r):null;return this._store.dispatch(function(e,t){return{type:X,id:e,choiceId:t}}(t,s)),o&&o.value?this.passedElement.triggerEvent(R,{id:t,value:i,label:n,groupValue:o.value}):this.passedElement.triggerEvent(R,{id:t,value:i,label:n}),this},r._addChoice=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,s=e.isSelected,r=void 0!==s&&s,o=e.isDisabled,a=void 0!==o&&o,c=e.groupId,l=void 0===c?-1:c,h=e.customProperties,u=void 0===h?null:h,d=e.placeholder,p=void 0!==d&&d,m=e.keyCode,f=void 0===m?null:m;if(null!=t){var v=this._store.choices,g=n||t,_=v?v.length+1:1,b=this._baseId+"-"+this._idNames.itemChoice+"-"+_;this._store.dispatch(function(e){var t=e.value,i=e.label,n=e.id,s=e.groupId,r=e.disabled,o=e.elementId,a=e.customProperties,c=e.placeholder,l=e.keyCode;return{type:V,value:t,label:i,id:n,groupId:s,disabled:r,elementId:o,customProperties:a,placeholder:c,keyCode:l}}({id:_,groupId:l,elementId:b,value:t,label:g,disabled:a,customProperties:u,placeholder:p,keyCode:f})),r&&this._addItem({value:t,label:g,choiceId:_,customProperties:u,placeholder:p,keyCode:f})}},r._addGroup=function(e){var t=this,i=e.group,n=e.id,s=e.valueKey,r=void 0===s?"value":s,o=e.labelKey,a=void 0===o?"label":o,c=E("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION")),l=n||Math.floor((new Date).valueOf()*Math.random()),h=!!i.disabled&&i.disabled;c?(this._store.dispatch(_e({value:i.label,id:l,active:!0,disabled:h})),c.forEach((function(e){var i=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[r],label:E("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:i,groupId:l,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch(_e({value:i.label,id:i.id,active:!1,disabled:i.disabled}))},r._getTemplate=function(e){var t;if(!e)return null;for(var i=this.config.classNames,n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return(t=this._templates[e]).call.apply(t,[this,i].concat(s))},r._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,S)),this._templates=o()(fe,t)},r._createElements=function(){this.containerOuter=new re({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new re({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new ae({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new ce({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new ce({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new k({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},r._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},r._addPredefinedGroups=function(e){var t=this,i=this.passedElement.placeholderOption;i&&"SELECT"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},r._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var i=e.some((function(e){return e.selected})),n=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,s){var r=e.value,o=e.label,a=e.customProperties,c=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var l=!(!t._isSelectOneElement||i||s!==n)||e.selected,h=e.disabled;t._addChoice({value:r,label:o,isSelected:l,isDisabled:h,customProperties:a,placeholder:c})}else t._addChoice({value:r,label:o,isSelected:e.selected,isDisabled:e.disabled,customProperties:a,placeholder:c})}))},r._addPredefinedItems=function(e){var t=this;e.forEach((function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})}))},r._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[y(e).toLowerCase()]()},r._findAndSelectChoiceByValue=function(e){var t=this,i=this._store.choices.find((function(i){return t.config.valueComparer(i.value,e)}));i&&!i.selected&&this._addItem({value:i.value,label:i.label,choiceId:i.id,groupId:i.groupId,customProperties:i.customProperties,placeholder:i.placeholder,keyCode:i.keyCode})},r._generatePlaceholderValue=function(){if(this._isSelectElement){var e=this.passedElement.placeholderOption;return!!e&&e.text}var t=this.config,i=t.placeholder,n=t.placeholderValue,s=this.passedElement.element.dataset;if(i){if(n)return n;if(s.placeholder)return s.placeholder}return!1},n}();t.default=Se}]).default},"object"==typeof i&&"object"==typeof t?t.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof i?i.Choices=s():n.Choices=s()},n 411: function _(n,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=n(1);n(67),i.__importStar(n(66)).styles.append(".bk-root {\n /*===============================\n= Choices =\n===============================/\n /===== End of Choices ======/\n}\n.bk-root .choices {\n position: relative;\n margin-bottom: 24px;\n font-size: 16px;\n}\n.bk-root .choices:focus {\n outline: none;\n}\n.bk-root .choices:last-child {\n margin-bottom: 0;\n}\n.bk-root .choices.is-disabled .choices__inner,\n.bk-root .choices.is-disabled .choices__input {\n background-color: #eaeaea;\n cursor: not-allowed;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.bk-root .choices.is-disabled .choices__item {\n cursor: not-allowed;\n}\n.bk-root .choices [hidden] {\n display: none !important;\n}\n.bk-root .choices[data-type*=’select-one’] {\n cursor: pointer;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__inner {\n padding-bottom: 7.5px;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__input {\n display: block;\n width: 100%;\n padding: 10px;\n border-bottom: 1px solid #dddddd;\n background-color: #ffffff;\n margin: 0;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n padding: 0;\n background-size: 8px;\n position: absolute;\n top: 50%;\n right: 0;\n margin-top: -10px;\n margin-right: 25px;\n height: 20px;\n width: 20px;\n border-radius: 10em;\n opacity: 0.5;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button:hover,\n.bk-root .choices[data-type*=’select-one’] .choices__button:focus {\n opacity: 1;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button:focus {\n box-shadow: 0px 0px 0px 2px #00bcd4;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__item[data-value=’’] .choices__button {\n display: none;\n}\n.bk-root .choices[data-type*=’select-one’]:after {\n content: ‘’;\n height: 0;\n width: 0;\n border-style: solid;\n border-color: #333333 transparent transparent transparent;\n border-width: 5px;\n position: absolute;\n right: 11.5px;\n top: 50%;\n margin-top: -2.5px;\n pointer-events: none;\n}\n.bk-root .choices[data-type*=’select-one’].is-open:after {\n border-color: transparent transparent #333333 transparent;\n margin-top: -7.5px;\n}\n.bk-root .choices[data-type*=’select-one’][dir=’rtl’]:after {\n left: 11.5px;\n right: auto;\n}\n.bk-root .choices[data-type*=’select-one’][dir=’rtl’] .choices__button {\n right: auto;\n left: 0;\n margin-left: 25px;\n margin-right: 0;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__inner,\n.bk-root .choices[data-type*=’text’] .choices__inner {\n cursor: text;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__button,\n.bk-root .choices[data-type*=’text’] .choices__button {\n position: relative;\n display: inline-block;\n margin-top: 0;\n margin-right: -4px;\n margin-bottom: 0;\n margin-left: 8px;\n padding-left: 16px;\n border-left: 1px solid #008fa1;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n background-size: 8px;\n width: 8px;\n line-height: 1;\n opacity: 0.75;\n border-radius: 0;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__button:hover,\n.bk-root .choices[data-type*=’select-multiple’] .choices__button:focus,\n.bk-root .choices[data-type*=’text’] .choices__button:hover,\n.bk-root .choices[data-type*=’text’] .choices__button:focus {\n opacity: 1;\n}\n.bk-root .choices__inner {\n display: inline-block;\n vertical-align: top;\n width: 100%;\n background-color: #f9f9f9;\n padding: 7.5px 7.5px 3.75px;\n border: 1px solid #dddddd;\n border-radius: 2.5px;\n font-size: 14px;\n min-height: 44px;\n overflow: hidden;\n}\n.bk-root .is-focused .choices__inner,\n.bk-root .is-open .choices__inner {\n border-color: #b7b7b7;\n}\n.bk-root .is-open .choices__inner {\n border-radius: 2.5px 2.5px 0 0;\n}\n.bk-root .is-flipped.is-open .choices__inner {\n border-radius: 0 0 2.5px 2.5px;\n}\n.bk-root .choices__list {\n margin: 0;\n padding-left: 0;\n list-style: none;\n}\n.bk-root .choices__list–single {\n display: inline-block;\n padding: 4px 16px 4px 4px;\n width: 100%;\n}\n.bk-root [dir=’rtl’] .choices__list–single {\n padding-right: 4px;\n padding-left: 16px;\n}\n.bk-root .choices__list–single .choices__item {\n width: 100%;\n}\n.bk-root .choices__list–multiple {\n display: inline;\n}\n.bk-root .choices__list–multiple .choices__item {\n display: inline-block;\n vertical-align: middle;\n border-radius: 20px;\n padding: 4px 10px;\n font-size: 12px;\n font-weight: 500;\n margin-right: 3.75px;\n margin-bottom: 3.75px;\n background-color: #00bcd4;\n border: 1px solid #00a5bb;\n color: #ffffff;\n word-break: break-all;\n box-sizing: border-box;\n}\n.bk-root .choices__list–multiple .choices__item[data-deletable] {\n padding-right: 5px;\n}\n.bk-root [dir=’rtl’] .choices__list–multiple .choices__item {\n margin-right: 0;\n margin-left: 3.75px;\n}\n.bk-root .choices__list–multiple .choices__item.is-highlighted {\n background-color: #00a5bb;\n border: 1px solid #008fa1;\n}\n.bk-root .is-disabled .choices__list–multiple .choices__item {\n background-color: #aaaaaa;\n border: 1px solid #919191;\n}\n.bk-root .choices__list–dropdown {\n visibility: hidden;\n z-index: 1;\n position: absolute;\n width: 100%;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n top: 100%;\n margin-top: -1px;\n border-bottom-left-radius: 2.5px;\n border-bottom-right-radius: 2.5px;\n overflow: hidden;\n word-break: break-all;\n will-change: visibility;\n}\n.bk-root .choices__list–dropdown.is-active {\n visibility: visible;\n}\n.bk-root .is-open .choices__list–dropdown {\n border-color: #b7b7b7;\n}\n.bk-root .is-flipped .choices__list–dropdown {\n top: auto;\n bottom: 100%;\n margin-top: 0;\n margin-bottom: -1px;\n border-radius: 0.25rem 0.25rem 0 0;\n}\n.bk-root .choices__list–dropdown .choices__list {\n position: relative;\n max-height: 300px;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n will-change: scroll-position;\n}\n.bk-root .choices__list–dropdown .choices__item {\n position: relative;\n padding: 10px;\n font-size: 14px;\n}\n.bk-root [dir=’rtl’] .choices__list–dropdown .choices__item {\n text-align: right;\n}\n@media (min-width: 640px) {\n .bk-root .choices__list–dropdown .choices__item–selectable {\n padding-right: 100px;\n }\n .bk-root .choices__list–dropdown .choices__item–selectable:after {\n content: attr(data-select-text);\n font-size: 12px;\n opacity: 0;\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n }\n .bk-root [dir=’rtl’] .choices__list–dropdown .choices__item–selectable {\n text-align: right;\n padding-left: 100px;\n padding-right: 10px;\n }\n .bk-root [dir=’rtl’] .choices__list–dropdown .choices__item–selectable:after {\n right: auto;\n left: 10px;\n }\n}\n.bk-root .choices__list–dropdown .choices__item–selectable.is-highlighted {\n background-color: #f2f2f2;\n}\n.bk-root .choices__list–dropdown .choices__item–selectable.is-highlighted:after {\n opacity: 0.5;\n}\n.bk-root .choices__item {\n cursor: default;\n}\n.bk-root .choices__item–selectable {\n cursor: pointer;\n}\n.bk-root .choices__item–disabled {\n cursor: not-allowed;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n opacity: 0.5;\n}\n.bk-root .choices__heading {\n font-weight: 600;\n font-size: 12px;\n padding: 10px;\n border-bottom: 1px solid #f7f7f7;\n color: gray;\n}\n.bk-root .choices__button {\n text-indent: -9999px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n cursor: pointer;\n}\n.bk-root .choices__button:focus {\n outline: none;\n}\n.bk-root .choices__input {\n display: inline-block;\n vertical-align: baseline;\n background-color: #f9f9f9;\n font-size: 14px;\n margin-bottom: 5px;\n border: 0;\n border-radius: 0;\n max-width: 100%;\n padding: 4px 0 4px 2px;\n}\n.bk-root .choices__input:focus {\n outline: 0;\n}\n.bk-root [dir=’rtl’] .choices__input {\n padding-right: 2px;\n padding-left: 0;\n}\n.bk-root .choices__placeholder {\n opacity: 0.5;\n}\n.bk-root .choices {\n width: 100%;\n}\n.bk-root .choices__inner .choices__item.light {\n background-color: rgba(0, 126, 255, 0.08);\n border-radius: 5px;\n border: 1px solid rgba(0, 126, 255, 0.24);\n color: #007eff;\n}\n.bk-root .choices__inner .choices__item.solid {\n background-color: #1f77b4;\n border: none;\n border-radius: 5px;\n color: white;\n}\n.bk-root .choices__inner .choices__item.solid .is-highlighted {\n background-color: #1f77b4;\n border: none;\n}\n.bk-root .choices__input {\n background-color: transparent;\n}\n.bk-root .choices__inner {\n background: transparent;\n border: 1px solid darkgray;\n border-radius: 5px;\n min-height: unset;\n}\n.bk-root .choices__list {\n white-space: initial;\n}\n.bk-root .choices[data-type*=select-multiple] .choices__button.light {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDA3ZWZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n}\n.bk-root .choices[data-type*=select-multiple] .choices__button.solid {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjZmZmZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n border-left: 1px solid white;\n opacity: 1;\n}\n")},n 412: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const s=e(402),i=e(66);class n extends s.MarkupView{render(){super.render();const e=i.pre({style:{overflow:"auto"}},this.model.text);this.markup_el.appendChild(e)}}r.PreTextView=n,n.__name__="PreTextView";class _ extends s.Markup{constructor(e){super(e)}static init_PreText(){this.prototype.default_view=n}}r.PreText=_,_.__name__="PreText",_.init_PreText()},n 413: function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),a=t(388),n=t(66),u=i.__importStar(t(19)),s=t(145);class _ extends a.ButtonGroupView{change_active(t){this.model.active!==t&&(this.model.active=t)}_update_active(){const{active:t}=this.model;this._buttons.forEach((o,e)=>{n.classes(o).toggle(s.bk_active,t===e)})}}e.RadioButtonGroupView=_,_.__name__="RadioButtonGroupView";class c extends a.ButtonGroup{constructor(t){super(t)}static init_RadioButtonGroup(){this.prototype.default_view=_,this.define({active:[u.Any,null]})}}e.RadioButtonGroup=c,c.__name__="RadioButtonGroup",c.init_RadioButtonGroup()},n 414: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),a=e(66),o=e(26),d=n.__importStar(e(19)),s=e(390),l=e(145),r=e(385);class p extends s.InputGroupView{render(){super.render();const e=a.div({class:[r.bk_input_group,this.model.inline?l.bk_inline:null]});this.el.appendChild(e);const i=o.uniqueId(),{active:t,labels:n}=this.model;for(let o=0;o<n.length;o++){const d=a.input({type:"radio",name:i,value:${o}});d.addEventListener("change",()=>this.change_active(o)),this.model.disabled&&(d.disabled=!0),o==t&&(d.checked=!0);const s=a.label({},d,a.span({},n[o]));e.appendChild(s)}}change_active(e){this.model.active=e}}t.RadioGroupView=p,p.__name__="RadioGroupView";class u extends s.InputGroup{constructor(e){super(e)}static init_RadioGroup(){this.prototype.default_view=p,this.define({active:[d.Number],labels:[d.Array,[]],inline:[d.Boolean,!1]})}}t.RadioGroup=u,u.__name__="RadioGroup",u.init_RadioGroup()},n 415: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1).__importStar(e(159)),a=e(396),n=e(8);class o extends a.AbstractRangeSliderView{}r.RangeSliderView=o,o.__name__="RangeSliderView";class s extends a.AbstractSlider{constructor(e){super(e),this.behaviour="drag",this.connected=[!1,!0,!1]}static init_RangeSlider(){this.prototype.default_view=o,this.override({format:"0[.]00"})}_formatter(e,t){return n.isString(t)?i.format(e,t):t.doFormat([e],{loc:0})[0]}}r.RangeSlider=s,s.__name__="RangeSlider",s.init_RangeSlider()},n 416: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(66),l=e(8),o=e(70),c=i.__importStar(e(19)),d=e(384),a=e(385);class r extends d.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}build_options(e){return e.map(e=>{let t,s;l.isString(e)?t=s=e:[t,s]=e;const i=this.model.value==t;return n.option({selected:i,value:t},s)})}render(){let e;if(super.render(),l.isArray(this.model.options))e=this.build_options(this.model.options);else{e=[];const t=this.model.options;for(const s in t){const i=t[s];e.push(n.optgroup({label:s},this.build_options(i)))}}this.select_el=n.select({class:a.bk_input,id:this.model.id,name:this.model.name,disabled:this.model.disabled},e),this.select_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.select_el)}change_input(){const e=this.select_el.value;o.logger.debug(selectbox: value = ${e}),this.model.value=e,super.change_input()}}s.SelectView=r,r.__name__="SelectView";class u extends d.InputWidget{constructor(e){super(e)}static init_Select(){this.prototype.default_view=r,this.define({value:[c.String,""],options:[c.Any,[]]})}}s.Select=u,u.__name__="Select",u.init_Select()},n 417: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1).__importStar(e(159)),o=e(396),s=e(8);class _ extends o.AbstractSliderView{}r.SliderView=_,_.__name__="SliderView";class a extends o.AbstractSlider{constructor(e){super(e),this.behaviour="tap",this.connected=[!0,!1]}static init_Slider(){this.prototype.default_view=_,this.override({format:"0[.]00"})}_formatter(e,t){return s.isString(t)?i.format(e,t):t.doFormat([e],{loc:0})[0]}}r.Slider=a,a.__name__="Slider",a.init_Slider()},n 418: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(384),l=e(66),h=n.__importStar(e(19)),o=e(385),{floor:p,max:d,min:u}=Math;function r(e){return p(e)!==e?e.toFixed(16).replace(/0+$/,"").split(".")[1].length:0}class a extends s.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.low.change,()=>{const{low:e}=this.model;null!=e&&(this.input_el.min=e.toFixed(16))}),this.connect(this.model.properties.high.change,()=>{const{high:e}=this.model;null!=e&&(this.input_el.max=e.toFixed(16))}),this.connect(this.model.properties.step.change,()=>{const{step:e}=this.model;this.input_el.step=e.toFixed(16)}),this.connect(this.model.properties.value.change,()=>{const{value:e,step:t}=this.model;this.input_el.value=e.toFixed(r(t)).replace(/(\.[0-9]*[1-9])0+$|\.0*$/,"$1")}),this.connect(this.model.properties.disabled.change,()=>{this.input_el.disabled=this.model.disabled})}render(){super.render(),this.input_el=l.input({type:"number",class:o.bk_input,name:this.model.name,min:this.model.low,max:this.model.high,value:this.model.value,step:this.model.step,disabled:this.model.disabled}),this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){if(this.input_el.value){const{step:e}=this.model;let t=Number(this.input_el.value);null!=this.model.low&&(t=d(t,this.model.low)),null!=this.model.high&&(t=u(t,this.model.high)),this.model.value=Number(t.toFixed(r(e))),super.change_input()}}}i.SpinnerView=a,a.__name__="SpinnerView";class c extends s.InputWidget{constructor(e){super(e)}static init_Spinner(){this.prototype.default_view=a,this.define({value:[h.Number,0],low:[h.Number,null],high:[h.Number,null],step:[h.Number,1]})}}i.Spinner=c,c.__name__="Spinner",c.init_Spinner()},n 419: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(383),l=e(384),h=e(66),o=s.__importStar(e(19)),a=e(385);class p extends l.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.value.change,()=>this.input_el.value=this.model.value),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled),this.connect(this.model.properties.placeholder.change,()=>this.input_el.placeholder=this.model.placeholder),this.connect(this.model.properties.rows.change,()=>this.input_el.rows=this.model.rows),this.connect(this.model.properties.cols.change,()=>this.input_el.cols=this.model.cols),this.connect(this.model.properties.max_length.change,()=>this.input_el.maxLength=this.model.max_length)}render(){super.render(),this.input_el=h.textarea({class:a.bk_input,name:this.model.name,disabled:this.model.disabled,placeholder:this.model.placeholder,cols:this.model.cols,rows:this.model.rows,maxLength:this.model.max_length}),this.input_el.textContent=this.model.value,this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){this.model.value=this.input_el.value,super.change_input()}}i.TextAreaInputView=p,p.__name__="TextAreaInputView";class r extends n.TextInput{constructor(e){super(e)}static init_TextAreaInput(){this.prototype.default_view=p,this.define({cols:[o.Number,20],rows:[o.Number,2],max_length:[o.Number,500]})}}i.TextAreaInput=r,r.__name__="TextAreaInput",r.init_TextAreaInput()},n 420: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),c=e(378),o=e(66),a=s.__importStar(e(19)),n=e(145);class l extends c.AbstractButtonView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._update_active())}render(){super.render(),this._update_active()}click(){this.model.active=!this.model.active,super.click()}_update_active(){o.classes(this.button_el).toggle(n.bk_active,this.model.active)}}i.ToggleView=l,l.__name__="ToggleView";class _ extends c.AbstractButton{constructor(e){super(e)}static init_Toggle(){this.prototype.default_view=l,this.define({active:[a.Boolean,!1]}),this.override({label:"Toggle"})}}i.Toggle=_,_.__name__="Toggle",_.init_Toggle()},n }, 376, {"models/widgets/main":376,"models/widgets/index":377,"models/widgets/abstract_button":378,"models/widgets/control":379,"models/widgets/widget":441,"models/widgets/abstract_icon":381,"models/widgets/autocomplete_input":382,"models/widgets/text_input":383,"models/widgets/input_widget":384,"styles/widgets/inputs":385,"models/widgets/button":386,"models/widgets/checkbox_button_group":387,"models/widgets/button_group":388,"models/widgets/checkbox_group":389,"models/widgets/input_group":390,"models/widgets/color_picker":391,"models/widgets/date_picker":392,"styles/widgets/flatpickr":394,"models/widgets/date_range_slider":395,"models/widgets/abstract_slider":396,"styles/widgets/sliders":398,"styles/widgets/nouislider":399,"models/widgets/date_slider":400,"models/widgets/div":401,"models/widgets/markup":402,"styles/clearfix":403,"models/widgets/dropdown":404,"models/widgets/file_input":405,"models/widgets/multiselect":406,"models/widgets/paragraph":407,"models/widgets/password_input":408,"models/widgets/multichoice":409,"styles/widgets/choices":411,"models/widgets/pretext":412,"models/widgets/radio_button_group":413,"models/widgets/radio_group":414,"models/widgets/range_slider":415,"models/widgets/selectbox":416,"models/widgets/slider":417,"models/widgets/spinner":418,"models/widgets/textarea_input":419,"models/widgets/toggle":420}, {});n })nnn /* END bokeh-widgets.min.js /n },n n function(Bokeh) {n / BEGIN bokeh-tables.min.js /n /!n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn * All rights reserved.n * n * Redistribution and use in source and binary forms, with or without modification,n * are permitted provided that the following conditions are met:n * n * Redistributions of source code must retain the above copyright notice,n * this list of conditions and the following disclaimer.n * n * Redistributions in binary form must reproduce the above copyright notice,n * this list of conditions and the following disclaimer in the documentationn * and/or other materials provided with the distribution.n * n * Neither the name of Anaconda nor the names of any contributorsn * may be used to endorse or promote products derived from this softwaren * without specific prior written permission.n * n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn * THE POSSIBILITY OF SUCH DAMAGE.n /n (function(root, factory) {n factory(root["Bokeh"], "2.0.2");n })(this, function(Bokeh, version) {n var define;n return (function(modules, entry, aliases, externals) {n const bokeh = typeof Bokeh !== "undefined" && (version != null ? Bokeh[version] : Bokeh);n if (bokeh != null) {n return bokeh.register_plugin(modules, entry, aliases);n } else {n throw new Error("Cannot find Bokeh " + version + ". You have to load it prior to loading plugins.");n }n })n ({n 421: function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1).__importStar(e(422));o.Tables=r,e(7).register_models(r)},n 422: function _(a,g,r){Object.defineProperty(r,"__esModule",{value:!0});const e=a(1);e.__exportStar(a(423),r),e.__exportStar(a(444),r);var t=a(424);r.DataTable=t.DataTable;var o=a(447);r.TableColumn=o.TableColumn;var n=a(440);r.TableWidget=n.TableWidget;var u=a(448);r.AvgAggregator=u.AvgAggregator,r.MinAggregator=u.MinAggregator,r.MaxAggregator=u.MaxAggregator,r.SumAggregator=u.SumAggregator;var l=a(449);r.GroupingInfo=l.GroupingInfo,r.DataCube=l.DataCube},n 423: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1).__importStar(e(19)),r=e(66),a=e(64),n=e(69),l=e(424),u=e(442);class d extends a.DOMView{constructor(e){super(Object.assign({model:e.column.model},e)),this.args=e,this.initialize(),this.render()}get emptyValue(){return null}initialize(){super.initialize(),this.inputEl=this._createInput(),this.defaultValue=null}async lazy_initialize(){throw new Error("unsupported")}css_classes(){return super.css_classes().concat(u.bk_cell_editor)}render(){super.render(),this.args.container.append(this.el),this.el.appendChild(this.inputEl),this.renderEditor(),this.disableNavigation()}renderEditor(){}disableNavigation(){this.inputEl.addEventListener("keydown",e=>{switch(e.keyCode){case r.Keys.Left:case r.Keys.Right:case r.Keys.Up:case r.Keys.Down:case r.Keys.PageUp:case r.Keys.PageDown:e.stopImmediatePropagation()}})}destroy(){this.remove()}focus(){this.inputEl.focus()}show(){}hide(){}position(){}getValue(){return this.inputEl.value}setValue(e){this.inputEl.value=e}serializeValue(){return this.getValue()}isValueChanged(){return!(""==this.getValue()&&null==this.defaultValue)&&this.getValue()!==this.defaultValue}applyValue(e,t){const i=this.args.grid.getData(),s=i.index.indexOf(e[l.DTINDEX_NAME]);i.setField(s,this.args.column.field,t)}loadValue(e){const t=e[this.args.column.field];this.defaultValue=null!=t?t:this.emptyValue,this.setValue(this.defaultValue)}validateValue(e){if(this.args.column.validator){const t=this.args.column.validator(e);if(!t.valid)return t}return{valid:!0,msg:null}}validate(){return this.validateValue(this.getValue())}}i.CellEditorView=d,d.__name__="CellEditorView";class o extends n.Model{}i.CellEditor=o,o.__name__="CellEditor";class _ extends d{get emptyValue(){return""}_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}}i.StringEditorView=_,_.__name__="StringEditorView";class c extends o{static init_StringEditor(){this.prototype.default_view=_,this.define({completions:[s.Array,[]]})}}i.StringEditor=c,c.__name__="StringEditor",c.init_StringEditor();class p extends d{_createInput(){return r.textarea()}}i.TextEditorView=p,p.__name__="TextEditorView";class h extends o{static init_TextEditor(){this.prototype.default_view=p}}i.TextEditor=h,h.__name__="TextEditor",h.init_TextEditor();class E extends d{_createInput(){return r.select()}renderEditor(){for(const e of this.model.options)this.inputEl.appendChild(r.option({value:e},e));this.focus()}}i.SelectEditorView=E,E.__name__="SelectEditorView";class V extends o{static init_SelectEditor(){this.prototype.default_view=E,this.define({options:[s.Array,[]]})}}i.SelectEditor=V,V.__name__="SelectEditor",V.init_SelectEditor();class m extends d{_createInput(){return r.input({type:"text"})}}i.PercentEditorView=m,m.__name__="PercentEditorView";class f extends o{static init_PercentEditor(){this.prototype.default_view=m}}i.PercentEditor=f,f.__name__="PercentEditor",f.init_PercentEditor();class x extends d{_createInput(){return r.input({type:"checkbox",value:"true"})}renderEditor(){this.focus()}loadValue(e){this.defaultValue=!!e[this.args.column.field],this.inputEl.checked=this.defaultValue}serializeValue(){return this.inputEl.checked}}i.CheckboxEditorView=x,x.__name__="CheckboxEditorView";class w extends o{static init_CheckboxEditor(){this.prototype.default_view=x}}i.CheckboxEditor=w,w.__name__="CheckboxEditor",w.init_CheckboxEditor();class g extends d{_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){return parseInt(this.getValue(),10)||0}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return isNaN(e)?{valid:!1,msg:"Please enter a valid integer"}:super.validateValue(e)}}i.IntEditorView=g,g.__name__="IntEditorView";class v extends o{static init_IntEditor(){this.prototype.default_view=g,this.define({step:[s.Number,1]})}}i.IntEditor=v,v.__name__="IntEditor",v.init_IntEditor();class y extends d{_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){return parseFloat(this.getValue())||0}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return isNaN(e)?{valid:!1,msg:"Please enter a valid number"}:super.validateValue(e)}}i.NumberEditorView=y,y.__name__="NumberEditorView";class b extends o{static init_NumberEditor(){this.prototype.default_view=y,this.define({step:[s.Number,.01]})}}i.NumberEditor=b,b.__name__="NumberEditor",b.init_NumberEditor();class I extends d{_createInput(){return r.input({type:"text"})}}i.TimeEditorView=I,I.__name__="TimeEditorView";class N extends o{static init_TimeEditor(){this.prototype.default_view=I}}i.TimeEditor=N,N.__name__="TimeEditor",N.init_TimeEditor();class C extends d{_createInput(){return r.input({type:"text"})}get emptyValue(){return new Date}renderEditor(){this.inputEl.focus(),this.inputEl.select()}destroy(){super.destroy()}show(){super.show()}hide(){super.hide()}position(){return super.position()}getValue(){}setValue(e){}}i.DateEditorView=C,C.__name__="DateEditorView";class D extends o{static init_DateEditor(){this.prototype.default_view=C}}i.DateEditor=D,D.__name__="DateEditor",D.init_DateEditor()},n 424: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),o=e(425),n=e(429),l=e(430),r=e(431),d=s.__importStar(e(19)),a=e(26),h=e(8),c=e(9),u=e(24),_=e(70),m=e(187),g=e(440),p=e(441),b=e(442);i.DTINDEX_NAME="__bkdt_internal_index__";class w{constructor(e,t){this.init(e,t)}init(e,t){if(i.DTINDEX_NAME in e.data)throw new Error(`special name ${i.DTINDEX_NAME} cannot be used as a data table column`);this.source=e,this.view=t,this.index=this.view.indices}getLength(){return this.index.length}getItem(e){const t={};for(const i of u.keys(this.source.data))t[i]=this.source.data[i][this.index[e]];return t[i.DTINDEX_NAME]=this.index[e],t}getField(e,t){return t==i.DTINDEX_NAME?this.index[e]:this.source.data[t][this.index[e]]}setField(e,t,i){const s=this.index[e];this.source.patch({[t]:[[s,i]]})}getItemMetadata(e){return null}getRecords(){return c.range(0,this.getLength()).map(e=>this.getItem(e))}sort(e){let t=e.map(e=>[e.sortCol.field,e.sortAsc?1:-1]);0==t.length&&(t=[[i.DTINDEX_NAME,1]]);const s=this.getRecords(),o=this.index.slice();this.index.sort((function(e,i){for(const[n,l]of t){const t=s[o.indexOf(e)][n],r=s[o.indexOf(i)][n],d=t==r?0:t>r?l:-l;if(0!=d)return d}return 0}))}}i.TableDataProvider=w,w.__name__="TableDataProvider";class x extends p.WidgetView{constructor(){super(…arguments),this._in_selection_update=!1,this._warned_not_reorderable=!1}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.source.streaming,()=>this.updateGrid()),this.connect(this.model.source.patching,()=>this.updateGrid()),this.connect(this.model.source.change,()=>this.updateGrid()),this.connect(this.model.source.properties.data.change,()=>this.updateGrid()),this.connect(this.model.source.selected.change,()=>this.updateSelection()),this.connect(this.model.source.selected.properties.indices.change,()=>this.updateSelection())}_update_layout(){this.layout=new m.LayoutItem,this.layout.set_sizing(this.box_sizing())}update_position(){super.update_position(),this.grid.resizeCanvas()}updateGrid(){if(this.model.view.compute_indices(),this.data.init(this.model.source,this.model.view),this.model.sortable){const e=this.grid.getColumns(),t=this.grid.getSortColumns().map(t=>({sortCol:{field:e[this.grid.getColumnIndex(t.columnId)].field},sortAsc:t.sortAsc}));this.data.sort(t)}this.grid.invalidate(),this.grid.render()}updateSelection(){if(this._in_selection_update)return;const{selected:e}=this.model.source,t=e.indices.map(e=>this.data.index.indexOf(e)).sort();this._in_selection_update=!0,this.grid.setSelectedRows(t),this._in_selection_update=!1;const i=this.grid.getViewport(),s=this.model.get_scroll_index(i,t);null!=s&&this.grid.scrollRowToTop(s)}newIndexColumn(){return{id:a.uniqueId(),name:this.model.index_header,field:i.DTINDEX_NAME,width:this.model.index_width,behavior:"select",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:b.bk_cell_index,headerCssClass:b.bk_header_index}}css_classes(){return super.css_classes().concat(b.bk_data_table)}render(){let e,t=this.model.columns.map(e=>e.toColumn());if("checkbox"==this.model.selectable&&(e=new n.CheckboxSelectColumn({cssClass:b.bk_cell_select}),t.unshift(e.getColumnDefinition())),null!=this.model.index_position){const e=this.model.index_position,i=this.newIndexColumn();-1==e?t.push(i):e<-1?t.splice(e+1,0,i):t.splice(e,0,i)}let{reorderable:i}=this.model;!i||"undefined"!=typeof $&&null!=$.fn&&null!=$.fn.sortable||(this._warned_not_reorderable||(_.logger.warn("jquery-ui is required to enable DataTable.reorderable"),this._warned_not_reorderable=!0),i=!1);const s={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:i,forceFitColumns:this.model.fit_columns,multiColumnSort:this.model.sortable,editable:this.model.editable,autoEdit:!1,rowHeight:this.model.row_height};if(this.data=new w(this.model.source,this.model.view),this.grid=new r.Grid(this.el,this.data,t,s),this.grid.onSort.subscribe((e,i)=>{this.model.sortable&&(t=i.sortCols,this.data.sort(t),this.grid.invalidate(),this.updateSelection(),this.grid.render(),this.model.header_row||this._hide_header(),this.model.update_sort_columns(t))}),!1!==this.model.selectable){this.grid.setSelectionModel(new o.RowSelectionModel({selectActiveRow:null==e})),null!=e&&this.grid.registerPlugin(e);const t={dataItemColumnValueExtractor(e,t){let i=e[t.field];return h.isString(i)&&(i=i.replace(/\n/g,"\\n")),i},includeHeaderWhenCopying:!1};this.grid.registerPlugin(new l.CellExternalCopyManager(t)),this.grid.onSelectedRowsChanged.subscribe((e,t)=>{this._in_selection_update||(this.model.source.selected.indices=t.rows.map(e=>this.data.index[e]))}),this.updateSelection(),this.model.header_row||this._hide_header()}}_hide_header(){for(const e of Array.from(this.el.querySelectorAll(".slick-header-columns")))e.style.height="0px";this.grid.resizeCanvas()}}i.DataTableView=x,x.__name__="DataTableView";class f extends g.TableWidget{constructor(e){super(e),this._sort_columns=[]}get sort_columns(){return this._sort_columns}static init_DataTable(){this.prototype.default_view=x,this.define({columns:[d.Array,[]],fit_columns:[d.Boolean,!0],sortable:[d.Boolean,!0],reorderable:[d.Boolean,!0],editable:[d.Boolean,!1],selectable:[d.Any,!0],index_position:[d.Int,0],index_header:[d.String,"#"],index_width:[d.Int,40],scroll_to_selection:[d.Boolean,!0],header_row:[d.Boolean,!0],row_height:[d.Int,25]}),this.override({width:600,height:400})}update_sort_columns(e){return this._sort_columns=e.map(e=>({field:e.sortCol.field,sortAsc:e.sortAsc})),null}get_scroll_index(e,t){return this.scroll_to_selection&&0!=t.length?c.some(t,t=>e.top<=t&&t<=e.bottom)?null:Math.max(0,Math.min(…t)-1):null}}i.DataTable=f,f.__name__="DataTable",f.init_DataTable()},n 425: function _(e,t,n){var o=e(426),r=e(428);t.exports={RowSelectionModel:function(e){var t,n,l,i=[],c=this,u=new r.EventHandler,s={selectActiveRow:!0};function a(e){return function(){n||(n=!0,e.apply(this,arguments),n=!1)}}function f(e){for(var t=[],n=0;n<e.length;n++)for(var o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}function h(e){for(var n=[],o=t.getColumns().length-1,l=0;l<e.length;l++)n.push(new r.Range(e[l],0,e[l],o));return n}function w(){return f(i)}function g(e){(i&&0!==i.length||e&&0!==e.length)&&(i=e,c.onSelectedRangesChanged.notify(i))}function v(e,n){l.selectActiveRow&&null!=n.row&&g([new r.Range(n.row,0,n.row,t.getColumns().length-1)])}function p(e){var n=t.getActiveCell();if(t.getOptions().multiSelect&&n&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which==r.keyCode.UP||e.which==r.keyCode.DOWN)){var o=w();o.sort((function(e,t){return e-t})),o.length||(o=[n.row]);var l,i=o[0],c=o[o.length-1];if((l=e.which==r.keyCode.DOWN?n.row<c||i==c?++c:++i:n.row<c?–c:–i)>=0&&l<t.getDataLength())t.scrollRowIntoView(l),g(h(function(e,t){var n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}(i,c)));e.preventDefault(),e.stopPropagation()}}function y(e){var n=t.getCellFromEvent(e);if(!n||!t.canCellBeActive(n.row,n.cell))return!1;if(!t.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;var r=f(i),l=o.inArray(n.row,r);if(-1===l&&(e.ctrlKey||e.metaKey))r.push(n.row),t.setActiveCell(n.row,n.cell);else if(-1!==l&&(e.ctrlKey||e.metaKey))r=o.grep(r,(function(e,t){return e!==n.row})),t.setActiveCell(n.row,n.cell);else if(r.length&&e.shiftKey){var c=r.pop(),u=Math.min(n.row,c),s=Math.max(n.row,c);r=[];for(var a=u;a<=s;a++)a!==c&&r.push(a);r.push(c),t.setActiveCell(n.row,n.cell)}return g(h(r)),e.stopImmediatePropagation(),!0}o.extend(this,{getSelectedRows:w,setSelectedRows:function(e){g(h(e))},getSelectedRanges:function(){return i},setSelectedRanges:g,init:function(n){l=o.extend(!0,{},s,e),t=n,u.subscribe(t.onActiveCellChanged,a(v)),u.subscribe(t.onKeyDown,a(p)),u.subscribe(t.onClick,a(y))},destroy:function(){u.unsubscribeAll()},onSelectedRangesChanged:new r.Event})}}},n 426: function _(e,n,f){n.exports="undefined"!=typeof $?$:e(427)},n 427: function _(e,t,n){n /!n * jQuery JavaScript Library v3.4.1n * https://jquery.com/n n * Includes Sizzle.jsn * https://sizzlejs.com/n *n * Copyright JS Foundation and other contributorsn * Released under the MIT licensen * https://jquery.org/licensen *n * Date: 2019-05-01T21:04Zn */n !function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var i,o,a=(n=n||r).createElement("script");if(a.text=e,t)for(i in y)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,o);n.head.appendChild(a).parentNode.removeChild(a)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}b.fn=b.prototype={jquery:"3.4.1",constructor:b,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return b.each(this,e)},map:function(e){return this.pushStack(b.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},b.extend=b.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s–);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(b.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||b.isPlainObject(n)?n:{},i=!1,a[t]=b.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},b.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===d)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){m(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(w,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?b.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(T(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(b.fn[Symbol.iterator]=n[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var C=n /!n * Sizzle CSS Selector Engine v2.3.4n * https://sizzlejs.com/n n * Copyright JS Foundation and other contributorsn * Released under the MIT licensen * https://js.foundation/n *n * Date: 2019-04-08n */n function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ue(),k=ue(),S=ue(),N=ue(),A=function(e,t){return e===t&&(f=!0),0},D={}.hasOwnProperty,j=[],q=j.pop,L=j.push,H=j.push,O=j.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:’((?:\\\\.|[^\\\\’]))’|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+I+\"))|)"+M+"\\]",$=":("+I+")(?:\\(((‘((?:\\\\.|[^\\\\’]))’|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+","+M+""),z=new RegExp("^"+M+"([>+~]|"+M+")"+M+""),U=new RegExp(M+"|>\"),X=new RegExp($),V=new RegExp(\"^\"+I+\"$\"),G={ID:new RegExp(\"^#(\"+I+\")\"),CLASS:new RegExp(\"^\\\\.(\"+I+\")\"),TAG:new RegExp(\"^(\"+I+\"|[*])\"),ATTR:new RegExp(\"^\"+W),PSEUDO:new RegExp(\"^\"+$),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+M+\"*(even|odd|(([+-]|)(\\d*)n|)"+M+"(?:([+-]|)"+M+"*(\\d+)|))"+M+"\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d)"+M+"\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{H.apply(j=O.call(w.childNodes),w.childNodes),j[w.childNodes.length].nodeType}catch(e){H={apply:j.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=Z.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!N[e+" "]&&(!v||!v.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===T&&U.test(e)){for((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=b),s=(h=a(e)).length;s–;)h[s]="#"+c+" "+xe(h[s]);y=h.join(","),m=ee.test(e)&&ye(t.parentNode)||t}try{return H.apply(r,m.querySelectorAll(y)),r}catch(t){N(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|\"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return\"input\"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return(\"input\"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a–;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if(""===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){h.appendChild(e).innerHTML="<a id=’"+b+"’></a><select id=’"+b+"-\r\\’ msallowcapture=’’><option selected=’’></option></select>",e.querySelectorAll("[msallowcapture^=’’]").length&&v.push("[^$]="+M+"*(?:’’|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+").length||v.push(".#.+[+~]")})),ce((function(e){e.innerHTML="<a href=’’ disabled=’disabled’></a><select disabled=’disabled’><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll(",:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=m.call(e,""),m.call(e,"[s!=’’]:x"),y.push("!=",$)})),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?P(c,e)-P(c,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),n.matchesSelector&&g&&!N[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){N(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&D.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(A),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i–;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return""===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)\"))&&E(e,(function(e){return t.test(\"string\"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute(\"class\")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a–;)e[r=P(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s–;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;–r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i–;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le((function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:Te(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=Te(y,d),r(l,[],s,u),c=l.length;c–;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c–;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c–;)(f=y[c])&&(l=i?P(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else y=Te(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)}))}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=be((function(e){return e===t}),s,!0),f=be((function(e){return P(t,e)>-1}),s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[be(we(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Ce(u>1&&we(p),u>1&&xe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"":""})).replace(B,"$1"),n,u<i&&Ee(e.slice(u,i)),i<o&&Ee(e=e.slice(i)),i<o&&xe(e))}p.push(n)}return we(p)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=se.tokenize=function(e,t){var n,i,o,a,s,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=_.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):k(e,u).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n–;)(s=Ee(t[n]))[b]?i.push(s):o.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,v,y=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument===d||(p(f),s=!g);v=e[h++];)if(v(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!v&&f)&&y–,o&&x.push(f))}if(y+=m,n&&m!==y){for(h=0;v=t[h++];)v(x,b,a,s);if(o){if(y>0)for(;m–;)x[m]||b[m]||(b[m]=q.call(u));b=Te(b)}H.apply(u,b),c&&!o&&b.length>0&&y+t.length>1&&se.uniqueSort(u)}return c&&(T=E,l=w),x};return n?le(o):o}(o,i))).selector=e}return s},u=se.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=G.needsContext.test(e)?0:u.length;o–&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&xe(u)))return H.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split("").sort(A).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href=’#’></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);b.find=C,b.expr=C.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=C.uniqueSort,b.text=C.getText,b.isXMLDoc=C.isXML,b.contains=C.contains,b.escapeSelector=C.escape;var E=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&b(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=b.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return g(t)?b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?b.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?b.grep(e,(function(e){return u.call(t,e)>-1!==n})):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},b.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<r;t++)if(b.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,i[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&S.test(e)?b(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),A.test(i[1])&&b.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,j=b(r);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&b(e);if(!S.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?b.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(b(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(N(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},(function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),this.length>1&&(H[e]||b.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}}));var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(P)||[],(function(e,n){t[n]=!0})),t}(e):b.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){b.each(n,(function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&u()),this},remove:function(){return b.each(arguments,(function(e,t){for(var n;(n=b.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s–})),this},has:function(e){return e?b.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},b.extend({Deferred:function(t){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return b.Deferred((function(t){b.each(n,(function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,g(l)?i?l.call(e,a(o,n,R,i),a(o,n,M,i)):(o++,l.call(e,a(o,n,R,i),a(o,n,M,i),a(o,n,R,n.notifyWith))):(r!==R&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(r!==M&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(b.Deferred.getStackHook&&(c.stackTrace=b.Deferred.getStackHook()),e.setTimeout(c))}}return b.Deferred((function(e){n[0][3].add(a(0,e,g(i)?i:R,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:R)),n[2][3].add(a(0,e,g(r)?r:M))})).promise()},promise:function(e){return null!=e?b.extend(e,i):i}},o={};return b.each(n,(function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=b.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,–t||a.resolveWith(r,i)}};if(t<=1&&(I(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();for(;n–;)I(i[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},b.readyException=function(t){e.setTimeout((function(){throw t}))};var $=b.Deferred();function F(){r.removeEventListener("DOMContentLoaded",F),e.removeEventListener("load",F),b.ready()}b.fn.ready=function(e){return $.then(e).catch((function(e){b.readyException(e)})),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?–b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&–b.readyWait>0||$.resolveWith(r,[b]))}}),b.ready.then=$.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(b.ready):(r.addEventListener("DOMContentLoaded",F),e.addEventListener("load",F));var B=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)B(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(b(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=b.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;for(;n–;)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(n=a.length;n–;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Q.set(this,e)})):B(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))||void 0!==(n=Z(o,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r–),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){b.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:b.Callbacks("once memory").add((function(){Y.remove(e,[t+"queue",n])}))})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n–),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each((function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=b.Deferred(),o=this,a=this.length,s=function(){–r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a–;)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=r.documentElement,ie=function(e){return b.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===b.css(e,"display")},se=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},u=s(),l=n&&n[3]||(b.cssNumber[t]?"":"px"),c=e.nodeType&&(b.cssNumber[t]||"px"!==l&&+u)&&te.exec(b.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a–;)b.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,b.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var le={};function ce(e){var t,n=e.ownerDocument,r=e.nodeName,i=le[r];return i||(t=n.body.appendChild(n.createElement(r)),i=b.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),le[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Y.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ae(r)&&(i[o]=ce(r))):"none"!==n&&(i[o]="none",Y.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}b.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ae(this)?b(this).show():b(this).hide()}))}});var pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,"<select multiple=’multiple’>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||""):void 0!==e.querySelectorAll?e.querySelectorAll(t||""):[],void 0===t||t&&N(e,t)?b.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var me,xe,be=/<|&#?\\w+;/;function we(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if(\"object\"===x(o))b.merge(p,o.nodeType?[o]:o);else if(be.test(o)){for(a=a||f.appendChild(t.createElement(\"div\")),s=(de.exec(o)||[\"\",\"\"])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+b.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;b.merge(p,a.childNodes),(a=f.firstChild).textContent=\"\"}else p.push(t.createTextNode(o));for(f.textContent=\"\",d=0;o=p[d++];)if(r&&b.inArray(o,r)>-1)i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),\"script\"),l&&ye(a),n)for(c=0;o=a[c++];)he.test(o.type||"")&&n.push(o);return f}me=r.createDocumentFragment().appendChild(r.createElement("div")),(xe=r.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),me.appendChild(xe),h.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return b().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=b.guid++)),e.each((function(){b.event.add(this,t,i,r,n)}))}function De(e,t,n){n?(Y.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=Y.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),Y.set(this,t,a),r=n(this,t),this[t](),a!==(i=Y.get(this,t))||r?Y.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else a.length&&(Y.set(this,t,{value:b.event.trigger(b.extend(a[0],b.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,t)&&b.event.add(e,t,ke)}b.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&b.find.matchesSelector(re,i),n.guid||(n.guid=b.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(P)||[""]).length;l–;)d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=b.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=b.event.special[d]||{},c=b.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&b.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),b.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(P)||[""]).length;l–;)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=b.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o–;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&(""!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount–,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||b.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=b.event.fix(e),u=new Array(arguments.length),l=(Y.get(this,"events")||{})[s.type]||[],c=b.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=b.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((b.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?b(i,this).index(l)>-1:b.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&N(t,"input")&&De(t,"click",ke),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&N(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&N(t,"input")&&Y.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},(function(e,t){b.event.special[e]={setup:function(){return De(this,e,Ne),!1},trigger:function(){return De(this,e),!0},delegateType:t}})),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||b.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),b.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){b.event.remove(this,e,n,t)}))}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!(?:\[CDATA\[|–)|(?:\]\]|–)>\s*$/g;function Oe(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),a=Y.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)b.event.add(t,i,l[i][n]);Q.hasData(e)&&(s=Q.access(e),u=b.extend({},s),Q.set(t,u))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&pe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function We(e,t,n,r){t=a.apply([],t);var i,o,s,u,l,c,f=0,p=e.length,d=p-1,v=t[0],y=g(v);if(y||p>1&&"string"==typeof v&&!h.checkClone&&Le.test(v))return e.each((function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),We(o,t,n,r)}));if(p&&(o=(i=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=b.map(ve(i,"script"),Pe)).length;f<p;f++)l=i,f!==d&&(l=b.clone(l,!0,!0),u&&b.merge(s,ve(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,b.map(s,Re),f=0;f<u;f++)l=s[f],he.test(l.type||"")&&!Y.access(l,"globalEval")&&b.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?b._evalUrl&&!l.noModule&&b._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):m(l.textContent.replace(He,""),l,c))}return e}function $e(e,t,n){for(var r,i=t?b.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||b.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=ie(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(a=ve(s),r=0,i=(o=ve(e)).length;r<i;r++)Ie(o[r],a[r]);if(t)if(n)for(o=o||ve(e),a=a||ve(s),r=0,i=o.length;r<i;r++)Me(o[r],a[r]);else Me(e,s);return(a=ve(s,"script")).length>0&&ye(a,!u&&ve(e,"script")),s},cleanData:function(e){for(var t,n,r,i=b.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),b.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return B(this,(function(e){return void 0===e?b.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return B(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(b.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return We(this,arguments,(function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var n,r=[],i=b(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),b(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}}));var Fe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Be=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},_e=new RegExp(ne.join("|"),"i");function ze(e,t,n){var r,i,o,a,s=e.style;return(n=n||Be(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=b.style(e,t)),!h.pixelBoxStyles()&&Fe.test(a)&&_e.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",a=12===n(c.offsetWidth/3),re.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,a,s,u,l=r.createElement("div"),c=r.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,b.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))}();var Xe=["Webkit","Moz","ms"],Ve=r.createElement("div").style,Ge={};function Ye(e){var t=b.cssProps[e]||Ge[e];return t||(e in Ve?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n–;)if((e=Xe[n]+t)in Ve)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je=/^–/,Ke={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=b.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=b.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=b.css(e,"border"+ne[a]+"Width",!0,i))):(u+=b.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=b.css(e,"border"+ne[a]+"Width",!0,i):s+=b.css(e,"border"+ne[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function nt(e,t,n){var r=Be(e),i=(!h.boxSizingReliable()||n)&&"border-box"===b.css(e,"boxSizing",!1,r),o=i,a=ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===b.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===b.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+tt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Je.test(t),l=e.style;if(u||(t=Ye(s)),a=b.cssHooks[t]||b.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(b.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Je.test(t)||(t=Ye(s)),(a=b.cssHooks[t]||b.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in Ze&&(i=Ze[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):se(e,Ke,(function(){return nt(e,t,r)}))},set:function(e,n,r){var i,o=Be(e),a=!h.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===b.css(e,"boxSizing",!1,o),u=r?tt(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-tt(e,t,"border",!1,o)-.5)),u&&(i=te.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),et(0,n,u)}}})),b.cssHooks.marginLeft=Ue(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ne[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(b.cssHooks[e+t].set=et)})),b.fn.extend({css:function(e,t){return B(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Be(e),i=t.length;a<i;a++)o[t[a]]=b.css(e,t[a],!1,r);return o}return void 0!==n?b.style(e,t,n):b.css(e,t)}),e,t,arguments.length>1)}}),b.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=rt.prototype.init,b.fx.step={};var it,ot,at=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function ut(){ot&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ut):e.setTimeout(ut,b.fx.interval),b.fx.tick())}function lt(){return e.setTimeout((function(){it=void 0})),it=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function pt(e,t,n){var r,i,o=0,a=pt.prefilters.length,s=b.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=it||lt(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=b.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=pt.prefilters[o].call(l,e,c,l.opts))return g(r.stop)&&(b._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return b.map(c,ft,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}b.Animation=b.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=b._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued–,b.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],at.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||b.style(e,r)}if((u=!b.isEmptyObject(t))||!b.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=b.css(e,"display"))&&(l?c=l:(fe([e],!0),l=e.style.display||l,c=b.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===b.css(e,"float")&&(u||(p.done((function(){h.display=l})),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&fe([e],!0),p.done((function(){for(r in g||fe([e]),Y.remove(e,"fxshow"),d)b.style(e,r,d[r])}))),u=ft(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return b.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=pt(this,b.extend({},e),o);(i||Y.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=b.timers,a=Y.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&st.test(i)&&r(a[i]);for(i=o.length;i–;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Y.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t–;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),b.each(["toggle","show","hide"],(function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}})),b.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t–,1);n.length||b.fx.stop(),it=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){ot||(ot=!0,ut())},b.fx.stop=function(){ot=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,n){return t=b.fx&&b.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}}))},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var dt,ht=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return B(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))}}),b.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?b.prop(e,t,n):(1===o&&b.isXMLDoc(e)||(i=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=b.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||b.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}}));var gt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function yt(e){return(e.match(P)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}b.fn.extend({prop:function(e,t){return B(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))}}),b.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&b.isXMLDoc(e)||(t=b.propFix[t]||t,i=b.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each((function(t){b(this).addClass(e.call(this,t,mt(this)))}));if((t=xt(e)).length)for(;n=this[u++];)if(i=mt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each((function(t){b(this).removeClass(e.call(this,t,mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)for(;n=this[u++];)if(i=mt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){b(this).toggleClass(e.call(this,n,mt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=b(this),a=xt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;b.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,b(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=b.map(i,(function(e){return null==e?"":e+""}))),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=b.valHooks[i.type]||b.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:yt(b.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=b(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=b.makeArray(t),a=i.length;a–;)((r=i[a]).selected=b.inArray(b.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},h.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,y=[i||r],m=f.call(t,"type")?t.type:t,x=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!wt.test(m+b.event.triggered)&&(m.indexOf(".")>-1&&(x=m.split("."),m=x.shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[b.expando]?t:new b.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:b.makeArray(n,[t]),d=b.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!v(i)){for(l=d.delegateType||m,wt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)y.push(s),u=s;u===(i.ownerDocument||r)&&y.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=y[a++])&&!t.isPropagationStopped();)h=s,t.type=a>1?l:d.bindType||m,(p=(Y.get(s,"events")||{})[t.type]&&Y.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&V(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(y.pop(),n)||!V(i)||c&&g(i[m])&&!v(i)&&((u=i[c])&&(i[c]=null),b.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Tt),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Tt),b.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),h.focusin||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Y.access(r,t);i||r.addEventListener(e,n,!0),Y.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Y.access(r,t)-1;i?Y.access(r,t,i):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}}));var Ct=e.location,Et=Date.now(),kt=/\?/;b.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+t),n};var St=/\[\]$/,Nt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))b.each(t,(function(t,i){n||St.test(e)?r(e,i):jt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)jt(e+"["+i+"]",t[i],n,r)}b.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){i(this.name,this.value)}));else for(n in e)jt(n,e[n],t,i);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Dt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,(function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}})):{name:t.name,value:n.replace(Nt,"\r\n")}})).get()}});var qt=/%20/g,Lt=/#.*$/,Ht=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Rt=/^\/\//,Mt={},It={},Wt="*/".concat("*"),$t=r.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(P)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Bt(e,t,n,r){var i={},o=e===It;function a(s){var u;return i[s]=!0,b.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function _t(e,t){var n,r,i=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}$t.href=Ct.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_t(_t(e,b.ajaxSettings),t):_t(b.ajaxSettings,e)},ajaxPrefilter:Ft(Mt),ajaxTransport:Ft(It),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=b.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?b(g):b.event,y=b.Deferred(),m=b.Callbacks("once memory"),x=h.statusCode||{},w={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ot.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),k(0,t),this}};if(y.promise(E),h.url=((t||h.url||Ct.href)+"").replace(Rt,Ct.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=$t.protocol+"//"+$t.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=b.param(h.data,h.traditional)),Bt(Mt,h,n,E),c)return E;for(p in(f=b.event&&h.global)&&0==b.active++&&b.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pt.test(h.type),o=h.url.replace(Lt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(qt,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(kt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ht,"$1"),d=(kt.test(o)?"&":"?")+"_="+Et+++d),h.url=o+d),h.ifModified&&(b.lastModified[o]&&E.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&E.setRequestHeader("If-None-Match",b.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Wt+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),i=Bt(It,h,n,E)){if(E.readyState=1,f&&v.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(u=e.setTimeout((function(){E.abort("timeout")}),h.timeout));try{c=!1,i.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,r,s){var l,p,d,w,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,E,r)),w=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(h,w,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(b.etag[o]=T)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=w.state,p=w.data,l=!(d=w.error))):(d=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",l?y.resolveWith(g,[p,C,E]):y.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&v.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(v.trigger("ajaxComplete",[E,h]),–b.active||b.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],(function(e,t){b[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:i,data:n,success:r},b.isPlainObject(e)&&e))}})),b._evalUrl=function(e,t){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){b(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ut=b.ajaxSettings.xhr();h.cors=!!Ut&&"withCredentials"in Ut,h.ajax=Ut=!!Ut,b.ajaxTransport((function(t){var n,r;if(h.cors||Ut&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),b.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,Vt=[],Gt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||b.expando+"_"+Et++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Gt,"$1"+i):!1!==t.jsonp&&(t.url+=(kt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||b.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always((function(){void 0===o?b(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),h.createHTMLDocument=((Xt=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(i)):t=r),a=!n&&[],(o=A.exec(e))?[t.createElement(o[1])]:(o=we([e],t,a),a&&a.length&&b(a).remove(),b.merge([],o.childNodes)));var i,o,a},b.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&b.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=b.css(e,"position"),c=b(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=b.css(e,"top"),u=b.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),i.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-b.css(r,"marginTop",!0),left:t.left-i.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||re}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return B(this,(function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ue(h.pixelPosition,(function(e,n){if(n)return n=ze(e,t),Fe.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){b.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return B(this,(function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),b.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,""):this.off(t,e||"",n)}}),b.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||b.guid++,i},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=N,b.isFunction=g,b.isWindow=v,b.camelCase=X,b.type=x,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return b}));var Yt=e.jQuery,Qt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Qt),t&&e.jQuery===b&&(e.jQuery=Yt),b},t||(e.jQuery=e.$=b),b}))},n 428: function _(t,i,n){function o(){var t=!1,i=!1;this.stopPropagation=function(){t=!0},this.isPropagationStopped=function(){return t},this.stopImmediatePropagation=function(){i=!0},this.isImmediatePropagationStopped=function(){return i}}function e(){this.__nonDataRow=!0}function r(){this.__group=!0,this.level=0,this.count=0,this.value=null,this.title=null,this.collapsed=!1,this.selectChecked=!1,this.totals=null,this.rows=[],this.groups=null,this.groupingKey=null}function s(){this.__groupTotals=!0,this.group=null,this.initialized=!1}function l(){var t=null;this.isActive=function(i){return i?t===i:null!==t},this.activate=function(i){if(i!==t){if(null!==t)throw new Error("SlickGrid.EditorLock.activate: an editController is still active, can’t activate another editController");if(!i.commitCurrentEdit)throw new Error("SlickGrid.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!i.cancelCurrentEdit)throw new Error("SlickGrid.EditorLock.activate: editController must implement .cancelCurrentEdit()");t=i}},this.deactivate=function(i){if(t!==i)throw new Error("SlickGrid.EditorLock.deactivate: specified editController is not the currently active one");t=null},this.commitCurrentEdit=function(){return!t||t.commitCurrentEdit()},this.cancelCurrentEdit=function(){return!t||t.cancelCurrentEdit()}}r.prototype=new e,r.prototype.equals=function(t){return this.value===t.value&&this.count===t.count&&this.collapsed===t.collapsed&&this.title===t.title},s.prototype=new e,i.exports={Event:function(){var t=[];this.subscribe=function(i){t.push(i)},this.unsubscribe=function(i){for(var n=t.length-1;n>=0;n–)t[n]===i&&t.splice(n,1)},this.notify=function(i,n,e){var r;n=n||new o,e=e||this;for(var s=0;s<t.length&&!n.isPropagationStopped()&&!n.isImmediatePropagationStopped();s++)r=t[s].call(e,n,i);return r}},EventData:o,EventHandler:function(){var t=[];this.subscribe=function(i,n){return t.push({event:i,handler:n}),i.subscribe(n),this},this.unsubscribe=function(i,n){for(var o=t.length;o–;)if(t[o].event===i&&t[o].handler===n)return t.splice(o,1),void i.unsubscribe(n);return this},this.unsubscribeAll=function(){for(var i=t.length;i–;)t[i].event.unsubscribe(t[i].handler);return t=[],this}},Range:function(t,i,n,o){void 0===n&&void 0===o&&(n=t,o=i),this.fromRow=Math.min(t,n),this.fromCell=Math.min(i,o),this.toRow=Math.max(t,n),this.toCell=Math.max(i,o),this.isSingleRow=function(){return this.fromRow==this.toRow},this.isSingleCell=function(){return this.fromRow==this.toRow&&this.fromCell==this.toCell},this.contains=function(t,i){return t>=this.fromRow&&t<=this.toRow&&i>=this.fromCell&&i<=this.toCell},this.toString=function(){return this.isSingleCell()?"("+this.fromRow+":"+this.fromCell+")":"("+this.fromRow+":"+this.fromCell+" - "+this.toRow+":"+this.toCell+")"}},NonDataRow:e,Group:r,GroupTotals:s,EditorLock:l,GlobalEditorLock:new l,keyCode:{BACKSPACE:8,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,ESC:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38,C:67,V:86},preClickClassName:"slick-edit-preclick"}},n 429: function _(e,t,o){var l=e(426),c=e(428);t.exports={CheckboxSelectColumn:function(e){var t,o=g(),n=new c.EventHandler,i={},r=!1,d=l.extend(!0,{},{columnId:"_checkbox_selector",cssClass:null,hideSelectAllCheckbox:!1,toolTip:"Select/Deselect All",width:30,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0},e);function a(){t.updateColumnHeader(d.columnId,"","")}function s(){l("#filter-checkbox-selectall-container").hide()}function u(e,c){var n,a,s=t.getSelectedRows(),u={};for(a=0;a<s.length;a++)u[n=s[a]]=!0,u[n]!==i[n]&&(t.invalidateRow(n),delete i[n]);for(a in i)t.invalidateRow(a);(i=u,t.render(),r=s.length&&s.length==t.getDataLength(),d.hideInColumnTitleRow||d.hideSelectAllCheckbox||(r?t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’ checked=’checked’><label for=’header-selector"+o+"’></label>",d.toolTip):t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",d.toolTip)),d.hideInFilterHeaderRow)||l("#header-filter-selector"+o).prop("checked",r)}function h(e,o){32==e.which&&t.getColumns()[o.cell].id===d.columnId&&(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit()||p(o.row),e.preventDefault(),e.stopImmediatePropagation())}function f(e,o){if(t.getColumns()[o.cell].id===d.columnId&&l(e.target).is(":checkbox")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();p(o.row),e.stopPropagation(),e.stopImmediatePropagation()}}function p(e){i[e]?t.setSelectedRows(l.grep(t.getSelectedRows(),(function(t){return t!=e}))):t.setSelectedRows(t.getSelectedRows().concat(e)),t.setActiveCell(e,function(){if(null===m){m=0;for(var e=t.getColumns(),o=0;o<e.length;o++)e[o].id==d.columnId&&(m=o)}return m}()),t.focus()}function b(e,o){if(o.column.id==d.columnId&&l(e.target).is(":checkbox")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();if(l(e.target).is(":checked")){for(var c=[],n=0;n<t.getDataLength();n++)c.push(n);t.setSelectedRows(c)}else t.setSelectedRows([]);e.stopPropagation(),e.stopImmediatePropagation()}}var m=null;function g(){return Math.round(1e7*Math.random())}function k(e,t,o,l,c){var n=g()+e;return c?i[e]?"<input id=’selector"+n+"’ type=’checkbox’ checked=’checked’><label for=’selector"+n+"’></label>":"<input id=’selector"+n+"’ type=’checkbox’><label for=’selector"+n+"’></label>":null}l.extend(this,{init:function(e){t=e,n.subscribe(t.onSelectedRowsChanged,u).subscribe(t.onClick,f).subscribe(t.onKeyDown,h),d.hideInFilterHeaderRow||function(e){e.onHeaderRowCellRendered.subscribe((function(e,t){"sel"===t.column.field&&(l(t.node).empty(),l("<span id=’filter-checkbox-selectall-container’><input id=’header-filter-selector"+o+"’ type=’checkbox’><label for=’header-filter-selector"+o+"’></label></span>").appendTo(t.node).on("click",(function(e){b(e,t)})))}))}(e),d.hideInColumnTitleRow||n.subscribe(t.onHeaderClick,b)},destroy:function(){n.unsubscribeAll()},deSelectRows:function(e){var o,c=e.length,n=[];for(o=0;o<c;o++)i[e[o]]&&(n[n.length]=e[o]);t.setSelectedRows(l.grep(t.getSelectedRows(),(function(e){return n.indexOf(e)<0})))},selectRows:function(e){var o,l=e.length,c=[];for(o=0;o<l;o++)i[e[o]]||(c[c.length]=e[o]);t.setSelectedRows(t.getSelectedRows().concat(c))},getColumnDefinition:function(){return{id:d.columnId,name:d.hideSelectAllCheckbox||d.hideInColumnTitleRow?"":"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",toolTip:d.toolTip,field:"sel",width:d.width,resizable:!1,sortable:!1,cssClass:d.cssClass,hideSelectAllCheckbox:d.hideSelectAllCheckbox,formatter:k}},getOptions:function(){return d},setOptions:function(e){if((d=l.extend(!0,{},d,e)).hideSelectAllCheckbox)a(),s();else if(d.hideInColumnTitleRow?a():(r?t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’ checked=’checked’><label for=’header-selector"+o+"’></label>",d.toolTip):t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",d.toolTip),n.subscribe(t.onHeaderClick,b)),d.hideInFilterHeaderRow)s();else{var c=l("#filter-checkbox-selectall-container");c.show(),c.find(‘input[type="checkbox"]’).prop("checked",r)}}})}}},n 430: function _(e,t,o){var l=e(426),n=e(428),a=n.keyCode;t.exports={CellExternalCopyManager:function(e){var t,o,r=this,i=e||{},s=i.copiedCellStyleLayerKey||"copy-manager",u=i.copiedCellStyle||"copied",c=0,d=i.bodyElement||document.body,f=i.onCopyInit||null,h=i.onCopySuccess||null;function C(e){if(i.headerColumnValueExtractor){var t=i.headerColumnValueExtractor(e);if(t)return t}return e.name}function m(e,o,n){if(i.dataItemColumnValueExtractor){var a=i.dataItemColumnValueExtractor(e,o);if(a)return a}var r="";if(o.editor){var s={container:l("<p>"),column:o,position:{top:0,left:0},grid:t,event:n},u=new o.editor(s);u.loadValue(e),r=u.serializeValue(),u.destroy()}else r=e[o.field];return r}function g(e,o,n){if(i.dataItemColumnValueSetter)return i.dataItemColumnValueSetter(e,o,n);if(o.editor){var a={container:l("body"),column:o,position:{top:0,left:0},grid:t},r=new o.editor(a);r.loadValue(e),r.applyValue(e,n),r.destroy()}else e[o.field]=n}function p(e){var t=document.createElement("textarea");return t.style.position="absolute",t.style.left="-1000px",t.style.top=document.body.scrollTop+"px",t.value=e,d.appendChild(t),t.select(),t}function y(e,l){var n;if(!t.getEditorLock().isActive()||t.getOptions().autoEdit){if(e.which==a.ESC&&o&&(e.preventDefault(),w(),r.onCopyCancelled.notify({ranges:o}),o=null),(e.which===a.C||e.which===a.INSERT)&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&(f&&f.call(),0!=(n=t.getSelectionModel().getSelectedRanges()).length)){o=n,v(n),r.onCopyCells.notify({ranges:n});for(var s=t.getColumns(),u="",c=0;c<n.length;c++){for(var y=n[c],D=[],S=y.fromRow;S<y.toRow+1;S++){var R=[],x=t.getDataItem(S);if(""==D&&i.includeHeaderWhenCopying){for(var V=[],E=y.fromCell;E<y.toCell+1;E++)s[E].name.length>0&&V.push(C(s[E]));D.push(V.join("\t"))}for(E=y.fromCell;E<y.toCell+1;E++)R.push(m(x,s[E],e));D.push(R.join("\t"))}u+=D.join("\r\n")+"\r\n"}if(window.clipboardData)return window.clipboardData.setData("Text",u),!0;var b=document.activeElement;if((M=p(u)).focus(),setTimeout((function(){d.removeChild(M),b?b.focus():console.log("Not element to restore focus to after copy?")}),100),h){var I=0;I=1===n.length?n[0].toRow+1-n[0].fromRow:n.length,h.call(this,I)}return!1}if(!i.readOnlyMode&&(e.which===a.V&&(e.ctrlKey||e.metaKey)&&!e.shiftKey||e.which===a.INSERT&&e.shiftKey&&!e.ctrlKey)){var M=p("");return setTimeout((function(){!function(e,t){var o=e.getColumns(),l=t.value.split(/[\n\f\r]/);""==l[l.length-1]&&l.pop();var n=[],a=0;d.removeChild(t);for(var s=0;s<l.length;s++)""!=l[s]?n[a++]=l[s].split("\t"):n[s]=[""];var u=e.getActiveCell(),c=e.getSelectionModel().getSelectedRanges(),f=c&&c.length?c[0]:null,h=null,C=null;if(f)h=f.fromRow,C=f.fromCell;else{if(!u)return;h=u.row,C=u.cell}var m=!1,p=n.length,y=n.length?n[0].length:0;1==n.length&&1==n[0].length&&f&&(m=!0,p=f.toRow-f.fromRow+1,y=f.toCell-f.fromCell+1);var w=e.getData().length-h,D=0;if(w<p&&i.newRowCreator){var S=e.getData();for(D=1;D<=p-w;D++)S.push({});e.setData(S),e.render()}var R=h+p>e.getDataLength();if(i.newRowCreator&&R){var x=h+p-e.getDataLength();i.newRowCreator(x)}var V={isClipboardCommand:!0,clippedRange:n,oldValues:[],cellExternalCopyManager:r,_options:i,setDataItemValueForColumn:g,markCopySelection:v,oneCellToMultiple:m,activeRow:h,activeCell:C,destH:p,destW:y,maxDestY:e.getDataLength(),maxDestX:e.getColumns().length,h:0,w:0,execute:function(){this.h=0;for(var t=0;t<this.destH;t++){this.oldValues[t]=[],this.w=0,this.h++;for(var l=0;l<this.destW;l++){this.w++;var a=h+t,r=C+l;if(a<this.maxDestY&&r<this.maxDestX){e.getCellNode(a,r);var i=e.getDataItem(a);this.oldValues[t][l]=i[o[r].field],m?this.setDataItemValueForColumn(i,o[r],n[0][0]):this.setDataItemValueForColumn(i,o[r],n[t]?n[t][l]:""),e.updateCell(a,r),e.onCellChange.notify({row:a,cell:r,item:i,grid:e})}}}var s={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};this.markCopySelection([s]),e.getSelectionModel().setSelectedRanges([s]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[s]})},undo:function(){for(var t=0;t<this.destH;t++)for(var l=0;l<this.destW;l++){var n=h+t,a=C+l;if(n<this.maxDestY&&a<this.maxDestX){e.getCellNode(n,a);var r=e.getDataItem(n);m?this.setDataItemValueForColumn(r,o[a],this.oldValues[0][0]):this.setDataItemValueForColumn(r,o[a],this.oldValues[t][l]),e.updateCell(n,a),e.onCellChange.notify({row:n,cell:a,item:r,grid:e})}}var i={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};if(this.markCopySelection([i]),e.getSelectionModel().setSelectedRanges([i]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[i]}),D>1){for(var s=e.getData();D>1;D–)s.splice(s.length-1,1);e.setData(s),e.render()}}};i.clipboardCommandHandler?i.clipboardCommandHandler(V):V.execute()}(t,M)}),100),!1}}}function v(e){w();for(var o=t.getColumns(),l={},n=0;n<e.length;n++)for(var a=e[n].fromRow;a<=e[n].toRow;a++){l[a]={};for(var i=e[n].fromCell;i<=e[n].toCell&&i<o.length;i++)l[a][o[i].id]=u}t.setCellCssStyles(s,l),clearTimeout(c),c=setTimeout((function(){r.clearCopySelection()}),2e3)}function w(){t.removeCellCssStyles(s)}l.extend(this,{init:function(e){(t=e).onKeyDown.subscribe(y);var o=e.getSelectionModel();if(!o)throw new Error("Selection model is mandatory for this plugin. Please set a selection model on the grid before adding this plugin: grid.setSelectionModel(new Slick.CellSelectionModel())");o.onSelectedRangesChanged.subscribe((function(e,o){t.focus()}))},destroy:function(){t.onKeyDown.unsubscribe(y)},clearCopySelection:w,handleKeyDown:y,onCopyCells:new n.Event,onCopyCancelled:new n.Event,onPasteCells:new n.Event,setIncludeHeaderWhenCopying:function(e){i.includeHeaderWhenCopying=e}})}}},n 431: function _(r,t,o){var _=r(1);_.__exportStar(r(428),t.exports),_.__exportStar(r(432),t.exports),_.__exportStar(r(435),t.exports),_.__exportStar(r(436),t.exports),_.__exportStar(r(437),t.exports),_.__exportStar(r(438),t.exports),_.__exportStar(r(439),t.exports)},n 432: function _(require,module,exports){n /n * @licensen * (c) 2009-2016 Michael Leibmann * michael{dot}leibman{at}gmail{dot}comn * http://github.com/mleibman/slickgridn n * Distributed under MIT license.n * All rights reserved.n *n * SlickGrid v2.3n *n * NOTES:n * Cell/row DOM manipulations are done directly bypassing jQuery’s DOM manipulation methods.n * This increases the speed dramatically, but can only be done safely because there are no event handlersn * or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()n * and do proper cleanup.n */n var $=require(426),Slick=require(428),scrollbarDimensions,maxSupportedCssHeight;function SlickGrid(container,data,columns,options){$.fn.drag||require(433),$.fn.drop||require(434);var defaults={alwaysShowVerticalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,autoHeight:!1,editorLock:Slick.GlobalEditorLock,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,showPreHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",selectedCellCssClass:"selected",multiSelect:!0,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,showCellSelection:!0,viewportClass:null,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1},columnDefaults={name:"",resizable:!0,sortable:!1,minWidth:30,rerenderOnResize:!1,headerCssClass:null,defaultSortAsc:!0,focusable:!0,selectable:!0},th,h,ph,n,cj,page=0,offset=0,vScrollDir=1,initialized=!1,$container,uid="slickgrid_"+Math.round(1e6*Math.random()),self=this,$focusSink,$focusSink2,$headerScroller,$headers,$headerRow,$headerRowScroller,$headerRowSpacer,$footerRow,$footerRowScroller,$footerRowSpacer,$preHeaderPanel,$preHeaderPanelScroller,$preHeaderPanelSpacer,$topPanelScroller,$topPanel,$viewport,$canvas,$style,$boundAncestors,stylesheet,columnCssRulesL,columnCssRulesR,viewportH,viewportW,canvasWidth,viewportHasHScroll,viewportHasVScroll,headerColumnWidthDiff=0,headerColumnHeightDiff=0,cellWidthDiff=0,cellHeightDiff=0,jQueryNewWidthBehaviour=!1,absoluteColumnMinWidth,tabbingDirection=1,activePosX,activeRow,activeCell,activeCellNode=null,currentEditor=null,serializedEditorValue,editController,rowsCache={},renderedRows=0,numVisibleRows,prevScrollTop=0,scrollTop=0,lastRenderedScrollTop=0,lastRenderedScrollLeft=0,prevScrollLeft=0,scrollLeft=0,selectionModel,selectedRows=[],plugins=[],cellCssClasses={},columnsById={},sortColumns=[],columnPosLeft=[],columnPosRight=[],pagingActive=!1,pagingIsLastPage=!1,scrollThrottle=ActionThrottle(render,50),h_editorLoader=null,h_render=null,h_postrender=null,h_postrenderCleanup=null,postProcessedRows={},postProcessToRow=null,postProcessFromRow=null,postProcessedCleanupQueue=[],postProcessgroupId=0,counter_rows_rendered=0,counter_rows_removed=0,rowNodeFromLastMouseWheelEvent,zombieRowNodeFromLastMouseWheelEvent,zombieRowCacheFromLastMouseWheelEvent,zombieRowPostProcessedFromLastMouseWheelEvent,cssShow={position:"absolute",visibility:"hidden",display:"block"},$hiddenParents,oldProps=[],columnResizeDragging=!1;function init(){if(($container=container instanceof $?container:$(container)).length<1)throw new Error("SlickGrid requires a valid container, "+container+" does not exist in the DOM.");cacheCssForHiddenInit(),maxSupportedCssHeight=maxSupportedCssHeight||getMaxSupportedCssHeight(),options=$.extend({},defaults,options),validateAndEnforceOptions(),columnDefaults.width=options.defaultColumnWidth,columnsById={};for(var e=0;e<columns.length;e++){var o=columns[e]=$.extend({},columnDefaults,columns[e]);columnsById[o.id]=e,o.minWidth&&o.width<o.minWidth&&(o.width=o.minWidth),o.maxWidth&&o.width>o.maxWidth&&(o.width=o.maxWidth)}if(options.enableColumnReorder&&!$.fn.sortable)throw new Error("SlickGrid’s ‘enableColumnReorder = true’ option requires jquery-ui.sortable module to be loaded");editController={commitCurrentEdit,cancelCurrentEdit},$container.empty().css("overflow","hidden").css("outline",0).addClass(uid).addClass("ui-widget"),/relative|absolute|fixed/.test($container.css("position"))||$container.css("position","relative"),$focusSink=$("<div tabIndex=’0’ hideFocus style=’position:fixed;width:0;height:0;top:0;left:0;outline:0;’></div>").appendTo($container),options.createPreHeaderPanel&&($preHeaderPanelScroller=$("<div class=’slick-preheader-panel ui-state-default’ style=’overflow:hidden;position:relative;’ />").appendTo($container),$preHeaderPanel=$("<div />").appendTo($preHeaderPanelScroller),$preHeaderPanelSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").appendTo($preHeaderPanelScroller),options.showPreHeaderPanel||$preHeaderPanelScroller.hide()),$headerScroller=$("<div class=’slick-header ui-state-default’ />").appendTo($container),$headers=$("<div class=’slick-header-columns’ style=’left:-1000px’ />").appendTo($headerScroller),$headerRowScroller=$("<div class=’slick-headerrow ui-state-default’ />").appendTo($container),$headerRow=$("<div class=’slick-headerrow-columns’ />").appendTo($headerRowScroller),$headerRowSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").appendTo($headerRowScroller),$topPanelScroller=$("<div class=’slick-top-panel-scroller ui-state-default’ />").appendTo($container),$topPanel=$("<div class=’slick-top-panel’ style=’width:10000px’ />").appendTo($topPanelScroller),options.showTopPanel||$topPanelScroller.hide(),options.showHeaderRow||$headerRowScroller.hide(),($viewport=$("<div class=’slick-viewport’ style=’width:100%;overflow:auto;outline:0;position:relative;;’>").appendTo($container)).css("overflow-y",options.alwaysShowVerticalScroll?"scroll":options.autoHeight?"hidden":"auto"),$viewport.css("overflow-x",options.forceFitColumns?"hidden":"auto"),options.viewportClass&&$viewport.toggleClass(options.viewportClass,!0),$canvas=$("<div class=’grid-canvas’ />").appendTo($viewport),scrollbarDimensions=scrollbarDimensions||measureScrollbar(),$preHeaderPanelSpacer&&$preHeaderPanelSpacer.css("width",getCanvasWidth()+scrollbarDimensions.width+"px"),$headers.width(getHeadersWidth()),$headerRowSpacer.css("width",getCanvasWidth()+scrollbarDimensions.width+"px"),options.createFooterRow&&($footerRowScroller=$("<div class=’slick-footerrow ui-state-default’ />").appendTo($container),$footerRow=$("<div class=’slick-footerrow-columns’ />").appendTo($footerRowScroller),$footerRowSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").css("width",getCanvasWidth()+scrollbarDimensions.width+"px").appendTo($footerRowScroller),options.showFooterRow||$footerRowScroller.hide()),$focusSink2=$focusSink.clone().appendTo($container),options.explicitInitialization||finishInitialization()}function finishInitialization(){initialized||(initialized=!0,viewportW=parseFloat($.css($container[0],"width",!0)),measureCellPaddingAndBorder(),disableSelection($headers),options.enableTextSelectionOnCells||$viewport.on("selectstart.ui",(function(e){return $(e.target).is("input,textarea")})),updateColumnCaches(),createColumnHeaders(),setupColumnSort(),createCssRules(),resizeCanvas(),bindAncestorScrollEvents(),$container.on("resize.slickgrid",resizeCanvas),$viewport.on("scroll",handleScroll),$headerScroller.on("contextmenu",handleHeaderContextMenu).on("click",handleHeaderClick).on("mouseenter",".slick-header-column",handleHeaderMouseEnter).on("mouseleave",".slick-header-column",handleHeaderMouseLeave),$headerRowScroller.on("scroll",handleHeaderRowScroll),options.createFooterRow&&$footerRowScroller.on("scroll",handleFooterRowScroll),options.createPreHeaderPanel&&$preHeaderPanelScroller.on("scroll",handlePreHeaderPanelScroll),$focusSink.add($focusSink2).on("keydown",handleKeyDown),$canvas.on("keydown",handleKeyDown).on("click",handleClick).on("dblclick",handleDblClick).on("contextmenu",handleContextMenu).on("draginit",handleDragInit).on("dragstart",{distance:3},handleDragStart).on("drag",handleDrag).on("dragend",handleDragEnd).on("mouseenter",".slick-cell",handleMouseEnter).on("mouseleave",".slick-cell",handleMouseLeave),navigator.userAgent.toLowerCase().match(/webkit/)&&navigator.userAgent.toLowerCase().match(/macintosh/)&&$canvas.on("mousewheel",handleMouseWheel),restoreCssFromHiddenInit())}function cacheCssForHiddenInit(){($hiddenParents=$container.parents().addBack().not(":visible")).each((function(){var e={};for(var o in cssShow)e[o]=this.style[o],this.style[o]=cssShow[o];oldProps.push(e)}))}function restoreCssFromHiddenInit(){$hiddenParents.each((function(e){var o=oldProps[e];for(var t in cssShow)this.style[t]=o[t]}))}function registerPlugin(e){plugins.unshift(e),e.init(self)}function unregisterPlugin(e){for(var o=plugins.length;o>=0;o–)if(plugins[o]===e){plugins[o].destroy&&plugins[o].destroy(),plugins.splice(o,1);break}}function setSelectionModel(e){selectionModel&&(selectionModel.onSelectedRangesChanged.unsubscribe(handleSelectedRangesChanged),selectionModel.destroy&&selectionModel.destroy()),(selectionModel=e)&&(selectionModel.init(self),selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged))}function getSelectionModel(){return selectionModel}function getCanvasNode(){return $canvas[0]}function measureScrollbar(){var e=$(‘<div class="’+$viewport.className+’" style="position:absolute; top:-10000px; left:-10000px; overflow:auto; width:100px; height:100px;"></div>’).appendTo($viewport),o=$(‘<div style="width:200px; height:200px; overflow:auto;"></div>’).appendTo(e),t={width:e[0].offsetWidth-e[0].clientWidth,height:e[0].offsetHeight-e[0].clientHeight};return o.remove(),e.remove(),t}function getColumnTotalWidth(e){for(var o=0,t=0,l=columns.length;t<l;t++){o+=columns[t].width}return e&&(o+=scrollbarDimensions.width),o}function getHeadersWidth(){var e=getColumnTotalWidth(!options.autoHeight);return Math.max(e,viewportW)+1e3}function getCanvasWidth(){for(var e=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,o=0,t=columns.length;t–;)o+=columns[t].width;return options.fullWidthRows?Math.max(o,e):o}function updateCanvasWidth(e){var o=canvasWidth;(canvasWidth=getCanvasWidth())!=o&&($canvas.width(canvasWidth),$headerRow.width(canvasWidth),options.createFooterRow&&$footerRow.width(canvasWidth),options.createPreHeaderPanel&&$preHeaderPanel.width(canvasWidth),$headers.width(getHeadersWidth()),viewportHasHScroll=canvasWidth>viewportW-scrollbarDimensions.width);var t=canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0);$headerRowSpacer.width(t),options.createFooterRow&&$footerRowSpacer.width(t),options.createPreHeaderPanel&&$preHeaderPanelSpacer.width(t),(canvasWidth!=o||e)&&applyColumnWidths()}function disableSelection(e){e&&e.jquery&&e.attr("unselectable","on").css("MozUserSelect","none").on("selectstart.ui",(function(){return!1}))}function getMaxSupportedCssHeight(){for(var e=1e6,o=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,t=$("<div style=’display:none’ />").appendTo(document.body);;){var l=2*e;if(t.css("height",l),l>o||t.height()!==l)break;e=l}return t.remove(),e}function getUID(){return uid}function getHeaderColumnWidthDiff(){return headerColumnWidthDiff}function getScrollbarDimensions(){return scrollbarDimensions}function bindAncestorScrollEvents(){for(var e=$canvas[0];(e=e.parentNode)!=document.body&&null!=e;)if(e==$viewport[0]||e.scrollWidth!=e.clientWidth||e.scrollHeight!=e.clientHeight){var o=$(e);$boundAncestors=$boundAncestors?$boundAncestors.add(o):o,o.on("scroll."+uid,handleActiveCellPositionChange)}}function unbindAncestorScrollEvents(){$boundAncestors&&($boundAncestors.off("scroll."+uid),$boundAncestors=null)}function updateColumnHeader(e,o,t){if(initialized){var l=getColumnIndex(e);if(null!=l){var n=columns[l],r=$headers.children().eq(l);r&&(void 0!==o&&(columns[l].name=o),void 0!==t&&(columns[l].toolTip=t),trigger(self.onBeforeHeaderCellDestroy,{node:r[0],column:n,grid:self}),r.attr("title",t||"").children().eq(0).html(o),trigger(self.onHeaderCellRendered,{node:r[0],column:n,grid:self}))}}}function getHeader(){return $headers[0]}function getHeaderColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$headers.children().eq(o);return t&&t[0]}function getHeaderRow(){return $headerRow[0]}function getFooterRow(){return $footerRow[0]}function getPreHeaderPanel(){return $preHeaderPanel[0]}function getHeaderRowColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$headerRow.children().eq(o);return t&&t[0]}function getFooterRowColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$footerRow.children().eq(o);return t&&t[0]}function createColumnHeaders(){function e(){$(this).addClass("ui-state-hover")}function o(){$(this).removeClass("ui-state-hover")}$headers.find(".slick-header-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeHeaderCellDestroy,{node:this,column:e,grid:self})})),$headers.empty(),$headers.width(getHeadersWidth()),$headerRow.find(".slick-headerrow-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeHeaderRowCellDestroy,{node:this,column:e,grid:self})})),$headerRow.empty(),options.createFooterRow&&($footerRow.find(".slick-footerrow-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeFooterRowCellDestroy,{node:this,column:e})})),$footerRow.empty());for(var t=0;t<columns.length;t++){var l=columns[t],n=$("<div class=’ui-state-default slick-header-column’ />").html("<span class=’slick-column-name’>"+l.name+"</span>").width(l.width-headerColumnWidthDiff).attr("id",""+uid+l.id).attr("title",l.toolTip||"").data("column",l).addClass(l.headerCssClass||"").appendTo($headers);if((options.enableColumnReorder||l.sortable)&&n.on("mouseenter",e).on("mouseleave",o),l.sortable&&(n.addClass("slick-header-sortable"),n.append("<span class=’slick-sort-indicator"+(options.numberedMultiColumnSort&&!options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":"")+"’ />"),options.numberedMultiColumnSort&&options.sortColNumberInSeparateSpan&&n.append("<span class=’slick-sort-indicator-numbered’ />")),trigger(self.onHeaderCellRendered,{node:n[0],column:l,grid:self}),options.showHeaderRow){var r=$("<div class=’ui-state-default slick-headerrow-column l"+t+" r"+t+"’></div>").data("column",l).appendTo($headerRow);trigger(self.onHeaderRowCellRendered,{node:r[0],column:l,grid:self})}if(options.createFooterRow&&options.showFooterRow){var i=$("<div class=’ui-state-default slick-footerrow-column l"+t+" r"+t+"’></div>").data("column",l).appendTo($footerRow);trigger(self.onFooterRowCellRendered,{node:i[0],column:l})}}setSortColumns(sortColumns),setupColumnResize(),options.enableColumnReorder&&("function"==typeof options.enableColumnReorder?options.enableColumnReorder(self,$headers,headerColumnWidthDiff,setColumns,setupColumnResize,columns,getColumnIndex,uid,trigger):setupColumnReorder())}function setupColumnSort(){$headers.click((function(e){if(!columnResizeDragging&&(e.metaKey=e.metaKey||e.ctrlKey,!$(e.target).hasClass("slick-resizable-handle"))){var o=$(e.target).closest(".slick-header-column");if(o.length){var t=o.data("column");if(t.sortable){if(!getEditorLock().commitCurrentEdit())return;for(var l=null,n=0;n<sortColumns.length;n++)if(sortColumns[n].columnId==t.id){(l=sortColumns[n]).sortAsc=!l.sortAsc;break}var r=!!l;options.tristateMultiColumnSort?(l||(l={columnId:t.id,sortAsc:t.defaultSortAsc}),r&&l.sortAsc&&(sortColumns.splice(n,1),l=null),options.multiColumnSort||(sortColumns=[]),!l||r&&options.multiColumnSort||sortColumns.push(l)):e.metaKey&&options.multiColumnSort?l&&sortColumns.splice(n,1):((e.shiftKey||e.metaKey)&&options.multiColumnSort||(sortColumns=[]),l?0==sortColumns.length&&sortColumns.push(l):(l={columnId:t.id,sortAsc:t.defaultSortAsc},sortColumns.push(l))),setSortColumns(sortColumns),options.multiColumnSort?trigger(self.onSort,{multiColumnSort:!0,sortCols:$.map(sortColumns,(function(e){return{sortCol:columns[getColumnIndex(e.columnId)],sortAsc:e.sortAsc}}))},e):trigger(self.onSort,{multiColumnSort:!1,sortCol:sortColumns.length>0?t:null,sortAsc:!(sortColumns.length>0)||sortColumns[0].sortAsc},e)}}}}))}function setupColumnReorder(){$headers.filter(":ui-sortable").sortable("destroy"),$headers.sortable({containment:"parent",distance:3,axis:"x",cursor:"default",tolerance:"intersection",helper:"clone",placeholder:"slick-sortable-placeholder ui-state-default slick-header-column",start:function(e,o){o.placeholder.width(o.helper.outerWidth()-headerColumnWidthDiff),$(o.helper).addClass("slick-header-column-active")},beforeStop:function(e,o){$(o.helper).removeClass("slick-header-column-active")},stop:function(e){if(getEditorLock().commitCurrentEdit()){for(var o=$headers.sortable("toArray"),t=[],l=0;l<o.length;l++)t.push(columns[getColumnIndex(o[l].replace(uid,""))]);setColumns(t),trigger(self.onColumnsReordered,{}),e.stopPropagation(),setupColumnResize()}else $(this).sortable("cancel")}})}function setupColumnResize(){var e,o,t,l,n,r,i,s;(l=$headers.children()).find(".slick-resizable-handle").remove(),l.each((function(e,o){e>=columns.length||columns[e].resizable&&(void 0===i&&(i=e),s=e)})),void 0!==i&&l.each((function(a,c){a>=columns.length||a<i||options.forceFitColumns&&a>=s||($(c),$("<div class=’slick-resizable-handle’ />").appendTo(c).on("dragstart",(function(i,s){if(!getEditorLock().commitCurrentEdit())return!1;t=i.pageX,$(this).parent().addClass("slick-header-column-active");var c=null,d=null;if(l.each((function(e,o){e>=columns.length||(columns[e].previousWidth=$(o).outerWidth())})),options.forceFitColumns)for(c=0,d=0,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(null!==d&&(o.maxWidth?d+=o.maxWidth-o.previousWidth:d=null),c+=o.previousWidth-Math.max(o.minWidth||0,absoluteColumnMinWidth));var u=0,h=0;for(e=0;e<=a;e++)(o=columns[e]).resizable&&(null!==h&&(o.maxWidth?h+=o.maxWidth-o.previousWidth:h=null),u+=o.previousWidth-Math.max(o.minWidth||0,absoluteColumnMinWidth));null===c&&(c=1e5),null===u&&(u=1e5),null===d&&(d=1e5),null===h&&(h=1e5),r=t+Math.min(c,h),n=t-Math.min(u,d)})).on("drag",(function(l,i){columnResizeDragging=!0;var s,c,d=Math.min(r,Math.max(n,l.pageX))-t;if(d<0){for(c=d,e=a;e>=0;e–)(o=columns[e]).resizable&&(s=Math.max(o.minWidth||0,absoluteColumnMinWidth),c&&o.previousWidth+c<s?(c+=o.previousWidth-s,o.width=s):(o.width=o.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-d,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(c&&o.maxWidth&&o.maxWidth-o.previousWidth<c?(c-=o.maxWidth-o.previousWidth,o.width=o.maxWidth):(o.width=o.previousWidth+c,c=0))}else{for(c=d,e=a;e>=0;e–)(o=columns[e]).resizable&&(c&&o.maxWidth&&o.maxWidth-o.previousWidth<c?(c-=o.maxWidth-o.previousWidth,o.width=o.maxWidth):(o.width=o.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-d,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(s=Math.max(o.minWidth||0,absoluteColumnMinWidth),c&&o.previousWidth+c<s?(c+=o.previousWidth-s,o.width=s):(o.width=o.previousWidth+c,c=0))}applyColumnHeaderWidths(),options.syncColumnCellResize&&applyColumnWidths()})).on("dragend",(function(t,n){var r;for($(this).parent().removeClass("slick-header-column-active"),e=0;e<columns.length;e++)o=columns[e],r=$(l[e]).outerWidth(),o.previousWidth!==r&&o.rerenderOnResize&&invalidateAllRows();updateCanvasWidth(!0),render(),trigger(self.onColumnsResized,{}),setTimeout((function(){columnResizeDragging=!1}),300)})))}))}function getVBoxDelta(e){var o=0;return $.each(["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],(function(t,l){o+=parseFloat(e.css(l))||0})),o}function measureCellPaddingAndBorder(){var e,o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=$.fn.jquery.split(".");jQueryNewWidthBehaviour=1==l[0]&&l[1]>=8||l[0]>=2,e=$("<div class=’ui-state-default slick-header-column’ style=’visibility:hidden’>-</div>").appendTo($headers),headerColumnWidthDiff=headerColumnHeightDiff=0,"border-box"!=e.css("box-sizing")&&"border-box"!=e.css("-moz-box-sizing")&&"border-box"!=e.css("-webkit-box-sizing")&&($.each(o,(function(o,t){headerColumnWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){headerColumnHeightDiff+=parseFloat(e.css(t))||0}))),e.remove();var n=$("<div class=’slick-row’ />").appendTo($canvas);e=$("<div class=’slick-cell’ id=’’ style=’visibility:hidden’>-</div>").appendTo(n),cellWidthDiff=cellHeightDiff=0,"border-box"!=e.css("box-sizing")&&"border-box"!=e.css("-moz-box-sizing")&&"border-box"!=e.css("-webkit-box-sizing")&&($.each(o,(function(o,t){cellWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){cellHeightDiff+=parseFloat(e.css(t))||0}))),n.remove(),absoluteColumnMinWidth=Math.max(headerColumnWidthDiff,cellWidthDiff)}function createCssRules(){$style=$("<style type=’text/css’ rel=’stylesheet’ />").appendTo($("head"));for(var e=options.rowHeight-cellHeightDiff,o=["."+uid+" .slick-header-column { left: 1000px; }","."+uid+" .slick-top-panel { height:"+options.topPanelHeight+"px; }","."+uid+" .slick-preheader-panel { height:"+options.preHeaderPanelHeight+"px; }","."+uid+" .slick-headerrow-columns { height:"+options.headerRowHeight+"px; }","."+uid+" .slick-footerrow-columns { height:"+options.footerRowHeight+"px; }","."+uid+" .slick-cell { height:"+e+"px; }","."+uid+" .slick-row { height:"+options.rowHeight+"px; }"],t=0;t<columns.length;t++)o.push("."+uid+" .l"+t+" { }"),o.push("."+uid+" .r"+t+" { }");$style[0].styleSheet?$style[0].styleSheet.cssText=o.join(" "):$style[0].appendChild(document.createTextNode(o.join(" ")))}function getColumnCssRules(e){var o;if(!stylesheet){var t=document.styleSheets;for(o=0;o<t.length;o++)if((t[o].ownerNode||t[o].owningElement)==$style[0]){stylesheet=t[o];break}if(!stylesheet)throw new Error("Cannot find stylesheet.");columnCssRulesL=[],columnCssRulesR=[];var l,n,r=stylesheet.cssRules||stylesheet.rules;for(o=0;o<r.length;o++){var i=r[o].selectorText;(l=/\.l\d+/.exec(i))?(n=parseInt(l[0].substr(2,l[0].length-2),10),columnCssRulesL[n]=r[o]):(l=/\.r\d+/.exec(i))&&(n=parseInt(l[0].substr(2,l[0].length-2),10),columnCssRulesR[n]=r[o])}}return{left:columnCssRulesL[e],right:columnCssRulesR[e]}}function removeCssRules(){$style.remove(),stylesheet=null}function destroy(){getEditorLock().cancelCurrentEdit(),trigger(self.onBeforeDestroy,{});for(var e=plugins.length;e–;)unregisterPlugin(plugins[e]);options.enableColumnReorder&&$headers.filter(":ui-sortable").sortable("destroy"),unbindAncestorScrollEvents(),$container.off(".slickgrid"),removeCssRules(),$canvas.off("draginit dragstart dragend drag"),$container.empty().removeClass(uid)}function trigger(e,o,t){return t=t||new Slick.EventData,(o=o||{}).grid=self,e.notify(o,t,self)}function getEditorLock(){return options.editorLock}function getEditController(){return editController}function getColumnIndex(e){return columnsById[e]}function autosizeColumns(){var e,o,t,l=[],n=0,r=0,i=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;for(e=0;e<columns.length;e++)o=columns[e],l.push(o.width),r+=o.width,o.resizable&&(n+=o.width-Math.max(o.minWidth,absoluteColumnMinWidth));for(t=r;r>i&&n;){var s=(r-i)/n;for(e=0;e<columns.length&&r>i;e++){o=columns[e];var a=l[e];if(!(!o.resizable||a<=o.minWidth||a<=absoluteColumnMinWidth)){var c=Math.max(o.minWidth,absoluteColumnMinWidth),d=Math.floor(s*(a-c))||1;r-=d=Math.min(d,a-c),n-=d,l[e]-=d}}if(t<=r)break;t=r}for(t=r;r<i;){var u=i/r;for(e=0;e<columns.length&&r<i;e++){o=columns[e];var h,p=l[e];r+=h=!o.resizable||o.maxWidth<=p?0:Math.min(Math.floor(u*p)-p,o.maxWidth-p||1e6)||1,l[e]+=r<=i?h:0}if(t>=r)break;t=r}var g=!1;for(e=0;e<columns.length;e++)columns[e].rerenderOnResize&&columns[e].width!=l[e]&&(g=!0),columns[e].width=l[e];applyColumnHeaderWidths(),updateCanvasWidth(!0),trigger(self.onAutosizeColumns,{columns}),g&&(invalidateAllRows(),render())}function applyColumnHeaderWidths(){if(initialized){for(var e,o=0,t=$headers.children(),l=columns.length;o<l;o++)e=$(t[o]),jQueryNewWidthBehaviour?e.outerWidth()!==columns[o].width&&e.outerWidth(columns[o].width):e.width()!==columns[o].width-headerColumnWidthDiff&&e.width(columns[o].width-headerColumnWidthDiff);updateColumnCaches()}}function applyColumnWidths(){for(var e,o,t=0,l=0;l<columns.length;l++)e=columns[l].width,(o=getColumnCssRules(l)).left.style.left=t+"px",o.right.style.right=canvasWidth-t-e+"px",t+=columns[l].width}function setSortColumn(e,o){setSortColumns([{columnId:e,sortAsc:o}])}function setSortColumns(e){sortColumns=e;var o=options.numberedMultiColumnSort&&sortColumns.length>1,t=$headers.children();t.removeClass("slick-header-column-sorted").find(".slick-sort-indicator").removeClass("slick-sort-indicator-asc slick-sort-indicator-desc"),t.find(".slick-sort-indicator-numbered").text(""),$.each(sortColumns,(function(e,l){null==l.sortAsc&&(l.sortAsc=!0);var n=getColumnIndex(l.columnId);null!=n&&(t.eq(n).addClass("slick-header-column-sorted").find(".slick-sort-indicator").addClass(l.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),o&&t.eq(n).find(".slick-sort-indicator-numbered").text(e+1))}))}function getSortColumns(){return sortColumns}function handleSelectedRangesChanged(e,o){selectedRows=[];for(var t={},l=0;l<o.length;l++)for(var n=o[l].fromRow;n<=o[l].toRow;n++){t[n]||(selectedRows.push(n),t[n]={});for(var r=o[l].fromCell;r<=o[l].toCell;r++)canCellBeSelected(n,r)&&(t[n][columns[r].id]=options.selectedCellCssClass)}setCellCssStyles(options.selectedCellCssClass,t),trigger(self.onSelectedRowsChanged,{rows:getSelectedRows()},e)}function getColumns(){return columns}function updateColumnCaches(){columnPosLeft=[],columnPosRight=[];for(var e=0,o=0,t=columns.length;o<t;o++)columnPosLeft[o]=e,columnPosRight[o]=e+columns[o].width,e+=columns[o].width}function setColumns(e){columns=e,columnsById={};for(var o=0;o<columns.length;o++){var t=columns[o]=$.extend({},columnDefaults,columns[o]);columnsById[t.id]=o,t.minWidth&&t.width<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&t.width>t.maxWidth&&(t.width=t.maxWidth)}updateColumnCaches(),initialized&&(invalidateAllRows(),createColumnHeaders(),removeCssRules(),createCssRules(),resizeCanvas(),applyColumnWidths(),handleScroll())}function getOptions(){return options}function setOptions(e,o){getEditorLock().commitCurrentEdit()&&(makeActiveCellNormal(),options.enableAddRow!==e.enableAddRow&&invalidateRow(getDataLength()),options=$.extend(options,e),validateAndEnforceOptions(),$viewport.css("overflow-y",options.autoHeight?"hidden":"auto"),o||render())}function validateAndEnforceOptions(){options.autoHeight&&(options.leaveSpaceForNewRows=!1)}function setData(e,o){data=e,invalidateAllRows(),updateRowCount(),o&&scrollTo(0)}function getData(){return data}function getDataLength(){return data.getLength?data.getLength():data.length}function getDataLengthIncludingAddNew(){return getDataLength()+(options.enableAddRow&&(!pagingActive||pagingIsLastPage)?1:0)}function getDataItem(e){return data.getItem?data.getItem(e):data[e]}function getTopPanel(){return $topPanel[0]}function setTopPanelVisibility(e){options.showTopPanel!=e&&(options.showTopPanel=e,e?$topPanelScroller.slideDown("fast",resizeCanvas):$topPanelScroller.slideUp("fast",resizeCanvas))}function setHeaderRowVisibility(e){options.showHeaderRow!=e&&(options.showHeaderRow=e,e?$headerRowScroller.slideDown("fast",resizeCanvas):$headerRowScroller.slideUp("fast",resizeCanvas))}function setFooterRowVisibility(e){options.showFooterRow!=e&&(options.showFooterRow=e,e?$footerRowScroller.slideDown("fast",resizeCanvas):$footerRowScroller.slideUp("fast",resizeCanvas))}function setPreHeaderPanelVisibility(e){options.showPreHeaderPanel!=e&&(options.showPreHeaderPanel=e,e?$preHeaderPanelScroller.slideDown("fast",resizeCanvas):$preHeaderPanelScroller.slideUp("fast",resizeCanvas))}function getContainerNode(){return $container.get(0)}function getRowTop(e){return options.rowHeight*e-offset}function getRowFromPosition(e){return Math.floor((e+offset)/options.rowHeight)}function scrollTo(e){e=Math.max(e,0),e=Math.min(e,th-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0));var o=offset;page=Math.min(n-1,Math.floor(e/ph));var t=e-(offset=Math.round(page*cj));offset!=o&&(cleanupRows(getVisibleRange(t)),updateRowPositions());prevScrollTop!=t&&(vScrollDir=prevScrollTop+o<t+offset?1:-1,$viewport[0].scrollTop=lastRenderedScrollTop=scrollTop=prevScrollTop=t,trigger(self.onViewportChanged,{}))}function defaultFormatter(e,o,t,l,n,r){return null==t?"":(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function getFormatter(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e),l=t&&t.columns&&(t.columns[o.id]||t.columns[getColumnIndex(o.id)]);return l&&l.formatter||t&&t.formatter||o.formatter||options.formatterFactory&&options.formatterFactory.getFormatter(o)||options.defaultFormatter}function getEditor(e,o){var t=columns[o],l=data.getItemMetadata&&data.getItemMetadata(e),n=l&&l.columns;return n&&n[t.id]&&void 0!==n[t.id].editor?n[t.id].editor:n&&n[o]&&void 0!==n[o].editor?n[o].editor:t.editor||options.editorFactory&&options.editorFactory.getEditor(t)}function getDataItemValueForColumn(e,o){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(e,o):e[o.field]}function appendRowHtml(e,o,t,l){var n=getDataItem(o),r="slick-row"+(o<l&&!n?" loading":"")+(o===activeRow&&options.showCellSelection?" active":"")+(o%2==1?" odd":" even");n||(r+=" "+options.addNewRowCssClass);var i,s,a=data.getItemMetadata&&data.getItemMetadata(o);a&&a.cssClasses&&(r+=" "+a.cssClasses),e.push("<div class=’ui-widget-content "+r+"’ style=’top:"+getRowTop(o)+"px’>");for(var c=0,d=columns.length;c<d;c++){if(s=columns[c],i=1,a&&a.columns){var u=a.columns[s.id]||a.columns[c];""===(i=u&&u.colspan||1)&&(i=d-c)}if(columnPosRight[Math.min(d-1,c+i-1)]>t.leftPx){if(columnPosLeft[c]>t.rightPx)break;appendCellHtml(e,o,c,i,n)}i>1&&(c+=i-1)}e.push("</div>")}function appendCellHtml(e,o,t,l,n){var r=columns[t],i="slick-cell l"+t+" r"+Math.min(columns.length-1,t+l-1)+(r.cssClass?" "+r.cssClass:"");for(var s in o===activeRow&&t===activeCell&&options.showCellSelection&&(i+=" active"),cellCssClasses)cellCssClasses[s][o]&&cellCssClasses[s][o][r.id]&&(i+=" "+cellCssClasses[s][o][r.id]);var a=null,c="";n&&(a=getDataItemValueForColumn(n,r),null==(c=getFormatter(o,r)(o,t,a,r,n,self))&&(c=""));var d=trigger(self.onBeforeAppendCell,{row:o,cell:t,value:a,dataContext:n})||"";d+=c&&c.addClasses?(d?" ":"")+c.addClasses:"",e.push("<div class=’"+i+(d?" "+d:"")+"’>"),n&&e.push("[object Object]"!==Object.prototype.toString.call(c)?c:c.text),e.push("</div>"),rowsCache[o].cellRenderQueue.push(t),rowsCache[o].cellColSpans[t]=l}function cleanupRows(e){for(var o in rowsCache)(o=parseInt(o,10))!==activeRow&&(o<e.top||o>e.bottom)&&removeRowFromCache(o);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function invalidate(){updateRowCount(),invalidateAllRows(),render()}function invalidateAllRows(){for(var e in currentEditor&&makeActiveCellNormal(),rowsCache)removeRowFromCache(e);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function queuePostProcessedRowForCleanup(e,o,t){for(var l in postProcessgroupId++,o)o.hasOwnProperty(l)&&postProcessedCleanupQueue.push({actionType:"C",groupId:postProcessgroupId,node:e.cellNodesByColumnIdx[0|l],columnIdx:0|l,rowIdx:t});postProcessedCleanupQueue.push({actionType:"R",groupId:postProcessgroupId,node:e.rowNode}),$(e.rowNode).detach()}function queuePostProcessedCellForCleanup(e,o,t){postProcessedCleanupQueue.push({actionType:"C",groupId:postProcessgroupId,node:e,columnIdx:o,rowIdx:t}),$(e).detach()}function removeRowFromCache(e){var o=rowsCache[e];o&&(o.rowNode&&(rowNodeFromLastMouseWheelEvent===o.rowNode?(o.rowNode.style.display="none",zombieRowNodeFromLastMouseWheelEvent=rowNodeFromLastMouseWheelEvent,zombieRowCacheFromLastMouseWheelEvent=o,zombieRowPostProcessedFromLastMouseWheelEvent=postProcessedRows[e]):options.enableAsyncPostRenderCleanup&&postProcessedRows[e]?queuePostProcessedRowForCleanup(o,postProcessedRows[e],e):$canvas[0].removeChild(o.rowNode)),delete rowsCache[e],delete postProcessedRows[e],renderedRows–,counter_rows_removed++)}function invalidateRows(e){var o,t;if(e&&e.length){for(vScrollDir=0,t=e.length,o=0;o<t;o++)currentEditor&&activeRow===e[o]&&makeActiveCellNormal(),rowsCache[e[o]]&&removeRowFromCache(e[o]);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}}function invalidateRow(e){(e||0===e)&&invalidateRows([e])}function applyFormatResultToCellNode(e,o,t){null==e&&(e=""),"[object Object]"===Object.prototype.toString.call(e)?(o.innerHTML=e.text,e.removeClasses&&!t&&$(o).removeClass(e.removeClasses),e.addClasses&&$(o).addClass(e.addClasses)):o.innerHTML=e}function updateCell(e,o){var t=getCellNode(e,o);if(t){var l=columns[o],n=getDataItem(e);if(currentEditor&&activeRow===e&&activeCell===o)currentEditor.loadValue(n);else applyFormatResultToCellNode(n?getFormatter(e,l)(e,o,getDataItemValueForColumn(n,l),l,n,self):"",t),invalidatePostProcessingResults(e)}}function updateRow(e){var o=rowsCache[e];if(o){ensureCellNodesInRowsCache(e);var t=getDataItem(e);for(var l in o.cellNodesByColumnIdx)if(o.cellNodesByColumnIdx.hasOwnProperty(l)){var n=columns[l|=0],r=o.cellNodesByColumnIdx[l];e===activeRow&&l===activeCell&¤tEditor?currentEditor.loadValue(t):t?applyFormatResultToCellNode(getFormatter(e,n)(e,l,getDataItemValueForColumn(t,n),n,t,self),r):r.innerHTML=""}invalidatePostProcessingResults(e)}}function getViewportHeight(){return parseFloat($.css($container[0],"height",!0))-parseFloat($.css($container[0],"paddingTop",!0))-parseFloat($.css($container[0],"paddingBottom",!0))-parseFloat($.css($headerScroller[0],"height"))-getVBoxDelta($headerScroller)-(options.showTopPanel?options.topPanelHeight+getVBoxDelta($topPanelScroller):0)-(options.showHeaderRow?options.headerRowHeight+getVBoxDelta($headerRowScroller):0)-(options.createFooterRow&&options.showFooterRow?options.footerRowHeight+getVBoxDelta($footerRowScroller):0)-(options.createPreHeaderPanel&&options.showPreHeaderPanel?options.preHeaderPanelHeight+getVBoxDelta($preHeaderPanelScroller):0)}function resizeCanvas(){initialized&&(viewportH=options.autoHeight?options.rowHeight*getDataLengthIncludingAddNew():getViewportHeight(),numVisibleRows=Math.ceil(viewportH/options.rowHeight),viewportW=parseFloat($.css($container[0],"width",!0)),options.autoHeight||$viewport.height(viewportH),scrollbarDimensions&&scrollbarDimensions.width||(scrollbarDimensions=measureScrollbar()),options.forceFitColumns&&autosizeColumns(),updateRowCount(),handleScroll(),lastRenderedScrollLeft=-1,render())}function updatePagingStatusFromView(e){pagingActive=0!==e.pageSize,pagingIsLastPage=e.pageNum==e.totalPages-1}function updateRowCount(){if(initialized){var e=getDataLength(),o=getDataLengthIncludingAddNew()+(options.leaveSpaceForNewRows?numVisibleRows-1:0),t=viewportHasVScroll;viewportHasVScroll=options.alwaysShowVerticalScroll||!options.autoHeight&&o*options.rowHeight>viewportH,viewportHasHScroll=canvasWidth>viewportW-scrollbarDimensions.width,makeActiveCellNormal();var l=e-1;for(var r in rowsCache)r>l&&removeRowFromCache(r);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup(),activeCellNode&&activeRow>l&&resetActiveCell();var i=h;(th=Math.max(options.rowHeight*o,viewportH-scrollbarDimensions.height))<maxSupportedCssHeight?(h=ph=th,n=1,cj=0):(ph=(h=maxSupportedCssHeight)/100,n=Math.floor(th/ph),cj=(th-h)/(n-1)),h!==i&&($canvas.css("height",h),scrollTop=$viewport[0].scrollTop);var s=scrollTop+offset<=th-viewportH;0==th||0==scrollTop?page=offset=0:scrollTo(s?scrollTop+offset:th-viewportH),h!=i&&options.autoHeight&&resizeCanvas(),options.forceFitColumns&&t!=viewportHasVScroll&&autosizeColumns(),updateCanvasWidth(!1)}}function getVisibleRange(e,o){return null==e&&(e=scrollTop),null==o&&(o=scrollLeft),{top:getRowFromPosition(e),bottom:getRowFromPosition(e+viewportH)+1,leftPx:o,rightPx:o+viewportW}}function getRenderedRange(e,o){var t=getVisibleRange(e,o),l=Math.round(viewportH/options.rowHeight),n=options.minRowBuffer;return-1==vScrollDir?(t.top-=l,t.bottom+=n):1==vScrollDir?(t.top-=n,t.bottom+=l):(t.top-=n,t.bottom+=n),t.top=Math.max(0,t.top),t.bottom=Math.min(getDataLengthIncludingAddNew()-1,t.bottom),t.leftPx-=viewportW,t.rightPx+=viewportW,t.leftPx=Math.max(0,t.leftPx),t.rightPx=Math.min(canvasWidth,t.rightPx),t}function ensureCellNodesInRowsCache(e){var o=rowsCache[e];if(o&&o.cellRenderQueue.length)for(var t=o.rowNode.lastChild;o.cellRenderQueue.length;){var l=o.cellRenderQueue.pop();o.cellNodesByColumnIdx[l]=t,t=t.previousSibling}}function cleanUpCells(e,o){var t,l,n=rowsCache[o],r=[];for(var i in n.cellNodesByColumnIdx)if(n.cellNodesByColumnIdx.hasOwnProperty(i)){i|=0;var s=n.cellColSpans[i];(columnPosLeft[i]>e.rightPx||columnPosRight[Math.min(columns.length-1,i+s-1)]<e.leftPx)&&(o==activeRow&&i==activeCell||r.push(i))}for(postProcessgroupId++;null!=(t=r.pop());)l=n.cellNodesByColumnIdx[t],options.enableAsyncPostRenderCleanup&&postProcessedRows[o]&&postProcessedRows[o][t]?queuePostProcessedCellForCleanup(l,t,o):n.rowNode.removeChild(l),delete n.cellColSpans[t],delete n.cellNodesByColumnIdx[t],postProcessedRows[o]&&delete postProcessedRows[o][t]}function cleanUpAndRenderCells(e){for(var o,t,l,n=[],r=[],i=e.top,s=e.bottom;i<=s;i++)if(o=rowsCache[i]){ensureCellNodesInRowsCache(i),cleanUpCells(e,i),t=0;var a=data.getItemMetadata&&data.getItemMetadata(i);a=a&&a.columns;for(var c=getDataItem(i),d=0,u=columns.length;d<u&&!(columnPosLeft[d]>e.rightPx);d++)if(null==(l=o.cellColSpans[d])){if(l=1,a){var h=a[columns[d].id]||a[d];""===(l=h&&h.colspan||1)&&(l=u-d)}columnPosRight[Math.min(u-1,d+l-1)]>e.leftPx&&(appendCellHtml(n,i,d,l,c),t++),d+=l>1?l-1:0}else d+=l>1?l-1:0;t&&(t,r.push(i))}if(n.length){var p,g,m=document.createElement("div");for(m.innerHTML=n.join("");null!=(p=r.pop());){var v;for(o=rowsCache[p];null!=(v=o.cellRenderQueue.pop());)g=m.lastChild,o.rowNode.appendChild(g),o.cellNodesByColumnIdx[v]=g}}}function renderRows(e){for(var o=$canvas[0],t=[],l=[],n=!1,r=getDataLength(),i=e.top,s=e.bottom;i<=s;i++)rowsCache[i]||(renderedRows++,l.push(i),rowsCache[i]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},appendRowHtml(t,i,e,r),activeCellNode&&activeRow===i&&(n=!0),counter_rows_rendered++);if(l.length){var a=document.createElement("div");a.innerHTML=t.join("");for(i=0,s=l.length;i<s;i++)rowsCache[l[i]].rowNode=o.appendChild(a.firstChild);n&&(activeCellNode=getCellNode(activeRow,activeCell))}}function startPostProcessing(){options.enableAsyncPostRender&&(clearTimeout(h_postrender),h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}function startPostProcessingCleanup(){options.enableAsyncPostRenderCleanup&&(clearTimeout(h_postrenderCleanup),h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay))}function invalidatePostProcessingResults(e){for(var o in postProcessedRows[e])postProcessedRows[e].hasOwnProperty(o)&&(postProcessedRows[e][o]="C");postProcessFromRow=Math.min(postProcessFromRow,e),postProcessToRow=Math.max(postProcessToRow,e),startPostProcessing()}function updateRowPositions(){for(var e in rowsCache)rowsCache[e].rowNode.style.top=getRowTop(e)+"px"}function render(){if(initialized){scrollThrottle.dequeue();var e=getVisibleRange(),o=getRenderedRange();cleanupRows(o),lastRenderedScrollLeft!=scrollLeft&&cleanUpAndRenderCells(o),renderRows(o),postProcessFromRow=e.top,postProcessToRow=Math.min(getDataLengthIncludingAddNew()-1,e.bottom),startPostProcessing(),lastRenderedScrollTop=scrollTop,lastRenderedScrollLeft=scrollLeft,h_render=null,trigger(self.onRendered,{startRow:e.top,endRow:e.bottom,grid:self})}}function handleHeaderScroll(){handleElementScroll($headerScroller[0])}function handleHeaderRowScroll(){handleElementScroll($headerRowScroller[0])}function handleFooterRowScroll(){handleElementScroll($footerRowScroller[0])}function handlePreHeaderPanelScroll(){handleElementScroll($preHeaderPanelScroller[0])}function handleElementScroll(e){var o=e.scrollLeft;o!=$viewport[0].scrollLeft&&($viewport[0].scrollLeft=o)}function handleScroll(){scrollTop=$viewport[0].scrollTop,scrollLeft=$viewport[0].scrollLeft;var e=Math.abs(scrollTop-prevScrollTop),o=Math.abs(scrollLeft-prevScrollLeft);if(o&&(prevScrollLeft=scrollLeft,$headerScroller[0].scrollLeft=scrollLeft,$topPanelScroller[0].scrollLeft=scrollLeft,$headerRowScroller[0].scrollLeft=scrollLeft,options.createFooterRow&&($footerRowScroller[0].scrollLeft=scrollLeft),options.createPreHeaderPanel&&($preHeaderPanelScroller[0].scrollLeft=scrollLeft)),e)if(vScrollDir=prevScrollTop<scrollTop?1:-1,prevScrollTop=scrollTop,e<viewportH)scrollTo(scrollTop+offset);else{var t=offset;page=h==viewportH?0:Math.min(n-1,Math.floor(scrollTop*((th-viewportH)/(h-viewportH))*(1/ph))),t!=(offset=Math.round(page*cj))&&invalidateAllRows()}if(o||e){var l=Math.abs(lastRenderedScrollLeft-scrollLeft),r=Math.abs(lastRenderedScrollTop-scrollTop);(l>20||r>20)&&(options.forceSyncScrolling||r<viewportH&&l<viewportW?render():scrollThrottle.enqueue(),trigger(self.onViewportChanged,{}))}trigger(self.onScroll,{scrollLeft,scrollTop})}function ActionThrottle(e,o){var t=!1,l=!1;function n(){l=!1}function r(){t=!0,setTimeout(i,o),e()}function i(){l?(n(),r()):t=!1}return{enqueue:function(){t?l=!0:r()},dequeue:n}}function asyncPostProcessRows(){for(var e=getDataLength();postProcessFromRow<=postProcessToRow;){var o=vScrollDir>=0?postProcessFromRow++:postProcessToRow–,t=rowsCache[o];if(t&&!(o>=e)){for(var l in postProcessedRows[o]||(postProcessedRows[o]={}),ensureCellNodesInRowsCache(o),t.cellNodesByColumnIdx)if(t.cellNodesByColumnIdx.hasOwnProperty(l)){var n=columns[l|=0],r=postProcessedRows[o][l];if(n.asyncPostRender&&"R"!==r){var i=t.cellNodesByColumnIdx[l];i&&n.asyncPostRender(i,o,getDataItem(o),n,"C"===r),postProcessedRows[o][l]="R"}}return void(h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}}}function asyncPostProcessCleanupRows(){if(postProcessedCleanupQueue.length>0){for(var e=postProcessedCleanupQueue[0].groupId;postProcessedCleanupQueue.length>0&&postProcessedCleanupQueue[0].groupId==e;){var o=postProcessedCleanupQueue.shift();if("R"==o.actionType&&$(o.node).remove(),"C"==o.actionType){var t=columns[o.columnIdx];t.asyncPostRenderCleanup&&o.node&&t.asyncPostRenderCleanup(o.node,o.rowIdx,t)}}h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay)}}function updateCellCssStylesOnRenderedRows(e,o){var t,l,n,r;for(var i in rowsCache){if(r=o&&o[i],n=e&&e[i],r)for(l in r)n&&r[l]==n[l]||(t=getCellNode(i,getColumnIndex(l)))&&$(t).removeClass(r[l]);if(n)for(l in n)r&&r[l]==n[l]||(t=getCellNode(i,getColumnIndex(l)))&&$(t).addClass(n[l])}}function addCellCssStyles(e,o){if(cellCssClasses[e])throw new Error("addCellCssStyles: cell CSS hash with key ‘"+e+"’ already exists.");cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,null),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function removeCellCssStyles(e){cellCssClasses[e]&&(updateCellCssStylesOnRenderedRows(null,cellCssClasses[e]),delete cellCssClasses[e],trigger(self.onCellCssStylesChanged,{key:e,hash:null,grid:self}))}function setCellCssStyles(e,o){var t=cellCssClasses[e];cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,t),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function getCellCssStyles(e){return cellCssClasses[e]}function flashCell(e,o,t){if(t=t||100,rowsCache[e]){var l=$(getCellNode(e,o)),n=function(e){e&&setTimeout((function(){l.queue((function(){l.toggleClass(options.cellFlashingCssClass).dequeue(),n(e-1)}))}),t)};n(4)}}function handleMouseWheel(e){var o=$(e.target).closest(".slick-row")[0];o!=rowNodeFromLastMouseWheelEvent&&(zombieRowNodeFromLastMouseWheelEvent&&zombieRowNodeFromLastMouseWheelEvent!=o&&(options.enableAsyncPostRenderCleanup&&zombieRowPostProcessedFromLastMouseWheelEvent?queuePostProcessedRowForCleanup(zombieRowCacheFromLastMouseWheelEvent,zombieRowPostProcessedFromLastMouseWheelEvent):$canvas[0].removeChild(zombieRowNodeFromLastMouseWheelEvent),zombieRowNodeFromLastMouseWheelEvent=null,zombieRowCacheFromLastMouseWheelEvent=null,zombieRowPostProcessedFromLastMouseWheelEvent=null,options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()),rowNodeFromLastMouseWheelEvent=o)}function handleDragInit(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var l=trigger(self.onDragInit,o,e);return!!e.isImmediatePropagationStopped()&&l}function handleDragStart(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var l=trigger(self.onDragStart,o,e);return!!e.isImmediatePropagationStopped()&&l}function handleDrag(e,o){return trigger(self.onDrag,o,e)}function handleDragEnd(e,o){trigger(self.onDragEnd,o,e)}function handleKeyDown(e){trigger(self.onKeyDown,{row:activeRow,cell:activeCell},e);var o=e.isImmediatePropagationStopped(),t=Slick.keyCode;if(!o&&!e.shiftKey&&!e.altKey){if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;e.which==t.HOME?o=e.ctrlKey?navigateTop():navigateRowStart():e.which==t.END&&(o=e.ctrlKey?navigateBottom():navigateRowEnd())}if(!o)if(e.shiftKey||e.altKey||e.ctrlKey)e.which!=t.TAB||!e.shiftKey||e.ctrlKey||e.altKey||(o=navigatePrev());else{if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which==t.ESCAPE){if(!getEditorLock().isActive())return;cancelEditAndSetFocus()}else e.which==t.PAGE_DOWN?(navigatePageDown(),o=!0):e.which==t.PAGE_UP?(navigatePageUp(),o=!0):e.which==t.LEFT?o=navigateLeft():e.which==t.RIGHT?o=navigateRight():e.which==t.UP?o=navigateUp():e.which==t.DOWN?o=navigateDown():e.which==t.TAB?o=navigateNext():e.which==t.ENTER&&(options.editable&&(currentEditor?activeRow===getDataLength()?navigateDown():commitEditAndSetFocus():getEditorLock().commitCurrentEdit()&&makeActiveCellEditable(void 0,void 0,e)),o=!0)}if(o){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch(e){}}}function handleClick(e){currentEditor||(e.target!=document.activeElement||$(e.target).hasClass("slick-cell"))&&setFocus();var o=getCellFromEvent(e);if(o&&(null===currentEditor||activeRow!=o.row||activeCell!=o.cell)&&(trigger(self.onClick,{row:o.row,cell:o.cell},e),!e.isImmediatePropagationStopped()&&canCellBeActive(o.row,o.cell)&&(!getEditorLock().isActive()||getEditorLock().commitCurrentEdit()))){scrollRowIntoView(o.row,!1);var t=e.target&&e.target.className===Slick.preClickClassName,l=columns[o.cell],n=!!(options.editable&&l&&l.editor&&options.suppressActiveCellChangeOnEdit);setActiveCellInternal(getCellNode(o.row,o.cell),null,t,n,e)}}function handleContextMenu(e){var o=$(e.target).closest(".slick-cell",$canvas);0!==o.length&&(activeCellNode===o[0]&&null!==currentEditor||trigger(self.onContextMenu,{},e))}function handleDblClick(e){var o=getCellFromEvent(e);!o||null!==currentEditor&&activeRow==o.row&&activeCell==o.cell||(trigger(self.onDblClick,{row:o.row,cell:o.cell},e),e.isImmediatePropagationStopped()||options.editable&&gotoCell(o.row,o.cell,!0,e))}function handleHeaderMouseEnter(e){trigger(self.onHeaderMouseEnter,{column:$(this).data("column"),grid:self},e)}function handleHeaderMouseLeave(e){trigger(self.onHeaderMouseLeave,{column:$(this).data("column"),grid:self},e)}function handleHeaderContextMenu(e){var o=$(e.target).closest(".slick-header-column",".slick-header-columns"),t=o&&o.data("column");trigger(self.onHeaderContextMenu,{column:t},e)}function handleHeaderClick(e){if(!columnResizeDragging){var o=$(e.target).closest(".slick-header-column",".slick-header-columns"),t=o&&o.data("column");t&&trigger(self.onHeaderClick,{column:t},e)}}function handleMouseEnter(e){trigger(self.onMouseEnter,{},e)}function handleMouseLeave(e){trigger(self.onMouseLeave,{},e)}function cellExists(e,o){return!(e<0||e>=getDataLength()||o<0||o>=columns.length)}function getCellFromPoint(e,o){for(var t=getRowFromPosition(o),l=0,n=0,r=0;r<columns.length&&n<e;r++)n+=columns[r].width,l++;return l<0&&(l=0),{row:t,cell:l-1}}function getCellFromNode(e){var o=/l\d+/.exec(e.className);if(!o)throw new Error("getCellFromNode: cannot get cell - "+e.className);return parseInt(o[0].substr(1,o[0].length-1),10)}function getRowFromNode(e){for(var o in rowsCache)if(rowsCache[o].rowNode===e)return 0|o;return null}function getCellFromEvent(e){var o=$(e.target).closest(".slick-cell",$canvas);if(!o.length)return null;var t=getRowFromNode(o[0].parentNode),l=getCellFromNode(o[0]);return null==t||null==l?null:{row:t,cell:l}}function getCellNodeBox(e,o){if(!cellExists(e,o))return null;for(var t=getRowTop(e),l=t+options.rowHeight-1,n=0,r=0;r<o;r++)n+=columns[r].width;return{top:t,left:n,bottom:l,right:n+columns[o].width}}function resetActiveCell(){setActiveCellInternal(null,!1)}function setFocus(){-1==tabbingDirection?$focusSink[0].focus():$focusSink2[0].focus()}function scrollCellIntoView(e,o,t){scrollRowIntoView(e,t);var l=getColspan(e,o);internalScrollColumnIntoView(columnPosLeft[o],columnPosRight[o+(l>1?l-1:0)])}function internalScrollColumnIntoView(e,o){var t=scrollLeft+viewportW;e<scrollLeft?($viewport.scrollLeft(e),handleScroll(),render()):o>t&&($viewport.scrollLeft(Math.min(e,o-$viewport[0].clientWidth)),handleScroll(),render())}function scrollColumnIntoView(e){internalScrollColumnIntoView(columnPosLeft[e],columnPosRight[e])}function setActiveCellInternal(e,o,t,l,n){null!==activeCellNode&&(makeActiveCellNormal(),$(activeCellNode).removeClass("active"),rowsCache[activeRow]&&$(rowsCache[activeRow].rowNode).removeClass("active"));null!=(activeCellNode=e)?(activeRow=getRowFromNode(activeCellNode.parentNode),activeCell=activePosX=getCellFromNode(activeCellNode),null==o&&(o=activeRow==getDataLength()||options.autoEdit),options.showCellSelection&&($(activeCellNode).addClass("active"),$(rowsCache[activeRow].rowNode).addClass("active")),options.editable&&o&&isCellPotentiallyEditable(activeRow,activeCell)&&(clearTimeout(h_editorLoader),options.asyncEditorLoading?h_editorLoader=setTimeout((function(){makeActiveCellEditable(void 0,t,n)}),options.asyncEditorLoadDelay):makeActiveCellEditable(void 0,t,n))):activeRow=activeCell=null,l||trigger(self.onActiveCellChanged,getActiveCell())}function clearTextSelection(){if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}else if(window.getSelection){var e=window.getSelection();e&&e.removeAllRanges&&e.removeAllRanges()}}function isCellPotentiallyEditable(e,o){var t=getDataLength();return!(e<t&&!getDataItem(e))&&(!(columns[o].cannotTriggerInsert&&e>=t)&&!!getEditor(e,o))}function makeActiveCellNormal(){if(currentEditor){if(trigger(self.onBeforeCellEditorDestroy,{editor:currentEditor}),currentEditor.destroy(),currentEditor=null,activeCellNode){var e=getDataItem(activeRow);if($(activeCellNode).removeClass("editable invalid"),e){var o=columns[activeCell];applyFormatResultToCellNode(getFormatter(activeRow,o)(activeRow,activeCell,getDataItemValueForColumn(e,o),o,e,self),activeCellNode),invalidatePostProcessingResults(activeRow)}}navigator.userAgent.toLowerCase().match(/msie/)&&clearTextSelection(),getEditorLock().deactivate(editController)}}function makeActiveCellEditable(e,o,t){if(activeCellNode){if(!options.editable)throw new Error("Grid : makeActiveCellEditable : should never get called when options.editable is false");if(clearTimeout(h_editorLoader),isCellPotentiallyEditable(activeRow,activeCell)){var l=columns[activeCell],n=getDataItem(activeRow);if(!1!==trigger(self.onBeforeEditCell,{row:activeRow,cell:activeCell,item:n,column:l})){getEditorLock().activate(editController),$(activeCellNode).addClass("editable");var r=e||getEditor(activeRow,activeCell);e||r.suppressClearOnEdit||(activeCellNode.innerHTML=""),currentEditor=new r({grid:self,gridPosition:absBox($container[0]),position:absBox(activeCellNode),container:activeCellNode,column:l,item:n||{},event:t,commitChanges:commitEditAndSetFocus,cancelChanges:cancelEditAndSetFocus}),n&&(currentEditor.loadValue(n),o&¤tEditor.preClick&¤tEditor.preClick()),serializedEditorValue=currentEditor.serializeValue(),currentEditor.position&&handleActiveCellPositionChange()}else setFocus()}}}function commitEditAndSetFocus(){getEditorLock().commitCurrentEdit()&&(setFocus(),options.autoEdit&&navigateDown())}function cancelEditAndSetFocus(){getEditorLock().cancelCurrentEdit()&&setFocus()}function absBox(e){var o={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:$(e).outerWidth(),height:$(e).outerHeight(),visible:!0};o.bottom=o.top+o.height,o.right=o.left+o.width;for(var t=e.offsetParent;(e=e.parentNode)!=document.body&&null!=e;)o.visible&&e.scrollHeight!=e.offsetHeight&&"visible"!=$(e).css("overflowY")&&(o.visible=o.bottom>e.scrollTop&&o.top<e.scrollTop+e.clientHeight),o.visible&&e.scrollWidth!=e.offsetWidth&&"visible"!=$(e).css("overflowX")&&(o.visible=o.right>e.scrollLeft&&o.left<e.scrollLeft+e.clientWidth),o.left-=e.scrollLeft,o.top-=e.scrollTop,e===t&&(o.left+=e.offsetLeft,o.top+=e.offsetTop,t=e.offsetParent),o.bottom=o.top+o.height,o.right=o.left+o.width;return o}function getActiveCellPosition(){return absBox(activeCellNode)}function getGridPosition(){return absBox($container[0])}function handleActiveCellPositionChange(){if(activeCellNode&&(trigger(self.onActiveCellPositionChanged,{}),currentEditor)){var e=getActiveCellPosition();currentEditor.show&¤tEditor.hide&&(e.visible?currentEditor.show():currentEditor.hide()),currentEditor.position&¤tEditor.position(e)}}function getCellEditor(){return currentEditor}function getActiveCell(){return activeCellNode?{row:activeRow,cell:activeCell}:null}function getActiveCellNode(){return activeCellNode}function scrollRowIntoView(e,o){var t=e*options.rowHeight,l=(e+1)*options.rowHeight-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0);(e+1)*options.rowHeight>scrollTop+viewportH+offset?(scrollTo(o?t:l),render()):e*options.rowHeight<scrollTop+offset&&(scrollTo(o?l:t),render())}function scrollRowToTop(e){scrollTo(e*options.rowHeight),render()}function scrollPage(e){var o=e*numVisibleRows;if(scrollTo((getRowFromPosition(scrollTop)+o)*options.rowHeight),render(),options.enableCellNavigation&&null!=activeRow){var t=activeRow+o,l=getDataLengthIncludingAddNew();t>=l&&(t=l-1),t<0&&(t=0);for(var n=0,r=null,i=activePosX;n<=activePosX;)canCellBeActive(t,n)&&(r=n),n+=getColspan(t,n);null!==r?(setActiveCellInternal(getCellNode(t,r)),activePosX=i):resetActiveCell()}}function navigatePageDown(){scrollPage(1)}function navigatePageUp(){scrollPage(-1)}function navigateTop(){navigateToRow(0)}function navigateBottom(){navigateToRow(getDataLength()-1)}function navigateToRow(e){var o=getDataLength();if(!o)return!0;if(e<0?e=0:e>=o&&(e=o-1),scrollCellIntoView(e,0,!0),options.enableCellNavigation&&null!=activeRow){for(var t=0,l=null,n=activePosX;t<=activePosX;)canCellBeActive(e,t)&&(l=t),t+=getColspan(e,t);null!==l?(setActiveCellInternal(getCellNode(e,l)),activePosX=n):resetActiveCell()}return!0}function getColspan(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e);if(!t||!t.columns)return 1;var l=t.columns[columns[o].id]||t.columns[o],n=l&&l.colspan;return n=""===n?columns.length-o:n||1}function findFirstFocusableCell(e){for(var o=0;o<columns.length;){if(canCellBeActive(e,o))return o;o+=getColspan(e,o)}return null}function findLastFocusableCell(e){for(var o=0,t=null;o<columns.length;)canCellBeActive(e,o)&&(t=o),o+=getColspan(e,o);return t}function gotoRight(e,o,t){if(o>=columns.length)return null;do{o+=getColspan(e,o)}while(o<columns.length&&!canCellBeActive(e,o));return o<columns.length?{row:e,cell:o,posX:o}:null}function gotoLeft(e,o,t){if(o<=0)return null;var l=findFirstFocusableCell(e);if(null===l||l>=o)return null;for(var n,r={row:e,cell:l,posX:l};;){if(!(n=gotoRight(r.row,r.cell,r.posX)))return null;if(n.cell>=o)return r;r=n}}function gotoDown(e,o,t){for(var l,n=getDataLengthIncludingAddNew();;){if(++e>=n)return null;for(l=o=0;o<=t;)l=o,o+=getColspan(e,o);if(canCellBeActive(e,l))return{row:e,cell:l,posX:t}}}function gotoUp(e,o,t){for(var l;;){if(–e<0)return null;for(l=o=0;o<=t;)l=o,o+=getColspan(e,o);if(canCellBeActive(e,l))return{row:e,cell:l,posX:t}}}function gotoNext(e,o,t){if(null==e&&null==o&&canCellBeActive(e=o=t=0,o))return{row:e,cell:o,posX:o};var l=gotoRight(e,o,t);if(l)return l;var n=null,r=getDataLengthIncludingAddNew();for(e===r-1&&e–;++e<r;)if(null!==(n=findFirstFocusableCell(e)))return{row:e,cell:n,posX:n};return null}function gotoPrev(e,o,t){if(null==e&&null==o&&canCellBeActive(e=getDataLengthIncludingAddNew()-1,o=t=columns.length-1))return{row:e,cell:o,posX:o};for(var l,n;!l&&!(l=gotoLeft(e,o,t));){if(–e<0)return null;o=0,null!==(n=findLastFocusableCell(e))&&(l={row:e,cell:n,posX:n})}return l}function gotoRowStart(e,o,t){var l=findFirstFocusableCell(e);return null===l?null:{row:e,cell:l,posX:l}}function gotoRowEnd(e,o,t){var l=findLastFocusableCell(e);return null===l?null:{row:e,cell:l,posX:l}}function navigateRight(){return navigate("right")}function navigateLeft(){return navigate("left")}function navigateDown(){return navigate("down")}function navigateUp(){return navigate("up")}function navigateNext(){return navigate("next")}function navigatePrev(){return navigate("prev")}function navigateRowStart(){return navigate("home")}function navigateRowEnd(){return navigate("end")}function navigate(e){if(!options.enableCellNavigation)return!1;if(!activeCellNode&&"prev"!=e&&"next"!=e)return!1;if(!getEditorLock().commitCurrentEdit())return!0;setFocus();tabbingDirection={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1}[e];var o=(0,{up:gotoUp,down:gotoDown,left:gotoLeft,right:gotoRight,prev:gotoPrev,next:gotoNext,home:gotoRowStart,end:gotoRowEnd}[e])(activeRow,activeCell,activePosX);if(o){var t=o.row==getDataLength();return scrollCellIntoView(o.row,o.cell,!t&&options.emulatePagingWhenScrolling),setActiveCellInternal(getCellNode(o.row,o.cell)),activePosX=o.posX,!0}return setActiveCellInternal(getCellNode(activeRow,activeCell)),!1}function getCellNode(e,o){return rowsCache[e]?(ensureCellNodesInRowsCache(e),rowsCache[e].cellNodesByColumnIdx[o]):null}function setActiveCell(e,o,t,l,n){initialized&&(e>getDataLength()||e<0||o>=columns.length||o<0||options.enableCellNavigation&&(scrollCellIntoView(e,o,!1),setActiveCellInternal(getCellNode(e,o),t,l,n)))}function canCellBeActive(e,o){if(!options.enableCellNavigation||e>=getDataLengthIncludingAddNew()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.focusable)return!!t.focusable;var l=t&&t.columns;return l&&l[columns[o].id]&&void 0!==l[columns[o].id].focusable?!!l[columns[o].id].focusable:l&&l[o]&&void 0!==l[o].focusable?!!l[o].focusable:!!columns[o].focusable}function canCellBeSelected(e,o){if(e>=getDataLength()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.selectable)return!!t.selectable;var l=t&&t.columns&&(t.columns[columns[o].id]||t.columns[o]);return l&&void 0!==l.selectable?!!l.selectable:!!columns[o].selectable}function gotoCell(e,o,t,l){initialized&&(canCellBeActive(e,o)&&getEditorLock().commitCurrentEdit()&&(scrollCellIntoView(e,o,!1),setActiveCellInternal(getCellNode(e,o),t||e===getDataLength()||options.autoEdit,null,options.editable,l),currentEditor||setFocus()))}function commitCurrentEdit(){var e=getDataItem(activeRow),o=columns[activeCell];if(currentEditor){if(currentEditor.isValueChanged()){var t=currentEditor.validate();if(t.valid){if(activeRow<getDataLength()){var l={row:activeRow,cell:activeCell,editor:currentEditor,serializedValue:currentEditor.serializeValue(),prevSerializedValue:serializedEditorValue,execute:function(){this.editor.applyValue(e,this.serializedValue),updateRow(this.row),trigger(self.onCellChange,{row:this.row,cell:this.cell,item:e})},undo:function(){this.editor.applyValue(e,this.prevSerializedValue),updateRow(this.row),trigger(self.onCellChange,{row:this.row,cell:this.cell,item:e})}};options.editCommandHandler?(makeActiveCellNormal(),options.editCommandHandler(e,o,l)):(l.execute(),makeActiveCellNormal())}else{var n={};currentEditor.applyValue(n,currentEditor.serializeValue()),makeActiveCellNormal(),trigger(self.onAddNewRow,{item:n,column:o})}return!getEditorLock().isActive()}return $(activeCellNode).removeClass("invalid"),$(activeCellNode).width(),$(activeCellNode).addClass("invalid"),trigger(self.onValidationError,{editor:currentEditor,cellNode:activeCellNode,validationResults:t,row:activeRow,cell:activeCell,column:o}),currentEditor.focus(),!1}makeActiveCellNormal()}return!0}function cancelCurrentEdit(){return makeActiveCellNormal(),!0}function rowsToRanges(e){for(var o=[],t=columns.length-1,l=0;l<e.length;l++)o.push(new Slick.Range(e[l],0,e[l],t));return o}function getSelectedRows(){if(!selectionModel)throw new Error("Selection model is not set");return selectedRows}function setSelectedRows(e){if(!selectionModel)throw new Error("Selection model is not set");self&&self.getEditorLock&&!self.getEditorLock().isActive()&&selectionModel.setSelectedRanges(rowsToRanges(e))}this.debug=function(){var e="";e+="\ncounter_rows_rendered: "+counter_rows_rendered,e+="\ncounter_rows_removed: "+counter_rows_removed,e+="\nrenderedRows: "+renderedRows,e+="\nnumVisibleRows: "+numVisibleRows,e+="\nmaxSupportedCssHeight: "+maxSupportedCssHeight,e+="\nn(umber of pages): "+n,e+="\n(current) page: "+page,e+="\npage height (ph): "+ph,e+="\nvScrollDir: "+vScrollDir,alert(e)},this.eval=function(expr){return eval(expr)},$.extend(this,{slickGridVersion:"2.3.23",onScroll:new Slick.Event,onSort:new Slick.Event,onHeaderMouseEnter:new Slick.Event,onHeaderMouseLeave:new Slick.Event,onHeaderContextMenu:new Slick.Event,onHeaderClick:new Slick.Event,onHeaderCellRendered:new Slick.Event,onBeforeHeaderCellDestroy:new Slick.Event,onHeaderRowCellRendered:new Slick.Event,onFooterRowCellRendered:new Slick.Event,onBeforeHeaderRowCellDestroy:new Slick.Event,onBeforeFooterRowCellDestroy:new Slick.Event,onMouseEnter:new Slick.Event,onMouseLeave:new Slick.Event,onClick:new Slick.Event,onDblClick:new Slick.Event,onContextMenu:new Slick.Event,onKeyDown:new Slick.Event,onAddNewRow:new Slick.Event,onBeforeAppendCell:new Slick.Event,onValidationError:new Slick.Event,onViewportChanged:new Slick.Event,onColumnsReordered:new Slick.Event,onColumnsResized:new Slick.Event,onCellChange:new Slick.Event,onBeforeEditCell:new Slick.Event,onBeforeCellEditorDestroy:new Slick.Event,onBeforeDestroy:new Slick.Event,onActiveCellChanged:new Slick.Event,onActiveCellPositionChanged:new Slick.Event,onDragInit:new Slick.Event,onDragStart:new Slick.Event,onDrag:new Slick.Event,onDragEnd:new Slick.Event,onSelectedRowsChanged:new Slick.Event,onCellCssStylesChanged:new Slick.Event,onAutosizeColumns:new Slick.Event,onRendered:new Slick.Event,registerPlugin,unregisterPlugin,getColumns,setColumns,getColumnIndex,updateColumnHeader,setSortColumn,setSortColumns,getSortColumns,autosizeColumns,getOptions,setOptions,getData,getDataLength,getDataItem,setData,getSelectionModel,setSelectionModel,getSelectedRows,setSelectedRows,getContainerNode,updatePagingStatusFromView,render,invalidate,invalidateRow,invalidateRows,invalidateAllRows,updateCell,updateRow,getViewport:getVisibleRange,getRenderedRange,resizeCanvas,updateRowCount,scrollRowIntoView,scrollRowToTop,scrollCellIntoView,scrollColumnIntoView,getCanvasNode,getUID,getHeaderColumnWidthDiff,getScrollbarDimensions,getHeadersWidth,getCanvasWidth,focus:setFocus,scrollTo,getCellFromPoint,getCellFromEvent,getActiveCell,setActiveCell,getActiveCellNode,getActiveCellPosition,resetActiveCell,editActiveCell:makeActiveCellEditable,getCellEditor,getCellNode,getCellNodeBox,canCellBeSelected,canCellBeActive,navigatePrev,navigateNext,navigateUp,navigateDown,navigateLeft,navigateRight,navigatePageUp,navigatePageDown,navigateTop,navigateBottom,navigateRowStart,navigateRowEnd,gotoCell,getTopPanel,setTopPanelVisibility,getPreHeaderPanel,setPreHeaderPanelVisibility,getHeader,getHeaderColumn,setHeaderRowVisibility,getHeaderRow,getHeaderRowColumn,setFooterRowVisibility,getFooterRow,getFooterRowColumn,getGridPosition,flashCell,addCellCssStyles,setCellCssStyles,removeCellCssStyles,getCellCssStyles,init:finishInitialization,destroy,getEditorLock,getEditController}),init()}module.exports={Grid:SlickGrid}},n 433: function _(t,e,a){n /!n * jquery.event.drag - v 2.3.0n * Copyright (c) 2010 Three Dub Media - http://threedubmedia.comn * Open Source MIT License - http://threedubmedia.com/code/licensen */n var n=t(426);n.fn.drag=function(t,e,a){var r="string"==typeof t?t:"",o=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==r.indexOf("drag")&&(r="drag"+r),a=(t==o?e:a)||{},o?this.on(r,a,o):this.trigger(r)};var r=n.event,o=r.special,i=o.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(t){var e=n.data(this,i.datakey),a=t.data||{};e.related+=1,n.each(i.defaults,(function(t,n){void 0!==a[t]&&(e[t]=a[t])}))},remove:function(){n.data(this,i.datakey).related-=1},setup:function(){if(!n.data(this,i.datakey)){var t=n.extend({related:0},i.defaults);n.data(this,i.datakey,t),r.add(this,"touchstart mousedown",i.init,t),this.attachEvent&&this.attachEvent("ondragstart",i.dontstart)}},teardown:function(){(n.data(this,i.datakey)||{}).related||(n.removeData(this,i.datakey),r.remove(this,"touchstart mousedown",i.init),i.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",i.dontstart))},init:function(t){if(!i.touched){var e,a=t.data;if(!(0!=t.which&&a.which>0&&t.which!=a.which)&&!n(t.target).is(a.not)&&(!a.handle||n(t.target).closest(a.handle,t.currentTarget).length)&&(i.touched="touchstart"==t.type?this:null,a.propagates=1,a.mousedown=this,a.interactions=[i.interaction(this,a)],a.target=t.target,a.pageX=t.pageX,a.pageY=t.pageY,a.dragging=null,e=i.hijack(t,"draginit",a),a.propagates))return(e=i.flatten(e))&&e.length&&(a.interactions=[],n.each(e,(function(){a.interactions.push(i.interaction(this,a))}))),a.propagates=a.interactions.length,!1!==a.drop&&o.drop&&o.drop.handler(t,a),i.textselect(!1),i.touched?r.add(i.touched,"touchmove touchend",i.handler,a):r.add(document,"mousemove mouseup",i.handler,a),!(!i.touched||a.live)&&void 0}},interaction:function(t,e){var a=t&&t.ownerDocument&&n(t)[e.relative?"position":"offset"]()||{top:0,left:0};return{drag:t,callback:new i.callback,droppable:[],offset:a}},handler:function(t){var e=t.data;switch(t.type){case!e.dragging&&"touchmove":t.preventDefault();case!e.dragging&&"mousemove":if(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2)<Math.pow(e.distance,2))break;t.target=e.target,i.hijack(t,"dragstart",e),e.propagates&&(e.dragging=!0);case"touchmove":t.preventDefault();case"mousemove":if(e.dragging){if(i.hijack(t,"drag",e),e.propagates){!1!==e.drop&&o.drop&&o.drop.handler(t,e);break}t.type="mouseup"}case"touchend":case"mouseup":default:i.touched?r.remove(i.touched,"touchmove touchend",i.handler):r.remove(document,"mousemove mouseup",i.handler),e.dragging&&(!1!==e.drop&&o.drop&&o.drop.handler(t,e),i.hijack(t,"dragend",e)),i.textselect(!0),!1===e.click&&e.dragging&&n.data(e.mousedown,"suppress.click",(new Date).getTime()+5),e.dragging=i.touched=!1}},hijack:function(t,e,a,o,d){if(a){var s,c,l,p={event:t.originalEvent,type:t.type},u=e.indexOf("drop")?"drag":"drop",g=o||0,h=isNaN(o)?a.interactions.length:o;t.type=e;var f=function(){};t.originalEvent=new n.Event(p.event,{preventDefault:f,stopPropagation:f,stopImmediatePropagation:f}),a.results=[];do{if(c=a.interactions[g]){if("dragend"!==e&&c.cancelled)continue;l=i.properties(t,a,c),c.results=[],n(d||c[u]||a.droppable).each((function(o,d){if(l.target=d,t.isPropagationStopped=function(){return!1},!1===(s=d?r.dispatch.call(d,t,l):null)?("drag"==u&&(c.cancelled=!0,a.propagates-=1),"drop"==e&&(c[u][o]=null)):"dropinit"==e&&c.droppable.push(i.element(s)||d),"dragstart"==e&&(c.proxy=n(i.element(s)||c.drag)[0]),c.results.push(s),delete t.result,"dropinit"!==e)return s})),a.results[g]=i.flatten(c.results),"dropinit"==e&&(c.droppable=i.flatten(c.droppable)),"dragstart"!=e||c.cancelled||l.update()}}while(++g<h);return t.type=p.type,t.originalEvent=p.event,i.flatten(a.results)}},properties:function(t,e,a){var n=a.callback;return n.drag=a.drag,n.proxy=a.proxy||a.drag,n.startX=e.pageX,n.startY=e.pageY,n.deltaX=t.pageX-e.pageX,n.deltaY=t.pageY-e.pageY,n.originalX=a.offset.left,n.originalY=a.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=i.flatten((a.drop||[]).slice()),n.available=i.flatten((a.droppable||[]).slice()),n},element:function(t){if(t&&(t.jquery||1==t.nodeType))return t},flatten:function(t){return n.map(t,(function(t){return t&&t.jquery?n.makeArray(t):t&&t.length?i.flatten(t):t}))},textselect:function(t){n(document)[t?"off":"on"]("selectstart",i.dontstart).css("MozUserSelect",t?"":"none"),document.unselectable=t?"off":"on"},dontstart:function(){return!1},callback:function(){}};i.callback.prototype={update:function(){o.drop&&this.available.length&&n.each(this.available,(function(t){o.drop.locate(this,t)}))}};var d=r.dispatch;r.dispatch=function(t){if(!(n.data(this,"suppress."+t.type)-(new Date).getTime()>0))return d.apply(this,arguments);n.removeData(this,"suppress."+t.type)},o.draginit=o.dragstart=o.dragend=i},n 434: function _(t,e,a){n /!n * jquery.event.drop - v 2.3.0n * Copyright (c) 2010 Three Dub Media - http://threedubmedia.comn * Open Source MIT License - http://threedubmedia.com/code/licensen /n var n=t(426);n.fn.drop=function(t,e,a){var i="string"==typeof t?t:"",o=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==i.indexOf("drop")&&(i="drop"+i),a=(t==o?e:a)||{},o?this.on(i,a,o):this.trigger(i)},n.drop=function(t){t=t||{},o.multi=!0===t.multi?1/0:!1===t.multi?1:isNaN(t.multi)?o.multi:t.multi,o.delay=t.delay||o.delay,o.tolerance=n.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:o.tolerance,o.mode=t.mode||o.mode||"intersect"};var i=n.event.special,o=n.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(t){n.data(this,o.datakey).related+=1},remove:function(){n.data(this,o.datakey).related-=1},setup:function(){if(!n.data(this,o.datakey)){n.data(this,o.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),o.targets.push(this)}},teardown:function(){if(!(n.data(this,o.datakey)||{}).related){n.removeData(this,o.datakey);var t=this;o.targets=n.grep(o.targets,(function(e){return e!==t}))}},handler:function(t,e){var a;if(e)switch(t.type){case"mousedown":case"touchstart":a=n(o.targets),"string"==typeof e.drop&&(a=a.filter(e.drop)),a.each((function(){var t=n.data(this,o.datakey);t.active=[],t.anyactive=0,t.winner=0})),e.droppable=a,i.drag.hijack(t,"dropinit",e);break;case"mousemove":case"touchmove":o.event=t,o.timer||o.tolerate(e);break;case"mouseup":case"touchend":o.timer=clearTimeout(o.timer),e.propagates&&(i.drag.hijack(t,"drop",e),i.drag.hijack(t,"dropend",e))}},locate:function(t,e){var a=n.data(t,o.datakey),i=n(t),r=i.offset()||{},d=i.outerHeight(),l=i.outerWidth(),c={elem:t,width:l,height:d,top:r.top,left:r.left,right:r.left+l,bottom:r.top+d};return a&&(a.location=c,a.index=e,a.elem=t),c},contains:function(t,e){return(e[0]||e.left)>=t.left&&(e[0]||e.right)<=t.right&&(e[1]||e.top)>=t.top&&(e[1]||e.bottom)<=t.bottom},modes:{intersect:function(t,e,a){return this.contains(a,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,a){return Math.max(0,Math.min(a.bottom,e.bottom)-Math.max(a.top,e.top))*Math.max(0,Math.min(a.right,e.right)-Math.max(a.left,e.left))},fit:function(t,e,a){return this.contains(a,e)?1:0},middle:function(t,e,a){return this.contains(a,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(t){var e,a,r,d,l,c,s,u,p=0,h=t.interactions.length,m=[o.event.pageX,o.event.pageY],f=o.tolerance||o.modes[o.mode];do{if(u=t.interactions[p]){if(!u)return;u.drop=[],l=[],c=u.droppable.length,f&&(r=o.locate(u.proxy)),e=0;do{if(s=u.droppable[e]){if(!(a=(d=n.data(s,o.datakey)).location))continue;d.winner=f?f.call(o,o.event,r,a):o.contains(a,m)?1:0,l.push(d)}}while(++e<c);l.sort(o.sort),e=0;do{(d=l[e])&&(d.winner&&u.drop.length<o.multi?(d.active[p]||d.anyactive||(!1!==i.drag.hijack(o.event,"dropstart",t,p,d.elem)[0]?(d.active[p]=1,d.anyactive+=1):d.winner=0),d.winner&&u.drop.push(d.elem)):d.active[p]&&1==d.anyactive&&(i.drag.hijack(o.event,"dropend",t,p,d.elem),d.active[p]=0,d.anyactive-=1))}while(++e<c)}}while(++p<h);o.last&&m[0]==o.last.pageX&&m[1]==o.last.pageY?delete o.timer:o.timer=setTimeout((function(){o.tolerate(t)}),o.delay),o.last=o.event}};i.dropinit=i.dropstart=i.dropend=o},n 435: function _(t,e,n){var r=t(426),i=t(428);var o={Avg:function(t){this.field_=t,this.init=function(){this.count_=0,this.nonNullCount_=0,this.sum_=0},this.accumulate=function(t){var e=t[this.field_];this.count_++,null==e||""===e||isNaN(e)||(this.nonNullCount_++,this.sum_+=parseFloat(e))},this.storeResult=function(t){t.avg||(t.avg={}),0!=this.nonNullCount_&&(t.avg[this.field_]=this.sum_/this.nonNullCount_)}},Min:function(t){this.field_=t,this.init=function(){this.min_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(null==this.min_||e<this.min_)&&(this.min_=e)},this.storeResult=function(t){t.min||(t.min={}),t.min[this.field_]=this.min_}},Max:function(t){this.field_=t,this.init=function(){this.max_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(null==this.max_||e>this.max_)&&(this.max_=e)},this.storeResult=function(t){t.max||(t.max={}),t.max[this.field_]=this.max_}},Sum:function(t){this.field_=t,this.init=function(){this.sum_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(this.sum_+=parseFloat(e))},this.storeResult=function(t){t.sum||(t.sum={}),t.sum[this.field_]=this.sum_}}};e.exports={DataView:function(t){var e,n,o,a,l,s=this,u="id",g=[],c=[],f={},p=null,h=null,d=null,m=!1,v=!0,_={},w={},$=[],y=[],I={getter:null,formatter:null,comparer:function(t,e){return t.value===e.value?0:t.value>e.value?1:-1},predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1},C=[],R=[],x=[],b=0,M=0,F=0,A=new i.Event,S=new i.Event,N=new i.Event;function E(t){for(var e,n=t=t||0,r=g.length;n<r;n++){if(void 0===(e=g[n][u]))throw new Error("Each data element must implement a unique ‘id’ property");f[e]=n}}function T(){var t=b?Math.max(1,Math.ceil(F/b)):1;return{pageSize:b,pageNum:M,totalRows:F,totalPages:t,dataView:s}}function G(t,r){v=r,n=t,e=null,!1===r&&g.reverse(),g.sort(t),!1===r&&g.reverse(),f={},E(),Z()}function D(t,r){v=r,e=t,n=null;var i=Object.prototype.toString;Object.prototype.toString="function"==typeof t?t:function(){return this[t]},!1===r&&g.reverse(),g.sort(),Object.prototype.toString=i,!1===r&&g.reverse(),f={},E(),Z()}function P(e){t.groupItemMetadataProvider||(t.groupItemMetadataProvider=new i.Data.GroupItemMetadataProvider),R=[],x=[],C=(e=e||[])instanceof Array?e:[e];for(var n=0;n<C.length;n++){var o=C[n]=r.extend(!0,{},I,C[n]);o.getterIsAFn="function"==typeof o.getter,o.compiledAccumulators=[];for(var a=o.aggregators.length;a–;)o.compiledAccumulators[a]=W(o.aggregators[a]);x[n]={}}Z()}function j(){if(!p){p={};for(var t=0,e=c.length;t<e;t++)p[c[t][u]]=t}}function z(t){return g[f[t]]}function B(t,e){if(void 0===f[t]||t!==e[u])throw new Error("Invalid or non-matching id");g[f[t]]=e,d||(d={}),d[t]=!0,Z()}function V(t,e){g.splice(t,0,e),E(t),Z()}function O(t){var e=f[t];if(void 0===e)throw new Error("Invalid id");delete f[t],g.splice(e,1),E(e),Z()}function q(t){if(!n)throw new Error("sortedAddItem() requires a sort comparer, use sort()");V(function(t){var e=0,r=g.length;for(;e<r;){var i=e+r>>>1;-1===n(g[i],t)?e=i+1:r=i}return e}(t),t)}function K(t,e){if(null==t)for(var n=0;n<C.length;n++)x[n]={},C[n].collapsed=e;else x[t]={},C[t].collapsed=e;Z()}function U(t,e,n){x[t][e]=C[t].collapsed^n,Z()}function L(t){var e,n=t.group,r=C[n.level],i=n.level==C.length,o=r.aggregators.length;if(!i&&r.aggregateChildGroups)for(var a=n.groups.length;a–;)n.groups[a].totals.initialized||L(n.groups[a].totals);for(;o–;)(e=r.aggregators[o]).init(),!i&&r.aggregateChildGroups?r.compiledAccumulators[o].call(e,n.groups):r.compiledAccumulators[o].call(e,n.rows),e.storeResult(t);t.initialized=!0}function k(t){var e=C[t.level],n=new i.GroupTotals;n.group=t,t.totals=n,e.lazyTotalsCalculation||L(n)}function H(t){var e=t.toString().match(/^function[^(]\(([^)]*)\)\s*{([\s\S]*)}$/);return{params:e[1].split(","),body:e[2]}}function W(t){var e=H(t.accumulate),n=new Function("_items","for (var "+e.params[0]+", _i=0, _il=_items.length; _i<_il; _i++) {"+e.params[0]+" = _items[_i]; "+e.body+"}");return n.displayName=n.name="compiledAccumulatorLoop",n}function J(t,e){for(var n=[],r=0,i=0,o=t.length;i<o;i++)h(t[i],e)&&(n[r++]=t[i]);return n}function Q(t,e,n){for(var r,i=[],o=0,a=0,l=t.length;a<l;a++)r=t[a],n[a]?i[o++]=r:h(r,e)&&(i[o++]=r,n[a]=!0);return i}function X(e){if(h){var n=t.inlineFilters?a:J,r=t.inlineFilters?l:Q;_.isFilterNarrowing?$=n($,o):_.isFilterExpanding?$=r(e,o,y):_.isFilterUnchanged||($=n(e,o))}else $=b?e:e.concat();var i;return b?($.length<=M*b&&(M=0===$.length?0:Math.floor(($.length-1)/b)),i=$.slice(b*M,b*M+b)):i=$,{totalRows:$.length,rows:i}}function Y(t){p=null,_.isFilterNarrowing==w.isFilterNarrowing&&_.isFilterExpanding==w.isFilterExpanding||(y=[]);var e=X(t);F=e.totalRows;var n=e.rows;R=[],C.length&&(R=function t(e,n){for(var r,o,a,l=[],s={},u=n?n.level+1:0,g=C[u],c=0,f=g.predefinedValues.length;c<f;c++)(r=s[o=g.predefinedValues[c]])||((r=new i.Group).value=o,r.level=u,r.groupingKey=(n?n.groupingKey+":|:\":\"\")+o,l[l.length]=r,s[o]=r);for(c=0,f=e.length;c<f;c++)a=e[c],(r=s[o=g.getterIsAFn?g.getter(a):a[g.getter]])||((r=new i.Group).value=o,r.level=u,r.groupingKey=(n?n.groupingKey+\":|:":"")+o,l[l.length]=r,s[o]=r),r.rows[r.count++]=a;if(u<C.length-1)for(c=0;c<l.length;c++)(r=l[c]).groups=t(r.rows,r);return l.sort(C[u].comparer),l}(n)).length&&(!function t(e,n){for(var r,i=C[n=n||0],o=i.collapsed,a=x[n],l=e.length;l–;)(r=e[l]).collapsed&&!i.aggregateCollapsed||(r.groups&&t(r.groups,n+1),i.aggregators.length&&(i.aggregateEmpty||r.rows.length||r.groups&&r.groups.length)&&k(r),r.collapsed=o^a[r.groupingKey],r.title=i.formatter?i.formatter(r):r.value)}(R),n=function t(e,n){for(var r,i,o=C[n=n||0],a=[],l=0,s=0,u=e.length;s<u;s++){if(i=e[s],a[l++]=i,!i.collapsed)for(var g=0,c=(r=i.groups?t(i.groups,n+1):i.rows).length;g<c;g++)a[l++]=r[g];i.totals&&o.displayTotalsRow&&(!i.collapsed||o.aggregateCollapsed)&&(a[l++]=i.totals)}return a}(R));var r=function(t,e){var n,r,i,o=[],a=0,l=e.length;_&&_.ignoreDiffsBefore&&(a=Math.max(0,Math.min(e.length,_.ignoreDiffsBefore))),_&&_.ignoreDiffsAfter&&(l=Math.min(e.length,Math.max(0,_.ignoreDiffsAfter)));for(var s=a,g=t.length;s<l;s++)s>=g?o[o.length]=s:(n=e[s],r=t[s],(C.length&&(i=n.__nonDataRow||r.__nonDataRow)&&n.__group!==r.__group||n.__group&&!n.equals(r)||i&&(n.__groupTotals||r.__groupTotals)||n[u]!=r[u]||d&&d[n[u]])&&(o[o.length]=s));return o}(c,n);return c=n,r}function Z(){if(!m){var t=c.length,e=F,n=Y(g);b&&F<M*b&&(M=Math.max(0,Math.ceil(F/b)-1),n=Y(g)),d=null,w=_,_={},e!==F&&N.notify(T(),null,s),t!==c.length&&A.notify({previous:t,current:c.length,dataView:s},null,s),n.length>0&&S.notify({rows:n,dataView:s},null,s)}}t=r.extend(!0,{},{groupItemMetadataProvider:null,inlineFilters:!1},t),r.extend(this,{beginUpdate:function(){m=!0},endUpdate:function(){m=!1,Z()},setPagingOptions:function(t){null!=t.pageSize&&(b=t.pageSize,M=b?Math.min(M,Math.max(0,Math.ceil(F/b)-1)):0),null!=t.pageNum&&(M=Math.min(t.pageNum,Math.max(0,Math.ceil(F/b)-1))),N.notify(T(),null,s),Z()},getPagingInfo:T,getItems:function(){return g},setItems:function(t,e){void 0!==e&&(u=e),g=$=t,f={},E(),function(){for(var t,e=0,n=g.length;e<n;e++)if(void 0===(t=g[e][u])||f[t]!==e)throw new Error("Each data element must implement a unique ‘id’ property")}(),Z()},setFilter:function(e){h=e,t.inlineFilters&&(a=function(){var t=H(h),e="{ _retval[_idx++] = $item$; continue _coreloop; }$1",n=t.body.replace(/return false\s*([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return!1([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return true\s*([;}]|\}|$)/gi,e).replace(/return!0([;}]|\}|$)/gi,e).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),r=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");r=(r=(r=r.replace(/\$filter\$/gi,n)).replace(/\$item\$/gi,t.params[0])).replace(/\$args\$/gi,t.params[1]);var i=new Function("_items,_args",r);return i.displayName=i.name="compiledFilter",i}(),l=function(){var t=H(h),e="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",n=t.body.replace(/return false\s*([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return!1([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return true\s*([;}]|\}|$)/gi,e).replace(/return!0([;}]|\}|$)/gi,e).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),r=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");r=(r=(r=r.replace(/\$filter\$/gi,n)).replace(/\$item\$/gi,t.params[0])).replace(/\$args\$/gi,t.params[1]);var i=new Function("_items,_args,_cache",r);return i.displayName=i.name="compiledFilterWithCaching",i}()),Z()},getFilter:function(){return h},getFilteredItems:function(){return $},sort:G,fastSort:D,reSort:function(){n?G(n,v):e&&D(e,v)},setGrouping:P,getGrouping:function(){return C},groupBy:function(t,e,n){P(null!=t?{getter:t,formatter:e,comparer:n}:[])},setAggregators:function(t,e){if(!C.length)throw new Error("At least one grouping must be specified before calling setAggregators().");C[0].aggregators=t,C[0].aggregateCollapsed=e,P(C)},collapseAllGroups:function(t){K(t,!0)},expandAllGroups:function(t){K(t,!1)},collapseGroup:function(t){var e=Array.prototype.slice.call(arguments),n=e[0];1==e.length&&-1!=n.indexOf(":|:\")?U(n.split(\":|:").length-1,n,!0):U(e.length-1,e.join(":|:\"),!0)},expandGroup:function(t){var e=Array.prototype.slice.call(arguments),n=e[0];1==e.length&&-1!=n.indexOf(\":|:")?U(n.split(":|:\").length-1,n,!1):U(e.length-1,e.join(\":|:"),!1)},getGroups:function(){return R},getIdxById:function(t){return f[t]},getRowByItem:function(t){return j(),p[t[u]]},getRowById:function(t){return j(),p[t]},getItemById:z,getItemByIdx:function(t){return g[t]},mapItemsToRows:function(t){var e=[];j();for(var n=0,r=t.length;n<r;n++){var i=p[t[n][u]];null!=i&&(e[e.length]=i)}return e},mapRowsToIds:function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]<c.length&&(e[e.length]=c[t[n]][u]);return e},mapIdsToRows:function(t){var e=[];j();for(var n=0,r=t.length;n<r;n++){var i=p[t[n]];null!=i&&(e[e.length]=i)}return e},setRefreshHints:function(t){_=t},setFilterArgs:function(t){o=t},refresh:Z,updateItem:B,insertItem:V,addItem:function(t){g.push(t),E(g.length-1),Z()},deleteItem:O,sortedAddItem:q,sortedUpdateItem:function(t,e){if(void 0===f[t]||t!==e[u])throw new Error("Invalid or non-matching id "+f[t]);if(!n)throw new Error("sortedUpdateItem() requires a sort comparer, use sort()");var r=z(t);0!==n(r,e)?(O(t),q(e)):B(t,e)},syncGridSelection:function(t,e,n){var o,a=this,l=a.mapRowsToIds(t.getSelectedRows()),s=new i.Event;function u(e){l.join(",")!=e.join(",")&&(l=e,s.notify({grid:t,ids:l,dataView:a},new i.EventData,a))}function g(){if(l.length>0){o=!0;var n=a.mapIdsToRows(l);e||u(a.mapRowsToIds(n)),t.setSelectedRows(n),o=!1}}return t.onSelectedRowsChanged.subscribe((function(e,i){if(!o){var s=a.mapRowsToIds(t.getSelectedRows());if(n&&t.getOptions().multiSelect)u(r.grep(l,(function(t){return void 0===a.getRowById(t)})).concat(s));else u(s)}})),this.onRowsChanged.subscribe(g),this.onRowCountChanged.subscribe(g),s},syncGridCellCssStyles:function(t,e){var n,r;function i(t){for(var e in n={},t){var r=c[e][u];n[r]=t[e]}}function o(){if(n){r=!0,j();var i={};for(var o in n){var a=p[o];null!=a&&(i[a]=n[o])}t.setCellCssStyles(e,i),r=!1}}i(t.getCellCssStyles(e)),t.onCellCssStylesChanged.subscribe((function(n,a){r||e==a.key&&(a.hash?i(a.hash):(t.onCellCssStylesChanged.unsubscribe(styleChanged),s.onRowsChanged.unsubscribe(o),s.onRowCountChanged.unsubscribe(o)))})),this.onRowsChanged.subscribe(o),this.onRowCountChanged.subscribe(o)},getLength:function(){return c.length},getItem:function(t){var e=c[t];if(e&&e.__group&&e.totals&&!e.totals.initialized){var n=C[e.level];n.displayTotalsRow||(L(e.totals),e.title=n.formatter?n.formatter(e):e.value)}else e&&e.__groupTotals&&!e.initialized&&L(e);return e},getItemMetadata:function(e){var n=c[e];return void 0===n?null:n.__group?t.groupItemMetadataProvider.getGroupRowMetadata(n):n.__groupTotals?t.groupItemMetadataProvider.getTotalsRowMetadata(n):null},onRowCountChanged:A,onRowsChanged:S,onPagingInfoChanged:N})},Aggregators:o,Data:{Aggregators:o}}},n 436: function _(e,t,i){var n=e(426),o=e(428);function l(e){var t,i;function o(){var t=e.column.editorFixedDecimalPlaces;return void 0===t&&(t=l.DefaultDecimalPlaces),t||0===t?t:null}this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field];var l=o();null!==l&&(i||0===i)&&i.toFixed&&(i=i.toFixed(l)),t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){var e=parseFloat(t.val());l.AllowEmptyValue?e||0===e||(e=""):e=e||0;var i=o();return null!==i&&(e||0===e)&&e.toFixed&&(e=parseFloat(e.toFixed(i))),e},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(isNaN(t.val()))return{valid:!1,msg:"Please enter a valid number"};if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()}function a(e){var t=this.selectionStart,i=this.value.length;(e.keyCode===n.ui.keyCode.LEFT&&t>0||e.keyCode===n.ui.keyCode.RIGHT&&t<i-1)&&e.stopImmediatePropagation()}function s(e){e.keyCode!==n.ui.keyCode.LEFT&&e.keyCode!==n.ui.keyCode.RIGHT||e.stopImmediatePropagation()}l.DefaultDecimalPlaces=null,l.AllowEmptyValue=!1,t.exports={Editors:{Text:function(e){var t,i;this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.getValue=function(){return t.val()},this.setValue=function(e){t.val(e)},this.loadValue=function(n){i=n[e.column.field]||"",t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},Integer:function(e){var t,i;this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field],t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return parseInt(t.val(),10)||0},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(isNaN(t.val()))return{valid:!1,msg:"Please enter a valid integer"};if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},Float:l,Date:function(e){var t,i,o=!1;this.init=function(){(t=n("<INPUT type=text class=’editor-text’ />")).appendTo(e.container),t.focus().select(),t.datepicker({showOn:"button",buttonImageOnly:!0,beforeShow:function(){o=!0},onClose:function(){o=!1}}),t.width(t.width()-18)},this.destroy=function(){n.datepicker.dpDiv.stop(!0,!0),t.datepicker("hide"),t.datepicker("destroy"),t.remove()},this.show=function(){o&&n.datepicker.dpDiv.stop(!0,!0).show()},this.hide=function(){o&&n.datepicker.dpDiv.stop(!0,!0).hide()},this.position=function(e){o&&n.datepicker.dpDiv.css("top",e.top+30).css("left",e.left)},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field],t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},YesNoSelect:function(e){var t,i;this.init=function(){(t=n("<SELECT tabIndex=’0’ class=’editor-yesno’><OPTION value=’yes’>Yes</OPTION><OPTION value=’no’>No</OPTION></SELECT>")).appendTo(e.container),t.focus()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){t.val((i=n[e.column.field])?"yes":"no"),t.select()},this.serializeValue=function(){return"yes"==t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return t.val()!=i},this.validate=function(){return{valid:!0,msg:null}},this.init()},Checkbox:function(e){var t,i;this.init=function(){(t=n("<INPUT type=checkbox value=’true’ class=’editor-checkbox’ hideFocus>")).appendTo(e.container),t.focus()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){(i=!!n[e.column.field])?t.prop("checked",!0):t.prop("checked",!1)},this.preClick=function(){t.prop("checked",!t.prop("checked"))},this.serializeValue=function(){return t.prop("checked")},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return this.serializeValue()!==i},this.validate=function(){return{valid:!0,msg:null}},this.init()},PercentComplete:function(e){var t,i,o;this.init=function(){(t=n("<INPUT type=text class=’editor-percentcomplete’ />")).width(n(e.container).innerWidth()-25),t.appendTo(e.container),(i=n("<div class=’editor-percentcomplete-picker’ />").appendTo(e.container)).append("<div class=’editor-percentcomplete-helper’><div class=’editor-percentcomplete-wrapper’><div class=’editor-percentcomplete-slider’ /><div class=’editor-percentcomplete-buttons’ /></div></div>"),i.find(".editor-percentcomplete-buttons").append("<button val=0>Not started</button><br/><button val=50>In Progress</button><br/><button val=100>Complete</button>"),t.focus().select(),i.find(".editor-percentcomplete-slider").slider({orientation:"vertical",range:"min",value:o,slide:function(e,i){t.val(i.value)}}),i.find(".editor-percentcomplete-buttons button").on("click",(function(e){t.val(n(this).attr("val")),i.find(".editor-percentcomplete-slider").slider("value",n(this).attr("val"))}))},this.destroy=function(){t.remove(),i.remove()},this.focus=function(){t.focus()},this.loadValue=function(i){t.val(o=i[e.column.field]),t.select()},this.serializeValue=function(){return parseInt(t.val(),10)||0},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==o)&&(parseInt(t.val(),10)||0)!=o},this.validate=function(){return isNaN(parseInt(t.val(),10))?{valid:!1,msg:"Please enter a valid positive number"}:{valid:!0,msg:null}},this.init()},LongText:function(e){var t,i,l,a=this;this.init=function(){var o=n("body");e.grid.getOptions().editorCellNavOnLRKeys;i=n("<DIV style=’z-index:10000;position:absolute;background:white;padding:5px;border:3px solid gray; -moz-border-radius:10px; border-radius:10px;’/>").appendTo(o),t=n("<TEXTAREA hidefocus rows=5 style=’background:white;width:250px;height:80px;border:0;outline:0’>").appendTo(i),n("<DIV style=’text-align:right’><BUTTON>Save</BUTTON><BUTTON>Cancel</BUTTON></DIV>").appendTo(i),i.find("button:first").on("click",this.save),i.find("button:last").on("click",this.cancel),t.on("keydown",this.handleKeyDown),a.position(e.position),t.focus().select()},this.handleKeyDown=function(t){if(t.which==o.keyCode.ENTER&&t.ctrlKey)a.save();else if(t.which==o.keyCode.ESCAPE)t.preventDefault(),a.cancel();else if(t.which==o.keyCode.TAB&&t.shiftKey)t.preventDefault(),e.grid.navigatePrev();else if(t.which==o.keyCode.TAB)t.preventDefault(),e.grid.navigateNext();else if((t.which==n.ui.keyCode.LEFT||t.which==n.ui.keyCode.RIGHT)&&e.grid.getOptions().editorCellNavOnLRKeys){var i=this.selectionStart,l=this.value.length;t.keyCode===n.ui.keyCode.LEFT&&0===i&&e.grid.navigatePrev(),t.keyCode===n.ui.keyCode.RIGHT&&i>=l-1&&e.grid.navigateNext()}},this.save=function(){e.commitChanges()},this.cancel=function(){t.val(l),e.cancelChanges()},this.hide=function(){i.hide()},this.show=function(){i.show()},this.position=function(e){i.css("top",e.top-5).css("left",e.left-5)},this.destroy=function(){i.remove()},this.focus=function(){t.focus()},this.loadValue=function(i){t.val(l=i[e.column.field]),t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==l)&&t.val()!=l},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()}}}},n 437: function _(e,n,r){e(428);n.exports={Formatters:{PercentComplete:function(e,n,r,t,c){return null==r||""===r?"-":r<50?"<span style=’color:red;font-weight:bold;’>"+r+"%</span>":"<span style=’color:green’>"+r+"%</span>"},PercentCompleteBar:function(e,n,r,t,c){return null==r||""===r?"":"<span class=’percent-complete-bar’ style=’background:"+(r<30?"red":r<70?"silver":"green")+";width:"+r+"%’></span>"},YesNo:function(e,n,r,t,c){return r?"Yes":"No"},Checkmark:function(e,n,r,t,c){return r?"<img src=’../images/tick.png’>":""},Checkbox:function(e,n,r,t,c){return’<img class="slick-edit-preclick" src="../images/’+(r?"CheckboxY":"CheckboxN")+’.png">’}}}},n 438: function _(t,o,r){var e=t(426),n=t(428);o.exports={RemoteModel:function(){var t={length:0},o="",r=null,a=1,l=null,i=null,s=new n.Event,u=new n.Event;function f(){for(var o in t)delete t[o];t.length=0}function c(n,f){if(i){i.abort();for(var c=i.fromPage;c<=i.toPage;c++)t[50*c]=void 0}n<0&&(n=0),t.length>0&&(f=Math.min(f,t.length-1));for(var d=Math.floor(n/50),v=Math.floor(f/50);void 0!==t[50*d]&&d<v;)d++;for(;void 0!==t[50*v]&&d<v;)v–;if(d>v||d==v&&void 0!==t[50*d])u.notify({from:n,to:f});else{var m="http://octopart.com/api/v3/parts/search?apikey=68b25f31&include[]=short_description&show[]=uid&show[]=manufacturer&show[]=mpn&show[]=brand&show[]=octopart_url&show[]=short_description&q="+o+"&start="+50*d+"&limit="+(50*(v-d)+50);null!=r&&(m+="&sortby="+r+(a>0?"+asc":"+desc")),null!=l&&clearTimeout(l),l=setTimeout((function(){for(var o=d;o<=v;o++)t[50*o]=null;s.notify({from:n,to:f}),(i=e.jsonp({url:m,callbackParameter:"callback",cache:!0,success:h,error:function(){!function(t,o){alert("error loading pages "+t+" to "+o)}(d,v)}})).fromPage=d,i.toPage=v}),50)}}function h(o){var r=o.request.start,e=r+o.results.length;t.length=Math.min(parseInt(o.hits),1e3);for(var n=0;n<o.results.length;n++){var a=o.results[n].item;t[r+n]=a,t[r+n].index=r+n}i=null,u.notify({from:r,to:e})}return{data:t,clear:f,isDataLoaded:function(o,r){for(var e=o;e<=r;e++)if(null==t[e]||null==t[e])return!1;return!0},ensureData:c,reloadData:function(o,r){for(var e=o;e<=r;e++)delete t[e];c(o,r)},setSort:function(t,o){r=t,a=o,f()},setSearch:function(t){o=t,f()},onDataLoading:s,onDataLoaded:u}}}},n 439: function _(e,s,t){var a=e(426),o=e(428);s.exports={GroupItemMetadataProvider:function(e){var s,t={checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:function(s,t,a,o,l,c){if(!e.enableExpandCollapse)return l.title;var r=15*l.level+"px";return(e.checkboxSelect?’<span class="’+e.checkboxSelectCssClass+" "+(l.selectChecked?"checked":"unchecked")+’"></span>’:"")+"<span class=’"+e.toggleCssClass+" "+(l.collapsed?e.toggleCollapsedCssClass:e.toggleExpandedCssClass)+"’ style=’margin-left:"+r+"’></span><span class=’"+e.groupTitleCssClass+"’ level=’"+l.level+"’>"+l.title+"</span>"},totalsFormatter:function(e,s,t,a,o,l){return a.groupTotalsFormatter&&a.groupTotalsFormatter(o,a,l)||""}};function l(t,l){var c=a(t.target),r=this.getDataItem(l.row);if(r&&r instanceof o.Group&&c.hasClass(e.toggleCssClass)){var n=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:n.top,ignoreDiffsAfter:n.bottom+1}),r.collapsed?this.getData().expandGroup(r.groupingKey):this.getData().collapseGroup(r.groupingKey),t.stopImmediatePropagation(),t.preventDefault()}if(r&&r instanceof o.Group&&c.hasClass(e.checkboxSelectCssClass)){r.selectChecked=!r.selectChecked,c.removeClass(r.selectChecked?"unchecked":"checked"),c.addClass(r.selectChecked?"checked":"unchecked");var i=s.getData().mapItemsToRows(r.rows);(r.selectChecked?e.checkboxSelectPlugin.selectRows:e.checkboxSelectPlugin.deSelectRows)(i)}}function c(t,a){if(e.enableExpandCollapse&&t.which==o.keyCode.SPACE){var l=this.getActiveCell();if(l){var c=this.getDataItem(l.row);if(c&&c instanceof o.Group){var r=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:r.top,ignoreDiffsAfter:r.bottom+1}),c.collapsed?this.getData().expandGroup(c.groupingKey):this.getData().collapseGroup(c.groupingKey),t.stopImmediatePropagation(),t.preventDefault()}}}}return e=a.extend(!0,{},t,e),{init:function(e){(s=e).onClick.subscribe(l),s.onKeyDown.subscribe(c)},destroy:function(){s&&(s.onClick.unsubscribe(l),s.onKeyDown.unsubscribe(c))},getGroupRowMetadata:function(s){return{selectable:!1,focusable:e.groupFocusable,cssClasses:e.groupCssClass,columns:{0:{colspan:"",formatter:e.groupFormatter,editor:null}}}},getTotalsRowMetadata:function(s){return{selectable:!1,focusable:e.totalsFocusable,cssClasses:e.totalsCssClass,formatter:e.totalsFormatter,editor:null}}}}}},n 440: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),n=e(441),c=e(95),a=s.__importStar(e(19));class o extends n.Widget{constructor(e){super(e)}static init_TableWidget(){this.define({source:[a.Instance],view:[a.Instance,()=>new c.CDSView]})}initialize(){super.initialize(),null==this.view.source&&(this.view.source=this.source,this.view.compute_indices())}}t.TableWidget=o,o.__name__="TableWidget",o.init_TableWidget()},n 441: function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=i(1),n=i(247),r=o.__importStar(i(19));class _ extends n.HTMLBoxView{_width_policy(){return"horizontal"==this.model.orientation?super._width_policy():"fixed"}_height_policy(){return"horizontal"==this.model.orientation?"fixed":super._height_policy()}box_sizing(){const i=super.box_sizing();return"horizontal"==this.model.orientation?null==i.width&&(i.width=this.model.default_size):null==i.height&&(i.height=this.model.default_size),i}}t.WidgetView=_,_.__name__="WidgetView";class s extends n.HTMLBox{constructor(i){super(i)}static init_Widget(){this.define({orientation:[r.Orientation,"horizontal"],default_size:[r.Number,300]}),this.override({margin:[5,5,5,5]})}}t.Widget=s,s.__name__="Widget",s.init_Widget()},n 442: function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0});const l=n(1);n(67),n(443),l.__importStar(n(66)).styles.append(‘.bk-root .bk-data-table {\n box-sizing: content-box;\n font-size: 11px;\n}\n.bk-root .bk-data-table input[type="checkbox"] {\n margin-left: 4px;\n margin-right: 4px;\n}\n.bk-root .bk-cell-special-defaults {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n}\n.bk-root .bk-cell-select {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n}\n.bk-root .bk-cell-index {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n text-align: right;\n color: gray;\n}\n.bk-root .bk-header-index .slick-column-name {\n float: right;\n}\n.bk-root .slick-row.selected .bk-cell-index {\n background-color: transparent;\n}\n.bk-root .slick-cell {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .slick-cell.active {\n border-style: dashed;\n}\n.bk-root .slick-cell.editable {\n padding-left: 0;\n padding-right: 0;\n}\n.bk-root .bk-cell-editor input,\n.bk-root .bk-cell-editor select {\n width: 100%;\n height: 100%;\n border: 0;\n margin: 0;\n padding: 0;\n outline: 0;\n background: transparent;\n vertical-align: baseline;\n}\n.bk-root .bk-cell-editor input {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .bk-cell-editor-completion {\n font-size: 11px;\n}\n’),t.bk_data_table="bk-data-table",t.bk_cell_index="bk-cell-index",t.bk_header_index="bk-header-index",t.bk_cell_editor="bk-cell-editor",t.bk_cell_select="bk-cell-select"},n 443: function _(A,n,o){Object.defineProperty(o,"__esModule",{value:!0});const e=A(1);A(67),e.__importStar(A(66)).styles.append(‘.bk-root {\n /\nIMPORTANT:\nIn order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.\nNo built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS\nclasses should alter those!\n*/\n /\nIMPORTANT:\nIn order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.\nNo built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS\nclasses should alter those!\n/\n /* Menu button /\n / Menu /\n / Menu items /\n / Disabled /\n}\n.bk-root .slick-header.ui-state-default,\n.bk-root .slick-headerrow.ui-state-default,\n.bk-root .slick-footerrow.ui-state-default,\n.bk-root .slick-top-panel-scroller.ui-state-default {\n width: 100%;\n overflow: auto;\n position: relative;\n border-left: 0px !important;\n}\n.bk-root .slick-header.ui-state-default {\n overflow: inherit;\n}\n.bk-root .slick-header::-webkit-scrollbar,\n.bk-root .slick-headerrow::-webkit-scrollbar,\n.bk-root .slick-footerrow::-webkit-scrollbar {\n display: none;\n}\n.bk-root .slick-header-columns,\n.bk-root .slick-headerrow-columns,\n.bk-root .slick-footerrow-columns {\n position: relative;\n white-space: nowrap;\n cursor: default;\n overflow: hidden;\n}\n.bk-root .slick-header-column.ui-state-default {\n position: relative;\n display: inline-block;\n box-sizing: content-box !important;\n / this here only for Firefox! /\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n height: 16px;\n line-height: 16px;\n margin: 0;\n padding: 4px;\n border-right: 1px solid silver;\n border-left: 0px !important;\n border-top: 0px !important;\n border-bottom: 0px !important;\n float: left;\n}\n.bk-root .slick-headerrow-column.ui-state-default,\n.bk-root .slick-footerrow-column.ui-state-default {\n padding: 4px;\n}\n.bk-root .slick-header-column-sorted {\n font-style: italic;\n}\n.bk-root .slick-sort-indicator {\n display: inline-block;\n width: 8px;\n height: 5px;\n margin-left: 4px;\n margin-top: 6px;\n float: left;\n}\n.bk-root .slick-sort-indicator-numbered {\n display: inline-block;\n width: 8px;\n height: 5px;\n margin-left: 4px;\n margin-top: 0;\n line-height: 20px;\n float: left;\n font-family: Arial;\n font-style: normal;\n font-weight: bold;\n color: #6190CD;\n}\n.bk-root .slick-sort-indicator-desc {\n background: url(images/sort-desc.gif);\n}\n.bk-root .slick-sort-indicator-asc {\n background: url(images/sort-asc.gif);\n}\n.bk-root .slick-resizable-handle {\n position: absolute;\n font-size: 0.1px;\n display: block;\n cursor: col-resize;\n width: 9px;\n right: -5px;\n top: 0;\n height: 100%;\n z-index: 1;\n}\n.bk-root .slick-sortable-placeholder {\n background: silver;\n}\n.bk-root .grid-canvas {\n position: relative;\n outline: 0;\n}\n.bk-root .slick-row.ui-widget-content,\n.bk-root .slick-row.ui-state-active {\n position: absolute;\n border: 0px;\n width: 100%;\n}\n.bk-root .slick-cell,\n.bk-root .slick-headerrow-column,\n.bk-root .slick-footerrow-column {\n position: absolute;\n border: 1px solid transparent;\n border-right: 1px dotted silver;\n border-bottom-color: silver;\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n vertical-align: middle;\n z-index: 1;\n padding: 1px 2px 2px 1px;\n margin: 0;\n white-space: nowrap;\n cursor: default;\n}\n.bk-root .slick-cell,\n.bk-root .slick-headerrow-column {\n border-bottom-color: silver;\n}\n.bk-root .slick-footerrow-column {\n border-top-color: silver;\n}\n.bk-root .slick-group-toggle {\n display: inline-block;\n}\n.bk-root .slick-cell.highlighted {\n background: lightskyblue;\n background: rgba(0, 0, 255, 0.2);\n -webkit-transition: all 0.5s;\n -moz-transition: all 0.5s;\n -o-transition: all 0.5s;\n transition: all 0.5s;\n}\n.bk-root .slick-cell.flashing {\n border: 1px solid red !important;\n}\n.bk-root .slick-cell.editable {\n z-index: 11;\n overflow: visible;\n background: white;\n border-color: black;\n border-style: solid;\n}\n.bk-root .slick-cell:focus {\n outline: none;\n}\n.bk-root .slick-reorder-proxy {\n display: inline-block;\n background: blue;\n opacity: 0.15;\n cursor: move;\n}\n.bk-root .slick-reorder-guide {\n display: inline-block;\n height: 2px;\n background: blue;\n opacity: 0.7;\n}\n.bk-root .slick-selection {\n z-index: 10;\n position: absolute;\n border: 2px dashed black;\n}\n.bk-root .slick-header-columns {\n background: url(\’images/header-columns-bg.gif\’) repeat-x center bottom;\n border-bottom: 1px solid silver;\n}\n.bk-root .slick-header-column {\n background: url(\’images/header-columns-bg.gif\’) repeat-x center bottom;\n border-right: 1px solid silver;\n}\n.bk-root .slick-header-column:hover,\n.bk-root .slick-header-column-active {\n background: white url(\’images/header-columns-over-bg.gif\’) repeat-x center bottom;\n}\n.bk-root .slick-headerrow {\n background: #fafafa;\n}\n.bk-root .slick-headerrow-column {\n background: #fafafa;\n border-bottom: 0;\n height: 100%;\n}\n.bk-root .slick-row.ui-state-active {\n background: #F5F7D7;\n}\n.bk-root .slick-row {\n position: absolute;\n background: white;\n border: 0px;\n line-height: 20px;\n}\n.bk-root .slick-row.selected {\n z-index: 10;\n background: #DFE8F6;\n}\n.bk-root .slick-cell {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .slick-group {\n border-bottom: 2px solid silver;\n}\n.bk-root .slick-group-toggle {\n width: 9px;\n height: 9px;\n margin-right: 5px;\n}\n.bk-root .slick-group-toggle.expanded {\n background: url(images/collapse.gif) no-repeat center center;\n}\n.bk-root .slick-group-toggle.collapsed {\n background: url(images/expand.gif) no-repeat center center;\n}\n.bk-root .slick-group-totals {\n color: gray;\n background: white;\n}\n.bk-root .slick-group-select-checkbox {\n width: 13px;\n height: 13px;\n margin: 3px 10px 0 0;\n display: inline-block;\n}\n.bk-root .slick-group-select-checkbox.checked {\n background: url(images/GrpCheckboxY.png) no-repeat center center;\n}\n.bk-root .slick-group-select-checkbox.unchecked {\n background: url(images/GrpCheckboxN.png) no-repeat center center;\n}\n.bk-root .slick-cell.selected {\n background-color: beige;\n}\n.bk-root .slick-cell.active {\n border-color: gray;\n border-style: solid;\n}\n.bk-root .slick-sortable-placeholder {\n background: silver !important;\n}\n.bk-root .slick-row.odd {\n background: #fafafa;\n}\n.bk-root .slick-row.ui-state-active {\n background: #F5F7D7;\n}\n.bk-root .slick-row.loading {\n opacity: 0.5;\n}\n.bk-root .slick-cell.invalid {\n border-color: red;\n -moz-animation-duration: 0.2s;\n -webkit-animation-duration: 0.2s;\n -moz-animation-name: slickgrid-invalid-hilite;\n -webkit-animation-name: slickgrid-invalid-hilite;\n}\n@-moz-keyframes slickgrid-invalid-hilite {\n from {\n box-shadow: 0 0 6px red;\n }\n to {\n box-shadow: none;\n }\n}\n@-webkit-keyframes slickgrid-invalid-hilite {\n from {\n box-shadow: 0 0 6px red;\n }\n to {\n box-shadow: none;\n }\n}\n.bk-root .slick-column-name,\n.bk-root .slick-sort-indicator {\n /*\n * This makes all "float:right" elements after it that spill over to the next line\n * display way below the lower boundary of the column thus hiding them.\n /\n display: inline-block;\n float: left;\n margin-bottom: 100px;\n}\n.bk-root .slick-header-button {\n display: inline-block;\n float: right;\n vertical-align: top;\n margin: 1px;\n /*\n * This makes all "float:right" elements after it that spill over to the next line\n * display way below the lower boundary of the column thus hiding them.\n /\n margin-bottom: 100px;\n height: 15px;\n width: 15px;\n background-repeat: no-repeat;\n background-position: center center;\n cursor: pointer;\n}\n.bk-root .slick-header-button-hidden {\n width: 0;\n -webkit-transition: 0.2s width;\n -ms-transition: 0.2s width;\n transition: 0.2s width;\n}\n.bk-root .slick-header-column:hover > .slick-header-button {\n width: 15px;\n}\n.bk-root .slick-header-menubutton {\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 14px;\n background-repeat: no-repeat;\n background-position: left center;\n background-image: url(../images/down.gif);\n cursor: pointer;\n display: none;\n border-left: thin ridge silver;\n}\n.bk-root .slick-header-column:hover > .slick-header-menubutton,\n.bk-root .slick-header-column-active .slick-header-menubutton {\n display: inline-block;\n}\n.bk-root .slick-header-menu {\n position: absolute;\n display: inline-block;\n margin: 0;\n padding: 2px;\n cursor: default;\n}\n.bk-root .slick-header-menuitem {\n list-style: none;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n.bk-root .slick-header-menuicon {\n display: inline-block;\n width: 16px;\n height: 16px;\n vertical-align: middle;\n margin-right: 4px;\n background-repeat: no-repeat;\n background-position: center center;\n}\n.bk-root .slick-header-menucontent {\n display: inline-block;\n vertical-align: middle;\n}\n.bk-root .slick-header-menuitem-disabled {\n color: silver;\n}\n.bk-root .slick-columnpicker {\n border: 1px solid #718BB7;\n background: #f0f0f0;\n padding: 6px;\n -moz-box-shadow: 2px 2px 2px silver;\n -webkit-box-shadow: 2px 2px 2px silver;\n box-shadow: 2px 2px 2px silver;\n min-width: 150px;\n cursor: default;\n position: absolute;\n z-index: 20;\n overflow: auto;\n resize: both;\n}\n.bk-root .slick-columnpicker > .close {\n float: right;\n}\n.bk-root .slick-columnpicker .title {\n font-size: 16px;\n width: 60%;\n border-bottom: solid 1px #d6d6d6;\n margin-bottom: 10px;\n}\n.bk-root .slick-columnpicker li {\n list-style: none;\n margin: 0;\n padding: 0;\n background: none;\n}\n.bk-root .slick-columnpicker input {\n margin: 4px;\n}\n.bk-root .slick-columnpicker li a {\n display: block;\n padding: 4px;\n font-weight: bold;\n}\n.bk-root .slick-columnpicker li a:hover {\n background: white;\n}\n.bk-root .slick-pager {\n width: 100%;\n height: 26px;\n border: 1px solid gray;\n border-top: 0;\n background: url(\’../images/header-columns-bg.gif\’) repeat-x center bottom;\n vertical-align: middle;\n}\n.bk-root .slick-pager .slick-pager-status {\n display: inline-block;\n padding: 6px;\n}\n.bk-root .slick-pager .ui-icon-container {\n display: inline-block;\n margin: 2px;\n border-color: gray;\n}\n.bk-root .slick-pager .slick-pager-nav {\n display: inline-block;\n float: left;\n padding: 2px;\n}\n.bk-root .slick-pager .slick-pager-settings {\n display: block;\n float: right;\n padding: 2px;\n}\n.bk-root .slick-pager .slick-pager-settings * {\n vertical-align: middle;\n}\n.bk-root .slick-pager .slick-pager-settings a {\n padding: 2px;\n text-decoration: underline;\n cursor: pointer;\n}\n.bk-root .slick-header-columns {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n.bk-root .slick-header-column {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n.bk-root .slick-header-column:hover,\n.bk-root .slick-header-column-active {\n background-image: url("data:image/gif;base64,R0lGODlhAgAWAIcAAKrM9tno++vz/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABYAAAgUAAUIHEiwoIAACBMqXMhwIQAAAQEAOw==");\n}\n.bk-root .slick-group-toggle.expanded {\n background-image: url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIMwADCBxIUIDBgwIEChgwwECBAgQUFjBAkaJCABgxGlB4AGHCAAIQiBypEEECkScJqgwQEAA7");\n}\n.bk-root .slick-group-toggle.collapsed {\n background-image: url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIOAADCBxIUIDBgwIEChgwAECBAgQUFjAAQIABAwoBaNSIMYCAAwIqGlSIAEHFkiQTIBCgkqDLAAEBADs=");\n}\n.bk-root .slick-group-select-checkbox.checked {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAAEcSURBVChTjdI9S8NQFAbg/raQXVwCRRFE7GK7OXTwD+ikk066VF3a0ja0hQTyQdJrwNq0zrYSQRLEXMSWSlCIb8glqRcFD+9yz3nugXwU4n9XQqMoGjj36uBJsTwuaNo3EwBG4Yy7pe7Gv8YcvhJCGFVsjxsjxujj6OTSGlHv+U2WZUZbPWKOv1ZjT5a7pbIoiptbO5b73mwrjHa1B27l8VlTEIS1damlTnEE+EEN9/P8WrfH81qdAIGeXvTTmzltdCy46sEhxpKUINReZR9NnqZbr9puugxV3NjWh/k74WmmEdWhmUNy2jNmWRc6fZTVADCqao52u+DGWTACYNT3fRxwtatPufTNR4yCIGAUn5hS+vJHhWGY/ANx/A3tvdv+1tZmuwAAAABJRU5ErkJggg==");\n}\n.bk-root .slick-group-select-checkbox.unchecked {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAACXSURBVChT1dIxC4MwEAXg/v8/VOhQVDBNakV0KA6pxS4JhWRSIYPEJxwdDi1de7wleR+3JIf486w0hKCKRpSvvOhZcCmvNQBRuKqdah03U7UjNNH81rOaBYDo8SQaPX8JANFEaLaGBeAPaaY61rGksiN6TmR5H1j9CSoAosYYHLA7vTxYMvVEZa0liif23r93xjm3/oEYF8PiDn/I2FHCAAAAAElFTkSuQmCC");\n}\n.bk-root .slick-sort-indicator-desc {\n background-image: url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgeAAUAGEgQgIAACBEKLHgwYcKFBh1KFNhQosOKEgMCADs=");\n}\n.bk-root .slick-sort-indicator-asc {\n background-image: url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgbAAMIDABgoEGDABIeRJhQ4cKGEA8KmEiRosGAADs=");\n}\n.bk-root .slick-header-menubutton {\n background-image: url("data:image/gif;base64,R0lGODlhDgAOAIABADtKYwAAACH5BAEAAAEALAAAAAAOAA4AAAISjI+py+0PHZgUsGobhTn6DxoFADs=");\n}\n.bk-root .slick-pager {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n’)},n 444: function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),o=i.__importDefault(t(157)),a=i.__importStar(t(159)),n=t(445),s=i.__importStar(t(19)),c=t(66),l=t(8),m=t(69);class _ extends m.Model{constructor(t){super(t)}doFormat(t,e,r,i,o){return null==r?"":(r+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}}r.CellFormatter=_,_.__name__="CellFormatter";class u extends _{constructor(t){super(t)}static init_StringFormatter(){this.define({font_style:[s.FontStyle,"normal"],text_align:[s.TextAlign,"left"],text_color:[s.Color]})}doFormat(t,e,r,i,o){const{font_style:a,text_align:n,text_color:s}=this,l=c.div({},null==r?"":`${r}`);switch(a){case"bold":l.style.fontWeight="bold";break;case"italic":l.style.fontStyle="italic"}return null!=n&&(l.style.textAlign=n),null!=s&&(l.style.color=s),l.outerHTML}}r.StringFormatter=u,u.__name__="StringFormatter",u.init_StringFormatter();class F extends u{constructor(t){super(t)}static init_ScientificFormatter(){this.define({precision:[s.Number,10],power_limit_high:[s.Number,5],power_limit_low:[s.Number,-3]})}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}doFormat(t,e,r,i,o){const a=r<=this.scientific_limit_low||r>=this.scientific_limit_high;let n=this.precision;return n<1&&(n=1),r=a?r.toExponential(n):r.toFixed(n).replace(/(\.[0-9]?)0+$/,"$1").replace(/\.$/,""),super.doFormat(t,e,r,i,o)}}r.ScientificFormatter=F,F.__name__="ScientificFormatter",F.init_ScientificFormatter();class d extends u{constructor(t){super(t)}static init_NumberFormatter(){this.define({format:[s.String,"0,0"],language:[s.String,"en"],rounding:[s.RoundingFunction,"round"]})}doFormat(t,e,r,i,o){const{format:n,language:s}=this,c=(()=>{switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}})();return r=a.format(r,n,s,c),super.doFormat(t,e,r,i,o)}}r.NumberFormatter=d,d.__name__="NumberFormatter",d.init_NumberFormatter();class g extends _{constructor(t){super(t)}static init_BooleanFormatter(){this.define({icon:[s.String,"check"]})}doFormat(t,e,r,i,o){return r?c.i({class:this.icon}).outerHTML:""}}r.BooleanFormatter=g,g.__name__="BooleanFormatter",g.init_BooleanFormatter();class p extends _{constructor(t){super(t)}static init_DateFormatter(){this.define({format:[s.String,"ISO-8601"]})}getFormat(){switch(this.format){case"ATOM":case"W3C":case"RFC-3339":case"ISO-8601":return"%Y-%m-%d";case"COOKIE":return"%a, %d %b %Y";case"RFC-850":return"%A, %d-%b-%y";case"RFC-1123":case"RFC-2822":return"%a, %e %b %Y";case"RSS":case"RFC-822":case"RFC-1036":return"%a, %e %b %y";case"TIMESTAMP":return;default:return this.format}}doFormat(t,e,r,i,a){r=l.isString(r)?parseInt(r,10):r;const n=o.default(r,this.getFormat());return super.doFormat(t,e,n,i,a)}}r.DateFormatter=p,p.__name__="DateFormatter",p.init_DateFormatter();class h extends _{constructor(t){super(t)}static init_HTMLTemplateFormatter(){this.define({template:[s.String,"<%= value %>"]})}doFormat(t,e,r,i,o){const{template:a}=this;if(null==r)return"";return n._.template(a)(Object.assign(Object.assign({},o),{value:r}))}}r.HTMLTemplateFormatter=h,h.__name__="HTMLTemplateFormatter",h.init_HTMLTemplateFormatter()},n 445: function _(e,n,t){var f=e(446),i=f.template;function o(e,n,t){return i(e,n,t)}o._=f,n.exports=o,"function"==typeof define&&define.amd?define((function(){return o})):"undefined"==typeof window&&"undefined"==typeof navigator||(window.UnderscoreTemplate=o)},n 446: function _(r,e,n){n // (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n var t={},a=Array.prototype,u=Object.prototype,c=a.slice,o=u.toString,l=u.hasOwnProperty,i=a.forEach,f=Object.keys,s=Array.isArray,p=function(){},_=p.each=p.forEach=function(r,e,n){if(null!=r)if(i&&r.forEach===i)r.forEach(e,n);else if(r.length===+r.length){for(var a=0,u=r.length;a<u;a++)if(e.call(n,r[a],a,r)===t)return}else{var c=p.keys(r);for(a=0,u=c.length;a<u;a++)if(e.call(n,r[c[a]],c[a],r)===t)return}};p.keys=f||function(r){if(r!==Object(r))throw new TypeError("Invalid object");var e=[];for(var n in r)p.has(r,n)&&e.push(n);return e},p.defaults=function(r){return _(c.call(arguments,1),(function(e){if(e)for(var n in e)void 0===r[n]&&(r[n]=e[n])})),r},p.isArray=s||function(r){return"[object Array]"===o.call(r)},p.has=function(r,e){if(!p.isArray(e))return null!=r&&l.call(r,e);for(var n=e.length,t=0;t<n;t++){var a=e[t];if(null==r||!l.call(r,a))return!1;r=r[a]}return!!n};var h={escape:{"&":"&","<":"<",">":">",’"’:""","’":"'"}},v={escape:new RegExp("["+p.keys(h.escape).join("")+"]","g")};p.each(["escape"],(function(r){p[r]=function(e){return null==e?"":(""+e).replace(v[r],(function(e){return h[r][e]}))}})),p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,y={"’":"’","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},j=/\\|’|\\r|\n|\t|\u2028|\u2029/g;p.template=function(r,e,n){var t;n=p.defaults({},n,p.templateSettings);var a=new RegExp([(n.escape||g).source,(n.interpolate||g).source,(n.evaluate||g).source].join("|\")+\"|$\",\"g\"),u=0,c=\"__p+='\";r.replace(a,(function(e,n,t,a,o){return c+=r.slice(u,o).replace(j,(function(r){return\"\\\\\"+y[r]})),n&&(c+=\"'+\\n((__t=(\"+n+\"))==null?'':_.escape(__t))+\\n'\"),t&&(c+=\"'+\\n((__t=(\"+t+\"))==null?'':__t)+\\n'\"),a&&(c+=\"';\\n\"+a+\"\\n__p+='\"),u=o+e.length,e})),c+=\"';\\n\",n.variable||(c=\"with(obj||{}){\\n\"+c+\"}\\n\"),c=\"var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\\n\"+c+\"return __p;\\n\";try{t=new Function(n.variable||"obj","_",c)}catch(r){throw r.source=c,r}if(e)return t(e,p);var o=function(r){return t.call(this,r,p)};return o.source="function("+(n.variable||"obj")+"){\n"+c+"}",o},e.exports=p},n 447: function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(1),o=t(444),n=t(423),a=r.__importStar(t(19)),l=t(26),s=t(69);class d extends s.Model{constructor(t){super(t)}static init_TableColumn(){this.define({field:[a.String],title:[a.String],width:[a.Number,300],formatter:[a.Instance,()=>new o.StringFormatter],editor:[a.Instance,()=>new n.StringEditor],sortable:[a.Boolean,!0],default_sort:[a.Sort,"ascending"]})}toColumn(){return{id:l.uniqueId(),field:this.field,name:this.title,width:this.width,formatter:null!=this.formatter?this.formatter.doFormat.bind(this.formatter):void 0,model:this.editor,editor:this.editor.default_view,sortable:this.sortable,defaultSortAsc:"ascending"==this.default_sort}}}i.TableColumn=d,d.__name__="TableColumn",d.init_TableColumn()},n 448: function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const r=t(1),a=t(431),{Avg:i,Min:o,Max:g,Sum:n}=a.Data.Aggregators,u=r.__importStar(t(19)),c=t(69);class _ extends c.Model{constructor(t){super(t)}static init_RowAggregator(){this.define({field_:[u.String,""]})}}s.RowAggregator=_,_.__name__="RowAggregator",_.init_RowAggregator();const l=new i;class m extends _{constructor(){super(…arguments),this.key="avg",this.init=l.init,this.accumulate=l.accumulate,this.storeResult=l.storeResult}}s.AvgAggregator=m,m.__name__="AvgAggregator";const h=new o;class A extends _{constructor(){super(…arguments),this.key="min",this.init=h.init,this.accumulate=h.accumulate,this.storeResult=h.storeResult}}s.MinAggregator=A,A.__name__="MinAggregator";const R=new g;class d extends _{constructor(){super(…arguments),this.key="max",this.init=R.init,this.accumulate=R.accumulate,this.storeResult=R.storeResult}}s.MaxAggregator=d,d.__name__="MaxAggregator";const x=new n;class w extends _{constructor(){super(…arguments),this.key="sum",this.init=x.init,this.accumulate=x.accumulate,this.storeResult=x.storeResult}}s.SumAggregator=w,w.__name__="SumAggregator"},n 449: function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t(1).__importStar(t(19)),r=t(66),i=t(431),a=t(424),n=t(69);function l(t,e,s,o,i){const{collapsed:a,level:n,title:l}=i,u=r.span({class:slick-group-toggle ${a?"collapsed":"expanded"},style:{"margin-left":${15*n}px}}),g=r.span({class:"slick-group-title",level:n},l);return`${u.outerHTML}${g.outerHTML}`}function u(t,e){const s=this.getDataItem(e.row);s instanceof i.Group&&t.target.classList.contains("slick-group-toggle")&&(s.collapsed?this.getData().expandGroup(s.groupingKey):this.getData().collapseGroup(s.groupingKey),t.stopImmediatePropagation(),t.preventDefault(),this.invalidate(),this.render())}class g extends n.Model{constructor(t){super(t)}static init_GroupingInfo(){this.define({getter:[o.String,""],aggregators:[o.Array,[]],collapsed:[o.Boolean,!1]})}get comparer(){return(t,e)=>t.value===e.value?0:t.value>e.value?1:-1}}s.GroupingInfo=g,g.__name__="GroupingInfo",g.init_GroupingInfo();class c extends a.TableDataProvider{constructor(t,e,s,o){super(t,e),this.columns=s,this.groupingInfos=[],this.groupingDelimiter=":|:\",this.target=o}setGrouping(t){this.groupingInfos=t,this.toggledGroupsByLevel=t.map(()=>({})),this.refresh()}extractGroups(t,e){const s=[],o=new Map,r=e?e.level+1:0,{comparer:a,getter:n}=this.groupingInfos[r];return t.forEach(t=>{const a=this.source.data[n][t];let l=o.get(a);if(!l){const t=e?`${e.groupingKey}${this.groupingDelimiter}${a}`:`${a}`;l=Object.assign(new i.Group,{value:a,level:r,groupingKey:t}),s.push(l),o.set(a,l)}l.rows.push(t)}),r<this.groupingInfos.length-1&&s.forEach(t=>{t.groups=this.extractGroups(t.rows,t)}),s.sort(a),s}calculateTotals(t,e){const s={avg:{},max:{},min:{},sum:{}},{source:{data:o}}=this,r=Object.keys(o),i=t.rows.map(t=>r.reduce((e,s)=>Object.assign(Object.assign({},e),{[s]:o[s][t]}),{}));return e.forEach(t=>{t.init(),i.forEach(e=>t.accumulate(e)),t.storeResult(s)}),s}addTotals(t,e=0){const{aggregators:s,collapsed:o}=this.groupingInfos[e],r=this.toggledGroupsByLevel[e];t.forEach(t=>{t.groups&&this.addTotals(t.groups,e+1),s.length&&t.rows.length&&(t.totals=this.calculateTotals(t,s)),t.collapsed=o!==r[t.groupingKey],t.title=t.value?`${t.value}`:\"\"})}flattenedGroupedRows(t,e=0){const s=[];return t.forEach(t=>{if(s.push(t),!t.collapsed){const o=t.groups?this.flattenedGroupedRows(t.groups,e+1):t.rows;s.push(...o)}}),s}refresh(){const t=this.extractGroups(this.view.indices),e=this.source.data[this.columns[0].field];t.length&&(this.addTotals(t),this.rows=this.flattenedGroupedRows(t),this.target.data={row_indices:this.rows.map(t=>t instanceof i.Group?t.rows:t),labels:this.rows.map(t=>t instanceof i.Group?t.title:e[t])})}getLength(){return this.rows.length}getItem(t){const e=this.rows[t],{source:{data:s}}=this;return e instanceof i.Group?e:Object.keys(s).reduce((t,o)=>Object.assign(Object.assign({},t),{[o]:s[o][e]}),{[a.DTINDEX_NAME]:e})}getItemMetadata(t){const e=this.rows[t],s=this.columns.slice(1),o=e instanceof i.Group?this.groupingInfos[e.level].aggregators:[];return e instanceof i.Group?{selectable:!1,focusable:!1,cssClasses:\"slick-group\",columns:[{formatter:l},...s.map((function(t){const{field:e,formatter:s}=t,r=o.find(({field_:t})=>t===e);if(r){const{key:t}=r;return{formatter:(o,r,i,a,n)=>s?s(o,r,n.totals[t][e],a,n):\"\"}}return{}}))]}:{}}collapseGroup(t){const e=t.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[e][t]=!this.groupingInfos[e].collapsed,this.refresh()}expandGroup(t){const e=t.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed,this.refresh()}}s.DataCubeProvider=c,c.__name__=\"DataCubeProvider\";class p extends a.DataTableView{render(){const t={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:!1,forceFitColumns:this.model.fit_columns,multiColumnSort:!1,editable:this.model.editable,autoEdit:!1,rowHeight:this.model.row_height},e=this.model.columns.map(t=>t.toColumn());var s,o;e[0].formatter=(s=e[0].formatter,o=this.model.grouping.length,(t,e,i,a,n)=>{const l=r.span({class:\"slick-group-toggle\",style:{\"margin-left\":`${15*(o||0)}px`}}),u=s?s(t,e,i,a,n):`${i}`;return`${l.outerHTML}${u&&u.replace(/^<div/,\"<span\").replace(/div>$/,\"span>\")}`}),delete e[0].editor,this.data=new c(this.model.source,this.model.view,e,this.model.target),this.data.setGrouping(this.model.grouping),this.el.style.width=`${this.model.width}px`,this.grid=new i.Grid(this.el,this.data,e,t),this.grid.onClick.subscribe(u)}}s.DataCubeView=p,p.__name__=\"DataCubeView\";class h extends a.DataTable{constructor(t){super(t)}static init_DataCube(){this.prototype.default_view=p,this.define({grouping:[o.Array,[]],target:[o.Instance]})}}s.DataCube=h,h.__name__=\"DataCube\",h.init_DataCube()},\n }, 421, {\"models/widgets/tables/main\":421,\"models/widgets/tables/index\":422,\"models/widgets/tables/cell_editors\":423,\"models/widgets/tables/data_table\":424,\"models/widgets/tables/table_widget\":440,\"models/widgets/widget\":441,\"styles/widgets/tables\":442,\"styles/widgets/slickgrid\":443,\"models/widgets/tables/cell_formatters\":444,\"models/widgets/tables/table_column\":447,\"models/widgets/tables/row_aggregators\":448,\"models/widgets/tables/data_cube\":449}, {});\n })\n\n\n /* END bokeh-tables.min.js */\n },\n \n function(Bokeh) {\n /* BEGIN bokeh-gl.min.js */\n /*!\n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n * \n * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n * \n * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n * \n * Neither the name of Anaconda nor the names of any contributors\n * may be used to endorse or promote products derived from this software\n * without specific prior written permission.\n * \n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\n * THE POSSIBILITY OF SUCH DAMAGE.\n */\n (function(root, factory) {\n factory(root[\"Bokeh\"], \"2.0.2\");\n })(this, function(Bokeh, version) {\n var define;\n return (function(modules, entry, aliases, externals) {\n const bokeh = typeof Bokeh !== \"undefined\" && (version != null ? Bokeh[version] : Bokeh);\n if (bokeh != null) {\n return bokeh.register_plugin(modules, entry, aliases);\n } else {\n throw new Error(\"Cannot find Bokeh \" + version + \". You have to load it prior to loading plugins.\");\n }\n })\n ({\n 357: function _(e,n,o){Object.defineProperty(o,\"__esModule\",{value:!0}),e(358)},\n 358: function _(e,t,_){Object.defineProperty(_,\"__esModule\",{value:!0});const o=e(1);\n /*\n Copyright notice: many of the awesome techniques and GLSL code contained in\n this module are based on work by Nicolas Rougier as part of the Glumpy and\n Vispy projects. The algorithms are published in\n http://jcgt.org/published/0003/04/01/ and http://jcgt.org/published/0002/02/08/\n \n This module contains all gl-specific code to add gl support for the glyphs.\n By implementing it separetely, the GL functionality can be spun off in a\n separate library.\n Other locations where we work with GL, or prepare for GL-rendering:\n - canvas.ts\n - plot.ts\n - glyph.ts\n - glyph_renderer.ts\n */o.__exportStar(e(359),_),o.__exportStar(e(364),_)},\n 359: function _(t,e,s){Object.defineProperty(s,\"__esModule\",{value:!0});const i=t(360),a=t(361),n=t(362),_=t(363),o=t(21);class h{constructor(t){this._atlas={},this._index=0,this._width=256,this._height=256,this.tex=new i.Texture2D(t),this.tex.set_wrapping(t.REPEAT,t.REPEAT),this.tex.set_interpolation(t.NEAREST,t.NEAREST),this.tex.set_size([this._height,this._width],t.RGBA),this.tex.set_data([0,0],[this._height,this._width],new Uint8Array(this._height*this._width*4)),this.get_atlas_data([1])}get_atlas_data(t){const e=t.join(\"-\");if(void 0===this._atlas[e]){const[s,i]=this.make_pattern(t);this.tex.set_data([this._index,0],[1,this._width],new Uint8Array(s.map(t=>t+10))),this._atlas[e]=[this._index/this._height,i],this._index+=1}return this._atlas[e]}make_pattern(t){t.length>1&&t.length%2&&(t=t.concat(t));let e=0;for(const s of t)e+=s;const s=[];let i=0;for(let e=0,a=t.length+2;e<a;e+=2){const a=Math.max(1e-4,t[e%t.length]),n=Math.max(1e-4,t[(e+1)%t.length]);s.push(i,i+a),i+=a+n}const a=this._width,n=new Float32Array(4*a);for(let t=0,i=a;t<i;t++){let i,_,o;const h=e*t/(a-1);let r=0,l=1e16;for(let t=0,e=s.length;t<e;t++){const e=Math.abs(s[t]-h);e<l&&(r=t,l=e)}r%2==0?(o=h<=s[r]?1:0,_=s[r],i=s[r+1]):(o=h>s[r]?-1:0,_=s[r-1],i=s[r]),n[4*t+0]=s[r],n[4*t+1]=o,n[4*t+2]=_,n[4*t+3]=i}return[n,e]}}h.__name__=\"DashAtlas\";const r={miter:0,round:1,bevel:2},l={\"\":0,none:0,\".\":0,round:1,\")\":1,\"(\":1,o:1,\"triangle in\":2,\"<\":2,\"triangle out\":3,\">\":3,square:4,\"[\":4,\"]\":4,\"=\":4,butt:5,\"|":5};class g extends a.BaseGLGlyph{init(){const{gl:t}=this;this._scale_aspect=0;const e=n.vertex_shader,s=_.fragment_shader;this.prog=new i.Program(t),this.prog.set_shaders(e,s),this.index_buffer=new i.IndexBuffer(t),this.vbo_position=new i.VertexBuffer(t),this.vbo_tangents=new i.VertexBuffer(t),this.vbo_segment=new i.VertexBuffer(t),this.vbo_angles=new i.VertexBuffer(t),this.vbo_texcoord=new i.VertexBuffer(t),this.dash_atlas=new h(t)}draw(t,e,s){const i=e.glglyph;if(i.data_changed){if(!isFinite(s.dx)||!isFinite(s.dy))return;i._baked_offset=[s.dx,s.dy],i._set_data(),i.data_changed=!1}this.visuals_changed&&(this._set_visuals(),this.visuals_changed=!1);let{sx:a,sy:n}=s;const _=Math.sqrt(a*a+n*n);a/=_,n/=_,Math.abs(this._scale_aspect-n/a)>Math.abs(.001*this._scale_aspect)&&(i._update_scale(a,n),this._scale_aspect=n/a),this.prog.set_attribute("a_position","vec2",i.vbo_position),this.prog.set_attribute("a_tangents","vec4",i.vbo_tangents),this.prog.set_attribute("a_segment","vec2",i.vbo_segment),this.prog.set_attribute("a_angles","vec2",i.vbo_angles),this.prog.set_attribute("a_texcoord","vec2",i.vbo_texcoord),this.prog.set_uniform("u_length","float",[i.cumsum]),this.prog.set_texture("u_dash_atlas",this.dash_atlas.tex);const o=i._baked_offset;if(this.prog.set_uniform("u_pixel_ratio","float",[s.pixel_ratio]),this.prog.set_uniform("u_canvas_size","vec2",[s.width,s.height]),this.prog.set_uniform("u_offset","vec2",[s.dx-o[0],s.dy-o[1]]),this.prog.set_uniform("u_scale_aspect","vec2",[a,n]),this.prog.set_uniform("u_scale_length","float",[_]),this.I_triangles=i.I_triangles,this.I_triangles.length<65535)this.index_buffer.set_size(2*this.I_triangles.length),this.index_buffer.set_data(0,new Uint16Array(this.I_triangles)),this.prog.draw(this.gl.TRIANGLES,this.index_buffer);else{t=Array.from(this.I_triangles);const e=this.I_triangles.length,s=64008,a=[];for(let t=0,i=Math.ceil(e/s);t<i;t++)a.push([]);for(let e=0,i=t.length;e<i;e++){const i=t[e]%s;a[Math.floor(t[e]/s)].push(i)}for(let t=0,e=a.length;t<e;t++){const e=new Uint16Array(a[t]),n=t*s*4;0!==e.length&&(this.prog.set_attribute("a_position","vec2",i.vbo_position,0,2*n),this.prog.set_attribute("a_tangents","vec4",i.vbo_tangents,0,4*n),this.prog.set_attribute("a_segment","vec2",i.vbo_segment,0,2*n),this.prog.set_attribute("a_angles","vec2",i.vbo_angles,0,2*n),this.prog.set_attribute("a_texcoord","vec2",i.vbo_texcoord,0,2*n),this.index_buffer.set_size(2*e.length),this.index_buffer.set_data(0,e),this.prog.draw(this.gl.TRIANGLES,this.index_buffer))}}}_set_data(){this._bake(),this.vbo_position.set_size(4*this.V_position.length),this.vbo_position.set_data(0,this.V_position),this.vbo_tangents.set_size(4*this.V_tangents.length),this.vbo_tangents.set_data(0,this.V_tangents),this.vbo_angles.set_size(4*this.V_angles.length),this.vbo_angles.set_data(0,this.V_angles),this.vbo_texcoord.set_size(4*this.V_texcoord.length),this.vbo_texcoord.set_data(0,this.V_texcoord)}_set_visuals(){const t=o.color2rgba(this.glyph.visuals.line.line_color.value(),this.glyph.visuals.line.line_alpha.value()),e=l[this.glyph.visuals.line.line_cap.value()],s=r[this.glyph.visuals.line.line_join.value()];this.prog.set_uniform("u_color","vec4",t),this.prog.set_uniform("u_linewidth","float",[this.glyph.visuals.line.line_width.value()]),this.prog.set_uniform("u_antialias","float",[.9]),this.prog.set_uniform("u_linecaps","vec2",[e,e]),this.prog.set_uniform("u_linejoin","float",[s]),this.prog.set_uniform("u_miter_limit","float",[10]);const i=this.glyph.visuals.line.line_dash.value();let a=0,n=1;i.length&&([a,n]=this.dash_atlas.get_atlas_data(i)),this.prog.set_uniform("u_dash_index","float",[a]),this.prog.set_uniform("u_dash_phase","float",[this.glyph.visuals.line.line_dash_offset.value()]),this.prog.set_uniform("u_dash_period","float",[n]),this.prog.set_uniform("u_dash_caps","vec2",[e,e]),this.prog.set_uniform("u_closed","float",[0])}_bake(){let t,e,s,i,a,n,_,o;const h=this.nvertices,r=new Float64Array(this.glyph._x),l=new Float64Array(this.glyph._y),g=_=new Float32Array(2*h),f=new Float32Array(2*h),u=o=new Float32Array(4*h);for(let t=0,e=h;t<e;t++)g[2*t+0]=r[t]+this._baked_offset[0],g[2*t+1]=l[t]+this._baked_offset[1];this.tangents=e=new Float32Array(2*h-2);for(let t=0,s=h-1;t<s;t++)e[2*t+0]=_[2*(t+1)+0]-_[2*t+0],e[2*t+1]=_[2*(t+1)+1]-_[2*t+1];for(let t=0,s=h-1;t<s;t++)u[4*(t+1)+0]=e[2*t+0],u[4*(t+1)+1]=e[2*t+1],u[4*t+2]=e[2*t+0],u[4*t+3]=e[2*t+1];u[0]=e[0],u[1]=e[1],u[4*(h-1)+2]=e[2*(h-2)+0],u[4*(h-1)+3]=e[2*(h-2)+1];const c=new Float32Array(h);for(let t=0,e=h;t<e;t++)c[t]=Math.atan2(o[4*t+0]*o[4*t+3]-o[4*t+1]*o[4*t+2],o[4*t+0]*o[4*t+2]+o[4*t+1]*o[4*t+3]);for(let t=0,e=h-1;t<e;t++)f[2*t+0]=c[t],f[2*t+1]=c[t+1];const d=4*h-4;this.V_position=i=new Float32Array(2*d),this.V_angles=s=new Float32Array(2*d),this.V_tangents=a=new Float32Array(4*d),this.V_texcoord=n=new Float32Array(2*d);for(let t=0,e=h;t<e;t++)for(let e=0;e<4;e++){for(let a=0;a<2;a++)i[2*(4*t+e-2)+a]=g[2*t+a],s[2*(4*t+e)+a]=f[2*t+a];for(let s=0;s<4;s++)a[4*(4*t+e-2)+s]=u[4*t+s]}for(let t=0,e=h;t<e;t++)n[2*(4*t+0)+0]=-1,n[2*(4*t+1)+0]=-1,n[2*(4*t+2)+0]=1,n[2*(4*t+3)+0]=1,n[2*(4*t+0)+1]=-1,n[2*(4*t+1)+1]=1,n[2*(4*t+2)+1]=-1,n[2*(4*t+3)+1]=1;const p=6*(h-1);this.I_triangles=t=new Uint32Array(p);for(let e=0,s=h;e<s;e++)t[6*e+0]=0+4*e,t[6*e+1]=1+4*e,t[6*e+2]=3+4*e,t[6*e+3]=2+4*e,t[6*e+4]=0+4*e,t[6*e+5]=3+4*e}_update_scale(t,e){let s;const i=this.nvertices,a=4*i-4,n=this.tangents,_=new Float32Array(i-1),o=new Float32Array(2*i);this.V_segment=s=new Float32Array(2*a);for(let s=0,a=i-1;s<a;s++)_[s]=Math.sqrt((n[2*s+0]*t)**2+(n[2*s+1]*e)**2);let h=0;for(let t=0,e=i-1;t<e;t++)h+=_[t],o[2*(t+1)+0]=h,o[2*t+1]=h;for(let t=0,e=i;t<e;t++)for(let e=0;e<4;e++)for(let i=0;i<2;i++)s[2*(4*t+e)+i]=o[2*t+i];this.cumsum=h,this.vbo_segment.set_size(4*this.V_segment.length),this.vbo_segment.set_data(0,this.V_segment)}}s.LineGLGlyph=g,g.__name__="LineGLGlyph"},n 360: function _(t,e,r){var n,o,i,a,s,l,h,u,c,_=function(t,e){return Array.isArray(t)&&Array.isArray(e)?t.concat(e):t+e},f=function(t,e){if(null==e);else{if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(p(t,e[r]))return!0;return!1}if(e.constructor===Object){for(var n in e)if(t==n)return!0;return!1}if(e.constructor==String)return e.indexOf(t)>=0}var o=Error("Not a container: "+e);throw o.name="TypeError",o},p=function t(e,r){if(null==e||null==r);else{if(Array.isArray(e)&&Array.isArray(r)){for(var n=0,o=e.length==r.length;o&&n<e.length;)o=t(e[n],r[n]),n+=1;return o}if(e.constructor===Object&&r.constructor===Object){var i=Object.keys(e),a=Object.keys(r);i.sort(),a.sort();var s;for(n=0,o=t(i,a);o&&n<i.length;)o=t(e[s=i[n]],r[s]),n+=1;return o}}return e==r},d=function(t,e){if(void 0===t||"undefined"!=typeof window&&window===t||"undefined"!=typeof global&&global===t)throw"Class constructor is called as a function.";for(var r in t)void 0!==Object[r]||"function"!=typeof t[r]||t[r].nobind||(t[r]=t[r].bind(t));t.__init__&&t.__init__.apply(t,e)},y=function(t,e){if(("number"==typeof t)+("number"==typeof e)===1){if(t.constructor===String)return A.call(t,e);if(e.constructor===String)return A.call(e,t);if(Array.isArray(e)){var r=t;t=e,e=r}if(Array.isArray(t)){for(var n=[],o=0;o<e;o++)n=n.concat(t);return n}}return t*e},g=function(t){return null===t||"object"!=typeof t?t:void 0!==t.length?!!t.length&&t:void 0!==t.byteLength?!!t.byteLength&&t:t.constructor!==Object||!!Object.getOwnPropertyNames(t).length&&t},v=function(t){if(!Array.isArray(this))return this.append.apply(this,arguments);this.push(t)},m=function(t,e){return this.constructor!==Object?this.get.apply(this,arguments):void 0!==this[t]?this[t]:void 0!==e?e:null},x=function(){return"function"==typeof this.keys?this.keys.apply(this,arguments):Object.keys(this)},b=function(t){if(this.constructor!==String)return this.lstrip.apply(this,arguments);t=void 0===t?" \t\r\n":t;for(var e=0;e<this.length;e++)if(t.indexOf(this[e])<0)return this.slice(e);return""},E=function(t){if(!Array.isArray(this))return this.remove.apply(this,arguments);for(var e=0;e<this.length;e++)if(p(this[e],t))return void this.splice(e,1);var r=Error(t);throw r.name="ValueError",r},A=function(t){if(this.repeat)return this.repeat(t);if(t<1)return"";for(var e="",r=this.valueOf();t>1;)1&t&&(e+=r),t>>=1,r+=r;return e+r},w=function(t){return this.constructor!==String?this.startswith.apply(this,arguments):0==this.indexOf(t)};c=window.console,u=function(t,e){var r,n,o,i,a,s,l;for(e=void 0===e?"periodic check":e,i=[];n=t.getError(),!(p(n,t.NO_ERROR)||g(i)&&p(n,i[i.length-1]));)v.call(i,n);if(i.length){for(a="","object"!=typeof(s=i)||Array.isArray(s)||(s=Object.keys(s)),l=0;l<s.length;l+=1)r=s[l],a=_(a,r);throw(o=new Error("RuntimeError:OpenGL got errors ("+e+"): "+a)).name="RuntimeError",o}return null},(o=function(){d(this,arguments)}).prototype._base_class=Object,o.prototype._class_name="GlooObject",o.prototype.__init__=function(t){if(this._gl=t,this.handle=null,this._create(),null===this.handle)throw"AssertionError: this.handle !== null";return null},o.prototype._create=function(){var t;throw(t=new Error("NotImplementedError:")).name="NotImplementedError",t},((a=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,a.prototype._class_name="Program",a.prototype.UTYPEMAP={float:"uniform1fv",vec2:"uniform2fv",vec3:"uniform3fv",vec4:"uniform4fv",int:"uniform1iv",ivec2:"uniform2iv",ivec3:"uniform3iv",ivec4:"uniform4iv",bool:"uniform1iv",bvec2:"uniform2iv",bvec3:"uniform3iv",bvec4:"uniform4iv",mat2:"uniformMatrix2fv",mat3:"uniformMatrix3fv",mat4:"uniformMatrix4fv",sampler1D:"uniform1i",sampler2D:"uniform1i",sampler3D:"uniform1i"},a.prototype.ATYPEMAP={float:"vertexAttrib1f",vec2:"vertexAttrib2f",vec3:"vertexAttrib3f",vec4:"vertexAttrib4f"},a.prototype.ATYPEINFO={float:[1,5126],vec2:[2,5126],vec3:[3,5126],vec4:[4,5126]},a.prototype._create=function(){return this.handle=this._gl.createProgram(),this.locations={},this._unset_variables=[],this._validated=!1,this._samplers={},this._attributes={},this._known_invalid=[],null},a.prototype.delete=function(){return this._gl.deleteProgram(this.handle),null},a.prototype.activate=function(){return this._gl.useProgram(this.handle),null},a.prototype.deactivate=function(){return this._gl.useProgram(0),null},a.prototype.set_shaders=function(t,e){var r,n,o,i,a,s,l,h,u,c,f,p,d;for(s=this._gl,this._linked=!1,f=[[t,d=s.createShader(s.VERTEX_SHADER),"vertex"],[e,a=s.createShader(s.FRAGMENT_SHADER),"fragment"]],h=0;h<2;h+=1)if(r=(c=f[h])[0],l=c[1],p=c[2],s.shaderSource(l,r),s.compileShader(l),u=s.getShaderParameter(l,s.COMPILE_STATUS),!g(u))throw i=s.getShaderInfoLog(l),(o=new Error("RuntimeError:"+_("errors in "+p+" shader:\n",i))).name="RuntimeError",o;if(s.attachShader(this.handle,d),s.attachShader(this.handle,a),s.linkProgram(this.handle),!g(s.getProgramParameter(this.handle,s.LINK_STATUS)))throw(n=new Error("RuntimeError:Program link error:\n"+s.getProgramInfoLog(this.handle))).name="RuntimeError",n;return this._unset_variables=this._get_active_attributes_and_uniforms(),s.detachShader(this.handle,d),s.detachShader(this.handle,a),s.deleteShader(d),s.deleteShader(a),this._known_invalid=[],this._linked=!0,null},a.prototype._get_active_attributes_and_uniforms=function(){var t,e,r,n,o,i,a,s,l,h,u,c,f,p,d,y,m,x;for(s=this._gl,this.locations={},p=new window.RegExp("(\\w+)\\s*(\\[(\\d+)\\])\\s*"),o=s.getProgramParameter(this.handle,s.ACTIVE_UNIFORMS),e=s.getProgramParameter(this.handle,s.ACTIVE_ATTRIBUTES),x=[],"object"!=typeof(y=[[t=[],e,s.getActiveAttrib,s.getAttribLocation],[x,o,s.getActiveUniform,s.getUniformLocation]])||Array.isArray(y)||(y=Object.keys(y)),m=0;m<y.length;m+=1)for(r=(d=y[m])[0],n=d[1],i=d[2],a=d[3],l=0;l<n;l+=1){if(c=(f=(h=i.call(s,this.handle,l)).name).match(p),g(c))for(f=c[1],u=0;u<h.size;u+=1)v.call(r,[f+"["+u+"]",h.type]);else v.call(r,[f,h.type]);this.locations[f]=a.call(s,this.handle,f)}return _(function(){var e,r,n,o=[];for("object"!=typeof(r=t)||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n++)e=r[n],o.push(e[0]);return o}.apply(this),function(){var t,e,r,n=[];for("object"!=typeof(e=x)||Array.isArray(e)||(e=Object.keys(e)),r=0;r<e.length;r++)t=e[r],n.push(t[0]);return n}.apply(this))},a.prototype.set_texture=function(t,e){var r,n,o;if(!g(this._linked))throw(r=new Error("RuntimeError:Cannot set uniform when program has no code")).name="RuntimeError",r;return n=m.call(this.locations,t,-1),g(n<0)?(f(t,this._known_invalid)||(v.call(this._known_invalid,t),c.log("Variable "+t+" is not an active texture")),null):(f(t,this._unset_variables)&&E.call(this._unset_variables,t),this.activate(),o=x.call(this._samplers).length,f(t,this._samplers)&&(o=this._samplers[t][this._samplers[t].length-1]),this._samplers[t]=[e._target,e.handle,o],this._gl.uniform1i(n,o),null)},a.prototype.set_uniform=function(t,e,r){var n,o,i,a,s,l,h;if(!g(this._linked))throw(i=new Error("RuntimeError:Cannot set uniform when program has no code")).name="RuntimeError",i;if(s=m.call(this.locations,t,-1),g(s<0))return f(t,this._known_invalid)||(v.call(this._known_invalid,t),c.log("Variable "+t+" is not an active uniform")),null;if(f(t,this._unset_variables)&&E.call(this._unset_variables,t),o=1,w.call(e,"mat")||(n=m.call({int:"float",bool:"float"},e,b.call(e,"ib")),o=Math.floor(r.length/this.ATYPEINFO[n][0])),g(o>1))for(l=0;l<o;l+=1)f(t+"["+l+"]",this._unset_variables)&&f(h=t+"["+l+"]",this._unset_variables)&&E.call(this._unset_variables,h);return a=this.UTYPEMAP[e],this.activate(),w.call(e,"mat")?this._gl[a](s,!1,r):this._gl[a](s,r),null},a.prototype.set_attribute=function(t,e,r,n,o){var i,a,s,l,u,_;if(n=void 0===n?0:n,o=void 0===o?0:o,!g(this._linked))throw(a=new Error("RuntimeError:Cannot set attribute when program has no code")).name="RuntimeError",a;return u=r instanceof h,l=m.call(this.locations,t,-1),g(l<0)?(f(t,this._known_invalid)||(v.call(this._known_invalid,t),g(u)&&g(o>0)||c.log("Variable "+t+" is not an active attribute")),null):(f(t,this._unset_variables)&&E.call(this._unset_variables,t),this.activate(),g(u)?(s="vertexAttribPointer",i=[(_=this.ATYPEINFO[e])[0],_[1],this._gl.FALSE,n,o],this._attributes[t]=[r.handle,l,s,i]):(s=this.ATYPEMAP[e],this._attributes[t]=[0,l,s,r]),null)},a.prototype._pre_draw=function(){var t,e,r,n,o,i,a,s,l,h,u,c;for(c in this.activate(),a=this._samplers)a.hasOwnProperty(c)&&(l=(i=c=a[c])[0],s=i[1],h=i[2],this._gl.activeTexture(_(this._gl.TEXTURE0,h)),this._gl.bindTexture(l,s));for(c in o=this._attributes)o.hasOwnProperty(c)&&(u=(n=c=o[c])[0],e=n[1],r=n[2],t=n[3],g(u)?(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,u),this._gl.enableVertexAttribArray(e),this._gl[r].apply(this._gl,[].concat([e],t))):(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,null),this._gl.disableVertexAttribArray(e),this._gl[r].apply(this._gl,[].concat([e],t))));return g(this._validated)||(this._validated=!0,this._validate()),null},a.prototype._validate=function(){var t;if(this._unset_variables.length&&c.log("Program has unset variables: "+this._unset_variables),this._gl.validateProgram(this.handle),!g(this._gl.getProgramParameter(this.handle,this._gl.VALIDATE_STATUS)))throw c.log(this._gl.getProgramInfoLog(this.handle)),(t=new Error("RuntimeError:Program validation error")).name="RuntimeError",t;return null},a.prototype.draw=function(t,e){var r,n,o,a,s;if(!g(this._linked))throw(n=new Error("RuntimeError:Cannot draw program if code has not been set")).name="RuntimeError",n;return u(this._gl,"before draw"),g(e instanceof i)?(this._pre_draw(),e.activate(),r=e._buffer_size/2,a=this._gl.UNSIGNED_SHORT,this._gl.drawElements(t,r,a,0),e.deactivate()):(o=(s=e)[0],r=s[1],g(r)&&(this._pre_draw(),this._gl.drawArrays(t,o,r))),u(this._gl,"after draw"),null},((n=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,n.prototype._class_name="Buffer",n.prototype._target=null,n.prototype._usage=35048,n.prototype._create=function(){return this.handle=this._gl.createBuffer(),this._buffer_size=0,null},n.prototype.delete=function(){return this._gl.deleteBuffer(this.handle),null},n.prototype.activate=function(){return this._gl.bindBuffer(this._target,this.handle),null},n.prototype.deactivate=function(){return this._gl.bindBuffer(this._target,null),null},n.prototype.set_size=function(t){return p(t,this._buffer_size)||(this.activate(),this._gl.bufferData(this._target,t,this._usage),this._buffer_size=t),null},n.prototype.set_data=function(t,e){return this.activate(),this._gl.bufferSubData(this._target,t,e),null},(h=function(){d(this,arguments)}).prototype=Object.create(n.prototype),h.prototype._base_class=n.prototype,h.prototype._class_name="VertexBuffer",h.prototype._target=34962,(i=function(){d(this,arguments)}).prototype=Object.create(n.prototype),i.prototype._base_class=n.prototype,i.prototype._class_name="IndexBuffer",i.prototype._target=34963,((s=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,s.prototype._class_name="Texture2D",s.prototype._target=3553,s.prototype._types={Int8Array:5120,Uint8Array:5121,Int16Array:5122,Uint16Array:5123,Int32Array:5124,Uint32Array:5125,Float32Array:5126},s.prototype._create=function(){return this.handle=this._gl.createTexture(),this._shape_format=null,null},s.prototype.delete=function(){return this._gl.deleteTexture(this.handle),null},s.prototype.activate=function(){return this._gl.bindTexture(this._target,this.handle),null},s.prototype.deactivate=function(){return this._gl.bindTexture(this._target,0),null},s.prototype._get_alignment=function(t){var e,r,n;for("object"!=typeof(r=[4,8,2,1])||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n+=1)if(e=r[n],p(t%e,0))return e;return null},s.prototype.set_wrapping=function(t,e){return this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_S,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_T,e),null},s.prototype.set_interpolation=function(t,e){return this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_MIN_FILTER,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_MAG_FILTER,e),null},s.prototype.set_size=function(t,e){var r,n,o;return r=(n=t)[0],o=n[1],p([r,o,e],this._shape_format)||(this._shape_format=[r,o,e],this.activate(),this._gl.texImage2D(this._target,0,e,o,r,0,e,this._gl.UNSIGNED_BYTE,null)),this.u_shape=[r,o],null},s.prototype.set_data=function(t,e,r){var n,o,i,a,s,l,h,u,c,_;if(p(e.length,2)&&(e=[e[0],e[1],1]),this.activate(),i=this._shape_format[2],s=(l=e)[0],u=l[1],l[2],_=(h=t)[0],c=h[1],null===(a=m.call(this._types,r.constructor.name,null)))throw(o=new Error("ValueError:Type "+r.constructor.name+" not allowed for texture")).name="ValueError",o;return n=this._get_alignment(y(e[e.length-2],e[e.length-1])),p(n,4)||this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,n),this._gl.texSubImage2D(this._target,0,c,_,u,s,i,a,r),p(n,4)||this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,4),null},((l=function(){d(this,arguments)}).prototype=Object.create(s.prototype))._base_class=s.prototype,l.prototype._class_name="Texture3DLike",l.prototype.GLSL_SAMPLE_NEAREST="\n vec4 sample3D(sampler2D tex, vec3 texcoord, vec3 shape, vec2 tiles) {\n shape.xyz = shape.zyx; // silly row-major convention\n float nrows = tiles.y, ncols = tiles.x;\n // Don’t let adjacent frames be interpolated into this one\n texcoord.x = min(texcoord.x * shape.x, shape.x - 0.5);\n texcoord.x = max(0.5, texcoord.x) / shape.x;\n texcoord.y = min(texcoord.y * shape.y, shape.y - 0.5);\n texcoord.y = max(0.5, texcoord.y) / shape.y;\n\n float zindex = floor(texcoord.z * shape.z);\n\n // Do a lookup in the 2D texture\n float u = (mod(zindex, ncols) + texcoord.x) / ncols;\n float v = (floor(zindex / ncols) + texcoord.y) / nrows;\n\n return texture2D(tex, vec2(u,v));\n }\n ",l.prototype.GLSL_SAMPLE_LINEAR="\n vec4 sample3D(sampler2D tex, vec3 texcoord, vec3 shape, vec2 tiles) {\n shape.xyz = shape.zyx; // silly row-major convention\n float nrows = tiles.y, ncols = tiles.x;\n // Don’t let adjacent frames be interpolated into this one\n texcoord.x = min(texcoord.x * shape.x, shape.x - 0.5);\n texcoord.x = max(0.5, texcoord.x) / shape.x;\n texcoord.y = min(texcoord.y * shape.y, shape.y - 0.5);\n texcoord.y = max(0.5, texcoord.y) / shape.y;\n\n float z = texcoord.z * shape.z;\n float zindex1 = floor(z);\n float u1 = (mod(zindex1, ncols) + texcoord.x) / ncols;\n float v1 = (floor(zindex1 / ncols) + texcoord.y) / nrows;\n\n float zindex2 = zindex1 + 1.0;\n float u2 = (mod(zindex2, ncols) + texcoord.x) / ncols;\n float v2 = (floor(zindex2 / ncols) + texcoord.y) / nrows;\n\n vec4 s1 = texture2D(tex, vec2(u1, v1));\n vec4 s2 = texture2D(tex, vec2(u2, v2));\n\n return s1 * (zindex2 - z) + s2 * (z - zindex1);\n }\n ",l.prototype._get_tile_info=function(t){var e,r,n,o;if(r=this._gl.getParameter(this._gl.MAX_TEXTURE_SIZE),o=Math.floor(r/t[1]),o=Math.min(o,t[0]),n=window.Math.ceil(t[0]/o),g(y(n,t[2])>r))throw(e=new Error("RuntimeError:Cannot fit 3D data with shape "+t+" onto simulated 2D texture.")).name="RuntimeError",e;return[o,n]},l.prototype.set_size=function(t,e){var r,n,o,i;return n=(i=this._get_tile_info(t))[0],r=i[1],o=[y(t[1],n),y(t[2],r)],l.prototype._base_class.set_size.call(this,o,e),this.u_shape=[t[0],t[1],t[2]],this.u_tiles=[r,n],null},l.prototype.set_data=function(t,e,r){var n,o,i,a,s,h,u,c,_,f,d,v;if(p(e.length,3)&&(e=[e[0],e[1],e[2],1]),!function(t){for(var e=0;e<t.length;e++)if(!g(t[e]))return!1;return!0}(function(){var e,r,n,o=[];for("object"!=typeof(r=t)||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n++)e=r[n],o.push(p(e,0));return o}.apply(this)))throw(i=new Error("ValueError:Texture3DLike does not support nonzero offset (for now)")).name="ValueError",i;if(s=(c=this._get_tile_info(e))[0],a=c[1],u=[y(e[1],s),y(e[2],a),e[3]],p(a,1))l.prototype._base_class.set_data.call(this,[0,0],u,r);else for(v=new(0,r.constructor)(y(y(u[0],u[1]),u[2])),l.prototype._base_class.set_data.call(this,[0,0],u,v),d=0;d<e[0];d+=1)h=(_=[Math.floor(d/a),d%a])[0],n=_[1],o=Math.floor(r.length/e[0]),f=r.slice(y(d,o),y(d+1,o)),l.prototype._base_class.set_data.call(this,[y(h,e[1]),y(n,e[2])],e.slice(1),f);return null},e.exports={Buffer:n,GlooObject:o,IndexBuffer:i,Program:a,Texture2D:s,Texture3DLike:l,VertexBuffer:h,check_error:u,console:c}},n 361: function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const r=e(21),s=e(70);class i{constructor(e,t){this.gl=e,this.glyph=t,this.nvertices=0,this.size_changed=!1,this.data_changed=!1,this.visuals_changed=!1,this.init()}set_data_changed(e){e!=this.nvertices&&(this.nvertices=e,this.size_changed=!0),this.data_changed=!0}set_visuals_changed(){this.visuals_changed=!0}render(e,t,a){if(0==t.length)return!0;const[r,i,n]=[0,1,2];let l=1,h=1,[c,o]=this.glyph.renderer.map_to_screen([r*l,i*l,n*l],[r*h,i*h,n*h]);if(isNaN(c[0]+c[1]+c[2]+o[0]+o[1]+o[2]))return s.logger.warn(WebGL backend (${this.glyph.model.type}): falling back to canvas rendering),!1;if(l=100/Math.min(Math.max(Math.abs(c[1]-c[0]),1e-12),1e12),h=100/Math.min(Math.max(Math.abs(o[1]-o[0]),1e-12),1e12),[c,o]=this.glyph.renderer.map_to_screen([r*l,i*l,n*l],[r*h,i*h,n*h]),Math.abs(c[1]-c[0]-(c[2]-c[1]))>1e-6||Math.abs(o[1]-o[0]-(o[2]-o[1]))>1e-6)return s.logger.warn(WebGL backend (${this.glyph.model.type}): falling back to canvas rendering),!1;const[_,u]=[(c[1]-c[0])/l,(o[1]-o[0])/h],{width:d,height:g}=this.glyph.renderer.plot_view.canvas_view.webgl.canvas,f={pixel_ratio:this.glyph.renderer.plot_view.canvas.pixel_ratio,width:d,height:g,dx:c[0]/_,dy:o[0]/u,sx:_,sy:u};return this.draw(t,a,f),!0}}function n(e,t){const a=new Float32Array(e);for(let r=0,s=e;r<s;r++)a[r]=t;return a}function l(e,t){return void 0!==e[t].spec.value}a.BaseGLGlyph=i,i.__name__="BaseGLGlyph",a.line_width=function(e){return e<2&&(e=Math.sqrt(2*e)),e},a.fill_array_with_float=n,a.fill_array_with_vec=function(e,t,a){const r=new Float32Array(e*t);for(let s=0;s<e;s++)for(let e=0;e<t;e++)r[s*t+e]=a[e];return r},a.visual_prop_is_singular=l,a.attach_float=function(e,t,a,r,s,i){if(s.doit)if(l(s,i))t.used=!1,e.set_attribute(a,"float",s[i].value());else{t.used=!0;const n=new Float32Array(s.cache[i+"_array"]);t.set_size(4*r),t.set_data(0,n),e.set_attribute(a,"float",t)}else t.used=!1,e.set_attribute(a,"float",[0])},a.attach_color=function(e,t,a,s,i,h){let c;const o=h+"_color",_=h+"_alpha";if(i.doit)if(l(i,o)&&l(i,_))t.used=!1,c=r.color2rgba(i[o].value(),i[_].value()),e.set_attribute(a,"vec4",c);else{let h,u;t.used=!0,u=l(i,o)?(()=>{const e=[];for(let t=0,a=s;t<a;t++)e.push(i[o].value());return e})():i.cache[o+"_array"],h=l(i,_)?n(s,i[_].value()):i.cache[_+"_array"];const d=new Float32Array(4*s);for(let e=0,t=s;e<t;e++){c=r.color2rgba(u[e],h[e]);for(let t=0,a=4;t<a;t++)d[4*e+t]=c[t]}t.set_size(4*s*4),t.set_data(0,d),e.set_attribute(a,"vec4",t)}else t.used=!1,e.set_attribute(a,"vec4",[0,0,0,0])}},n 362: function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.vertex_shader="\nprecision mediump float;\n\nconst float PI = 3.14159265358979323846264;\nconst float THETA = 15.0 * 3.14159265358979323846264/180.0;\n\nuniform float u_pixel_ratio;\nuniform vec2 u_canvas_size, u_offset;\nuniform vec2 u_scale_aspect;\nuniform float u_scale_length;\n\nuniform vec4 u_color;\nuniform float u_antialias;\nuniform float u_length;\nuniform float u_linewidth;\nuniform float u_dash_index;\nuniform float u_closed;\n\nattribute vec2 a_position;\nattribute vec4 a_tangents;\nattribute vec2 a_segment;\nattribute vec2 a_angles;\nattribute vec2 a_texcoord;\n\nvarying vec4 v_color;\nvarying vec2 v_segment;\nvarying vec2 v_angles;\nvarying vec2 v_texcoord;\nvarying vec2 v_miter;\nvarying float v_length;\nvarying float v_linewidth;\n\nfloat cross(in vec2 v1, in vec2 v2)\n{\n return v1.x*v2.y - v1.y*v2.x;\n}\n\nfloat signed_distance(in vec2 v1, in vec2 v2, in vec2 v3)\n{\n return cross(v2-v1,v1-v3) / length(v2-v1);\n}\n\nvoid rotate( in vec2 v, in float alpha, out vec2 result )\n{\n float c = cos(alpha);\n float s = sin(alpha);\n result = vec2( c*v.x - s*v.y,\n s*v.x + c*v.y );\n}\n\nvoid main()\n{\n bool closed = (u_closed > 0.0);\n\n // Attributes and uniforms to varyings\n v_color = u_color;\n v_linewidth = u_linewidth;\n v_segment = a_segment * u_scale_length;\n v_length = u_length * u_scale_length;\n\n // Scale to map to pixel coordinates. The original algorithm from the paper\n // assumed isotropic scale. We obviously do not have this.\n vec2 abs_scale_aspect = abs(u_scale_aspect);\n vec2 abs_scale = u_scale_length * abs_scale_aspect;\n\n // Correct angles for aspect ratio\n vec2 av;\n av = vec2(1.0, tan(a_angles.x)) / abs_scale_aspect;\n v_angles.x = atan(av.y, av.x);\n av = vec2(1.0, tan(a_angles.y)) / abs_scale_aspect;\n v_angles.y = atan(av.y, av.x);\n\n // Thickness below 1 pixel are represented using a 1 pixel thickness\n // and a modified alpha\n v_color.a = min(v_linewidth, v_color.a);\n v_linewidth = max(v_linewidth, 1.0);\n\n // If color is fully transparent we just will discard the fragment anyway\n if( v_color.a <= 0.0 ) {\n gl_Position = vec4(0.0,0.0,0.0,1.0);\n return;\n }\n\n // This is the actual half width of the line\n float w = ceil(u_antialias+v_linewidth)/2.0;\n\n vec2 position = (a_position + u_offset) * abs_scale;\n\n vec2 t1 = normalize(a_tangents.xy * abs_scale_aspect); // note the scaling for aspect ratio here\n vec2 t2 = normalize(a_tangents.zw * abs_scale_aspect);\n float u = a_texcoord.x;\n float v = a_texcoord.y;\n vec2 o1 = vec2( +t1.y, -t1.x);\n vec2 o2 = vec2( +t2.y, -t2.x);\n\n // This is a join\n // —————————————————————-\n if( t1 != t2 ) {\n float angle = atan (t1.x*t2.y-t1.y*t2.x, t1.x*t2.x+t1.y*t2.y); // Angle needs recalculation for some reason\n vec2 t = normalize(t1+t2);\n vec2 o = vec2( + t.y, - t.x);\n\n if ( u_dash_index > 0.0 )\n {\n // Broken angle\n // —————————————————————-\n if( (abs(angle) > THETA) ) {\n position += v * w * o / cos(angle/2.0);\n float s = sign(angle);\n if( angle < 0.0 ) {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n if( v == 1.0 ) {\n position -= 2.0 * w * t1 / sin(angle);\n u -= 2.0 * w / sin(angle);\n }\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n if( v == 1.0 ) {\n position += 2.0 * w * t2 / sin(angle);\n u += 2.0*w / sin(angle);\n }\n }\n } else {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n if( v == -1.0 ) {\n position += 2.0 * w * t1 / sin(angle);\n u += 2.0 * w / sin(angle);\n }\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n if( v == -1.0 ) {\n position -= 2.0 * w * t2 / sin(angle);\n u -= 2.0*w / sin(angle);\n }\n }\n }\n // Continuous angle\n // ————————————————————\n } else {\n position += v * w * o / cos(angle/2.0);\n if( u == +1.0 ) u = v_segment.y;\n else u = v_segment.x;\n }\n }\n\n // Solid line\n // ——————————————————————–\n else\n {\n position.xy += v * w * o / cos(angle/2.0);\n if( angle < 0.0 ) {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n }\n } else {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n }\n }\n }\n\n // This is a line start or end (t1 == t2)\n // ————————————————————————\n } else {\n position += v * w * o1;\n if( u == -1.0 ) {\n u = v_segment.x - w;\n position -= w * t1;\n } else {\n u = v_segment.y + w;\n position += w * t2;\n }\n }\n\n // Miter distance\n // ————————————————————————\n vec2 t;\n vec2 curr = a_position * abs_scale;\n if( a_texcoord.x < 0.0 ) {\n vec2 next = curr + t2*(v_segment.y-v_segment.x);\n\n rotate( t1, +v_angles.x/2.0, t);\n v_miter.x = signed_distance(curr, curr+t, position);\n\n rotate( t2, +v_angles.y/2.0, t);\n v_miter.y = signed_distance(next, next+t, position);\n } else {\n vec2 prev = curr - t1*(v_segment.y-v_segment.x);\n\n rotate( t1, -v_angles.x/2.0,t);\n v_miter.x = signed_distance(prev, prev+t, position);\n\n rotate( t2, -v_angles.y/2.0,t);\n v_miter.y = signed_distance(curr, curr+t, position);\n }\n\n if (!closed && v_segment.x <= 0.0) {\n v_miter.x = 1e10;\n }\n if (!closed && v_segment.y >= v_length)\n {\n v_miter.y = 1e10;\n }\n\n v_texcoord = vec2( u, v*w );\n\n // Calculate position in device coordinates. Note that we\n // already scaled with abs scale above.\n vec2 normpos = position * sign(u_scale_aspect);\n normpos += 0.5; // make up for Bokeh’s offset\n normpos /= u_canvas_size / u_pixel_ratio; // in 0..1\n gl_Position = vec4(normpos*2.0-1.0, 0.0, 1.0);\n gl_Position.y = -1.0;\n}\n"},n 363: function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.fragment_shader="\nprecision mediump float;\n\nconst float PI = 3.14159265358979323846264;\nconst float THETA = 15.0 * 3.14159265358979323846264/180.0;\n\nuniform sampler2D u_dash_atlas;\n\nuniform vec2 u_linecaps;\nuniform float u_miter_limit;\nuniform float u_linejoin;\nuniform float u_antialias;\nuniform float u_dash_phase;\nuniform float u_dash_period;\nuniform float u_dash_index;\nuniform vec2 u_dash_caps;\nuniform float u_closed;\n\nvarying vec4 v_color;\nvarying vec2 v_segment;\nvarying vec2 v_angles;\nvarying vec2 v_texcoord;\nvarying vec2 v_miter;\nvarying float v_length;\nvarying float v_linewidth;\n\n// Compute distance to cap —————————————————-\nfloat cap( int type, float dx, float dy, float t, float linewidth )\n{\n float d = 0.0;\n dx = abs(dx);\n dy = abs(dy);\n if (type == 0) discard; // None\n else if (type == 1) d = sqrt(dx*dx+dy*dy); // Round\n else if (type == 3) d = (dx+abs(dy)); // Triangle in\n else if (type == 2) d = max(abs(dy),(t+dx-abs(dy))); // Triangle out\n else if (type == 4) d = max(dx,dy); // Square\n else if (type == 5) d = max(dx+t,dy); // Butt\n return d;\n}\n\n// Compute distance to join ————————————————-\nfloat join( in int type, in float d, in vec2 segment, in vec2 texcoord, in vec2 miter,\n in float linewidth )\n{\n // texcoord.x is distance from start\n // texcoord.y is distance from centerline\n // segment.x and y indicate the limits (as for texcoord.x) for this segment\n\n float dx = texcoord.x;\n\n // Round join\n if( type == 1 ) {\n if (dx < segment.x) {\n d = max(d,length( texcoord - vec2(segment.x,0.0)));\n //d = length( texcoord - vec2(segment.x,0.0));\n } else if (dx > segment.y) {\n d = max(d,length( texcoord - vec2(segment.y,0.0)));\n //d = length( texcoord - vec2(segment.y,0.0));\n }\n }\n // Bevel join\n else if ( type == 2 ) {\n if (dx < segment.x) {\n vec2 x = texcoord - vec2(segment.x,0.0);\n d = max(d, max(abs(x.x), abs(x.y)));\n\n } else if (dx > segment.y) {\n vec2 x = texcoord - vec2(segment.y,0.0);\n d = max(d, max(abs(x.x), abs(x.y)));\n }\n / Original code for bevel which does not work for us\n if( (dx < segment.x) || (dx > segment.y) )\n d = max(d, min(abs(x.x),abs(x.y)));\n /\n }\n\n return d;\n}\n\nvoid main()\n{\n // If color is fully transparent we just discard the fragment\n if( v_color.a <= 0.0 ) {\n discard;\n }\n\n // Test if dash pattern is the solid one (0)\n bool solid = (u_dash_index == 0.0);\n\n // Test if path is closed\n bool closed = (u_closed > 0.0);\n\n vec4 color = v_color;\n float dx = v_texcoord.x;\n float dy = v_texcoord.y;\n float t = v_linewidth/2.0-u_antialias;\n float width = 1.0; //v_linewidth; original code had dashes scale with line width, we do not\n float d = 0.0;\n\n vec2 linecaps = u_linecaps;\n vec2 dash_caps = u_dash_caps;\n float line_start = 0.0;\n float line_stop = v_length;\n\n // Apply miter limit; fragments too far into the miter are simply discarded\n if( (dx < v_segment.x) || (dx > v_segment.y) ) {\n float into_miter = max(v_segment.x - dx, dx - v_segment.y);\n if (into_miter > u_miter_limit*v_linewidth/2.0)\n discard;\n }\n\n // Solid line ————————————————————–\n if( solid ) {\n d = abs(dy);\n if( (!closed) && (dx < line_start) ) {\n d = cap( int(u_linecaps.x), abs(dx), abs(dy), t, v_linewidth );\n }\n else if( (!closed) && (dx > line_stop) ) {\n d = cap( int(u_linecaps.y), abs(dx)-line_stop, abs(dy), t, v_linewidth );\n }\n else {\n d = join( int(u_linejoin), abs(dy), v_segment, v_texcoord, v_miter, v_linewidth );\n }\n\n // Dash line ————————————————————–\n } else {\n float segment_start = v_segment.x;\n float segment_stop = v_segment.y;\n float segment_center= (segment_start+segment_stop)/2.0;\n float freq = u_dash_period*width;\n float u = mod( dx + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n float dash_center= tex.x * width;\n float dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n float dash_start = dx - u + _start;\n float dash_stop = dx - u + _stop;\n\n // Compute extents of the first dash (the one relative to v_segment.x)\n // Note: this could be computed in the vertex shader\n if( (dash_stop < segment_start) && (dash_caps.x != 5.0) ) {\n float u = mod(segment_start + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n dash_center= tex.x * width;\n //dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n dash_start = segment_start - u + _start;\n dash_stop = segment_start - u + _stop;\n }\n\n // Compute extents of the last dash (the one relatives to v_segment.y)\n // Note: This could be computed in the vertex shader\n else if( (dash_start > segment_stop) && (dash_caps.y != 5.0) ) {\n float u = mod(segment_stop + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n dash_center= tex.x * width;\n //dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n dash_start = segment_stop - u + _start;\n dash_stop = segment_stop - u + _stop;\n }\n\n // This test if the we are dealing with a discontinuous angle\n bool discontinuous = ((dx < segment_center) && abs(v_angles.x) > THETA) ||\n ((dx >= segment_center) && abs(v_angles.y) > THETA);\n //if( dx < line_start) discontinuous = false;\n //if( dx > line_stop) discontinuous = false;\n\n float d_join = join( int(u_linejoin), abs(dy),\n v_segment, v_texcoord, v_miter, v_linewidth );\n\n // When path is closed, we do not have room for linecaps, so we make room\n // by shortening the total length\n if (closed) {\n line_start += v_linewidth/2.0;\n line_stop -= v_linewidth/2.0;\n }\n\n // We also need to take antialias area into account\n //line_start += u_antialias;\n //line_stop -= u_antialias;\n\n // Check is dash stop is before line start\n if( dash_stop <= line_start ) {\n discard;\n }\n // Check is dash start is beyond line stop\n if( dash_start >= line_stop ) {\n discard;\n }\n\n // Check if current dash start is beyond segment stop\n if( discontinuous ) {\n // Dash start is beyond segment, we discard\n if( (dash_start > segment_stop) ) {\n discard;\n //gl_FragColor = vec4(1.0,0.0,0.0,.25); return;\n }\n\n // Dash stop is before segment, we discard\n if( (dash_stop < segment_start) ) {\n discard; //gl_FragColor = vec4(0.0,1.0,0.0,.25); return;\n }\n\n // Special case for round caps (nicer with this)\n if( dash_caps.x == 1.0 ) {\n if( (u > _stop) && (dash_stop > segment_stop ) && (abs(v_angles.y) < PI/2.0)) {\n discard;\n }\n }\n\n // Special case for round caps (nicer with this)\n if( dash_caps.y == 1.0 ) {\n if( (u < _start) && (dash_start < segment_start ) && (abs(v_angles.x) < PI/2.0)) {\n discard;\n }\n }\n\n // Special case for triangle caps (in & out) and square\n // We make sure the cap stop at crossing frontier\n if( (dash_caps.x != 1.0) && (dash_caps.x != 5.0) ) {\n if( (dash_start < segment_start ) && (abs(v_angles.x) < PI/2.0) ) {\n float a = v_angles.x/2.0;\n float x = (segment_start-dx)*cos(a) - dy*sin(a);\n float y = (segment_start-dx)*sin(a) + dy*cos(a);\n if( x > 0.0 ) discard;\n // We transform the cap into square to avoid holes\n dash_caps.x = 4.0;\n }\n }\n\n // Special case for triangle caps (in & out) and square\n // We make sure the cap stop at crossing frontier\n if( (dash_caps.y != 1.0) && (dash_caps.y != 5.0) ) {\n if( (dash_stop > segment_stop ) && (abs(v_angles.y) < PI/2.0) ) {\n float a = v_angles.y/2.0;\n float x = (dx-segment_stop)*cos(a) - dy*sin(a);\n float y = (dx-segment_stop)*sin(a) + dy*cos(a);\n if( x > 0.0 ) discard;\n // We transform the caps into square to avoid holes\n dash_caps.y = 4.0;\n }\n }\n }\n\n // Line cap at start\n if( (dx < line_start) && (dash_start < line_start) && (dash_stop > line_start) ) {\n d = cap( int(linecaps.x), dx-line_start, dy, t, v_linewidth);\n }\n // Line cap at stop\n else if( (dx > line_stop) && (dash_stop > line_stop) && (dash_start < line_stop) ) {\n d = cap( int(linecaps.y), dx-line_stop, dy, t, v_linewidth);\n }\n // Dash cap left - dash_type = -1, 0 or 1, but there may be roundoff errors\n else if( dash_type < -0.5 ) {\n d = cap( int(dash_caps.y), abs(u-dash_center), dy, t, v_linewidth);\n if( (dx > line_start) && (dx < line_stop) )\n d = max(d,d_join);\n }\n // Dash cap right\n else if( dash_type > 0.5 ) {\n d = cap( int(dash_caps.x), abs(dash_center-u), dy, t, v_linewidth);\n if( (dx > line_start) && (dx < line_stop) )\n d = max(d,d_join);\n }\n // Dash body (plain)\n else {// if( dash_type > -0.5 && dash_type < 0.5) {\n d = abs(dy);\n }\n\n // Line join\n if( (dx > line_start) && (dx < line_stop)) {\n if( (dx <= segment_start) && (dash_start <= segment_start)\n && (dash_stop >= segment_start) ) {\n d = d_join;\n // Antialias at outer border\n float angle = PI/2.+v_angles.x;\n float f = abs( (segment_start - dx)*cos(angle) - dy*sin(angle));\n d = max(f,d);\n }\n else if( (dx > segment_stop) && (dash_start <= segment_stop)\n && (dash_stop >= segment_stop) ) {\n d = d_join;\n // Antialias at outer border\n float angle = PI/2.+v_angles.y;\n float f = abs((dx - segment_stop)*cos(angle) - dy*sin(angle));\n d = max(f,d);\n }\n else if( dx < (segment_start - v_linewidth/2.)) {\n discard;\n }\n else if( dx > (segment_stop + v_linewidth/2.)) {\n discard;\n }\n }\n else if( dx < (segment_start - v_linewidth/2.)) {\n discard;\n }\n else if( dx > (segment_stop + v_linewidth/2.)) {\n discard;\n }\n }\n\n // Distance to border ——————————————————\n d = d - t;\n if( d < 0.0 ) {\n gl_FragColor = color;\n } else {\n d /= u_antialias;\n gl_FragColor = vec4(color.rgb, exp(-d*d)*color.a);\n }\n}\n"},n 364: function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),a=t(360),r=t(361),o=t(365),_=t(366),h=t(212),l=t(12),n=t(70);class g extends r.BaseGLGlyph{init(){const{gl:t}=this,s=o.vertex_shader,e=_.fragment_shader(this._marker_code);this.prog=new a.Program(t),this.prog.set_shaders(s,e),this.vbo_x=new a.VertexBuffer(t),this.prog.set_attribute("a_x","float",this.vbo_x),this.vbo_y=new a.VertexBuffer(t),this.prog.set_attribute("a_y","float",this.vbo_y),this.vbo_s=new a.VertexBuffer(t),this.prog.set_attribute("a_size","float",this.vbo_s),this.vbo_a=new a.VertexBuffer(t),this.prog.set_attribute("a_angle","float",this.vbo_a),this.vbo_linewidth=new a.VertexBuffer(t),this.vbo_fg_color=new a.VertexBuffer(t),this.vbo_bg_color=new a.VertexBuffer(t),this.index_buffer=new a.IndexBuffer(t)}draw(t,s,e){const i=s.glglyph,{nvertices:a}=i;if(i.data_changed){if(!isFinite(e.dx)||!isFinite(e.dy))return;i._baked_offset=[e.dx,e.dy],i._set_data(a),i.data_changed=!1}else this.glyph instanceof h.CircleView&&null!=this.glyph._radius&&(null==this.last_trans||e.sx!=this.last_trans.sx||e.sy!=this.last_trans.sy)&&(this.last_trans=e,this.vbo_s.set_data(0,new Float32Array(l.map(this.glyph.sradius,t=>2*t))));this.visuals_changed&&(this._set_visuals(a),this.visuals_changed=!1);const r=i._baked_offset;if(this.prog.set_uniform("u_pixel_ratio","float",[e.pixel_ratio]),this.prog.set_uniform("u_canvas_size","vec2",[e.width,e.height]),this.prog.set_uniform("u_offset","vec2",[e.dx-r[0],e.dy-r[1]]),this.prog.set_uniform("u_scale","vec2",[e.sx,e.sy]),this.prog.set_attribute("a_x","float",i.vbo_x),this.prog.set_attribute("a_y","float",i.vbo_y),this.prog.set_attribute("a_size","float",i.vbo_s),this.prog.set_attribute("a_angle","float",i.vbo_a),0!=t.length)if(t.length===a)this.prog.draw(this.gl.POINTS,[0,a]);else if(a<65535){const s=window.navigator.userAgent;s.indexOf("MSIE ")+s.indexOf("Trident/")+s.indexOf("Edge/")>0&&n.logger.warn("WebGL warning: IE is known to produce 1px sprites whith selections."),this.index_buffer.set_size(2*t.length),this.index_buffer.set_data(0,new Uint16Array(t)),this.prog.draw(this.gl.POINTS,this.index_buffer)}else{const s=64e3,e=[];for(let t=0,i=Math.ceil(a/s);t<i;t++)e.push([]);for(let i=0,a=t.length;i<a;i++){const a=t[i]%s;e[Math.floor(t[i]/s)].push(a)}for(let t=0,a=e.length;t<a;t++){const a=new Uint16Array(e[t]),r=t*s*4;0!==a.length&&(this.prog.set_attribute("a_x","float",i.vbo_x,0,r),this.prog.set_attribute("a_y","float",i.vbo_y,0,r),this.prog.set_attribute("a_size","float",i.vbo_s,0,r),this.prog.set_attribute("a_angle","float",i.vbo_a,0,r),this.vbo_linewidth.used&&this.prog.set_attribute("a_linewidth","float",this.vbo_linewidth,0,r),this.vbo_fg_color.used&&this.prog.set_attribute("a_fg_color","vec4",this.vbo_fg_color,0,4*r),this.vbo_bg_color.used&&this.prog.set_attribute("a_bg_color","vec4",this.vbo_bg_color,0,4*r),this.index_buffer.set_size(2*a.length),this.index_buffer.set_data(0,a),this.prog.draw(this.gl.POINTS,this.index_buffer))}}}_set_data(t){const s=4*t;this.vbo_x.set_size(s),this.vbo_y.set_size(s),this.vbo_a.set_size(s),this.vbo_s.set_size(s);const e=new Float64Array(this.glyph._x),i=new Float64Array(this.glyph._y);for(let s=0,a=t;s<a;s++)e[s]+=this._baked_offset[0],i[s]+=this._baked_offset[1];this.vbo_x.set_data(0,new Float32Array(e)),this.vbo_y.set_data(0,new Float32Array(i)),null!=this.glyph._angle&&this.vbo_a.set_data(0,new Float32Array(this.glyph._angle)),this.glyph instanceof h.CircleView&&null!=this.glyph._radius?this.vbo_s.set_data(0,new Float32Array(l.map(this.glyph.sradius,t=>2*t))):this.vbo_s.set_data(0,new Float32Array(this.glyph._size))}_set_visuals(t){r.attach_float(this.prog,this.vbo_linewidth,"a_linewidth",t,this.glyph.visuals.line,"line_width"),r.attach_color(this.prog,this.vbo_fg_color,"a_fg_color",t,this.glyph.visuals.line,"line"),r.attach_color(this.prog,this.vbo_bg_color,"a_bg_color",t,this.glyph.visuals.fill,"fill"),this.prog.set_uniform("u_antialias","float",[.8])}}function f(t){return class extends g{get _marker_code(){return t}}}e.MarkerGLGlyph=g,g.__name__="MarkerGLGlyph";const d=i.__importStar(t(366));e.CircleGLGlyph=f(d.circle),e.SquareGLGlyph=f(d.square),e.DiamondGLGlyph=f(d.diamond),e.TriangleGLGlyph=f(d.triangle),e.InvertedTriangleGLGlyph=f(d.invertedtriangle),e.HexGLGlyph=f(d.hex),e.CrossGLGlyph=f(d.cross),e.CircleCrossGLGlyph=f(d.circlecross),e.SquareCrossGLGlyph=f(d.squarecross),e.DiamondCrossGLGlyph=f(d.diamondcross),e.XGLGlyph=f(d.x),e.CircleXGLGlyph=f(d.circlex),e.SquareXGLGlyph=f(d.squarex),e.AsteriskGLGlyph=f(d.asterisk)},n 365: function _(n,i,a){Object.defineProperty(a,"__esModule",{value:!0}),a.vertex_shader="\nprecision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\n//\nuniform float u_pixel_ratio;\nuniform vec2 u_canvas_size;\nuniform vec2 u_offset;\nuniform vec2 u_scale;\nuniform float u_antialias;\n//\nattribute float a_x;\nattribute float a_y;\nattribute float a_size;\nattribute float a_angle; // in radians\nattribute float a_linewidth;\nattribute vec4 a_fg_color;\nattribute vec4 a_bg_color;\n//\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec4 v_fg_color;\nvarying vec4 v_bg_color;\nvarying vec2 v_rotation;\n\nvoid main (void)\n{\n v_size = a_size * u_pixel_ratio;\n v_linewidth = a_linewidth * u_pixel_ratio;\n v_fg_color = a_fg_color;\n v_bg_color = a_bg_color;\n v_rotation = vec2(cos(-a_angle), sin(-a_angle));\n // Calculate position - the -0.5 is to correct for canvas origin\n vec2 pos = (vec2(a_x, a_y) + u_offset) * u_scale; // in pixels\n pos += 0.5; // make up for Bokeh’s offset\n pos /= u_canvas_size / u_pixel_ratio; // in 0..1\n gl_Position = vec4(pos*2.0-1.0, 0.0, 1.0);\n gl_Position.y *= -1.0;\n gl_PointSize = SQRT_2 * v_size + 2.0 * (v_linewidth + 1.5*u_antialias);\n}\n"},n 366: function _(a,n,s){Object.defineProperty(s,"__esModule",{value:!0}),s.fragment_shader=a=>`\nprecision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\nconst float PI = 3.14159265358979323846264;\n//\nuniform float u_antialias;\n//\nvarying vec4 v_fg_color;\nvarying vec4 v_bg_color;\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec2 v_rotation;\n\n${a}\n\nvec4 outline(float distance, float linewidth, float antialias, vec4 fg_color, vec4 bg_color)\n{\n vec4 frag_color;\n float t = linewidth/2.0 - antialias;\n float signed_distance = distance;\n float border_distance = abs(signed_distance) - t;\n float alpha = border_distance/antialias;\n alpha = exp(-alpha*alpha);\n\n // If fg alpha is zero, it probably means no outline. To avoid a dark outline\n // shining through due to aa, we set the fg color to the bg color. Avoid if (i.e. branching).\n float select = float(bool(fg_color.a));\n fg_color.rgb = select * fg_color.rgb + (1.0 - select) * bg_color.rgb;\n // Similarly, if we want a transparent bg\n select = float(bool(bg_color.a));\n bg_color.rgb = select * bg_color.rgb + (1.0 - select) * fg_color.rgb;\n\n if( border_distance < 0.0)\n frag_color = fg_color;\n else if( signed_distance < 0.0 ) {\n frag_color = mix(bg_color, fg_color, sqrt(alpha));\n } else {\n if( abs(signed_distance) < (linewidth/2.0 + antialias) ) {\n frag_color = vec4(fg_color.rgb, fg_color.a * alpha);\n } else {\n discard;\n }\n }\n return frag_color;\n}\n\nvoid main()\n{\n vec2 P = gl_PointCoord.xy - vec2(0.5, 0.5);\n P = vec2(v_rotation.x*P.x - v_rotation.y*P.y,\n v_rotation.y*P.x + v_rotation.x*P.y);\n float point_size = SQRT_2*v_size + 2.0 * (v_linewidth + 1.5*u_antialias);\n float distance = marker(P*point_size, v_size);\n gl_FragColor = outline(distance, v_linewidth, u_antialias, v_fg_color, v_bg_color);\n //gl_FragColor.rgb *= gl_FragColor.a; // pre-multiply alpha\n}\n`,s.circle="\nfloat marker(vec2 P, float size)\n{\n return length(P) - size/2.0;\n}\n",s.square="\nfloat marker(vec2 P, float size)\n{\n return max(abs(P.x), abs(P.y)) - size/2.0;\n}\n",s.diamond="\nfloat marker(vec2 P, float size)\n{\n float x = SQRT_2 / 2.0 * (P.x * 1.5 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.5 + P.y);\n float r1 = max(abs(x), abs(y)) - size / (2.0 * SQRT_2);\n return r1 / SQRT_2;\n}\n",s.hex="\nfloat marker(vec2 P, float size)\n{\n vec2 q = abs(P);\n return max(q.y * 0.57735 + q.x - 1.0 * size/2.0, q.y - 0.866 * size/2.0);\n}\n",s.triangle="\nfloat marker(vec2 P, float size)\n{\n P.y -= size * 0.3;\n float x = SQRT_2 / 2.0 * (P.x * 1.7 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.7 + P.y);\n float r1 = max(abs(x), abs(y)) - size / 1.6;\n float r2 = P.y;\n return max(r1 / SQRT_2, r2); // Intersect diamond with rectangle\n}\n",s.invertedtriangle="\nfloat marker(vec2 P, float size)\n{\n P.y += size * 0.3;\n float x = SQRT_2 / 2.0 * (P.x * 1.7 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.7 + P.y);\n float r1 = max(abs(x), abs(y)) - size / 1.6;\n float r2 = - P.y;\n return max(r1 / SQRT_2, r2); // Intersect diamond with rectangle\n}\n",s.cross=’\nfloat marker(vec2 P, float size)\n{\n float square = max(abs(P.x), abs(P.y)) - size / 2.5; // 2.5 is a tweak\n float cross = min(abs(P.x), abs(P.y)) - size / 100.0; // bit of "width" for aa\n return max(square, cross);\n}\n’,s.circlecross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float circle = length(P) - size/2.0;\n float c1 = max(circle, s1);\n float c2 = max(circle, s2);\n float c3 = max(circle, s3);\n float c4 = max(circle, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.squarecross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float square = max(abs(P.x), abs(P.y)) - size/2.0;\n float c1 = max(square, s1);\n float c2 = max(square, s2);\n float c3 = max(square, s3);\n float c4 = max(square, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.diamondcross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float x = SQRT_2 / 2.0 * (P.x * 1.5 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.5 + P.y);\n float diamond = max(abs(x), abs(y)) - size / (2.0 * SQRT_2);\n diamond /= SQRT_2;\n float c1 = max(diamond, s1);\n float c2 = max(diamond, s2);\n float c3 = max(diamond, s3);\n float c4 = max(diamond, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.x=’\nfloat marker(vec2 P, float size)\n{\n float circle = length(P) - size / 1.6;\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n return max(circle, X);\n}\n’,s.circlex=’\nfloat marker(vec2 P, float size)\n{\n float x = P.x - P.y;\n float y = P.x + P.y;\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(x - qs), abs(y - qs)) - qs;\n float s2 = max(abs(x + qs), abs(y - qs)) - qs;\n float s3 = max(abs(x - qs), abs(y + qs)) - qs;\n float s4 = max(abs(x + qs), abs(y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float circle = length(P) - size/2.0;\n float c1 = max(circle, s1);\n float c2 = max(circle, s2);\n float c3 = max(circle, s3);\n float c4 = max(circle, s4);\n // Union\n float almost = min(min(min(c1, c2), c3), c4);\n // In this case, the X is also outside of the main shape\n float Xmask = length(P) - size / 1.6; // a circle\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n return min(max(X, Xmask), almost);\n}\n’,s.squarex="\nfloat marker(vec2 P, float size)\n{\n float x = P.x - P.y;\n float y = P.x + P.y;\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(x - qs), abs(y - qs)) - qs;\n float s2 = max(abs(x + qs), abs(y - qs)) - qs;\n float s3 = max(abs(x - qs), abs(y + qs)) - qs;\n float s4 = max(abs(x + qs), abs(y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float square = max(abs(P.x), abs(P.y)) - size/2.0;\n float c1 = max(square, s1);\n float c2 = max(square, s2);\n float c3 = max(square, s3);\n float c4 = max(square, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.asterisk=’\nfloat marker(vec2 P, float size)\n{\n // Masks\n float diamond = max(abs(SQRT_2 / 2.0 * (P.x - P.y)), abs(SQRT_2 / 2.0 * (P.x + P.y))) - size / (2.0 * SQRT_2);\n float square = max(abs(P.x), abs(P.y)) - size / (2.0 * SQRT_2);\n // Shapes\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n float cross = min(abs(P.x), abs(P.y)) - size / 100.0; // bit of "width" for aa\n // Result is union of masked shapes\n return min(max(X, diamond), max(cross, square));\n}\n’},n }, 357, {"models/glyphs/webgl/main":357,"models/glyphs/webgl/index":358,"models/glyphs/webgl/line":359,"models/glyphs/webgl/base":361,"models/glyphs/webgl/line.vert":362,"models/glyphs/webgl/line.frag":363,"models/glyphs/webgl/markers":364,"models/glyphs/webgl/markers.vert":365,"models/glyphs/webgl/markers.frag":366}, {});n })nnn / END bokeh-gl.min.js /n },n n function(Bokeh) {n Bokeh.set_log_level("info");n },n n function(Bokeh) {n / BEGIN panel.min.js /n /!n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn * All rights reserved.n * n * Redistribution and use in source and binary forms, with or without modification,n * are permitted provided that the following conditions are met:n * n * Redistributions of source code must retain the above copyright notice,n * this list of conditions and the following disclaimer.n * n * Redistributions in binary form must reproduce the above copyright notice,n * this list of conditions and the following disclaimer in the documentationn * and/or other materials provided with the distribution.n * n * Neither the name of Anaconda nor the names of any contributorsn * may be used to endorse or promote products derived from this softwaren * without specific prior written permission.n * n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn * THE POSSIBILITY OF SUCH DAMAGE.n /n (function(root, factory) {n factory(root["Bokeh"]);n })(this, function(Bokeh) {n var define;n return (function(modules, entry, aliases, externals) {n if (Bokeh != null) {n return Bokeh.register_plugin(modules, entry, aliases, externals);n } else {n throw new Error("Cannot find Bokeh. You have to load it prior to loading plugins.");n }n })n ({n "4e90918c0a": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e("tslib").__importStar(e("22ae8fda70"));o.Panel=s,e("@bokehjs/base").register_models(s)},n "22ae8fda70": function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});const o=a("tslib");var t=a("3343056bd8");r.AcePlot=t.AcePlot;var d=a("66d52165db");r.Audio=d.Audio;var l=a("71a9759436");r.CommManager=l.CommManager;var b=a("f6b9b1d914");r.DeckGLPlot=b.DeckGLPlot;var v=a("ae707e931d");r.HTML=v.HTML;var c=a("9ba5b8422a");r.JSON=c.JSON;var P=a("a94e371ba4");r.FileDownload=P.FileDownload;var f=a("7b859fb3cf");r.KaTeX=f.KaTeX;var i=a("0c21036737");r.MathJax=i.MathJax;var n=a("000f20fdd3");r.Player=n.Player;var s=a("2363c12dd6");r.PlotlyPlot=s.PlotlyPlot;var M=a("76307e5afa");r.Progress=M.Progress;var S=a("38b2bc9574");r.State=S.State;var g=a("90d1f929bd");r.VegaPlot=g.VegaPlot;var m=a("b0c3e9e9c2");r.Video=m.Video;var V=a("3c7145a2fa");r.VideoStream=V.VideoStream,o.__exportStar(a("ecfbb965eb"),r)},n "3343056bd8": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),n=e("@bokehjs/core/dom"),a=e("ba20932521");class d extends a.PanelHTMLBoxView{initialize(){super.initialize(),this._ace=window.ace,this._container=n.div({id:"_"+Math.random().toString(36).substr(2,9),style:{width:"100%",height:"100%"}})}connect_signals(){super.connect_signals(),this.connect(this.model.properties.code.change,()=>this._update_code_from_model()),this.connect(this.model.properties.theme.change,()=>this._update_theme()),this.connect(this.model.properties.language.change,()=>this._update_language()),this.connect(this.model.properties.annotations.change,()=>this._add_annotations()),this.connect(this.model.properties.readonly.change,()=>{this._editor.setReadOnly(this.model.readonly)})}render(){super.render(),this._container!==this.el.childNodes[0]&&this.el.appendChild(this._container),this._container.textContent=this.model.code,this._editor=this._ace.edit(this._container.id),this._editor.setTheme("ace/theme/"+`${this.model.theme}`),this._editor.session.setMode("ace/mode/"+`${this.model.language}`),this._editor.setReadOnly(this.model.readonly),this._langTools=this._ace.require("ace/ext/language_tools"),this._editor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,fontFamily:"monospace"}),this._editor.on("change",()=>this._update_code_from_editor())}_update_code_from_model(){this._editor&&this._editor.getValue()!=this.model.code&&this._editor.setValue(this.model.code)}_update_code_from_editor(){this._editor.getValue()!=this.model.code&&(this.model.code=this._editor.getValue())}_update_theme(){this._editor.setTheme("ace/theme/"+`${this.model.theme}`)}_update_language(){this._editor.session.setMode("ace/mode/"+`${this.model.language}`)}_add_annotations(){this._editor.session.setAnnotations(this.model.annotations)}after_layout(){super.after_layout(),this._editor.resize()}}o.AcePlotView=d,d.__name__="AcePlotView";class h extends s.HTMLBox{constructor(e){super(e)}static init_AcePlot(){this.prototype.default_view=d,this.define({code:[i.String],language:[i.String,"python"],theme:[i.String,"chrome"],annotations:[i.Array,[]],readonly:[i.Boolean,!1]}),this.override({height:300,width:300})}}o.AcePlot=h,h.__name__="AcePlot",h.__module__="panel.models.ace",h.init_AcePlot()},n "ba20932521": function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e("@bokehjs/core/layout/layoutable"),h=e("@bokehjs/core/layout/types"),o=e("@bokehjs/core/dom"),_=e("@bokehjs/models/widgets/markup"),n=e("@bokehjs/models/layouts/html_box");function a(e,i){let t=null!=i.width?"fixed":"fit",s=null!=i.height?"fixed":"fit";const{sizing_mode:h}=i;if(null!=h)if("fixed"==h)t=s="fixed";else if("stretch_both"==h)t=s="max";else if("stretch_width"==h)t="max";else if("stretch_height"==h)s="max";else switch(h){case"scale_width":t="max",s="min";break;case"scale_height":t="min",s="max";break;case"scale_both":t="max",s="max";break;default:throw new Error("unreachable")}"fixed"==t&&i.width?e.style.width=i.width+"px":"max"==t&&(e.style.width="100%"),"fixed"==s&&i.height?e.style.height=i.height+"px":"max"==s&&(e.style.height="100%")}t.set_size=a;class d extends s.Layoutable{constructor(e,i,t){super(),this.el=e,this.sizing_mode=i,this.changed=t,this._cache={},this._cache_count={}}_measure(e){const i=[e.width,e.height,this.sizing_mode].toString(),t=this.changed&&"fixed"!=this.sizing_mode&&null!=this.sizing_mode?1:0;if(i in this._cache&&this._cache_count[i]>=t)return this._cache_count[i]=this._cache_count[i]+1,this._cache[i];const s=new h.Sizeable(e).bounded_to(this.sizing.size),_=o.sized(this.el,s,()=>{const e=new h.Sizeable(o.content_size(this.el)),{border:i,padding:t}=o.extents(this.el);return e.grow_by(i).grow_by(t).map(Math.ceil)});return this._cache[i]=_,this._cache_count[i]=0,_}}t.CachedVariadicBox=d,d.__name__="CachedVariadicBox";class l extends _.MarkupView{_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new d(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}render(){super.render(),a(this.markup_el,this.model)}}t.PanelMarkupView=l,l.__name__="PanelMarkupView";class c extends n.HTMLBoxView{_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new d(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}render(){super.render(),a(this.el,this.model)}}t.PanelHTMLBoxView=c,c.__name__="PanelHTMLBoxView"},n "66d52165db": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),l=e("ba20932521");class d extends l.PanelHTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,()=>this.set_loop()),this.connect(this.model.properties.paused.change,()=>this.set_paused()),this.connect(this.model.properties.time.change,()=>this.set_time()),this.connect(this.model.properties.value.change,()=>this.set_value()),this.connect(this.model.properties.volume.change,()=>this.set_volume())}render(){super.render(),this.audioEl=document.createElement("audio"),this.audioEl.controls=!0,this.audioEl.src=this.model.value,this.audioEl.currentTime=this.model.time,this.audioEl.loop=this.model.loop,null!=this.model.volume?this.audioEl.volume=this.model.volume/100:this.model.volume=100*this.audioEl.volume,this.audioEl.onpause=()=>this.model.paused=!0,this.audioEl.onplay=()=>this.model.paused=!1,this.audioEl.ontimeupdate=()=>this.update_time(this),this.audioEl.onvolumechange=()=>this.update_volume(this),this.el.appendChild(this.audioEl),this.model.paused||this.audioEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.audioEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.audioEl.volume)}set_loop(){this.audioEl.loop=this.model.loop}set_paused(){!this.audioEl.paused&&this.model.paused&&this.audioEl.pause(),this.audioEl.paused&&!this.model.paused&&this.audioEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.audioEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.audioEl.currentTime=this.model.time)}set_value(){this.audioEl.src=this.model.value}}i.AudioView=d,d.__name__="AudioView";class u extends s.HTMLBox{constructor(e){super(e)}static init_Audio(){this.prototype.default_view=d,this.define({loop:[o.Boolean,!1],paused:[o.Boolean,!0],time:[o.Number,0],throttle:[o.Number,250],value:[o.Any,""],volume:[o.Number,null]})}}i.Audio=u,u.__name__="Audio",u.__module__="panel.models.widgets",u.init_Audio()},n "71a9759436": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),i=e("@bokehjs/document"),s=e("@bokehjs/core/view"),c=e("@bokehjs/model"),_=e("@bokehjs/protocol/message"),l=e("@bokehjs/protocol/receiver");class r extends s.View{renderTo(){}}n.CommManagerView=r,r.__name__="CommManagerView";class a extends c.Model{constructor(e){super(e),this._document_listener=e=>this._document_changed(e),this._receiver=new l.Receiver,this._event_buffer=[],this._blocked=!1,this._timeout=Date.now(),null!=window.PyViz&&window.PyViz.comm_manager?(this.ns=window.PyViz,this.ns.comm_manager.register_target(this.plot_id,this.comm_id,e=>this.msg_handler(e)),this._client_comm=this.ns.comm_manager.get_client_comm(this.plot_id,this.client_comm_id,e=>this.on_ack(e))):console.log("Could not find comm manager on window.PyViz, ensure the extension is loaded.")}_doc_attached(){super._doc_attached(),null!=this.document&&this.document.on_change(this._document_listener)}_document_changed(e){e.setter_id!==this.id&&(e instanceof i.ModelChangedEvent&&!(e.attr in e.model.serializable_attributes())||(this._event_buffer.unshift(e),(!this._blocked||Date.now()>this._timeout)&&(setTimeout(()=>this.process_events(),this.debounce),this._blocked=!0,this._timeout=Date.now()+this.timeout)))}process_events(){if(null==this.document||null==this._client_comm)return;const e=_.Message.create("PATCH-DOC",{},this.document.create_json_patch(this._event_buffer));this._client_comm.send(e),this._event_buffer=[]}on_ack(e){const t=e.metadata;this._event_buffer.length?(this.process_events(),this._blocked=!0,this._timeout=Date.now()+this.timeout):this._blocked=!1,this._event_buffer=[],"Ready"==t.msg_type&&t.content?console.log("Python callback returned following output:",t.content):"Error"==t.msg_type&&console.log("Python failed with the following traceback:",t.traceback)}msg_handler(e){const t=e.metadata,n=e.buffers,o=e.content.data,i=this.plot_id;if("Ready"==t.msg_type)t.content?console.log("Python callback returned following output:",t.content):"Error"==t.msg_type&&console.log("Python failed with the following traceback:",t.traceback);else if(null!=i){let e=null;if(i in this.ns.plot_index&&null!=this.ns.plot_index[i]?e=this.ns.plot_index[i]:void 0!==window.Bokeh&&i in window.Bokeh.index&&(e=window.Bokeh.index[i]),null==e)return;null!=n&&n.length>0?this._receiver.consume(n[0].buffer):this._receiver.consume(o);const t=this._receiver.message;null!=t&&Object.keys(t.content).length>0&&null!=this.document&&this.document.apply_json_patch(t.content,t.buffers,this.id)}}static init_CommManager(){this.prototype.default_view=r,this.define({plot_id:[o.String,null],comm_id:[o.String,null],client_comm_id:[o.String,null],timeout:[o.Number,5e3],debounce:[o.Number,50]})}}n.CommManager=a,a.__name__="CommManager",a.__module__="panel.models.comm_manager",a.init_CommManager()},n "f6b9b1d914": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e("tslib"),a=e("@bokehjs/core/dom"),s=i.__importStar(e("@bokehjs/core/properties")),n=e("@bokehjs/models/layouts/html_box"),c=e("ba20932521"),r=e("064eac2866"),d=i.__importDefault(e("093eb75864")),l=window.deck,_=window.mapboxgl,h=window.loaders;function p(){const e={},t=Object.keys(l).filter(e=>e.charAt(0)===e.charAt(0).toUpperCase());for(const o of t)e[o]=l[o];return e}class u extends c.PanelHTMLBoxView{connect_signals(){super.connect_signals();const{data:e,mapbox_api_key:t,tooltip:o,layers:i,initialViewState:a,data_sources:s}=this.model.properties;this.on_change([t,o],()=>this.render()),this.on_change([e,a],()=>this.updateDeck()),this.on_change([i],()=>this._update_layers()),this.on_change([s],()=>this._connect_sources(!0)),this._layer_map={},this._connected=[],this._connect_sources()}_update_layers(){this._layer_map={},this._update_data(!0)}_connect_sources(e=!1){for(const e of this.model.data_sources)this._connected.indexOf(e)<0&&(this.connect(e.properties.data.change,()=>this._update_data(!0)),this._connected.push(e));this._update_data(e)}initialize(){if(super.initialize(),l.JSONConverter){const{CSVLoader:e,Tile3DLoader:t}=h;h.registerLoaders([t,e]);const o={classes:p(),enumerations:{COORDINATE_SYSTEM:l.COORDINATE_SYSTEM,GL:d.default},constants:{Tile3DLoader:t}};this.jsonConverter=new l.JSONConverter({configuration:o})}}_update_data(e=!0){let t=0;for(const e of this.model.layers){let o;if(t+=1,t-1 in this._layer_map)o=this.model.data_sources[this._layer_map[t-1]];else{if("number"!=typeof e.data)continue;this._layer_map[t-1]=e.data,o=this.model.data_sources[e.data]}const i=[],a=o.columns();for(let e=0;e<o.data[a[0]].length;e++){const t={};for(const i of a){const a=o._shapes[i];void 0!==a&&a.length>1&&"number"==typeof a[0]?t[i]=o.data[i].slice(e*a[1],e*a[1]+a[1]):t[i]=o.data[i][e]}i.push(t)}e.data=i}e&&this.updateDeck()}_on_click_event(e){const t={coordinate:e.coordinate,lngLat:e.lngLat,index:e.index};this.model.clickState=t}_on_hover_event(e){const t={coordinate:e.coordinate,lngLat:e.lngLat,index:e.index};this.model.hoverState=t}_on_viewState_event(e){this.model.viewState=e.viewState}getData(){return Object.assign(Object.assign({},this.model.data),{layers:this.model.layers,initialViewState:this.model.initialViewState,onViewStateChange:e=>this._on_viewState_event(e),onClick:e=>this._on_click_event(e),onHover:e=>this._on_hover_event(e)})}updateDeck(){if(!this.deckGL)return void this.render();const e=this.getData();if(l.updateDeck)l.updateDeck(e,this.deckGL);else{const t=this.jsonConverter.convert(e);this.deckGL.setProps(t)}}createDeck({mapboxApiKey:e,container:t,jsonInput:o,tooltip:i}){let a;try{const s=this.jsonConverter.convert(o),n=r.makeTooltip(i);a=new l.DeckGL(Object.assign(Object.assign({},s),{map:_,mapboxApiAccessToken:e,container:t,getTooltip:n}))}catch(e){console.error(e)}return a}render(){super.render();const e=a.div({class:"deckgl"});c.set_size(e,this.model);const t=this.model.mapbox_api_key,o=this.model.tooltip,i=this.getData();l.createDeck?this.deckGL=l.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}):this.deckGL=this.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}),this.el.appendChild(e)}}o.DeckGLPlotView=u,u.__name__="DeckGLPlotView";class m extends n.HTMLBox{constructor(e){super(e)}static init_DeckGLPlot(){this.prototype.default_view=u,this.define({data:[s.Any],data_sources:[s.Array,[]],clickState:[s.Any],hoverState:[s.Any],initialViewState:[s.Any],layers:[s.Array,[]],mapbox_api_key:[s.String],tooltip:[s.Any],viewState:[s.Any]}),this.override({height:400,width:600})}}o.DeckGLPlot=m,m.__name__="DeckGLPlot",m.__module__="panel.models.deckgl",m.init_DeckGLPlot()},n "064eac2866": function _(e,t,n){n /n This file was adapted from https://github.com/uber/deck.gl/ the LICENSEn below is preserved to comply with the original license.n n Copyright (c) 2015 - 2017 Uber Technologies, Inc.n n Permission is hereby granted, free of charge, to any person obtaining a copyn of this software and associated documentation files (the "Software"), to dealn in the Software without restriction, including without limitation the rightsn to use, copy, modify, merge, publish, distribute, sublicense, and/or selln copies of the Software, and to permit persons to whom the Software isn furnished to do so, subject to the following conditions:n n The above copyright notice and this permission notice shall be included inn all copies or substantial portions of the Software.n n THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORn IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEn AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERn LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INn THE SOFTWARE.n /n let i,l;Object.defineProperty(n,"__esModule",{value:!0});const o={fontFamily:’"Helvetica Neue", Helvetica, Arial, sans-serif’,display:"flex",flex:"wrap",maxWidth:"500px",flexDirection:"column",zIndex:2};function r(){return document.createElement("div")}function s(e){if(!e.picked)return null;if(e.object===i)return l;const t={html:a(e.object),style:o};return l=t,i=e.object,t}n.getTooltipDefault=s;const c=new Set(["position","index"]);function a(e){const t=r();for(const n in e){if(c.has(n))continue;const i=r();i.className="header",i.textContent=n;const l=r();l.className="value",l.textContent=u(e[n]);const o=r();f(o,i,l),o.appendChild(i),o.appendChild(l),t.appendChild(o)}return t.innerHTML}function f(e,t,n){Object.assign(t.style,{fontWeight:700,marginRight:"10px",flex:"1 1 0%"}),Object.assign(n.style,{flex:"none",maxWidth:"250px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Object.assign(e.style,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"stretch"})}function u(e){let t;if(Array.isArray(e)&&e.length>4)t=`Array<${e.length}>`;else if("string"==typeof e)t=e;else if("number"==typeof e)t=String(e);else try{t=JSON.stringify(e)}catch(e){t="<Non-Serializable Object>"}return t.length>50&&(t=t.slice(0,50)),t}function p(e,t){let n=e;for(const e in t)n=n.replace(`{${e}}`,t[e]);return n}n.tabularize=a,n.toText=u,n.substituteIn=p,n.makeTooltip=function(e){return e?e.html||e.text?t=>{if(!t.picked)return null;const n={style:e.style||o};return e.html?n.html=p(e.html,t.object):n.text=p(e.text,t.object),n}:s:null}},n "093eb75864": function _(E,_,R){_.exports={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,FUNC_ADD:32774,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,BLEND_COLOR:32773,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,VENDOR:7936,RENDERER:7937,VERSION:7938,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,BROWSER_DEFAULT_WEBGL:37444,STATIC_DRAW:35044,STREAM_DRAW:35040,DYNAMIC_DRAW:35048,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,CULL_FACE:2884,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,BLEND:3042,DEPTH_TEST:2929,DITHER:3024,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,SCISSOR_TEST:3089,STENCIL_TEST:2960,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CONTEXT_LOST_WEBGL:37442,CW:2304,CCW:2305,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,COMPILE_STATUS:35713,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_ATTRIBUTES:35721,ACTIVE_UNIFORMS:35718,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,ALWAYS:519,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,GEQUAL:518,NOTEQUAL:517,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,TEXTURE_WIDTH:4096,TEXTURE_HEIGHT:4097,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,MAX_3D_TEXTURE_SIZE:32883,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,MAX_TEXTURE_LOD_BIAS:34045,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,RASTERIZER_DISCARD:35977,VERTEX_ARRAY_BINDING:34229,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,MAX_ELEMENT_INDEX:36203,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,RGB9_E5:35901,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2UI:36975,TEXTURE_IMMUTABLE_FORMAT:37167,TEXTURE_IMMUTABLE_LEVELS:33503,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,UNSIGNED_INT_24_8:34042,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,INT_2_10_10_10_REV:36255,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,MAX_SAMPLES:36183,SAMPLER_BINDING:35097,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,UNSIGNED_NORMALIZED:35863,SIGNED_NORMALIZED:36764,VERTEX_ATTRIB_ARRAY_INTEGER:35069,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,DEPTH24_STENCIL8:35056,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,COLOR:6144,DEPTH:6145,STENCIL:6146,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,INVALID_INDEX:4294967295,TIMEOUT_IGNORED:-1,MAX_CLIENT_WAIT_TIMEOUT_WEBGL:37447,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},n "ae707e931d": function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("@bokehjs/models/widgets/markup"),a=e("ba20932521");class s extends a.PanelMarkupView{render(){var e;super.render();const t=(e=this.model.text,(new DOMParser).parseFromString(e,"text/html").documentElement.textContent)||this.model.text;t?(this.markup_el.innerHTML=t,Array.from(this.markup_el.querySelectorAll("script")).forEach(e=>{const t=document.createElement("script");Array.from(e.attributes).forEach(e=>t.setAttribute(e.name,e.value)),t.appendChild(document.createTextNode(e.innerHTML)),e.parentNode&&e.parentNode.replaceChild(t,e)})):this.markup_el.innerHTML=""}}r.HTMLView=s,s.__name__="HTMLView";class o extends n.Markup{constructor(e){super(e)}static init_HTML(){this.prototype.default_view=s}}r.HTML=o,o.__name__="HTML",o.__module__="panel.models.markup",o.init_HTML()},n "9ba5b8422a": function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const s=e("tslib"),i=s.__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/widgets/markup"),n=s.__importDefault(e("18bba7b7e1")),a=e("ba20932521");class d extends a.PanelMarkupView{render(){super.render();const e=this.model.text.replace(/(\r\n|\n|\r)/gm,"").replace("’",’"’);let t;try{t=window.JSON.parse(e)}catch(e){return void(this.markup_el.innerHTML="<b>Invalid JSON:</b> "+e.toString())}const r={hoverPreviewEnabled:this.model.hover_preview,theme:this.model.theme},s=new n.default(t,this.model.depth,r).render();let i="border-radius: 5px; padding: 10px;";"dark"==this.model.theme?s.style.cssText="background-color: rgb(30, 30, 30);"+i:s.style.cssText=i,this.markup_el.append(s)}}r.JSONView=d,d.__name__="JSONView";const l=["dark","light"];class p extends o.Markup{constructor(e){super(e)}static init_JSON(){this.prototype.default_view=d,this.define({depth:[i.Number,1],hover_preview:[i.Boolean,!1],theme:[i.Enum(l),"dark"]})}}r.JSON=p,p.__name__="JSON",p.__module__="panel.models.markup",p.init_JSON()},n "18bba7b7e1": function _(t,e,r){function n(t){return null===t?"null":typeof t}function o(t){return!!t&&"object"==typeof t}function i(t){if(void 0===t)return"";if(null===t)return"Object";if("object"==typeof t&&!t.constructor)return"Object";var e=/function ([^(])/.exec(t.constructor.toString());return e&&e.length>1?e[1]:""}function s(t,e,r){return"null"===t||"undefined"===t?t:("string"!==t&&"stringifiable"!==t||(r=’"’+r.replace(/"/g,’\\"’)+’"’),"function"===t?e.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":r)}function a(t){var e="";return o(t)?(e=i(t),Array.isArray(t)&&(e+="["+t.length+"]")):e=s(n(t),t,t),e}function f(t){return"json-formatter-"+t}function m(t,e,r){var n=document.createElement(t);return e&&n.classList.add(f(e)),void 0!==r&&(r instanceof Node?n.appendChild(r):n.appendChild(document.createTextNode(String(r)))),n}Object.defineProperty(r,"__esModule",{value:!0}),function(t){if("undefined"!=typeof window){var e=document.createElement("style");e.setAttribute("media","screen"),e.innerHTML=t,document.head.appendChild(e)}}(‘.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n’);var l=/(^\d{1,4}[\.|\\/|-]\\d{1,2}[\\.|\\/|-]\\d{1,4})(\\s*(?:0?[1-9]:[0-5]|1(?=[012])\\d:[0-5])\\d\\s*[ap]m)?$/,d=/\\d{2}:\\d{2}:\\d{2} GMT-\\d{4}/,c=/\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/,p=window.requestAnimationFrame||function(t){return t(),0},j={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null},h=function(){function t(t,e,r,n){void 0===e&&(e=1),void 0===r&&(r=j),this.json=t,this.open=e,this.config=r,this.key=n,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=j.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=j.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=j.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=j.useToJSON),\"\"===this.key&&(this.key='\"\"')}return Object.defineProperty(t.prototype,\"isOpen\",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(t){this._isOpen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isDate\",{get:function(){return this.json instanceof Date||"string"===this.type&&(l.test(this.json)||c.test(this.json)||d.test(this.json))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUrl",{get:function(){return"string"===this.type&&0===this.json.indexOf("http")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isArray",{get:function(){return Array.isArray(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isObject",{get:function(){return o(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyObject",{get:function(){return!this.keys.length&&!this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useToJSON",{get:function(){return this.config.useToJSON&&"stringifiable"===this.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasKey",{get:function(){return void 0!==this.key},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"constructorName",{get:function(){return i(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":n(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keys",{get:function(){if(this.isObject){var t=Object.keys(this.json);return!this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return[]},enumerable:!0,configurable:!0}),t.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(f("open")))},t.prototype.openAtDepth=function(t){void 0===t&&(t=1),t<0||(this.open=t,this.isOpen=0!==t,this.element&&(this.removeChildren(!1),0===t?this.element.classList.remove(f("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(f("open")))))},t.prototype.getInlinepreview=function(){var t=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?"Array["+this.json.length+"]":"["+this.json.map(a).join(", ")+"]";var e=this.keys,r=e.slice(0,this.config.hoverPreviewFieldCount).map((function(e){return e+":"+a(t.json[e])})),n=e.length>=this.config.hoverPreviewFieldCount?"…":"";return"{"+r.join(", ")+n+"}"},t.prototype.render=function(){this.element=m("div","row");var t=this.isObject?m("a","toggler-link"):m("span");if(this.isObject&&!this.useToJSON&&t.appendChild(m("span","toggler")),this.hasKey&&t.appendChild(m("span","key",this.key+":")),this.isObject&&!this.useToJSON){var e=m("span","value"),r=m("span"),n=m("span","constructor-name",this.constructorName);if(r.appendChild(n),this.isArray){var o=m("span");o.appendChild(m("span","bracket","[")),o.appendChild(m("span","number",this.json.length)),o.appendChild(m("span","bracket","]")),r.appendChild(o)}e.appendChild(r),t.appendChild(e)}else{(e=this.isUrl?m("a"):m("span")).classList.add(f(this.type)),this.isDate&&e.classList.add(f("date")),this.isUrl&&(e.classList.add(f("url")),e.setAttribute("href",this.json));var i=s(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(i)),t.appendChild(e)}if(this.isObject&&this.config.hoverPreviewEnabled){var a=m("span","preview-text");a.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(a)}var l=m("div","children");return this.isObject&&l.classList.add(f("object")),this.isArray&&l.classList.add(f("array")),this.isEmpty&&l.classList.add(f("empty")),this.config&&this.config.theme&&this.element.classList.add(f(this.config.theme)),this.isOpen&&this.element.classList.add(f("open")),this.element.appendChild(t),this.element.appendChild(l),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&t.addEventListener("click",this.toggleOpen.bind(this)),this.element},t.prototype.appendChildren=function(e){var r=this;void 0===e&&(e=!1);var n=this.element.querySelector("div."+f("children"));if(n&&!this.isEmpty)if(e){var o=0,i=function(){var e=r.keys[o],s=new t(r.json[e],r.open-1,r.config,e);n.appendChild(s.render()),(o+=1)<r.keys.length&&(o>10?i():p(i))};p(i)}else this.keys.forEach((function(e){var o=new t(r.json[e],r.open-1,r.config,e);n.appendChild(o.render())}))},t.prototype.removeChildren=function(t){void 0===t&&(t=!1);var e=this.element.querySelector("div."+f("children"));if(t){var r=0,n=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?n():p(n))};p(n)}else e&&(e.innerHTML="")},t}();r.default=h},n "a94e371ba4": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e("tslib"),n=e("@bokehjs/models/widgets/input_widget"),s=e("@bokehjs/styles/buttons"),o=l.__importStar(e("@bokehjs/core/properties"));class a extends n.InputWidgetView{constructor(){super(…arguments),this._initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.button_type.change,()=>this.render()),this.connect(this.model.properties.data.change,()=>this.render()),this.connect(this.model.properties.filename.change,()=>this.render()),this.connect(this.model.properties.label.change,()=>this._update_label())}render(){if(super.render(),this.anchor_el=document.createElement("a"),this.anchor_el.classList.add(s.bk_btn),this.anchor_el.classList.add(s.bk_btn_type(this.model.button_type)),this.anchor_el.textContent=this.model.label,null===this.model.data||null===this.model.filename)return this.anchor_el.addEventListener("click",()=>this.click()),this.group_el.appendChild(this.anchor_el),void(this._initialized=!0);const e=function(e){const t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(t.length),n=new Uint8Array(l);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new Blob([l],{type:i})}(this.model.data),t=URL.createObjectURL(e);this.anchor_el.href=t,this.anchor_el.download=this.model.filename,this.group_el.appendChild(this.anchor_el),this.model.auto&&this._initialized&&this.anchor_el.click(),this._initialized=!0}_update_label(){this.anchor_el.textContent=this.model.label}click(){this.model.clicks=this.model.clicks+1}}i.FileDownloadView=a,a.__name__="FileDownloadView";class r extends n.InputWidget{constructor(e){super(e)}static init_FileDownload(){this.prototype.default_view=a,this.define({auto:[o.Boolean,!1],clicks:[o.Number,0],data:[o.String,null],label:[o.String,"Download"],filename:[o.String,null],button_type:[o.ButtonType,"default"]}),this.override({title:""})}}i.FileDownload=r,r.__name__="FileDownload",r.__module__="panel.models.widgets",r.init_FileDownload()},n "7b859fb3cf": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const a=e("@bokehjs/models/widgets/markup"),n=e("ba20932521");class r extends n.PanelMarkupView{render(){super.render(),this.markup_el.innerHTML=this.model.text,window.renderMathInElement&&window.renderMathInElement(this.el,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1}]})}}i.KaTeXView=r,r.__name__="KaTeXView";class s extends a.Markup{constructor(e){super(e)}static init_KaTeX(){this.prototype.default_view=r}}i.KaTeX=s,s.__name__="KaTeX",s.__module__="panel.models.katex",s.init_KaTeX()},n "0c21036737": function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e("@bokehjs/models/widgets/markup"),s=e("ba20932521");class _ extends s.PanelMarkupView{initialize(){super.initialize(),this._hub=window.MathJax.Hub,this._hub.Config({tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}})}render(){super.render(),this._hub&&(this.markup_el.innerHTML=this.model.text,this._hub.Queue(["Typeset",this._hub,this.markup_el]))}}a.MathJaxView=_,_.__name__="MathJaxView";class h extends i.Markup{constructor(e){super(e)}static init_MathJax(){this.prototype.default_view=_}}a.MathJax=h,h.__name__="MathJax",h.__module__="panel.models.mathjax",h.init_MathJax()},n "000f20fdd3": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),n=e("@bokehjs/core/dom"),l=e("@bokehjs/models/widgets/widget");class a extends l.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.value.change,()=>this.render()),this.connect(this.model.properties.loop_policy.change,()=>this.set_loop_state(this.model.loop_policy))}get_height(){return 250}render(){if(null!=this.sliderEl)return this.sliderEl.style.width="{this.model.width}px",this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),void(this.sliderEl.value=String(this.model.value));super.render(),this.sliderEl=document.createElement("input"),this.sliderEl.setAttribute("type","range"),this.sliderEl.style.width=this.model.width+"px",this.sliderEl.value=String(this.model.value),this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),this.sliderEl.onchange=e=>this.set_frame(parseInt(e.target.value));const e=n.div();e.style.cssText="margin: 0 auto; display: table; padding: 5px";const t="text-align: center; min-width: 40px; margin: 2px",i=document.createElement("button");i.style.cssText="text-align: center; min-width: 20px",i.appendChild(document.createTextNode("–")),i.onclick=()=>this.slower(),e.appendChild(i);const s=document.createElement("button");s.style.cssText=t,s.appendChild(document.createTextNode("❚◀◀")),s.onclick=()=>this.first_frame(),e.appendChild(s);const l=document.createElement("button");l.style.cssText=t,l.appendChild(document.createTextNode("❚◀")),l.onclick=()=>this.previous_frame(),e.appendChild(l);const a=document.createElement("button");a.style.cssText=t,a.appendChild(document.createTextNode("◀")),a.onclick=()=>this.reverse_animation(),e.appendChild(a);const o=document.createElement("button");o.style.cssText=t,o.appendChild(document.createTextNode("❚❚")),o.onclick=()=>this.pause_animation(),e.appendChild(o);const r=document.createElement("button");r.style.cssText=t,r.appendChild(document.createTextNode("▶")),r.onclick=()=>this.play_animation(),e.appendChild(r);const d=document.createElement("button");d.style.cssText=t,d.appendChild(document.createTextNode("▶❚")),d.onclick=()=>this.next_frame(),e.appendChild(d);const h=document.createElement("button");h.style.cssText=t,h.appendChild(document.createTextNode("▶▶❚")),h.onclick=()=>this.last_frame(),e.appendChild(h);const c=document.createElement("button");c.style.cssText="text-align: center; min-width: 20px",c.appendChild(document.createTextNode("+")),c.onclick=()=>this.faster(),e.appendChild(c),this.loop_state=document.createElement("form"),this.loop_state.style.cssText="margin: 0 auto; display: table";const m=document.createElement("input");m.type="radio",m.value="once",m.name="state";const p=document.createElement("label");p.innerHTML="Once",p.style.cssText="padding: 0 10px 0 5px; user-select:none;";const u=document.createElement("input");u.setAttribute("type","radio"),u.setAttribute("value","loop"),u.setAttribute("name","state");const _=document.createElement("label");_.innerHTML="Loop",_.style.cssText="padding: 0 10px 0 5px; user-select:none;";const v=document.createElement("input");v.setAttribute("type","radio"),v.setAttribute("value","reflect"),v.setAttribute("name","state");const x=document.createElement("label");x.innerHTML="Reflect",x.style.cssText="padding: 0 10px 0 5px; user-select:none;","once"==this.model.loop_policy?m.checked=!0:"loop"==this.model.loop_policy?u.checked=!0:v.checked=!0,this.loop_state.appendChild(m),this.loop_state.appendChild(p),this.loop_state.appendChild(u),this.loop_state.appendChild(_),this.loop_state.appendChild(v),this.loop_state.appendChild(x),this.el.appendChild(this.sliderEl),this.el.appendChild(e),this.el.appendChild(this.loop_state)}set_frame(e){this.model.value!=e&&(this.model.value=e),this.sliderEl.value!=String(e)&&(this.sliderEl.value=String(e))}get_loop_state(){for(var e=this.loop_state.state,t=0;t<e.length;t++){var i=e[t];if(i.checked)return i.value}return"once"}set_loop_state(e){for(var t=this.loop_state.state,i=0;i<t.length;i++){var s=t[i];s.value==e&&(s.checked=!0)}}next_frame(){this.set_frame(Math.min(this.model.end,this.model.value+this.model.step))}previous_frame(){this.set_frame(Math.max(this.model.start,this.model.value-this.model.step))}first_frame(){this.set_frame(this.model.start)}last_frame(){this.set_frame(this.model.end)}slower(){this.model.interval=Math.round(this.model.interval/.7),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}faster(){this.model.interval=Math.round(.7*this.model.interval),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}anim_step_forward(){if(this.model.value<this.model.end)this.next_frame();else{var e=this.get_loop_state();"loop"==e?this.first_frame():"reflect"==e?(this.last_frame(),this.reverse_animation()):(this.pause_animation(),this.last_frame())}}anim_step_reverse(){if(this.model.value>this.model.start)this.previous_frame();else{var e=this.get_loop_state();"loop"==e?this.last_frame():"reflect"==e?(this.first_frame(),this.play_animation()):(this.pause_animation(),this.first_frame())}}pause_animation(){this.model.direction=0,this.timer&&(clearInterval(this.timer),this.timer=null)}play_animation(){this.pause_animation(),this.model.direction=1,this.timer||(this.timer=setInterval(()=>this.anim_step_forward(),this.model.interval))}reverse_animation(){this.pause_animation(),this.model.direction=-1,this.timer||(this.timer=setInterval(()=>this.anim_step_reverse(),this.model.interval))}}i.PlayerView=a,a.__name__="PlayerView";class o extends l.Widget{constructor(e){super(e)}static init_Player(){this.prototype.default_view=a,this.define({direction:[s.Number,0],interval:[s.Number,500],start:[s.Number],end:[s.Number],step:[s.Number,1],loop_policy:[s.Any,"once"],value:[s.Any,0]}),this.override({width:400})}}i.Player=o,o.__name__="Player",o.__module__="panel.models.widgets",o.init_Player()},n "2363c12dd6": function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t("tslib").__importStar(t("@bokehjs/core/properties")),l=t("@bokehjs/core/util/object"),r=t("@bokehjs/core/util/eq"),s=t("@bokehjs/models/layouts/html_box"),n=t("99a25e6992"),a=t("990b5dd5c7"),p=t("ba20932521"),h=window.Plotly,_=(t,e,o)=>{let i=Array.isArray(e)?[]:{};if("click"===o||"hover"===o||"selected"===o){const o=[];if(null==e)return null;const l=t.data;for(let t=0;t<e.points.length;t++){const i=e.points[t];let r={};for(let t in i){const e=i[t];!i.hasOwnProperty(t)||Array.isArray(e)||a.isPlainObject(e)||(r[t]=e)}null!=i&&(i.hasOwnProperty("curveNumber")&&i.hasOwnProperty("pointNumber")&&l[i.curveNumber].hasOwnProperty("customdata")&&(r.customdata=l[i.curveNumber].customdata[i.pointNumber]),i.hasOwnProperty("pointNumbers")&&(r.pointNumbers=i.pointNumbers)),o[t]=r}i.points=o}else if("relayout"===o||"restyle"===o)for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return e.hasOwnProperty("range")&&(i.range=e.range),e.hasOwnProperty("lassoPoints")&&(i.lassoPoints=e.lassoPoints),i};class u extends p.PanelHTMLBoxView{constructor(){super(…arguments),this._settingViewport=!1,this._plotInitialized=!1,this._reacting=!1,this._relayouting=!1,this._end_relayouting=n.debounce(()=>{this._relayouting=!1},2e3,!1)}connect_signals(){super.connect_signals(),this.connect(this.model.properties.viewport_update_policy.change,this._updateSetViewportFunction),this.connect(this.model.properties.viewport_update_throttle.change,this._updateSetViewportFunction),this.connect(this.model.properties._render_count.change,this.plot),this.connect(this.model.properties.viewport.change,this._updateViewportFromProperty)}render(){super.render(),window.Plotly&&this.plot()}plot(){if(!window.Plotly)return;const t=[];for(let e=0;e<this.model.data.length;e++)t.push(this._get_trace(e,!1));let e=a.deepCopy(this.model.layout);if(this._relayouting){const t=this.el.layout;Object.keys(t).reduce((t,o)=>{"axis"===o.slice(1,5)&&"range"in t&&(e[o].range=t.range)},{})}this._reacting=!0,h.react(this.el,t,e,this.model.config).then(()=>{this._updateSetViewportFunction(),this._updateViewportProperty(),this._plotInitialized||(this.el.on("plotly_relayout",t=>{!0!==t._update_from_property&&(this.model.relayout_data=_(this.el,t,"relayout"),this._updateViewportProperty(),this._end_relayouting())}),this.el.on("plotly_relayouting",()=>{"mouseup"!==this.model.viewport_update_policy&&(this._relayouting=!0,this._updateViewportProperty())}),this.el.on("plotly_restyle",t=>{this.model.restyle_data=_(this.el,t,"restyle"),this._updateViewportProperty()}),this.el.on("plotly_click",t=>{this.model.click_data=_(this.el,t,"click")}),this.el.on("plotly_hover",t=>{this.model.hover_data=_(this.el,t,"hover")}),this.el.on("plotly_selected",t=>{this.model.selected_data=_(this.el,t,"selected")}),this.el.on("plotly_clickannotation",t=>{delete t.event,delete t.fullAnnotation,this.model.clickannotation_data=t}),this.el.on("plotly_deselect",()=>{this.model.selected_data=null}),this.el.on("plotly_unhover",()=>{this.model.hover_data=null})),this._plotInitialized=!0,this._reacting=!1})}_get_trace(t,e){const o=l.clone(this.model.data[t]),i=this.model.data_sources[t];for(const t of i.columns()){const l=i._shapes[t][0];let s=i.get_array(t)[0];if(l.length>1){const t=[];for(let e=0;e<l[0];e++)t.push(s.slice(e*l[1],(e+1)*l[1]));s=t}let n=t.split("."),a=n[n.length-1];var r=o;for(let t of n.slice(0,-1))r=r[t];e&&1==n.length?r[a]=[s]:r[a]=s}return o}_updateViewportFromProperty(){if(!h||this._settingViewport||this._reacting||!this.model.viewport)return;const t=this.el._fullLayout;Object.keys(this.model.viewport).reduce((e,o)=>{if(r.isEqual(a.get(t,o),e))return!0;{let t=a.deepCopy(this.model.viewport);return t._update_from_property=!0,h.relayout(this.el,t),!1}},{})}_updateViewportProperty(){const t=this.el._fullLayout;let e={};for(let o in t){if(!t.hasOwnProperty(o))continue;let i=o.slice(0,5);"xaxis"!==i&&"yaxis"!==i||(e[o+".range"]=a.deepCopy(t[o].range))}r.isEqual(e,this.model.viewport)||this._setViewport(e)}_updateSetViewportFunction(){"continuous"===this.model.viewport_update_policy||"mouseup"===this.model.viewport_update_policy?this._setViewport=t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)}:this._setViewport=a.throttle(t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)},this.model.viewport_update_throttle)}}o.PlotlyPlotView=u,u.__name__="PlotlyPlotView";class d extends s.HTMLBox{constructor(t){super(t)}static init_PlotlyPlot(){this.prototype.default_view=u,this.define({data:[i.Array,[]],layout:[i.Any,{}],config:[i.Any,{}],data_sources:[i.Array,[]],relayout_data:[i.Any,{}],restyle_data:[i.Array,[]],click_data:[i.Any,{}],hover_data:[i.Any,{}],clickannotation_data:[i.Any,{}],selected_data:[i.Any,{}],viewport:[i.Any,{}],viewport_update_policy:[i.String,"mouseup"],viewport_update_throttle:[i.Number,200],_render_count:[i.Number,0]})}}o.PlotlyPlot=d,d.__name__="PlotlyPlot",d.__module__="panel.models.plotly",d.init_PlotlyPlot()},n "99a25e6992": function _(n,l,u){function t(n,l,u){var t,e,o,a,r;function i(){var c=Date.now()-a;c<l&&c>=0?t=setTimeout(i,l-c):(t=null,u||(r=n.apply(o,e),o=e=null))}null==l&&(l=100);var c=function(){o=this,e=arguments,a=Date.now();var c=u&&!t;return t||(t=setTimeout(i,l)),c&&(r=n.apply(o,e),o=e=null),r};return c.clear=function(){t&&(clearTimeout(t),t=null)},c.flush=function(){t&&(r=n.apply(o,e),o=e=null,clearTimeout(t),t=null)},c}t.debounce=t,l.exports=t},n "990b5dd5c7": function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.get=(t,e,n)=>{const r=n=>String.prototype.split.call(e,n).filter(Boolean).reduce((t,e)=>null!=t?t[e]:t,t),o=r(/[,[\]]+?/)||r(/[,[\].]+?/);return void 0===o||o===t?n:o},n.throttle=function(t,e){var n=0;return function(){var r=Number(new Date);r-n>=e&&(t(),n=r)}},n.deepCopy=function t(e){var n;if(null==e||"object"!=typeof e)return e;if(e instanceof Array){n=[];for(var r=0,o=e.length;r<o;r++)n[r]=t(e[r]);return n}if(e instanceof Object){const n={};for(const r in e){const o=r;e.hasOwnProperty(o)&&(n[o]=t(e[o]))}return n}throw new Error("Unable to copy obj! Its type isn’t supported.")},n.isPlainObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},n "76307e5afa": function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/layouts/html_box"),r=e("ba20932521");class l extends o.HTMLBoxView{connect_signals(){super.connect_signals();const e=()=>{this.render(),this.root.compute_layout()};this.connect(this.model.properties.height.change,e),this.connect(this.model.properties.width.change,e),this.connect(this.model.properties.height_policy.change,e),this.connect(this.model.properties.width_policy.change,e),this.connect(this.model.properties.sizing_mode.change,e),this.connect(this.model.properties.active.change,()=>this.setCSS()),this.connect(this.model.properties.bar_color.change,()=>this.setCSS()),this.connect(this.model.properties.css_classes.change,()=>this.setCSS()),this.connect(this.model.properties.value.change,()=>this.setValue()),this.connect(this.model.properties.max.change,()=>this.setMax())}render(){super.render();const e=Object.assign(Object.assign({},this.model.style),{display:"inline-block"});this.progressEl=document.createElement("progress"),this.setValue(),this.setMax(),r.set_size(this.progressEl,this.model),this.setCSS();for(const s in e)this.progressEl.style.setProperty(s,e[s]);this.el.appendChild(this.progressEl)}setCSS(){let e=this.model.css_classes.join(" ")+" "+this.model.bar_color;this.model.active&&(e+=" active"),this.progressEl.className=e}setValue(){null!=this.model.value&&(this.progressEl.value=this.model.value)}setMax(){null!=this.model.max&&(this.progressEl.max=this.model.max)}_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new r.CachedVariadicBox(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}}t.ProgressView=l,l.__name__="ProgressView";class h extends o.HTMLBox{constructor(e){super(e)}static init_Progress(){this.prototype.default_view=l,this.define({active:[i.Boolean,!0],bar_color:[i.String,"primary"],style:[i.Any,{}],max:[i.Number,100],value:[i.Number,null]})}}t.Progress=h,h.__name__="Progress",h.__module__="panel.models.widgets",h.init_Progress()},n "38b2bc9574": function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),a=e("@bokehjs/core/view"),o=e("@bokehjs/core/util/array"),c=e("@bokehjs/model"),n=e("@bokehjs/protocol/receiver");class r extends a.View{renderTo(){}}s.StateView=r,r.__name__="StateView";class _ extends c.Model{constructor(e){super(e),this._receiver=new n.Receiver,this._cache={}}apply_state(e){this._receiver.consume(e.header),this._receiver.consume(e.metadata),this._receiver.consume(e.content),this._receiver.message&&this.document&&this.document.apply_json_patch(this._receiver.message.content)}_receive_json(e,t){const s=JSON.parse(e);this._cache[t]=s;let i=this.state;for(const e of this.values)i=i[e];i===t?this.apply_state(s):this._cache[i]&&this.apply_state(this._cache[i])}set_state(e,t){let s=o.copy(this.values);s[this.widgets[e.id]]=t;let i=this.state;for(const e of s)i=i[e];var a,c,n;this.values=s,this.json?this._cache[i]?this.apply_state(this._cache[i]):(a=i,c=e=>this._receive_json(e,i),(n=new XMLHttpRequest).overrideMimeType("application/json"),n.open("GET",a,!0),n.onreadystatechange=function(){4==n.readyState&&200==n.status&&c(n.responseText)},n.send(null)):this.apply_state(i)}static init_State(){this.prototype.default_view=r,this.define({json:[i.Boolean,!1],state:[i.Any,{}],widgets:[i.Any,{}],values:[i.Any,[]]})}}s.State=_,_.__name__="State",_.__module__="panel.models.state",_.init_State()},n "90d1f929bd": function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t("tslib").__importStar(t("@bokehjs/core/properties")),a=t("@bokehjs/core/util/types"),n=t("@bokehjs/models/layouts/html_box");class c extends n.HTMLBoxView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,this._plot),this.connect(this.model.properties.data_sources.change,()=>this._connect_sources()),this._connected=[],this._connect_sources()}_connect_sources(){for(const t in this.model.data_sources){const e=this.model.data_sources[t];this._connected.indexOf(t)<0&&(this.connect(e.properties.data.change,this._plot),this._connected.push(t))}}_fetch_datasets(){const t={};for(const e in this.model.data_sources){const s=this.model.data_sources[e],o=[],a=s.columns();for(let t=0;t<s.data[a[0]].length;t++){const e={};for(const o of a)e[o]=s.data[o][t];o.push(e)}t[e]=o}return t}render(){super.render(),this._plot()}_plot(){const t=this.model.data;if(null!=t&&window.vegaEmbed){if(this.model.data_sources&&Object.keys(this.model.data_sources).length>0){const e=this._fetch_datasets();if("data"in e&&(t.data.values=e.data,delete e.data),null!=t.data){const s=a.isArray(t.data)?t.data:[t.data];for(const t of s)t.name in e&&(t.values=e[t.name],delete e[t.name])}this.model.data.datasets=e}window.vegaEmbed(this.el,this.model.data,{actions:!1})}}}s.VegaPlotView=c,c.__name__="VegaPlotView";class d extends n.HTMLBox{constructor(t){super(t)}static init_VegaPlot(){this.prototype.default_view=c,this.define({data:[o.Any],data_sources:[o.Any]})}}s.VegaPlot=d,d.__name__="VegaPlot",d.__module__="panel.models.vega",d.init_VegaPlot()},n "b0c3e9e9c2": function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),l=e("ba20932521");class d extends l.PanelHTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,()=>this.set_loop()),this.connect(this.model.properties.paused.change,()=>this.set_paused()),this.connect(this.model.properties.time.change,()=>this.set_time()),this.connect(this.model.properties.value.change,()=>this.set_value()),this.connect(this.model.properties.volume.change,()=>this.set_volume())}render(){super.render(),this.videoEl=document.createElement("video"),this.model.sizing_mode&&"fixed"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit="fill",this.videoEl.style.minWidth="100%",this.videoEl.style.minHeight="100%",this.videoEl.controls=!0,this.videoEl.src=this.model.value,this.videoEl.currentTime=this.model.time,this.videoEl.loop=this.model.loop,null!=this.model.volume?this.videoEl.volume=this.model.volume/100:this.model.volume=100*this.videoEl.volume,this.videoEl.onpause=()=>this.model.paused=!0,this.videoEl.onplay=()=>this.model.paused=!1,this.videoEl.ontimeupdate=()=>this.update_time(this),this.videoEl.onvolumechange=()=>this.update_volume(this),this.el.appendChild(this.videoEl),this.model.paused||this.videoEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.videoEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.videoEl.volume)}set_loop(){this.videoEl.loop=this.model.loop}set_paused(){!this.videoEl.paused&&this.model.paused&&this.videoEl.pause(),this.videoEl.paused&&!this.model.paused&&this.videoEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.videoEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.videoEl.currentTime=this.model.time)}set_value(){this.videoEl.src=this.model.value}}t.VideoView=d,d.__name__="VideoView";class h extends s.HTMLBox{constructor(e){super(e)}static init_Video(){this.prototype.default_view=d,this.define({loop:[o.Boolean,!1],paused:[o.Boolean,!0],time:[o.Number,0],throttle:[o.Number,250],value:[o.Any,""],volume:[o.Number,null]})}}t.Video=h,h.__name__="Video",h.__module__="panel.models.widgets",h.init_Video()},n "3c7145a2fa": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/layouts/html_box"),h=e("ba20932521");class a extends h.PanelHTMLBoxView{constructor(){super(…arguments),this.constraints={audio:!1,video:!0}}initialize(){super.initialize(),null!==this.model.timeout&&this.set_timeout()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.timeout.change,()=>this.set_timeout()),this.connect(this.model.properties.snapshot.change,()=>this.snapshot()),this.connect(this.model.properties.paused.change,()=>this.pause())}pause(){this.model.paused&&(null!=this.timer&&(clearInterval(this.timer),this.timer=null),this.videoEl.pause()),this.set_timeout()}set_timeout(){this.timer&&(clearInterval(this.timer),this.timer=null),this.model.timeout>0&&(this.timer=setInterval(()=>this.snapshot(),this.model.timeout))}snapshot(){this.canvasEl.width=this.videoEl.videoWidth,this.canvasEl.height=this.videoEl.videoHeight;const e=this.canvasEl.getContext("2d");e&&e.drawImage(this.videoEl,0,0,this.canvasEl.width,this.canvasEl.height),this.model.value=this.canvasEl.toDataURL("image/"+this.model.format,.95)}remove(){super.remove(),this.timer&&(clearInterval(this.timer),this.timer=null)}render(){super.render(),this.videoEl||(this.videoEl=document.createElement("video"),this.model.sizing_mode&&"fixed"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit="fill",this.videoEl.style.minWidth="100%",this.videoEl.style.minHeight="100%",this.canvasEl=document.createElement("canvas"),this.el.appendChild(this.videoEl),navigator.mediaDevices.getUserMedia&&navigator.mediaDevices.getUserMedia(this.constraints).then(e=>{this.videoEl.srcObject=e,this.model.paused||this.videoEl.play()}).catch(console.error))}}i.VideoStreamView=a,a.__name__="VideoStreamView";class l extends o.HTMLBox{constructor(e){super(e)}static init_VideoStream(){this.prototype.default_view=a,this.define({format:[s.String,"png"],paused:[s.Boolean,!1],snapshot:[s.Boolean,!1],timeout:[s.Number,0],value:[s.Any]}),this.override({height:240,width:320})}}i.VideoStream=l,l.__name__="VideoStream",l.__module__="panel.models.widgets",l.init_VideoStream()},n "ecfbb965eb": function _(e,o,l){Object.defineProperty(l,"__esModule",{value:!0});var V=e("5b5e56e89a");l.VTKPlot=V.VTKPlot;var t=e("729dd26c71");l.VTKVolumePlot=t.VTKVolumePlot;var K=e("e23461e5d7");l.VTKAxes=K.VTKAxes},n "5b5e56e89a": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),i=e("@bokehjs/core/dom"),a=e("c704c63c0a"),o=e("ba07c3d566");class r extends a.AbstractVTKView{constructor(){super(…arguments),this._axes_initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.axes.change,()=>{this._delete_axes(),this.model.axes&&this._set_axes(),this._vtk_renwin.getRenderWindow().render()}),this.el.addEventListener("mouseenter",()=>{const e=this._vtk_renwin.getInteractor();this.model.enable_keybindings&&(document.querySelector("body").addEventListener("keypress",e.handleKeyPress),document.querySelector("body").addEventListener("keydown",e.handleKeyDown),document.querySelector("body").addEventListener("keyup",e.handleKeyUp))}),this.el.addEventListener("mouseleave",()=>{const e=this._vtk_renwin.getInteractor();document.querySelector("body").removeEventListener("keypress",e.handleKeyPress),document.querySelector("body").removeEventListener("keydown",e.handleKeyDown),document.querySelector("body").removeEventListener("keyup",e.handleKeyUp)})}render(){super.render(),this._axes=null,this._axes_initialized=!1,this._plot()}after_layout(){this._axes_initialized||(this._render_axes_canvas(),this._axes_initialized=!0)}_render_axes_canvas(){const e=this._vtk_container.getElementsByTagName("canvas");if(1!=e.length)throw Error("Error at initialization of the 3D scene, container should have one and only one canvas");e[0].classList.add("scene3d-canvas");const t=i.canvas({style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}});t.classList.add("axes-canvas"),this._vtk_container.appendChild(t),this._vtk_renwin.setResizeCallback(()=>{const e=this._vtk_container.getBoundingClientRect(),n=Math.floor(e.width*window.devicePixelRatio),s=Math.floor(e.height*window.devicePixelRatio);t.setAttribute("width",n.toFixed()),t.setAttribute("height",s.toFixed())})}_delete_axes(){if(null==this._axes)return;Object.keys(this._axes).forEach(e=>this._vtk_renwin.getRenderer().removeActor(this._axes[e]));const e=this._vtk_renwin.getContainer().getElementsByClassName("axes-canvas")[0],t=e.getContext("2d");t&&t.clearRect(0,0,e.clientWidth*window.devicePixelRatio,e.clientHeight*window.devicePixelRatio),this._axes=null}_set_axes(){if(this.model.axes){const e=this._vtk_renwin.getContainer().getElementsByClassName("axes-canvas")[0],{psActor:t,axesActor:n,gridActor:s}=this.model.axes.create_axes(e);this._axes={psActor:t,axesActor:n,gridActor:s},this._vtk_renwin.getRenderer().addActor(t),this._vtk_renwin.getRenderer().addActor(n),this._vtk_renwin.getRenderer().addActor(s)}}_plot(){if(!this.model.data)return void this._vtk_renwin.getRenderWindow().render();const e=o.vtkns.DataAccessHelper.get("zip",{zipContent:atob(this.model.data),callback:t=>{const n=o.vtkns.HttpSceneLoader.newInstance({renderer:this._vtk_renwin.getRenderer(),dataAccessHelper:e}),s=o.vtk.macro.debounce(()=>{null==this._axes&&this.model.axes&&this._set_axes(),this.model.properties.camera.change.emit()},100);n.setUrl("index.json"),n.onReady(s)}})}}n.VTKPlotView=r,r.__name__="VTKPlotView";class d extends a.AbstractVTKPlot{constructor(e){super(e),this.outline=o.vtkns.OutlineFilter.newInstance();const t=o.vtkns.Mapper.newInstance();t.setInputConnection(this.outline.getOutputPort()),this.outline_actor=o.vtkns.Actor.newInstance(),this.outline_actor.setMapper(t)}static init_VTKPlot(){this.prototype.default_view=r,this.define({data:[s.String],axes:[s.Instance],enable_keybindings:[s.Boolean,!1]})}}n.VTKPlot=d,d.__name__="VTKPlot",d.init_VTKPlot()},n "c704c63c0a": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e("tslib").__importStar(e("@bokehjs/core/properties")),r=e("@bokehjs/core/dom"),s=e("@bokehjs/core/util/object"),a=e("@bokehjs/models/layouts/html_box"),o=e("ba20932521"),_=e("ba07c3d566");class d extends o.PanelHTMLBoxView{constructor(){super(…arguments),this._setting_camera=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,()=>{this.invalidate_render()}),this.connect(this.model.properties.orientation_widget.change,()=>{this._orientation_widget_visibility(this.model.orientation_widget)}),this.connect(this.model.properties.camera.change,()=>this._set_camera_state())}_orientation_widget_visibility(e){this._orientationWidget.setEnabled(e),e?this._widgetManager.enablePicking():this._widgetManager.disablePicking(),this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderWindow().render()}_create_orientation_widget(){const e=_.vtkns.AxesActor.newInstance(),t=_.vtkns.OrientationMarkerWidget.newInstance({actor:e,interactor:this._vtk_renwin.getInteractor()});t.setEnabled(!0),t.setViewportCorner(_.vtkns.OrientationMarkerWidget.Corners.BOTTOM_RIGHT),t.setViewportSize(.15),t.setMinPixelSize(100),t.setMaxPixelSize(300),this._orientationWidget=t;const i=_.vtkns.WidgetManager.newInstance();i.setRenderer(t.getRenderer());const n=_.vtkns.InteractiveOrientationWidget.newInstance();n.placeWidget(e.getBounds()),n.setBounds(e.getBounds()),n.setPlaceFactor(1);const r=i.addWidget(n);this._widgetManager=i,r.onOrientationChange(({direction:e})=>{const t=this._vtk_renwin.getRenderer().getActiveCamera(),i=t.getFocalPoint(),n=t.getPosition(),r=t.getViewUp(),s=Math.sqrt(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)+Math.pow(n[2]-i[2],2));t.setPosition(i[0]+e[0]*s,i[1]+e[1]*s,i[2]+e[2]*s),e[0]&&t.setViewUp(_.majorAxis(r,1,2)),e[1]&&t.setViewUp(_.majorAxis(r,0,2)),e[2]&&t.setViewUp(_.majorAxis(r,0,1)),this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_renwin.getRenderWindow().render()}),this._orientation_widget_visibility(this.model.orientation_widget)}_get_camera_state(){if(!this._setting_camera){this._setting_camera=!0;const e=s.clone(this._vtk_renwin.getRenderer().getActiveCamera().get());delete e.classHierarchy,delete e.vtkObject,delete e.vtkCamera,delete e.viewPlaneNormal,this.model.camera=e,this._setting_camera=!1}}_set_camera_state(){if(!this._setting_camera){this._setting_camera=!0;try{this.model.camera&&this._vtk_renwin.getRenderer().getActiveCamera().set(this.model.camera)}finally{this._setting_camera=!1}this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_renwin.getRenderWindow().render()}}render(){super.render(),this._orientationWidget=null,this._vtk_container=r.div(),o.set_size(this._vtk_container,this.model),this.el.appendChild(this._vtk_container),this._vtk_renwin=_.vtkns.FullScreenRenderWindow.newInstance({rootContainer:this.el,container:this._vtk_container}),this._remove_default_key_binding(),this._create_orientation_widget(),this._vtk_renwin.getRenderer().getActiveCamera().onModified(()=>this._get_camera_state()),this._set_camera_state(),this.model.renderer_el=this._vtk_renwin}after_layout(){super.after_layout(),this._vtk_renwin.resize()}_remove_default_key_binding(){const e=this._vtk_renwin.getInteractor();document.querySelector("body").removeEventListener("keypress",e.handleKeyPress),document.querySelector("body").removeEventListener("keydown",e.handleKeyDown),document.querySelector("body").removeEventListener("keyup",e.handleKeyUp)}}i.AbstractVTKView=d,d.__name__="AbstractVTKView";class c extends a.HTMLBox{constructor(e){super(e)}getActors(){return this.renderer_el.getRenderer().getActors()}static init_AbstractVTKPlot(){this.define({orientation_widget:[n.Boolean,!1],camera:[n.Instance]}),this.override({height:300,width:300})}}i.AbstractVTKPlot=c,c.__name__="AbstractVTKPlot",c.__module__="panel.models.vtk",c.init_AbstractVTKPlot()},n "ba07c3d566": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@bokehjs/core/util/serialization"),a=e("@bokehjs/core/util/array");function o(e){const t=Math.min(Math.max(Math.round(e),0),255).toString(16);return 2==t.length?t:"0"+t}function i(e,t,n){return"#"+o(e)+o(t)+o(n)}function s(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,a=e.length;r<a;r++)n[r]=e.charCodeAt(r);return t}n.vtk=window.vtk,n.vtkns={},n.vtk&&(n.vtkns.DataArray=n.vtk.Common.Core.vtkDataArray,n.vtkns.ImageData=n.vtk.Common.DataModel.vtkImageData,n.vtkns.OutlineFilter=n.vtk.Filters.General.vtkOutlineFilter,n.vtkns.CubeSource=n.vtk.Filters.Sources.vtkCubeSource,n.vtkns.LineSource=n.vtk.Filters.Sources.vtkLineSource,n.vtkns.PlaneSource=n.vtk.Filters.Sources.vtkPlaneSource,n.vtkns.PointSource=n.vtk.Filters.Sources.vtkPointSource,n.vtkns.OrientationMarkerWidget=n.vtk.Interaction.Widgets.vtkOrientationMarkerWidget,n.vtkns.DataAccessHelper=n.vtk.IO.Core.DataAccessHelper,n.vtkns.HttpSceneLoader=n.vtk.IO.Core.vtkHttpSceneLoader,n.vtkns.ImageSlice=n.vtk.Rendering.Core.vtkImageSlice,n.vtkns.Actor=n.vtk.Rendering.Core.vtkActor,n.vtkns.AxesActor=n.vtk.Rendering.Core.vtkAxesActor,n.vtkns.Mapper=n.vtk.Rendering.Core.vtkMapper,n.vtkns.ImageMapper=n.vtk.Rendering.Core.vtkImageMapper,n.vtkns.SphereMapper=n.vtk.Rendering.Core.vtkSphereMapper,n.vtkns.WidgetManager=n.vtk.Widgets.Core.vtkWidgetManager,n.vtkns.InteractiveOrientationWidget=n.vtk.Widgets.Widgets3D.vtkInteractiveOrientationWidget,n.vtkns.PixelSpaceCallbackMapper=n.vtk.Rendering.Core.vtkPixelSpaceCallbackMapper,n.vtkns.FullScreenRenderWindow=n.vtk.Rendering.Misc.vtkFullScreenRenderWindow,n.vtkns.VolumeController=n.vtk.Interaction.UI.vtkVolumeController,n.vtkns.Volume=n.vtk.Rendering.Core.vtkVolume,n.vtkns.VolumeMapper=n.vtk.Rendering.Core.vtkVolumeMapper,n.vtkns.ColorTransferFunction=n.vtk.Rendering.Core.vtkColorTransferFunction,n.vtkns.PiecewiseFunction=n.vtk.Common.DataModel.vtkPiecewiseFunction,n.vtkns.BoundingBox=n.vtk.Common.DataModel.vtkBoundingBox),n.hexToRGB=function(e){return[parseInt(e.slice(1,3),16)/255,parseInt(e.slice(3,5),16)/255,parseInt(e.slice(5,7),16)/255]},n.rgbToHex=i,n.vtkLutToMapper=function(e){const{scale:t,nodes:r}=e.get("scale","nodes");if(t!==n.vtkns.ColorTransferFunction.Scale.LINEAR)throw"Error transfer function scale not handle";const o=r.map(e=>e.x),s=Math.min(…o),k=Math.max(…o),v=a.linspace(s,k,255),c=[0,0,0];return{low:s,high:k,palette:v.map(t=>(e.getColor(t,c),i(255*c[0],255*c[1],255*c[2])))}},n.data2VTKImageData=function(e){const t=n.vtkns.ImageData.newInstance({spacing:e.spacing});t.setDimensions(e.dims),t.setOrigin(null!=e.origin?e.origin:e.dims.map(e=>e/2));const a=n.vtkns.DataArray.newInstance({name:"scalars",numberOfComponents:1,values:new r.ARRAY_TYPES[e.dtype](s(atob(e.buffer)))});return t.getPointData().setScalars(a),t},n.majorAxis=function(e,t,n){const r=[0,0,0],a=Math.abs(e[t])>Math.abs(e[n])?t:n,o=e[a]>0?1:-1;return r[a]=o,r},n.cartesian_product=function(…e){return e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[].concat(e,t))))}},n "729dd26c71": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),r=e("c704c63c0a"),n=e("ba07c3d566");class o extends r.AbstractVTKView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.colormap.change,()=>{this.colormap_slector.value=this.model.colormap;const e=new Event("change");this.colormap_slector.dispatchEvent(e)}),this.connect(this.model.properties.shadow.change,()=>{this.shadow_selector.value=this.model.shadow?"1":"0";const e=new Event("change");this.shadow_selector.dispatchEvent(e)}),this.connect(this.model.properties.sampling.change,()=>{this.sampling_slider.value=this.model.sampling.toFixed(2);const e=new Event("input");this.sampling_slider.dispatchEvent(e)}),this.connect(this.model.properties.edge_gradient.change,()=>{this.edge_gradient_slider.value=this.model.edge_gradient.toFixed(2);const e=new Event("input");this.edge_gradient_slider.dispatchEvent(e)}),this.connect(this.model.properties.rescale.change,()=>{this._controllerWidget.setRescaleColorMap(this.model.rescale),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.ambient.change,()=>{this.volume.getProperty().setAmbient(this.model.ambient),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.diffuse.change,()=>{this.volume.getProperty().setDiffuse(this.model.diffuse),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.specular.change,()=>{this.volume.getProperty().setSpecular(this.model.specular),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.specular_power.change,()=>{this.volume.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.display_volume.change,()=>{this._set_volume_visibility(this.model.display_volume),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.display_slices.change,()=>{this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_i.change,()=>{this.image_actor_i.getMapper().setISlice(this.model.slice_i),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_j.change,()=>{this.image_actor_j.getMapper().setJSlice(this.model.slice_j),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_k.change,()=>{this.image_actor_k.getMapper().setKSlice(this.model.slice_k),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.render_background.change,()=>{this._vtk_renwin.getRenderer().setBackground(…n.hexToRGB(this.model.render_background)),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.interpolation.change,()=>{this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderWindow().render()})}get volume(){return this._controllerWidget.getActor()}get image_actor_i(){return this._vtk_renwin.getRenderer().getActors()[0]}get image_actor_j(){return this._vtk_renwin.getRenderer().getActors()[1]}get image_actor_k(){return this._vtk_renwin.getRenderer().getActors()[2]}get shadow_selector(){return this.el.querySelector(".js-shadow")}get edge_gradient_slider(){return this.el.querySelector(".js-edge")}get sampling_slider(){return this.el.querySelector(".js-spacing")}get colormap_slector(){return this.el.querySelector(".js-color-preset")}_set_interpolation(e){"fast_linear"==e?(this.volume.getProperty().setInterpolationTypeToFastLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):"linear"==e?(this.volume.getProperty().setInterpolationTypeToLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):(this.volume.getProperty().setInterpolationTypeToNearest(),this.image_actor_i.getProperty().setInterpolationTypeToNearest())}render(){super.render(),this._controllerWidget=n.vtkns.VolumeController.newInstance({size:[400,150],rescaleColorMap:this.model.rescale}),this._vtk_image_data=n.data2VTKImageData(this.model.data),this._controllerWidget.setContainer(this.el),this._vtk_renwin.getRenderWindow().getInteractor(),this._vtk_renwin.getRenderWindow().getInteractor().setDesiredUpdateRate(45),this._plot_volume(),this._connect_controls(),this._plot_slices(),this._set_volume_visibility(this.model.display_volume),this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderer().setBackground(…n.hexToRGB(this.model.render_background)),this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderer().resetCamera()}_connect_controls(){this.colormap_slector.addEventListener("change",()=>{this.model.colormap=this.colormap_slector.value}),this.model.colormap?this.model.properties.colormap.change.emit():this.model.colormap=this.colormap_slector.value,this.shadow_selector.addEventListener("change",()=>{this.model.shadow=!!Number(this.shadow_selector.value)}),(this.model.shadow=!!Number(this.shadow_selector.value))&&this.model.properties.shadow.change.emit(),this.sampling_slider.addEventListener("input",()=>{const e=Number(this.sampling_slider.value);Math.abs(this.model.sampling-e)>=.005&&(this.model.sampling=e)}),Math.abs(this.model.sampling-Number(this.shadow_selector.value))>=.005&&this.model.properties.sampling.change.emit(),this.edge_gradient_slider.addEventListener("input",()=>{const e=Number(this.edge_gradient_slider.value);Math.abs(this.model.edge_gradient-e)>=.005&&(this.model.edge_gradient=e)}),Math.abs(this.model.edge_gradient-Number(this.edge_gradient_slider.value))>=.005&&this.model.properties.edge_gradient.change.emit()}_plot_volume(){const e=this._vtk_image_data,t=n.vtkns.Volume.newInstance(),i=n.vtkns.VolumeMapper.newInstance();t.setMapper(i),i.setInputData(e);const s=(e.getPointData().getScalars()||e.getPointData().getArrays()[0]).getRange(),r=n.vtkns.ColorTransferFunction.newInstance();r.onModified(()=>this.model.mapper=n.vtkLutToMapper(r));const o=n.vtkns.PiecewiseFunction.newInstance(),a=.7*Math.sqrt(e.getSpacing().map(e=>e*e).reduce((e,t)=>e+t,0));i.setSampleDistance(a),t.getProperty().setRGBTransferFunction(0,r),t.getProperty().setScalarOpacity(0,o),t.getProperty().setInterpolationTypeToFastLinear(),t.getProperty().setScalarOpacityUnitDistance(0,n.vtkns.BoundingBox.getDiagonalLength(e.getBounds())/Math.max(…e.getDimensions())),t.getProperty().setGradientOpacityMinimumValue(0,0),t.getProperty().setGradientOpacityMaximumValue(0,.05*(s[1]-s[0])),t.getProperty().setShade(this.model.shadow),t.getProperty().setUseGradientOpacity(0,!0),t.getProperty().setGradientOpacityMinimumOpacity(0,0),t.getProperty().setGradientOpacityMaximumOpacity(0,1),t.getProperty().setAmbient(this.model.ambient),t.getProperty().setDiffuse(this.model.diffuse),t.getProperty().setSpecular(this.model.specular),t.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderer().addVolume(t),this._controllerWidget.setupContent(this._vtk_renwin.getRenderWindow(),t,!0)}_plot_slices(){const e=this._vtk_image_data,t=n.vtkns.ImageSlice.newInstance(),i=n.vtkns.ImageSlice.newInstance(),s=n.vtkns.ImageSlice.newInstance(),r=n.vtkns.ImageMapper.newInstance(),o=n.vtkns.ImageMapper.newInstance(),a=n.vtkns.ImageMapper.newInstance();r.setInputData(e),r.setISlice(this.model.slice_i),t.setMapper(r),o.setInputData(e),o.setJSlice(this.model.slice_j),i.setMapper(o),a.setInputData(e),a.setKSlice(this.model.slice_k),s.setMapper(a);const l=n.vtkns.PiecewiseFunction.newInstance();l.removeAllPoints(),l.addPoint(0,1);const c=this.volume.getProperty().getRGBTransferFunction(0),d=t.getProperty();i.setProperty(d),s.setProperty(d),d.setRGBTransferFunction(c),d.setScalarOpacity(l);const h=this._vtk_renwin.getRenderer();h.addActor(t),h.addActor(i),h.addActor(s)}_set_volume_visibility(e){this.volume.setVisibility(e)}_set_slices_visibility(e){this._vtk_renwin.getRenderer().getActors().map(t=>t.setVisibility(e))}}i.VTKVolumePlotView=o,o.__name__="VTKVolumePlotView";class a extends r.AbstractVTKPlot{constructor(e){super(e)}static init_VTKVolumePlot(){this.prototype.default_view=o,this.define({data:[s.Instance],shadow:[s.Boolean,!0],sampling:[s.Number,.4],edge_gradient:[s.Number,.2],colormap:[s.String],rescale:[s.Boolean,!1],ambient:[s.Number,.2],diffuse:[s.Number,.7],specular:[s.Number,.3],specular_power:[s.Number,8],slice_i:[s.Int,0],slice_j:[s.Int,0],slice_k:[s.Int,0],display_volume:[s.Boolean,!0],display_slices:[s.Boolean,!1],render_background:[s.String,"#52576e"],interpolation:[s.Any,"fast_linear"],mapper:[s.Instance]})}}i.VTKVolumePlot=a,a.__name__="VTKVolumePlot",a.init_VTKVolumePlot()},n "e23461e5d7": function _(t,s,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t("tslib"),n=t("2f3fd5db07"),a=t("@bokehjs/model"),c=e.__importStar(t("@bokehjs/core/properties")),r=t("ba07c3d566");class h extends a.Model{constructor(t){super(t)}static init_VTKAxes(){this.define({origin:[c.Array],xticker:[c.Instance],yticker:[c.Instance],zticker:[c.Instance],digits:[c.Number,1],show_grid:[c.Boolean,!0],grid_opacity:[c.Number,.1],axes_opacity:[c.Number,1],fontsize:[c.Number,12]})}get xticks(){return this.xticker.ticks}get yticks(){return this.yticker.ticks}get zticks(){return this.zticker.ticks}get xlabels(){return this.xticker.labels?this.xticker.labels:this.xticks.map(t=>t.toFixed(this.digits))}get ylabels(){return this.yticker.labels?this.yticker.labels:this.yticks.map(t=>t.toFixed(this.digits))}get zlabels(){return this.zticker.labels?this.zticker.labels:this.zticks.map(t=>t.toFixed(this.digits))}_make_grid_lines(t,s,i){const e=[];for(let n=0;n<t-1;n++)for(let t=0;t<s-1;t++){const a=n*s+t+i,c=[5,a,n*s+t+1+i,(n+1)*s+t+1+i,(n+1)*s+t+i,a];e.push(c)}return e}_create_grid_axes(){const t=[];t.push(r.cartesian_product(this.xticks,this.yticks,[this.origin[2]])),t.push(r.cartesian_product([this.origin[0]],this.yticks,this.zticks)),t.push(r.cartesian_product(this.xticks,[this.origin[1]],this.zticks));const s=[];let i=0;s.push(this._make_grid_lines(this.xticks.length,this.yticks.length,i)),i+=this.xticks.length*this.yticks.length,s.push(this._make_grid_lines(this.yticks.length,this.zticks.length,i)),i+=this.yticks.length*this.zticks.length,s.push(this._make_grid_lines(this.xticks.length,this.zticks.length,i));const e=r.vtk({vtkClass:"vtkPolyData",points:{vtkClass:"vtkPoints",dataType:"Float32Array",numberOfComponents:3,values:t.flat(2)},lines:{vtkClass:"vtkCellArray",dataType:"Uint32Array",values:s.flat(2)}}),n=r.vtkns.Mapper.newInstance(),a=r.vtkns.Actor.newInstance();return n.setInputData(e),a.setMapper(n),a.getProperty().setOpacity(this.grid_opacity),a.setVisibility(this.show_grid),a}create_axes(t){const s=[this.xticks,this.yticks,this.zticks].map((t,s)=>{let i=null;switch(s){case 0:i=r.cartesian_product(t,[this.origin[1]],[this.origin[2]]);break;case 1:i=r.cartesian_product([this.origin[0]],t,[this.origin[2]]);break;case 2:i=r.cartesian_product([this.origin[0]],[this.origin[1]],t)}return i}).flat(2),i=r.vtk({vtkClass:"vtkPolyData",points:{vtkClass:"vtkPoints",dataType:"Float32Array",numberOfComponents:3,values:s},lines:{vtkClass:"vtkCellArray",dataType:"Uint32Array",values:[2,0,this.xticks.length-1,2,this.xticks.length,this.xticks.length+this.yticks.length-1,2,this.xticks.length+this.yticks.length,this.xticks.length+this.yticks.length+this.zticks.length-1]}}),e=r.vtkns.PixelSpaceCallbackMapper.newInstance();e.setInputData(i),e.setUseZValues(!0),e.setCallback((s,i,a)=>{const c=t.getContext("2d");if(c){const r={height:t.clientHeight*window.devicePixelRatio,width:t.clientWidth*window.devicePixelRatio},h=e.getInputData().getPoints(),l=i.getViewMatrix();n.mat4.transpose(l,l);const o=i.getProjectionMatrix(a,-1,1);n.mat4.transpose(o,o),c.clearRect(0,0,r.width,r.height),s.forEach((t,s)=>{const i=h.getPoint(s),e=n.vec3.fromValues(i[0],i[1],i[2]);if(n.vec3.transformMat4(e,e,l),e[2]+=.05,n.vec3.transformMat4(e,e,o),e[2]-.001<t[3]){let i;c.font="30px serif",c.textAlign="center",c.textBaseline="alphabetic",c.fillText(".",t[0],r.height-t[1]+2),c.font=`${this.fontsize*window.devicePixelRatio}px serif`,c.textAlign="right",c.textBaseline="top",i=s<this.xticks.length?this.xlabels[s]:s>=this.xticks.length&&s<this.xticks.length+this.yticks.length?this.ylabels[s-this.xticks.length]:this.zlabels[s-(this.xticks.length+this.yticks.length)],c.fillText(${i},t[0],r.height-t[1])}})}});const a=r.vtkns.Actor.newInstance();a.setMapper(e);const c=r.vtkns.Mapper.newInstance();c.setInputData(i);const h=r.vtkns.Actor.newInstance();return h.setMapper(c),h.getProperty().setOpacity(this.axes_opacity),{psActor:a,axesActor:h,gridActor:this._create_grid_axes()}}}i.VTKAxes=h,h.__name__="VTKAxes",h.__module__="panel.models.vtk",h.init_VTKAxes()},n "2f3fd5db07": function _(t,c,a){Object.defineProperty(a,"__esModule",{value:!0});const o=t("tslib"),r=o.__importStar(t("68ca94c15c"));a.glMatrix=r;const _=o.__importStar(t("7c0b8e6048"));a.mat2=_;const e=o.__importStar(t("dc03f0a621"));a.mat2d=e;const i=o.__importStar(t("0285c50a7e"));a.mat3=i;const m=o.__importStar(t("a427635f32"));a.mat4=m;const n=o.__importStar(t("eb06fc032a"));a.quat=n;const s=o.__importStar(t("277615c682"));a.quat2=s;const p=o.__importStar(t("c56d9ff837"));a.vec2=p;const S=o.__importStar(t("2c5eb22089"));a.vec3=S;const f=o.__importStar(t("c1aa33d719"));a.vec4=f},n "68ca94c15c": function _(t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EPSILON=1e-6,r.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,r.RANDOM=Math.random,r.setMatrixArrayType=function(t){r.ARRAY_TYPE=t};var n=Math.PI/180;r.toRadian=function(t){return t*n},r.equals=function(t,a){return Math.abs(t-a)<=r.EPSILON*Math.max(1,Math.abs(t),Math.abs(a))},Math.hypot||(Math.hypot=function(){for(var t=0,a=arguments.length;a–;)t+=arguments[a]*arguments[a];return Math.sqrt(t)})},n "7c0b8e6048": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1],f=r[2],s=r[3];return t[0]=a*c+e*i,t[1]=u*c+o*i,t[2]=a*f+e*s,t[3]=u*f+o*s,t}function e(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}r.create=function(){var t=new a.ARRAY_TYPE(4);return a.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},r.clone=function(t){var n=new a.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},r.fromValues=function(t,n,r,u){var e=new a.ARRAY_TYPE(4);return e[0]=t,e[1]=n,e[2]=r,e[3]=u,e},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.transpose=function(t,n){if(t===n){var r=n[1];t[1]=n[2],t[2]=r}else t[0]=n[0],t[1]=n[2],t[2]=n[1],t[3]=n[3];return t},r.invert=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*e-u*a;return o?(o=1/o,t[0]=e*o,t[1]=-a*o,t[2]=-u*o,t[3]=r*o,t):null},r.adjoint=function(t,n){var r=n[0];return t[0]=n[3],t[1]=-n[1],t[2]=-n[2],t[3]=r,t},r.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},r.multiply=u,r.rotate=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=Math.sin(r),i=Math.cos(r);return t[0]=a*i+e*c,t[1]=u*i+o*c,t[2]=a*-c+e*i,t[3]=u*-c+o*i,t},r.scale=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1];return t[0]=a*c,t[1]=u*c,t[2]=e*i,t[3]=o*i,t},r.fromRotation=function(t,n){var r=Math.sin(n),a=Math.cos(n);return t[0]=a,t[1]=r,t[2]=-r,t[3]=a,t},r.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t},r.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},r.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},r.LDU=function(t,n,r,a){return t[2]=a[2]/a[0],r[0]=a[0],r[1]=a[1],r[3]=a[3]-t[2]*r[1],[t,n,r]},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=e,r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=t[3],c=n[0],i=n[1],f=n[2],s=n[3];return Math.abs(r-c)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(u-i)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(i))&&Math.abs(e-f)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(f))&&Math.abs(o-s)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(s))},r.multiplyScalar=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.multiplyScalarAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.mul=u,r.sub=e},n "dc03f0a621": function _(t,n,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function u(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1],h=a[2],M=a[3],b=a[4],l=a[5];return t[0]=r*s+e*f,t[1]=u*s+o*f,t[2]=r*h+e*M,t[3]=u*h+o*M,t[4]=r*b+e*l+c,t[5]=u*b+o*l+i,t}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t}a.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},a.clone=function(t){var n=new r.ARRAY_TYPE(6);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n},a.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t},a.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},a.fromValues=function(t,n,a,u,e,o){var c=new r.ARRAY_TYPE(6);return c[0]=t,c[1]=n,c[2]=a,c[3]=u,c[4]=e,c[5]=o,c},a.set=function(t,n,a,r,u,e,o){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=e,t[5]=o,t},a.invert=function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],c=n[5],i=a*e-r*u;return i?(i=1/i,t[0]=e*i,t[1]=-r*i,t[2]=-u*i,t[3]=a*i,t[4]=(u*c-e*o)*i,t[5]=(r*o-a*c)*i,t):null},a.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},a.multiply=u,a.rotate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=Math.sin(a),f=Math.cos(a);return t[0]=r*f+e*s,t[1]=u*f+o*s,t[2]=r*-s+e*f,t[3]=u*-s+o*f,t[4]=c,t[5]=i,t},a.scale=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1];return t[0]=r*s,t[1]=u*s,t[2]=e*f,t[3]=o*f,t[4]=c,t[5]=i,t},a.translate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1];return t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=r*s+e*f+c,t[5]=u*s+o*f+i,t},a.fromRotation=function(t,n){var a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=-a,t[3]=r,t[4]=0,t[5]=0,t},a.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t[4]=0,t[5]=0,t},a.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=n[0],t[5]=n[1],t},a.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},a.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},a.add=function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t},a.subtract=e,a.multiplyScalar=function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t},a.multiplyScalarAndAdd=function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t},a.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]},a.equals=function(t,n){var a=t[0],u=t[1],e=t[2],o=t[3],c=t[4],i=t[5],s=n[0],f=n[1],h=n[2],M=n[3],b=n[4],l=n[5];return Math.abs(a-s)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(u-f)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(f))&&Math.abs(e-h)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(c-b)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))},a.mul=u,a.sub=e},n "0285c50a7e": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function u(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1],l=n[2],m=n[3],v=n[4],E=n[5],P=n[6],S=n[7],d=n[8];return t[0]=f*r+b*e+l*s,t[1]=f*u+b*i+l*M,t[2]=f*o+b*c+l*h,t[3]=m*r+v*e+E*s,t[4]=m*u+v*i+E*M,t[5]=m*o+v*c+E*h,t[6]=P*r+S*e+d*s,t[7]=P*u+S*i+d*M,t[8]=P*o+S*c+d*h,t}function o(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t}n.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},n.fromMat4=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[4],t[4]=a[5],t[5]=a[6],t[6]=a[8],t[7]=a[9],t[8]=a[10],t},n.clone=function(t){var a=new r.ARRAY_TYPE(9);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromValues=function(t,a,n,u,o,e,i,c,s){var M=new r.ARRAY_TYPE(9);return M[0]=t,M[1]=a,M[2]=n,M[3]=u,M[4]=o,M[5]=e,M[6]=i,M[7]=c,M[8]=s,M},n.set=function(t,a,n,r,u,o,e,i,c,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=u,t[4]=o,t[5]=e,t[6]=i,t[7]=c,t[8]=s,t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],u=a[5];t[1]=a[3],t[2]=a[6],t[3]=n,t[5]=a[7],t[6]=r,t[7]=u}else t[0]=a[0],t[1]=a[3],t[2]=a[6],t[3]=a[1],t[4]=a[4],t[5]=a[7],t[6]=a[2],t[7]=a[5],t[8]=a[8];return t},n.invert=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=M*e-i*s,f=-M*o+i*c,b=s*o-e*c,l=n*h+r*f+u*b;return l?(l=1/l,t[0]=h*l,t[1]=(-M*r+u*s)*l,t[2]=(i*r-u*e)*l,t[3]=f*l,t[4]=(M*n-u*c)*l,t[5]=(-i*n+u*o)*l,t[6]=b*l,t[7]=(-s*n+r*c)*l,t[8]=(e*n-r*o)*l,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8];return t[0]=e*M-i*s,t[1]=u*s-r*M,t[2]=r*i-u*e,t[3]=i*c-o*M,t[4]=n*M-u*c,t[5]=u*o-n*i,t[6]=o*s-e*c,t[7]=r*c-n*s,t[8]=n*e-r*o,t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],u=t[3],o=t[4],e=t[5],i=t[6],c=t[7],s=t[8];return a*(s*o-e*c)+n*(-s*u+e*i)+r*(c*u-o*i)},n.multiply=u,n.translate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1];return t[0]=r,t[1]=u,t[2]=o,t[3]=e,t[4]=i,t[5]=c,t[6]=f*r+b*e+s,t[7]=f*u+b*i+M,t[8]=f*o+b*c+h,t},n.rotate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=Math.sin(n),b=Math.cos(n);return t[0]=b*r+f*e,t[1]=b*u+f*i,t[2]=b*o+f*c,t[3]=b*e-f*r,t[4]=b*i-f*u,t[5]=b*c-f*o,t[6]=s,t[7]=M,t[8]=h,t},n.scale=function(t,a,n){var r=n[0],u=n[1];return t[0]=r*a[0],t[1]=r*a[1],t[2]=r*a[2],t[3]=u*a[3],t[4]=u*a[4],t[5]=u*a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=a[0],t[7]=a[1],t[8]=1,t},n.fromRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=a[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromMat2d=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=0,t[3]=a[2],t[4]=a[3],t[5]=0,t[6]=a[4],t[7]=a[5],t[8]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=n+n,i=r+r,c=u+u,s=n*e,M=r*e,h=r*i,f=u*e,b=u*i,l=u*c,m=o*e,v=o*i,E=o*c;return t[0]=1-h-l,t[3]=M-E,t[6]=f+v,t[1]=M+E,t[4]=1-s-l,t[7]=b-m,t[2]=f-v,t[5]=b+m,t[8]=1-s-h,t},n.normalFromMat4=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=a[9],f=a[10],b=a[11],l=a[12],m=a[13],v=a[14],E=a[15],P=n*i-r*e,S=n*c-u*e,d=n*s-o*e,A=r*c-u*i,x=r*s-o*i,O=u*s-o*c,p=M*m-h*l,I=M*v-f*l,L=M*E-b*l,N=h*v-f*m,R=h*E-b*m,_=f*E-b*v,y=P*_-S*R+d*N+A*L-x*I+O*p;return y?(y=1/y,t[0]=(i*_-c*R+s*N)*y,t[1]=(c*L-e*_-s*I)*y,t[2]=(e*R-i*L+s*p)*y,t[3]=(u*R-r*_-o*N)*y,t[4]=(n*_-u*L+o*I)*y,t[5]=(r*L-n*R-o*p)*y,t[6]=(m*O-v*x+E*A)*y,t[7]=(v*d-l*O-E*S)*y,t[8]=(l*x-m*d+E*P)*y,t):null},n.projection=function(t,a,n){return t[0]=2/a,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},n.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t},n.subtract=o,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]},n.equals=function(t,a){var n=t[0],u=t[1],o=t[2],e=t[3],i=t[4],c=t[5],s=t[6],M=t[7],h=t[8],f=a[0],b=a[1],l=a[2],m=a[3],v=a[4],E=a[5],P=a[6],S=a[7],d=a[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(u-b)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(e-m)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(m))&&Math.abs(i-v)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(c-E)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(s-P)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(P))&&Math.abs(M-S)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(S))&&Math.abs(h-d)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(d))},n.mul=u,n.sub=o},n "a427635f32": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function o(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],e=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],v=a[12],m=a[13],P=a[14],E=a[15],S=n[0],I=n[1],O=n[2],p=n[3];return t[0]=S*r+I*M+O*c+p*v,t[1]=S*h+I*e+O*f+p*m,t[2]=S*o+I*s+O*b+p*P,t[3]=S*u+I*i+O*l+p*E,S=n[4],I=n[5],O=n[6],p=n[7],t[4]=S*r+I*M+O*c+p*v,t[5]=S*h+I*e+O*f+p*m,t[6]=S*o+I*s+O*b+p*P,t[7]=S*u+I*i+O*l+p*E,S=n[8],I=n[9],O=n[10],p=n[11],t[8]=S*r+I*M+O*c+p*v,t[9]=S*h+I*e+O*f+p*m,t[10]=S*o+I*s+O*b+p*P,t[11]=S*u+I*i+O*l+p*E,S=n[12],I=n[13],O=n[14],p=n[15],t[12]=S*r+I*M+O*c+p*v,t[13]=S*h+I*e+O*f+p*m,t[14]=S*o+I*s+O*b+p*P,t[15]=S*u+I*i+O*l+p*E,t}function u(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=r+r,e=h+h,s=o+o,i=r*M,c=r*e,f=r*s,b=h*e,l=h*s,v=o*s,m=u*M,P=u*e,E=u*s;return t[0]=1-(b+v),t[1]=c+E,t[2]=f-P,t[3]=0,t[4]=c-E,t[5]=1-(i+v),t[6]=l+m,t[7]=0,t[8]=f+P,t[9]=l-m,t[10]=1-(i+b),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function M(t,a){var n=a[0],r=a[1],h=a[2],o=a[4],u=a[5],M=a[6],e=a[8],s=a[9],i=a[10];return t[0]=Math.hypot(n,r,h),t[1]=Math.hypot(o,u,M),t[2]=Math.hypot(e,s,i),t}function e(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t[9]=a[9]-n[9],t[10]=a[10]-n[10],t[11]=a[11]-n[11],t[12]=a[12]-n[12],t[13]=a[13]-n[13],t[14]=a[14]-n[14],t[15]=a[15]-n[15],t}n.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},n.clone=function(t){var a=new r.ARRAY_TYPE(16);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.fromValues=function(t,a,n,h,o,u,M,e,s,i,c,f,b,l,v,m){var P=new r.ARRAY_TYPE(16);return P[0]=t,P[1]=a,P[2]=n,P[3]=h,P[4]=o,P[5]=u,P[6]=M,P[7]=e,P[8]=s,P[9]=i,P[10]=c,P[11]=f,P[12]=b,P[13]=l,P[14]=v,P[15]=m,P},n.set=function(t,a,n,r,h,o,u,M,e,s,i,c,f,b,l,v,m){return t[0]=a,t[1]=n,t[2]=r,t[3]=h,t[4]=o,t[5]=u,t[6]=M,t[7]=e,t[8]=s,t[9]=i,t[10]=c,t[11]=f,t[12]=b,t[13]=l,t[14]=v,t[15]=m,t},n.identity=h,n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],h=a[3],o=a[6],u=a[7],M=a[11];t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=n,t[6]=a[9],t[7]=a[13],t[8]=r,t[9]=o,t[11]=a[14],t[12]=h,t[13]=u,t[14]=M}else t[0]=a[0],t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=a[1],t[5]=a[5],t[6]=a[9],t[7]=a[13],t[8]=a[2],t[9]=a[6],t[10]=a[10],t[11]=a[14],t[12]=a[3],t[13]=a[7],t[14]=a[11],t[15]=a[15];return t},n.invert=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],e=a[6],s=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],v=a[13],m=a[14],P=a[15],E=n*M-r*u,S=n*e-h*u,I=n*s-o*u,O=r*e-h*M,p=r*s-o*M,L=h*s-o*e,N=i*v-c*l,R=i*m-f*l,x=i*P-b*l,y=c*m-f*v,A=c*P-b*v,Y=f*P-b*m,d=E*Y-S*A+I*y+O*x-p*R+L*N;return d?(d=1/d,t[0]=(M*Y-e*A+s*y)*d,t[1]=(h*A-r*Y-o*y)*d,t[2]=(v*L-m*p+P*O)*d,t[3]=(f*p-c*L-b*O)*d,t[4]=(e*x-u*Y-s*R)*d,t[5]=(n*Y-h*x+o*R)*d,t[6]=(m*I-l*L-P*S)*d,t[7]=(i*L-f*I+b*S)*d,t[8]=(u*A-M*x+s*N)*d,t[9]=(r*x-n*A-o*N)*d,t[10]=(l*p-v*I+P*E)*d,t[11]=(c*I-i*p-b*E)*d,t[12]=(M*R-u*y-e*N)*d,t[13]=(n*y-r*R+h*N)*d,t[14]=(v*S-l*O-m*E)*d,t[15]=(i*O-c*S+f*E)*d,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],e=a[6],s=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],v=a[13],m=a[14],P=a[15];return t[0]=M*(f*P-b*m)-c*(e*P-s*m)+v*(e*b-s*f),t[1]=-(r*(f*P-b*m)-c*(h*P-o*m)+v*(h*b-o*f)),t[2]=r*(e*P-s*m)-M*(h*P-o*m)+v*(h*s-o*e),t[3]=-(r*(e*b-s*f)-M*(h*b-o*f)+c*(h*s-o*e)),t[4]=-(u*(f*P-b*m)-i*(e*P-s*m)+l*(e*b-s*f)),t[5]=n*(f*P-b*m)-i*(h*P-o*m)+l*(h*b-o*f),t[6]=-(n*(e*P-s*m)-u*(h*P-o*m)+l*(h*s-o*e)),t[7]=n*(e*b-s*f)-u*(h*b-o*f)+i*(h*s-o*e),t[8]=u*(c*P-b*v)-i*(M*P-s*v)+l*(M*b-s*c),t[9]=-(n*(c*P-b*v)-i*(r*P-o*v)+l*(r*b-o*c)),t[10]=n*(M*P-s*v)-u*(r*P-o*v)+l*(r*s-o*M),t[11]=-(n*(M*b-s*c)-u*(r*b-o*c)+i*(r*s-o*M)),t[12]=-(u*(c*m-f*v)-i*(M*m-e*v)+l*(M*f-e*c)),t[13]=n*(c*m-f*v)-i*(r*m-h*v)+l*(r*f-h*c),t[14]=-(n*(M*m-e*v)-u*(r*m-h*v)+l*(r*e-h*M)),t[15]=n*(M*f-e*c)-u*(r*f-h*c)+i*(r*e-h*M),t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],h=t[3],o=t[4],u=t[5],M=t[6],e=t[7],s=t[8],i=t[9],c=t[10],f=t[11],b=t[12],l=t[13],v=t[14],m=t[15];return(a*u-n*o)*(c*m-f*v)-(a*M-r*o)*(i*m-f*l)+(a*e-h*o)*(i*v-c*l)+(n*M-r*u)*(s*m-f*b)-(n*e-h*u)*(s*v-c*b)+(r*e-h*M)*(s*l-i*b)},n.multiply=o,n.translate=function(t,a,n){var r,h,o,u,M,e,s,i,c,f,b,l,v=n[0],m=n[1],P=n[2];return a===t?(t[12]=a[0]*v+a[4]*m+a[8]*P+a[12],t[13]=a[1]*v+a[5]*m+a[9]*P+a[13],t[14]=a[2]*v+a[6]*m+a[10]*P+a[14],t[15]=a[3]*v+a[7]*m+a[11]*P+a[15]):(r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],e=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],t[0]=r,t[1]=h,t[2]=o,t[3]=u,t[4]=M,t[5]=e,t[6]=s,t[7]=i,t[8]=c,t[9]=f,t[10]=b,t[11]=l,t[12]=r*v+M*m+c*P+a[12],t[13]=h*v+e*m+f*P+a[13],t[14]=o*v+s*m+b*P+a[14],t[15]=u*v+i*m+l*P+a[15]),t},n.scale=function(t,a,n){var r=n[0],h=n[1],o=n[2];return t[0]=a[0]*r,t[1]=a[1]*r,t[2]=a[2]*r,t[3]=a[3]*r,t[4]=a[4]*h,t[5]=a[5]*h,t[6]=a[6]*h,t[7]=a[7]*h,t[8]=a[8]*o,t[9]=a[9]*o,t[10]=a[10]*o,t[11]=a[11]*o,t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.rotate=function(t,a,n,h){var o,u,M,e,s,i,c,f,b,l,v,m,P,E,S,I,O,p,L,N,R,x,y,A,Y=h[0],d=h[1],g=h[2],T=Math.hypot(Y,d,g);return T<r.EPSILON?null:(Y*=T=1/T,d*=T,g*=T,o=Math.sin(n),M=1-(u=Math.cos(n)),e=a[0],s=a[1],i=a[2],c=a[3],f=a[4],b=a[5],l=a[6],v=a[7],m=a[8],P=a[9],E=a[10],S=a[11],I=Y*Y*M+u,O=d*Y*M+g*o,p=g*Y*M-d*o,L=Y*d*M-g*o,N=d*d*M+u,R=g*d*M+Y*o,x=Y*g*M+d*o,y=d*g*M-Y*o,A=g*g*M+u,t[0]=e*I+f*O+m*p,t[1]=s*I+b*O+P*p,t[2]=i*I+l*O+E*p,t[3]=c*I+v*O+S*p,t[4]=e*L+f*N+m*R,t[5]=s*L+b*N+P*R,t[6]=i*L+l*N+E*R,t[7]=c*L+v*N+S*R,t[8]=e*x+f*y+m*A,t[9]=s*x+b*y+P*A,t[10]=i*x+l*y+E*A,t[11]=c*x+v*y+S*A,a!==t&&(t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t)},n.rotateX=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[4],u=a[5],M=a[6],e=a[7],s=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[4]=o*h+s*r,t[5]=u*h+i*r,t[6]=M*h+c*r,t[7]=e*h+f*r,t[8]=s*h-o*r,t[9]=i*h-u*r,t[10]=c*h-M*r,t[11]=f*h-e*r,t},n.rotateY=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],e=a[3],s=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h-s*r,t[1]=u*h-i*r,t[2]=M*h-c*r,t[3]=e*h-f*r,t[8]=o*r+s*h,t[9]=u*r+i*h,t[10]=M*r+c*h,t[11]=e*r+f*h,t},n.rotateZ=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],e=a[3],s=a[4],i=a[5],c=a[6],f=a[7];return a!==t&&(t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h+s*r,t[1]=u*h+i*r,t[2]=M*h+c*r,t[3]=e*h+f*r,t[4]=s*h-o*r,t[5]=i*h-u*r,t[6]=c*h-M*r,t[7]=f*h-e*r,t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotation=function(t,a,n){var h,o,u,M=n[0],e=n[1],s=n[2],i=Math.hypot(M,e,s);return i<r.EPSILON?null:(M*=i=1/i,e*=i,s*=i,h=Math.sin(a),u=1-(o=Math.cos(a)),t[0]=M*M*u+o,t[1]=e*M*u+s*h,t[2]=s*M*u-e*h,t[3]=0,t[4]=M*e*u-s*h,t[5]=e*e*u+o,t[6]=s*e*u+M*h,t[7]=0,t[8]=M*s*u+e*h,t[9]=e*s*u-M*h,t[10]=s*s*u+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},n.fromXRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromYRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromZRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotationTranslation=u,n.fromQuat2=function(t,a){var n=new r.ARRAY_TYPE(3),h=-a[0],o=-a[1],M=-a[2],e=a[3],s=a[4],i=a[5],c=a[6],f=a[7],b=h*h+o*o+M*M+e*e;return b>0?(n[0]=2*(s*e+f*h+i*M-c*o)/b,n[1]=2*(i*e+f*o+c*h-s*M)/b,n[2]=2*(c*e+f*M+s*o-i*h)/b):(n[0]=2*(s*e+f*h+i*M-c*o),n[1]=2*(i*e+f*o+c*h-s*M),n[2]=2*(c*e+f*M+s*o-i*h)),u(t,a,n),t},n.getTranslation=function(t,a){return t[0]=a[12],t[1]=a[13],t[2]=a[14],t},n.getScaling=M,n.getRotation=function(t,a){var n=new r.ARRAY_TYPE(3);M(n,a);var h=1/n[0],o=1/n[1],u=1/n[2],e=a[0]*h,s=a[1]*o,i=a[2]*u,c=a[4]*h,f=a[5]*o,b=a[6]*u,l=a[8]*h,v=a[9]*o,m=a[10]*u,P=e+f+m,E=0;return P>0?(E=2*Math.sqrt(P+1),t[3]=.25*E,t[0]=(b-v)/E,t[1]=(l-i)/E,t[2]=(s-c)/E):e>f&&e>m?(E=2*Math.sqrt(1+e-f-m),t[3]=(b-v)/E,t[0]=.25*E,t[1]=(s+c)/E,t[2]=(l+i)/E):f>m?(E=2*Math.sqrt(1+f-e-m),t[3]=(l-i)/E,t[0]=(s+c)/E,t[1]=.25*E,t[2]=(b+v)/E):(E=2*Math.sqrt(1+m-e-f),t[3]=(s-c)/E,t[0]=(l+i)/E,t[1]=(b+v)/E,t[2]=.25*E),t},n.fromRotationTranslationScale=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=a[3],e=h+h,s=o+o,i=u+u,c=h*e,f=h*s,b=h*i,l=o*s,v=o*i,m=u*i,P=M*e,E=M*s,S=M*i,I=r[0],O=r[1],p=r[2];return t[0]=(1-(l+m))*I,t[1]=(f+S)*I,t[2]=(b-E)*I,t[3]=0,t[4]=(f-S)*O,t[5]=(1-(c+m))*O,t[6]=(v+P)*O,t[7]=0,t[8]=(b+E)*p,t[9]=(v-P)*p,t[10]=(1-(c+l))*p,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},n.fromRotationTranslationScaleOrigin=function(t,a,n,r,h){var o=a[0],u=a[1],M=a[2],e=a[3],s=o+o,i=u+u,c=M+M,f=o*s,b=o*i,l=o*c,v=u*i,m=u*c,P=M*c,E=e*s,S=e*i,I=e*c,O=r[0],p=r[1],L=r[2],N=h[0],R=h[1],x=h[2],y=(1-(v+P))*O,A=(b+I)*O,Y=(l-S)*O,d=(b-I)*p,g=(1-(f+P))*p,T=(m+E)*p,_=(l+S)*L,q=(m-E)*L,w=(1-(f+v))*L;return t[0]=y,t[1]=A,t[2]=Y,t[3]=0,t[4]=d,t[5]=g,t[6]=T,t[7]=0,t[8]=_,t[9]=q,t[10]=w,t[11]=0,t[12]=n[0]+N-(y*N+d*R+_*x),t[13]=n[1]+R-(A*N+g*R+q*x),t[14]=n[2]+x-(Y*N+T*R+w*x),t[15]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=n+n,M=r+r,e=h+h,s=n*u,i=r*u,c=r*M,f=h*u,b=h*M,l=h*e,v=o*u,m=o*M,P=o*e;return t[0]=1-c-l,t[1]=i+P,t[2]=f-m,t[3]=0,t[4]=i-P,t[5]=1-s-l,t[6]=b+v,t[7]=0,t[8]=f+m,t[9]=b-v,t[10]=1-s-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.frustum=function(t,a,n,r,h,o,u){var M=1/(n-a),e=1/(h-r),s=1/(o-u);return t[0]=2*o*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*e,t[6]=0,t[7]=0,t[8]=(n+a)*M,t[9]=(h+r)*e,t[10]=(u+o)*s,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*o*2*s,t[15]=0,t},n.perspective=function(t,a,n,r,h){var o,u=1/Math.tan(a/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=h&&h!==1/0?(o=1/(r-h),t[10]=(h+r)*o,t[14]=2*h*r*o):(t[10]=-1,t[14]=-2*r),t},n.perspectiveFromFieldOfView=function(t,a,n,r){var h=Math.tan(a.upDegrees*Math.PI/180),o=Math.tan(a.downDegrees*Math.PI/180),u=Math.tan(a.leftDegrees*Math.PI/180),M=Math.tan(a.rightDegrees*Math.PI/180),e=2/(u+M),s=2/(h+o);return t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=-(u-M)*e*.5,t[9]=(h-o)*s*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},n.ortho=function(t,a,n,r,h,o,u){var M=1/(a-n),e=1/(r-h),s=1/(o-u);return t[0]=-2*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*s,t[11]=0,t[12]=(a+n)*M,t[13]=(h+r)*e,t[14]=(u+o)*s,t[15]=1,t},n.lookAt=function(t,a,n,o){var u,M,e,s,i,c,f,b,l,v,m=a[0],P=a[1],E=a[2],S=o[0],I=o[1],O=o[2],p=n[0],L=n[1],N=n[2];return Math.abs(m-p)<r.EPSILON&&Math.abs(P-L)<r.EPSILON&&Math.abs(E-N)<r.EPSILON?h(t):(f=m-p,b=P-L,l=E-N,u=I*(l*=v=1/Math.hypot(f,b,l))-O*(b*=v),M=O*(f*=v)-S*l,e=S*b-I*f,(v=Math.hypot(u,M,e))?(u*=v=1/v,M*=v,e*=v):(u=0,M=0,e=0),s=b*e-l*M,i=l*u-f*e,c=f*M-b*u,(v=Math.hypot(s,i,c))?(s*=v=1/v,i*=v,c*=v):(s=0,i=0,c=0),t[0]=u,t[1]=s,t[2]=f,t[3]=0,t[4]=M,t[5]=i,t[6]=b,t[7]=0,t[8]=e,t[9]=c,t[10]=l,t[11]=0,t[12]=-(u*m+M*P+e*E),t[13]=-(s*m+i*P+c*E),t[14]=-(f*m+b*P+l*E),t[15]=1,t)},n.targetTo=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=r[0],e=r[1],s=r[2],i=h-n[0],c=o-n[1],f=u-n[2],b=i*i+c*c+f*f;b>0&&(i*=b=1/Math.sqrt(b),c*=b,f*=b);var l=e*f-s*c,v=s*i-M*f,m=M*c-e*i;return(b=l*l+v*v+m*m)>0&&(l*=b=1/Math.sqrt(b),v*=b,m*=b),t[0]=l,t[1]=v,t[2]=m,t[3]=0,t[4]=c*m-f*v,t[5]=f*l-i*m,t[6]=i*v-c*l,t[7]=0,t[8]=i,t[9]=c,t[10]=f,t[11]=0,t[12]=h,t[13]=o,t[14]=u,t[15]=1,t},n.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t[9]=a[9]+n[9],t[10]=a[10]+n[10],t[11]=a[11]+n[11],t[12]=a[12]+n[12],t[13]=a[13]+n[13],t[14]=a[14]+n[14],t[15]=a[15]+n[15],t},n.subtract=e,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t[9]=a[9]*n,t[10]=a[10]*n,t[11]=a[11]*n,t[12]=a[12]*n,t[13]=a[13]*n,t[14]=a[14]*n,t[15]=a[15]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t[9]=a[9]+n[9]*r,t[10]=a[10]+n[10]*r,t[11]=a[11]+n[11]*r,t[12]=a[12]+n[12]*r,t[13]=a[13]+n[13]*r,t[14]=a[14]+n[14]*r,t[15]=a[15]+n[15]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]&&t[9]===a[9]&&t[10]===a[10]&&t[11]===a[11]&&t[12]===a[12]&&t[13]===a[13]&&t[14]===a[14]&&t[15]===a[15]},n.equals=function(t,a){var n=t[0],h=t[1],o=t[2],u=t[3],M=t[4],e=t[5],s=t[6],i=t[7],c=t[8],f=t[9],b=t[10],l=t[11],v=t[12],m=t[13],P=t[14],E=t[15],S=a[0],I=a[1],O=a[2],p=a[3],L=a[4],N=a[5],R=a[6],x=a[7],y=a[8],A=a[9],Y=a[10],d=a[11],g=a[12],T=a[13],_=a[14],q=a[15];return Math.abs(n-S)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(S))&&Math.abs(h-I)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(o-O)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(u-p)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(p))&&Math.abs(M-L)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(L))&&Math.abs(e-N)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(N))&&Math.abs(s-R)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(c-y)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(b-Y)<=r.EPSILON*Math.max(1,Math.abs(b),Math.abs(Y))&&Math.abs(l-d)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(d))&&Math.abs(v-g)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(g))&&Math.abs(m-T)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(P-_)<=r.EPSILON*Math.max(1,Math.abs(P),Math.abs(_))&&Math.abs(E-q)<=r.EPSILON*Math.max(1,Math.abs(E),Math.abs(q))},n.mul=o,n.sub=e},n "eb06fc032a": function _(t,r,a){Object.defineProperty(a,"__esModule",{value:!0});const n=t("tslib"),e=n.__importStar(t("68ca94c15c")),o=n.__importStar(t("0285c50a7e")),s=n.__importStar(t("2c5eb22089")),u=n.__importStar(t("c1aa33d719"));function c(){var t=new e.ARRAY_TYPE(4);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function i(t,r,a){a*=.5;var n=Math.sin(a);return t[0]=n*r[0],t[1]=n*r[1],t[2]=n*r[2],t[3]=Math.cos(a),t}function h(t,r,a){var n=r[0],e=r[1],o=r[2],s=r[3],u=a[0],c=a[1],i=a[2],h=a[3];return t[0]=n*h+s*u+e*i-o*c,t[1]=e*h+s*c+o*u-n*i,t[2]=o*h+s*i+n*c-e*u,t[3]=s*h-n*u-e*c-o*i,t}function M(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=Math.exp(o),c=s>0?u*Math.sin(s)/s:0;return t[0]=a*c,t[1]=n*c,t[2]=e*c,t[3]=u*Math.cos(s),t}function l(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=s>0?Math.atan2(s,o)/s:0;return t[0]=a*u,t[1]=n*u,t[2]=e*u,t[3]=.5*Math.log(a*a+n*n+e*e+o*o),t}function f(t,r,a,n){var o,s,u,c,i,h=r[0],M=r[1],l=r[2],f=r[3],v=a[0],m=a[1],q=a[2],d=a[3];return(s=h*v+M*m+l*q+f*d)<0&&(s=-s,v=-v,m=-m,q=-q,d=-d),1-s>e.EPSILON?(o=Math.acos(s),u=Math.sin(o),c=Math.sin((1-n)*o)/u,i=Math.sin(n*o)/u):(c=1-n,i=n),t[0]=c*h+i*v,t[1]=c*M+i*m,t[2]=c*l+i*q,t[3]=c*f+i*d,t}function v(t,r){var a,n=r[0]+r[4]+r[8];if(n>0)a=Math.sqrt(n+1),t[3]=.5*a,a=.5/a,t[0]=(r[5]-r[7])*a,t[1]=(r[6]-r[2])*a,t[2]=(r[1]-r[3])*a;else{var e=0;r[4]>r[0]&&(e=1),r[8]>r[3*e+e]&&(e=2);var o=(e+1)%3,s=(e+2)%3;a=Math.sqrt(r[3*e+e]-r[3*o+o]-r[3*s+s]+1),t[e]=.5*a,a=.5/a,t[3]=(r[3*o+s]-r[3*s+o])*a,t[o]=(r[3*o+e]+r[3*e+o])*a,t[s]=(r[3*s+e]+r[3*e+s])*a}return t}var m,q,d,p,A,g;a.create=c,a.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},a.setAxisAngle=i,a.getAxisAngle=function(t,r){var a=2*Math.acos(r[3]),n=Math.sin(a/2);return n>e.EPSILON?(t[0]=r[0]/n,t[1]=r[1]/n,t[2]=r[2]/n):(t[0]=1,t[1]=0,t[2]=0),a},a.getAngle=function(t,r){var n=a.dot(t,r);return Math.acos(2*n*n-1)},a.multiply=h,a.rotateX=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+s*u,t[1]=e*c+o*u,t[2]=o*c-e*u,t[3]=s*c-n*u,t},a.rotateY=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c-o*u,t[1]=e*c+s*u,t[2]=o*c+n*u,t[3]=s*c-e*u,t},a.rotateZ=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+e*u,t[1]=e*c-n*u,t[2]=o*c+s*u,t[3]=s*c-o*u,t},a.calculateW=function(t,r){var a=r[0],n=r[1],e=r[2];return t[0]=a,t[1]=n,t[2]=e,t[3]=Math.sqrt(Math.abs(1-a*a-n*n-e*e)),t},a.exp=M,a.ln=l,a.pow=function(t,r,n){return l(t,r),a.scale(t,t,n),M(t,t),t},a.slerp=f,a.random=function(t){var r=e.RANDOM(),a=e.RANDOM(),n=e.RANDOM(),o=Math.sqrt(1-r),s=Math.sqrt(r);return t[0]=o*Math.sin(2*Math.PI*a),t[1]=o*Math.cos(2*Math.PI*a),t[2]=s*Math.sin(2*Math.PI*n),t[3]=s*Math.cos(2*Math.PI*n),t},a.invert=function(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=a*a+n*n+e*e+o*o,u=s?1/s:0;return t[0]=-a*u,t[1]=-n*u,t[2]=-e*u,t[3]=o*u,t},a.conjugate=function(t,r){return t[0]=-r[0],t[1]=-r[1],t[2]=-r[2],t[3]=r[3],t},a.fromMat3=v,a.fromEuler=function(t,r,a,n){var e=.5*Math.PI/180;r*=e,a*=e,n*=e;var o=Math.sin(r),s=Math.cos(r),u=Math.sin(a),c=Math.cos(a),i=Math.sin(n),h=Math.cos(n);return t[0]=o*c*h-s*u*i,t[1]=s*u*h+o*c*i,t[2]=s*c*i-o*u*h,t[3]=s*c*h+o*u*i,t},a.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},a.clone=u.clone,a.fromValues=u.fromValues,a.copy=u.copy,a.set=u.set,a.add=u.add,a.mul=h,a.scale=u.scale,a.dot=u.dot,a.lerp=u.lerp,a.length=u.length,a.len=a.length,a.squaredLength=u.squaredLength,a.sqrLen=a.squaredLength,a.normalize=u.normalize,a.exactEquals=u.exactEquals,a.equals=u.equals,a.rotationTo=(m=s.create(),q=s.fromValues(1,0,0),d=s.fromValues(0,1,0),function(t,r,n){var e=s.dot(r,n);return e<-.999999?(s.cross(m,q,r),s.len(m)<1e-6&&s.cross(m,d,r),s.normalize(m,m),i(t,m,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(s.cross(m,r,n),t[0]=m[0],t[1]=m[1],t[2]=m[2],t[3]=1+e,a.normalize(t,t))}),a.sqlerp=(p=c(),A=c(),function(t,r,a,n,e,o){return f(p,r,e,o),f(A,a,n,o),f(t,p,A,2*o*(1-o)),t}),a.setAxes=(g=o.create(),function(t,r,n,e){return g[0]=n[0],g[3]=n[1],g[6]=n[2],g[1]=e[0],g[4]=e[1],g[7]=e[2],g[2]=-r[0],g[5]=-r[1],g[8]=-r[2],a.normalize(t,v(t,g))})},n "2c5eb22089": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(){var t=new a.ARRAY_TYPE(3);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function e(t){var n=t[0],r=t[1],a=t[2];return Math.hypot(n,r,a)}function o(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function i(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function c(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return Math.hypot(r,a,u)}function M(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return r*r+a*a+u*u}function s(t){var n=t[0],r=t[1],a=t[2];return n*n+r*r+a*a}function f(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}var l;r.create=u,r.clone=function(t){var n=new a.ARRAY_TYPE(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n},r.length=e,r.fromValues=function(t,n,r){var u=new a.ARRAY_TYPE(3);return u[0]=t,u[1]=n,u[2]=r,u},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},r.set=function(t,n,r,a){return t[0]=n,t[1]=r,t[2]=a,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t},r.subtract=o,r.multiply=i,r.divide=c,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t},r.distance=h,r.squaredDistance=M,r.squaredLength=s,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=r*r+a*a+u*u;return e>0&&(e=1/Math.sqrt(e)),t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t},r.dot=f,r.cross=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2];return t[0]=u*c-e*i,t[1]=e*o-a*c,t[2]=a*i-u*o,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t},r.hermite=function(t,n,r,a,u,e){var o=e*e,i=o*(2*e-3)+1,c=o*(e-2)+e,h=o*(e-1),M=o*(3-2*e);return t[0]=n[0]*i+r[0]*c+a[0]*h+u[0]*M,t[1]=n[1]*i+r[1]*c+a[1]*h+u[1]*M,t[2]=n[2]*i+r[2]*c+a[2]*h+u[2]*M,t},r.bezier=function(t,n,r,a,u,e){var o=1-e,i=o*o,c=e*e,h=i*o,M=3*e*i,s=3*c*o,f=c*e;return t[0]=n[0]*h+r[0]*M+a[0]*s+u[0]*f,t[1]=n[1]*h+r[1]*M+a[1]*s+u[1]*f,t[2]=n[2]*h+r[2]*M+a[2]*s+u[2]*f,t},r.random=function(t,n){n=n||1;var r=2*a.RANDOM()*Math.PI,u=2*a.RANDOM()-1,e=Math.sqrt(1-u*u)*n;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t[2]=u*n,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[3]*a+r[7]*u+r[11]*e+r[15];return o=o||1,t[0]=(r[0]*a+r[4]*u+r[8]*e+r[12])/o,t[1]=(r[1]*a+r[5]*u+r[9]*e+r[13])/o,t[2]=(r[2]*a+r[6]*u+r[10]*e+r[14])/o,t},r.transformMat3=function(t,n,r){var a=n[0],u=n[1],e=n[2];return t[0]=a*r[0]+u*r[3]+e*r[6],t[1]=a*r[1]+u*r[4]+e*r[7],t[2]=a*r[2]+u*r[5]+e*r[8],t},r.transformQuat=function(t,n,r){var a=r[0],u=r[1],e=r[2],o=r[3],i=n[0],c=n[1],h=n[2],M=u*h-e*c,s=e*i-a*h,f=a*c-u*i,l=u*f-e*s,v=e*M-a*f,m=a*s-u*M,d=2*o;return M*=d,s*=d,f*=d,l*=2,v*=2,m*=2,t[0]=i+M+l,t[1]=c+s+v,t[2]=h+f+m,t},r.rotateX=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0],e[1]=u[1]*Math.cos(a)-u[2]*Math.sin(a),e[2]=u[1]*Math.sin(a)+u[2]*Math.cos(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateY=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[2]*Math.sin(a)+u[0]*Math.cos(a),e[1]=u[1],e[2]=u[2]*Math.cos(a)-u[0]*Math.sin(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateZ=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0]*Math.cos(a)-u[1]*Math.sin(a),e[1]=u[0]*Math.sin(a)+u[1]*Math.cos(a),e[2]=u[2],t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.angle=function(t,n){var r=t[0],a=t[1],u=t[2],e=n[0],o=n[1],i=n[2],c=Math.sqrt(r*r+a*a+u*u)*Math.sqrt(e*e+o*o+i*i),h=c&&f(t,n)/c;return Math.acos(Math.min(Math.max(h,-1),1))},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},r.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=n[0],i=n[1],c=n[2];return Math.abs(r-o)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(u-i)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(i))&&Math.abs(e-c)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(c))},r.sub=o,r.mul=i,r.div=c,r.dist=h,r.sqrDist=M,r.len=e,r.sqrLen=s,r.forEach=(l=u(),function(t,n,r,a,u,e){var o,i;for(n||(n=3),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)l[0]=t[o],l[1]=t[o+1],l[2]=t[o+2],u(l,l,e),t[o]=l[0],t[o+1]=l[1],t[o+2]=l[2];return t})},n "c1aa33d719": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(){var t=new a.ARRAY_TYPE(4);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function e(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function o(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function i(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function c(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return Math.hypot(r,a,u,e)}function h(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return r*r+a*a+u*u+e*e}function M(t){var n=t[0],r=t[1],a=t[2],u=t[3];return Math.hypot(n,r,a,u)}function f(t){var n=t[0],r=t[1],a=t[2],u=t[3];return n*n+r*r+a*a+u*u}var s;r.create=u,r.clone=function(t){var n=new a.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.fromValues=function(t,n,r,u){var e=new a.ARRAY_TYPE(4);return e[0]=t,e[1]=n,e[2]=r,e[3]=u,e},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=e,r.multiply=o,r.divide=i,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.distance=c,r.squaredDistance=h,r.length=M,r.squaredLength=f,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*r+a*a+u*u+e*e;return o>0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=a*o,t[2]=u*o,t[3]=e*o,t},r.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},r.cross=function(t,n,r,a){var u=r[0]*a[1]-r[1]*a[0],e=r[0]*a[2]-r[2]*a[0],o=r[0]*a[3]-r[3]*a[0],i=r[1]*a[2]-r[2]*a[1],c=r[1]*a[3]-r[3]*a[1],h=r[2]*a[3]-r[3]*a[2],M=n[0],f=n[1],s=n[2],l=n[3];return t[0]=f*h-s*c+l*i,t[1]=-M*h+s*o-l*e,t[2]=M*c-f*o+l*u,t[3]=-M*i+f*e-s*u,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2],i=n[3];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t[3]=i+a*(r[3]-i),t},r.random=function(t,n){var r,u,e,o,i,c;n=n||1;do{i=(r=2*a.RANDOM()-1)*r+(u=2*a.RANDOM()-1)*u}while(i>=1);do{c=(e=2*a.RANDOM()-1)*e+(o=2*a.RANDOM()-1)*o}while(c>=1);var h=Math.sqrt((1-i)/c);return t[0]=n*r,t[1]=n*u,t[2]=n*e*h,t[3]=n*o*h,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3];return t[0]=r[0]*a+r[4]*u+r[8]*e+r[12]*o,t[1]=r[1]*a+r[5]*u+r[9]*e+r[13]*o,t[2]=r[2]*a+r[6]*u+r[10]*e+r[14]*o,t[3]=r[3]*a+r[7]*u+r[11]*e+r[15]*o,t},r.transformQuat=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2],h=r[3],M=h*a+i*e-c*u,f=h*u+c*a-o*e,s=h*e+o*u-i*a,l=-o*a-i*u-c*e;return t[0]=M*h+l*-o+f*-c-s*-i,t[1]=f*h+l*-i+s*-o-M*-c,t[2]=s*h+l*-c+M*-i-f*-o,t[3]=n[3],t},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},r.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=t[3],i=n[0],c=n[1],h=n[2],M=n[3];return Math.abs(r-i)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(u-c)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(e-h)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))},r.sub=e,r.mul=o,r.div=i,r.dist=c,r.sqrDist=h,r.len=M,r.sqrLen=f,r.forEach=(s=u(),function(t,n,r,a,u,e){var o,i;for(n||(n=4),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)s[0]=t[o],s[1]=t[o+1],s[2]=t[o+2],s[3]=t[o+3],u(s,s,e),t[o]=s[0],t[o+1]=s[1],t[o+2]=s[2],t[o+3]=s[3];return t})},n "277615c682": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib"),e=r.__importStar(t("68ca94c15c")),u=r.__importStar(t("eb06fc032a")),o=r.__importStar(t("a427635f32"));function i(t,a,n){var r=.5*n[0],e=.5*n[1],u=.5*n[2],o=a[0],i=a[1],s=a[2],c=a[3];return t[0]=o,t[1]=i,t[2]=s,t[3]=c,t[4]=r*c+e*s-u*i,t[5]=e*c+u*o-r*s,t[6]=u*c+r*i-e*o,t[7]=-r*o-e*i-u*s,t}function s(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t}function c(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[4],s=n[5],c=n[6],h=n[7],f=a[4],M=a[5],l=a[6],b=a[7],v=n[0],m=n[1],R=n[2],P=n[3];return t[0]=r*P+o*v+e*R-u*m,t[1]=e*P+o*m+u*v-r*R,t[2]=u*P+o*R+r*m-e*v,t[3]=o*P-r*v-e*m-u*R,t[4]=r*h+o*i+e*c-u*s+f*P+b*v+M*R-l*m,t[5]=e*h+o*s+u*i-r*c+M*P+b*m+l*v-f*R,t[6]=u*h+o*c+r*s-e*i+l*P+b*R+f*m-M*v,t[7]=o*h-r*i-e*s-u*c+b*P-f*v-M*m-l*R,t}n.create=function(){var t=new e.ARRAY_TYPE(8);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},n.clone=function(t){var a=new e.ARRAY_TYPE(8);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a},n.fromValues=function(t,a,n,r,u,o,i,s){var c=new e.ARRAY_TYPE(8);return c[0]=t,c[1]=a,c[2]=n,c[3]=r,c[4]=u,c[5]=o,c[6]=i,c[7]=s,c},n.fromRotationTranslationValues=function(t,a,n,r,u,o,i){var s=new e.ARRAY_TYPE(8);s[0]=t,s[1]=a,s[2]=n,s[3]=r;var c=.5*u,h=.5*o,f=.5*i;return s[4]=c*r+h*n-f*a,s[5]=h*r+f*t-c*n,s[6]=f*r+c*a-h*t,s[7]=-c*t-h*a-f*n,s},n.fromRotationTranslation=i,n.fromTranslation=function(t,a){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*a[0],t[5]=.5*a[1],t[6]=.5*a[2],t[7]=0,t},n.fromRotation=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.fromMat4=function(t,a){var n=u.create();o.getRotation(n,a);var r=new e.ARRAY_TYPE(3);return o.getTranslation(r,a),i(t,n,r),t},n.copy=s,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.set=function(t,a,n,r,e,u,o,i,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=e,t[4]=u,t[5]=o,t[6]=i,t[7]=s,t},n.getReal=u.copy,n.getDual=function(t,a){return t[0]=a[4],t[1]=a[5],t[2]=a[6],t[3]=a[7],t},n.setReal=u.copy,n.setDual=function(t,a){return t[4]=a[0],t[5]=a[1],t[6]=a[2],t[7]=a[3],t},n.getTranslation=function(t,a){var n=a[4],r=a[5],e=a[6],u=a[7],o=-a[0],i=-a[1],s=-a[2],c=a[3];return t[0]=2*(n*c+u*o+r*s-e*i),t[1]=2*(r*c+u*i+e*o-n*s),t[2]=2*(e*c+u*s+n*i-r*o),t},n.translate=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=.5*n[0],s=.5*n[1],c=.5*n[2],h=a[4],f=a[5],M=a[6],l=a[7];return t[0]=r,t[1]=e,t[2]=u,t[3]=o,t[4]=o*i+e*c-u*s+h,t[5]=o*s+u*i-r*c+f,t[6]=o*c+r*s-e*i+M,t[7]=-r*i-e*s-u*c+l,t},n.rotateX=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateX(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateY=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateY(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateZ=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateZ(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateByQuatAppend=function(t,a,n){var r=n[0],e=n[1],u=n[2],o=n[3],i=a[0],s=a[1],c=a[2],h=a[3];return t[0]=i*o+h*r+s*u-c*e,t[1]=s*o+h*e+c*r-i*u,t[2]=c*o+h*u+i*e-s*r,t[3]=h*o-i*r-s*e-c*u,i=a[4],s=a[5],c=a[6],h=a[7],t[4]=i*o+h*r+s*u-c*e,t[5]=s*o+h*e+c*r-i*u,t[6]=c*o+h*u+i*e-s*r,t[7]=h*o-i*r-s*e-c*u,t},n.rotateByQuatPrepend=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[0],s=n[1],c=n[2],h=n[3];return t[0]=r*h+o*i+e*c-u*s,t[1]=e*h+o*s+u*i-r*c,t[2]=u*h+o*c+r*s-e*i,t[3]=o*h-r*i-e*s-u*c,i=n[4],s=n[5],c=n[6],h=n[7],t[4]=r*h+o*i+e*c-u*s,t[5]=e*h+o*s+u*i-r*c,t[6]=u*h+o*c+r*s-e*i,t[7]=o*h-r*i-e*s-u*c,t},n.rotateAroundAxis=function(t,a,n,r){if(Math.abs(r)<e.EPSILON)return s(t,a);var u=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),i=o*n[0]/u,c=o*n[1]/u,h=o*n[2]/u,f=Math.cos(r),M=a[0],l=a[1],b=a[2],v=a[3];t[0]=M*f+v*i+l*h-b*c,t[1]=l*f+v*c+b*i-M*h,t[2]=b*f+v*h+M*c-l*i,t[3]=v*f-M*i-l*c-b*h;var m=a[4],R=a[5],P=a[6],d=a[7];return t[4]=m*f+d*i+R*h-P*c,t[5]=R*f+d*c+P*i-m*h,t[6]=P*f+d*h+m*c-R*i,t[7]=d*f-m*i-R*c-P*h,t},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t},n.multiply=c,n.mul=c,n.scale=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t},n.dot=u.dot,n.lerp=function(t,a,r,e){var u=1-e;return n.dot(a,r)<0&&(e=-e),t[0]=a[0]*u+r[0]*e,t[1]=a[1]*u+r[1]*e,t[2]=a[2]*u+r[2]*e,t[3]=a[3]*u+r[3]*e,t[4]=a[4]*u+r[4]*e,t[5]=a[5]*u+r[5]*e,t[6]=a[6]*u+r[6]*e,t[7]=a[7]*u+r[7]*e,t},n.invert=function(t,a){var r=n.squaredLength(a);return t[0]=-a[0]/r,t[1]=-a[1]/r,t[2]=-a[2]/r,t[3]=a[3]/r,t[4]=-a[4]/r,t[5]=-a[5]/r,t[6]=-a[6]/r,t[7]=a[7]/r,t},n.conjugate=function(t,a){return t[0]=-a[0],t[1]=-a[1],t[2]=-a[2],t[3]=a[3],t[4]=-a[4],t[5]=-a[5],t[6]=-a[6],t[7]=a[7],t},n.length=u.length,n.len=n.length,n.squaredLength=u.squaredLength,n.sqrLen=n.squaredLength,n.normalize=function(t,a){var r=n.squaredLength(a);if(r>0){r=Math.sqrt(r);var e=a[0]/r,u=a[1]/r,o=a[2]/r,i=a[3]/r,s=a[4],c=a[5],h=a[6],f=a[7],M=e*s+u*c+o*h+i*f;t[0]=e,t[1]=u,t[2]=o,t[3]=i,t[4]=(s-e*M)/r,t[5]=(c-u*M)/r,t[6]=(h-o*M)/r,t[7]=(f-i*M)/r}return t},n.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]},n.equals=function(t,a){var n=t[0],r=t[1],u=t[2],o=t[3],i=t[4],s=t[5],c=t[6],h=t[7],f=a[0],M=a[1],l=a[2],b=a[3],v=a[4],m=a[5],R=a[6],P=a[7];return Math.abs(n-f)<=e.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-M)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(u-l)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(o-b)<=e.EPSILON*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(i-v)<=e.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(s-m)<=e.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-R)<=e.EPSILON*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(h-P)<=e.EPSILON*Math.max(1,Math.abs(h),Math.abs(P))}},n "c56d9ff837": function _(n,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=n("tslib").__importStar(n("68ca94c15c"));function u(){var n=new a.ARRAY_TYPE(2);return a.ARRAY_TYPE!=Float32Array&&(n[0]=0,n[1]=0),n}function e(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n}function o(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n}function c(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n}function i(n,t){var r=t[0]-n[0],a=t[1]-n[1];return Math.hypot(r,a)}function f(n,t){var r=t[0]-n[0],a=t[1]-n[1];return r*r+a*a}function s(n){var t=n[0],r=n[1];return Math.hypot(t,r)}function h(n){var t=n[0],r=n[1];return t*t+r*r}var M;r.create=u,r.clone=function(n){var t=new a.ARRAY_TYPE(2);return t[0]=n[0],t[1]=n[1],t},r.fromValues=function(n,t){var r=new a.ARRAY_TYPE(2);return r[0]=n,r[1]=t,r},r.copy=function(n,t){return n[0]=t[0],n[1]=t[1],n},r.set=function(n,t,r){return n[0]=t,n[1]=r,n},r.add=function(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n},r.subtract=e,r.multiply=o,r.divide=c,r.ceil=function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n},r.floor=function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n},r.min=function(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n},r.max=function(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n},r.round=function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n},r.scale=function(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n},r.scaleAndAdd=function(n,t,r,a){return n[0]=t[0]+r[0]*a,n[1]=t[1]+r[1]*a,n},r.distance=i,r.squaredDistance=f,r.length=s,r.squaredLength=h,r.negate=function(n,t){return n[0]=-t[0],n[1]=-t[1],n},r.inverse=function(n,t){return n[0]=1/t[0],n[1]=1/t[1],n},r.normalize=function(n,t){var r=t[0],a=t[1],u=r*r+a*a;return u>0&&(u=1/Math.sqrt(u)),n[0]=t[0]*u,n[1]=t[1]*u,n},r.dot=function(n,t){return n[0]*t[0]+n[1]*t[1]},r.cross=function(n,t,r){var a=t[0]*r[1]-t[1]*r[0];return n[0]=n[1]=0,n[2]=a,n},r.lerp=function(n,t,r,a){var u=t[0],e=t[1];return n[0]=u+a*(r[0]-u),n[1]=e+a*(r[1]-e),n},r.random=function(n,t){t=t||1;var r=2*a.RANDOM()*Math.PI;return n[0]=Math.cos(r)*t,n[1]=Math.sin(r)*t,n},r.transformMat2=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u,n[1]=r[1]*a+r[3]*u,n},r.transformMat2d=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u+r[4],n[1]=r[1]*a+r[3]*u+r[5],n},r.transformMat3=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[3]*u+r[6],n[1]=r[1]*a+r[4]*u+r[7],n},r.transformMat4=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[4]*u+r[12],n[1]=r[1]*a+r[5]*u+r[13],n},r.rotate=function(n,t,r,a){var u=t[0]-r[0],e=t[1]-r[1],o=Math.sin(a),c=Math.cos(a);return n[0]=u*c-e*o+r[0],n[1]=u*o+e*c+r[1],n},r.angle=function(n,t){var r=n[0],a=n[1],u=t[0],e=t[1],o=Math.sqrt(r*r+a*a)*Math.sqrt(u*u+e*e),c=o&&(r*u+a*e)/o;return Math.acos(Math.min(Math.max(c,-1),1))},r.zero=function(n){return n[0]=0,n[1]=0,n},r.str=function(n){return"vec2("+n[0]+", "+n[1]+")"},r.exactEquals=function(n,t){return n[0]===t[0]&&n[1]===t[1]},r.equals=function(n,t){var r=n[0],u=n[1],e=t[0],o=t[1];return Math.abs(r-e)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(u-o)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(o))},r.len=s,r.sub=e,r.mul=o,r.div=c,r.dist=i,r.sqrDist=f,r.sqrLen=h,r.forEach=(M=u(),function(n,t,r,a,u,e){var o,c;for(t||(t=2),r||(r=0),c=a?Math.min(a*t+r,n.length):n.length,o=r;o<c;o+=t)M[0]=n[o],M[1]=n[o+1],u(M,M,e),n[o]=M[0],n[o+1]=M[1];return n})},n }, "4e90918c0a", {"index":"4e90918c0a","models/index":"22ae8fda70","models/ace":"3343056bd8","models/layout":"ba20932521","models/audio":"66d52165db","models/comm_manager":"71a9759436","models/deckgl":"f6b9b1d914","models/tooltips":"064eac2866","models/html":"ae707e931d","models/json":"9ba5b8422a","models/file_download":"a94e371ba4","models/katex":"7b859fb3cf","models/mathjax":"0c21036737","models/player":"000f20fdd3","models/plotly":"2363c12dd6","models/util":"990b5dd5c7","models/progress":"76307e5afa","models/state":"38b2bc9574","models/vega":"90d1f929bd","models/video":"b0c3e9e9c2","models/videostream":"3c7145a2fa","models/vtk/index":"ecfbb965eb","models/vtk/vtk":"5b5e56e89a","models/vtk/vtk_layout":"c704c63c0a","models/vtk/vtk_utils":"ba07c3d566","models/vtk/vtkvolume":"729dd26c71","models/vtk/vtkaxes":"e23461e5d7"}, {});n })nnn /* END panel.min.js */n },n function(Bokeh) {} // ensure no trailing comma for IEn ];nn function run_inline_js() {n if ((root.Bokeh !== undefined) || (force === true)) {n for (var i = 0; i < inline_js.length; i++) {n inline_js[i].call(root, root.Bokeh);n }} else if (Date.now() < root._bokeh_timeout) {n setTimeout(run_inline_js, 100);n } else if (!root._bokeh_failed_load) {n console.log("Bokeh: BokehJS failed to load within specified timeout.");n root._bokeh_failed_load = true;n }n }nn if (root._bokeh_is_loading === 0) {n console.debug("Bokeh: BokehJS loaded, going straight to plotting");n run_inline_js();n } else {n load_libs(css_urls, js_urls, function() {n console.debug("Bokeh: BokehJS plotting callback run at", now());n run_inline_js();n });n }n}(window));”
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “application/javascript”: [
“n”, “if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {n”, ” window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}n”, “}n”, “n”, “n”, ” function JupyterCommManager() {n”, ” }n”, “n”, ” JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {n”, ” if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {n”, ” var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;n”, ” comm_manager.register_target(comm_id, function(comm) {n”, ” comm.on_msg(msg_handler);n”, ” });n”, ” } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {n”, ” window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {n”, ” comm.onMsg = msg_handler;n”, ” });n”, ” } else if (typeof google != ‘undefined’ && google.colab.kernel != null) {n”, ” google.colab.kernel.comms.registerTarget(comm_id, (comm) => {n”, ” var messages = comm.messages[Symbol.asyncIterator]();n”, ” function processIteratorResult(result) {n”, ” var message = result.value;n”, ” console.log(message)n”, ” var content = {data: message.data, comm_id};n”, ” var buffers = []n”, ” for (var buffer of message.buffers || []) {n”, ” buffers.push(new DataView(buffer))n”, ” }n”, ” var metadata = message.metadata || {};n”, ” var msg = {content, buffers, metadata}n”, ” msg_handler(msg);n”, ” return messages.next().then(processIteratorResult);n”, ” }n”, ” return messages.next().then(processIteratorResult);n”, ” })n”, ” }n”, ” }n”, “n”, ” JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {n”, ” if (comm_id in window.PyViz.comms) {n”, ” return window.PyViz.comms[comm_id];n”, ” } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {n”, ” var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;n”, ” var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);n”, ” if (msg_handler) {n”, ” comm.on_msg(msg_handler);n”, ” }n”, ” } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {n”, ” var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);n”, ” comm.open();n”, ” if (msg_handler) {n”, ” comm.onMsg = msg_handler;n”, ” }n”, ” } else if (typeof google != ‘undefined’ && google.colab.kernel != null) {n”, ” var comm_promise = google.colab.kernel.comms.open(comm_id)n”, ” comm_promise.then((comm) => {n”, ” window.PyViz.comms[comm_id] = comm;n”, ” if (msg_handler) {n”, ” var messages = comm.messages[Symbol.asyncIterator]();n”, ” function processIteratorResult(result) {n”, ” var message = result.value;n”, ” var content = {data: message.data};n”, ” var metadata = message.metadata || {comm_id};n”, ” var msg = {content, metadata}n”, ” msg_handler(msg);n”, ” return messages.next().then(processIteratorResult);n”, ” }n”, ” return messages.next().then(processIteratorResult);n”, ” }n”, ” }) n”, ” var sendClosure = (data, metadata, buffers, disposeOnDone) => {n”, ” return comm_promise.then((comm) => {n”, ” comm.send(data, metadata, buffers, disposeOnDone);n”, ” });n”, ” };n”, ” var comm = {n”, ” send: sendClosuren”, ” };n”, ” }n”, ” window.PyViz.comms[comm_id] = comm;n”, ” return comm;n”, ” }n”, ” window.PyViz.comm_manager = new JupyterCommManager();n”, ” n”, “n”, “n”, “var JS_MIME_TYPE = ‘application/javascript’;n”, “var HTML_MIME_TYPE = ‘text/html’;n”, “var EXEC_MIME_TYPE = ‘application/vnd.holoviews_exec.v0+json’;n”, “var CLASS_NAME = ‘output’;n”, “n”, “/n”, ” * Render data to the DOM noden”, ” */n”, “function render(props, node) {n”, ” var div = document.createElement("div");n”, ” var script = document.createElement("script");n”, ” node.appendChild(div);n”, ” node.appendChild(script);n”, “}n”, “n”, “/n”, ” * Handle when a new output is addedn”, ” /n”, “function handle_add_output(event, handle) {n”, ” var output_area = handle.output_area;n”, ” var output = handle.output;n”, ” if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {n”, ” returnn”, ” }n”, ” var id = output.metadata[EXEC_MIME_TYPE]["id"];n”, ” var toinsert = output_area.element.find("." + CLASS_NAME.split(’ ‘)[0]);n”, ” if (id !== undefined) {n”, ” var nchildren = toinsert.length;n”, ” var html_node = toinsert[nchildren-1].children[0];n”, ” html_node.innerHTML = output.data[HTML_MIME_TYPE];n”, ” var scripts = [];n”, ” var nodelist = html_node.querySelectorAll("script");n”, ” for (var i in nodelist) {n”, ” if (nodelist.hasOwnProperty(i)) {n”, ” scripts.push(nodelist[i])n”, ” }n”, ” }n”, “n”, ” scripts.forEach( function (oldScript) {n”, ” var newScript = document.createElement("script");n”, ” var attrs = [];n”, ” var nodemap = oldScript.attributes;n”, ” for (var j in nodemap) {n”, ” if (nodemap.hasOwnProperty(j)) {n”, ” attrs.push(nodemap[j])n”, ” }n”, ” }n”, ” attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });n”, ” newScript.appendChild(document.createTextNode(oldScript.innerHTML));n”, ” oldScript.parentNode.replaceChild(newScript, oldScript);n”, ” });n”, ” if (JS_MIME_TYPE in output.data) {n”, ” toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];n”, ” }n”, ” output_area._hv_plot_id = id;n”, ” if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {n”, ” window.PyViz.plot_index[id] = Bokeh.index[id];n”, ” } else {n”, ” window.PyViz.plot_index[id] = null;n”, ” }n”, ” } else if (output.metadata[EXEC_MIME_TYPE]["server_id"] !== undefined) {n”, ” var bk_div = document.createElement("div");n”, ” bk_div.innerHTML = output.data[HTML_MIME_TYPE];n”, ” var script_attrs = bk_div.children[0].attributes;n”, ” for (var i = 0; i < script_attrs.length; i++) {n”, ” toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);n”, ” }n”, ” // store reference to server id on output_arean”, ” output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE]["server_id"];n”, ” }n”, “}n”, “n”, “/*n”, ” * Handle when an output is cleared or removedn”, ” /n”, “function handle_clear_output(event, handle) {n”, ” var id = handle.cell.output_area._hv_plot_id;n”, ” var server_id = handle.cell.output_area._bokeh_server_id;n”, ” if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }n”, ” var comm = window.PyViz.comm_manager.get_client_comm("hv-extension-comm", "hv-extension-comm", function () {});n”, ” if (server_id !== null) {n”, ” comm.send({event_type: ‘server_delete’, ‘id’: server_id});n”, ” return;n”, ” } else if (comm !== null) {n”, ” comm.send({event_type: ‘delete’, ‘id’: id});n”, ” }n”, ” delete PyViz.plot_index[id];n”, ” if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {n”, ” var doc = window.Bokeh.index[id].model.documentn”, ” doc.clear();n”, ” const i = window.Bokeh.documents.indexOf(doc);n”, ” if (i > -1) {n”, ” window.Bokeh.documents.splice(i, 1);n”, ” }n”, ” }n”, “}n”, “n”, “/*n”, ” * Handle kernel restart eventn”, ” /n”, “function handle_kernel_cleanup(event, handle) {n”, ” delete PyViz.comms["hv-extension-comm"];n”, ” window.PyViz.plot_index = {}n”, “}n”, “n”, “/*n”, ” * Handle update_display_data messagesn”, ” */n”, “function handle_update_output(event, handle) {n”, ” handle_clear_output(event, {cell: {output_area: handle.output_area}})n”, ” handle_add_output(event, handle)n”, “}n”, “n”, “function register_renderer(events, OutputArea) {n”, ” function append_mime(data, metadata, element) {n”, ” // create a DOM node to render ton”, ” var toinsert = this.create_output_subarea(n”, ” metadata,n”, ” CLASS_NAME,n”, ” EXEC_MIME_TYPEn”, ” );n”, ” this.keyboard_manager.register_events(toinsert);n”, ” // Render to noden”, ” var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};n”, ” render(props, toinsert[0]);n”, ” element.append(toinsert);n”, ” return toinsertn”, ” }n”, “n”, ” events.on(‘output_added.OutputArea’, handle_add_output);n”, ” events.on(‘output_updated.OutputArea’, handle_update_output);n”, ” events.on(‘clear_output.CodeCell’, handle_clear_output);n”, ” events.on(‘delete.Cell’, handle_clear_output);n”, ” events.on(‘kernel_ready.Kernel’, handle_kernel_cleanup);n”, “n”, ” OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {n”, ” safe: true,n”, ” index: 0n”, ” });n”, “}n”, “n”, “if (window.Jupyter !== undefined) {n”, ” try {n”, ” var events = require(‘base/js/events’);n”, ” var OutputArea = require(‘notebook/js/outputarea’).OutputArea;n”, ” if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {n”, ” register_renderer(events, OutputArea);n”, ” }n”, ” } catch(err) {n”, ” }n”, “}n”
], “application/vnd.holoviews_load.v0+json”: “nif ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {n window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}n}nnn function JupyterCommManager() {n }nn JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {n if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;n comm_manager.register_target(comm_id, function(comm) {n comm.on_msg(msg_handler);n });n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {n window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {n comm.onMsg = msg_handler;n });n } else if (typeof google != ‘undefined’ && google.colab.kernel != null) {n google.colab.kernel.comms.registerTarget(comm_id, (comm) => {n var messages = comm.messages[Symbol.asyncIterator]();n function processIteratorResult(result) {n var message = result.value;n console.log(message)n var content = {data: message.data, comm_id};n var buffers = []n for (var buffer of message.buffers || []) {n buffers.push(new DataView(buffer))n }n var metadata = message.metadata || {};n var msg = {content, buffers, metadata}n msg_handler(msg);n return messages.next().then(processIteratorResult);n }n return messages.next().then(processIteratorResult);n })n }n }nn JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {n if (comm_id in window.PyViz.comms) {n return window.PyViz.comms[comm_id];n } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;n var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);n if (msg_handler) {n comm.on_msg(msg_handler);n }n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {n var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);n comm.open();n if (msg_handler) {n comm.onMsg = msg_handler;n }n } else if (typeof google != ‘undefined’ && google.colab.kernel != null) {n var comm_promise = google.colab.kernel.comms.open(comm_id)n comm_promise.then((comm) => {n window.PyViz.comms[comm_id] = comm;n if (msg_handler) {n var messages = comm.messages[Symbol.asyncIterator]();n function processIteratorResult(result) {n var message = result.value;n var content = {data: message.data};n var metadata = message.metadata || {comm_id};n var msg = {content, metadata}n msg_handler(msg);n return messages.next().then(processIteratorResult);n }n return messages.next().then(processIteratorResult);n }n }) n var sendClosure = (data, metadata, buffers, disposeOnDone) => {n return comm_promise.then((comm) => {n comm.send(data, metadata, buffers, disposeOnDone);n });n };n var comm = {n send: sendClosuren };n }n window.PyViz.comms[comm_id] = comm;n return comm;n }n window.PyViz.comm_manager = new JupyterCommManager();n nnnvar JS_MIME_TYPE = ‘application/javascript’;nvar HTML_MIME_TYPE = ‘text/html’;nvar EXEC_MIME_TYPE = ‘application/vnd.holoviews_exec.v0+json’;nvar CLASS_NAME = ‘output’;nn/n * Render data to the DOM noden */nfunction render(props, node) {n var div = document.createElement("div");n var script = document.createElement("script");n node.appendChild(div);n node.appendChild(script);n}nn/n * Handle when a new output is addedn /nfunction handle_add_output(event, handle) {n var output_area = handle.output_area;n var output = handle.output;n if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {n returnn }n var id = output.metadata[EXEC_MIME_TYPE]["id"];n var toinsert = output_area.element.find("." + CLASS_NAME.split(’ ‘)[0]);n if (id !== undefined) {n var nchildren = toinsert.length;n var html_node = toinsert[nchildren-1].children[0];n html_node.innerHTML = output.data[HTML_MIME_TYPE];n var scripts = [];n var nodelist = html_node.querySelectorAll("script");n for (var i in nodelist) {n if (nodelist.hasOwnProperty(i)) {n scripts.push(nodelist[i])n }n }nn scripts.forEach( function (oldScript) {n var newScript = document.createElement("script");n var attrs = [];n var nodemap = oldScript.attributes;n for (var j in nodemap) {n if (nodemap.hasOwnProperty(j)) {n attrs.push(nodemap[j])n }n }n attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });n newScript.appendChild(document.createTextNode(oldScript.innerHTML));n oldScript.parentNode.replaceChild(newScript, oldScript);n });n if (JS_MIME_TYPE in output.data) {n toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];n }n output_area._hv_plot_id = id;n if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {n window.PyViz.plot_index[id] = Bokeh.index[id];n } else {n window.PyViz.plot_index[id] = null;n }n } else if (output.metadata[EXEC_MIME_TYPE]["server_id"] !== undefined) {n var bk_div = document.createElement("div");n bk_div.innerHTML = output.data[HTML_MIME_TYPE];n var script_attrs = bk_div.children[0].attributes;n for (var i = 0; i < script_attrs.length; i++) {n toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);n }n // store reference to server id on output_arean output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE]["server_id"];n }n}nn/*n * Handle when an output is cleared or removedn /nfunction handle_clear_output(event, handle) {n var id = handle.cell.output_area._hv_plot_id;n var server_id = handle.cell.output_area._bokeh_server_id;n if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }n var comm = window.PyViz.comm_manager.get_client_comm("hv-extension-comm", "hv-extension-comm", function () {});n if (server_id !== null) {n comm.send({event_type: ‘server_delete’, ‘id’: server_id});n return;n } else if (comm !== null) {n comm.send({event_type: ‘delete’, ‘id’: id});n }n delete PyViz.plot_index[id];n if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {n var doc = window.Bokeh.index[id].model.documentn doc.clear();n const i = window.Bokeh.documents.indexOf(doc);n if (i > -1) {n window.Bokeh.documents.splice(i, 1);n }n }n}nn/*n * Handle kernel restart eventn /nfunction handle_kernel_cleanup(event, handle) {n delete PyViz.comms["hv-extension-comm"];n window.PyViz.plot_index = {}n}nn/*n * Handle update_display_data messagesn */nfunction handle_update_output(event, handle) {n handle_clear_output(event, {cell: {output_area: handle.output_area}})n handle_add_output(event, handle)n}nnfunction register_renderer(events, OutputArea) {n function append_mime(data, metadata, element) {n // create a DOM node to render ton var toinsert = this.create_output_subarea(n metadata,n CLASS_NAME,n EXEC_MIME_TYPEn );n this.keyboard_manager.register_events(toinsert);n // Render to noden var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};n render(props, toinsert[0]);n element.append(toinsert);n return toinsertn }nn events.on(‘output_added.OutputArea’, handle_add_output);n events.on(‘output_updated.OutputArea’, handle_update_output);n events.on(‘clear_output.CodeCell’, handle_clear_output);n events.on(‘delete.Cell’, handle_clear_output);n events.on(‘kernel_ready.Kernel’, handle_kernel_cleanup);nn OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {n safe: true,n index: 0n });n}nnif (window.Jupyter !== undefined) {n try {n var events = require(‘base/js/events’);n var OutputArea = require(‘notebook/js/outputarea’).OutputArea;n if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {n register_renderer(events, OutputArea);n }n } catch(err) {n }n}n”
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “text/html”: [
“n”, “<div class="logo-block">n”, “<img src=’data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzn”, “AAAB+wAAAfsBxc2miwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA6zSURBn”, “VHic7ZtpeFRVmsf/5966taWqUlUJ2UioBBJiIBAwCZtog9IOgjqACsogKtqirT2ttt069nQ/zDztn”, “tI4+CrJIREFaFgWhBXpUNhHZQoKBkIUASchWla1S+3ar7r1nPkDaCAnZKoQP/D7mnPOe9/xy76n3n”, “nFSAW9ziFoPFNED2LLK5wcyBDObkb8ZkxuaoSYlI6ZcOKq1eWFdedqNzGHQBk9RMEwFAASkk0Xw3n”, “ETacDNi2vtvc7L0ROdw0AjoSotQVkKSvHQz/wRO1lScGModBFbDMaNRN1A4tUBCS3lk7BWhQkgpDn”, “lG4852/+7DWr1R3uHAZVQDsbh6ZPN7CyxUrCzJMRouusj0ipRwD2uKm0Zn5d2dFwzX1TCGhnmdGon”, “G62Nna+isiUqhkzuKrkQaJlPEv5mFl2fvGg2t/VnzkEV8F5ioioOEWkLG86fvbpthynjdhXYZziQn”, “x1hC9J2NFyi8vCTt91Fh04KGip0AaG9zuCk2wQCVyoNU3Hjezee9bq92duzzTmxsRJoy+jEZZZYon”, “GTKJ6SJngdJqAfRzpze0+jHreUtPc7gpBLQnIYK6BYp/uGhw9YK688eu7v95ysgshcg9qSLMo3JCn”, “4jqLKQFBgdKDPoQ+Pltb8dUyQLpeDjeVgI6EgLIQFT5tEl3rn2losHVsexbZ3EyT9wE1uGdkIPcyn”, “BGxn8QUq1QrA5nqW5i2tLqvrrM9NK6AdkVIvL9E9bZL/oyfMVd/jqvc8LylzRBKDJSzIExwhQzuLn”, “QYGQj4rHfFTc8mUdu3E7yoLtbTe9gI4EqVgVkug2i5+uXGo919ixbRog+3fTbQ8qJe4ZOYNfMoTIn”, “OoshUNosgO60AisX15aeI2PSIp5KiFLI9ubb1vV3Qb2ltwLakUCDAkWX7/nHKRmmGIl9VgYsUhJmn”, “2NXjKYADtM1ygne9QQDIXlk49FBstMKx66D1v4+XuQr7vqTe0VcBHQlRWiOCbmmSYe2SqtL6q5rJn”, “zsTb7lKx3FKOYC4DoqyS/B5bvLPxvD9Qtf6saxYLQGJErmDOdOMr/zo96km1nElr8bmPOBwI9COvn”, “HnFPRIwmkSOv9kcAS4heRsidOkpeWBgZM+UBrTFAXNYL5Vf2ii9c1trNzpYdaoVil3WIc+wdk+gQn”, “noie3ecCcxt9ITcLAPWt/laGEO/9U6PmzZkenTtsSMQ8uYywJVW+grCstAvCIaAdArAsIWkRDDs/n”, “KzLm2YcjY1Lv0UdW73HabE9n6V66cxSzfEmuJssTpKGVp+0vHq73FwL46eOjpMpbRAnNmJFrGJNun”, “Ukf9Yrz+3rghiumCKNXXWPhLYcjxGsIpoCMsIRoFITkW8AuyM8jC1+/QLx4bozCEJIq38+1rtpR6n”, “V/yzb8eBlRb3fo5l783N0CWolAzJHaVNzkrTzlEp2bQ2q3TC5gn6wpnoQAmwSiGh2GitnTmVMc5On”, “UyfKWUKCIsU7+fZDKwqdT6DDpvkzAX4/+AMFjk0tDp5GRXLpQ2MUmhgDp5gxQT8+Y7hyPsMi8uxFn”, “71H0oebujHALECjFKaW9Lm68n18wXp2kVzIcABytD5iXFzg+WVXkegpAsOOYziqo0OkK76GyquC3n”, “ltZAzMhhqlSNmmWTE5T6e3IN05ITFLM4GdN0vtZ3ob8Jh1NAKXFbm5PtLU/eqTSlGjkNAJjdgn/Nn”, “aedXa0tdi7+t9G0FIF49rtMSEgAs1kDLkTPO7ebm4IUWeyh1bKomXqlgMG6kJmHcSM0clYLJ8XtRn”, “1GTnbV3F6I5wCGikAb402npp1h1s7LQUZZSMIfALFOuL3UUrfnS8+rez7v9qcold5tilgHbO1fjKn”, “9ubb17u9oshxzMiUBKXWqJNxd+fqb0tLVs4lILFnK71H0Ind7uiPgACVcFJlrb0tV6DzxqqTIhUMn”, “CwDf1/rrVhTa33/3pGPxJYdQ2l2cbgVcQSosdx8uqnDtbGjh9SlDVSMNWhlnilfqZk42Th2ZpLpfn”, “xrHec5e815zrr0dfBZSwzkZfqsv+1FS1KUknUwPARVvItfKUY+cn57yP7qv07UE3p8B2uhUwLk09n”, “e0SCOrK+hbdYHYLjRIl71wWzv9jpEoeOHhGRrJAzyEyNiJuUqX0g2sBN5kGK6y2Blp5M3lsB9Qh4n”, “y2Ja6x6+i0ucmKgwMATwhSjdUu49tKrQ/pvN5d53ml2CGwCmJipmKjgmyuaXzNeL2a0AkQ01Th5jn”, “2DktO3Jyk8f9vcOBQHV94OK+fPumJmvQHxJoWkaKWq9Vs+yUsbq0zGT1I4RgeH2b5wef7+c7bl8Fn”, “eKgoHVVZa8ZPEORzR6sT1BzDUAD/d9F78e2Tzv99v8D+fLVTqAKAsbGamKey1Mt9Ann4eH3gTXTzn”, “idWtAJ8PQWOk7NzSeQn/OTHDuEikVF1R4z8BQCy+6D1aWRfY0tTGG2OM8rRoPaeIj5ZHzJxszElNn”, “VM8K8JS5WOfv8mzRnQAKoEhmt8gyPM4lU9SmBK1MCQBnW4KONT86v1hZ1PbwSXPw4JWussVjtH9Yn”, “NCoiL9UoH/6PSu8jFrfY2t36erQHXLIEakMi1SydmzB31h3GGXFDFNPaK8Rme9B79Ixrd0WN+1ijn”, “NRQ/doRmuFLBkHSTOm5GruG+pFjFdAmorG4IXH1Qua6ASniclfFtDYt+oUjKipPrCQB7QBQ2lrgPn”, “fFzm+9XWUtcqJ3/5vDLDpJ79XHZk3u8nGZ42qlj1+ydtbxysCezrydp6ugmipNJ7WBPB5tydY0jPn”, “HaVNzs3QzeE4ZpTbI+ZbnSFPbVOw9vsfnVvqWnirPyCNGD08IlqtYkh2hjZ5dErEQzoNm+6ykyOtn”, “Lt5/PQEuSRRKo22VkydK+vvS1XEKlhCJAnsqvcVvH7f/ZU2R67eXbMEGAMiIV5oWZWiWvz5Fv2xGn”, “sjqNJQRvn3Rs2lji/lNP19VjAQDgD7FHhujZB9OGqYxRkZxixgRDVlqS6uEOFaJUVu0rPFzctrnFn”, “JqijImVp8dEKVWyUXDk92zAuMZ6bFwpBU1HrOw6AdhQgUooChb0+ItMbWJitSo5Ws3IAOGEOtL53n”, “0vHZih9sC4vtofZ7Qu6523V/fmGcds1TY3V36pUsBwAbSlxnVh2xLfAD/IAIMDf7XYIkNmXfpp2ln”, “18rkAJAy9HKFaIr/qULkeQQKy9zf1JgDB2uaeFNGijo5QsUyacNUUTOnGO42xSnv4oOwpDi1zYkcn”, “efUc3I5Gk6PhyTuVKaOGyLUAYPGIoY9Pu/atL/L92+4q9wbflRJ2Trpm/jPjdBtfnqB/dIThcl8An”, “KG7hbRuKnb8qsQsVvVlTrwQAQMUlf3kwJI24Z4JhPMtcfng5GcH49GsrxJpGvvHIaeem2ma+KSjQn”, “lIwUdYyCY8j4dE1KzijNnIP2llF2wcXNnsoapw9XxsgYAl6k+KzUXbi2yP3KR2ecf6z3BFsBICdWn”, “nvnIaG3eHybqX7vbpEqUMT+9OL4Qpe8VON7dXuFd39v19FoAABRVePbGGuXTszO0P7tu6lghUonEn”, “llRdrhArLvmKdh9u29jcFiRRkfLUxBiFNiqSU9icoZQHo5mYBI1MBgBH6wMNb+U7Pnw337H4gi1Yn”, “ciWs+uks3Z9fztUvfzxTm9Ne8XXkvQLHNytOOZeiD4e0PgkAIAYCYknKUNUDSXEKzdWNpnil7r4pn”, “xqkjTarZMtk/K8TQ6Qve78qqvXurGwIJqcOUKfUWHsm8KGvxSP68YudXq4pcj39X49uOK2X142O0n”, “Tz5/u/7TVybqH0rSya6ZBwD21/gubbrgWdDgEOx9WUhfBaC2ibcEBYm7a7x+ukrBMNcEZggyR0TEn”, “T8zUPjikQ4VosQZbTpS4vqizBKvqmvjsqnpfzaZyx9JPiz1/bfGKdgD45XB1zoIMzYbfTdS/NClBn”, “Gct0USiY3YL/g0LHy/uq/Ef6uo5+n0R/vyhp17Klpge763f8rMu6YU/zrn2nml+2WtH+Z+5IAAFcn”, “2bUTdTDOSNa9+cQY7YLsOIXhevEkCvzph7a8laecz/Un/z4/Ae04XeL3UQb57IwU9ZDr9UuKVajvn”, “nxp1+1UVIo/LjztZkKH59fO3G/JemqCfmaCRqbqbd90ZZ8FfjtkfAyD0J/9+C2h1hDwsSxvGjNDcn”, “b4zk5NfrSwiQblLHzZhg+Jf4aPlUwpDqkQqa9nimbt1/TDH8OitGMaQnj+RJS6B1fbF7SY1TqO5vn”, “/v0WAADl1f7zokgS7s7VT2DZ7pegUjBM7mjtiDZbcN4j0YrHH0rXpCtY0qPX0cVL0rv5jv/ZXendn”, “0u/EESYBAFBU4T4Qa5TflZOhTe7pmKpaP8kCVUVw1+yhXfJWvn1P3hnXi33JsTN6PnP3hHZ8Z3/hn”, “aLHzmkNPuPj7Bc/F/Q38CwjTpSwQXgE4Vmwry9tpfq/ZFgqFMy4AVDtCvi8rvMvOmv0N4YwbVgEAn”, “sPM72/KVnzfspmH7HQGCRLG2yL1+z8XwvPcdCbsAANh+xPzstgMtxeGKt+6MK3/tacfvwhWvIwMin”, “oKEBtm0H7W+UVfkc/Y1V0BhoPlDr/w1w/eu1vjIgAgDg22OtX6/eYfnEz/focrZTHAFR+PSs56/7n”, “q32nwpjazxgwAQCwcU/T62t3WL7r6/jVRa6/byp1rei+Z98ZUAEAhEPHPc8fKnTU9nbgtnOe8h0ln”, “9hcGIqmODLQAHCy2Xti6v/XNRivf43f4fFvIteu854+VHnR7q9tfBlwAAGz+pnndB9vM26UebAe8n”, “SLHujPOTPVW+rwY+sxskAAC2HrA8t2Vvc7ffP1r9o+vwR2dcr92InIAbKKC1FZ5tB1tf+/G8p8svn”, “N/9Q5zd/XR34LYCwV5JdccMEAMDBk45DH243r/X4xGvqxFa/GNpS7n6rwOwNWwHVE26oAADYurf1n”, “zx/utOzt+DMKYM0p17YtZZ5VNzqfsB2HewG1WXE8PoZ7gOclbTIvynZf9JV+fqZtfgs/8F/Nu5rBn”, “EIBmJ+8QRMmpU7EzGRsf2FzuePqYRbzh/zE26EwdrT10f6r6o8HOYzCJB9Dpff8tbnGLG8L/A/WEn”, “roTBs2RqAAAAAElFTkSuQmCC’n”, ” style=’height:25px; border-radius:12px; display: inline-block; float: left; vertical-align: middle’></img>n”, “n”, “n”, ” <img src=’data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAf9SURBVFiFvZh7cFTVHcc/59y7793sJiFAwkvAYDRqFWwdraLVlj61diRYsDjqCFbFKrYo0CltlSq1tLaC2GprGIriGwqjFu10OlrGv8RiK/IICYECSWBDkt3s695zTv9IAtlHeOn0O7Mzu797z+/3Ob/z+p0VfBq9doNFljuABwAXw2PcvGHt6bgwxhz7Ls4YZNVXxxANLENwE2D1W9PAGmAhszZ0/X9gll5yCbHoOirLzmaQs0F6F8QMZq1v/8xgNm7DYwwjgXJLYL4witQ16+sv/U9HdDmV4WrKw6B06cZC/RMrM4MZ7xz61DAbtzEXmAvUAX4pMOVecg9/MFFu3j3Gz7gQBLygS2RGumBkL0cubiFRsR3LzVBV1UMk3IrW73PT9C2lYOwhQB4ClhX1AuKpjLcV27oEjyUpNUJCg1CvcejykWTCXyQgzic2HIIBjg3pS6+uRLKAhumZvD4U+tq0jTrgkVKQQtLekfTtxIPAkhTNF6G7kZm7aPp6M9myKVQEoaYaIhEQYvD781DML/RfBGNZXAl4irJiwBa07e/y7cQnBaJghIX6ENl2GR/fGCBoz6cm5qeyEqQA5ZYA5x5eeiV0Qph4gjFAUSwAr6QllQgcxS/Jm25Cr2Tmpsk03XI9NfI31FTZBEOgVOk51adqDBNPCNPSRlkiDXbBEwOU2WxH+I7itQZ62g56OjM33suq1YsZHVtGZSUI2QdyYgkgOthQNIF7BIGDnRAJgJSgj69cUx1gB8PkOGwL4E1gPrM27gIg7NlGKLQApc7BmEnAxP5g/rw4YqBrCDB5xHkw5rdR/1qTrN/hKNo6YUwVDNpFsnjYS8RbidBPcPXFP6R6yfExuOXmN4A3jv1+8ZUwgY9D2OWjUZE6lO88jDwHI8ZixGiMKSeYTBamCoDk6kDAb6y1OcH1a6KpD/fZesoFw5FlIXAVCIiH4PxrV+p2npVDToTBmtjY8t1swh2V61E9KqWiyuPEjM8dbfxuvfa49Zayf9R136Wr8mBSf/T7bNteA8zwaGEUbFpckWwq95n59dUIywKl2fbOIS5e8bWSu0tJ1a5redAYfqkdjesodFajcgaVNWhXo1C9SrkN3Usmv3UMJrc6/DDwkwEntkEJLe67tSLhvyzK8rHDQWleve5CGk4VZEB1r+5bg2E2si+Y0QatDK6jUVkX5eg2YYlp++ZM+rfMNYamAj8Y7MAVWFqaR1f/t2xzU4IHjybBtthzuiAASqv7jTF7jOqDMAakFHgDNsFyP+FhwZHBmH9F7cutIYkQCylYYv1AZSqsn1/+bX51OMMjPSl2nAnM7hnjOx2v53YgNWAzHM9Q/9l0lQWPSCBSyokAtOBC1Rj+w/1Xs+STDp4/E5g7Rs2zm2+oeVd7PUuHKDf6A4r5EsPT5K3gfCnBXNUYnvGzb+KcCczYYWOnLpy4eOXuG2oec0PBN8XQQAnpvS35AvAykr56rWhPBiV4MvtceGLxk5Mr6A1O8IfK7rl7xJ0r9kyumuP4fa0lMqTBLJIAJqEf1J3qE92lMBndlyfRD2YBghHC4hlny7ASqCeWo5zaoDdIWfnIefNGTb9fC73QDfhyBUCNOxrGPSUBfPem9us253YTV+3mcBbdkUYfzmHiLqZbYdIGHHON2ZlemXouaJUOO6TqtdHEQuXYY8Yt+EbDgmlS6RdzkaDTv2P9A3gICiq93sWhb5mc5wVhuU3Y7m5hOc3So7qFT3SLgOXHb/cyOfMn7xROegoC/PTcn3v8gbKPgDopJFk3R/uBPWQiwQ+2/GJevRMObLUzqe/saJjQUQTTftEVMW9tWxPgAocwcj9abNcZe7s+6t2R2xXZG7zyYLp8Q1PiRBBHym5bYuXi8Qt+/LvGu9f/5YDAxABsaRNPH6Xr4D4Sk87a897SOy9v/fKwjoF2eQel95yDESGEF6gEMwKhLwKus3wOVjTtes7qzgLdXTMnNCNoEpbcrtNuq6N7Xh/+eqcbj94xQkp7mdKpW5XbtbR8Z26kgMCAf2UU5YEovRUVRHbu2b3vK1UdDFkDCyMRQxbpdv8nhKAGIa7QaQedzT07fFPny53R738JoVYBdVrnsNx9XZ9v33UeGO+AA2MMUkgqQ5UcdDLZSFeVgONnXeHqSAC5Ew1BXwko0D1Zct3dT1duOjS3MzZnEUJtBuoQAq3SGOLR4ekjn9NC5nVOaYXf9lETrUkmOJy3pOz8OKIb2A1cWhJCCEzOxU2mUPror+2/L3yyM3pkM7jTjr1nBOgkGeyQ7erxpdJsMAS9wb2F9rzMxNY1K2PMU0WtZV82VU8Wp6vbKJVo9Lx/+4cydORdxCCQ/kDGTZCWsRpLu7VD7bfKqL8V2orKTp/PtzaXy42jr6TwAuisi+7JolUG4wY+8vyrISCMtRrLKWpvjAOqx/QGhp0rjRo5xD3x98CWQuOQN8qumRMmI7jKZPUEpzNVZsj4Zbaq1to5tZZsKIydLWojhIXrJnES79EaOzv3du2NytKuxzJKAA6wF8xqEE8s2jo/1wd/khslQGxd81Zg62Bbp31XBH+iETt7Y3ELA0iU6iGDlQ5mexe0VEx4a3x8V1AaYwFJgTiwaOsDmeK2J8nMUOqsnB1A+dcA04ucCYt0urkjmflk9iT2v30q/gZn5rQPvor4n9Ou634PeBzoznes/iot/7WnClKoM/+zCIjH5kwT8ChQjTHPIPTjFV3PpU/Hx+DM/A9U3IXI4SPCYAAAAABJRU5ErkJggg==’n”, ” style=’height:15px; border-radius:12px; display: inline-block; float: left’></img>n”, ” n”, “n”, “n”, “n”, “n”, “</div>n”
]
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “application/javascript”: [
“n”, “(function(root) {n”, ” function now() {n”, ” return new Date();n”, ” }n”, “n”, ” var force = true;n”, “n”, ” if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) {n”, ” root._bokeh_onload_callbacks = [];n”, ” root._bokeh_is_loading = undefined;n”, ” }n”, “n”, ” if (typeof (root._bokeh_timeout) === "undefined" || force === true) {n”, ” root._bokeh_timeout = Date.now() + 5000;n”, ” root._bokeh_failed_load = false;n”, ” }n”, “n”, ” function run_callbacks() {n”, ” try {n”, ” root._bokeh_onload_callbacks.forEach(function(callback) {n”, ” if (callback != null)n”, ” callback();n”, ” });n”, ” } finally {n”, ” delete root._bokeh_onload_callbacksn”, ” }n”, ” console.debug("Bokeh: all callbacks have finished");n”, ” }n”, “n”, ” function load_libs(css_urls, js_urls, callback) {n”, ” if (css_urls == null) css_urls = [];n”, ” if (js_urls == null) js_urls = [];n”, “n”, ” root._bokeh_onload_callbacks.push(callback);n”, ” if (root._bokeh_is_loading > 0) {n”, ” console.debug("Bokeh: BokehJS is being loaded, scheduling callback at", now());n”, ” return null;n”, ” }n”, ” if (js_urls == null || js_urls.length === 0) {n”, ” run_callbacks();n”, ” return null;n”, ” }n”, ” console.debug("Bokeh: BokehJS not loaded, scheduling load and callback at", now());n”, ” root._bokeh_is_loading = css_urls.length + js_urls.length;n”, “n”, ” function on_load() {n”, ” root._bokeh_is_loading–;n”, ” if (root._bokeh_is_loading === 0) {n”, ” console.debug("Bokeh: all BokehJS libraries/stylesheets loaded");n”, ” run_callbacks()n”, ” }n”, ” }n”, “n”, ” function on_error() {n”, ” console.error("failed to load " + url);n”, ” }n”, “n”, ” for (var i = 0; i < css_urls.length; i++) {n”, ” var url = css_urls[i];n”, ” const element = document.createElement("link");n”, ” element.onload = on_load;n”, ” element.onerror = on_error;n”, ” element.rel = "stylesheet";n”, ” element.type = "text/css";n”, ” element.href = url;n”, ” console.debug("Bokeh: injecting link tag for BokehJS stylesheet: ", url);n”, ” document.body.appendChild(element);n”, ” }n”, “n”, ” if (window.requirejs) {n”, ” require([], function() {n”, ” run_callbacks();n”, ” })n”, ” } else {n”, ” var skip = [];n”, ” for (var i = 0; i < js_urls.length; i++) {n”, ” var url = js_urls[i];n”, ” if (skip.indexOf(url) >= 0) { on_load(); continue; }n”, ” var element = document.createElement(‘script’);n”, ” element.onload = on_load;n”, ” element.onerror = on_error;n”, ” element.async = false;n”, ” element.src = url;n”, ” console.debug("Bokeh: injecting script tag for BokehJS library: ", url);n”, ” document.head.appendChild(element);n”, ” }n”, ” }n”, ” };n”, “n”, ” function inject_raw_css(css) {n”, ” const element = document.createElement("style");n”, ” element.appendChild(document.createTextNode(css));n”, ” document.body.appendChild(element);n”, ” }n”, “n”, ” var js_urls = [];n”, ” var css_urls = [];n”, “n”, ” var inline_js = [n”, ” function(Bokeh) {n”, ” inject_raw_css(".widget-box {\n\tmin-height: 20px;\n\tbackground-color: #f5f5f5;\n\tborder: 1px solid #e3e3e3 !important;\n\tborder-radius: 4px;\n\t-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\tbox-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\toverflow-x: hidden;\n\toverflow-y: hidden;\n}\n\n.scrollable {\n overflow: scroll;\n}\n\nprogress {\n\tappearance: none;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\n\tborder: none;\n\theight: 20px;\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n\tcolor: royalblue;\n\tposition: relative;\n\tmargin: 0 0 1.5em;\n}\n\nprogress[value]::-webkit-progress-bar {\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n}\n\nprogress[value]::-webkit-progress-value {\n\tposition: relative;\n\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress.active:not([value])::before {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress[value]::-moz-progress-bar {\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress:not([value])::-moz-progress-bar {\n\tborder-radius:3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n\n}\n\nprogress.active:not([value])::-moz-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.active:not([value])::-webkit-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.primary[value]::-webkit-progress-value { background-color: #007bff; }\nprogress.primary:not([value])::before { background-color: #007bff; }\nprogress.primary:not([value])::-webkit-progress-bar { background-color: #007bff; }\nprogress.primary::-moz-progress-bar { background-color: #007bff; }\n\nprogress.secondary[value]::-webkit-progress-value { background-color: #6c757d; }\nprogress.secondary:not([value])::before { background-color: #6c757d; }\nprogress.secondary:not([value])::-webkit-progress-bar { background-color: #6c757d; }\nprogress.secondary::-moz-progress-bar { background-color: #6c757d; }\n\nprogress.success[value]::-webkit-progress-value { background-color: #28a745; }\nprogress.success:not([value])::before { background-color: #28a745; }\nprogress.success:not([value])::-webkit-progress-bar { background-color: #28a745; }\nprogress.success::-moz-progress-bar { background-color: #28a745; }\n\nprogress.danger[value]::-webkit-progress-value { background-color: #dc3545; }\nprogress.danger:not([value])::before { background-color: #dc3545; }\nprogress.danger:not([value])::-webkit-progress-bar { background-color: #dc3545; }\nprogress.danger::-moz-progress-bar { background-color: #dc3545; }\n\nprogress.warning[value]::-webkit-progress-value { background-color: #ffc107; }\nprogress.warning:not([value])::before { background-color: #ffc107; }\nprogress.warning:not([value])::-webkit-progress-bar { background-color: #ffc107; }\nprogress.warning::-moz-progress-bar { background-color: #ffc107; }\n\nprogress.info[value]::-webkit-progress-value { background-color: #17a2b8; }\nprogress.info:not([value])::before { background-color: #17a2b8; }\nprogress.info:not([value])::-webkit-progress-bar { background-color: #17a2b8; }\nprogress.info::-moz-progress-bar { background-color: #17a2b8; }\n\nprogress.light[value]::-webkit-progress-value { background-color: #f8f9fa; }\nprogress.light:not([value])::before { background-color: #f8f9fa; }\nprogress.light:not([value])::-webkit-progress-bar { background-color: #f8f9fa; }\nprogress.light::-moz-progress-bar { background-color: #f8f9fa; }\n\nprogress.dark[value]::-webkit-progress-value { background-color: #343a40; }\nprogress.dark:not([value])::-webkit-progress-bar { background-color: #343a40; }\nprogress.dark:not([value])::before { background-color: #343a40; }\nprogress.dark::-moz-progress-bar { background-color: #343a40; }\n\nprogress:not([value])::-webkit-progress-bar {\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\nprogress:not([value])::before {\n\tcontent:\" \";\n\tposition:absolute;\n\theight: 20px;\n\ttop:0;\n\tleft:0;\n\tright:0;\n\tbottom:0;\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\n\n@keyframes stripes {\n from {background-position: 0%}\n to {background-position: 100%}\n}");n”, ” },n”, ” function(Bokeh) {n”, ” inject_raw_css(".codehilite .hll { background-color: #ffffcc }\n.codehilite { background: #f8f8f8; }\n.codehilite .c { color: #408080; font-style: italic } /* Comment /\n.codehilite .err { border: 1px solid #FF0000 } / Error /\n.codehilite .k { color: #008000; font-weight: bold } / Keyword /\n.codehilite .o { color: #666666 } / Operator /\n.codehilite .ch { color: #408080; font-style: italic } / Comment.Hashbang /\n.codehilite .cm { color: #408080; font-style: italic } / Comment.Multiline /\n.codehilite .cp { color: #BC7A00 } / Comment.Preproc /\n.codehilite .cpf { color: #408080; font-style: italic } / Comment.PreprocFile /\n.codehilite .c1 { color: #408080; font-style: italic } / Comment.Single /\n.codehilite .cs { color: #408080; font-style: italic } / Comment.Special /\n.codehilite .gd { color: #A00000 } / Generic.Deleted /\n.codehilite .ge { font-style: italic } / Generic.Emph /\n.codehilite .gr { color: #FF0000 } / Generic.Error /\n.codehilite .gh { color: #000080; font-weight: bold } / Generic.Heading /\n.codehilite .gi { color: #00A000 } / Generic.Inserted /\n.codehilite .go { color: #888888 } / Generic.Output /\n.codehilite .gp { color: #000080; font-weight: bold } / Generic.Prompt /\n.codehilite .gs { font-weight: bold } / Generic.Strong /\n.codehilite .gu { color: #800080; font-weight: bold } / Generic.Subheading /\n.codehilite .gt { color: #0044DD } / Generic.Traceback /\n.codehilite .kc { color: #008000; font-weight: bold } / Keyword.Constant /\n.codehilite .kd { color: #008000; font-weight: bold } / Keyword.Declaration /\n.codehilite .kn { color: #008000; font-weight: bold } / Keyword.Namespace /\n.codehilite .kp { color: #008000 } / Keyword.Pseudo /\n.codehilite .kr { color: #008000; font-weight: bold } / Keyword.Reserved /\n.codehilite .kt { color: #B00040 } / Keyword.Type /\n.codehilite .m { color: #666666 } / Literal.Number /\n.codehilite .s { color: #BA2121 } / Literal.String /\n.codehilite .na { color: #7D9029 } / Name.Attribute /\n.codehilite .nb { color: #008000 } / Name.Builtin /\n.codehilite .nc { color: #0000FF; font-weight: bold } / Name.Class /\n.codehilite .no { color: #880000 } / Name.Constant /\n.codehilite .nd { color: #AA22FF } / Name.Decorator /\n.codehilite .ni { color: #999999; font-weight: bold } / Name.Entity /\n.codehilite .ne { color: #D2413A; font-weight: bold } / Name.Exception /\n.codehilite .nf { color: #0000FF } / Name.Function /\n.codehilite .nl { color: #A0A000 } / Name.Label /\n.codehilite .nn { color: #0000FF; font-weight: bold } / Name.Namespace /\n.codehilite .nt { color: #008000; font-weight: bold } / Name.Tag /\n.codehilite .nv { color: #19177C } / Name.Variable /\n.codehilite .ow { color: #AA22FF; font-weight: bold } / Operator.Word /\n.codehilite .w { color: #bbbbbb } / Text.Whitespace /\n.codehilite .mb { color: #666666 } / Literal.Number.Bin /\n.codehilite .mf { color: #666666 } / Literal.Number.Float /\n.codehilite .mh { color: #666666 } / Literal.Number.Hex /\n.codehilite .mi { color: #666666 } / Literal.Number.Integer /\n.codehilite .mo { color: #666666 } / Literal.Number.Oct /\n.codehilite .sa { color: #BA2121 } / Literal.String.Affix /\n.codehilite .sb { color: #BA2121 } / Literal.String.Backtick /\n.codehilite .sc { color: #BA2121 } / Literal.String.Char /\n.codehilite .dl { color: #BA2121 } / Literal.String.Delimiter /\n.codehilite .sd { color: #BA2121; font-style: italic } / Literal.String.Doc /\n.codehilite .s2 { color: #BA2121 } / Literal.String.Double /\n.codehilite .se { color: #BB6622; font-weight: bold } / Literal.String.Escape /\n.codehilite .sh { color: #BA2121 } / Literal.String.Heredoc /\n.codehilite .si { color: #BB6688; font-weight: bold } / Literal.String.Interpol /\n.codehilite .sx { color: #008000 } / Literal.String.Other /\n.codehilite .sr { color: #BB6688 } / Literal.String.Regex /\n.codehilite .s1 { color: #BA2121 } / Literal.String.Single /\n.codehilite .ss { color: #19177C } / Literal.String.Symbol /\n.codehilite .bp { color: #008000 } / Name.Builtin.Pseudo /\n.codehilite .fm { color: #0000FF } / Name.Function.Magic /\n.codehilite .vc { color: #19177C } / Name.Variable.Class /\n.codehilite .vg { color: #19177C } / Name.Variable.Global /\n.codehilite .vi { color: #19177C } / Name.Variable.Instance /\n.codehilite .vm { color: #19177C } / Name.Variable.Magic /\n.codehilite .il { color: #666666 } / Literal.Number.Integer.Long /\n\n.markdown h1 { margin-block-start: 0.34em }\n.markdown h2 { margin-block-start: 0.42em }\n.markdown h3 { margin-block-start: 0.5em }\n.markdown h4 { margin-block-start: 0.67em }\n.markdown h5 { margin-block-start: 0.84em }\n.markdown h6 { margin-block-start: 1.17em }\n.markdown ul { padding-inline-start: 2em }\n.markdown ol { padding-inline-start: 2em }\n.markdown strong { font-weight: 600 }\n.markdown a { color: -webkit-link }\n.markdown a { color: -moz-hyperlinkText }\n");n”, ” },n”, ” function(Bokeh) {n”, ” inject_raw_css(".json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n");n”, ” },n”, ” function(Bokeh) {n”, ” inject_raw_css("table.panel-df {\n margin-left: auto;\n margin-right: auto;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n color: black;\n font-size: 12px;\n table-layout: fixed;\n width: 100%;\n}\n\n.panel-df tr, th, td {\n text-align: right;\n vertical-align: middle;\n padding: 0.5em 0.5em !important;\n line-height: normal;\n white-space: normal;\n max-width: none;\n border: none;\n}\n\n.panel-df tbody {\n display: table-row-group;\n vertical-align: middle;\n border-color: inherit;\n}\n\n.panel-df tbody tr:nth-child(odd) {\n background: #f5f5f5;\n}\n\n.panel-df thead {\n border-bottom: 1px solid black;\n vertical-align: bottom;\n}\n\n.panel-df tr:hover {\n background: lightblue !important;\n cursor: pointer;\n}\n");n”, ” },n”, ” function(Bokeh) {n”, ” / BEGIN bokeh.min.js /n”, ” /!n”, ” * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn”, ” * All rights reserved.n”, ” * n”, ” * Redistribution and use in source and binary forms, with or without modification,n”, ” * are permitted provided that the following conditions are met:n”, ” * n”, ” * Redistributions of source code must retain the above copyright notice,n”, ” * this list of conditions and the following disclaimer.n”, ” * n”, ” * Redistributions in binary form must reproduce the above copyright notice,n”, ” * this list of conditions and the following disclaimer in the documentationn”, ” * and/or other materials provided with the distribution.n”, ” * n”, ” * Neither the name of Anaconda nor the names of any contributorsn”, ” * may be used to endorse or promote products derived from this softwaren”, ” * without specific prior written permission.n”, ” * n”, ” * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n”, ” * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn”, ” * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn”, ” * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn”, ” * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn”, ” * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn”, ” * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn”, ” * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn”, ” * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n”, ” * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn”, ” * THE POSSIBILITY OF SUCH DAMAGE.n”, ” /n”, ” (function(root, factory) {n”, ” const bokeh = factory();n”, ” if (root.Bokeh === undefined) {n”, ” root.Bokeh = bokeh;n”, ” }n”, ” const Bokeh = root.Bokeh;n”, ” Bokeh[bokeh.version] = bokeh;n”, ” })(this, function() {n”, ” var define;n”, ” var parent_require = typeof require === "function" && requiren”, ” return (function(modules, entry, aliases, externals) {n”, ” if (aliases === undefined) aliases = {};n”, ” if (externals === undefined) externals = {};n”, “n”, ” var cache = {};n”, “n”, ” var normalize = function(name) {n”, ” if (typeof name === "number")n”, ” return name;n”, “n”, ” if (name === "bokehjs")n”, ” return entry;n”, “n”, ” var prefix = "@bokehjs/"n”, ” if (name.slice(0, prefix.length) === prefix)n”, ” name = name.slice(prefix.length)n”, “n”, ” var alias = aliases[name]n”, ” if (alias != null)n”, ” return alias;n”, “n”, ” var trailing = name.length > 0 && name[name.lenght-1] === "/";n”, ” var index = aliases[name + (trailing ? "" : "/") + "index"];n”, ” if (index != null)n”, ” return index;n”, “n”, ” return name;n”, ” }n”, “n”, ” var require = function(name) {n”, ” var mod = cache[name];n”, ” if (!mod) {n”, ” var id = normalize(name);n”, “n”, ” mod = cache[id];n”, ” if (!mod) {n”, ” if (!modules[id]) {n”, ” if (externals[id] === false || (externals[id] == true && parent_require)) {n”, ” try {n”, ” mod = {exports: externals[id] ? parent_require(id) : {}};n”, ” cache[id] = cache[name] = mod;n”, ” return mod.exports;n”, ” } catch (e) {}n”, ” }n”, “n”, ” var err = new Error("Cannot find module ‘" + name + "’");n”, ” err.code = ‘MODULE_NOT_FOUND’;n”, ” throw err;n”, ” }n”, “n”, ” mod = {exports: {}};n”, ” cache[id] = cache[name] = mod;n”, ” modules[id].call(mod.exports, require, mod, mod.exports);n”, ” } elsen”, ” cache[name] = mod;n”, ” }n”, “n”, ” return mod.exports;n”, ” }n”, “n”, ” var main = require(entry);n”, ” main.require = require;n”, “n”, ” if (typeof Proxy !== "undefined") {n”, ” // allow Bokeh.loader["@bokehjs/module/name"] syntaxn”, ” main.loader = new Proxy({}, {n”, ” get: function(_obj, module) {n”, ” return require(module);n”, ” }n”, ” });n”, ” }n”, “n”, ” main.register_plugin = function(plugin_modules, plugin_entry, plugin_aliases, plugin_externals) {n”, ” if (plugin_aliases === undefined) plugin_aliases = {};n”, ” if (plugin_externals === undefined) plugin_externals = {};n”, “n”, ” for (var name in plugin_modules) {n”, ” modules[name] = plugin_modules[name];n”, ” }n”, “n”, ” for (var name in plugin_aliases) {n”, ” aliases[name] = plugin_aliases[name];n”, ” }n”, “n”, ” for (var name in plugin_externals) {n”, ” externals[name] = plugin_externals[name];n”, ” }n”, “n”, ” var plugin = require(plugin_entry);n”, “n”, ” for (var name in plugin) {n”, ” main[name] = plugin[name];n”, ” }n”, “n”, ” return plugin;n”, ” }n”, “n”, ” return main;n”, ” })n”, ” ([n”, ” function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0}),e(1).__exportStar(e(2),_)},n”, ” function _(t,e,n){n”, ” /! *************************************************************************n”, ” Copyright (c) Microsoft Corporation. All rights reserved.n”, ” Licensed under the Apache License, Version 2.0 (the "License"); you may not usen”, ” this file except in compliance with the License. You may obtain a copy of then”, ” License at http://www.apache.org/licenses/LICENSE-2.0n”, ” n”, ” THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYn”, ” KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDn”, ” WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,n”, ” MERCHANTABLITY OR NON-INFRINGEMENT.n”, ” n”, ” See the Apache Version 2.0 License for specific language governing permissionsn”, ” and limitations under the License.n”, ” ************************************************************************* /n”, ” Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(void 0===e||e– >0)&&!(r=a.next()).done;)i.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function i(t){return this instanceof i?(this.v=t,this):new i(t)}n.__extends=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.__assign=function(){return n.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.__assign.apply(this,arguments)},n.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},n.__decorate=function(t,e,n,r){var o,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u–)(o=t[u])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i},n.__param=function(t,e){return function(n,r){e(n,r,t)}},n.__metadata=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(o,a){function i(t){try{c(r.next(t))}catch(t){a(t)}}function u(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((r=r.apply(t,e||[])).next())}))},n.__generator=function(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},n.__exportStar=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},n.__values=o,n.__read=a,n.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t},n.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var a=arguments[e],i=0,u=a.length;i<u;i++,o++)r[o]=a[i];return r},n.__await=i,n.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),a=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||c(t,e)}))})}function c(t,e){try{(n=o[t](e)).value instanceof i?Promise.resolve(n.value.v).then(f,l):s(a[0][2],n)}catch(t){s(a[0][3],t)}var n}function f(t){c("next",t)}function l(t){c("throw",t)}function s(t,e){t(e),a.shift(),a.length&&c(a[0][0],a[0][1])}},n.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:i(t[r](e)),done:"return"===r}:o?o(e):e}:o}},n.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=o(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}},n.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},n.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},n.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},n.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},n.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},n”, ” function _(e,r,t){var l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r};Object.defineProperty(t,"__esModule",{value:!0});var o=e(3);t.version=o.version;var s=e(4);t.index=s.index,t.embed=l(e(4)),t.protocol=l(e(354)),t._testing=l(e(355));var n=e(70);t.logger=n.logger,t.set_log_level=n.set_log_level;var a=e(23);t.settings=a.settings;var i=e(7);t.Models=i.Models;var v=e(5);t.documents=v.documents;var _=e(356);t.safely=_.safely},n”, ” function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.version="2.0.2"},n”, ” function _(e,o,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(5),s=e(70),d=e(26),r=e(8),_=e(17),c=e(345),i=e(347),a=e(346);var u=e(345);n.add_document_standalone=u.add_document_standalone,n.index=u.index;var l=e(347);n.add_document_from_session=l.add_document_from_session;var m=e(352);n.embed_items_notebook=m.embed_items_notebook,n.kernels=m.kernels;var f=e(346);async function g(e,o,n,_){r.isString(e)&&(e=JSON.parse(d.unescape(e)));const u={};for(const o in e){const n=e[o];u[o]=t.Document.from_json(n)}const l=[];for(const e of o){const o=a._resolve_element(e),t=a._resolve_root_elements(e);if(null!=e.docid)l.push(await c.add_document_standalone(u[e.docid],o,t,e.use_for_title));else{if(null==e.token)throw new Error("Error rendering Bokeh items: either ‘docid’ or ‘token’ was expected.");{const d=i._get_ws_url(n,_);s.logger.debug(`embed: computed ws url: ${d}`);try{l.push(await i.add_document_from_session(d,e.token,o,t,e.use_for_title)),console.log("Bokeh items were rendered successfully")}catch(e){console.log("Error rendering Bokeh items:",e)}}}}return l}n.BOKEH_ROOT=f.BOKEH_ROOT,n.embed_item=async function(e,o){const n={},t=d.uuid4();n[t]=e.doc,null==o&&(o=e.target_id);const s=document.getElementById(o);null!=s&&s.classList.add(a.BOKEH_ROOT);const r={roots:{[e.root_id]:o},root_ids:[e.root_id],docid:t},[c]=await _.defer(()=>g(n,[r]));return c},n.embed_items=async function(e,o,n,t){return await _.defer(()=>g(e,o,n,t))}},n”, ” function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const o=e(1);o.__exportStar(e(6),_),o.__exportStar(e(103),_)},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(7),n=e(3),i=e(70),r=e(281),_=e(13),l=e(14),a=e(25),c=e(100),d=e(15),h=e(9),f=e(24),u=e(16),m=e(8),g=e(244),v=e(73),p=e(69),w=e(103);class b{constructor(e){this.document=e,this.session=null,this.subscribed_models=new Set}send_event(e){const t=new w.MessageSentEvent(this.document,"bokeh_event",e.to_json());this.document._trigger_on_change(t)}trigger(e){for(const t of this.subscribed_models){if(null!=e.origin&&e.origin.id!==t)continue;const s=this.document._all_models[t];null!=s&&s instanceof p.Model&&s._process_event(e)}}}s.EventManager=b,b.__name__="EventManager",s.documents=[],s.DEFAULT_TITLE="Bokeh Application";class y{constructor(){s.documents.push(this),this._init_timestamp=Date.now(),this._title=s.DEFAULT_TITLE,this._roots=[],this._all_models={},this._all_models_by_name=new d.MultiDict,this._all_models_freeze_count=0,this._callbacks=[],this._message_callbacks=new Map,this.event_manager=new b(this),this.idle=new l.Signal0(this,"idle"),this._idle_roots=new WeakMap,this._interactive_timestamp=null,this._interactive_plot=null}get layoutables(){return this._roots.filter(e=>e instanceof g.LayoutDOM)}get is_idle(){for(const e of this.layoutables)if(!this._idle_roots.has(e))return!1;return!0}notify_idle(e){this._idle_roots.set(e,!0),this.is_idle&&(i.logger.info(`document idle at ${Date.now()-this._init_timestamp} ms`),this.idle.emit())}clear(){this._push_all_models_freeze();try{for(;this._roots.length>0;)this.remove_root(this._roots[0])}finally{this._pop_all_models_freeze()}}interactive_start(e){null==this._interactive_plot&&(this._interactive_plot=e,this._interactive_plot.trigger_event(new r.LODStart)),this._interactive_timestamp=Date.now()}interactive_stop(e){null!=this._interactive_plot&&this._interactive_plot.id===e.id&&this._interactive_plot.trigger_event(new r.LODEnd),this._interactive_plot=null,this._interactive_timestamp=null}interactive_duration(){return null==this._interactive_timestamp?-1:Date.now()-this._interactive_timestamp}destructively_move(e){if(e===this)throw new Error("Attempted to overwrite a document with itself");e.clear();const t=h.copy(this._roots);this.clear();for(const e of t)if(null!=e.document)throw new Error(`Somehow we didn’t detach ${e}`);if(0!==Object.keys(this._all_models).length)throw new Error(`this._all_models still had stuff in it: ${this._all_models}`);for(const s of t)e.add_root(s);e.set_title(this._title)}_push_all_models_freeze(){this._all_models_freeze_count+=1}_pop_all_models_freeze(){this._all_models_freeze_count-=1,0===this._all_models_freeze_count&&this._recompute_all_models()}_invalidate_all_models(){i.logger.debug("invalidating document models"),0===this._all_models_freeze_count&&this._recompute_all_models()}_recompute_all_models(){let e=new d.Set;for(const t of this._roots)e=e.union(t.references());const t=new d.Set(f.values(this._all_models)),s=t.diff(e),o=e.diff(t),n={};for(const t of e.values)n[t.id]=t;for(const e of s.values)e.detach_document(),e instanceof p.Model&&null!=e.name&&this._all_models_by_name.remove_value(e.name,e);for(const e of o.values)e.attach_document(this),e instanceof p.Model&&null!=e.name&&this._all_models_by_name.add_value(e.name,e);this._all_models=n}roots(){return this._roots}add_root(e,t){if(i.logger.debug(`Adding root: ${e}`),!h.includes(this._roots,e)){this._push_all_models_freeze();try{this._roots.push(e)}finally{this._pop_all_models_freeze()}this._trigger_on_change(new w.RootAddedEvent(this,e,t))}}remove_root(e,t){const s=this._roots.indexOf(e);if(!(s<0)){this._push_all_models_freeze();try{this._roots.splice(s,1)}finally{this._pop_all_models_freeze()}this._trigger_on_change(new w.RootRemovedEvent(this,e,t))}}title(){return this._title}set_title(e,t){e!==this._title&&(this._title=e,this._trigger_on_change(new w.TitleChangedEvent(this,e,t)))}get_model_by_id(e){return e in this._all_models?this._all_models[e]:null}get_model_by_name(e){return this._all_models_by_name.get_one(e,`Multiple models are named ‘${e}’`)}on_message(e,t){const s=this._message_callbacks.get(e);null==s?this._message_callbacks.set(e,new Set([t])):s.add(t)}remove_on_message(e,t){var s;null===(s=this._message_callbacks.get(e))||void 0===s||s.delete(t)}_trigger_on_message(e,t){const s=this._message_callbacks.get(e);if(null!=s)for(const e of s)e(t)}on_change(e){h.includes(this._callbacks,e)||this._callbacks.push(e)}remove_on_change(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}_trigger_on_change(e){for(const t of this._callbacks)t(e)}_notify_change(e,t,s,o,n){"name"===t&&(this._all_models_by_name.remove_value(s,e),null!=o&&this._all_models_by_name.add_value(o,e));const i=null!=n?n.setter_id:void 0,r=null!=n?n.hint:void 0;this._trigger_on_change(new w.ModelChangedEvent(this,e,t,s,o,i,r))}static _references_json(e,t=!0){const s=[];for(const o of e){const e=o.struct();e.attributes=o.attributes_as_json(t),delete e.attributes.id,s.push(e)}return s}static _instantiate_object(e,t,s){const n=Object.assign(Object.assign({},s),{id:e,__deferred__:!0});return new(o.Models(t))(n)}static _instantiate_references_json(e,t){const s={};for(const o of e){const e=o.id,n=o.type,i=o.attributes||{};let r;e in t?r=t[e]:(r=y._instantiate_object(e,n,i),null!=o.subtype&&r.set_subtype(o.subtype)),s[r.id]=r}return s}static _resolve_refs(e,t,s){function o(e){if(a.is_ref(e)){if(e.id in t)return t[e.id];if(e.id in s)return s[e.id];throw new Error(`reference ${JSON.stringify(e)} isn’t known (not in Document?)`)}return m.isArray(e)?function(e){const t=[];for(const s of e)t.push(o(s));return t}(e):m.isPlainObject(e)?function(e){const t={};for(const s in e){const n=e[s];t[s]=o(n)}return t}(e):e}return o(e)}static _initialize_references_json(e,t,s){const o={};for(const n of e){const e=n.id,i=n.attributes,r=!(e in t),_=r?s[e]:t[e],l=y._resolve_refs(i,t,s);o[_.id]=[_,l,r]}function n(e,t){const s={};function o(n){if(n instanceof _.HasProps){if(!(n.id in s)&&n.id in e){s[n.id]=!0;const[,i,r]=e[n.id];for(const e in i){o(i[e])}t(n,i,r)}}else if(m.isArray(n))for(const e of n)o(e);else if(m.isPlainObject(n))for(const e in n){o(n[e])}}for(const t in e){const[s,,]=e[t];o(s)}}n(o,(function(e,t,s){s&&e.setv(t,{silent:!0})})),n(o,(function(e,t,s){s&&e.finalize()}))}static _event_for_attribute_change(e,t,s,o,n){if(o.get_model_by_id(e.id).attribute_is_serializable(t)){const i={kind:"ModelChanged",model:{id:e.id},attr:t,new:s};return _.HasProps._json_record_references(o,s,n,!0),i}return null}static _events_to_sync_objects(e,t,s,o){const n=Object.keys(e.attributes),r=Object.keys(t.attributes),_=h.difference(n,r),l=h.difference(r,n),a=h.intersection(n,r),c=[];for(const e of _)i.logger.warn(`Server sent key ${e} but we don’t seem to have it in our JSON`);for(const n of l){const i=t.attributes[n];c.push(y._event_for_attribute_change(e,n,i,s,o))}for(const n of a){const i=e.attributes[n],r=t.attributes[n];null==i&&null==r||(null==i||null==r?c.push(y._event_for_attribute_change(e,n,r,s,o)):u.isEqual(i,r)||c.push(y._event_for_attribute_change(e,n,r,s,o)))}return c.filter(e=>null!=e)}static _compute_patch_since_json(e,t){const s=t.to_json(!1);function o(e){const t={};for(const s of e.roots.references)t[s.id]=s;return t}const n=o(e),i={},r=[];for(const t of e.roots.root_ids)i[t]=n[t],r.push(t);const _=o(s),l={},a=[];for(const e of s.roots.root_ids)l[e]=_[e],a.push(e);if(r.sort(),a.sort(),h.difference(r,a).length>0||h.difference(a,r).length>0)throw new Error("Not implemented: computing add/remove of document roots");const c={};let d=[];for(const e in t._all_models)if(e in n){const s=y._events_to_sync_objects(n[e],_[e],t,c);d=d.concat(s)}return{references:y._references_json(f.values(c),!1),events:d}}to_json_string(e=!0){return JSON.stringify(this.to_json(e))}to_json(e=!0){const t=this._roots.map(e=>e.id),s=f.values(this._all_models);return{version:n.version,title:this._title,roots:{root_ids:t,references:y._references_json(s,e)}}}static from_json_string(e){const t=JSON.parse(e);return y.from_json(t)}static from_json(e){i.logger.debug("Creating Document from JSON");const t=e.version,s=-1!==t.indexOf("+")||-1!==t.indexOf("-"),o=`Library versions: JS (${n.version}) / Python (${t})`;s||n.version.replace(/-(dev|rc)\./,"$1")==t?i.logger.debug(o):(i.logger.warn("JS/Python version mismatch"),i.logger.warn(o));const r=e.roots,_=r.root_ids,l=r.references,a=y._instantiate_references_json(l,{});y._initialize_references_json(l,{},a);const c=new y;for(const e of _)c.add_root(a[e]);return c.set_title(e.title),c}replace_with_json(e){y.from_json(e).destructively_move(this)}create_json_patch_string(e){return JSON.stringify(this.create_json_patch(e))}create_json_patch(e){const t={},s=[];for(const o of e){if(o.document!==this)throw i.logger.warn("Cannot create a patch using events from a different document, event had ",o.document," we are ",this),new Error("Cannot create a patch using events from a different document");s.push(o.json(t))}return{events:s,references:y._references_json(f.values(t))}}apply_json_patch(e,t=[],s){const o=e.references,n=e.events,r=y._instantiate_references_json(o,this._all_models);for(const e of n)switch(e.kind){case"RootAdded":case"RootRemoved":case"ModelChanged":{const t=e.model.id;if(t in this._all_models)r[t]=this._all_models[t];else if(!(t in r))throw i.logger.warn("Got an event for unknown model ",e.model),new Error("event model wasn’t known");break}}const _={},l={};for(const e in r){const t=r[e];e in this._all_models?_[e]=t:l[e]=t}y._initialize_references_json(o,_,l);for(const e of n)switch(e.kind){case"MessageSent":{const{msg_type:s,msg_data:o}=e;let n;if(void 0===o){if(1!=t.length)throw new Error("expected exactly one buffer");{const[[,e]]=t;n=e}}else n=y._resolve_refs(o,_,l);this._trigger_on_message(s,n);break}case"ModelChanged":{const o=e.model.id;if(!(o in this._all_models))throw new Error(`Cannot apply patch to ${o} which is not in the document`);const n=this._all_models[o],i=e.attr;if("data"===i&&"ColumnDataSource"===n.type){const[o,i]=c.decode_column_data(e.new,t);n.setv({_shapes:i,data:o},{setter_id:s})}else{const t=y._resolve_refs(e.new,_,l);n.setv({[i]:t},{setter_id:s})}break}case"ColumnDataChanged":{const o=e.column_source.id;if(!(o in this._all_models))throw new Error(`Cannot stream to ${o} which is not in the document`);const n=this._all_models[o],[i,r]=c.decode_column_data(e.new,t);if(null!=e.cols){for(const e in n.data)e in i||(i[e]=n.data[e]);for(const e in n._shapes)e in r||(r[e]=n._shapes[e])}n.setv({_shapes:r,data:i},{setter_id:s,check_eq:!1});break}case"ColumnsStreamed":{const t=e.column_source.id;if(!(t in this._all_models))throw new Error(`Cannot stream to ${t} which is not in the document`);const o=this._all_models[t];if(!(o instanceof v.ColumnDataSource))throw new Error("Cannot stream to non-ColumnDataSource");const n=e.data,i=e.rollover;o.stream(n,i,s);break}case"ColumnsPatched":{const t=e.column_source.id;if(!(t in this._all_models))throw new Error(`Cannot patch ${t} which is not in the document`);const o=this._all_models[t];if(!(o instanceof v.ColumnDataSource))throw new Error("Cannot patch non-ColumnDataSource");const n=e.patches;o.patch(n,s);break}case"RootAdded":{const t=r[e.model.id];this.add_root(t,s);break}case"RootRemoved":{const t=r[e.model.id];this.remove_root(t,s);break}case"TitleChanged":this.set_title(e.title,s);break;default:throw new Error("Unknown patch event "+JSON.stringify(e))}}}s.Document=y,y.__name__="Document"},n”, ” function _(e,r,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(1),t=e(8),d=e(13);s.overrides={};const i=new Map;s.Models=e=>{const r=s.overrides[e]||i.get(e);if(null==r)throw new Error(`Model ‘${e}’ does not exist. This could be due to a widget or a custom model not being registered before first usage.`);return r},s.Models.register=(e,r)=>{s.overrides[e]=r},s.Models.unregister=e=>{delete s.overrides[e]},s.Models.register_models=(e,r=!1,s)=>{var o;if(null!=e)for(const l in e){const n=e[l];if(o=n,t.isObject(o)&&o.prototype instanceof d.HasProps){const e=n.__qualified__;r||!i.has(e)?i.set(e,n):null!=s?s(e):console.warn(`Model ‘${e}’ was already registered`)}}},s.register_models=s.Models.register_models,s.Models.registered_names=()=>Array.from(i.keys());const l=o.__importStar(e(27));s.register_models(l)},n”, ” function _(n,t,r){Object.defineProperty(r,"__esModule",{value:!0});n”, ” // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” const e=n(9),o=Object.prototype.toString;function i(n){return"[object Number]"===o.call(n)}function u(n){const t=typeof n;return"function"===t||"object"===t&&!!n}r.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===o.call(n)},r.isNumber=i,r.isInteger=function(n){return i(n)&&isFinite(n)&&Math.floor(n)===n},r.isString=function(n){return"[object String]"===o.call(n)},r.isStrictNaN=function(n){return i(n)&&n!==+n},r.isFunction=function(n){return"[object Function]"===o.call(n)},r.isArray=function(n){return Array.isArray(n)},r.isArrayOf=function(n,t){return e.every(n,t)},r.isArrayableOf=function(n,t){for(let r=0,e=n.length;r<e;r++)if(!t(n[r]))return!1;return!0},r.isTypedArray=function(n){return null!=n&&n.buffer instanceof ArrayBuffer},r.isObject=u,r.isPlainObject=function(n){return u(n)&&(null==n.constructor||n.constructor===Object)}},n”, ” function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});n”, ” // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” const r=n(10),o=n(11),i=n(12);e.map=i.map,e.reduce=i.reduce,e.min=i.min,e.min_by=i.min_by,e.max=i.max,e.max_by=i.max_by,e.sum=i.sum,e.cumsum=i.cumsum,e.every=i.every,e.some=i.some,e.find=i.find,e.find_last=i.find_last,e.find_index=i.find_index,e.find_last_index=i.find_last_index,e.sorted_index=i.sorted_index;const u=Array.prototype.slice;function c(n){return u.call(n)}function f(n){return[].concat(…n)}function s(n,t){return-1!==n.indexOf(t)}function l(n,t,e=1){o.assert(e>0,"’step’ must be a positive number"),null==t&&(t=n,n=0);const{max:r,ceil:i,abs:u}=Math,c=n<=t?e:-e,f=r(i(u(t-n)/e),0),s=Array(f);for(let t=0;t<f;t++,n+=c)s[t]=n;return s}function a(n){const t=[];for(const e of n)s(t,e)||t.push(e);return t}e.head=function(n){return n[0]},e.tail=function(n){return n[n.length-1]},e.last=function(n){return n[n.length-1]},e.copy=c,e.concat=f,e.includes=s,e.contains=s,e.nth=function(n,t){return n[t>=0?t:n.length+t]},e.zip=function(…n){if(0==n.length)return[];const t=i.min(n.map(n=>n.length)),e=n.length,r=new Array(t);for(let o=0;o<t;o++){r[o]=new Array(e);for(let t=0;t<e;t++)r[o][t]=n[t][o]}return r},e.unzip=function(n){const t=n.length,e=i.min(n.map(n=>n.length)),r=Array(e);for(let n=0;n<e;n++)r[n]=new Array(t);for(let o=0;o<t;o++)for(let t=0;t<e;t++)r[t][o]=n[o][t];return r},e.range=l,e.linspace=function(n,t,e=100){const r=(t-n)/(e-1),o=new Array(e);for(let t=0;t<e;t++)o[t]=n+r*t;return o},e.transpose=function(n){const t=n.length,e=n[0].length,r=[];for(let o=0;o<e;o++){r[o]=[];for(let e=0;e<t;e++)r[o][e]=n[e][o]}return r},e.argmin=function(n){return i.min_by(l(n.length),t=>n[t])},e.argmax=function(n){return i.max_by(l(n.length),t=>n[t])},e.sort_by=function(n,t){const e=n.map((n,e)=>({value:n,index:e,key:t(n)}));return e.sort((n,t)=>{const e=n.key,r=t.key;if(e!==r){if(e>r||void 0===e)return 1;if(e<r||void 0===r)return-1}return n.index-t.index}),e.map(n=>n.value)},e.uniq=a,e.uniq_by=function(n,t){const e=[],r=[];for(const o of n){const n=t(o);s(r,n)||(r.push(n),e.push(o))}return e},e.union=function(…n){return a(f(n))},e.intersection=function(n,…t){const e=[];n:for(const r of n)if(!s(e,r)){for(const n of t)if(!s(n,r))continue n;e.push(r)}return e},e.difference=function(n,…t){const e=f(t);return n.filter(n=>!s(e,n))},e.remove_at=function(n,t){const e=c(n);return e.splice(t,1),e},e.remove_by=function(n,t){for(let e=0;e<n.length;)t(n[e])?n.splice(e,1):e++},e.shuffle=function(n){const t=n.length,e=new Array(t);for(let o=0;o<t;o++){const t=r.randomIn(0,o);t!==o&&(e[o]=e[t]),e[t]=n[o]}return e},e.pairwise=function(n,t){const e=n.length,r=new Array(e-1);for(let o=0;o<e-1;o++)r[o]=t(n[o],n[o+1]);return r},e.reversed=function(n){const t=n.length,e=new Array(t);for(let r=0;r<t;r++)e[t-r-1]=n[r];return e},e.repeat=function(n,t){const e=new Array(t);for(let r=0;r<t;r++)e[r]=n;return e}},n”, ” function _(n,t,r){function e(n){if(0==n)return 0;for(;n<=0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;return n}function o(n,t){return e(n-t)}function a(){return Math.random()}Object.defineProperty(r,"__esModule",{value:!0}),r.angle_norm=e,r.angle_dist=o,r.angle_between=function(n,t,r,a){const u=o(t,r);if(0==u)return!1;if(u==2*Math.PI)return!0;const f=e(n),i=o(t,f)<=u&&o(f,r)<=u;return 0==a?i:!i},r.random=a,r.randomIn=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},r.atan2=function(n,t){return Math.atan2(t[1]-n[1],t[0]-n[0])},r.rnorm=function(n,t){let r,e;for(;r=a(),e=a(),e=(2*e-1)*Math.sqrt(1/Math.E*2),!(-4*r*r*Math.log(r)>=e*e););let o=e/r;return o=n+t*o,o},r.clamp=function(n,t,r){return n>r?r:n<t?t:n}},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});class o extends Error{}n.AssertionError=o,o.__name__="AssertionError",n.assert=function(e,r){if(!(!0===e||!1!==e&&e()))throw new o(null!=r?r:"Assertion failed")},n.unreachable=function(){throw new Error("unreachable code")}},n”, ” function _(n,t,e){function r(n,t,e,…r){const o=n.length;t<0&&(t+=o),t<0?t=0:t>o&&(t=o),null==e||e>o-t?e=o-t:e<0&&(e=0);const u=o-e+r.length,i=new n.constructor(u);let f=0;for(;f<t;f++)i[f]=n[f];for(const n of r)i[f++]=n;for(let r=t+e;r<o;r++)i[f++]=n[r];return i}function o(n,t){return r(n,t,n.length-t)}function u(n,t,e){const r=n.length;if(void 0===e&&0==r)throw new Error("can’t reduce an empty array without an initial value");let o,u;for(void 0===e?(o=n[0],u=1):(o=e,u=0);u<r;u++)o=t(o,n[u],u,n);return o}function i(n){return function(t,e){const r=t.length;let o=n>0?0:r-1;for(;o>=0&&o<r;o+=n)if(e(t[o]))return o;return-1}}Object.defineProperty(e,"__esModule",{value:!0}),e.splice=r,e.head=o,e.insert=function(n,t,e){return r(n,e,0,t)},e.append=function(n,t){return r(n,n.length,0,t)},e.prepend=function(n,t){return r(n,0,0,t)},e.indexOf=function(n,t){for(let e=0,r=n.length;e<r;e++)if(n[e]===t)return e;return-1},e.map=function(n,t){const e=n.length,r=new n.constructor(e);for(let o=0;o<e;o++)r[o]=t(n[o],o,n);return r},e.filter=function(n,t){const e=n.length,r=new n.constructor(e);let u=0;for(let o=0;o<e;o++){const e=n[o];t(e,o,n)&&(r[u++]=e)}return o(r,u)},e.reduce=u,e.min=function(n){let t,e=1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],t<e&&(e=t);return e},e.min_by=function(n,t){if(0==n.length)throw new Error("min_by() called with an empty array");let e=n[0],r=t(e);for(let o=1,u=n.length;o<u;o++){const u=n[o],i=t(u);i<r&&(e=u,r=i)}return e},e.max=function(n){let t,e=-1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],t>e&&(e=t);return e},e.max_by=function(n,t){if(0==n.length)throw new Error("max_by() called with an empty array");let e=n[0],r=t(e);for(let o=1,u=n.length;o<u;o++){const u=n[o],i=t(u);i>r&&(e=u,r=i)}return e},e.sum=function(n){let t=0;for(let e=0,r=n.length;e<r;e++)t+=n[e];return t},e.cumsum=function(n){const t=new n.constructor(n.length);return u(n,(n,e,r)=>t[r]=n+e,0),t},e.every=function(n,t){for(let e=0,r=n.length;e<r;e++)if(!t(n[e]))return!1;return!0},e.some=function(n,t){for(let e=0,r=n.length;e<r;e++)if(t(n[e]))return!0;return!1},e.index_of=function(n,t){for(let e=0,r=n.length;e<r;e++)if(n[e]===t)return e;return-1},e.find_index=i(1),e.find_last_index=i(-1),e.find=function(n,t){const r=e.find_index(n,t);return-1==r?void 0:n[r]},e.find_last=function(n,t){const r=e.find_last_index(n,t);return-1==r?void 0:n[r]},e.sorted_index=function(n,t){let e=0,r=n.length;for(;e<r;){const o=Math.floor((e+r)/2);n[o]<t?e=o+1:r=o}return e}},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(14),r=i.__importStar(t(18)),o=t(25),c=i.__importStar(t(19)),a=t(26),_=t(9),l=t(24),h=t(8),p=t(16);class u extends(n.Signalable()){constructor(t={}){super(),this._subtype=void 0,this.document=null,this.destroyed=new n.Signal0(this,"destroyed"),this.change=new n.Signal0(this,"change"),this.transformchange=new n.Signal0(this,"transformchange"),this.attributes={},this.properties={},this._set_after_defaults={},this._pending=!1,this._changing=!1;for(const t in this.props){const{type:e,default_value:s}=this.props[t];if(null==e)throw new Error(`undefined property type for ${this.type}.${t}`);this.properties[t]=new e(this,t,s)}null==t.id&&this.setv({id:a.uniqueId()},{silent:!0});const e=t.__deferred__||!1;e&&delete(t=l.clone(t)).__deferred__,this.setv(t,{silent:!0}),e||this.finalize()}set type(t){console.warn("prototype.type = ‘ModelName’ is deprecated, use static __name__ instead"),this.constructor.__name__=t}get type(){return this.constructor.__qualified__}static get __qualified__(){const{__module__:t,__name__:e}=this;return null!=t?`${t}.${e}`:e}static init_HasProps(){this.prototype.props={},this.prototype.mixins=[],this.define({id:[c.Any]})}static _fix_default(t,e){return void 0===t?void 0:h.isFunction(t)?t:h.isObject(t)?h.isArray(t)?()=>_.copy(t):()=>l.clone(t):()=>t}static define(t){for(const e in t){const s=t[e];if(null!=this.prototype.props[e])throw new Error(`attempted to redefine property ‘${this.prototype.type}.${e}’`);if(null!=this.prototype[e])throw new Error(`attempted to redefine attribute ‘${this.prototype.type}.${e}’`);Object.defineProperty(this.prototype,e,{get(){return this.getv(e)},set(t){return this.setv({[e]:t}),this},configurable:!1,enumerable:!0});const[i,n,r]=s,o={type:i,default_value:this._fix_default(n,e),internal:r||!1},c=l.clone(this.prototype.props);c[e]=o,this.prototype.props=c}}static internal(t){const e={};for(const s in t){const i=t[s],[n,r]=i;e[s]=[n,r,!0]}this.define(e)}static mixin(…t){this.define(r.create(t));const e=this.prototype.mixins.concat(t);this.prototype.mixins=e}static mixins(t){this.mixin(…t)}static override(t){for(const e in t){const s=this._fix_default(t[e],e),i=this.prototype.props[e];if(null==i)throw new Error(`attempted to override nonexistent ‘${this.prototype.type}.${e}’`);const n=l.clone(this.prototype.props);n[e]=Object.assign(Object.assign({},i),{default_value:s}),this.prototype.props=n}}toString(){return`${this.type}(${this.id})`}finalize(){for(const t in this.properties){const e=this.properties[t];e.update(),null!=e.spec.transform&&this.connect(e.spec.transform.change,()=>this.transformchange.emit())}this.initialize(),this.connect_signals()}initialize(){}connect_signals(){}disconnect_signals(){n.Signal.disconnectReceiver(this)}destroy(){this.disconnect_signals(),this.destroyed.emit()}clone(){return new this.constructor(this.attributes)}_setv(t,e){const s=e.check_eq,i=e.silent,n=[],r=this._changing;this._changing=!0;const o=this.attributes;for(const e in t){const i=t[e];!1!==s&&p.isEqual(o[e],i)||n.push(e),o[e]=i}if(!i){n.length>0&&(this._pending=!0);for(let t=0;t<n.length;t++)this.properties[n[t]].change.emit()}if(!r){if(!i&&!e.no_change)for(;this._pending;)this._pending=!1,this.change.emit();this._pending=!1,this._changing=!1}}setv(t,e={}){for(const s in t){if(!t.hasOwnProperty(s))continue;const i=s;if(null==this.props[i])throw new Error(`property ${this.type}.${i} wasn’t declared`);null!=e&&e.defaults||(this._set_after_defaults[s]=!0)}if(!l.isEmpty(t)){const s={};for(const e in t)s[e]=this.getv(e);this._setv(t,e);const i=e.silent;if(null==i||!i)for(const i in t)this._tell_document_about_change(i,s[i],this.getv(i),e)}}getv(t){if(null==this.props[t])throw new Error(`property ${this.type}.${t} wasn’t declared`);return this.attributes[t]}ref(){return{id:this.id}}struct(){const t={type:this.type,id:this.id,attributes:{}};return null!=this._subtype&&(t.subtype=this._subtype),t}set_subtype(t){this._subtype=t}attribute_is_serializable(t){const e=this.props[t];if(null==e)throw new Error(`${this.type}.attribute_is_serializable(‘${t}’): ${t} wasn’t declared`);return!e.internal}serializable_attributes(){const t={};for(const e in this.attributes){const s=this.attributes[e];this.attribute_is_serializable(e)&&(t[e]=s)}return t}static _value_to_json(t,e,s){if(e instanceof u)return e.ref();if(h.isArray(e)){const t=[];for(let s=0;s<e.length;s++){const i=e[s];t.push(u._value_to_json(s.toString(),i,e))}return t}if(h.isPlainObject(e)){const t={};for(const s in e)e.hasOwnProperty(s)&&(t[s]=u._value_to_json(s,e[s],e));return t}return e}attributes_as_json(t=!0,e=u._value_to_json){const s=this.serializable_attributes(),i={};for(const e in s)if(s.hasOwnProperty(e)){const n=s[e];(t||e in this._set_after_defaults)&&(i[e]=n)}return e("attributes",i,this)}static _json_record_references(t,e,s,i){if(null==e);else if(o.is_ref(e)){if(!(e.id in s)){const n=t.get_model_by_id(e.id);u._value_record_references(n,s,i)}}else if(h.isArray(e))for(const n of e)u._json_record_references(t,n,s,i);else if(h.isPlainObject(e))for(const n in e)if(e.hasOwnProperty(n)){const r=e[n];u._json_record_references(t,r,s,i)}}static _value_record_references(t,e,s){if(null==t);else if(t instanceof u){if(!(t.id in e)&&(e[t.id]=t,s)){const s=t._immediate_references();for(const t of s)u._value_record_references(t,e,!0)}}else if(t.buffer instanceof ArrayBuffer);else if(h.isArray(t))for(const i of t)u._value_record_references(i,e,s);else if(h.isPlainObject(t))for(const i in t)if(t.hasOwnProperty(i)){const n=t[i];u._value_record_references(n,e,s)}}_immediate_references(){const t={},e=this.serializable_attributes();for(const s in e){const i=e[s];u._value_record_references(i,t,!1)}return l.values(t)}references(){const t={};return u._value_record_references(this,t,!0),l.values(t)}_doc_attached(){}attach_document(t){if(null!=this.document&&this.document!=t)throw new Error("models must be owned by only a single document");this.document=t,this._doc_attached()}detach_document(){this.document=null}_tell_document_about_change(t,e,s,i){if(this.attribute_is_serializable(t)&&null!=this.document){const n={};u._value_record_references(s,n,!1);const r={};u._value_record_references(e,r,!1);let o=!1;for(const t in n)if(!(t in r)){o=!0;break}if(!o)for(const t in r)if(!(t in n)){o=!0;break}o&&this.document._invalidate_all_models(),this.document._notify_change(this,t,e,s,i)}}materialize_dataspecs(t){const e={};for(const s in this.properties){const i=this.properties[s];if(!(i instanceof c.VectorSpec))continue;if(i.optional&&null==i.spec.value&&!(s in this._set_after_defaults))continue;const n=i.array(t);e[`_${s}`]=n,null!=i.spec.field&&i.spec.field in t._shapes&&(e[`_${s}_shape`]=t._shapes[i.spec.field]),i instanceof c.DistanceSpec&&(e[`max_${s}`]=_.max(n))}return e}}s.HasProps=u,u.init_HasProps()},n”, ” function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const s=n(15),l=n(17),i=n(9);class o{constructor(n,t){this.sender=n,this.name=t}connect(n,t=null){r.has(this.sender)||r.set(this.sender,[]);const e=r.get(this.sender);if(null!=g(e,this,n,t))return!1;const s=t||n;u.has(s)||u.set(s,[]);const l=u.get(s),i={signal:this,slot:n,context:t};return e.push(i),l.push(i),!0}disconnect(n,t=null){const e=r.get(this.sender);if(null==e||0===e.length)return!1;const s=g(e,this,n,t);if(null==s)return!1;const l=t||n,i=u.get(l);return s.signal=null,f(e),f(i),!0}emit(n){const t=r.get(this.sender)||[];for(const{signal:e,slot:s,context:l}of t)e===this&&s.call(l,n,this.sender)}}e.Signal=o,o.__name__="Signal";class c extends o{emit(){super.emit(void 0)}}e.Signal0=c,c.__name__="Signal0",function(n){n.disconnectBetween=function(n,t){const e=r.get(n);if(null==e||0===e.length)return;const s=u.get(t);if(null!=s&&0!==s.length){for(const t of s){if(null==t.signal)return;t.signal.sender===n&&(t.signal=null)}f(e),f(s)}},n.disconnectSender=function(n){const t=r.get(n);if(null!=t&&0!==t.length){for(const n of t){if(null==n.signal)return;const t=n.context||n.slot;n.signal=null,f(u.get(t))}f(t)}},n.disconnectReceiver=function(n){const t=u.get(n);if(null!=t&&0!==t.length){for(const n of t){if(null==n.signal)return;const t=n.signal.sender;n.signal=null,f(r.get(t))}f(t)}},n.disconnectAll=function(n){const t=r.get(n);if(null!=t&&0!==t.length){for(const n of t)n.signal=null;f(t)}const e=u.get(n);if(null!=e&&0!==e.length){for(const n of e)n.signal=null;f(e)}}}(o||(e.Signal=o={})),e.Signalable=function(){return class{connect(n,t){return n.connect(t,this)}disconnect(n,t){return n.disconnect(t,this)}}};const r=new WeakMap,u=new WeakMap;function g(n,t,e,s){return i.find(n,n=>n.signal===t&&n.slot===e&&n.context===s)}const a=new s.Set;function f(n){0===a.size&&l.defer(h),a.add(n)}function h(){a.forEach(n=>{i.remove_by(n,n=>null==n.signal)}),a.clear()}},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(9),n=t(16),r=t(8);class o{constructor(){this._dict={}}_existing(t){return t in this._dict?this._dict[t]:null}add_value(t,s){const e=this._existing(t);null==e?this._dict[t]=s:r.isArray(e)?e.push(s):this._dict[t]=[e,s]}remove_value(t,s){const e=this._existing(t);if(r.isArray(e)){const n=i.difference(e,[s]);n.length>0?this._dict[t]=n:delete this._dict[t]}else n.isEqual(e,s)&&delete this._dict[t]}get_one(t,s){const e=this._existing(t);if(r.isArray(e)){if(1===e.length)return e[0];throw new Error(s)}return e}}e.MultiDict=o,o.__name__="MultiDict";class a{constructor(t){if(null==t)this._values=[];else if(t instanceof a)this._values=i.copy(t._values);else{this._values=[];for(const s of t)this.add(s)}}get values(){return i.copy(this._values).sort()}toString(){return`Set([${this.values.join(",")}])`}get size(){return this._values.length}has(t){return-1!==this._values.indexOf(t)}add(t){this.has(t)||this._values.push(t)}remove(t){const s=this._values.indexOf(t);-1!==s&&this._values.splice(s,1)}toggle(t){const s=this._values.indexOf(t);-1===s?this._values.push(t):this._values.splice(s,1)}clear(){this._values=[]}union(t){return t=new a(t),new a(this._values.concat(t._values))}intersect(t){t=new a(t);const s=new a;for(const e of t._values)this.has(e)&&t.has(e)&&s.add(e);return s}diff(t){t=new a(t);const s=new a;for(const e of this._values)t.has(e)||s.add(e);return s}forEach(t,s){for(const e of this._values)t.call(s||this,e,e,this)}}e.Set=a,a.__name__="Set";class h{constructor(t,s,e){this.nrows=t,this.ncols=s,this._matrix=new Array(t);for(let i=0;i<t;i++){this._matrix[i]=new Array(s);for(let t=0;t<s;t++)this._matrix[i][t]=e(i,t)}}at(t,s){return this._matrix[t][s]}map(t){return new h(this.nrows,this.ncols,(s,e)=>t(this.at(s,e),s,e))}apply(t){const s=h.from(t),{nrows:e,ncols:i}=this;if(e==s.nrows&&i==s.ncols)return new h(e,i,(t,e)=>s.at(t,e)(this.at(t,e),t,e));throw new Error("dimensions don’t match")}to_sparse(){const t=[];for(let s=0;s<this.nrows;s++)for(let e=0;e<this.ncols;e++){const i=this._matrix[s][e];t.push([i,s,e])}return t}static from(t){if(t instanceof h)return t;{const s=t.length,e=i.min(t.map(t=>t.length));return new h(s,e,(s,e)=>t[s][e])}}}e.Matrix=h,h.__name__="Matrix"},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});n”, ” // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” const r=t(8),o=Object.prototype.toString;n.isEqual=function(t,e){return function t(e,n,c,u){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return e===n;const i=o.call(e);if(i!==o.call(n))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:0==+e?1/+e==1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n}const s="[object Array]"===i;if(!s){if("object"!=typeof e||"object"!=typeof n)return!1;const t=e.constructor,o=n.constructor;if(t!==o&&!(r.isFunction(t)&&t instanceof t&&r.isFunction(o)&&o instanceof o)&&"constructor"in e&&"constructor"in n)return!1}u=u||[];let f=(c=c||[]).length;for(;f–;)if(c[f]===e)return u[f]===n;if(c.push(e),u.push(n),s){if(f=e.length,f!==n.length)return!1;for(;f–;)if(!t(e[f],n[f],c,u))return!1}else{const r=Object.keys(e);let o;if(f=r.length,Object.keys(n).length!==f)return!1;for(;f–;)if(o=r[f],!n.hasOwnProperty(o)||!t(e[o],n[o],c,u))return!1}return c.pop(),u.pop(),!0}(t,e)}},n”, ” function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.delay=n”, ” // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” function(n,e){return setTimeout(n,e)};const u="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate;t.defer=function(n){return new Promise(e=>{u(()=>e(n()))})},t.throttle=function(n,e,t={}){let u,o,i,r=null,l=0;const c=function(){l=!1===t.leading?0:Date.now(),r=null,i=n.apply(u,o),r||(u=o=null)};return function(){const a=Date.now();l||!1!==t.leading||(l=a);const f=e-(a-l);return u=this,o=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),l=a,i=n.apply(u,o),r||(u=o=null)):r||!1===t.trailing||(r=setTimeout(c,f)),i}},t.once=function(n){let e,t=!1;return function(){return t||(t=!0,e=n()),e}}},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const l=e(1).__importStar(e(19)),c=e(24);function o(e,t){const n={};for(const l in e){const c=e[l];n[t+l]=c}return n}const a={line_color:[l.ColorSpec,"black"],line_width:[l.NumberSpec,1],line_alpha:[l.NumberSpec,1],line_join:[l.LineJoin,"bevel"],line_cap:[l.LineCap,"butt"],line_dash:[l.Array,[]],line_dash_offset:[l.Number,0]};n.line=(e="")=>o(a,e);const r={fill_color:[l.ColorSpec,"gray"],fill_alpha:[l.NumberSpec,1]};n.fill=(e="")=>o(r,e);const i={hatch_color:[l.ColorSpec,"black"],hatch_alpha:[l.NumberSpec,1],hatch_scale:[l.NumberSpec,12],hatch_pattern:[l.StringSpec,null],hatch_weight:[l.NumberSpec,1],hatch_extra:[l.Any,{}]};n.hatch=(e="")=>o(i,e);const _={text_font:[l.Font,"helvetica"],text_font_size:[l.FontSizeSpec,"16px"],text_font_style:[l.FontStyle,"normal"],text_color:[l.ColorSpec,"#444444"],text_alpha:[l.NumberSpec,1],text_align:[l.TextAlign,"left"],text_baseline:[l.TextBaseline,"bottom"],text_line_height:[l.Number,1.2]};n.text=(e="")=>o(_,e),n.create=function(e){const t={};for(const l of e){const[e,o]=l.split(":");let a;switch(e){case"line":a=n.line;break;case"fill":a=n.fill;break;case"hatch":a=n.hatch;break;case"text":a=n.text;break;default:throw new Error(`Unknown property mixin kind ‘${e}’`)}c.extend(t,a(o))}return t}},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),s=e(14),a=i.__importStar(e(20)),r=e(9),o=e(12),l=e(21),c=e(8),_=e(23);function u(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}function d(e){return c.isPlainObject(e)&&(void 0===e.value?0:1)+(void 0===e.field?0:1)+(void 0===e.expr?0:1)==1}s.Signal,n.isSpec=d;class p extends(s.Signalable()){constructor(e,t,n){super(),this.obj=e,this.attr=t,this.default_value=n,this.optional=!1,this.change=new s.Signal0(this.obj,"change"),this._init(),this.connect(this.change,()=>this._init())}update(){this._init()}init(){}transform(e){return e}validate(e){if(!this.valid(e))throw new Error(`${this.obj.type}.${this.attr} given invalid value: ${u(e)}`)}valid(e){return!0}value(e=!0){if(void 0===this.spec.value)throw new Error("attempted to retrieve property value for property without value specification");let t=this.transform([this.spec.value])[0];return null!=this.spec.transform&&e&&(t=this.spec.transform.compute(t)),t}_init(){const e=this.obj,t=this.attr;let n=e.getv(t);if(void 0===n){const i=this.default_value;n=null!=this._default_override?this._default_override():void 0!==i?i(e):null,e.setv({[t]:n},{silent:!0,defaults:!0})}c.isArray(n)?this.spec={value:n}:d(n)?this.spec=n:this.spec={value:n},null!=this.spec.value&&this.validate(this.spec.value),this.init()}toString(){return`Prop(${this.obj}.${this.attr}, spec: ${u(this.spec)})`}}n.Property=p,p.__name__="Property";class h extends p{}n.Any=h,h.__name__="Any";class m extends p{valid(e){return c.isArray(e)||e instanceof Float64Array}}n.Array=m,m.__name__="Array";class S extends p{valid(e){return c.isBoolean(e)}}n.Boolean=S,S.__name__="Boolean";class g extends p{valid(e){return c.isString(e)&&l.is_color(e)}}n.Color=g,g.__name__="Color";class v extends p{}n.Instance=v,v.__name__="Instance";class x extends p{valid(e){return c.isNumber(e)}}n.Number=x,x.__name__="Number";class f extends x{valid(e){return c.isNumber(e)&&(0|e)==e}}n.Int=f,f.__name__="Int";class y extends x{}n.Angle=y,y.__name__="Angle";class P extends x{valid(e){return c.isNumber(e)&&0<=e&&e<=1}}n.Percent=P,P.__name__="Percent";class L extends p{valid(e){return c.isString(e)}}n.String=L,L.__name__="String";class T extends L{}n.FontSize=T,T.__name__="FontSize";class A extends L{constructor(){super(…arguments),this._default_override=_.settings.dev?()=>"Bokeh":void 0}}n.Font=A,A.__name__="Font";class b extends p{valid(e){return c.isString(e)&&r.includes(this.enum_values,e)}}function M(e){return class extends b{get enum_values(){return e}}}n.EnumProperty=b,b.__name__="EnumProperty",n.Enum=M;class B extends b{get enum_values(){return a.Direction}transform(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)switch(e[n]){case"clock":t[n]=0;break;case"anticlock":t[n]=1}return t}}n.Direction=B,B.__name__="Direction",n.Anchor=M(a.Anchor),n.AngleUnits=M(a.AngleUnits),n.BoxOrigin=M(a.BoxOrigin),n.ButtonType=M(a.ButtonType),n.CalendarPosition=M(a.CalendarPosition),n.Dimension=M(a.Dimension),n.Dimensions=M(a.Dimensions),n.Distribution=M(a.Distribution),n.FontStyle=M(a.FontStyle),n.HatchPatternType=M(a.HatchPatternType),n.HTTPMethod=M(a.HTTPMethod),n.HexTileOrientation=M(a.HexTileOrientation),n.HoverMode=M(a.HoverMode),n.LatLon=M(a.LatLon),n.LegendClickPolicy=M(a.LegendClickPolicy),n.LegendLocation=M(a.LegendLocation),n.LineCap=M(a.LineCap),n.LineJoin=M(a.LineJoin),n.LinePolicy=M(a.LinePolicy),n.Location=M(a.Location),n.Logo=M(a.Logo),n.MarkerType=M(a.MarkerType),n.MutedPolicy=M(a.MutedPolicy),n.Orientation=M(a.Orientation),n.OutputBackend=M(a.OutputBackend),n.PaddingUnits=M(a.PaddingUnits),n.Place=M(a.Place),n.PointPolicy=M(a.PointPolicy),n.RadiusDimension=M(a.RadiusDimension),n.RenderLevel=M(a.RenderLevel),n.RenderMode=M(a.RenderMode),n.ResetPolicy=M(a.ResetPolicy),n.RoundingFunction=M(a.RoundingFunction),n.Side=M(a.Side),n.SizingMode=M(a.SizingMode),n.Sort=M(a.Sort),n.SpatialUnits=M(a.SpatialUnits),n.StartEnd=M(a.StartEnd),n.StepMode=M(a.StepMode),n.TapBehavior=M(a.TapBehavior),n.TextAlign=M(a.TextAlign),n.TextBaseline=M(a.TextBaseline),n.TextureRepetition=M(a.TextureRepetition),n.TickLabelOrientation=M(a.TickLabelOrientation),n.TooltipAttachment=M(a.TooltipAttachment),n.UpdateMode=M(a.UpdateMode),n.VerticalAlign=M(a.VerticalAlign);class D extends p{}n.ScalarSpec=D,D.__name__="ScalarSpec";class k extends p{array(e){let t;if(null!=this.spec.field){if(t=this.transform(e.get_column(this.spec.field)),null==t)throw new Error(`attempted to retrieve property array for nonexistent field ‘${this.spec.field}’`)}else if(null!=this.spec.expr)t=this.transform(this.spec.expr.v_compute(e));else{let n=e.get_length();null==n&&(n=1);const i=this.value(!1);t=r.repeat(i,n)}return null!=this.spec.transform&&(t=this.spec.transform.v_compute(t)),t}}n.VectorSpec=k,k.__name__="VectorSpec";class C extends k{}n.DataSpec=C,C.__name__="DataSpec";class O extends k{init(){null==this.spec.units&&(this.spec.units=this.default_units);const e=this.spec.units;if(!r.includes(this.valid_units,e))throw new Error(`units must be one of ${this.valid_units.join(", ")}; got: ${e}`)}get units(){return this.spec.units}set units(e){this.spec.units=e}}n.UnitsSpec=O,O.__name__="UnitsSpec";class U extends O{get default_units(){return"rad"}get valid_units(){return a.AngleUnits}transform(e){return"deg"==this.spec.units&&(e=o.map(e,e=>e*Math.PI/180)),e=o.map(e,e=>-e),super.transform(e)}}n.AngleSpec=U,U.__name__="AngleSpec";class w extends C{}n.BooleanSpec=w,w.__name__="BooleanSpec";class R extends C{}n.ColorSpec=R,R.__name__="ColorSpec";class F extends C{}n.CoordinateSpec=F,F.__name__="CoordinateSpec";class N extends C{}n.CoordinateSeqSpec=N,N.__name__="CoordinateSeqSpec";class E extends O{get default_units(){return"data"}get valid_units(){return a.SpatialUnits}}n.DistanceSpec=E,E.__name__="DistanceSpec";class $ extends C{}n.FontSizeSpec=$,$.__name__="FontSizeSpec";class j extends C{}n.MarkerSpec=j,j.__name__="MarkerSpec";class H extends C{}n.NumberSpec=H,H.__name__="NumberSpec";class z extends C{}n.StringSpec=z,z.__name__="StringSpec";class I extends C{}n.NullStringSpec=I,I.__name__="NullStringSpec"},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Align=["start","center","end"],o.Anchor=["top_left","top_center","top_right","center_left","center","center_right","bottom_left","bottom_center","bottom_right"],o.AngleUnits=["deg","rad"],o.BoxOrigin=["corner","center"],o.ButtonType=["default","primary","success","warning","danger"],o.CalendarPosition=["auto","above","below"],o.Dimension=["width","height"],o.Dimensions=["width","height","both"],o.Direction=["clock","anticlock"],o.Distribution=["uniform","normal"],o.FontStyle=["normal","italic","bold","bold italic"],o.HatchPatternType=["blank","dot","ring","horizontal_line","vertical_line","cross","horizontal_dash","vertical_dash","spiral","right_diagonal_line","left_diagonal_line","diagonal_cross","right_diagonal_dash","left_diagonal_dash","horizontal_wave","vertical_wave","criss_cross"," ",".","o","-","|","+",’"’,":","@","/","\\","x",",","`","v",">",""],o.HTTPMethod=["POST","GET"],o.HexTileOrientation=["pointytop","flattop"],o.HoverMode=["mouse","hline","vline"],o.LatLon=["lat","lon"],o.LegendClickPolicy=["none","hide","mute"],o.LegendLocation=o.Anchor,o.LineCap=["butt","round","square"],o.LineJoin=["miter","round","bevel"],o.LinePolicy=["prev","next","nearest","interp","none"],o.Location=["above","below","left","right"],o.Logo=["normal","grey"],o.MarkerType=["asterisk","circle","circle_cross","circle_x","cross","dash","diamond","diamond_cross","hex","inverted_triangle","square","square_cross","square_x","triangle","x"],o.MutedPolicy=["show","ignore"],o.Orientation=["vertical","horizontal"],o.OutputBackend=["canvas","svg","webgl"],o.PaddingUnits=["percent","absolute"],o.Place=["above","below","left","right","center"],o.PointPolicy=["snap_to_data","follow_mouse","none"],o.RadiusDimension=["x","y","max","min"],o.RenderLevel=["image","underlay","glyph","annotation","overlay"],o.RenderMode=["canvas","css"],o.ResetPolicy=["standard","event_only"],o.RoundingFunction=["round","nearest","floor","rounddown","ceil","roundup"],o.Side=["above","below","left","right"],o.SizingMode=["stretch_width","stretch_height","stretch_both","scale_width","scale_height","scale_both","fixed"],o.Sort=["ascending","descending"],o.SpatialUnits=["screen","data"],o.StartEnd=["start","end"],o.StepMode=["after","before","center"],o.TapBehavior=["select","inspect"],o.TextAlign=["left","right","center"],o.TextBaseline=["top","middle","bottom","alphabetic","hanging","ideographic"],o.TextureRepetition=["repeat","repeat_x","repeat_y","no_repeat"],o.TickLabelOrientation=["vertical","horizontal","parallel","normal"],o.TooltipAttachment=["horizontal","vertical","left","right","above","below"],o.UpdateMode=["replace","append"],o.VerticalAlign=["top","middle","bottom"]},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(22),o=e(9);function l(e){const r=Number(e).toString(16);return 1==r.length?`0${r}`:r}function a(e){if(0==(e+="").indexOf("#"))return e;if(n.is_svg_color(e))return n.svg_colors[e];if(0==e.indexOf("rgb")){const r=e.replace(/^rgba?\(|\\s+|\)$/g,"").split(",");let t=r.slice(0,3).map(l).join("");return 4==r.length&&(t+=l(Math.floor(255*parseFloat(r[3])))),`#${t.slice(0,8)}`}return e}function c(e){let r;switch(e.substring(0,4)){case"rgba":r={start:"rgba(",len:4,alpha:!0};break;case"rgb(":r={start:"rgb(",len:3,alpha:!1};break;default:return!1}if(new RegExp(".*?(\\.).*(,)").test(e))throw new Error(color expects integers for rgb in rgb/rgba tuple, received ${e});const t=e.replace(r.start,"").replace(")","").split(",").map(parseFloat);if(t.length!=r.len)throw new Error(color expects rgba ${r.len}-tuple, received ${e});if(r.alpha&&!(0<=t[3]&&t[3]<=1))throw new Error("color expects rgba 4-tuple to have alpha value between 0 and 1");if(o.includes(t.slice(0,3).map(e=>0<=e&&e<=255),!1))throw new Error("color expects rgb to have value between 0 and 255");return!0}t.is_color=function(e){return n.is_svg_color(e.toLowerCase())||"#"==e.substring(0,1)||c(e)},t.rgb2hex=function(e,r,t){return`#${l(255&e)}${l(255&r)}${l(255&t)}`},t.color2hex=a,t.color2rgba=function(e,r=1){if(!e)return[0,0,0,0];let t=a(e);t=t.replace(/ |#/g,\"\"),t.length<=4&&(t=t.replace(/(.)/g,\"$1$1\"));const n=t.match(/../g).map(e=>parseInt(e,16)/255);for(;n.length<3;)n.push(0);return n.length<4&&n.push(r),n.slice(0,4)},t.valid_rgb=c},\n", " function _(e,F,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.svg_colors={indianred:\"#CD5C5C\",lightcoral:\"#F08080\",salmon:\"#FA8072\",darksalmon:\"#E9967A\",lightsalmon:\"#FFA07A\",crimson:\"#DC143C\",red:\"#FF0000\",firebrick:\"#B22222\",darkred:\"#8B0000\",pink:\"#FFC0CB\",lightpink:\"#FFB6C1\",hotpink:\"#FF69B4\",deeppink:\"#FF1493\",mediumvioletred:\"#C71585\",palevioletred:\"#DB7093\",coral:\"#FF7F50\",tomato:\"#FF6347\",orangered:\"#FF4500\",darkorange:\"#FF8C00\",orange:\"#FFA500\",gold:\"#FFD700\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",lemonchiffon:\"#FFFACD\",lightgoldenrodyellow:\"#FAFAD2\",papayawhip:\"#FFEFD5\",moccasin:\"#FFE4B5\",peachpuff:\"#FFDAB9\",palegoldenrod:\"#EEE8AA\",khaki:\"#F0E68C\",darkkhaki:\"#BDB76B\",lavender:\"#E6E6FA\",thistle:\"#D8BFD8\",plum:\"#DDA0DD\",violet:\"#EE82EE\",orchid:\"#DA70D6\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",mediumorchid:\"#BA55D3\",mediumpurple:\"#9370DB\",blueviolet:\"#8A2BE2\",darkviolet:\"#9400D3\",darkorchid:\"#9932CC\",darkmagenta:\"#8B008B\",purple:\"#800080\",indigo:\"#4B0082\",slateblue:\"#6A5ACD\",darkslateblue:\"#483D8B\",mediumslateblue:\"#7B68EE\",greenyellow:\"#ADFF2F\",chartreuse:\"#7FFF00\",lawngreen:\"#7CFC00\",lime:\"#00FF00\",limegreen:\"#32CD32\",palegreen:\"#98FB98\",lightgreen:\"#90EE90\",mediumspringgreen:\"#00FA9A\",springgreen:\"#00FF7F\",mediumseagreen:\"#3CB371\",seagreen:\"#2E8B57\",forestgreen:\"#228B22\",green:\"#008000\",darkgreen:\"#006400\",yellowgreen:\"#9ACD32\",olivedrab:\"#6B8E23\",olive:\"#808000\",darkolivegreen:\"#556B2F\",mediumaquamarine:\"#66CDAA\",darkseagreen:\"#8FBC8F\",lightseagreen:\"#20B2AA\",darkcyan:\"#008B8B\",teal:\"#008080\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",lightcyan:\"#E0FFFF\",paleturquoise:\"#AFEEEE\",aquamarine:\"#7FFFD4\",turquoise:\"#40E0D0\",mediumturquoise:\"#48D1CC\",darkturquoise:\"#00CED1\",cadetblue:\"#5F9EA0\",steelblue:\"#4682B4\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",lightblue:\"#ADD8E6\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",deepskyblue:\"#00BFFF\",dodgerblue:\"#1E90FF\",cornflowerblue:\"#6495ED\",royalblue:\"#4169E1\",blue:\"#0000FF\",mediumblue:\"#0000CD\",darkblue:\"#00008B\",navy:\"#000080\",midnightblue:\"#191970\",cornsilk:\"#FFF8DC\",blanchedalmond:\"#FFEBCD\",bisque:\"#FFE4C4\",navajowhite:\"#FFDEAD\",wheat:\"#F5DEB3\",burlywood:\"#DEB887\",tan:\"#D2B48C\",rosybrown:\"#BC8F8F\",sandybrown:\"#F4A460\",goldenrod:\"#DAA520\",darkgoldenrod:\"#B8860B\",peru:\"#CD853F\",chocolate:\"#D2691E\",saddlebrown:\"#8B4513\",sienna:\"#A0522D\",brown:\"#A52A2A\",maroon:\"#800000\",white:\"#FFFFFF\",snow:\"#FFFAFA\",honeydew:\"#F0FFF0\",mintcream:\"#F5FFFA\",azure:\"#F0FFFF\",aliceblue:\"#F0F8FF\",ghostwhite:\"#F8F8FF\",whitesmoke:\"#F5F5F5\",seashell:\"#FFF5EE\",beige:\"#F5F5DC\",oldlace:\"#FDF5E6\",floralwhite:\"#FFFAF0\",ivory:\"#FFFFF0\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lavenderblush:\"#FFF0F5\",mistyrose:\"#FFE4E1\",gainsboro:\"#DCDCDC\",lightgray:\"#D3D3D3\",lightgrey:\"#D3D3D3\",silver:\"#C0C0C0\",darkgray:\"#A9A9A9\",darkgrey:\"#A9A9A9\",gray:\"#808080\",grey:\"#808080\",dimgray:\"#696969\",dimgrey:\"#696969\",lightslategray:\"#778899\",lightslategrey:\"#778899\",slategray:\"#708090\",slategrey:\"#708090\",darkslategray:\"#2F4F4F\",darkslategrey:\"#2F4F4F\",black:\"#000000\"},r.is_svg_color=function(e){return e in r.svg_colors}},\n", " function _(e,t,s){Object.defineProperty(s,\"__esModule\",{value:!0});class n{constructor(){this._dev=!1}set dev(e){this._dev=e}get dev(){return this._dev}}s.Settings=n,n.__name__=\"Settings\",s.settings=new n},\n", " function _(e,t,n){Object.defineProperty(n,\"__esModule\",{value:!0});const c=e(9);function o(e){return Object.keys(e).length}n.keys=Object.keys,n.extend=Object.assign,n.values=void 0!==Object.values?Object.values:e=>{const t=Object.keys(e),n=t.length,c=new Array(n);for(let o=0;o<n;o++)c[o]=e[t[o]];return c},n.clone=function(e){return Object.assign({},e)},n.merge=function(e,t){const n=Object.create(Object.prototype),o=c.concat([Object.keys(e),Object.keys(t)]);for(const r of o){const o=e.hasOwnProperty(r)?e[r]:[],s=t.hasOwnProperty(r)?t[r]:[];n[r]=c.union(o,s)}return n},n.size=o,n.isEmpty=function(e){return 0===o(e)}},\n", " function _(e,n,t){Object.defineProperty(t,\"__esModule\",{value:!0});const i=e(8),r=e(24);t.is_ref=function(e){if(i.isPlainObject(e)){const n=r.keys(e);return 1==n.length&&\"id\"==n[0]}return!1}},\n", " function _(t,e,r){Object.defineProperty(r,\"__esModule\",{value:!0});const n=t(23);function u(){const t=new Array(32);for(let e=0;e<32;e++)t[e]=\"0123456789ABCDEF\".substr(Math.floor(16*Math.random()),1);return t[12]=\"4\",t[16]=\"0123456789ABCDEF\".substr(3&t[16].charCodeAt(0)|8,1),t.join(\"\")}r.startsWith=function(t,e,r=0){return t.substr(r,e.length)==e},r.uuid4=u;let s=1e3;r.uniqueId=function(t){const e=n.settings.dev?`j${s++}`:u();return null!=t?`${t}-${e}`:e},r.escape=function(t){return t.replace(/(?:[&<>\"'`])/g,t=>{switch(t){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return\""\";case\"'\":return\"'\";case\"`\":return\"`\";default:return t}})},r.unescape=function(t){return t.replace(/&(amp|lt|gt|quot|#x27|#x60);/g,(t,e)=>{switch(e){case\"amp\":return\"&\";case\"lt\":return\"<\";case\"gt\":return\">\";case\"quot\":return'\"';case\"#x27\":return\"'\";case\"#x60\":return\"`\";default:return e}})},r.use_strict=function(t){return`'use strict';\\n${t}`}},\n", " function _(t,_,r){Object.defineProperty(r,\"__esModule\",{value:!0});const e=t(1);e.__exportStar(t(28),r),e.__exportStar(t(147),r),e.__exportStar(t(174),r),e.__exportStar(t(178),r),e.__exportStar(t(193),r),e.__exportStar(t(197),r),e.__exportStar(t(203),r),e.__exportStar(t(207),r),e.__exportStar(t(237),r),e.__exportStar(t(240),r),e.__exportStar(t(242),r),e.__exportStar(t(255),r),e.__exportStar(t(122),r),e.__exportStar(t(261),r),e.__exportStar(t(265),r),e.__exportStar(t(288),r),e.__exportStar(t(289),r),e.__exportStar(t(290),r),e.__exportStar(t(291),r),e.__exportStar(t(292),r),e.__exportStar(t(297),r),e.__exportStar(t(299),r),e.__exportStar(t(309),r),e.__exportStar(t(313),r)},\n", " function _(a,e,o){Object.defineProperty(o,\"__esModule\",{value:!0});var r=a(29);o.Annotation=r.Annotation;var n=a(71);o.Arrow=n.Arrow;var t=a(72);o.ArrowHead=t.ArrowHead;var v=a(72);o.OpenHead=v.OpenHead;var l=a(72);o.NormalHead=l.NormalHead;var d=a(72);o.TeeHead=d.TeeHead;var i=a(72);o.VeeHead=i.VeeHead;var A=a(104);o.Band=A.Band;var H=a(105);o.BoxAnnotation=H.BoxAnnotation;var T=a(107);o.ColorBar=T.ColorBar;var p=a(132);o.Label=p.Label;var L=a(134);o.LabelSet=L.LabelSet;var b=a(135);o.Legend=b.Legend;var B=a(136);o.LegendItem=B.LegendItem;var S=a(138);o.PolyAnnotation=S.PolyAnnotation;var P=a(139);o.Slope=P.Slope;var g=a(140);o.Span=g.Span;var m=a(133);o.TextAnnotation=m.TextAnnotation;var w=a(141);o.Title=w.Title;var x=a(142);o.ToolbarPanel=x.ToolbarPanel;var s=a(143);o.Tooltip=s.Tooltip;var u=a(146);o.Whisker=u.Whisker},\n", " function _(t,e,n){Object.defineProperty(n,\"__esModule\",{value:!0});const i=t(1).__importStar(t(30)),s=t(24),o=t(63);class _ extends o.RendererView{get panel(){return this.layout}get_size(){if(this.model.visible){const{width:t,height:e}=this._get_size();return{width:Math.round(t),height:Math.round(e)}}return{width:0,height:0}}connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.visible,()=>this.plot_view.request_layout())}_get_size(){throw new Error(\"not implemented\")}get ctx(){return this.plot_view.canvas_view.ctx}set_data(t){const e=this.model.materialize_dataspecs(t);if(s.extend(this,e),this.plot_model.use_map){const t=this;null!=t._x&&([t._x,t._y]=i.project_xy(t._x,t._y)),null!=t._xs&&([t._xs,t._ys]=i.project_xsys(t._xs,t._ys))}}get needs_clip(){return null==this.layout}serializable_state(){const t=super.serializable_state();return null==this.layout?t:Object.assign(Object.assign({},t),{bbox:this.layout.bbox.box})}}n.AnnotationView=_,_.__name__=\"AnnotationView\";class a extends o.Renderer{constructor(t){super(t)}static init_Annotation(){this.override({level:\"annotation\"})}}n.Annotation=a,a.__name__=\"Annotation\",a.init_Annotation()},\n", " function _(t,n,e){Object.defineProperty(e,\"__esModule\",{value:!0});const r=t(1),o=r.__importDefault(t(31)),a=r.__importDefault(t(32)),c=new a.default(\"GOOGLE\"),l=new a.default(\"WGS84\");e.wgs84_mercator=o.default(l,c);const u={lon:[-20026376.39,20026376.39],lat:[-20048966.1,20048966.1]},f={lon:[-180,180],lat:[-85.06,85.06]};function s(t,n){const r=Math.min(t.length,n.length),o=new Array(r),a=new Array(r);for(let c=0;c<r;c++){const[r,l]=e.wgs84_mercator.forward([t[c],n[c]]);o[c]=r,a[c]=l}return[o,a]}e.clip_mercator=function(t,n,e){const[r,o]=u[e];return[Math.max(t,r),Math.min(n,o)]},e.in_bounds=function(t,n){const[e,r]=f[n];return e<t&&t<r},e.project_xy=s,e.project_xsys=function(t,n){const e=Math.min(t.length,n.length),r=new Array(e),o=new Array(e);for(let a=0;a<e;a++){const[e,c]=s(t[a],n[a]);r[a]=e,o[a]=c}return[r,o]}},\n", " function _(e,n,t){Object.defineProperty(t,\"__esModule\",{value:!0});const r=e(1),o=r.__importDefault(e(32)),a=r.__importDefault(e(57));var i=o.default(\"WGS84\");function c(e,n,t){var r,o,i;return Array.isArray(t)?(r=a.default(e,n,t)||{x:NaN,y:NaN},t.length>2?void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name?\"number\"==typeof r.z?[r.x,r.y,r.z].concat(t.splice(3)):[r.x,r.y,t[2]].concat(t.splice(3)):[r.x,r.y].concat(t.splice(2)):[r.x,r.y]):(o=a.default(e,n,t),2===(i=Object.keys(t)).length||i.forEach((function(r){if(void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name){if(\"x\"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=t[r]})),o)}function u(e){return e instanceof o.default?e:e.oProj?e.oProj:o.default(e)}t.default=function(e,n,t){e=u(e);var r,o=!1;return void 0===n?(n=e,e=i,o=!0):(void 0!==n.x||Array.isArray(n))&&(t=n,n=e,e=i,o=!0),n=u(n),t?c(e,n,t):(r={forward:function(t){return c(e,n,t)},inverse:function(t){return c(n,e,t)}},o&&(r.oProj=n),r)}},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1),i=s.__importDefault(e(33)),u=s.__importDefault(e(44)),l=s.__importDefault(e(45)),o=e(53),r=s.__importDefault(e(55)),f=s.__importDefault(e(56)),d=s.__importDefault(e(40));function p(e,t){if(!(this instanceof p))return new p(e);t=t||function(e){if(e)throw e};var a=i.default(e);if("object"==typeof a){var s=p.projections.get(a.projName);if(s){if(a.datumCode&&"none"!==a.datumCode){var l=d.default(r.default,a.datumCode);l&&(a.datum_params=l.towgs84?l.towgs84.split(","):null,a.ellps=l.ellipse,a.datumName=l.datumName?l.datumName:a.datumCode)}a.k0=a.k0||1,a.axis=a.axis||"enu",a.ellps=a.ellps||"wgs84";var m=o.sphere(a.a,a.b,a.rf,a.ellps,a.sphere),n=o.eccentricity(m.a,m.b,m.rf,a.R_A),h=a.datum||f.default(a.datumCode,a.datum_params,m.a,m.b,n.es,n.ep2);u.default(this,a),u.default(this,s),this.a=m.a,this.b=m.b,this.rf=m.rf,this.sphere=m.sphere,this.es=n.es,this.e=n.e,this.ep2=n.ep2,this.datum=h,this.init(),t(null,this)}else t(e)}else t(e)}p.projections=l.default,p.projections.start(),a.default=p},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const u=t(1),n=u.__importDefault(t(34)),f=u.__importDefault(t(41)),i=u.__importDefault(t(36)),a=u.__importDefault(t(40));var o=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var l=["3857","900913","3785","102113"];r.default=function(t){if(!function(t){return"string"==typeof t}(t))return t;if(function(t){return t in n.default}(t))return n.default[t];if(function(t){return o.some((function(e){return t.indexOf(e)>-1}))}(t)){var e=f.default(t);if(function(t){var e=a.default(t,"authority");if(e){var r=a.default(e,"epsg");return r&&l.indexOf(r)>-1}}(e))return n.default["EPSG:3857"];var r=function(t){var e=a.default(t,"extension");if(e)return a.default(e,"proj4")}(e);return r?i.default(r):e}return function(t){return"+"===t[0]}(t)?i.default(t):void 0}},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),n=i.__importDefault(t(35)),f=i.__importDefault(t(36)),a=i.__importDefault(t(41));function l(t){var e=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?l[t]=f.default(arguments[1]):l[t]=a.default(arguments[1]):l[t]=r}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?l.apply(e,t):l(t)}));if("string"==typeof t){if(t in l)return l[t]}else"EPSG"in t?l["EPSG:"+t.EPSG]=t:"ESRI"in t?l["ESRI:"+t.ESRI]=t:"IAU2000"in t?l["IAU2000:"+t.IAU2000]=t:console.log(t);return}}n.default(l),r.default=l},n”, ” function _(e,t,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}},n”, ” function _(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});const e=t(1),a=t(37),u=e.__importDefault(t(38)),r=e.__importDefault(t(39)),i=e.__importDefault(t(40));o.default=function(t){var n,o,e,f={},l=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,n){var o=n.split("=");return o.push(!0),t[o[0].toLowerCase()]=o[1],t}),{}),c={proj:"projName",datum:"datumCode",rf:function(t){f.rf=parseFloat(t)},lat_0:function(t){f.lat0=t*a.D2R},lat_1:function(t){f.lat1=t*a.D2R},lat_2:function(t){f.lat2=t*a.D2R},lat_ts:function(t){f.lat_ts=t*a.D2R},lon_0:function(t){f.long0=t*a.D2R},lon_1:function(t){f.long1=t*a.D2R},lon_2:function(t){f.long2=t*a.D2R},alpha:function(t){f.alpha=parseFloat(t)*a.D2R},lonc:function(t){f.longc=t*a.D2R},x_0:function(t){f.x0=parseFloat(t)},y_0:function(t){f.y0=parseFloat(t)},k_0:function(t){f.k0=parseFloat(t)},k:function(t){f.k0=parseFloat(t)},a:function(t){f.a=parseFloat(t)},b:function(t){f.b=parseFloat(t)},r_a:function(){f.R_A=!0},zone:function(t){f.zone=parseInt(t,10)},south:function(){f.utmSouth=!0},towgs84:function(t){f.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){f.to_meter=parseFloat(t)},units:function(t){f.units=t;var n=i.default(r.default,t);n&&(f.to_meter=n.to_meter)},from_greenwich:function(t){f.from_greenwich=t*a.D2R},pm:function(t){var n=i.default(u.default,t);f.from_greenwich=(n||parseFloat(t))*a.D2R},nadgrids:function(t){"@null"===t?f.datumCode="none":f.nadgrids=t},axis:function(t){3===t.length&&-1!=="ewnsud".indexOf(t.substr(0,1))&&-1!=="ewnsud".indexOf(t.substr(1,1))&&-1!=="ewnsud".indexOf(t.substr(2,1))&&(f.axis=t)}};for(n in l)o=l[n],n in c?"function"==typeof(e=c[n])?e(o):f[e]=o:f[n]=o;return"string"==typeof f.datumCode&&"WGS84"!==f.datumCode&&(f.datumCode=f.datumCode.toLowerCase()),f}},n”, ” function _(P,_,e){Object.defineProperty(e,"__esModule",{value:!0}),e.PJD_3PARAM=1,e.PJD_7PARAM=2,e.PJD_WGS84=4,e.PJD_NODATUM=5,e.SEC_TO_RAD=484813681109536e-20,e.HALF_PI=Math.PI/2,e.SIXTH=.16666666666666666,e.RA4=.04722222222222222,e.RA6=.022156084656084655,e.EPSLN=1e-10,e.D2R=.017453292519943295,e.R2D=57.29577951308232,e.FORTPI=Math.PI/4,e.TWO_PI=2*Math.PI,e.SPI=3.14159265359},n”, ” function _(e,o,r){Object.defineProperty(r,"__esModule",{value:!0});var a={};r.default=a,a.greenwich=0,a.lisbon=-9.131906111111,a.paris=2.337229166667,a.bogota=-74.080916666667,a.madrid=-3.687938888889,a.rome=12.452333333333,a.bern=7.439583333333,a.jakarta=106.807719444444,a.ferro=-17.666666666667,a.brussels=4.367975,a.stockholm=18.058277777778,a.athens=23.7163375,a.oslo=10.722916666667},n”, ” function _(e,t,f){Object.defineProperty(f,"__esModule",{value:!0}),f.default={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});var o=/[\s_\-\/\(\)]/g;t.default=function(e,r){if(e[r])return e[r];for(var t,a=Object.keys(e),n=r.toLowerCase().replace(o,""),f=-1;++f<a.length;)if((t=a[f]).toLowerCase().replace(o,"")===n)return e[t]}},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const o=e(1);const d=o.__importDefault(e(42)),r=e(43);function n(e){return.017453292519943295*e}a.default=function(e){var t=d.default(e),a=t.shift(),o=t.shift();t.unshift(["name",o]),t.unshift(["type",a]);var l={};return r.sExpr(t,l),function(e){if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",a=0,o=e.AXIS.length;a<o;++a){var d=e.AXIS[a][0].toLowerCase();-1!==d.indexOf("north")?t+="n":-1!==d.indexOf("south")?t+="s":-1!==d.indexOf("east")?t+="e":-1!==d.indexOf("west")&&(t+="w")}2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var r=e.GEOGCS;function l(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(r=e),r&&(r.DATUM?e.datumCode=r.DATUM.name.toLowerCase():e.datumCode=r.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(e.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=r.DATUM.SPHEROID.a,e.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(e.datum_params=r.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",n],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",n],["x0","false_easting",l],["y0","false_northing",l],["long0","central_meridian",n],["lat0","latitude_of_origin",n],["lat0","standard_parallel_1",n],["lat1","standard_parallel_1",n],["lat2","standard_parallel_2",n],["azimuth","Azimuth"],["alpha","azimuth",n],["srsCode","name"]].forEach((function(t){return a=e,d=(o=t)[0],r=o[1],void(!(d in a)&&r in a&&(a[d]=a[r],3===o.length&&(a[d]=o[2](a[d]))));var a,o,d,r})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=n(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(l),l}},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return new a(t).output()};var i=/\s/,s=/[A-Za-z]/,h=/[A-Za-z84]/,o=/[,\]]/,n=/[\d\.E\-\+]/;function a(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}a.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;i.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},a.prototype.afterquote=function(t){if(’"’===t)return this.word+=’"’,void(this.state=4);if(o.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn’t handled \""+t+’" in afterquote yet, index ‘+this.place)},a.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level–,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},a.prototype.number=function(t){if(!n.test(t)){if(o.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn’t handled \""+t+’" in number yet, index ‘+this.place)}this.word+=t},a.prototype.quoted=function(t){’"’!==t?this.word+=t:this.state=5},a.prototype.keyword=function(t){if(h.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=1)}if(!o.test(t))throw new Error("havn’t handled \""+t+’" in keyword yet, index ‘+this.place);this.afterItem(t)}},a.prototype.neutral=function(t){if(s.test(t))return this.word=t,void(this.state=2);if(’"’===t)return this.word="",void(this.state=4);if(n.test(t))return this.word=t,void(this.state=3);if(!o.test(t))throw new Error("havn’t handled \""+t+’" in neutral yet, index ‘+this.place);this.afterItem(t)},a.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error(‘unable to parse string "’+this.text+’". State is ‘+this.state)}},n”, ” function _(e,r,a){function s(e,r,a){Array.isArray(r)&&(a.unshift(r),r=null);var s=r?{}:e,n=a.reduce((function(e,r){return c(r,e),e}),s);r&&(e[r]=n)}function c(e,r){if(Array.isArray(e)){var a=e.shift();if("PARAMETER"===a&&(a=e.shift()),1===e.length)return Array.isArray(e[0])?(r[a]={},void c(e[0],r[a])):void(r[a]=e[0]);if(e.length)if("TOWGS84"!==a){if("AXIS"===a)return a in r||(r[a]=[]),void r[a].push(e);var n;switch(Array.isArray(a)||(r[a]={}),a){case"UNIT":case"PRIMEM":case"VERT_DATUM":return r[a]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&c(e[2],r[a]));case"SPHEROID":case"ELLIPSOID":return r[a]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&c(e[3],r[a]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return e[0]=["name",e[0]],void s(r,a,e);default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return c(e,r[a]);return s(r,a,e)}}else r[a]=e;else r[a]=!0}else r[e]=!0}Object.defineProperty(a,"__esModule",{value:!0}),a.sExpr=c},n”, ” function _(e,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,n){var r,t;if(e=e||{},!n)return e;for(t in n)void 0!==(r=n[t])&&(e[t]=r);return e}},n”, ” function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const a=t(1),n=a.__importDefault(t(46)),r=a.__importDefault(t(52));var u=[n.default,r.default],f={},i=[];function d(t,e){var o=i.length;return t.names?(i[o]=t,t.names.forEach((function(t){f[t.toLowerCase()]=o})),this):(console.log(e),!0)}function c(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==f[e]&&i[f[e]]?i[f[e]]:void 0}function l(){u.forEach(d)}o.add=d,o.get=c,o.start=l,o.default={start:l,add:d,get:c}},n”, ” function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const h=t(1),a=h.__importDefault(t(47)),e=h.__importDefault(t(48)),r=h.__importDefault(t(50)),n=h.__importDefault(t(51)),l=t(37);function u(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=a.default(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function o(t){var i,s,h=t.x,a=t.y;if(a*l.R2D>90&&a*l.R2D<-90&&h*l.R2D>180&&h*l.R2D<-180)return null;if(Math.abs(Math.abs(a)-l.HALF_PI)<=l.EPSLN)return null;if(this.sphere)i=this.x0+this.a*this.k0*e.default(h-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(l.FORTPI+.5*a));else{var n=Math.sin(a),u=r.default(this.e,a,n);i=this.x0+this.a*this.k0*e.default(h-this.long0),s=this.y0-this.a*this.k0*Math.log(u)}return t.x=i,t.y=s,t}function f(t){var i,s,h=t.x-this.x0,a=t.y-this.y0;if(this.sphere)s=l.HALF_PI-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var r=Math.exp(-a/(this.a*this.k0));if(-9999===(s=n.default(this.e,r)))return null}return i=e.default(this.long0+h/(this.a*this.k0)),t.x=i,t.y=s,t}s.init=u,s.forward=o,s.inverse=f,s.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],s.default={init:u,forward:o,inverse:f,names:s.names}},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)}},n”, ” function _(e,t,u){Object.defineProperty(u,"__esModule",{value:!0});const n=e(1),a=e(37),f=n.__importDefault(e(49));u.default=function(e){return Math.abs(e)<=a.SPI?e:e-f.default(e)*a.TWO_PI}},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e<0?-1:1}},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const a=t(37);n.default=function(t,e,n){var o=t*n,u=.5*t;return o=Math.pow((1-o)/(1+o),u),Math.tan(.5*(a.HALF_PI-e))/o}},n”, ” function _(t,a,e){Object.defineProperty(e,"__esModule",{value:!0});const n=t(37);e.default=function(t,a){for(var e,r,o=.5*t,u=n.HALF_PI-2*Math.atan(a),f=0;f<=15;f++)if(e=t*Math.sin(u),u+=r=n.HALF_PI-2*Math.atan(a*Math.pow((1-e)/(1+e),o))-u,Math.abs(r)<=1e-10)return u;return-9999}},n”, ” function _(e,n,i){function t(){}function r(e){return e}Object.defineProperty(i,"__esModule",{value:!0}),i.init=t,i.forward=r,i.inverse=r,i.names=["longlat","identity"],i.default={init:t,forward:r,inverse:r,names:i.names}},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=e(1),n=e(37),f=a.__importStar(e(54)),u=a.__importDefault(e(40));r.eccentricity=function(e,t,r,a){var f=e*e,u=t*t,i=(f-u)/f,c=0;return a?(f=(e*=1-i*(n.SIXTH+i*(n.RA4+i*n.RA6)))*e,i=0):c=Math.sqrt(i),{es:i,e:c,ep2:(f-u)/u}},r.sphere=function(e,t,r,a,i){if(!e){var c=u.default(f.default,a);c||(c=f.WGS84),e=c.a,t=c.b,r=c.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<n.EPSLN)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}},n”, ” function _(e,a,l){Object.defineProperty(l,"__esModule",{value:!0});var s={};l.default=s,s.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},s.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},s.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},s.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},s.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},s.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},s.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},s.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},s.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},s.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},s.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},s.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},s.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},s.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},s.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},s.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},s.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},s.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},s.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},s.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},s.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},s.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},s.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},s.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},s.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},s.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},s.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},s.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},s.hough={a:6378270,rf:297,ellipseName:"Hough"},s.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},s.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},s.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},s.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},s.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},s.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},s.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},s.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},s.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},s.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},s.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},s.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},l.WGS84=s.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"},s.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},n”, ” function _(e,a,s){Object.defineProperty(s,"__esModule",{value:!0});var t={};s.default=t,t.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},t.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},t.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},t.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},t.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},t.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},t.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},t.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},t.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},t.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},t.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},t.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},t.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},t.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},t.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},t.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},t.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},n”, ” function _(a,m,_){Object.defineProperty(_,"__esModule",{value:!0});const t=a(37);_.default=function(a,m,_,u,d,p){var r={};return r.datum_type=void 0===a||"none"===a?t.PJD_NODATUM:t.PJD_WGS84,m&&(r.datum_params=m.map(parseFloat),0===r.datum_params[0]&&0===r.datum_params[1]&&0===r.datum_params[2]||(r.datum_type=t.PJD_3PARAM),r.datum_params.length>3&&(0===r.datum_params[3]&&0===r.datum_params[4]&&0===r.datum_params[5]&&0===r.datum_params[6]||(r.datum_type=t.PJD_7PARAM,r.datum_params[3]*=t.SEC_TO_RAD,r.datum_params[4]*=t.SEC_TO_RAD,r.datum_params[5]*=t.SEC_TO_RAD,r.datum_params[6]=r.datum_params[6]/1e6+1))),r.a=_,r.b=u,r.es=d,r.ep2=p,r}},n”, ” function _(t,e,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t(1),u=t(37),m=r.__importDefault(t(58)),_=r.__importDefault(t(60)),o=r.__importDefault(t(32)),d=r.__importDefault(t(61)),f=r.__importDefault(t(62));a.default=function t(e,a,r){var n;return Array.isArray(r)&&(r=d.default(r)),f.default(r),e.datum&&a.datum&&function(t,e){return(t.datum.datum_type===u.PJD_3PARAM||t.datum.datum_type===u.PJD_7PARAM)&&"WGS84"!==e.datumCode||(e.datum.datum_type===u.PJD_3PARAM||e.datum.datum_type===u.PJD_7PARAM)&&"WGS84"!==t.datumCode}(e,a)&&(r=t(e,n=new o.default("WGS84"),r),e=n),"enu"!==e.axis&&(r=_.default(e,!1,r)),"longlat"===e.projName?r={x:r.x*u.D2R,y:r.y*u.D2R,z:r.z||0}:(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),r=e.inverse(r)),e.from_greenwich&&(r.x+=e.from_greenwich),r=m.default(e.datum,a.datum,r),a.from_greenwich&&(r={x:r.x-a.from_greenwich,y:r.y,z:r.z||0}),"longlat"===a.projName?r={x:r.x*u.R2D,y:r.y*u.R2D,z:r.z||0}:(r=a.forward(r),a.to_meter&&(r={x:r.x/a.to_meter,y:r.y/a.to_meter,z:r.z||0})),"enu"!==a.axis?_.default(a,!0,r):r}},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const u=e(37),o=e(59);function _(e){return e===u.PJD_3PARAM||e===u.PJD_7PARAM}a.default=function(e,t,a){return o.compareDatums(e,t)||e.datum_type===u.PJD_NODATUM||t.datum_type===u.PJD_NODATUM?a:e.es!==t.es||e.a!==t.a||_(e.datum_type)||_(t.datum_type)?(a=o.geodeticToGeocentric(a,e.es,e.a),_(e.datum_type)&&(a=o.geocentricToWgs84(a,e.datum_type,e.datum_params)),_(t.datum_type)&&(a=o.geocentricFromWgs84(a,t.datum_type,t.datum_params)),o.geocentricToGeodetic(a,t.es,t.a,t.b)):a}},n”, ” function _(a,t,r){Object.defineProperty(r,"__esModule",{value:!0});const e=a(37);r.compareDatums=function(a,t){return a.datum_type===t.datum_type&&(!(a.a!==t.a||Math.abs(a.es-t.es)>5e-11)&&(a.datum_type===e.PJD_3PARAM?a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]:a.datum_type!==e.PJD_7PARAM||a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]&&a.datum_params[3]===t.datum_params[3]&&a.datum_params[4]===t.datum_params[4]&&a.datum_params[5]===t.datum_params[5]&&a.datum_params[6]===t.datum_params[6]))},r.geodeticToGeocentric=function(a,t,r){var m,u,s,_,n=a.x,d=a.y,i=a.z?a.z:0;if(d<-e.HALF_PI&&d>-1.001*e.HALF_PI)d=-e.HALF_PI;else if(d>e.HALF_PI&&d<1.001*e.HALF_PI)d=e.HALF_PI;else{if(d<-e.HALF_PI)return{x:-1/0,y:-1/0,z:a.z};if(d>e.HALF_PI)return{x:1/0,y:1/0,z:a.z}}return n>Math.PI&&(n-=2*Math.PI),u=Math.sin(d),_=Math.cos(d),s=u*u,{x:((m=r/Math.sqrt(1-t*s))+i)*_*Math.cos(n),y:(m+i)*_*Math.sin(n),z:(m*(1-t)+i)*u}},r.geocentricToGeodetic=function(a,t,r,m){var u,s,_,n,d,i,p,P,o,y,M,z,c,A,x,f=a.x,h=a.y,I=a.z?a.z:0;if(u=Math.sqrt(f*f+h*h),s=Math.sqrt(f*f+h*h+I*I),u/r<1e-12){if(A=0,s/r<1e-12)return e.HALF_PI,x=-m,{x:a.x,y:a.y,z:a.z}}else A=Math.atan2(h,f);_=I/s,P=(n=u/s)*(1-t)*(d=1/Math.sqrt(1-t*(2-t)*n*n)),o=_*d,c=0;do{c++,i=t*(p=r/Math.sqrt(1-t*o*o))/(p+(x=u*P+I*o-p*(1-t*o*o))),z=(M=_*(d=1/Math.sqrt(1-i*(2-i)*n*n)))*P-(y=n*(1-i)*d)*o,P=y,o=M}while(z*z>1e-24&&c<30);return{x:A,y:Math.atan(M/Math.abs(y)),z:x}},r.geocentricToWgs84=function(a,t,r){if(t===e.PJD_3PARAM)return{x:a.x+r[0],y:a.y+r[1],z:a.z+r[2]};if(t===e.PJD_7PARAM){var m=r[0],u=r[1],s=r[2],_=r[3],n=r[4],d=r[5],i=r[6];return{x:i*(a.x-d*a.y+n*a.z)+m,y:i*(d*a.x+a.y-_*a.z)+u,z:i*(-n*a.x+_*a.y+a.z)+s}}},r.geocentricFromWgs84=function(a,t,r){if(t===e.PJD_3PARAM)return{x:a.x-r[0],y:a.y-r[1],z:a.z-r[2]};if(t===e.PJD_7PARAM){var m=r[0],u=r[1],s=r[2],_=r[3],n=r[4],d=r[5],i=r[6],p=(a.x-m)/i,P=(a.y-u)/i,o=(a.z-s)/i;return{x:p+d*P-n*o,y:-d*p+P+_*o,z:n*p-_*P+o}}}},n”, ” function _(e,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,a,r){var c,s,u,i=r.x,n=r.y,t=r.z||0,d={};for(u=0;u<3;u++)if(!a||2!==u||void 0!==r.z)switch(0===u?(c=i,s="x"):1===u?(c=n,s="y"):(c=t,s="z"),e.axis[u]){case"e":d[s]=c;break;case"w":d[s]=-c;break;case"n":d[s]=c;break;case"s":d[s]=-c;break;case"u":void 0!==r[s]&&(d.z=c);break;case"d":void 0!==r[s]&&(d.z=-c);break;default:return null}return d}},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var n={x:e[0],y:e[1]};return e.length>2&&(n.z=e[2]),e.length>3&&(n.m=e[3]),n}},n”, ” function _(e,i,n){function t(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){t(e.x),t(e.y)}},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),n=e(64),s=r.__importStar(e(68)),_=r.__importStar(e(19)),l=e(69);class o extends n.DOMView{initialize(){super.initialize(),this.visuals=new s.Visuals(this.model),this._has_finished=!0}get plot_view(){return this.parent}get plot_model(){return this.parent.model}request_render(){this.plot_view.request_render()}map_to_screen(e,t){return this.plot_view.map_to_screen(e,t,this.model.x_range_name,this.model.y_range_name)}get needs_clip(){return!1}notify_finished(){this.plot_view.notify_finished()}get has_webgl(){return!1}}i.RendererView=o,o.__name__="RendererView";class d extends l.Model{constructor(e){super(e)}static init_Renderer(){this.define({level:[_.RenderLevel],visible:[_.Boolean,!0]})}}i.Renderer=d,d.__name__="Renderer",d.init_Renderer()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(65),n=i.__importStar(e(66)),_=e(67);class a extends r.View{initialize(){super.initialize(),this._has_finished=!1,this.el=this._createElement()}remove(){n.removeElement(this.el),super.remove()}css_classes(){return[]}cursor(e,t){return null}render(){}renderTo(e){e.appendChild(this.el),this.render()}has_finished(){return this._has_finished}get _root_element(){return n.parent(this.el,`.${_.bk_root}`)||document.body}get is_idle(){return this.has_finished()}_createElement(){return n.createElement(this.tagName,{class:this.css_classes()})}}s.DOMView=a,a.__name__="DOMView",a.prototype.tagName="div"},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(14),n=t(8),o=t(26);class s{constructor(t){if(this.removed=new r.Signal0(this,"removed"),this._ready=Promise.resolve(void 0),null==t.model)throw new Error("model of a view wasn’t configured");this.model=t.model,this._parent=t.parent,this.id=t.id||o.uniqueId()}get ready(){return this._ready}connect(t,e){return t.connect((t,i)=>{const r=Promise.resolve(e.call(this,t,i));this._ready=this._ready.then(()=>r)},this)}disconnect(t,e){return t.disconnect(e,this)}initialize(){}async lazy_initialize(){}remove(){this._parent=void 0,this.disconnect_signals(),this.removed.emit()}toString(){return`${this.model.type}View(${this.id})`}serializable_state(){return{type:this.model.type}}get parent(){if(void 0!==this._parent)return this._parent;throw new Error("parent of a view wasn’t configured")}get is_root(){return null===this.parent}get root(){return this.is_root?this:this.parent.root}assert_root(){if(!this.is_root)throw new Error(${this.toString()} is not a root layout)}connect_signals(){}disconnect_signals(){r.Signal.disconnectReceiver(this)}on_change(t,e){for(const i of n.isArray(t)?t:[t])this.connect(i.change,e)}}i.View=s,s.__name__="View"},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(8),s=t=>(e={},…n)=>{const s=document.createElement(t);s.classList.add("bk");for(const t in e){let n=e[t];if(null!=n&&(!i.isBoolean(n)||n))if("class"===t&&(i.isString(n)&&(n=n.split(/\s+/)),i.isArray(n)))for(const t of n)null!=t&&s.classList.add(t);else if("style"===t&&i.isPlainObject(n))for(const t in n)s.style[t]=n[t];else if("data"===t&&i.isPlainObject(n))for(const t in n)s.dataset[t]=n[t];else s.setAttribute(t,n)}function o(t){if(t instanceof HTMLElement)s.appendChild(t);else if(i.isString(t))s.appendChild(document.createTextNode(t));else if(null!=t&&!1!==t)throw new Error(expected an HTMLElement, string, false or null, got ${JSON.stringify(t)})}for(const t of n)if(i.isArray(t))for(const e of t)o(e);else o(t);return s};function o(t){const e=t.parentNode;null!=e&&e.removeChild(t)}function l(t,…e){const n=t.firstChild;for(const i of e)t.insertBefore(i,n)}function r(t,e){const n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector).call(t,e)}function c(t){return parseFloat(t)||0}function a(t){const e=getComputedStyle(t);return{border:{top:c(e.borderTopWidth),bottom:c(e.borderBottomWidth),left:c(e.borderLeftWidth),right:c(e.borderRightWidth)},margin:{top:c(e.marginTop),bottom:c(e.marginBottom),left:c(e.marginLeft),right:c(e.marginRight)},padding:{top:c(e.paddingTop),bottom:c(e.paddingBottom),left:c(e.paddingLeft),right:c(e.paddingRight)}}}function h(t){const e=t.getBoundingClientRect();return{width:Math.ceil(e.width),height:Math.ceil(e.height)}}n.createElement=function(t,e,…n){return s(t)(e,…n)},n.div=s("div"),n.span=s("span"),n.canvas=s("canvas"),n.link=s("link"),n.style=s("style"),n.a=s("a"),n.p=s("p"),n.i=s("i"),n.pre=s("pre"),n.button=s("button"),n.label=s("label"),n.input=s("input"),n.select=s("select"),n.option=s("option"),n.optgroup=s("optgroup"),n.textarea=s("textarea"),n.nbsp=function(){return document.createTextNode(" ")},n.append=function(t,…e){for(const n of e)t.appendChild(n)},n.remove=o,n.removeElement=o,n.replaceWith=function(t,e){const n=t.parentNode;null!=n&&n.replaceChild(e,t)},n.prepend=l,n.empty=function(t){let e;for(;e=t.firstChild;)t.removeChild(e)},n.display=function(t){t.style.display=""},n.undisplay=function(t){t.style.display="none"},n.show=function(t){t.style.visibility=""},n.hide=function(t){t.style.visibility="hidden"},n.offset=function(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset-document.documentElement.clientTop,left:e.left+window.pageXOffset-document.documentElement.clientLeft}},n.matches=r,n.parent=function(t,e){let n=t;for(;n=n.parentElement;)if(r(n,e))return n;return null},n.extents=a,n.size=h,n.scroll_size=function(t){return{width:Math.ceil(t.scrollWidth),height:Math.ceil(t.scrollHeight)}},n.outer_size=function(t){const{margin:{left:e,right:n,top:i,bottom:s}}=a(t),{width:o,height:l}=h(t);return{width:Math.ceil(o+e+n),height:Math.ceil(l+i+s)}},n.content_size=function(t){const{left:e,top:n}=t.getBoundingClientRect(),{padding:i}=a(t);let s=0,o=0;for(const l of t.children){const t=l.getBoundingClientRect();s=Math.max(s,Math.ceil(t.left-e-i.left+t.width)),o=Math.max(o,Math.ceil(t.top-n-i.top+t.height))}return{width:s,height:o}},n.position=function(t,e,n){const{style:i}=t;if(i.left=`${e.x}px`,i.top=`${e.y}px`,i.width=`${e.width}px`,i.height=`${e.height}px`,null==n)i.margin="";else{const{top:t,right:e,bottom:s,left:o}=n;i.margin=`${t}px ${e}px ${s}px ${o}px`}},n.children=function(t){return Array.from(t.children)};class d{constructor(t){this.el=t,this.classList=t.classList}get values(){const t=[];for(let e=0;e<this.classList.length;e++){const n=this.classList.item(e);null!=n&&t.push(n)}return t}has(t){return this.classList.contains(t)}add(…t){for(const e of t)this.classList.add(e);return this}remove(…t){for(const e of t)this.classList.remove(e);return this}clear(){for(const t of this.values)"bk"!=t&&this.classList.remove(t);return this}toggle(t,e){return(null!=e?e:!this.has(t))?this.add(t):this.remove(t),this}}var p;function u(t,e,n){const{width:i,height:s,position:o,display:l}=t.style;t.style.position="absolute",t.style.display="",t.style.width=null!=e.width&&e.width!=1/0?`${e.width}px`:"auto",t.style.height=null!=e.height&&e.height!=1/0?`${e.height}px`:"auto";try{return n()}finally{t.style.position=o,t.style.display=l,t.style.width=i,t.style.height=s}}n.ClassList=d,d.__name__="ClassList",n.classes=function(t){return new d(t)},(p=n.Keys||(n.Keys={}))[p.Backspace=8]="Backspace",p[p.Tab=9]="Tab",p[p.Enter=13]="Enter",p[p.Esc=27]="Esc",p[p.PageUp=33]="PageUp",p[p.PageDown=34]="PageDown",p[p.Left=37]="Left",p[p.Up=38]="Up",p[p.Right=39]="Right",p[p.Down=40]="Down",p[p.Delete=46]="Delete",n.undisplayed=function(t,e){const{display:n}=t.style;t.style.display="none";try{return e()}finally{t.style.display=n}},n.unsized=function(t,e){return u(t,{},e)},n.sized=u;class f{constructor(){this.style=n.style({type:"text/css"}),l(document.head,this.style)}append(t){this.style.appendChild(document.createTextNode(t))}}n.StyleSheet=f,f.__name__="StyleSheet",n.styles=new f},n”, ” function _(n,o,e){Object.defineProperty(e,"__esModule",{value:!0}),n(1).__importStar(n(66)).styles.append(".bk-root {\n position: relative;\n width: auto;\n height: auto;\n z-index: 0;\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n}\n.bk-root .bk,\n.bk-root .bk:before,\n.bk-root .bk:after {\n box-sizing: inherit;\n margin: 0;\n border: 0;\n padding: 0;\n background-image: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.42857143;\n}\n.bk-root pre.bk {\n font-family: Courier, monospace;\n}\n"),e.bk_root="bk-root"},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1).__importStar(e(18)),l=e(21);function c(e,t,a){e.moveTo(0,a+.5),e.lineTo(t,a+.5),e.stroke()}function i(e,t,a){e.moveTo(a+.5,0),e.lineTo(a+.5,t),e.stroke()}function h(e,t){e.moveTo(0,t),e.lineTo(t,0),e.stroke(),e.moveTo(0,0),e.lineTo(t,t),e.stroke()}function o(e,t,a,s){const l=a,o=l/2,n=o/2,r=function(e){const t=document.createElement("canvas");return t.width=e,t.height=e,t}(a),_=r.getContext("2d");switch(_.strokeStyle=t,_.lineCap="square",_.fillStyle=t,_.lineWidth=s,e){case" ":case"blank":break;case".":case"dot":_.arc(o,o,o/2,0,2*Math.PI,!0),_.fill();break;case"o":case"ring":_.arc(o,o,o/2,0,2*Math.PI,!0),_.stroke();break;case"-":case"horizontal_line":c(_,l,o);break;case"|\":case\"vertical_line\":i(_,l,o);break;case\"+\":case\"cross\":c(_,l,o),i(_,l,o);break;case'\"':case\"horizontal_dash\":c(_,o,o);break;case\":\":case\"vertical_dash\":i(_,o,o);break;case\"@\":case\"spiral\":const e=l/30;_.moveTo(o,o);for(let t=0;t<360;t++){const a=.1*t,s=o+e*a*Math.cos(a),l=o+e*a*Math.sin(a);_.lineTo(s,l)}_.stroke();break;case\"/\":case\"right_diagonal_line\":_.moveTo(.5-n,l),_.lineTo(n+.5,0),_.stroke(),_.moveTo(n+.5,l),_.lineTo(3*n+.5,0),_.stroke(),_.moveTo(3*n+.5,l),_.lineTo(5*n+.5,0),_.stroke(),_.stroke();break;case\"\\\\\":case\"left_diagonal_line\":_.moveTo(n+.5,l),_.lineTo(.5-n,0),_.stroke(),_.moveTo(3*n+.5,l),_.lineTo(n+.5,0),_.stroke(),_.moveTo(5*n+.5,l),_.lineTo(3*n+.5,0),_.stroke(),_.stroke();break;case\"x\":case\"diagonal_cross\":h(_,l);break;case\",\":case\"right_diagonal_dash\":_.moveTo(n+.5,3*n+.5),_.lineTo(3*n+.5,n+.5),_.stroke();break;case\"`\":case\"left_diagonal_dash\":_.moveTo(n+.5,n+.5),_.lineTo(3*n+.5,3*n+.5),_.stroke();break;case\"v\":case\"horizontal_wave\":_.moveTo(0,n),_.lineTo(o,3*n),_.lineTo(l,n),_.stroke();break;case\">\":case\"vertical_wave\":_.moveTo(n,0),_.lineTo(3*n,o),_.lineTo(n,l),_.stroke();break;case\"*\":case\"criss_cross\":h(_,l),c(_,l,o),i(_,l,o)}return r}class n{constructor(e,t=\"\"){this.obj=e,this.prefix=t,this.cache={};for(const a of this.attrs)this[a]=e.properties[t+a]}warm_cache(e){for(const t of this.attrs){const a=this.obj.properties[this.prefix+t];if(void 0!==a.spec.value)this.cache[t]=a.spec.value;else{if(null==e)throw new Error(\"source is required with a vectorized visual property\");this.cache[t+\"_array\"]=a.array(e)}}}cache_select(e,t){const a=this.obj.properties[this.prefix+e];let s;return void 0!==a.spec.value?this.cache[e]=s=a.spec.value:this.cache[e]=s=this.cache[e+\"_array\"][t],s}set_vectorize(e,t){null!=this.all_indices?this._set_vectorize(e,this.all_indices[t]):this._set_vectorize(e,t)}}a.ContextProperties=n,n.__name__=\"ContextProperties\";class r extends n{set_value(e){e.strokeStyle=this.line_color.value(),e.globalAlpha=this.line_alpha.value(),e.lineWidth=this.line_width.value(),e.lineJoin=this.line_join.value(),e.lineCap=this.line_cap.value(),e.setLineDash(this.line_dash.value()),e.setLineDashOffset(this.line_dash_offset.value())}get doit(){return!(null===this.line_color.spec.value||0==this.line_alpha.spec.value||0==this.line_width.spec.value)}_set_vectorize(e,t){this.cache_select(\"line_color\",t),e.strokeStyle!==this.cache.line_color&&(e.strokeStyle=this.cache.line_color),this.cache_select(\"line_alpha\",t),e.globalAlpha!==this.cache.line_alpha&&(e.globalAlpha=this.cache.line_alpha),this.cache_select(\"line_width\",t),e.lineWidth!==this.cache.line_width&&(e.lineWidth=this.cache.line_width),this.cache_select(\"line_join\",t),e.lineJoin!==this.cache.line_join&&(e.lineJoin=this.cache.line_join),this.cache_select(\"line_cap\",t),e.lineCap!==this.cache.line_cap&&(e.lineCap=this.cache.line_cap),this.cache_select(\"line_dash\",t),e.getLineDash()!==this.cache.line_dash&&e.setLineDash(this.cache.line_dash),this.cache_select(\"line_dash_offset\",t),e.getLineDashOffset()!==this.cache.line_dash_offset&&e.setLineDashOffset(this.cache.line_dash_offset)}color_value(){const[e,t,a,s]=l.color2rgba(this.line_color.value(),this.line_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Line=r,r.__name__=\"Line\",r.prototype.attrs=Object.keys(s.line());class _ extends n{set_value(e){e.fillStyle=this.fill_color.value(),e.globalAlpha=this.fill_alpha.value()}get doit(){return!(null===this.fill_color.spec.value||0==this.fill_alpha.spec.value)}_set_vectorize(e,t){this.cache_select(\"fill_color\",t),e.fillStyle!==this.cache.fill_color&&(e.fillStyle=this.cache.fill_color),this.cache_select(\"fill_alpha\",t),e.globalAlpha!==this.cache.fill_alpha&&(e.globalAlpha=this.cache.fill_alpha)}color_value(){const[e,t,a,s]=l.color2rgba(this.fill_color.value(),this.fill_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Fill=_,_.__name__=\"Fill\",_.prototype.attrs=Object.keys(s.fill());class p extends n{cache_select(e,t){let a;if(\"pattern\"==e){this.cache_select(\"hatch_color\",t),this.cache_select(\"hatch_scale\",t),this.cache_select(\"hatch_pattern\",t),this.cache_select(\"hatch_weight\",t);const{hatch_color:e,hatch_scale:a,hatch_pattern:s,hatch_weight:l,hatch_extra:c}=this.cache;if(null!=c&&c.hasOwnProperty(s)){const t=c[s];this.cache.pattern=t.get_pattern(e,a,l)}else this.cache.pattern=t=>{const c=o(s,e,a,l);return t.createPattern(c,\"repeat\")}}else a=super.cache_select(e,t);return a}_try_defer(e){const{hatch_pattern:t,hatch_extra:a}=this.cache;if(null!=a&&a.hasOwnProperty(t)){a[t].onload(e)}}get doit(){return!(null===this.hatch_color.spec.value||0==this.hatch_alpha.spec.value||" "==this.hatch_pattern.spec.value||"blank"==this.hatch_pattern.spec.value||null===this.hatch_pattern.spec.value)}doit2(e,t,a,s){if(!this.doit)return;this.cache_select("pattern",t),null==this.cache.pattern(e)?this._try_defer(s):(this.set_vectorize(e,t),a())}_set_vectorize(e,t){this.cache_select("pattern",t),e.fillStyle=this.cache.pattern(e),this.cache_select("hatch_alpha",t),e.globalAlpha!==this.cache.hatch_alpha&&(e.globalAlpha=this.cache.hatch_alpha)}color_value(){const[e,t,a,s]=l.color2rgba(this.hatch_color.value(),this.hatch_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Hatch=p,p.__name__="Hatch",p.prototype.attrs=Object.keys(s.hatch());class u extends n{cache_select(e,t){let a;if("font"==e){super.cache_select("text_font_style",t),super.cache_select("text_font_size",t),super.cache_select("text_font",t);const{text_font_style:e,text_font_size:s,text_font:l}=this.cache;this.cache.font=a=`${e} ${s} ${l}`}else a=super.cache_select(e,t);return a}font_value(){const e=this.text_font.value(),t=this.text_font_size.value();return this.text_font_style.value()+" "+t+" "+e}color_value(){const[e,t,a,s]=l.color2rgba(this.text_color.value(),this.text_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}set_value(e){e.font=this.font_value(),e.fillStyle=this.text_color.value(),e.globalAlpha=this.text_alpha.value(),e.textAlign=this.text_align.value(),e.textBaseline=this.text_baseline.value()}get doit(){return!(null===this.text_color.spec.value||0==this.text_alpha.spec.value)}_set_vectorize(e,t){this.cache_select("font",t),e.font!==this.cache.font&&(e.font=this.cache.font),this.cache_select("text_color",t),e.fillStyle!==this.cache.text_color&&(e.fillStyle=this.cache.text_color),this.cache_select("text_alpha",t),e.globalAlpha!==this.cache.text_alpha&&(e.globalAlpha=this.cache.text_alpha),this.cache_select("text_align",t),e.textAlign!==this.cache.text_align&&(e.textAlign=this.cache.text_align),this.cache_select("text_baseline",t),e.textBaseline!==this.cache.text_baseline&&(e.textBaseline=this.cache.text_baseline)}}a.Text=u,u.__name__="Text",u.prototype.attrs=Object.keys(s.text());class f{constructor(e){for(const t of e.mixins){const[a,s=""]=t.split(":");let l;switch(a){case"line":l=r;break;case"fill":l=_;break;case"hatch":l=p;break;case"text":l=u;break;default:throw new Error(unknown visual: ${a})}this[s+a]=new l(e,s)}}warm_cache(e){for(const t in this)if(this.hasOwnProperty(t)){const a=this[t];a instanceof n&&a.warm_cache(e)}}set_all_indices(e){for(const t in this)if(this.hasOwnProperty(t)){const a=this[t];a instanceof n&&(a.all_indices=e)}}}a.Visuals=f,f.__name__="Visuals"},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),c=e(13),r=n.__importStar(e(19)),a=e(8),i=e(24),o=e(70);class _ extends c.HasProps{constructor(e){super(e)}static init_Model(){this.define({tags:[r.Array,[]],name:[r.String],js_property_callbacks:[r.Any,{}],js_event_callbacks:[r.Any,{}],subscribed_events:[r.Array,[]]})}connect_signals(){super.connect_signals(),this._update_property_callbacks(),this.connect(this.properties.js_property_callbacks.change,()=>this._update_property_callbacks()),this.connect(this.properties.js_event_callbacks.change,()=>this._update_event_callbacks()),this.connect(this.properties.subscribed_events.change,()=>this._update_event_callbacks())}_process_event(e){for(const t of this.js_event_callbacks[e.event_name]||[])t.execute(e);null!=this.document&&this.subscribed_events.some(t=>t==e.event_name)&&this.document.event_manager.send_event(e)}trigger_event(e){null!=this.document&&(e.origin=this,this.document.event_manager.trigger(e))}_update_event_callbacks(){null!=this.document?this.document.event_manager.subscribed_models.add(this.id):o.logger.warn("WARNING: Document not defined for updating event callbacks")}_update_property_callbacks(){const e=e=>{const[t,s=null]=e.split(":");return null!=s?this.properties[s][t]:this[t]};for(const t in this._js_callbacks){const s=this._js_callbacks[t],n=e(t);for(const e of s)this.disconnect(n,e)}this._js_callbacks={};for(const t in this.js_property_callbacks){const s=this.js_property_callbacks[t].map(e=>()=>e.execute(this));this._js_callbacks[t]=s;const n=e(t);for(const e of s)this.connect(n,e)}}_doc_attached(){i.isEmpty(this.js_event_callbacks)&&i.isEmpty(this.subscribed_events)||this._update_event_callbacks()}select(e){if(a.isString(e))return this.references().filter(t=>t instanceof _&&t.name===e);if(e.prototype instanceof c.HasProps)return this.references().filter(t=>t instanceof e);throw new Error("invalid selector")}select_one(e){const t=this.select(e);switch(t.length){case 0:return null;case 1:return t[0];default:throw new Error("found more than one object matching given selector")}}}s.Model=_,_.__name__="Model",_.init_Model()},n”, ” function _(e,l,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(8),t={};class s{constructor(e,l){this.name=e,this.level=l}}o.LogLevel=s,s.__name__="LogLevel";class g{constructor(e,l=g.INFO){this._name=e,this.set_level(l)}static get levels(){return Object.keys(g.log_levels)}static get(e,l=g.INFO){if(e.length>0){let o=t[e];return null==o&&(t[e]=o=new g(e,l)),o}throw new TypeError("Logger.get() expects a non-empty string name and an optional log-level")}get level(){return this.get_level()}get_level(){return this._log_level}set_level(e){if(e instanceof s)this._log_level=e;else{if(!n.isString(e)||null==g.log_levels[e])throw new Error("Logger.set_level() expects a log-level object or a string name of a log-level");this._log_level=g.log_levels[e]}const l=`[${this._name}]`;for(const e in g.log_levels){g.log_levels[e].level<this._log_level.level||this._log_level.level===g.OFF.level?this[e]=function(){}:this[e]=r(e,l)}}trace(…e){}debug(…e){}info(…e){}warn(…e){}error(…e){}}function r(e,l){return null!=console[e]?console[e].bind(console,l):null!=console.log?console.log.bind(console,l):function(){}}function i(e){const l=o.logger.level;return n.isString(e)&&null==g.log_levels[e]?(console.log([bokeh] unrecognized logging level ‘${e}’ passed to Bokeh.set_log_level(), ignoring),console.log([bokeh] valid log levels are: ${g.levels.join(", ")})):(console.log([bokeh] setting log level to: ‘${n.isString(e)?e:e.level}’),o.logger.set_level(e)),l}o.Logger=g,g.__name__="Logger",g.TRACE=new s("trace",0),g.DEBUG=new s("debug",1),g.INFO=new s("info",2),g.WARN=new s("warn",6),g.ERROR=new s("error",7),g.FATAL=new s("fatal",8),g.OFF=new s("off",9),g.log_levels={trace:g.TRACE,debug:g.DEBUG,info:g.INFO,warn:g.WARN,error:g.ERROR,fatal:g.FATAL,off:g.OFF},o.logger=g.get("bokeh"),o.set_log_level=i,o.with_log_level=function(e,l){const o=i(e);try{l()}finally{i(o)}}},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),a=t(29),n=t(72),r=t(73),o=i.__importStar(t(19)),_=t(10);class l extends a.AnnotationView{initialize(){super.initialize(),null==this.model.source&&(this.model.source=new r.ColumnDataSource),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.set_data(this.model.source)),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source))}set_data(t){super.set_data(t),this.visuals.warm_cache(t),this.plot_view.request_render()}_map_data(){const{frame:t}=this.plot_view;let e,s,i,a;return"data"==this.model.start_units?(e=t.xscales[this.model.x_range_name].v_compute(this._x_start),s=t.yscales[this.model.y_range_name].v_compute(this._y_start)):(e=t.xview.v_compute(this._x_start),s=t.yview.v_compute(this._y_start)),"data"==this.model.end_units?(i=t.xscales[this.model.x_range_name].v_compute(this._x_end),a=t.yscales[this.model.y_range_name].v_compute(this._y_end)):(i=t.xview.v_compute(this._x_end),a=t.yview.v_compute(this._y_end)),[[e,s],[i,a]]}render(){if(!this.model.visible)return;const{ctx:t}=this.plot_view.canvas_view;t.save();const[e,s]=this._map_data();null!=this.model.end&&this._arrow_head(t,"render",this.model.end,e,s),null!=this.model.start&&this._arrow_head(t,"render",this.model.start,s,e),t.beginPath();const{x:i,y:a,width:n,height:r}=this.plot_view.frame.bbox;t.rect(i,a,n,r),null!=this.model.end&&this._arrow_head(t,"clip",this.model.end,e,s),null!=this.model.start&&this._arrow_head(t,"clip",this.model.start,s,e),t.closePath(),t.clip(),this._arrow_body(t,e,s),t.restore()}_arrow_head(t,e,s,i,a){for(let n=0,r=this._x_start.length;n<r;n++){const r=Math.PI/2+_.atan2([i[0][n],i[1][n]],[a[0][n],a[1][n]]);t.save(),t.translate(a[0][n],a[1][n]),t.rotate(r),"render"==e?s.render(t,n):"clip"==e&&s.clip(t,n),t.restore()}}_arrow_body(t,e,s){if(this.visuals.line.doit)for(let i=0,a=this._x_start.length;i<a;i++)this.visuals.line.set_vectorize(t,i),t.beginPath(),t.moveTo(e[0][i],e[1][i]),t.lineTo(s[0][i],s[1][i]),t.stroke()}}s.ArrowView=l,l.__name__="ArrowView";class h extends a.Annotation{constructor(t){super(t)}static init_Arrow(){this.prototype.default_view=l,this.mixins(["line"]),this.define({x_start:[o.NumberSpec],y_start:[o.NumberSpec],start_units:[o.SpatialUnits,"data"],start:[o.Instance,null],x_end:[o.NumberSpec],y_end:[o.NumberSpec],end_units:[o.SpatialUnits,"data"],end:[o.Instance,()=>new n.OpenHead({})],source:[o.Instance],x_range_name:[o.String,"default"],y_range_name:[o.String,"default"]})}}s.Arrow=h,h.__name__="Arrow",h.init_Arrow()},n”, ” function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),l=i(29),n=i(68),o=t.__importStar(i(19));class h extends l.Annotation{constructor(i){super(i)}static init_ArrowHead(){this.define({size:[o.Number,25]})}initialize(){super.initialize(),this.visuals=new n.Visuals(this)}}s.ArrowHead=h,h.__name__="ArrowHead",h.init_ArrowHead();class a extends h{constructor(i){super(i)}static init_OpenHead(){this.mixins(["line"])}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(0,0),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.stroke())}}s.OpenHead=a,a.__name__="OpenHead",a.init_OpenHead();class r extends h{constructor(i){super(i)}static init_NormalHead(){this.mixins(["line","fill"]),this.override({fill_color:"black"})}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(i,e),this._normal(i,e),i.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),this._normal(i,e),i.stroke())}_normal(i,e){i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.closePath()}}s.NormalHead=r,r.__name__="NormalHead",r.init_NormalHead();class z extends h{constructor(i){super(i)}static init_VeeHead(){this.mixins(["line","fill"]),this.override({fill_color:"black"})}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(0,.5*this.size),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(i,e),this._vee(i,e),i.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),this._vee(i,e),i.stroke())}_vee(i,e){i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.lineTo(0,.5*this.size),i.closePath()}}s.VeeHead=z,z.__name__="VeeHead",z.init_VeeHead();class _ extends h{constructor(i){super(i)}static init_TeeHead(){this.mixins(["line"])}render(i,e){this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),i.beginPath(),i.moveTo(.5*this.size,0),i.lineTo(-.5*this.size,0),i.stroke())}clip(i,e){}}s.TeeHead=_,_.__name__="TeeHead",_.init_TeeHead()},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const s=t(1),a=t(74),o=t(13),i=s.__importStar(t(19)),r=t(15),l=t(100),u=t(8),c=s.__importStar(t(102)),_=t(24),h=t(103);function d(t,e,n){if(u.isArray(t)){const s=t.concat(e);return null!=n&&s.length>n?s.slice(-n):s}if(u.isTypedArray(t)){const s=t.length+e.length;if(null!=n&&s>n){const a=s-n,o=t.length;let i;t.length<n?(i=new t.constructor(n),i.set(t,0)):i=t;for(let t=a,e=o;t<e;t++)i[t-a]=i[t];for(let t=0,n=e.length;t<n;t++)i[t+(o-a)]=e[t];return i}{const n=new t.constructor(e);return c.concat(t,n)}}throw new Error("unsupported array types")}function m(t,e){let n,s,a;return u.isNumber(t)?(n=t,a=t+1,s=1):(n=null!=t.start?t.start:0,a=null!=t.stop?t.stop:e,s=null!=t.step?t.step:1),[n,a,s]}function f(t,e,n){const s=new r.Set;let a=!1;for(const[o,i]of e){let e,r,l,c;if(u.isArray(o)){const[a]=o;s.add(a),r=n[a],e=t[a],c=i,2===o.length?(r=[1,r[0]],l=[o[0],0,o[1]]):l=o}else u.isNumber(o)?(c=[i],s.add(o)):(c=i,a=!0),l=[0,0,o],r=[1,t.length],e=t;let _=0;const[h,d,f]=m(l[1],r[0]),[p,g,y]=m(l[2],r[1]);for(let t=h;t<d;t+=f)for(let n=p;n<g;n+=y)a&&s.add(n),e[t*r[1]+n]=c[_],_++}return s}n.stream_to_column=d,n.slice=m,n.patch_to_column=f;class p extends a.ColumnarDataSource{constructor(t){super(t)}static init_ColumnDataSource(){this.define({data:[i.Any,{}]})}initialize(){super.initialize(),[this.data,this._shapes]=l.decode_column_data(this.data)}attributes_as_json(t=!0,e=p._value_to_json){const n={},s=this.serializable_attributes();for(const e of _.keys(s)){let a=s[e];"data"===e&&(a=l.encode_column_data(a,this._shapes)),(t||e in this._set_after_defaults)&&(n[e]=a)}return e("attributes",n,this)}static _value_to_json(t,e,n){return u.isPlainObject(e)&&"data"===t?l.encode_column_data(e,n._shapes):o.HasProps._value_to_json(t,e,n)}stream(t,e,n){const{data:s}=this;for(const n in t)s[n]=d(s[n],t[n],e);if(this.setv({data:s},{silent:!0}),this.streaming.emit(),null!=this.document){const s=new h.ColumnsStreamedEvent(this.document,this.ref(),t,e);this.document._notify_change(this,"data",null,null,{setter_id:n,hint:s})}}patch(t,e){const{data:n}=this;let s=new r.Set;for(const e in t){const a=t[e];s=s.union(f(n[e],a,this._shapes[e]))}if(this.setv({data:n},{silent:!0}),this.patching.emit(s.values),null!=this.document){const n=new h.ColumnsPatchedEvent(this.document,this.ref(),t);this.document._notify_change(this,"data",null,null,{setter_id:e,hint:n})}}}n.ColumnDataSource=p,p.__name__="ColumnDataSource",p.init_ColumnDataSource()},n”, ” function _(t,n,e){Object.defineProperty(e,"__esModule",{value:!0});const a=t(1),s=t(75),i=t(14),r=t(70),c=t(77),l=a.__importStar(t(19)),o=t(8),u=t(9),h=t(24),g=t(76),_=t(99);class d extends s.DataSource{constructor(t){super(t)}get_array(t){let n=this.data[t];return null==n?this.data[t]=n=[]:o.isArray(n)||(this.data[t]=n=Array.from(n)),n}static init_ColumnarDataSource(){this.define({selection_policy:[l.Instance,()=>new _.UnionRenderers]}),this.internal({selection_manager:[l.Instance,t=>new c.SelectionManager({source:t})],inspected:[l.Instance,()=>new g.Selection],_shapes:[l.Any,{}]})}initialize(){super.initialize(),this._select=new i.Signal0(this,"select"),this.inspect=new i.Signal(this,"inspect"),this.streaming=new i.Signal0(this,"streaming"),this.patching=new i.Signal(this,"patching")}get_column(t){const n=this.data[t];return null!=n?n:null}columns(){return h.keys(this.data)}get_length(t=!0){const n=u.uniq(h.values(this.data).map(t=>t.length));switch(n.length){case 0:return null;case 1:return n[0];default:{const e="data source has columns of inconsistent lengths";if(t)return r.logger.warn(e),n.sort()[0];throw new Error(e)}}}get_indices(){const t=this.get_length();return u.range(0,null!=t?t:1)}clear(){const t={};for(const n of this.columns())t[n]=new this.data[n].constructor(0);this.data=t}}e.ColumnarDataSource=d,d.__name__="ColumnarDataSource",d.init_ColumnarDataSource()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const c=e(1),n=e(69),o=e(76),i=c.__importStar(e(19));class r extends n.Model{constructor(e){super(e)}static init_DataSource(){this.define({selected:[i.Instance,()=>new o.Selection]})}}a.DataSource=r,r.__name__="DataSource",r.init_DataSource()},n”, ” function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),n=i(69),l=t.__importStar(i(19)),_=i(9),h=i(24);class c extends n.Model{constructor(i){super(i)}static init_Selection(){this.define({indices:[l.Array,[]],line_indices:[l.Array,[]],multiline_indices:[l.Any,{}]}),this.internal({final:[l.Boolean],selected_glyphs:[l.Array,[]],get_view:[l.Any],image_indices:[l.Array,[]]})}initialize(){super.initialize(),this.get_view=()=>null}get selected_glyph(){return this.selected_glyphs.length>0?this.selected_glyphs[0]:null}add_to_selected_glyphs(i){this.selected_glyphs.push(i)}update(i,e,s){this.final=e,s?this.update_through_union(i):(this.indices=i.indices,this.line_indices=i.line_indices,this.selected_glyphs=i.selected_glyphs,this.get_view=i.get_view,this.multiline_indices=i.multiline_indices,this.image_indices=i.image_indices)}clear(){this.final=!0,this.indices=[],this.line_indices=[],this.multiline_indices={},this.get_view=()=>null,this.selected_glyphs=[]}is_empty(){return 0==this.indices.length&&0==this.line_indices.length&&0==this.image_indices.length}update_through_union(i){this.indices=_.union(i.indices,this.indices),this.selected_glyphs=_.union(i.selected_glyphs,this.selected_glyphs),this.line_indices=_.union(i.line_indices,this.line_indices),this.get_view()||(this.get_view=i.get_view),this.multiline_indices=h.merge(i.multiline_indices,this.multiline_indices)}update_through_intersection(i){this.indices=_.intersection(i.indices,this.indices),this.selected_glyphs=_.union(i.selected_glyphs,this.selected_glyphs),this.line_indices=_.union(i.line_indices,this.line_indices),this.get_view()||(this.get_view=i.get_view),this.multiline_indices=h.merge(i.multiline_indices,this.multiline_indices)}}s.Selection=c,c.__name__="Selection",c.init_Selection()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(13),o=e(76),c=e(78),r=e(97),l=s.__importStar(e(19));class _ extends n.HasProps{constructor(e){super(e),this.inspectors={}}static init_SelectionManager(){this.internal({source:[l.Any]})}select(e,t,i,s=!1){const n=[],o=[];for(const t of e)t instanceof c.GlyphRendererView?n.push(t):t instanceof r.GraphRendererView&&o.push(t);let l=!1;for(const e of o){const n=e.model.selection_policy.hit_test(t,e);l=l||e.model.selection_policy.do_selection(n,e.model,i,s)}if(n.length>0){const e=this.source.selection_policy.hit_test(t,n);l=l||this.source.selection_policy.do_selection(e,this.source,i,s)}return l}inspect(e,t){let i=!1;if(e instanceof c.GlyphRendererView){const s=e.hit_test(t);if(null!=s){i=!s.is_empty();const n=this.get_or_create_inspector(e.model);n.update(s,!0,!1),this.source.setv({inspected:n},{silent:!0}),this.source.inspect.emit([e,{geometry:t}])}}else if(e instanceof r.GraphRendererView){const s=e.model.inspection_policy.hit_test(t,e);i=i||e.model.inspection_policy.do_inspection(s,t,e,!1,!1)}return i}clear(e){this.source.selected.clear(),null!=e&&this.get_or_create_inspector(e.model).clear()}get_or_create_inspector(e){return null==this.inspectors[e.id]&&(this.inspectors[e.id]=new o.Selection),this.inspectors[e.id]}}i.SelectionManager=_,_.__name__="SelectionManager",_.init_SelectionManager()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=e(79),n=e(80),h=e(91),o=e(92),a=e(94),r=e(95),_=e(70),d=s.__importStar(e(19)),c=e(12),g=e(9),p=e(24),y=e(96),u=e(88),m={fill:{},line:{}},v={fill:{fill_alpha:.3,fill_color:"grey"},line:{line_alpha:.3,line_color:"grey"}},f={fill:{fill_alpha:.2},line:{}};class w extends l.DataRendererView{async lazy_initialize(){await super.lazy_initialize();const e=this.model.glyph,t=g.includes(e.mixins,"fill"),i=g.includes(e.mixins,"line"),s=p.clone(e.attributes);function l(l){const n=p.clone(s);return t&&p.extend(n,l.fill),i&&p.extend(n,l.line),new e.constructor(n)}delete s.id,this.glyph=await this.build_glyph_view(e);let{selection_glyph:n}=this.model;null==n?n=l({fill:{},line:{}}):"auto"===n&&(n=l(m)),this.selection_glyph=await this.build_glyph_view(n);let{nonselection_glyph:h}=this.model;null==h?h=l({fill:{},line:{}}):"auto"===h&&(h=l(f)),this.nonselection_glyph=await this.build_glyph_view(h);const{hover_glyph:o}=this.model;null!=o&&(this.hover_glyph=await this.build_glyph_view(o));const{muted_glyph:a}=this.model;null!=a&&(this.muted_glyph=await this.build_glyph_view(a));const r=l(v);this.decimated_glyph=await this.build_glyph_view(r),this.xscale=this.plot_view.frame.xscales[this.model.x_range_name],this.yscale=this.plot_view.frame.yscales[this.model.y_range_name],this.set_data(!1)}async build_glyph_view(e){return y.build_view(e,{parent:this})}remove(){var e,t;this.glyph.remove(),this.selection_glyph.remove(),this.nonselection_glyph.remove(),null===(e=this.hover_glyph)||void 0===e||e.remove(),null===(t=this.muted_glyph)||void 0===t||t.remove(),this.decimated_glyph.remove(),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render()),this.connect(this.model.glyph.change,()=>this.set_data()),this.connect(this.model.data_source.change,()=>this.set_data()),this.connect(this.model.data_source.streaming,()=>this.set_data()),this.connect(this.model.data_source.patching,e=>this.set_data(!0,e)),this.connect(this.model.data_source.selected.change,()=>this.request_render()),this.connect(this.model.data_source._select,()=>this.request_render()),null!=this.hover_glyph&&this.connect(this.model.data_source.inspect,()=>this.request_render()),this.connect(this.model.properties.view.change,()=>this.set_data()),this.connect(this.model.view.change,()=>this.set_data()),this.connect(this.model.properties.visible.change,()=>this.plot_view.update_dataranges());const{x_ranges:e,y_ranges:t}=this.plot_view.frame;for(const t in e){const i=e[t];i instanceof u.FactorRange&&this.connect(i.change,()=>this.set_data())}for(const e in t){const i=t[e];i instanceof u.FactorRange&&this.connect(i.change,()=>this.set_data())}this.connect(this.model.glyph.transformchange,()=>this.set_data())}have_selection_glyphs(){return null!=this.selection_glyph&&null!=this.nonselection_glyph}set_data(e=!0,t=null){const i=Date.now(),s=this.model.data_source;this.all_indices=this.model.view.indices,this.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0}),this.glyph.set_data(s,this.all_indices,t),this.glyph.set_visuals(s),this.decimated_glyph.set_visuals(s),this.have_selection_glyphs()&&(this.selection_glyph.set_visuals(s),this.nonselection_glyph.set_visuals(s)),null!=this.hover_glyph&&this.hover_glyph.set_visuals(s),null!=this.muted_glyph&&this.muted_glyph.set_visuals(s);const{lod_factor:l}=this.plot_model;this.decimated=[];for(let e=0,t=Math.floor(this.all_indices.length/l);e<t;e++)this.decimated.push(e*l);const n=Date.now()-i;_.logger.debug(${this.glyph.model.type} GlyphRenderer (${this.model.id}): set_data finished in ${n}ms),this.set_data_timestamp=Date.now(),e&&this.request_render()}get has_webgl(){return this.glyph.has_webgl}render(){if(!this.model.visible)return;const e=Date.now(),t=this.has_webgl;this.glyph.map_data();const i=Date.now()-e,s=Date.now();let l=this.glyph.mask_data(this.all_indices);l.length===this.all_indices.length&&(l=g.range(0,this.all_indices.length));const r=Date.now()-s,{ctx:d}=this.plot_view.canvas_view;d.save();const{selected:p}=this.model.data_source;let y;y=!p||p.is_empty()?[]:this.glyph instanceof n.LineView&&p.selected_glyph===this.glyph.model?this.model.view.convert_indices_from_subset(l):p.indices;const{inspected:u}=this.model.data_source,m=new Set((()=>!u||u.is_empty()?[]:u.selected_glyph?this.model.view.convert_indices_from_subset(l):u.indices.length>0?u.indices:c.map(Object.keys(u.multiline_indices),e=>parseInt(e)))()),v=c.filter(l,e=>m.has(this.all_indices[e])),{lod_threshold:f}=this.plot_model;let w,b,x;null!=this.model.document&&this.model.document.interactive_duration()>0&&!t&&null!=f&&this.all_indices.length>f?(l=this.decimated,w=this.decimated_glyph,b=this.decimated_glyph,x=this.selection_glyph):(w=this.model.muted&&null!=this.muted_glyph?this.muted_glyph:this.glyph,b=this.nonselection_glyph,x=this.selection_glyph),null!=this.hover_glyph&&v.length&&(l=g.difference(l,v));let D,R=null;if(y.length&&this.have_selection_glyphs()){const e=Date.now(),t={};for(const e of y)t[e]=!0;const i=new Array,s=new Array;if(this.glyph instanceof n.LineView)for(const e of this.all_indices)null!=t[e]?i.push(e):s.push(e);else for(const e of l)null!=t[this.all_indices[e]]?i.push(e):s.push(e);R=Date.now()-e,D=Date.now(),b.render(d,s,this.glyph),x.render(d,i,this.glyph),null!=this.hover_glyph&&(this.glyph instanceof n.LineView?this.hover_glyph.render(d,this.model.view.convert_indices_from_subset(v),this.glyph):this.hover_glyph.render(d,v,this.glyph))}else if(D=Date.now(),this.glyph instanceof n.LineView)this.hover_glyph&&v.length?this.hover_glyph.render(d,this.model.view.convert_indices_from_subset(v),this.glyph):w.render(d,this.all_indices,this.glyph);else if(this.glyph instanceof h.PatchView||this.glyph instanceof o.HAreaView||this.glyph instanceof a.VAreaView)if(0==u.selected_glyphs.length||null==this.hover_glyph)w.render(d,this.all_indices,this.glyph);else for(const e of u.selected_glyphs)e.id==this.glyph.model.id&&this.hover_glyph.render(d,this.all_indices,this.glyph);else w.render(d,l,this.glyph),this.hover_glyph&&v.length&&this.hover_glyph.render(d,v,this.glyph);const V=Date.now()-D;this.last_dtrender=V;const $=Date.now()-e;_.logger.debug(${this.glyph.model.type} GlyphRenderer (${this.model.id}): render finished in ${$}ms),_.logger.trace(` - map_data finished in : ${i}ms`),_.logger.trace(` - mask_data finished in : ${r}ms`),null!=R&&_.logger.trace(` - selection mask finished in : ${R}ms`),_.logger.trace(` - glyph renders finished in : ${V}ms`),d.restore()}draw_legend(e,t,i,s,l,n,h,o){null==o&&(o=this.model.get_reference_point(n,h)),this.glyph.draw_legend_for_index(e,{x0:t,x1:i,y0:s,y1:l},o)}hit_test(e){if(!this.model.visible)return null;const t=this.glyph.hit_test(e);return null==t?null:this.model.view.convert_selection_from_subset(t)}}i.GlyphRendererView=w,w.__name__="GlyphRendererView";class b extends l.DataRenderer{constructor(e){super(e)}static init_GlyphRenderer(){this.prototype.default_view=w,this.define({data_source:[d.Instance],view:[d.Instance,()=>new r.CDSView],glyph:[d.Instance],hover_glyph:[d.Instance],nonselection_glyph:[d.Any,"auto"],selection_glyph:[d.Any,"auto"],muted_glyph:[d.Instance],muted:[d.Boolean,!1]})}initialize(){super.initialize(),null==this.view.source&&(this.view.source=this.data_source,this.view.compute_indices())}get_reference_point(e,t){let i=0;if(null!=e){const s=this.data_source.get_column(e);if(null!=s){const e=c.indexOf(s,t);-1!=e&&(i=e)}}return i}get_selection_manager(){return this.data_source.selection_manager}}i.GlyphRenderer=b,b.__name__="GlyphRenderer",b.init_GlyphRenderer()},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),a=e(63),_=t.__importStar(e(19));class i extends a.RendererView{}n.DataRendererView=i,i.__name__="DataRendererView";class d extends a.Renderer{constructor(e){super(e)}static init_DataRenderer(){this.define({x_range_name:[_.String,"default"],y_range_name:[_.String,"default"]}),this.override({level:"glyph"})}}n.DataRenderer=d,d.__name__="DataRenderer",d.init_DataRenderer()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(81),_=e(90),l=s.__importStar(e(87));class r extends n.XYGlyphView{_render(e,t,{sx:i,sy:s}){let n=!1,_=null;this.visuals.line.set_value(e);for(const l of t){if(n){if(!isFinite(i[l]+s[l])){e.stroke(),e.beginPath(),n=!1,_=l;continue}null!=_&&l-_>1&&(e.stroke(),n=!1)}n?e.lineTo(i[l],s[l]):(e.beginPath(),e.moveTo(i[l],s[l]),n=!0),_=l}n&&e.stroke()}_hit_point(e){const t=l.create_empty_hit_test_result(),i={x:e.sx,y:e.sy};let s=9999;const n=Math.max(2,this.visuals.line.line_width.value()/2);for(let e=0,_=this.sx.length-1;e<_;e++){const _={x:this.sx[e],y:this.sy[e]},r={x:this.sx[e+1],y:this.sy[e+1]},h=l.dist_to_segment(i,_,r);h<n&&h<s&&(s=h,t.add_to_selected_glyphs(this.model),t.get_view=()=>this,t.line_indices=[e])}return t}_hit_span(e){const{sx:t,sy:i}=e,s=l.create_empty_hit_test_result();let n,_;"v"==e.direction?(n=this.renderer.yscale.invert(i),_=this._y):(n=this.renderer.xscale.invert(t),_=this._x);for(let e=0,t=_.length-1;e<t;e++)(_[e]<=n&&n<=_[e+1]||_[e+1]<=n&&n<=_[e])&&(s.add_to_selected_glyphs(this.model),s.get_view=()=>this,s.line_indices.push(e));return s}get_interpolation_hit(e,t){const[i,s,n,l]=[this._x[e],this._y[e],this._x[e+1],this._y[e+1]];return _.line_interpolation(this.renderer,t,i,s,n,l)}draw_legend_for_index(e,t,i){_.generic_line_legend(this.visuals,e,t,i)}}i.LineView=r,r.__name__="LineView";class h extends n.XYGlyph{constructor(e){super(e)}static init_Line(){this.prototype.default_view=r,this.mixins(["line"])}}i.Line=h,h.__name__="Line",h.init_Line()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(82),n=e(86);class _ extends n.GlyphView{_index_data(){const e=[];for(let t=0,s=this._x.length;t<s;t++){const s=this._x[t],i=this._y[t];!isNaN(s+i)&&isFinite(s+i)&&e.push({x0:s,y0:i,x1:s,y1:i,i:t})}return new i.SpatialIndex(e)}scenterx(e){return this.sx[e]}scentery(e){return this.sy[e]}}s.XYGlyphView=_,_.__name__="XYGlyphView";class h extends n.Glyph{constructor(e){super(e)}static init_XYGlyph(){this.coords([["x","y"]])}}s.XYGlyph=h,h.__name__="XYGlyph",h.init_XYGlyph()},n”, ” function _(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=n(1).__importDefault(n(83)),s=n(85);class r{constructor(n){if(this.points=n,this.index=null,n.length>0){this.index=new e.default(n.length);for(const t of n){const{x0:n,y0:i,x1:e,y1:s}=t;this.index.add(n,i,e,s)}this.index.finish()}}_normalize(n){let{x0:t,y0:i,x1:e,y1:s}=n;return t>e&&([t,e]=[e,t]),i>s&&([i,s]=[s,i]),{x0:t,y0:i,x1:e,y1:s}}get bbox(){if(null==this.index)return s.empty();{const{minX:n,minY:t,maxX:i,maxY:e}=this.index;return{x0:n,y0:t,x1:i,y1:e}}}search(n){if(null==this.index)return[];{const{x0:t,y0:i,x1:e,y1:s}=this._normalize(n);return this.index.search(t,i,e,s).map(n=>this.points[n])}}indices(n){return this.search(n).map(({i:n})=>n)}}i.SpatialIndex=r,r.__name__="SpatialIndex"},n”, ” function _(t,s,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1).__importDefault(t(84)),h=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class n{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[s,i]=new Uint8Array(t,0,2);if(251!==s)throw new Error("Data does not appear to be in a Flatbush format.");if(i>>4!=3)throw new Error(Got v${i>>4} data when expected v3.);const[e]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new n(o,e,h[15&i],t)}constructor(t,s=16,i=Float64Array,n){if(void 0===t)throw new Error("Missing required argument: numItems.");if(isNaN(t)||t<=0)throw new Error(Unpexpected numItems value: ${t}.);this.numItems=+t,this.nodeSize=Math.min(Math.max(+s,2),65535);let o=t,r=o;this._levelBounds=[4*o];do{o=Math.ceil(o/this.nodeSize),r+=o,this._levelBounds.push(4*r)}while(1!==o);this.ArrayType=i||Float64Array,this.IndexArrayType=r<16384?Uint16Array:Uint32Array;const a=h.indexOf(this.ArrayType),_=4*r*this.ArrayType.BYTES_PER_ELEMENT;if(a<0)throw new Error(Unexpected typed array class: ${i}.);n&&n instanceof ArrayBuffer?(this.data=n,this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),this._pos=4*r,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new ArrayBuffer(8+_+r*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+a]),new Uint16Array(this.data,2,1)[0]=s,new Uint32Array(this.data,4,1)[0]=t),this._queue=new e.default}add(t,s,i,e){const h=this._pos>>2;return this._indices[h]=h,this._boxes[this._pos++]=t,this._boxes[this._pos++]=s,this._boxes[this._pos++]=i,this._boxes[this._pos++]=e,t<this.minX&&(this.minX=t),s<this.minY&&(this.minY=s),i>this.maxX&&(this.maxX=i),e>this.maxY&&(this.maxY=e),h}finish(){if(this._pos>>2!==this.numItems)throw new Error(Added ${this._pos>>2} items when expected ${this.numItems}.);const t=this.maxX-this.minX,s=this.maxY-this.minY,i=new Uint32Array(this.numItems);for(let e=0;e<this.numItems;e++){let h=4*e;const n=this._boxes[h++],o=this._boxes[h++],r=this._boxes[h++],a=this._boxes[h++],d=Math.floor(65535*((n+r)/2-this.minX)/t),l=Math.floor(65535*((o+a)/2-this.minY)/s);i[e]=_(d,l)}!function t(s,i,e,h,n){if(h>=n)return;const o=s[h+n>>1];let r=h-1,_=n+1;for(;;){do{r++}while(s[r]<o);do{_–}while(s[_]>o);if(r>=_)break;a(s,i,e,r,_)}t(s,i,e,h,_),t(s,i,e,_+1,n)}(i,this._boxes,this._indices,0,this.numItems-1);for(let t=0,s=0;t<this._levelBounds.length-1;t++){const i=this._levelBounds[t];for(;s<i;){let t=1/0,e=1/0,h=-1/0,n=-1/0;const o=s;for(let o=0;o<this.nodeSize&&s<i;o++){const i=this._boxes[s++],o=this._boxes[s++],r=this._boxes[s++],a=this._boxes[s++];i<t&&(t=i),o<e&&(e=o),r>h&&(h=r),a>n&&(n=a)}this._indices[this._pos>>2]=o,this._boxes[this._pos++]=t,this._boxes[this._pos++]=e,this._boxes[this._pos++]=h,this._boxes[this._pos++]=n}}}search(t,s,i,e,h){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let n=this._boxes.length-4,o=this._levelBounds.length-1;const r=[],a=[];for(;void 0!==n;){const _=Math.min(n+4*this.nodeSize,this._levelBounds[o]);for(let d=n;d<_;d+=4){const _=0|this._indices[d>>2];i<this._boxes[d]||(e<this._boxes[d+1]||t>this._boxes[d+2]||s>this._boxes[d+3]||(n<4*this.numItems?(void 0===h||h(_))&&a.push(_):(r.push(_),r.push(o-1))))}o=r.pop(),n=r.pop()}return a}neighbors(t,s,i=1/0,e=1/0,h){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let n=this._boxes.length-4;const a=this._queue,_=[],d=e*e;for(;void 0!==n;){const e=Math.min(n+4*this.nodeSize,r(n,this._levelBounds));for(let i=n;i<e;i+=4){const e=0|this._indices[i>>2],r=o(t,this._boxes[i],this._boxes[i+2]),_=o(s,this._boxes[i+1],this._boxes[i+3]),d=r*r+_*_;n<4*this.numItems?(void 0===h||h(e))&&a.push(-e-1,d):a.push(e,d)}for(;a.length&&a.peek()<0;){if(a.peekValue()>d)return a.clear(),_;if(_.push(-a.pop()-1),_.length===i)return a.clear(),_}n=a.pop()}return a.clear(),_}}function o(t,s,i){return t<s?s-t:t<=i?0:t-i}function r(t,s){let i=0,e=s.length-1;for(;i<e;){const h=i+e>>1;s[h]>t?e=h:i=h+1}return s[i]}function a(t,s,i,e,h){const n=t[e];t[e]=t[h],t[h]=n;const o=4*e,r=4*h,a=s[o],_=s[o+1],d=s[o+2],l=s[o+3];s[o]=s[r],s[o+1]=s[r+1],s[o+2]=s[r+2],s[o+3]=s[r+3],s[r]=a,s[r+1]=_,s[r+2]=d,s[r+3]=l;const u=i[e];i[e]=i[h],i[h]=u}function _(t,s){let i=t^s,e=65535^i,h=65535^(t|s),n=t&(65535^s),o=i|e>>1,r=i>>1^i,a=h>>1^e&n>>1^h,_=i&h>>1^n>>1^n;i=o,e=r,h=a,n=_,o=i&i>>2^e&e>>2,r=i&e>>2^e&(i^e)>>2,a^=i&h>>2^e&n>>2,_^=e&h>>2^(i^e)&n>>2,i=o,e=r,h=a,n=_,o=i&i>>4^e&e>>4,r=i&e>>4^e&(i^e)>>4,a^=i&h>>4^e&n>>4,_^=e&h>>4^(i^e)&n>>4,i=o,e=r,h=a,n=_,a^=i&h>>8^e&n>>8,_^=e&h>>8^(i^e)&n>>8,i=a^a>>1,e=_^_>>1;let d=t^s,l=e|65535^(d|i);return d=16711935&(d|d<<8),d=252645135&(d|d<<4),d=858993459&(d|d<<2),d=1431655765&(d|d<<1),l=16711935&(l|l<<8),l=252645135&(l|l<<4),l=858993459&(l|l<<2),l=1431655765&(l|l<<1),(l<<1|d)>>>0}i.default=n},n”, ” function _(s,t,i){Object.defineProperty(i,"__esModule",{value:!0});i.default=class{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(s,t){let i=this.length++;for(this.ids[i]=s,this.values[i]=t;i>0;){const s=i-1>>1,e=this.values[s];if(t>=e)break;this.ids[i]=this.ids[s],this.values[i]=e,i=s}this.ids[i]=s,this.values[i]=t}pop(){if(0===this.length)return;const s=this.ids[0];if(this.length–,this.length>0){const s=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],i=this.length>>1;let e=0;for(;e<i;){let s=1+(e<<1);const i=s+1;let h=this.ids[s],l=this.values[s];const n=this.values[i];if(i<this.length&&n<l&&(s=i,h=this.ids[i],l=n),l>=t)break;this.ids[e]=h,this.values[e]=l,e=s}this.ids[e]=s,this.values[e]=t}return s}peek(){return this.ids[0]}peekValue(){return this.values[0]}}},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const{min:h,max:r}=Math;e.empty=function(){return{x0:1/0,y0:1/0,x1:-1/0,y1:-1/0}},e.positive_x=function(){return{x0:Number.MIN_VALUE,y0:-1/0,x1:1/0,y1:1/0}},e.positive_y=function(){return{x0:-1/0,y0:Number.MIN_VALUE,x1:1/0,y1:1/0}},e.union=function(t,i){return{x0:h(t.x0,i.x0),x1:r(t.x1,i.x1),y0:h(t.y0,i.y0),y1:r(t.y1,i.y1)}};class s{constructor(t){if(null==t)this.x0=0,this.y0=0,this.x1=0,this.y1=0;else if("x0"in t){const{x0:i,y0:e,x1:h,y1:r}=t;if(!(i<=h&&e<=r))throw new Error(invalid bbox {x0: ${i}, y0: ${e}, x1: ${h}, y1: ${r}});this.x0=i,this.y0=e,this.x1=h,this.y1=r}else if("x"in t){const{x:i,y:e,width:h,height:r}=t;if(!(h>=0&&r>=0))throw new Error(invalid bbox {x: ${i}, y: ${e}, width: ${h}, height: ${r}});this.x0=i,this.y0=e,this.x1=i+h,this.y1=e+r}else{let i,e,h,r;if("width"in t)if("left"in t)i=t.left,e=i+t.width;else if("right"in t)e=t.right,i=e-t.width;else{const h=t.width/2;i=t.hcenter-h,e=t.hcenter+h}else i=t.left,e=t.right;if("height"in t)if("top"in t)h=t.top,r=h+t.height;else if("bottom"in t)r=t.bottom,h=r-t.height;else{const i=t.height/2;h=t.vcenter-i,r=t.vcenter+i}else h=t.top,r=t.bottom;if(!(i<=e&&h<=r))throw new Error(invalid bbox {left: ${i}, top: ${h}, right: ${e}, bottom: ${r}});this.x0=i,this.y0=h,this.x1=e,this.y1=r}}toString(){return`BBox({left: ${this.left}, top: ${this.top}, width: ${this.width}, height: ${this.height}})`}get left(){return this.x0}get top(){return this.y0}get right(){return this.x1}get bottom(){return this.y1}get p0(){return[this.x0,this.y0]}get p1(){return[this.x1,this.y1]}get x(){return this.x0}get y(){return this.y0}get width(){return this.x1-this.x0}get height(){return this.y1-this.y0}get rect(){return{x0:this.x0,y0:this.y0,x1:this.x1,y1:this.y1}}get box(){return{x:this.x,y:this.y,width:this.width,height:this.height}}get h_range(){return{start:this.x0,end:this.x1}}get v_range(){return{start:this.y0,end:this.y1}}get ranges(){return[this.h_range,this.v_range]}get aspect(){return this.width/this.height}get hcenter(){return(this.left+this.right)/2}get vcenter(){return(this.top+this.bottom)/2}contains(t,i){return t>=this.x0&&t<=this.x1&&i>=this.y0&&i<=this.y1}clip(t,i){return t<this.x0?t=this.x0:t>this.x1&&(t=this.x1),i<this.y0?i=this.y0:i>this.y1&&(i=this.y1),[t,i]}union(t){return new s({x0:h(this.x0,t.x0),y0:h(this.y0,t.y0),x1:r(this.x1,t.x1),y1:r(this.y1,t.y1)})}equals(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1}get xview(){return{compute:t=>this.left+t,v_compute:t=>{const i=new Float64Array(t.length),e=this.left;for(let h=0;h<t.length;h++)i[h]=e+t[h];return i}}}get yview(){return{compute:t=>this.bottom-t,v_compute:t=>{const i=new Float64Array(t.length),e=this.bottom;for(let h=0;h<t.length;h++)i[h]=e-t[h];return i}}}}e.BBox=s,s.__name__="BBox"},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=i.__importStar(t(87)),r=i.__importStar(t(19)),a=i.__importStar(t(85)),_=i.__importStar(t(30)),l=i.__importStar(t(68)),o=t(65),h=t(69),c=t(70),d=t(12),p=t(24),y=t(8),u=t(80),g=t(88);class m extends o.View{constructor(){super(…arguments),this._nohit_warned=new Set}get renderer(){return this.parent}get has_webgl(){return null!=this.glglyph}initialize(){super.initialize(),this.visuals=new l.Visuals(this.model)}async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e){let s=null;try{s=await Promise.resolve().then(()=>i.__importStar(t(358)))}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t;c.logger.warn("WebGL was requested and is supported, but bokeh-gl(.min).js is not available, falling back to 2D rendering.")}if(null!=s){const t=s[this.model.type+"GLGlyph"];null!=t&&(this.glglyph=new t(e.gl,this))}}}set_visuals(t){this.visuals.warm_cache(t),null!=this.glglyph&&this.glglyph.set_visuals_changed()}render(t,e,s){t.beginPath(),null!=this.glglyph&&this.glglyph.render(t,e,s)||this._render(t,e,s)}has_finished(){return!0}notify_finished(){this.renderer.notify_finished()}_bounds(t){return t}bounds(){return this._bounds(this.index.bbox)}log_bounds(){const t=a.empty(),e=this.index.search(a.positive_x());for(const s of e)s.x0<t.x0&&(t.x0=s.x0),s.x1>t.x1&&(t.x1=s.x1);const s=this.index.search(a.positive_y());for(const e of s)e.y0<t.y0&&(t.y0=e.y0),e.y1>t.y1&&(t.y1=e.y1);return this._bounds(t)}get_anchor_point(t,e,[s,i]){switch(t){case"center":return{x:this.scenterx(e,s,i),y:this.scentery(e,s,i)};default:return null}}sdist(t,e,s,i="edge",n=!1){let r,a;const _=e.length;if("center"==i){const t=d.map(s,t=>t/2);r=new Float64Array(_);for(let s=0;s<_;s++)r[s]=e[s]-t[s];a=new Float64Array(_);for(let s=0;s<_;s++)a[s]=e[s]+t[s]}else{r=e,a=new Float64Array(_);for(let t=0;t<_;t++)a[t]=r[t]+s[t]}const l=t.v_compute(r),o=t.v_compute(a);return n?d.map(l,(t,e)=>Math.ceil(Math.abs(o[e]-l[e]))):d.map(l,(t,e)=>Math.abs(o[e]-l[e]))}draw_legend_for_index(t,e,s){}hit_test(t){switch(t.type){case"point":if(null!=this._hit_point)return this._hit_point(t);break;case"span":if(null!=this._hit_span)return this._hit_span(t);break;case"rect":if(null!=this._hit_rect)return this._hit_rect(t);break;case"poly":if(null!=this._hit_poly)return this._hit_poly(t)}return this._nohit_warned.has(t.type)||(c.logger.debug(‘${t.type}’ selection not available for ${this.model.type}),this._nohit_warned.add(t.type)),null}_hit_rect_against_index(t){const{sx0:e,sx1:s,sy0:i,sy1:r}=t,[a,_]=this.renderer.xscale.r_invert(e,s),[l,o]=this.renderer.yscale.r_invert(i,r),h=n.create_empty_hit_test_result();return h.indices=this.index.indices({x0:a,x1:_,y0:l,y1:o}),h}set_data(t,e,s){let i=this.model.materialize_dataspecs(t);if(this.visuals.set_all_indices(e),e&&!(this instanceof u.LineView)){const t={};for(const s in i){const n=i[s];"_"===s.charAt(0)?t[s]=e.map(t=>n[t]):t[s]=n}i=t}const n=this;if(p.extend(n,i),this.renderer.plot_view.model.use_map&&(null!=n._x&&([n._x,n._y]=_.project_xy(n._x,n._y)),null!=n._xs&&([n._xs,n._ys]=_.project_xsys(n._xs,n._ys)),null!=n._x0&&([n._x0,n._y0]=_.project_xy(n._x0,n._y0)),null!=n._x1&&([n._x1,n._y1]=_.project_xy(n._x1,n._y1))),null!=this.renderer.plot_view.frame.x_ranges){const t=this.renderer.plot_view.frame.x_ranges[this.model.x_range_name],e=this.renderer.plot_view.frame.y_ranges[this.model.y_range_name];for(let[s,i]of this.model._coords)s=`_${s}`,i=`_${i}`,null!=n._xs?(t instanceof g.FactorRange&&(n[s]=d.map(n[s],e=>t.v_synthetic(e))),e instanceof g.FactorRange&&(n[i]=d.map(n[i],t=>e.v_synthetic(t)))):(t instanceof g.FactorRange&&(n[s]=t.v_synthetic(n[s])),e instanceof g.FactorRange&&(n[i]=e.v_synthetic(n[i])))}null!=this.glglyph&&this.glglyph.set_data_changed(n._x.length),this._set_data(s),this.index_data()}_set_data(t){}index_data(){this.index=this._index_data()}mask_data(t){return null!=this.glglyph||null==this._mask_data?t:this._mask_data()}map_data(){const t=this;for(let[e,s]of this.model._coords){const i=`s${e}`,n=`s${s}`;if(e=`_${e}`,s=`_${s}`,null!=t[e]&&(y.isArray(t[e][0])||y.isTypedArray(t[e][0]))){const r=t[e].length;t[i]=new Array(r),t[n]=new Array(r);for(let a=0;a<r;a++){const[r,_]=this.map_to_screen(t[e][a],t[s][a]);t[i][a]=r,t[n][a]=_}}else[t[i],t[n]]=this.map_to_screen(t[e],t[s])}this._map_data()}_map_data(){}map_to_screen(t,e){return this.renderer.plot_view.map_to_screen(t,e,this.model.x_range_name,this.model.y_range_name)}}s.GlyphView=m,m.__name__="GlyphView";class x extends h.Model{constructor(t){super(t)}static init_Glyph(){this.prototype._coords=[],this.internal({x_range_name:[r.String,"default"],y_range_name:[r.String,"default"]})}static coords(t){const e=this.prototype._coords.concat(t);this.prototype._coords=e;const s={};for(const[e,i]of t)s[e]=[r.CoordinateSpec],s[i]=[r.CoordinateSpec];this.define(s)}}s.Glyph=x,x.__name__="Glyph",x.init_Glyph()},n”, ” function _(t,n,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(9),r=t(76);function s(t){return t*t}function o(t,n){return s(t.x-n.x)+s(t.y-n.y)}function c(t,n,e){const i=o(n,e);if(0==i)return o(t,n);const r=((t.x-n.x)*(e.x-n.x)+(t.y-n.y)*(e.y-n.y))/i;return o(t,r<0?n:r>1?e:{x:n.x+r*(e.x-n.x),y:n.y+r*(e.y-n.y)})}e.point_in_poly=function(t,n,e,i){let r=!1,s=e[e.length-1],o=i[i.length-1];for(let c=0;c<e.length;c++){const u=e[c],_=i[c];o<n!=_<n&&s+(n-o)/(_-o)*(u-s)<t&&(r=!r),s=u,o=_}return r},e.point_in_ellipse=function(t,n,e,i,r,s,o){return((Math.cos(e)/r)**2+(Math.sin(e)/i)**2)*(t-s)**2+2*Math.cos(e)*Math.sin(e)*((1/r)**2-(1/i)**2)*(t-s)*(n-o)+((Math.cos(e)/i)**2+(Math.sin(e)/r)**2)*(n-o)**2<=1},e.create_empty_hit_test_result=function(){return new r.Selection},e.create_hit_test_result_from_hits=function(t){const n=new r.Selection;return n.indices=i.sort_by(t,([t,n])=>n).map(([t,n])=>t),n},e.dist_2_pts=o,e.dist_to_segment_squared=c,e.dist_to_segment=function(t,n,e){return Math.sqrt(c(t,n,e))},e.check_2_segments_intersect=function(t,n,e,i,r,s,o,c){const u=(c-s)*(e-t)-(o-r)*(i-n);if(0==u)return{hit:!1,x:null,y:null};{let _=n-s,l=t-r;const h=(e-t)*_-(i-n)*l;return _=((o-r)*_-(c-s)*l)/u,l=h/u,{hit:_>0&&_<1&&l>0&&l<1,x:t+_*(e-t),y:n+_*(i-n)}}}},n”, ” function _(t,n,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(89),r=s.__importStar(t(19)),a=t(12),o=t(9),p=t(8),h=t(11);function g(t,n,i=0){const s={};for(let e=0;e<t.length;e++){const r=t[e];if(r in s)throw new Error(duplicate factor or subfactor: ${r});s[r]={value:.5+e*(1+n)+i}}return[s,(t.length-1)*n]}function c(t,n,i,s=0){const e={},r={},a=[];for(const[n,i]of t)n in r||(r[n]=[],a.push(n)),r[n].push(i);let p=s,h=0;for(const t of a){const s=r[t].length,[a,c]=g(r[t],i,p);h+=c;const u=o.sum(r[t].map(t=>a[t].value));e[t]={value:u/s,mapping:a},p+=s+n+c}return[e,a,(a.length-1)*n+h]}function u(t,n,i,s,e=0){const r={},a={},p=[];for(const[n,i,s]of t)n in a||(a[n]=[],p.push(n)),a[n].push([i,s]);const h=[];let g=e,u=0;for(const t of p){const e=a[t].length,[p,l,_]=c(a[t],i,s,g);for(const n of l)h.push([t,n]);u+=_;const d=o.sum(a[t].map(([t])=>p[t].value));r[t]={value:d/e,mapping:p},g+=e+n+_}return[r,p,h,(p.length-1)*n+u]}i.map_one_level=g,i.map_two_levels=c,i.map_three_levels=u;class l extends e.Range{constructor(t){super(t)}static init_FactorRange(){this.define({factors:[r.Array,[]],factor_padding:[r.Number,0],subgroup_padding:[r.Number,.8],group_padding:[r.Number,1.4],range_padding:[r.Number,0],range_padding_units:[r.PaddingUnits,"percent"],start:[r.Number],end:[r.Number]}),this.internal({levels:[r.Number],mids:[r.Array,null],tops:[r.Array,null],tops_groups:[r.Array]})}get min(){return this.start}get max(){return this.end}initialize(){super.initialize(),this._init(!0)}connect_signals(){super.connect_signals(),this.connect(this.properties.factors.change,()=>this.reset()),this.connect(this.properties.factor_padding.change,()=>this.reset()),this.connect(this.properties.group_padding.change,()=>this.reset()),this.connect(this.properties.subgroup_padding.change,()=>this.reset()),this.connect(this.properties.range_padding.change,()=>this.reset()),this.connect(this.properties.range_padding_units.change,()=>this.reset())}reset(){this._init(!1),this.change.emit()}_lookup(t){if(1==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])?n[t[0]].value:NaN}if(2==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])&&n[t[0]].mapping.hasOwnProperty(t[1])?n[t[0]].mapping[t[1]].value:NaN}if(3==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])&&n[t[0]].mapping.hasOwnProperty(t[1])&&n[t[0]].mapping[t[1]].mapping.hasOwnProperty(t[2])?n[t[0]].mapping[t[1]].mapping[t[2]].value:NaN}h.unreachable()}synthetic(t){if(p.isNumber(t))return t;if(p.isString(t))return this._lookup([t]);let n=0;const i=t[t.length-1];return p.isNumber(i)&&(n=i,t=t.slice(0,-1)),this._lookup(t)+n}v_synthetic(t){return a.map(t,t=>this.synthetic(t))}_init(t){let n,i;this.tops=null,this.mids=null,o.every(this.factors,p.isString)?(n=1,[this._mapping,i]=g(this.factors,this.factor_padding)):o.every(this.factors,t=>p.isArray(t)&&2==t.length&&p.isString(t[0])&&p.isString(t[1]))?(n=2,[this._mapping,this.tops,i]=c(this.factors,this.group_padding,this.factor_padding)):o.every(this.factors,t=>p.isArray(t)&&3==t.length&&p.isString(t[0])&&p.isString(t[1])&&p.isString(t[2]))?(n=3,[this._mapping,this.tops,this.mids,i]=u(this.factors,this.group_padding,this.subgroup_padding,this.factor_padding)):h.unreachable();let s=0,e=this.factors.length+i;if("percent"==this.range_padding_units){const t=(e-s)*this.range_padding/2;s-=t,e+=t}else s-=this.range_padding,e+=this.range_padding;this.setv({start:s,end:e,levels:n},{silent:t}),"auto"==this.bounds&&this.setv({bounds:[s,e]},{silent:!0})}}i.FactorRange=l,l.__name__="FactorRange",l.init_FactorRange()},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),a=e(69),r=i.__importStar(e(19));class s extends a.Model{constructor(e){super(e),this.have_updated_interactively=!1}static init_Range(){this.define({bounds:[r.Any],min_interval:[r.Any],max_interval:[r.Any]}),this.internal({plots:[r.Array,[]]})}get is_reversed(){return this.start>this.end}}n.Range=s,s.__name__="Range",s.init_Range()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1).__importStar(e(87));i.generic_line_legend=function(e,t,{x0:i,x1:n,y0:c,y1:o},r){t.save(),t.beginPath(),t.moveTo(i,(c+o)/2),t.lineTo(n,(c+o)/2),e.line.doit&&(e.line.set_vectorize(t,r),t.stroke()),t.restore()},i.generic_area_legend=function(e,t,{x0:i,x1:n,y0:c,y1:o},r){const l=.1*Math.abs(n-i),a=.1*Math.abs(o-c),s=i+l,_=n-l,h=c+a,v=o-a;e.fill.doit&&(e.fill.set_vectorize(t,r),t.fillRect(s,h,_-s,v-h)),null!=e.hatch&&e.hatch.doit&&(e.hatch.set_vectorize(t,r),t.fillRect(s,h,_-s,v-h)),e.line&&e.line.doit&&(t.beginPath(),t.rect(s,h,_-s,v-h),e.line.set_vectorize(t,r),t.stroke())},i.line_interpolation=function(e,t,i,c,o,r){const{sx:l,sy:a}=t;let s,_,h,v;"point"==t.type?([h,v]=e.yscale.r_invert(a-1,a+1),[s,_]=e.xscale.r_invert(l-1,l+1)):"v"==t.direction?([h,v]=e.yscale.r_invert(a,a),[s,_]=[Math.min(i-1,o-1),Math.max(i+1,o+1)]):([s,_]=e.xscale.r_invert(l,l),[h,v]=[Math.min(c-1,r-1),Math.max(c+1,r+1)]);const{x,y}=n.check_2_segments_intersect(s,h,_,v,i,c,o,r);return[x,y]}},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=e(81),_=e(90),n=s.__importStar(e(87));class a extends l.XYGlyphView{_inner_loop(e,t,i,s,l){for(const _ of t)0!=_?isNaN(i[_]+s[_])?(e.closePath(),l.apply(e),e.beginPath()):e.lineTo(i[_],s[_]):(e.beginPath(),e.moveTo(i[_],s[_]));e.closePath(),l.call(e)}_render(e,t,{sx:i,sy:s}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner_loop(e,t,i,s,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner_loop(e,t,i,s,e.fill),()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_value(e),this._inner_loop(e,t,i,s,e.stroke))}draw_legend_for_index(e,t,i){_.generic_area_legend(this.visuals,e,t,i)}_hit_point(e){const t=n.create_empty_hit_test_result();return n.point_in_poly(e.sx,e.sy,this.sx,this.sy)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}}i.PatchView=a,a.__name__="PatchView";class o extends l.XYGlyph{constructor(e){super(e)}static init_Patch(){this.prototype.default_view=a,this.mixins(["line","fill","hatch"])}}i.Patch=o,o.__name__="Patch",o.init_Patch()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(93),n=e(82),_=i.__importStar(e(87)),a=i.__importStar(e(19));class h extends r.AreaView{_index_data(){const e=[];for(let t=0,s=this._x1.length;t<s;t++){const s=this._x1[t],i=this._x2[t],r=this._y[t];!isNaN(s+i+r)&&isFinite(s+i+r)&&e.push({x0:Math.min(s,i),y0:r,x1:Math.max(s,i),y1:r,i:t})}return new n.SpatialIndex(e)}_inner(e,t,s,i,r){e.beginPath();for(let s=0,r=t.length;s<r;s++)e.lineTo(t[s],i[s]);for(let t=s.length-1;t>=0;t–)e.lineTo(s[t],i[t]);e.closePath(),r.call(e)}_render(e,t,{sx1:s,sx2:i,sy:r}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner(e,s,i,r,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner(e,s,i,r,e.fill),()=>this.renderer.request_render())}_hit_point(e){const t=_.create_empty_hit_test_result(),s=this.sy.length,i=new Float64Array(2*s),r=new Float64Array(2*s);for(let e=0,t=s;e<t;e++)i[e]=this.sx1[e],r[e]=this.sy[e],i[s+e]=this.sx2[s-e-1],r[s+e]=this.sy[s-e-1];return _.point_in_poly(e.sx,e.sy,i,r)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}scenterx(e){return(this.sx1[e]+this.sx2[e])/2}scentery(e){return this.sy[e]}_map_data(){this.sx1=this.renderer.xscale.v_compute(this._x1),this.sx2=this.renderer.xscale.v_compute(this._x2),this.sy=this.renderer.yscale.v_compute(this._y)}}s.HAreaView=h,h.__name__="HAreaView";class l extends r.Area{constructor(e){super(e)}static init_HArea(){this.prototype.default_view=h,this.define({x1:[a.CoordinateSpec],x2:[a.CoordinateSpec],y:[a.CoordinateSpec]})}}s.HArea=l,l.__name__="HArea",l.init_HArea()},n”, ” function _(e,i,_){Object.defineProperty(_,"__esModule",{value:!0});const a=e(86),n=e(90);class s extends a.GlyphView{draw_legend_for_index(e,i,_){n.generic_area_legend(this.visuals,e,i,_)}}_.AreaView=s,s.__name__="AreaView";class r extends a.Glyph{constructor(e){super(e)}static init_Area(){this.mixins(["fill","hatch"])}}_.Area=r,r.__name__="Area",r.init_Area()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(93),n=e(82),_=i.__importStar(e(87)),a=i.__importStar(e(19));class h extends r.AreaView{_index_data(){const e=[];for(let t=0,s=this._x.length;t<s;t++){const s=this._x[t],i=this._y1[t],r=this._y2[t];!isNaN(s+i+r)&&isFinite(s+i+r)&&e.push({x0:s,y0:Math.min(i,r),x1:s,y1:Math.max(i,r),i:t})}return new n.SpatialIndex(e)}_inner(e,t,s,i,r){e.beginPath();for(let i=0,r=s.length;i<r;i++)e.lineTo(t[i],s[i]);for(let s=i.length-1;s>=0;s–)e.lineTo(t[s],i[s]);e.closePath(),r.call(e)}_render(e,t,{sx:s,sy1:i,sy2:r}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner(e,s,i,r,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner(e,s,i,r,e.fill),()=>this.renderer.request_render())}scenterx(e){return this.sx[e]}scentery(e){return(this.sy1[e]+this.sy2[e])/2}_hit_point(e){const t=_.create_empty_hit_test_result(),s=this.sx.length,i=new Float64Array(2*s),r=new Float64Array(2*s);for(let e=0,t=s;e<t;e++)i[e]=this.sx[e],r[e]=this.sy1[e],i[s+e]=this.sx[s-e-1],r[s+e]=this.sy2[s-e-1];return _.point_in_poly(e.sx,e.sy,i,r)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sy1=this.renderer.yscale.v_compute(this._y1),this.sy2=this.renderer.yscale.v_compute(this._y2)}}s.VAreaView=h,h.__name__="VAreaView";class l extends r.Area{constructor(e){super(e)}static init_VArea(){this.prototype.default_view=h,this.define({x:[a.CoordinateSpec],y1:[a.CoordinateSpec],y2:[a.CoordinateSpec]})}}s.VArea=l,l.__name__="VArea",l.init_VArea()},n”, ” function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),n=i(69),c=t.__importStar(i(19)),o=i(76),r=i(9),_=i(74);class h extends n.Model{constructor(i){super(i)}static init_CDSView(){this.define({filters:[c.Array,[]],source:[c.Instance]}),this.internal({indices:[c.Array,[]],indices_map:[c.Any,{}]})}initialize(){super.initialize(),this.compute_indices()}connect_signals(){super.connect_signals(),this.connect(this.properties.filters.change,()=>{this.compute_indices(),this.change.emit()});const i=()=>{const i=()=>this.compute_indices();null!=this.source&&(this.connect(this.source.change,i),this.source instanceof _.ColumnarDataSource&&(this.connect(this.source.streaming,i),this.connect(this.source.patching,i)))};let e=null!=this.source;e?i():this.connect(this.properties.source.change,()=>{e||(i(),e=!0)})}compute_indices(){const i=this.filters.map(i=>i.compute_indices(this.source)).filter(i=>null!=i);i.length>0?this.indices=r.intersection.apply(this,i):this.source instanceof _.ColumnarDataSource&&(this.indices=this.source.get_indices()),this.indices_map_to_subset()}indices_map_to_subset(){this.indices_map={};for(let i=0;i<this.indices.length;i++)this.indices_map[this.indices[i]]=i}convert_selection_from_subset(i){const e=new o.Selection;e.update_through_union(i);const s=i.indices.map(i=>this.indices[i]);return e.indices=s,e.image_indices=i.image_indices,e}convert_selection_to_subset(i){const e=new o.Selection;e.update_through_union(i);const s=i.indices.map(i=>this.indices_map[i]);return e.indices=s,e.image_indices=i.image_indices,e}convert_indices_from_subset(i){return i.map(i=>this.indices[i])}}s.CDSView=h,h.__name__="CDSView",h.init_CDSView()},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(9);async function o(e,n,t){const i=new e(Object.assign(Object.assign({},t),{model:n}));return i.initialize(),await i.lazy_initialize(),i}t.build_view=async function(e,n={parent:null},t=(e=>e.default_view)){const i=await o(t(e),e,n);return i.connect_signals(),i},t.build_views=async function(e,n,t={parent:null},c=(e=>e.default_view)){const s=i.difference(Object.keys(e),n.map(e=>e.id));for(const n of s)e[n].remove(),delete e[n];const a=[],l=n.filter(n=>null==e[n.id]);for(const n of l){const i=await o(c(n),n,t);e[n.id]=i,a.push(i)}for(const e of a)e.connect_signals();return a},t.remove_views=function(e){for(const n in e)e[n].remove(),delete e[n]}},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(1),r=e(79),a=e(98),i=s.__importStar(e(19)),d=e(96);class _ extends r.DataRendererView{initialize(){super.initialize(),this.xscale=this.plot_view.frame.xscales.default,this.yscale=this.plot_view.frame.yscales.default,this._renderer_views={}}async lazy_initialize(){[this.node_view,this.edge_view]=await d.build_views(this._renderer_views,[this.model.node_renderer,this.model.edge_renderer],{parent:this.parent}),this.set_data()}connect_signals(){super.connect_signals(),this.connect(this.model.layout_provider.change,()=>this.set_data()),this.connect(this.model.node_renderer.data_source._select,()=>this.set_data()),this.connect(this.model.node_renderer.data_source.inspect,()=>this.set_data()),this.connect(this.model.node_renderer.data_source.change,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source._select,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source.inspect,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source.change,()=>this.set_data());const{x_ranges:e,y_ranges:t}=this.plot_view.frame;for(const t in e){const n=e[t];this.connect(n.change,()=>this.set_data())}for(const e in t){const n=t[e];this.connect(n.change,()=>this.set_data())}}set_data(e=!0){this.node_view.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0}),this.edge_view.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0});const t=this.node_view.glyph;[t._x,t._y]=this.model.layout_provider.get_node_coordinates(this.model.node_renderer.data_source);const n=this.edge_view.glyph;[n._xs,n._ys]=this.model.layout_provider.get_edge_coordinates(this.model.edge_renderer.data_source),t.index_data(),n.index_data(),e&&this.request_render()}render(){this.edge_view.render(),this.node_view.render()}}n.GraphRendererView=_,_.__name__="GraphRendererView";class o extends r.DataRenderer{constructor(e){super(e)}static init_GraphRenderer(){this.prototype.default_view=_,this.define({layout_provider:[i.Instance],node_renderer:[i.Instance],edge_renderer:[i.Instance],selection_policy:[i.Instance,()=>new a.NodesOnly],inspection_policy:[i.Instance,()=>new a.NodesOnly]})}get_selection_manager(){return this.node_renderer.data_source.selection_manager}}n.GraphRenderer=o,o.__name__="GraphRenderer",o.init_GraphRenderer()},n”, ” function _(e,t,d){Object.defineProperty(d,"__esModule",{value:!0});const n=e(69),s=e(12),o=e(9),_=e(87);class i extends n.Model{constructor(e){super(e)}_hit_test_nodes(e,t){if(!t.model.visible)return null;const d=t.node_view.glyph.hit_test(e);return null==d?null:t.node_view.model.view.convert_selection_from_subset(d)}_hit_test_edges(e,t){if(!t.model.visible)return null;const d=t.edge_view.glyph.hit_test(e);return null==d?null:t.edge_view.model.view.convert_selection_from_subset(d)}}d.GraphHitTestPolicy=i,i.__name__="GraphHitTestPolicy";class r extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_nodes(e,t)}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;return s.update(e,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.model.get_selection_manager().get_or_create_inspector(d.node_view.model);return o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view,{geometry:t}]),!o.is_empty()}}d.NodesOnly=r,r.__name__="NodesOnly";class c extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_nodes(e,t)}get_linked_edges(e,t,d){let n=[];"selection"==d?n=e.selected.indices.map(t=>e.data.index[t]):"inspection"==d&&(n=e.inspected.indices.map(t=>e.data.index[t]));const s=[];for(let e=0;e<t.data.start.length;e++)(o.contains(n,t.data.start[e])||o.contains(n,t.data.end[e]))&&s.push(e);const i=_.create_empty_hit_test_result();for(const e of s)i.multiline_indices[e]=[0];return i.indices=s,i}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;s.update(e,d,n);const o=t.edge_renderer.data_source.selected,_=this.get_linked_edges(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.update(_,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model);o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0});const _=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model),i=this.get_linked_edges(d.node_view.model.data_source,d.edge_view.model.data_source,"inspection");return _.update(i,n,s),d.edge_view.model.data_source.setv({inspected:_},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view,{geometry:t}]),!o.is_empty()}}d.NodesAndLinkedEdges=c,c.__name__="NodesAndLinkedEdges";class a extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_edges(e,t)}get_linked_nodes(e,t,d){let n=[];"selection"==d?n=t.selected.indices:"inspection"==d&&(n=t.inspected.indices);const i=[];for(const e of n)i.push(t.data.start[e]),i.push(t.data.end[e]);const r=o.uniq(i).map(t=>s.indexOf(e.data.index,t)),c=_.create_empty_hit_test_result();return c.indices=r,c}do_selection(e,t,d,n){if(null==e)return!1;const s=t.edge_renderer.data_source.selected;s.update(e,d,n);const o=t.node_renderer.data_source.selected,_=this.get_linked_nodes(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.update(_,d,n),t.edge_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model);o.update(e,n,s),d.edge_view.model.data_source.setv({inspected:o},{silent:!0});const _=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model),i=this.get_linked_nodes(d.node_view.model.data_source,d.edge_view.model.data_source,"inspection");return _.update(i,n,s),d.node_view.model.data_source.setv({inspected:_},{silent:!0}),d.edge_view.model.data_source.inspect.emit([d.edge_view,{geometry:t}]),!o.is_empty()}}d.EdgesAndLinkedNodes=a,a.__name__="EdgesAndLinkedNodes"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(69);class o extends s.Model{do_selection(e,t,n,s){return null!==e&&(t.selected.update(e,n,s),t._select.emit(),!t.selected.is_empty())}}n.SelectionPolicy=o,o.__name__="SelectionPolicy";class r extends o{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!==t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_intersection(t);return e}return null}}n.IntersectRenderers=r,r.__name__="IntersectRenderers";class c extends o{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!==t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_union(t);return e}return null}}n.UnionRenderers=c,c.__name__="UnionRenderers"},n”, ” function _(r,n,t){Object.defineProperty(t,"__esModule",{value:!0});const e=r(8),a=r(101);function o(r){const n=new Uint8Array(r.buffer,r.byteOffset,2*r.length);for(let r=0,t=n.length;r<t;r+=2){const t=n[r];n[r]=n[r+1],n[r+1]=t}}function i(r){const n=new Uint8Array(r.buffer,r.byteOffset,4*r.length);for(let r=0,t=n.length;r<t;r+=4){let t=n[r];n[r]=n[r+3],n[r+3]=t,t=n[r+1],n[r+1]=n[r+2],n[r+2]=t}}function s(r){const n=new Uint8Array(r.buffer,r.byteOffset,8*r.length);for(let r=0,t=n.length;r<t;r+=8){let t=n[r];n[r]=n[r+7],n[r+7]=t,t=n[r+1],n[r+1]=n[r+6],n[r+6]=t,t=n[r+2],n[r+2]=n[r+5],n[r+5]=t,t=n[r+3],n[r+3]=n[r+4],n[r+4]=t}}function c(r,n){const e=r.order!==t.BYTE_ORDER,{shape:a}=r;let c=null;for(const t of n){if(JSON.parse(t[0]).id===r.__buffer__){c=t[1];break}}const f=new t.ARRAY_TYPES[r.dtype](c);return e&&(2===f.BYTES_PER_ELEMENT?o(f):4===f.BYTES_PER_ELEMENT?i(f):8===f.BYTES_PER_ELEMENT&&s(f)),[f,a]}function f(r,n){return e.isObject(r)&&"__ndarray__"in r?A(r):e.isObject(r)&&"__buffer__"in r?c(r,n):e.isArray(r)||e.isTypedArray(r)?[r,[]]:void 0}function u(r){const n=new Uint8Array(r),t=Array.from(n).map(r=>String.fromCharCode(r));return btoa(t.join(""))}function y(r){const n=atob(r),t=n.length,e=new Uint8Array(t);for(let r=0,a=t;r<a;r++)e[r]=n.charCodeAt(r);return e.buffer}function A(r){const n=y(r.__ndarray__),e=r.dtype,a=r.shape;let o;if(!(e in t.ARRAY_TYPES))throw new Error(unknown dtype: ${e});return o=new t.ARRAY_TYPES[e](n),[o,a]}function l(r,n){const e=u(r.buffer),a=function(r){if("name"in r.constructor)return r.constructor.name;switch(!0){case r instanceof Uint8Array:return"Uint8Array";case r instanceof Int8Array:return"Int8Array";case r instanceof Uint16Array:return"Uint16Array";case r instanceof Int16Array:return"Int16Array";case r instanceof Uint32Array:return"Uint32Array";case r instanceof Int32Array:return"Int32Array";case r instanceof Float32Array:return"Float32Array";case r instanceof Float64Array:return"Float64Array";default:throw new Error("unsupported typed array")}}(r);let o;if(!(a in t.DTYPES))throw new Error(unknown array type: ${a});return o=t.DTYPES[a],{__ndarray__:e,shape:n,dtype:o}}function _(r,n){if(0==r.length||!e.isObject(r[0])&&!e.isArray(r[0]))return[r,[]];const t=[],a=[];for(const o of r){const[r,i]=e.isArray(o)?_(o,n):f(o,n);t.push(r),a.push(i)}return[t,a.map(r=>r.filter(r=>0!=r.length))]}function d(r,n){const t=[];for(let a=0,o=r.length;a<o;a++){const o=r[a];if(e.isTypedArray(o)){const r=n[a]?n[a]:void 0;t.push(l(o,r))}else e.isArray(o)?t.push(d(o,n?n[a]:[])):t.push(o)}return t}t.ARRAY_TYPES={uint8:Uint8Array,int8:Int8Array,uint16:Uint16Array,int16:Int16Array,uint32:Uint32Array,int32:Int32Array,float32:Float32Array,float64:Float64Array},t.DTYPES={Uint8Array:"uint8",Int8Array:"int8",Uint16Array:"uint16",Int16Array:"int16",Uint32Array:"uint32",Int32Array:"int32",Float32Array:"float32",Float64Array:"float64"},t.BYTE_ORDER=a.is_little_endian?"little":"big",t.swap16=o,t.swap32=i,t.swap64=s,t.process_buffer=c,t.process_array=f,t.arrayBufferToBase64=u,t.base64ToArrayBuffer=y,t.decode_base64=A,t.encode_base64=l,t.decode_column_data=function(r,n=[]){const t={},a={};for(const o in r){const i=r[o];if(e.isArray(i)){if(0==i.length||!e.isObject(i[0])&&!e.isArray(i[0])){t[o]=i;continue}const[r,s]=_(i,n);t[o]=r,a[o]=s}else{const[r,e]=f(i,n);t[o]=r,a[o]=e}}return[t,a]},t.encode_column_data=function(r,n){const t={};for(const a in r){const o=r[a],i=null!=n?n[a]:void 0;let s;s=e.isTypedArray(o)?l(o,i):e.isArray(o)?d(o,i||[]):o,t[a]=s}return t}},n”, ” function _(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.is_ie=(()=>{const e="undefined"!=typeof navigator?navigator.userAgent:"";return e.indexOf("MSIE")>=0||e.indexOf("Trident")>0||e.indexOf("Edge")>0})(),i.is_mobile="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0),i.is_little_endian=(()=>{const e=new ArrayBuffer(4),n=new Uint8Array(e);new Uint32Array(e)[1]=168496141;let i=!0;return 10==n[4]&&11==n[5]&&12==n[6]&&13==n[7]&&(i=!1),i})()},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.concat=function(t,…e){let n=t.length;for(const t of e)n+=t.length;const o=new t.constructor(n);o.set(t,0);let c=t.length;for(const t of e)o.set(t,c),c+=t.length;return o}},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(13);class o{constructor(e){this.document=e}}s.DocumentChangedEvent=o,o.__name__="DocumentChangedEvent";class r extends o{constructor(e,t,s){super(e),this.msg_type=t,this.msg_data=s}json(e){const t=this.msg_data,s=n.HasProps._value_to_json("",t,null);return n.HasProps._value_record_references(t,{},!0),{kind:"MessageSent",msg_type:this.msg_type,msg_data:s}}}s.MessageSentEvent=r,r.__name__="MessageSentEvent";class d extends o{constructor(e,t,s,n,o,r,d){super(e),this.model=t,this.attr=s,this.old=n,this.new_=o,this.setter_id=r,this.hint=d}json(e){if("id"===this.attr)throw new Error("’id’ field should never change, whatever code just set it is wrong");if(null!=this.hint)return this.hint.json(e);const t=this.new_,s=n.HasProps._value_to_json(this.attr,t,this.model),o={};n.HasProps._value_record_references(t,o,!0),this.model.id in o&&this.model!==t&&delete o[this.model.id];for(const t in o)e[t]=o[t];return{kind:"ModelChanged",model:this.model.ref(),attr:this.attr,new:s}}}s.ModelChangedEvent=d,d.__name__="ModelChangedEvent";class i extends o{constructor(e,t,s){super(e),this.column_source=t,this.patches=s}json(e){return{kind:"ColumnsPatched",column_source:this.column_source,patches:this.patches}}}s.ColumnsPatchedEvent=i,i.__name__="ColumnsPatchedEvent";class _ extends o{constructor(e,t,s,n){super(e),this.column_source=t,this.data=s,this.rollover=n}json(e){return{kind:"ColumnsStreamed",column_source:this.column_source,data:this.data,rollover:this.rollover}}}s.ColumnsStreamedEvent=_,_.__name__="ColumnsStreamedEvent";class a extends o{constructor(e,t,s){super(e),this.title=t,this.setter_id=s}json(e){return{kind:"TitleChanged",title:this.title}}}s.TitleChangedEvent=a,a.__name__="TitleChangedEvent";class l extends o{constructor(e,t,s){super(e),this.model=t,this.setter_id=s}json(e){return n.HasProps._value_record_references(this.model,e,!0),{kind:"RootAdded",model:this.model.ref()}}}s.RootAddedEvent=l,l.__name__="RootAddedEvent";class h extends o{constructor(e,t,s){super(e),this.model=t,this.setter_id=s}json(e){return{kind:"RootRemoved",model:this.model.ref()}}}s.RootRemovedEvent=h,h.__name__="RootRemovedEvent"},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),_=e(29),o=e(73),l=i.__importStar(e(19));class a extends _.AnnotationView{initialize(){super.initialize(),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source)),this.connect(this.model.source.change,()=>this.set_data(this.model.source))}set_data(e){super.set_data(e),this.visuals.warm_cache(e),this.plot_view.request_render()}_map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=e.xscales[this.model.x_range_name],i=e.yscales[this.model.y_range_name],_="height"==t?i:s,o="height"==t?s:i,l="height"==t?e.yview:e.xview,a="height"==t?e.xview:e.yview;let n,h,r;n="data"==this.model.properties.lower.units?_.v_compute(this._lower):l.v_compute(this._lower),h="data"==this.model.properties.upper.units?_.v_compute(this._upper):l.v_compute(this._upper),r="data"==this.model.properties.base.units?o.v_compute(this._base):a.v_compute(this._base);const[c,p]="height"==t?[1,0]:[0,1],u=[n,r],d=[h,r];this._lower_sx=u[c],this._lower_sy=u[p],this._upper_sx=d[c],this._upper_sy=d[p]}render(){if(!this.model.visible)return;this._map_data();const{ctx:e}=this.plot_view.canvas_view;e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let t=0,s=this._lower_sx.length;t<s;t++)e.lineTo(this._lower_sx[t],this._lower_sy[t]);for(let t=this._upper_sx.length-1;t>=0;t–)e.lineTo(this._upper_sx[t],this._upper_sy[t]);e.closePath(),this.visuals.fill.doit&&(this.visuals.fill.set_value(e),e.fill()),e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let t=0,s=this._lower_sx.length;t<s;t++)e.lineTo(this._lower_sx[t],this._lower_sy[t]);this.visuals.line.doit&&(this.visuals.line.set_value(e),e.stroke()),e.beginPath(),e.moveTo(this._upper_sx[0],this._upper_sy[0]);for(let t=0,s=this._upper_sx.length;t<s;t++)e.lineTo(this._upper_sx[t],this._upper_sy[t]);this.visuals.line.doit&&(this.visuals.line.set_value(e),e.stroke())}}s.BandView=a,a.__name__="BandView";class n extends _.Annotation{constructor(e){super(e)}static init_Band(){this.prototype.default_view=a,this.mixins(["line","fill"]),this.define({lower:[l.DistanceSpec],upper:[l.DistanceSpec],base:[l.DistanceSpec],dimension:[l.Dimension,"height"],source:[l.Instance,()=>new o.ColumnDataSource],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}}s.Band=n,n.__name__="Band",n.init_Band()},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(1),l=t(29),o=t(14),n=t(66),a=s.__importStar(t(19)),h=t(85),r=t(106);e.EDGE_TOLERANCE=2.5;class d extends l.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),this.el.classList.add(r.bk_shading),n.undisplay(this.el)}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?(this.connect(this.model.change,()=>this.render()),this.connect(this.model.data_update,()=>this.render())):(this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.data_update,()=>this.plot_view.request_render()))}render(){if(this.model.visible||"css"!=this.model.render_mode||n.undisplay(this.el),!this.model.visible)return;if(null==this.model.left&&null==this.model.right&&null==this.model.top&&null==this.model.bottom)return void n.undisplay(this.el);const{frame:t}=this.plot_view,i=t.xscales[this.model.x_range_name],e=t.yscales[this.model.y_range_name],s=(t,i,e,s,l)=>{let o;return o=null!=t?this.model.screen?t:"data"==i?e.compute(t):s.compute(t):l,o};this.sleft=s(this.model.left,this.model.left_units,i,t.xview,t._left.value),this.sright=s(this.model.right,this.model.right_units,i,t.xview,t._right.value),this.stop=s(this.model.top,this.model.top_units,e,t.yview,t._top.value),this.sbottom=s(this.model.bottom,this.model.bottom_units,e,t.yview,t._bottom.value),("css"==this.model.render_mode?this._css_box.bind(this):this._canvas_box.bind(this))(this.sleft,this.sright,this.sbottom,this.stop)}_css_box(t,i,e,s){const l=this.model.properties.line_width.value(),o=Math.floor(i-t)-l,a=Math.floor(e-s)-l;this.el.style.left=`${t}px`,this.el.style.width=`${o}px`,this.el.style.top=`${s}px`,this.el.style.height=`${a}px`,this.visuals.line.doit&&(this.el.style.borderWidth=`${l}px`,this.el.style.borderColor=this.model.properties.line_color.value()),this.visuals.fill.doit&&(this.el.style.backgroundColor=this.model.properties.fill_color.value(),this.el.style.opacity=this.model.properties.fill_alpha.value());const h=this.model.properties.line_dash.value().length<2?"solid":"dashed";this.el.style.borderStyle=h,n.display(this.el)}_canvas_box(t,i,e,s){const{ctx:l}=this.plot_view.canvas_view;l.save(),l.beginPath(),l.rect(t,s,i-t,e-s),this.visuals.fill.doit&&(this.visuals.fill.set_value(l),l.fill()),this.visuals.line.doit&&(this.visuals.line.set_value(l),l.stroke()),l.restore()}interactive_bbox(){const t=this.model.properties.line_width.value()+e.EDGE_TOLERANCE;return new h.BBox({x0:this.sleft-t,y0:this.stop-t,x1:this.sright+t,y1:this.sbottom+t})}interactive_hit(t,i){if(null==this.model.in_cursor)return!1;return this.interactive_bbox().contains(t,i)}cursor(t,i){return Math.abs(t-this.sleft)<3||Math.abs(t-this.sright)<3?this.model.ew_cursor:Math.abs(i-this.sbottom)<3||Math.abs(i-this.stop)<3?this.model.ns_cursor:t>this.sleft&&t<this.sright&&i>this.stop&&i<this.sbottom?this.model.in_cursor:null}}e.BoxAnnotationView=d,d.__name__="BoxAnnotationView";class _ extends l.Annotation{constructor(t){super(t)}static init_BoxAnnotation(){this.prototype.default_view=d,this.mixins(["line","fill"]),this.define({render_mode:[a.RenderMode,"canvas"],x_range_name:[a.String,"default"],y_range_name:[a.String,"default"],top:[a.Number,null],top_units:[a.SpatialUnits,"data"],bottom:[a.Number,null],bottom_units:[a.SpatialUnits,"data"],left:[a.Number,null],left_units:[a.SpatialUnits,"data"],right:[a.Number,null],right_units:[a.SpatialUnits,"data"]}),this.internal({screen:[a.Boolean,!1],ew_cursor:[a.String,null],ns_cursor:[a.String,null],in_cursor:[a.String,null]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}initialize(){super.initialize(),this.data_update=new o.Signal0(this,"data_update")}update({left:t,right:i,top:e,bottom:s}){this.setv({left:t,right:i,top:e,bottom:s,screen:!0},{silent:!0}),this.data_update.emit()}}e.BoxAnnotation=_,_.__name__="BoxAnnotation",_.init_BoxAnnotation()},n”, ” function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const a=n(1);n(67),a.__importStar(n(66)).styles.append(".bk-root .bk-shading {\n position: absolute;\n display: block;\n border: 1px dashed green;\n}\n"),t.bk_annotation="bk-annotation",t.bk_shading="bk-shading",t.bk_annotation_child="bk-annotation-child"},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1),s=t(29),a=t(108),l=t(112),r=t(114),n=t(119),_=t(129),h=t(130),m=o.__importStar(t(19)),d=o.__importStar(t(131)),c=t(9),u=t(12),p=t(24),g=t(8),f=t(11);class b extends s.AnnotationView{initialize(){super.initialize(),this._set_canvas_image()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.visible.change,()=>this.plot_view.request_render()),this.connect(this.model.ticker.change,()=>this.plot_view.request_render()),this.connect(this.model.formatter.change,()=>this.plot_view.request_render()),null!=this.model.color_mapper&&this.connect(this.model.color_mapper.change,()=>{this._set_canvas_image(),this.plot_view.request_render()})}_get_size(){if(null==this.model.color_mapper)return{width:0,height:0};{const{width:t,height:e}=this.compute_legend_dimensions();return{width:t,height:e}}}_set_canvas_image(){if(null==this.model.color_mapper)return;let t,e,{palette:i}=this.model.color_mapper;switch("vertical"==this.model.orientation&&(i=c.reversed(i)),this.model.orientation){case"vertical":[t,e]=[1,i.length];break;case"horizontal":[t,e]=[i.length,1]}const o=document.createElement("canvas");o.width=t,o.height=e;const s=o.getContext("2d"),a=s.getImageData(0,0,t,e),l=new r.LinearColorMapper({palette:i}).rgba_mapper.v_compute(c.range(0,i.length));a.data.set(l),s.putImageData(a,0,0),this.image=o}compute_legend_dimensions(){const t=this._computed_image_dimensions(),[e,i]=[t.height,t.width],o=this._get_label_extent(),s=this._title_extent(),a=this._tick_extent(),{padding:l}=this.model;let r,n;switch(this.model.orientation){case"vertical":r=e+s+2*l,n=i+a+o+2*l;break;case"horizontal":r=e+s+a+o+2*l,n=i+2*l}return{width:n,height:r}}compute_legend_location(){const t=this.compute_legend_dimensions(),[e,i]=[t.height,t.width],o=this.model.margin,s=null!=this.panel?this.panel:this.plot_view.frame,[a,l]=s.bbox.ranges,{location:r}=this.model;let n,_;if(g.isString(r))switch(r){case"top_left":n=a.start+o,_=l.start+o;break;case"top_center":n=(a.end+a.start)/2-i/2,_=l.start+o;break;case"top_right":n=a.end-o-i,_=l.start+o;break;case"bottom_right":n=a.end-o-i,_=l.end-o-e;break;case"bottom_center":n=(a.end+a.start)/2-i/2,_=l.end-o-e;break;case"bottom_left":n=a.start+o,_=l.end-o-e;break;case"center_left":n=a.start+o,_=(l.end+l.start)/2-e/2;break;case"center":n=(a.end+a.start)/2-i/2,_=(l.end+l.start)/2-e/2;break;case"center_right":n=a.end-o-i,_=(l.end+l.start)/2-e/2}else if(g.isArray(r)&&2==r.length){const[t,i]=r;n=s.xview.compute(t),_=s.yview.compute(i)-e}else f.unreachable();return{sx:n,sy:_}}render(){if(!this.model.visible||null==this.model.color_mapper)return;const{ctx:t}=this.plot_view.canvas_view;t.save();const{sx:e,sy:i}=this.compute_legend_location();t.translate(e,i),this._draw_bbox(t);const o=this._get_image_offset();if(t.translate(o.x,o.y),this._draw_image(t),null!=this.model.color_mapper.low&&null!=this.model.color_mapper.high){const e=this.tick_info();this._draw_major_ticks(t,e),this._draw_minor_ticks(t,e),this._draw_major_labels(t,e)}this.model.title&&this._draw_title(t),t.restore()}_draw_bbox(t){const e=this.compute_legend_dimensions();t.save(),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(0,0,e.width,e.height)),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.strokeRect(0,0,e.width,e.height)),t.restore()}_draw_image(t){const e=this._computed_image_dimensions();t.save(),t.setImageSmoothingEnabled(!1),t.globalAlpha=this.model.scale_alpha,t.drawImage(this.image,0,0,e.width,e.height),this.visuals.bar_line.doit&&(this.visuals.bar_line.set_value(t),t.strokeRect(0,0,e.width,e.height)),t.restore()}_draw_major_ticks(t,e){if(!this.visuals.major_tick_line.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],[r,n]=e.coords.major,_=this.model.major_tick_in,h=this.model.major_tick_out;t.save(),t.translate(a,l),this.visuals.major_tick_line.set_value(t);for(let e=0,s=r.length;e<s;e++)t.beginPath(),t.moveTo(Math.round(r[e]+i*h),Math.round(n[e]+o*h)),t.lineTo(Math.round(r[e]-i*_),Math.round(n[e]-o*_)),t.stroke();t.restore()}_draw_minor_ticks(t,e){if(!this.visuals.minor_tick_line.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],[r,n]=e.coords.minor,_=this.model.minor_tick_in,h=this.model.minor_tick_out;t.save(),t.translate(a,l),this.visuals.minor_tick_line.set_value(t);for(let e=0,s=r.length;e<s;e++)t.beginPath(),t.moveTo(Math.round(r[e]+i*h),Math.round(n[e]+o*h)),t.lineTo(Math.round(r[e]-i*_),Math.round(n[e]-o*_)),t.stroke();t.restore()}_draw_major_labels(t,e){if(!this.visuals.major_label_text.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],r=this.model.label_standoff+this._tick_extent(),[n,_]=[r*i,r*o],[h,m]=e.coords.major,d=e.labels.major;this.visuals.major_label_text.set_value(t),t.save(),t.translate(a+n,l+_);for(let e=0,s=h.length;e<s;e++)t.fillText(d[e],Math.round(h[e]+i*this.model.label_standoff),Math.round(m[e]+o*this.model.label_standoff));t.restore()}_draw_title(t){this.visuals.title_text.doit&&(t.save(),this.visuals.title_text.set_value(t),t.fillText(this.model.title,0,-this.model.title_standoff),t.restore())}_get_label_extent(){const t=this.tick_info().labels.major;let e;if(null==this.model.color_mapper.low||null==this.model.color_mapper.high||p.isEmpty(t))e=0;else{const{ctx:i}=this.plot_view.canvas_view;switch(i.save(),this.visuals.major_label_text.set_value(i),this.model.orientation){case"vertical":e=c.max(t.map(t=>i.measureText(t.toString()).width));break;case"horizontal":e=d.measure_font(this.visuals.major_label_text.font_value()).height}e+=this.model.label_standoff,i.restore()}return e}_get_image_offset(){return{x:this.model.padding,y:this.model.padding+this._title_extent()}}_normals(){return"vertical"==this.model.orientation?[1,0]:[0,1]}_title_extent(){const t=this.model.title_text_font+" "+this.model.title_text_font_size+" "+this.model.title_text_font_style;return this.model.title?d.measure_font(t).height+this.model.title_standoff:0}_tick_extent(){return null!=this.model.color_mapper.low&&null!=this.model.color_mapper.high?c.max([this.model.major_tick_out,this.model.minor_tick_out]):0}_computed_image_dimensions(){const t=this.plot_view.frame._height.value,e=this.plot_view.frame._width.value,i=this._title_extent();let o,s;switch(this.model.orientation){case"vertical":"auto"==this.model.height?null!=this.panel?o=t-2*this.model.padding-i:(o=c.max([25*this.model.color_mapper.palette.length,.3*t]),o=c.min([o,.8*t-2*this.model.padding-i])):o=this.model.height,s="auto"==this.model.width?25:this.model.width;break;case"horizontal":o="auto"==this.model.height?25:this.model.height,"auto"==this.model.width?null!=this.panel?s=e-2*this.model.padding:(s=c.max([25*this.model.color_mapper.palette.length,.3*e]),s=c.min([s,.8*e-2*this.model.padding])):s=this.model.width}return{width:s,height:o}}_tick_coordinate_scale(t){const e={source_range:new h.Range1d({start:this.model.color_mapper.low,end:this.model.color_mapper.high}),target_range:new h.Range1d({start:0,end:t})};switch(this.model.color_mapper.type){case"LinearColorMapper":return new n.LinearScale(e);case"LogColorMapper":return new _.LogScale(e);default:f.unreachable()}}_format_major_labels(t,e){const i=this.model.formatter.doFormat(t,null);for(let t=0,o=e.length;t<o;t++)e[t]in this.model.major_label_overrides&&(i[t]=this.model.major_label_overrides[e[t]]);return i}tick_info(){const t=this._computed_image_dimensions();let e;switch(this.model.orientation){case"vertical":e=t.height;break;case"horizontal":e=t.width}const i=this._tick_coordinate_scale(e),[o,s]=this._normals(),[a,l]=[this.model.color_mapper.low,this.model.color_mapper.high],r=this.model.ticker.get_ticks(a,l,null,null,this.model.ticker.desired_num_ticks),n=r.major,_=r.minor,h=[[],[]],m=[[],[]];for(let t=0,e=n.length;t<e;t++)n[t]<a||n[t]>l||(h[o].push(n[t]),h[s].push(0));for(let t=0,e=_.length;t<e;t++)_[t]<a||_[t]>l||(m[o].push(_[t]),m[s].push(0));const d={major:this._format_major_labels(h[o],n)},c={major:[[],[]],minor:[[],[]]};return c.major[o]=i.v_compute(h[o]),c.minor[o]=i.v_compute(m[o]),c.major[s]=h[s],c.minor[s]=m[s],"vertical"==this.model.orientation&&(c.major[o]=u.map(c.major[o],t=>e-t),c.minor[o]=u.map(c.minor[o],t=>e-t)),{coords:c,labels:d}}}i.ColorBarView=b,b.__name__="ColorBarView";class v extends s.Annotation{constructor(t){super(t)}static init_ColorBar(){this.prototype.default_view=b,this.mixins(["text:major_label_","text:title_","line:major_tick_","line:minor_tick_","line:border_","line:bar_","fill:background_"]),this.define({location:[m.Any,"top_right"],orientation:[m.Orientation,"vertical"],title:[m.String],title_standoff:[m.Number,2],width:[m.Any,"auto"],height:[m.Any,"auto"],scale_alpha:[m.Number,1],ticker:[m.Instance,()=>new a.BasicTicker],formatter:[m.Instance,()=>new l.BasicTickFormatter],major_label_overrides:[m.Any,{}],color_mapper:[m.Instance],label_standoff:[m.Number,5],margin:[m.Number,30],padding:[m.Number,10],major_tick_in:[m.Number,5],major_tick_out:[m.Number,0],minor_tick_in:[m.Number,0],minor_tick_out:[m.Number,0]}),this.override({background_fill_color:"#ffffff",background_fill_alpha:.95,bar_line_color:null,border_line_color:null,major_label_text_align:"center",major_label_text_baseline:"middle",major_label_text_font_size:"11px",major_tick_line_color:"#ffffff",minor_tick_line_color:null,title_text_font_size:"13px",title_text_font_style:"italic"})}}i.ColorBar=v,v.__name__="ColorBar",v.init_ColorBar()},n”, ” function _(e,c,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(109);class r extends i.AdaptiveTicker{constructor(e){super(e)}}s.BasicTicker=r,r.__name__="BasicTicker"},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const a=t(1),s=t(110),n=t(9),r=a.__importStar(t(19));class _ extends s.ContinuousTicker{constructor(t){super(t)}static init_AdaptiveTicker(){this.define({base:[r.Number,10],mantissas:[r.Array,[1,2,5]],min_interval:[r.Number,0],max_interval:[r.Number]})}initialize(){super.initialize();const t=n.nth(this.mantissas,-1)/this.base,i=n.nth(this.mantissas,0)*this.base;this.extended_mantissas=[t,…this.mantissas,i],this.base_factor=0===this.get_min_interval()?1:this.get_min_interval()}get_interval(t,i,e){const a=i-t,s=this.get_ideal_interval(t,i,e),r=Math.floor(function(t,i=Math.E){return Math.log(t)/Math.log(i)}(s/this.base_factor,this.base)),_=this.base**r*this.base_factor,h=this.extended_mantissas,m=h.map(t=>Math.abs(e-a/(t*_))),o=h[n.argmin(m)];return c=o*_,l=this.get_min_interval(),u=this.get_max_interval(),Math.max(l,Math.min(u,c));var c,l,u}}e.AdaptiveTicker=_,_.__name__="AdaptiveTicker",_.init_AdaptiveTicker()},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const n=t(1),r=t(111),s=n.__importStar(t(19)),o=t(9),_=t(8);class c extends r.Ticker{constructor(t){super(t)}static init_ContinuousTicker(){this.define({num_minor_ticks:[s.Number,5],desired_num_ticks:[s.Number,6]})}get_ticks(t,i,e,n,r){return this.get_ticks_no_defaults(t,i,n,this.desired_num_ticks)}get_ticks_no_defaults(t,i,e,n){const r=this.get_interval(t,i,n),s=Math.floor(t/r),c=Math.ceil(i/r);let u;u=_.isStrictNaN(s)||_.isStrictNaN(c)?[]:o.range(s,c+1);const a=u.map(t=>t*r).filter(e=>t<=e&&e<=i),l=this.num_minor_ticks,m=[];if(l>0&&a.length>0){const e=r/l,n=o.range(0,l).map(t=>t*e);for(const e of n.slice(1)){const n=a[0]-e;t<=n&&n<=i&&m.push(n)}for(const e of a)for(const r of n){const n=e+r;t<=n&&n<=i&&m.push(n)}}return{major:a,minor:m}}get_min_interval(){return this.min_interval}get_max_interval(){return null!=this.max_interval?this.max_interval:1/0}get_ideal_interval(t,i,e){return(i-t)/e}}e.ContinuousTicker=c,c.__name__="ContinuousTicker",c.init_ContinuousTicker()},n”, ” function _(e,c,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(69);class r extends o.Model{constructor(e){super(e)}}n.Ticker=r,r.__name__="Ticker"},n”, ” function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=i(1),s=i(113),n=r.__importStar(i(19));class o extends s.TickFormatter{constructor(i){super(i),this.last_precision=3}static init_BasicTickFormatter(){this.define({precision:[n.Any,"auto"],use_scientific:[n.Boolean,!0],power_limit_high:[n.Number,5],power_limit_low:[n.Number,-3]})}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}_need_sci(i){if(!this.use_scientific)return!1;const{scientific_limit_high:t}=this,{scientific_limit_low:e}=this,r=i.length<2?0:Math.abs(i[1]-i[0])/1e4;for(const s of i){const i=Math.abs(s);if(!(i<=r)&&(i>=t||i<=e))return!0}return!1}_format_with_precision(i,t,e){const r=new Array(i.length);if(t)for(let t=0,s=i.length;t<s;t++)r[t]=i[t].toExponential(e);else for(let t=0,s=i.length;t<s;t++)r[t]=i[t].toFixed(e).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");return r}_auto_precision(i,t){const e=new Array(i.length),r=this.last_precision<=15;i:for(let s=this.last_precision;r?s<=15:s>=1;r?s++:s–){if(t){e[0]=i[0].toExponential(s);for(let t=1;t<i.length;t++)if(e[t]==e[t-1])continue i;this.last_precision=s;break}e[0]=i[0].toFixed(s).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");for(let t=1;t<i.length;t++)if(e[t]=i[t].toFixed(s).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,""),e[t]==e[t-1])continue i;this.last_precision=s;break}return this.last_precision}doFormat(i,t){if(0==i.length)return[];const e=this._need_sci(i),r="auto"==this.precision?this._auto_precision(i,e):this.precision;return this._format_with_precision(i,e,r)}}e.BasicTickFormatter=o,o.__name__="BasicTickFormatter",o.init_BasicTickFormatter()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(69);class c extends r.Model{constructor(e){super(e)}}o.TickFormatter=c,c.__name__="TickFormatter"},n”, ” function _(o,n,l){Object.defineProperty(l,"__esModule",{value:!0});const e=o(115),t=o(12);class i extends e.ContinuousColorMapper{constructor(o){super(o)}_v_compute(o,n,l,e){const{nan_color:i,low_color:r,high_color:s}=e,c=null!=this.low?this.low:t.min(o),h=null!=this.high?this.high:t.max(o),u=l.length-1,a=1/(h-c),_=1/l.length;for(let e=0,t=o.length;e<t;e++){const t=o[e];if(isNaN(t)){n[e]=i;continue}if(t==h){n[e]=l[u];continue}const p=(t-c)*a,f=Math.floor(p/_);n[e]=f<0?null!=r?r:l[0]:f>u?null!=s?s:l[u]:l[f]}}}l.LinearColorMapper=i,i.__name__="LinearColorMapper"},n”, ” function _(o,r,l){Object.defineProperty(l,"__esModule",{value:!0});const i=o(1),t=o(116),e=i.__importStar(o(19));class s extends t.ColorMapper{constructor(o){super(o)}static init_ContinuousColorMapper(){this.define({high:[e.Number],low:[e.Number],high_color:[e.Color],low_color:[e.Color]})}_colors(o){return Object.assign(Object.assign({},super._colors(o)),{low_color:null!=this.low_color?o(this.low_color):void 0,high_color:null!=this.high_color?o(this.high_color):void 0})}}l.ContinuousColorMapper=s,s.__name__="ContinuousColorMapper",s.init_ContinuousColorMapper()},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const n=t(1),o=t(117),_=n.__importStar(t(19)),i=t(8),l=t(21),c=t(101);function a(t){return i.isNumber(t)?t:("#"!=t[0]&&(t=l.color2hex(t)),9!=t.length&&(t+="ff"),parseInt(t.slice(1),16))}function s(t){const e=new Uint32Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=a(t[r]);return e}function p(t){if(c.is_little_endian){const e=new DataView(t.buffer);for(let r=0,n=t.length;r<n;r++)e.setUint32(4*r,t[r])}return new Uint8Array(t.buffer)}r._convert_color=a,r._convert_palette=s,r._uint32_to_rgba=p;class u extends o.Mapper{constructor(t){super(t)}static init_ColorMapper(){this.define({palette:[_.Any],nan_color:[_.Color,"gray"]})}v_compute(t){const e=new Array(t.length);return this._v_compute(t,e,this.palette,this._colors(t=>t)),e}get rgba_mapper(){const t=this,e=s(this.palette),r=this._colors(a);return{v_compute(n){const o=new Uint32Array(n.length);return t._v_compute(n,o,e,r),p(o)}}}_colors(t){return{nan_color:t(this.nan_color)}}}r.ColorMapper=u,u.__name__="ColorMapper",u.init_ColorMapper()},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(118);class s extends o.Transform{constructor(e){super(e)}compute(e){throw new Error("mapping single values is not supported")}}n.Mapper=s,s.__name__="Mapper"},n”, ” function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(69);class s extends r.Model{constructor(e){super(e)}}o.Transform=s,s.__name__="Transform"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e(120);class _ extends r.ContinuousScale{constructor(e){super(e)}compute(e){return this._linear_compute(e)}v_compute(e){return this._linear_v_compute(e)}invert(e){return this._linear_invert(e)}v_invert(e){return this._linear_v_invert(e)}}n.LinearScale=_,_.__name__="LinearScale"},n”, ” function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});const c=e(121);class s extends c.Scale{constructor(e){super(e)}}o.ContinuousScale=s,s.__name__="ContinuousScale"},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const n=t(1),_=t(122),s=n.__importStar(t(19));class i extends _.Transform{constructor(t){super(t)}static init_Scale(){this.internal({source_range:[s.Any],target_range:[s.Any]})}r_compute(t,e){return this.target_range.is_reversed?[this.compute(e),this.compute(t)]:[this.compute(t),this.compute(e)]}r_invert(t,e){return this.target_range.is_reversed?[this.invert(e),this.invert(t)]:[this.invert(t),this.invert(e)]}_linear_compute(t){const[e,r]=this._linear_compute_state();return e*t+r}_linear_v_compute(t){const[e,r]=this._linear_compute_state(),n=new Float64Array(t.length);for(let _=0;_<t.length;_++)n[_]=e*t[_]+r;return n}_linear_invert(t){const[e,r]=this._linear_compute_state();return(t-r)/e}_linear_v_invert(t){const[e,r]=this._linear_compute_state(),n=new Float64Array(t.length);for(let _=0;_<t.length;_++)n[_]=(t[_]-r)/e;return n}_linear_compute_state(){const t=this.source_range.start,e=this.source_range.end,r=this.target_range.start,n=(this.target_range.end-r)/(e-t);return[n,-n*t+r]}}r.Scale=i,i.__name__="Scale",i.init_Scale()},n”, ” function _(r,o,t){Object.defineProperty(t,"__esModule",{value:!0});var e=r(123);t.CustomJSTransform=e.CustomJSTransform;var a=r(124);t.Dodge=a.Dodge;var n=r(125);t.Interpolator=n.Interpolator;var p=r(126);t.Jitter=p.Jitter;var l=r(127);t.LinearInterpolator=l.LinearInterpolator;var v=r(128);t.StepInterpolator=v.StepInterpolator;var s=r(118);t.Transform=s.Transform},n”, ” function _(t,r,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),e=t(118),a=n.__importStar(t(19)),o=t(24),u=t(26);class i extends e.Transform{constructor(t){super(t)}static init_CustomJSTransform(){this.define({args:[a.Any,{}],func:[a.String,""],v_func:[a.String,""]})}get names(){return o.keys(this.args)}get values(){return o.values(this.args)}_make_transform(t,r){return new Function(…this.names,t,u.use_strict(r))}get scalar_transform(){return this._make_transform("x",this.func)}get vector_transform(){return this._make_transform("xs",this.v_func)}compute(t){return this.scalar_transform(…this.values,t)}v_compute(t){return this.vector_transform(…this.values,t)}}s.CustomJSTransform=i,i.__name__="CustomJSTransform",i.init_CustomJSTransform()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(1),o=e(118),i=e(88),s=n.__importStar(e(19)),a=e(8);class c extends o.Transform{constructor(e){super(e)}static init_Dodge(){this.define({value:[s.Number,0],range:[s.Instance]})}v_compute(e){let t;if(this.range instanceof i.FactorRange)t=this.range.v_synthetic(e);else{if(!a.isArrayableOf(e,a.isNumber))throw new Error("unexpected");t=e}const r=new Float64Array(t.length);for(let e=0;e<t.length;e++){const n=t[e];r[e]=this._compute(n)}return r}compute(e){if(this.range instanceof i.FactorRange)return this._compute(this.range.synthetic(e));if(a.isNumber(e))return this._compute(e);throw new Error("unexpected")}_compute(e){return e+this.value}}r.Dodge=c,c.__name__="Dodge",c.init_Dodge()},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const s=t(1),o=t(118),n=s.__importStar(t(19)),i=t(9),a=t(8);class h extends o.Transform{constructor(t){super(t),this._sorted_dirty=!0}static init_Interpolator(){this.define({x:[n.Any],y:[n.Any],data:[n.Any],clip:[n.Boolean,!0]})}connect_signals(){super.connect_signals(),this.connect(this.change,()=>this._sorted_dirty=!0)}v_compute(t){const e=new Float64Array(t.length);for(let r=0;r<t.length;r++){const s=t[r];e[r]=this.compute(s)}return e}sort(t=!1){if(!this._sorted_dirty)return;let e,r;if(a.isString(this.x)&&a.isString(this.y)&&null!=this.data){const t=this.data.columns();if(!i.includes(t,this.x))throw new Error("The x parameter does not correspond to a valid column name defined in the data parameter");if(!i.includes(t,this.y))throw new Error("The y parameter does not correspond to a valid column name defined in the data parameter");e=this.data.get_column(this.x),r=this.data.get_column(this.y)}else{if(!a.isArray(this.x)||!a.isArray(this.y))throw new Error("parameters ‘x’ and ‘y’ must be both either string fields or arrays");e=this.x,r=this.y}if(e.length!==r.length)throw new Error("The length for x and y do not match");if(e.length<2)throw new Error("x and y must have at least two elements to support interpolation");const s=[];for(const t in e)s.push({x:e[t],y:r[t]});t?s.sort((t,e)=>t.x>e.x?-1:t.x==e.x?0:1):s.sort((t,e)=>t.x<e.x?-1:t.x==e.x?0:1),this._x_sorted=[],this._y_sorted=[];for(const{x:t,y:e}of s)this._x_sorted.push(t),this._y_sorted.push(e);this._sorted_dirty=!1}}r.Interpolator=h,h.__name__="Interpolator",h.init_Interpolator()},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),n=t(118),s=t(88),o=t(8),u=i.__importStar(t(19)),a=i.__importStar(t(10));class h extends n.Transform{constructor(t){super(t)}static init_Jitter(){this.define({mean:[u.Number,0],width:[u.Number,1],distribution:[u.Distribution,"uniform"],range:[u.Instance]}),this.internal({previous_values:[u.Array]})}v_compute(t){if(null!=this.previous_values&&this.previous_values.length==t.length)return this.previous_values;let e;if(this.range instanceof s.FactorRange)e=this.range.v_synthetic(t);else{if(!o.isArrayableOf(t,o.isNumber))throw new Error("unexpected");e=t}const r=new Float64Array(e.length);for(let t=0;t<e.length;t++){const i=e[t];r[t]=this._compute(i)}return this.previous_values=r,r}compute(t){if(this.range instanceof s.FactorRange)return this._compute(this.range.synthetic(t));if(o.isNumber(t))return this._compute(t);throw new Error("unexpected")}_compute(t){switch(this.distribution){case"uniform":return t+this.mean+(a.random()-.5)*this.width;case"normal":return t+a.rnorm(this.mean,this.width)}}}r.Jitter=h,h.__name__="Jitter",h.init_Jitter()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const _=t(9),r=t(125);class o extends r.Interpolator{constructor(t){super(t)}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}if(t==this._x_sorted[0])return this._y_sorted[0];const s=_.find_last_index(this._x_sorted,s=>s<t),e=this._x_sorted[s],r=this._x_sorted[s+1],o=this._y_sorted[s],i=this._y_sorted[s+1];return o+(t-e)/(r-e)*(i-o)}}e.LinearInterpolator=o,o.__name__="LinearInterpolator"},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const s=t(1),o=t(125),_=s.__importStar(t(19)),i=t(9);class n extends o.Interpolator{constructor(t){super(t)}static init_StepInterpolator(){this.define({mode:[_.StepMode,"after"]})}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}let e;switch(this.mode){case"after":e=i.find_last_index(this._x_sorted,e=>t>=e);break;case"before":e=i.find_index(this._x_sorted,e=>t<=e);break;case"center":{const r=this._x_sorted.map(e=>Math.abs(e-t)),s=i.min(r);e=i.find_index(r,t=>s===t);break}default:throw new Error(unknown mode: ${this.mode})}return-1!=e?this._y_sorted[e]:NaN}}r.StepInterpolator=n,n.__name__="StepInterpolator",n.init_StepInterpolator()},n”, ” function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const a=t(120);class s extends a.ContinuousScale{constructor(t){super(t)}compute(t){const[e,o,a,s]=this._compute_state();let n;if(0==a)n=0;else{const r=(Math.log(t)-s)/a;n=isFinite(r)?r*e+o:NaN}return n}v_compute(t){const[e,o,a,s]=this._compute_state(),n=new Float64Array(t.length);if(0==a)for(let e=0;e<t.length;e++)n[e]=0;else for(let r=0;r<t.length;r++){const l=(Math.log(t[r])-s)/a;let c;c=isFinite(l)?l*e+o:NaN,n[r]=c}return n}invert(t){const[e,o,a,s]=this._compute_state(),n=(t-o)/e;return Math.exp(a*n+s)}v_invert(t){const[e,o,a,s]=this._compute_state(),n=new Float64Array(t.length);for(let r=0;r<t.length;r++){const l=(t[r]-o)/e;n[r]=Math.exp(a*l+s)}return n}_get_safe_factor(t,e){let o=t<0?0:t,a=e<0?0:e;if(o==a)if(0==o)[o,a]=[1,10];else{const t=Math.log(o)/Math.log(10);o=10**Math.floor(t),a=Math.ceil(t)!=Math.floor(t)?10**Math.ceil(t):10**(Math.ceil(t)+1)}return[o,a]}_compute_state(){const t=this.source_range.start,e=this.source_range.end,o=this.target_range.start,a=this.target_range.end-o,[s,n]=this._get_safe_factor(t,e);let r,l;return 0==s?(r=Math.log(n),l=0):(r=Math.log(n)-Math.log(s),l=Math.log(s)),[a,o,r,l]}}o.LogScale=s,s.__name__="LogScale"},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(89),r=i.__importStar(t(19));class a extends n.Range{constructor(t){super(t)}static init_Range1d(){this.define({start:[r.Number,0],end:[r.Number,1],reset_start:[r.Number],reset_end:[r.Number]})}_set_auto_bounds(){if("auto"==this.bounds){const t=Math.min(this.reset_start,this.reset_end),e=Math.max(this.reset_start,this.reset_end);this.setv({bounds:[t,e]},{silent:!0})}}initialize(){super.initialize(),null==this.reset_start&&(this.reset_start=this.start),null==this.reset_end&&(this.reset_end=this.end),this._set_auto_bounds()}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}reset(){this._set_auto_bounds(),this.start!=this.reset_start||this.end!=this.reset_end?this.setv({start:this.reset_start,end:this.reset_end}):this.change.emit()}}s.Range1d=a,a.__name__="Range1d",a.init_Range1d()},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const o=t(66),i={};n.measure_font=function(t){if(null!=i[t])return i[t];const e=o.span({style:{font:t}},"Hg"),n=o.div({style:{display:"inline-block",width:"1px",height:"0px"}}),l=o.div({},e,n);document.body.appendChild(l);try{n.style.verticalAlign="baseline";const s=o.offset(n).top-o.offset(e).top;n.style.verticalAlign="bottom";const d=o.offset(n).top-o.offset(e).top,c={height:d,ascent:s,descent:d-s};return i[t]=c,c}finally{document.body.removeChild(l)}};const l={};n.measure_text=function(t,e){const n=l[e];if(null!=n){const e=n[t];if(null!=e)return e}else l[e]={};const i=o.div({style:{display:"inline-block","white-space":"nowrap",font:e}},t);document.body.appendChild(i);try{const{width:n,height:o}=i.getBoundingClientRect();return l[e][t]={width:n,height:o},{width:n,height:o}}finally{document.body.removeChild(i)}}},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),a=e(133),l=e(66),n=s.__importStar(e(19));class o extends a.TextAnnotationView{initialize(){super.initialize(),this.visuals.warm_cache()}_get_size(){const{ctx:e}=this.plot_view.canvas_view;this.visuals.text.set_value(e);const{width:t,ascent:i}=e.measureText(this.model.text);return{width:t,height:i}}render(){if(this.model.visible||"css"!=this.model.render_mode||l.undisplay(this.el),!this.model.visible)return;let e;switch(this.model.angle_units){case"rad":e=-this.model.angle;break;case"deg":e=-this.model.angle*Math.PI/180}const t=null!=this.panel?this.panel:this.plot_view.frame,i=this.plot_view.frame.xscales[this.model.x_range_name],s=this.plot_view.frame.yscales[this.model.y_range_name];let a="data"==this.model.x_units?i.compute(this.model.x):t.xview.compute(this.model.x),n="data"==this.model.y_units?s.compute(this.model.y):t.yview.compute(this.model.y);a+=this.model.x_offset,n-=this.model.y_offset,("canvas"==this.model.render_mode?this._canvas_text.bind(this):this._css_text.bind(this))(this.plot_view.canvas_view.ctx,this.model.text,a,n,e)}}i.LabelView=o,o.__name__="LabelView";class _ extends a.TextAnnotation{constructor(e){super(e)}static init_Label(){this.prototype.default_view=o,this.mixins(["text","line:border_","fill:background_"]),this.define({x:[n.Number],x_units:[n.SpatialUnits,"data"],y:[n.Number],y_units:[n.SpatialUnits,"data"],text:[n.String],angle:[n.Angle,0],angle_units:[n.AngleUnits,"rad"],x_offset:[n.Number,0],y_offset:[n.Number,0],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({background_fill_color:null,border_line_color:null})}}i.Label=_,_.__name__="Label",_.init_Label()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),l=e(29),a=e(66),n=i.__importStar(e(19)),o=e(131),r=e(106),_=e(11);class h extends l.AnnotationView{constructor(){super(…arguments),this.rotate=!0}initialize(){super.initialize(),"css"==this.model.render_mode&&(this.el.classList.add(r.bk_annotation),this.plot_view.canvas_view.add_overlay(this.el))}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?this.connect(this.model.change,()=>this.render()):this.connect(this.model.change,()=>this.plot_view.request_render())}_calculate_text_dimensions(e,t){const{width:s}=e.measureText(t),{height:i}=o.measure_font(this.visuals.text.font_value());return[s,i]}_calculate_bounding_box_dimensions(e,t){const[s,i]=this._calculate_text_dimensions(e,t);let l,a;switch(e.textAlign){case"left":l=0;break;case"center":l=-s/2;break;case"right":l=-s;break;default:_.unreachable()}switch(e.textBaseline){case"top":a=0;break;case"middle":a=-.5*i;break;case"bottom":a=-1*i;break;case"alphabetic":a=-.8*i;break;case"hanging":a=-.17*i;break;case"ideographic":a=-.83*i;break;default:_.unreachable()}return[l,a,s,i]}_canvas_text(e,t,s,i,l){this.visuals.text.set_value(e);const a=this._calculate_bounding_box_dimensions(e,t);e.save(),e.beginPath(),e.translate(s,i),l&&e.rotate(l),e.rect(a[0],a[1],a[2],a[3]),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(e),e.fill()),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(e),e.stroke()),this.visuals.text.doit&&(this.visuals.text.set_value(e),e.fillText(t,0,0)),e.restore()}_css_text(e,t,s,i,l){a.undisplay(this.el),this.visuals.text.set_value(e);const n=this._calculate_bounding_box_dimensions(e,t),o=this.visuals.border_line.line_dash.value().length<2?"solid":"dashed";this.visuals.border_line.set_value(e),this.visuals.background_fill.set_value(e),this.el.style.position="absolute",this.el.style.left=`${s+n[0]}px`,this.el.style.top=`${i+n[1]}px`,this.el.style.color=`${this.visuals.text.text_color.value()}`,this.el.style.opacity=`${this.visuals.text.text_alpha.value()}`,this.el.style.font=`${this.visuals.text.font_value()}`,this.el.style.lineHeight="normal",l&&(this.el.style.transform=`rotate(${l}rad)`),this.visuals.background_fill.doit&&(this.el.style.backgroundColor=`${this.visuals.background_fill.color_value()}`),this.visuals.border_line.doit&&(this.el.style.borderStyle=`${o}`,this.el.style.borderWidth=`${this.visuals.border_line.line_width.value()}px`,this.el.style.borderColor=`${this.visuals.border_line.color_value()}`),this.el.textContent=t,a.display(this.el)}}s.TextAnnotationView=h,h.__name__="TextAnnotationView";class c extends l.Annotation{constructor(e){super(e)}static init_TextAnnotation(){this.define({render_mode:[n.RenderMode,"canvas"]})}}s.TextAnnotation=c,c.__name__="TextAnnotation",c.init_TextAnnotation()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),l=t(133),o=t(73),a=t(66),n=i.__importStar(t(19)),r=t(106);class _ extends l.TextAnnotationView{initialize(){if(super.initialize(),this.set_data(this.model.source),"css"==this.model.render_mode)for(let t=0,e=this._text.length;t<e;t++){const t=a.div({class:r.bk_annotation_child,style:{display:"none"}});this.el.appendChild(t)}}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?(this.connect(this.model.change,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.streaming,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.patching,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.change,()=>{this.set_data(this.model.source),this.render()})):(this.connect(this.model.change,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.streaming,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.patching,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.change,()=>{this.set_data(this.model.source),this.plot_view.request_render()}))}set_data(t){super.set_data(t),this.visuals.warm_cache(t)}_map_data(){const t=this.plot_view.frame.xscales[this.model.x_range_name],e=this.plot_view.frame.yscales[this.model.y_range_name],s=null!=this.panel?this.panel:this.plot_view.frame;return["data"==this.model.x_units?t.v_compute(this._x):s.xview.v_compute(this._x),"data"==this.model.y_units?e.v_compute(this._y):s.yview.v_compute(this._y)]}render(){if(this.model.visible||"css"!=this.model.render_mode||a.undisplay(this.el),!this.model.visible)return;const t="canvas"==this.model.render_mode?this._v_canvas_text.bind(this):this._v_css_text.bind(this),{ctx:e}=this.plot_view.canvas_view,[s,i]=this._map_data();for(let l=0,o=this._text.length;l<o;l++)t(e,l,this._text[l],s[l]+this._x_offset[l],i[l]-this._y_offset[l],this._angle[l])}_get_size(){const{ctx:t}=this.plot_view.canvas_view;this.visuals.text.set_value(t);const{width:e,ascent:s}=t.measureText(this._text[0]);return{width:e,height:s}}_v_canvas_text(t,e,s,i,l,o){this.visuals.text.set_vectorize(t,e);const a=this._calculate_bounding_box_dimensions(t,s);t.save(),t.beginPath(),t.translate(i,l),t.rotate(o),t.rect(a[0],a[1],a[2],a[3]),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_vectorize(t,e),t.fill()),this.visuals.border_line.doit&&(this.visuals.border_line.set_vectorize(t,e),t.stroke()),this.visuals.text.doit&&(this.visuals.text.set_vectorize(t,e),t.fillText(s,0,0)),t.restore()}_v_css_text(t,e,s,i,l,o){const n=this.el.children[e];n.textContent=s,this.visuals.text.set_vectorize(t,e);const r=this._calculate_bounding_box_dimensions(t,s),_=this.visuals.border_line.line_dash.value().length<2?"solid":"dashed";this.visuals.border_line.set_vectorize(t,e),this.visuals.background_fill.set_vectorize(t,e),n.style.position="absolute",n.style.left=`${i+r[0]}px`,n.style.top=`${l+r[1]}px`,n.style.color=`${this.visuals.text.text_color.value()}`,n.style.opacity=`${this.visuals.text.text_alpha.value()}`,n.style.font=`${this.visuals.text.font_value()}`,n.style.lineHeight="normal",o&&(n.style.transform=`rotate(${o}rad)`),this.visuals.background_fill.doit&&(n.style.backgroundColor=`${this.visuals.background_fill.color_value()}`),this.visuals.border_line.doit&&(n.style.borderStyle=`${_}`,n.style.borderWidth=`${this.visuals.border_line.line_width.value()}px`,n.style.borderColor=`${this.visuals.border_line.color_value()}`),a.display(n)}}s.LabelSetView=_,_.__name__="LabelSetView";class h extends l.TextAnnotation{constructor(t){super(t)}static init_LabelSet(){this.prototype.default_view=_,this.mixins(["text","line:border_","fill:background_"]),this.define({x:[n.NumberSpec],y:[n.NumberSpec],x_units:[n.SpatialUnits,"data"],y_units:[n.SpatialUnits,"data"],text:[n.StringSpec,{field:"text"}],angle:[n.AngleSpec,0],x_offset:[n.NumberSpec,{value:0}],y_offset:[n.NumberSpec,{value:0}],source:[n.Instance,()=>new o.ColumnDataSource],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({background_fill_color:null,border_line_color:null})}}s.LabelSet=h,h.__name__="LabelSet",h.init_LabelSet()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),l=t(29),n=s.__importStar(t(19)),h=t(14),a=t(131),_=t(85),o=t(9),r=t(24),d=t(8),c=t(11);class m extends l.AnnotationView{cursor(t,e){return"none"==this.model.click_policy?null:"pointer"}get legend_padding(){return null!=this.visuals.border_line.line_color.value()?this.model.padding:0}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.item_change,()=>this.plot_view.request_render())}compute_legend_bbox(){const t=this.model.get_legend_names(),{glyph_height:e,glyph_width:i}=this.model,{label_height:s,label_width:l}=this.model;this.max_label_height=o.max([a.measure_font(this.visuals.label_text.font_value()).height,s,e]);const{ctx:n}=this.plot_view.canvas_view;n.save(),this.visuals.label_text.set_value(n),this.text_widths={};for(const e of t)this.text_widths[e]=o.max([n.measureText(e).width,l]);this.visuals.title_text.set_value(n),this.title_height=this.model.title?a.measure_font(this.visuals.title_text.font_value()).height+this.model.title_standoff:0,this.title_width=this.model.title?n.measureText(this.model.title).width:0,n.restore();const h=Math.max(o.max(r.values(this.text_widths)),0),m=this.model.margin,{legend_padding:g}=this,b=this.model.spacing,{label_standoff:f}=this.model;let u,x;if("vertical"==this.model.orientation)u=t.length*this.max_label_height+Math.max(t.length-1,0)*b+2*g+this.title_height,x=o.max([h+i+f+2*g,this.title_width+2*g]);else{let e=2*g+Math.max(t.length-1,0)*b;for(const t in this.text_widths){const s=this.text_widths[t];e+=o.max([s,l])+i+f}x=o.max([this.title_width+2*g,e]),u=this.max_label_height+this.title_height+2*g}const p=null!=this.panel?this.panel:this.plot_view.frame,[v,w]=p.bbox.ranges,{location:y}=this.model;let k,N;if(d.isString(y))switch(y){case"top_left":k=v.start+m,N=w.start+m;break;case"top_center":k=(v.end+v.start)/2-x/2,N=w.start+m;break;case"top_right":k=v.end-m-x,N=w.start+m;break;case"bottom_right":k=v.end-m-x,N=w.end-m-u;break;case"bottom_center":k=(v.end+v.start)/2-x/2,N=w.end-m-u;break;case"bottom_left":k=v.start+m,N=w.end-m-u;break;case"center_left":k=v.start+m,N=(w.end+w.start)/2-u/2;break;case"center":k=(v.end+v.start)/2-x/2,N=(w.end+w.start)/2-u/2;break;case"center_right":k=v.end-m-x,N=(w.end+w.start)/2-u/2}else if(d.isArray(y)&&2==y.length){const[t,e]=y;k=p.xview.compute(t),N=p.yview.compute(e)-u}else c.unreachable();return new _.BBox({left:k,top:N,width:x,height:u})}interactive_bbox(){return this.compute_legend_bbox()}interactive_hit(t,e){return this.interactive_bbox().contains(t,e)}on_hit(t,e){let i;const{glyph_width:s}=this.model,{legend_padding:l}=this,n=this.model.spacing,{label_standoff:h}=this.model;let a=i=l;const o=this.compute_legend_bbox(),r="vertical"==this.model.orientation;for(const d of this.model.items){const c=d.get_labels_list_from_label_prop();for(const m of c){const c=o.x+a,g=o.y+i+this.title_height;let b,f;if([b,f]=r?[o.width-2*l,this.max_label_height]:[this.text_widths[m]+s+h,this.max_label_height],new _.BBox({left:c,top:g,width:b,height:f}).contains(t,e)){switch(this.model.click_policy){case"hide":for(const t of d.renderers)t.visible=!t.visible;break;case"mute":for(const t of d.renderers)t.muted=!t.muted}return!0}r?i+=this.max_label_height+n:a+=this.text_widths[m]+s+h+n}}return!1}render(){if(!this.model.visible)return;if(0==this.model.items.length)return;for(const t of this.model.items)t.legend=this.model;const{ctx:t}=this.plot_view.canvas_view,e=this.compute_legend_bbox();t.save(),this._draw_legend_box(t,e),this._draw_legend_items(t,e),this.model.title&&this._draw_title(t,e),t.restore()}_draw_legend_box(t,e){t.beginPath(),t.rect(e.x,e.y,e.width,e.height),this.visuals.background_fill.set_value(t),t.fill(),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.stroke())}_draw_legend_items(t,e){const{glyph_width:i,glyph_height:s}=this.model,{legend_padding:l}=this,n=this.model.spacing,{label_standoff:h}=this.model;let a=l,_=l;const r="vertical"==this.model.orientation;for(const d of this.model.items){const c=d.get_labels_list_from_label_prop(),m=d.get_field_from_label_prop();if(0==c.length)continue;const g=(()=>{switch(this.model.click_policy){case"none":return!0;case"hide":return o.every(d.renderers,t=>t.visible);case"mute":return o.every(d.renderers,t=>!t.muted)}})();for(const o of c){const c=e.x+a,b=e.y+_+this.title_height,f=c+i,u=b+s;r?_+=this.max_label_height+n:a+=this.text_widths[o]+i+h+n,this.visuals.label_text.set_value(t),t.fillText(o,f+h,b+this.max_label_height/2);for(const e of d.renderers){this.plot_view.renderer_views[e.id].draw_legend(t,c,f,b,u,m,o,d.index)}if(!g){let s,n;[s,n]=r?[e.width-2*l,this.max_label_height]:[this.text_widths[o]+i+h,this.max_label_height],t.beginPath(),t.rect(c,b,s,n),this.visuals.inactive_fill.set_value(t),t.fill()}}}}_draw_title(t,e){this.visuals.title_text.doit&&(t.save(),t.translate(e.x0,e.y0+this.title_height),this.visuals.title_text.set_value(t),t.fillText(this.model.title,this.legend_padding,this.legend_padding-this.model.title_standoff),t.restore())}_get_size(){const{width:t,height:e}=this.compute_legend_bbox();return{width:t+2*this.model.margin,height:e+2*this.model.margin}}}i.LegendView=m,m.__name__="LegendView";class g extends l.Annotation{constructor(t){super(t)}initialize(){super.initialize(),this.item_change=new h.Signal0(this,"item_change")}static init_Legend(){this.prototype.default_view=m,this.mixins(["text:label_","text:title_","fill:inactive_","line:border_","fill:background_"]),this.define({orientation:[n.Orientation,"vertical"],location:[n.Any,"top_right"],title:[n.String],title_standoff:[n.Number,5],label_standoff:[n.Number,5],glyph_height:[n.Number,20],glyph_width:[n.Number,20],label_height:[n.Number,20],label_width:[n.Number,20],margin:[n.Number,10],padding:[n.Number,10],spacing:[n.Number,3],items:[n.Array,[]],click_policy:[n.Any,"none"]}),this.override({border_line_color:"#e5e5e5",border_line_alpha:.5,border_line_width:1,background_fill_color:"#ffffff",background_fill_alpha:.95,inactive_fill_color:"white",inactive_fill_alpha:.7,label_text_font_size:"13px",label_text_baseline:"middle",title_text_font_size:"13px",title_text_font_style:"italic"})}get_legend_names(){const t=[];for(const e of this.items){const i=e.get_labels_list_from_label_prop();t.push(…i)}return t}}i.Legend=g,g.__name__="Legend",g.init_Legend()},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),l=e(69),i=e(74),s=e(137),_=t.__importStar(e(19)),o=e(70),a=e(9);class u extends l.Model{constructor(e){super(e)}static init_LegendItem(){this.define({label:[_.StringSpec,null],renderers:[_.Array,[]],index:[_.Number,null]})}_check_data_sources_on_renderers(){if(null!=this.get_field_from_label_prop()){if(this.renderers.length<1)return!1;const e=this.renderers[0].data_source;if(null!=e)for(const r of this.renderers)if(r.data_source!=e)return!1}return!0}_check_field_label_on_data_source(){const e=this.get_field_from_label_prop();if(null!=e){if(this.renderers.length<1)return!1;const r=this.renderers[0].data_source;if(null!=r&&!a.includes(r.columns(),e))return!1}return!0}initialize(){super.initialize(),this.legend=null,this.connect(this.change,()=>{null!=this.legend&&this.legend.item_change.emit()}),this._check_data_sources_on_renderers()||o.logger.error("Non matching data sources on legend item renderers"),this._check_field_label_on_data_source()||o.logger.error(Bad column name on label: ${this.label})}get_field_from_label_prop(){const{label:e}=this;return s.isField(e)?e.field:null}get_labels_list_from_label_prop(){if(s.isValue(this.label)){const{value:e}=this.label;return null!=e?[e]:[]}const e=this.get_field_from_label_prop();if(null!=e){let r;if(!this.renderers[0]||null==this.renderers[0].data_source)return["No source found"];if(r=this.renderers[0].data_source,r instanceof i.ColumnarDataSource){const n=r.get_column(e);return null!=n?a.uniq(Array.from(n)):["Invalid field"]}}return[]}}n.LegendItem=u,u.__name__="LegendItem",u.init_LegendItem()},n”, ” function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(8);n.isValue=function(e){return t.isPlainObject(e)&&"value"in e},n.isField=function(e){return t.isPlainObject(e)&&"field"in e}},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1),s=t(29),l=t(14),o=n.__importStar(t(19));class a extends s.AnnotationView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.data_update,()=>this.plot_view.request_render())}render(){if(!this.model.visible)return;const{xs:t,ys:e}=this.model;if(t.length!=e.length)return;if(t.length<3||e.length<3)return;const{frame:i}=this.plot_view,{ctx:n}=this.plot_view.canvas_view;for(let s=0,l=t.length;s<l;s++){let l,o;if("screen"!=this.model.xs_units)throw new Error("not implemented");if(l=this.model.screen?t[s]:i.xview.compute(t[s]),"screen"!=this.model.ys_units)throw new Error("not implemented");o=this.model.screen?e[s]:i.yview.compute(e[s]),0==s?(n.beginPath(),n.moveTo(l,o)):n.lineTo(l,o)}n.closePath(),this.visuals.line.doit&&(this.visuals.line.set_value(n),n.stroke()),this.visuals.fill.doit&&(this.visuals.fill.set_value(n),n.fill())}}i.PolyAnnotationView=a,a.__name__="PolyAnnotationView";class r extends s.Annotation{constructor(t){super(t)}static init_PolyAnnotation(){this.prototype.default_view=a,this.mixins(["line","fill"]),this.define({xs:[o.Array,[]],xs_units:[o.SpatialUnits,"data"],ys:[o.Array,[]],ys_units:[o.SpatialUnits,"data"],x_range_name:[o.String,"default"],y_range_name:[o.String,"default"]}),this.internal({screen:[o.Boolean,!1]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}initialize(){super.initialize(),this.data_update=new l.Signal0(this,"data_update")}update({xs:t,ys:e}){this.setv({xs:t,ys:e,screen:!0},{silent:!0}),this.data_update.emit()}}i.PolyAnnotation=r,r.__name__="PolyAnnotation",r.init_PolyAnnotation()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(29),l=n.__importStar(e(19));class o extends s.AnnotationView{initialize(){super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render())}render(){this.model.visible&&this._draw_slope()}_draw_slope(){const e=this.model.gradient,t=this.model.y_intercept;if(null==e||null==t)return;const{frame:i}=this.plot_view,n=i.xscales[this.model.x_range_name],s=i.yscales[this.model.y_range_name],l=i._top.value,o=l+i._height.value,a=(s.invert(l)-t)/e,_=(s.invert(o)-t)/e,r=n.compute(a),c=n.compute(_),{ctx:u}=this.plot_view.canvas_view;u.save(),u.beginPath(),this.visuals.line.set_value(u),u.moveTo(r,l),u.lineTo(c,o),u.stroke(),u.restore()}}i.SlopeView=o,o.__name__="SlopeView";class a extends s.Annotation{constructor(e){super(e)}static init_Slope(){this.prototype.default_view=o,this.mixins(["line"]),this.define({gradient:[l.Number,null],y_intercept:[l.Number,null],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"]}),this.override({line_color:"black"})}}i.Slope=a,a.__name__="Slope",a.init_Slope()},n”, ” function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),o=e(29),n=e(66),l=s.__importStar(e(19));class a extends o.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),this.el.style.position="absolute",n.undisplay(this.el)}connect_signals(){super.connect_signals(),this.model.for_hover?this.connect(this.model.properties.computed_location.change,()=>this._draw_span()):"canvas"==this.model.render_mode?(this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.properties.location.change,()=>this.plot_view.request_render())):(this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.location.change,()=>this._draw_span()))}render(){this.model.visible||"css"!=this.model.render_mode||n.undisplay(this.el),this.model.visible&&this._draw_span()}_draw_span(){const e=this.model.for_hover?this.model.computed_location:this.model.location;if(null==e)return void n.undisplay(this.el);const{frame:i}=this.plot_view,t=i.xscales[this.model.x_range_name],s=i.yscales[this.model.y_range_name],o=(i,t)=>this.model.for_hover?this.model.computed_location:"data"==this.model.location_units?i.compute(e):t.compute(e);let l,a,h,d;if("width"==this.model.dimension?(h=o(s,i.yview),a=i._left.value,d=i._width.value,l=this.model.properties.line_width.value()):(h=i._top.value,a=o(t,i.xview),d=this.model.properties.line_width.value(),l=i._height.value),"css"==this.model.render_mode)this.el.style.top=`${h}px`,this.el.style.left=`${a}px`,this.el.style.width=`${d}px`,this.el.style.height=`${l}px`,this.el.style.backgroundColor=this.model.properties.line_color.value(),this.el.style.opacity=this.model.properties.line_alpha.value(),n.display(this.el);else if("canvas"==this.model.render_mode){const{ctx:e}=this.plot_view.canvas_view;e.save(),e.beginPath(),this.visuals.line.set_value(e),e.moveTo(a,h),"width"==this.model.dimension?e.lineTo(a+d,h):e.lineTo(a,h+l),e.stroke(),e.restore()}}}t.SpanView=a,a.__name__="SpanView";class h extends o.Annotation{constructor(e){super(e)}static init_Span(){this.prototype.default_view=a,this.mixins(["line"]),this.define({render_mode:[l.RenderMode,"canvas"],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"],location:[l.Number,null],location_units:[l.SpatialUnits,"data"],dimension:[l.Dimension,"width"]}),this.override({line_color:"black"}),this.internal({for_hover:[l.Boolean,!1],computed_location:[l.Number,null]})}}t.Span=h,h.__name__="Span",h.init_Span()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1),a=e(133),s=e(66),n=e(68),o=l.__importStar(e(19));class r extends a.TextAnnotationView{initialize(){super.initialize(),this.visuals.text=new n.Text(this.model)}_get_location(){const e=this.panel,t=this.model.offset;let i,l;switch(e.side){case"above":case"below":switch(this.model.vertical_align){case"top":l=e._top.value+5;break;case"middle":l=e._vcenter.value;break;case"bottom":l=e._bottom.value-5}switch(this.model.align){case"left":i=e._left.value+t;break;case"center":i=e._hcenter.value;break;case"right":i=e._right.value-t}break;case"left":switch(this.model.vertical_align){case"top":i=e._left.value-5;break;case"middle":i=e._hcenter.value;break;case"bottom":i=e._right.value+5}switch(this.model.align){case"left":l=e._bottom.value-t;break;case"center":l=e._vcenter.value;break;case"right":l=e._top.value+t}break;case"right":switch(this.model.vertical_align){case"top":i=e._right.value-5;break;case"middle":i=e._hcenter.value;break;case"bottom":i=e._left.value+5}switch(this.model.align){case"left":l=e._top.value+t;break;case"center":l=e._vcenter.value;break;case"right":l=e._bottom.value-t}}return[i,l]}render(){if(!this.model.visible)return void("css"==this.model.render_mode&&s.undisplay(this.el));const{text:e}=this.model;if(null==e||0==e.length)return;this.model.text_baseline=this.model.vertical_align,this.model.text_align=this.model.align;const[t,i]=this._get_location(),l=this.panel.get_label_angle_heuristic("parallel");("canvas"==this.model.render_mode?this._canvas_text.bind(this):this._css_text.bind(this))(this.plot_view.canvas_view.ctx,e,t,i,l)}_get_size(){const{text:e}=this.model;if(null==e||0==e.length)return{width:0,height:0};{this.visuals.text.set_value(this.ctx);const{width:t,ascent:i}=this.ctx.measureText(e);return{width:t,height:i*this.visuals.text.text_line_height.value()+10}}}}i.TitleView=r,r.__name__="TitleView";class c extends a.TextAnnotation{constructor(e){super(e)}static init_Title(){this.prototype.default_view=r,this.mixins(["line:border_","fill:background_"]),this.define({text:[o.String],text_font:[o.Font,"helvetica"],text_font_size:[o.FontSizeSpec,"13px"],text_font_style:[o.FontStyle,"bold"],text_color:[o.ColorSpec,"#444444"],text_alpha:[o.NumberSpec,1],text_line_height:[o.Number,1],vertical_align:[o.VerticalAlign,"bottom"],align:[o.TextAlign,"left"],offset:[o.Number,0]}),this.override({background_fill_color:null,border_line_color:null}),this.internal({text_align:[o.TextAlign,"left"],text_baseline:[o.TextBaseline,"bottom"]})}}i.Title=c,c.__name__="Title",c.init_Title()},n”, ” function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(1),l=e(29),s=e(96),a=e(66),n=o.__importStar(e(19));class r extends l.AnnotationView{constructor(){super(…arguments),this.rotate=!0}initialize(){super.initialize(),this.plot_view.canvas_view.add_event(this.el)}async lazy_initialize(){this._toolbar_view=await s.build_view(this.model.toolbar,{parent:this}),this.plot_view.visibility_callbacks.push(e=>this._toolbar_view.set_visibility(e))}remove(){this._toolbar_view.remove(),super.remove()}render(){super.render(),this.model.visible?(this.el.style.position="absolute",this.el.style.overflow="hidden",a.position(this.el,this.panel.bbox),this._toolbar_view.render(),a.empty(this.el),this.el.appendChild(this._toolbar_view.el),a.display(this.el)):a.undisplay(this.el)}_get_size(){const{tools:e,logo:i}=this.model.toolbar;return{width:30*e.length+(null!=i?25:0),height:30}}}t.ToolbarPanelView=r,r.__name__="ToolbarPanelView";class _ extends l.Annotation{constructor(e){super(e)}static init_ToolbarPanel(){this.prototype.default_view=r,this.define({toolbar:[n.Instance]})}}t.ToolbarPanel=_,_.__name__="ToolbarPanel",_.init_ToolbarPanel()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),l=t(29),o=t(66),a=i.__importStar(t(19)),h=t(144),n=t(145);function c(t,e,s,i,l){switch(t){case"horizontal":return e<i?"right":"left";case"vertical":return s<l?"below":"above";default:return t}}s.compute_side=c;class r extends l.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),o.undisplay(this.el)}connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,()=>this._draw_tips())}css_classes(){return super.css_classes().concat(h.bk_tooltip)}render(){this.model.visible&&this._draw_tips()}_draw_tips(){const{data:t}=this.model;if(o.empty(this.el),o.undisplay(this.el),this.model.custom?this.el.classList.add(h.bk_tooltip_custom):this.el.classList.remove(h.bk_tooltip_custom),0==t.length)return;const{frame:e}=this.plot_view;for(const[s,i,l]of t){if(this.model.inner_only&&!e.bbox.contains(s,i))continue;const t=o.div({},l);this.el.appendChild(t)}const[s,i]=t[t.length-1],l=c(this.model.attachment,s,i,e._hcenter.value,e._vcenter.value);this.el.classList.remove(n.bk_right),this.el.classList.remove(n.bk_left),this.el.classList.remove(n.bk_above),this.el.classList.remove(n.bk_below);let a;o.display(this.el);let r=0,d=0;switch(l){case"right":this.el.classList.add(n.bk_left),r=s+(this.el.offsetWidth-this.el.clientWidth)+10,a=i-this.el.offsetHeight/2;break;case"left":this.el.classList.add(n.bk_right),d=this.plot_view.layout.bbox.width-s+10,a=i-this.el.offsetHeight/2;break;case"below":this.el.classList.add(n.bk_above),a=i+(this.el.offsetHeight-this.el.clientHeight)+10,r=Math.round(s-this.el.offsetWidth/2);break;case"above":this.el.classList.add(n.bk_below),a=i-this.el.offsetHeight-10,r=Math.round(s-this.el.offsetWidth/2)}this.model.show_arrow&&this.el.classList.add(h.bk_tooltip_arrow),this.el.childNodes.length>0?(this.el.style.top=`${a}px`,this.el.style.left=r?`${r}px`:"auto",this.el.style.right=d?`${d}px`:"auto"):o.undisplay(this.el)}}s.TooltipView=r,r.__name__="TooltipView";class d extends l.Annotation{constructor(t){super(t)}static init_Tooltip(){this.prototype.default_view=r,this.define({attachment:[a.TooltipAttachment,"horizontal"],inner_only:[a.Boolean,!0],show_arrow:[a.Boolean,!0]}),this.override({level:"overlay"}),this.internal({data:[a.Any,[]],custom:[a.Any]})}clear(){this.data=[]}add(t,e,s){this.data=this.data.concat([[t,e,s]])}}s.Tooltip=d,d.__name__="Tooltip",d.init_Tooltip()},n”, ” function _(o,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=o(1);o(67),r.__importStar(o(66)).styles.append(‘.bk-root {\n /* Same border color used everywhere /\n / Gray of icons /\n}\n.bk-root .bk-tooltip {\n font-weight: 300;\n font-size: 12px;\n position: absolute;\n padding: 5px;\n border: 1px solid #e5e5e5;\n color: #2f2f2f;\n background-color: white;\n pointer-events: none;\n opacity: 0.95;\n z-index: 100;\n}\n.bk-root .bk-tooltip > div:not(:first-child) {\n / gives space when multiple elements are being hovered over /\n margin-top: 5px;\n border-top: #e5e5e5 1px dashed;\n}\n.bk-root .bk-tooltip.bk-left.bk-tooltip-arrow::before {\n position: absolute;\n margin: -7px 0 0 0;\n top: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 7px 0 7px 0;\n border-color: transparent;\n content: " ";\n display: block;\n left: -10px;\n border-right-width: 10px;\n border-right-color: #909599;\n}\n.bk-root .bk-tooltip.bk-left::before {\n left: -10px;\n border-right-width: 10px;\n border-right-color: #909599;\n}\n.bk-root .bk-tooltip.bk-right.bk-tooltip-arrow::after {\n position: absolute;\n margin: -7px 0 0 0;\n top: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 7px 0 7px 0;\n border-color: transparent;\n content: " ";\n display: block;\n right: -10px;\n border-left-width: 10px;\n border-left-color: #909599;\n}\n.bk-root .bk-tooltip.bk-right::after {\n right: -10px;\n border-left-width: 10px;\n border-left-color: #909599;\n}\n.bk-root .bk-tooltip.bk-above::before {\n position: absolute;\n margin: 0 0 0 -7px;\n left: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 7px 0 7px;\n border-color: transparent;\n content: " ";\n display: block;\n top: -10px;\n border-bottom-width: 10px;\n border-bottom-color: #909599;\n}\n.bk-root .bk-tooltip.bk-below::after {\n position: absolute;\n margin: 0 0 0 -7px;\n left: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 7px 0 7px;\n border-color: transparent;\n content: " ";\n display: block;\n bottom: -10px;\n border-top-width: 10px;\n border-top-color: #909599;\n}\n.bk-root .bk-tooltip-row-label {\n text-align: right;\n color: #26aae1;\n / blue from toolbar highlighting /\n}\n.bk-root .bk-tooltip-row-value {\n color: default;\n / seems to be necessary for notebook /\n}\n.bk-root .bk-tooltip-color-block {\n width: 12px;\n height: 12px;\n margin-left: 5px;\n margin-right: 5px;\n outline: #dddddd solid 1px;\n display: inline-block;\n}\n’),n.bk_tooltip="bk-tooltip",n.bk_tooltip_arrow="bk-tooltip-arrow",n.bk_tooltip_custom="bk-tooltip-custom",n.bk_tooltip_row_label="bk-tooltip-row-label",n.bk_tooltip_row_value="bk-tooltip-row-value",n.bk_tooltip_color_block="bk-tooltip-color-block"},n”, ” function _(e,b,t){Object.defineProperty(t,"__esModule",{value:!0}),e(1).__importStar(e(66)).styles.append(""),t.bk_active="bk-active",t.bk_inline="bk-inline",t.bk_left="bk-left",t.bk_right="bk-right",t.bk_above="bk-above",t.bk_below="bk-below",t.bk_up="bk-up",t.bk_down="bk-down",t.bk_side=function(e){switch(e){case"above":return t.bk_above;case"below":return t.bk_below;case"left":return t.bk_left;case"right":return t.bk_right}}},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(29),o=e(73),a=e(72),n=i.__importStar(e(19));class h extends r.AnnotationView{initialize(){super.initialize(),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source)),this.connect(this.model.source.change,()=>this.set_data(this.model.source))}set_data(e){super.set_data(e),this.visuals.warm_cache(e),this.plot_view.request_render()}_map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=e.xscales[this.model.x_range_name],i=e.yscales[this.model.y_range_name],r="height"==t?i:s,o="height"==t?s:i,a="height"==t?e.yview:e.xview,n="height"==t?e.xview:e.yview;let h,_,l;h="data"==this.model.properties.lower.units?r.v_compute(this._lower):a.v_compute(this._lower),_="data"==this.model.properties.upper.units?r.v_compute(this._upper):a.v_compute(this._upper),l="data"==this.model.properties.base.units?o.v_compute(this._base):n.v_compute(this._base);const[d,p]="height"==t?[1,0]:[0,1],c=[h,l],u=[_,l];this._lower_sx=c[d],this._lower_sy=c[p],this._upper_sx=u[d],this._upper_sy=u[p]}render(){if(!this.model.visible)return;this._map_data();const{ctx:e}=this.plot_view.canvas_view;if(this.visuals.line.doit)for(let t=0,s=this._lower_sx.length;t<s;t++)this.visuals.line.set_vectorize(e,t),e.beginPath(),e.moveTo(this._lower_sx[t],this._lower_sy[t]),e.lineTo(this._upper_sx[t],this._upper_sy[t]),e.stroke();const t="height"==this.model.dimension?0:Math.PI/2;if(null!=this.model.lower_head)for(let s=0,i=this._lower_sx.length;s<i;s++)e.save(),e.translate(this._lower_sx[s],this._lower_sy[s]),e.rotate(t+Math.PI),this.model.lower_head.render(e,s),e.restore();if(null!=this.model.upper_head)for(let s=0,i=this._upper_sx.length;s<i;s++)e.save(),e.translate(this._upper_sx[s],this._upper_sy[s]),e.rotate(t),this.model.upper_head.render(e,s),e.restore()}}s.WhiskerView=h,h.__name__="WhiskerView";class _ extends r.Annotation{constructor(e){super(e)}static init_Whisker(){this.prototype.default_view=h,this.mixins(["line"]),this.define({lower:[n.DistanceSpec],lower_head:[n.Instance,()=>new a.TeeHead({level:"underlay",size:10})],upper:[n.DistanceSpec],upper_head:[n.Instance,()=>new a.TeeHead({level:"underlay",size:10})],base:[n.DistanceSpec],dimension:[n.Dimension,"height"],source:[n.Instance,()=>new o.ColumnDataSource],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({level:"underlay"})}}s.Whisker=_,_.__name__="Whisker",_.init_Whisker()},n”, ” function _(i,a,e){Object.defineProperty(e,"__esModule",{value:!0});var r=i(148);e.Axis=r.Axis;var s=i(150);e.CategoricalAxis=s.CategoricalAxis;var x=i(153);e.ContinuousAxis=x.ContinuousAxis;var A=i(154);e.DatetimeAxis=A.DatetimeAxis;var o=i(155);e.LinearAxis=o.LinearAxis;var t=i(168);e.LogAxis=t.LogAxis;var n=i(171);e.MercatorAxis=n.MercatorAxis},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),a=e(149),l=s.__importStar(e(19)),n=e(9),o=e(8),r=e(88),{abs:_,min:h,max:c}=Math;class m extends a.GuideRendererView{constructor(){super(…arguments),this.rotate=!0}get panel(){return this.layout}render(){if(!this.model.visible)return;const e={tick:this._tick_extent(),tick_label:this._tick_label_extents(),axis_label:this._axis_label_extent()},t=this.tick_coords,i=this.plot_view.canvas_view.ctx;i.save(),this._draw_rule(i,e),this._draw_major_ticks(i,e,t),this._draw_minor_ticks(i,e,t),this._draw_major_labels(i,e,t),this._draw_axis_label(i,e,t),null!=this._render&&this._render(i,e,t),i.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_paint());const e=this.model.properties;this.on_change(e.visible,()=>this.plot_view.request_layout())}get_size(){if(this.model.visible&&null==this.model.fixed_location){const e=this._get_size();return{width:0,height:Math.round(e)}}return{width:0,height:0}}_get_size(){return this._tick_extent()+this._tick_label_extent()+this._axis_label_extent()}get needs_clip(){return null!=this.model.fixed_location}_draw_rule(e,t){if(!this.visuals.axis_line.doit)return;const[i,s]=this.rule_coords,[a,l]=this.plot_view.map_to_screen(i,s,this.model.x_range_name,this.model.y_range_name),[n,o]=this.normals,[r,_]=this.offsets;this.visuals.axis_line.set_value(e),e.beginPath(),e.moveTo(Math.round(a[0]+n*r),Math.round(l[0]+o*_));for(let t=1;t<a.length;t++){const i=Math.round(a[t]+n*r),s=Math.round(l[t]+o*_);e.lineTo(i,s)}e.stroke()}_draw_major_ticks(e,t,i){const s=this.model.major_tick_in,a=this.model.major_tick_out,l=this.visuals.major_tick_line;this._draw_ticks(e,i.major,s,a,l)}_draw_minor_ticks(e,t,i){const s=this.model.minor_tick_in,a=this.model.minor_tick_out,l=this.visuals.minor_tick_line;this._draw_ticks(e,i.minor,s,a,l)}_draw_major_labels(e,t,i){const s=i.major,a=this.compute_labels(s[this.dimension]),l=this.model.major_label_orientation,n=t.tick+this.model.major_label_standoff,o=this.visuals.major_label_text;this._draw_oriented_labels(e,a,s,l,this.panel.side,n,o)}_draw_axis_label(e,t,i){if(null==this.model.axis_label||0==this.model.axis_label.length||null!=this.model.fixed_location)return;let s,a;switch(this.panel.side){case"above":s=this.panel._hcenter.value,a=this.panel._bottom.value;break;case"below":s=this.panel._hcenter.value,a=this.panel._top.value;break;case"left":s=this.panel._right.value,a=this.panel._vcenter.value;break;case"right":s=this.panel._left.value,a=this.panel._vcenter.value;break;default:throw new Error(`unknown side: ${this.panel.side}`)}const l=[[s],[a]],o=t.tick+n.sum(t.tick_label)+this.model.axis_label_standoff,r=this.visuals.axis_label_text;this._draw_oriented_labels(e,[this.model.axis_label],l,"parallel",this.panel.side,o,r,"screen")}_draw_ticks(e,t,i,s,a){if(!a.doit)return;const[l,n]=t,[o,r]=this.plot_view.map_to_screen(l,n,this.model.x_range_name,this.model.y_range_name),[_,h]=this.normals,[c,m]=this.offsets,[d,u]=[_*(c-i),h*(m-i)],[b,x]=[_*(c+s),h*(m+s)];a.set_value(e);for(let t=0;t<o.length;t++){const i=Math.round(o[t]+b),s=Math.round(r[t]+x),a=Math.round(o[t]+d),l=Math.round(r[t]+u);e.beginPath(),e.moveTo(i,s),e.lineTo(a,l),e.stroke()}}_draw_oriented_labels(e,t,i,s,a,l,n,r="data"){if(!n.doit||0==t.length)return;let _,h,c,m;if("screen"==r)[_,h]=i,[c,m]=[0,0];else{const[e,t]=i;[_,h]=this.plot_view.map_to_screen(e,t,this.model.x_range_name,this.model.y_range_name),[c,m]=this.offsets}const[d,u]=this.normals,b=d*(c+l),x=u*(m+l);let p;n.set_value(e),this.panel.apply_label_text_heuristics(e,s),p=o.isString(s)?this.panel.get_label_angle_heuristic(s):-s;for(let i=0;i<_.length;i++){const s=Math.round(_[i]+b),a=Math.round(h[i]+x);e.translate(s,a),e.rotate(p),e.fillText(t[i],0,0),e.rotate(-p),e.translate(-s,-a)}}_axis_label_extent(){if(null==this.model.axis_label||""==this.model.axis_label)return 0;const e=this.model.axis_label_standoff,t=this.visuals.axis_label_text;return this._oriented_labels_extent([this.model.axis_label],"parallel",this.panel.side,e,t)}_tick_extent(){return this.model.major_tick_out}_tick_label_extent(){return n.sum(this._tick_label_extents())}_tick_label_extents(){const e=this.tick_coords.major,t=this.compute_labels(e[this.dimension]),i=this.model.major_label_orientation,s=this.model.major_label_standoff,a=this.visuals.major_label_text;return[this._oriented_labels_extent(t,i,this.panel.side,s,a)]}_oriented_labels_extent(e,t,i,s,a){if(0==e.length)return 0;const l=this.plot_view.canvas_view.ctx;let n,r;a.set_value(l),o.isString(t)?(n=1,r=this.panel.get_label_angle_heuristic(t)):(n=2,r=-t),r=Math.abs(r);const _=Math.cos(r),h=Math.sin(r);let c=0;for(let t=0;t<e.length;t++){const s=1.1*l.measureText(e[t]).width,a=.9*l.measureText(e[t]).ascent;let o;o="above"==i||"below"==i?s*h+a/n*_:s*_+a/n*h,o>c&&(c=o)}return c>0&&(c+=s),c}get normals(){return this.panel.normals}get dimension(){return this.panel.dimension}compute_labels(e){const t=this.model.formatter.doFormat(e,this);for(let i=0;i<e.length;i++)e[i]in this.model.major_label_overrides&&(t[i]=this.model.major_label_overrides[e[i]]);return t}get offsets(){if(null!=this.model.fixed_location)return[0,0];const{frame:e}=this.plot_view;let[t,i]=[0,0];switch(this.panel.side){case"below":i=_(this.panel._top.value-e._bottom.value);break;case"above":i=_(this.panel._bottom.value-e._top.value);break;case"right":t=_(this.panel._left.value-e._right.value);break;case"left":t=_(this.panel._right.value-e._left.value)}return[t,i]}get ranges(){const e=this.dimension,t=(e+1)%2,{frame:i}=this.plot_view,s=[i.x_ranges[this.model.x_range_name],i.y_ranges[this.model.y_range_name]];return[s[e],s[t]]}get computed_bounds(){const[e]=this.ranges,t=this.model.bounds,i=[e.min,e.max];if("auto"==t)return[e.min,e.max];if(o.isArray(t)){let e,s;const[a,l]=t,[n,o]=i;return _(a-l)>_(n-o)?(e=c(h(a,l),n),s=h(c(a,l),o)):(e=h(a,l),s=c(a,l)),[e,s]}throw new Error(`user bounds ‘${t}’ not understood`)}get rule_coords(){const e=this.dimension,t=(e+1)%2,[i]=this.ranges,[s,a]=this.computed_bounds,l=[new Array(2),new Array(2)];return l[e][0]=Math.max(s,i.min),l[e][1]=Math.min(a,i.max),l[e][0]>l[e][1]&&(l[e][0]=l[e][1]=NaN),l[t][0]=this.loc,l[t][1]=this.loc,l}get tick_coords(){const e=this.dimension,t=(e+1)%2,[i]=this.ranges,[s,a]=this.computed_bounds,l=this.model.ticker.get_ticks(s,a,i,this.loc,{}),n=l.major,o=l.minor,r=[[],[]],_=[[],[]],[h,c]=[i.min,i.max];for(let i=0;i<n.length;i++)n[i]<h||n[i]>c||(r[e].push(n[i]),r[t].push(this.loc));for(let i=0;i<o.length;i++)o[i]<h||o[i]>c||(_[e].push(o[i]),_[t].push(this.loc));return{major:r,minor:_}}get loc(){const{fixed_location:e}=this.model;if(null!=e){if(o.isNumber(e))return e;const[,t]=this.ranges;if(t instanceof r.FactorRange)return t.synthetic(e);throw new Error("unexpected")}const[,t]=this.ranges;switch(this.panel.side){case"left":case"below":return t.start;case"right":case"above":return t.end}}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.layout.bbox.box})}}i.AxisView=m,m.__name__="AxisView";class d extends a.GuideRenderer{constructor(e){super(e)}static init_Axis(){this.prototype.default_view=m,this.mixins(["line:axis_","line:major_tick_","line:minor_tick_","text:major_label_","text:axis_label_"]),this.define({bounds:[l.Any,"auto"],ticker:[l.Instance],formatter:[l.Instance],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"],axis_label:[l.String,""],axis_label_standoff:[l.Int,5],major_label_standoff:[l.Int,5],major_label_orientation:[l.Any,"horizontal"],major_label_overrides:[l.Any,{}],major_tick_in:[l.Number,2],major_tick_out:[l.Number,6],minor_tick_in:[l.Number,0],minor_tick_out:[l.Number,4],fixed_location:[l.Any,null]}),this.override({axis_line_color:"black",major_tick_line_color:"black",minor_tick_line_color:"black",major_label_text_font_size:"11px",major_label_text_align:"center",major_label_text_baseline:"alphabetic",axis_label_text_font_size:"13px",axis_label_text_font_style:"italic"})}}i.Axis=d,d.__name__="Axis",d.init_Axis()},n”, ” function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});const n=e(63);class i extends n.RendererView{}d.GuideRendererView=i,i.__name__="GuideRendererView";class t extends n.Renderer{constructor(e){super(e)}static init_GuideRenderer(){this.override({level:"overlay"})}}d.GuideRenderer=t,t.__name__="GuideRenderer",t.init_GuideRenderer()},n”, ” function _(t,s,o){Object.defineProperty(o,"__esModule",{value:!0});const e=t(1),i=t(148),r=t(151),a=t(152),l=e.__importStar(t(19));class _ extends i.AxisView{_render(t,s,o){this._draw_group_separators(t,s,o)}_draw_group_separators(t,s,o){const[e]=this.ranges,[i,r]=this.computed_bounds;if(!e.tops||e.tops.length<2||!this.visuals.separator_line.doit)return;const a=this.dimension,l=(a+1)%2,_=[[],[]];let n=0;for(let t=0;t<e.tops.length-1;t++){let s,o;for(let i=n;i<e.factors.length;i++)if(e.factors[i][0]==e.tops[t+1]){[s,o]=[e.factors[i-1],e.factors[i]],n=i;break}const h=(e.synthetic(s)+e.synthetic(o))/2;h>i&&h<r&&(_[a].push(h),_[l].push(this.loc))}const h=this._tick_label_extent();this._draw_ticks(t,_,-3,h-6,this.visuals.separator_line)}_draw_major_labels(t,s,o){const e=this._get_factor_info();let i=s.tick+this.model.major_label_standoff;for(let o=0;o<e.length;o++){const[r,a,l,_]=e[o];this._draw_oriented_labels(t,r,a,l,this.panel.side,i,_),i+=s.tick_label[o]}}_tick_label_extents(){const t=this._get_factor_info(),s=[];for(const[o,,e,i]of t){const t=this._oriented_labels_extent(o,e,this.panel.side,this.model.major_label_standoff,i);s.push(t)}return s}_get_factor_info(){const[t]=this.ranges,[s,o]=this.computed_bounds,e=this.loc,i=this.model.ticker.get_ticks(s,o,t,e,{}),r=this.tick_coords,a=[];if(1==t.levels){const t=i.major,s=this.model.formatter.doFormat(t,this);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text])}else if(2==t.levels){const t=i.major.map(t=>t[1]),s=this.model.formatter.doFormat(t,this);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([i.tops,r.tops,this.model.group_label_orientation,this.visuals.group_text])}else if(3==t.levels){const t=i.major.map(t=>t[2]),s=this.model.formatter.doFormat(t,this),o=i.mids.map(t=>t[1]);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([o,r.mids,this.model.subgroup_label_orientation,this.visuals.subgroup_text]),a.push([i.tops,r.tops,this.model.group_label_orientation,this.visuals.group_text])}return a}get tick_coords(){const t=this.dimension,s=(t+1)%2,[o]=this.ranges,[e,i]=this.computed_bounds,r=this.model.ticker.get_ticks(e,i,o,this.loc,{}),a={major:[[],[]],mids:[[],[]],tops:[[],[]],minor:[[],[]]};return a.major[t]=r.major,a.major[s]=r.major.map(t=>this.loc),3==o.levels&&(a.mids[t]=r.mids,a.mids[s]=r.mids.map(t=>this.loc)),o.levels>1&&(a.tops[t]=r.tops,a.tops[s]=r.tops.map(t=>this.loc)),a}}o.CategoricalAxisView=_,_.__name__="CategoricalAxisView";class n extends i.Axis{constructor(t){super(t)}static init_CategoricalAxis(){this.prototype.default_view=_,this.mixins(["line:separator_","text:group_","text:subgroup_"]),this.define({group_label_orientation:[l.Any,"parallel"],subgroup_label_orientation:[l.Any,"parallel"]}),this.override({ticker:()=>new r.CategoricalTicker,formatter:()=>new a.CategoricalTickFormatter,separator_line_color:"lightgrey",separator_line_width:2,group_text_font_style:"bold",group_text_font_size:"11px",group_text_color:"grey",subgroup_text_font_style:"bold",subgroup_text_font_size:"11px"})}}o.CategoricalAxis=n,n.__name__="CategoricalAxis",n.init_CategoricalAxis()},n”, ” function _(t,c,e){Object.defineProperty(e,"__esModule",{value:!0});const o=t(111);class s extends o.Ticker{constructor(t){super(t)}get_ticks(t,c,e,o,s){return{major:this._collect(e.factors,e,t,c),minor:[],tops:this._collect(e.tops||[],e,t,c),mids:this._collect(e.mids||[],e,t,c)}}_collect(t,c,e,o){const s=[];for(const r of t){const t=c.synthetic(r);t>e&&t<o&&s.push(r)}return s}}e.CategoricalTicker=s,s.__name__="CategoricalTicker"},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(113),c=e(9);class a extends o.TickFormatter{constructor(e){super(e)}doFormat(e,t){return c.copy(e)}}r.CategoricalTickFormatter=a,a.__name__="CategoricalTickFormatter"},n”, ” function _(s,e,n){Object.defineProperty(n,"__esModule",{value:!0});const o=s(148);class t extends o.Axis{constructor(s){super(s)}}n.ContinuousAxis=t,t.__name__="ContinuousAxis"},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(155),a=e(156),r=e(161);class n extends s.LinearAxisView{}i.DatetimeAxisView=n,n.__name__="DatetimeAxisView";class _ extends s.LinearAxis{constructor(e){super(e)}static init_DatetimeAxis(){this.prototype.default_view=n,this.override({ticker:()=>new r.DatetimeTicker,formatter:()=>new a.DatetimeTickFormatter})}}i.DatetimeAxis=_,_.__name__="DatetimeAxis",_.init_DatetimeAxis()},n”, ” function _(e,i,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(148),n=e(153),r=e(112),a=e(108);class _ extends t.AxisView{}s.LinearAxisView=_,_.__name__="LinearAxisView";class c extends n.ContinuousAxis{constructor(e){super(e)}static init_LinearAxis(){this.prototype.default_view=_,this.override({ticker:()=>new a.BasicTicker,formatter:()=>new r.BasicTickFormatter})}}s.LinearAxis=c,c.__name__="LinearAxis",c.init_LinearAxis()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const r=t(1),i=r.__importDefault(t(157)),n=t(113),o=t(70),a=r.__importStar(t(19)),c=t(158),m=t(9),u=t(8);function h(t){return i.default(t,"%Y %m %d %H %M %S").split(/\s+/).map(t=>parseInt(t,10))}function d(t,s){if(u.isFunction(s))return s(t);{const e=c.sprintf("$1%06d",function(t){return Math.round(t/1e3%1*1e6)}(t));return-1==(s=s.replace(/((^|[^%])(%%))%f/,e)).indexOf("%")?s:i.default(t,s)}}const l=["microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"];class _ extends n.TickFormatter{constructor(t){super(t),this.strip_leading_zeros=!0}static init_DatetimeTickFormatter(){this.define({microseconds:[a.Array,["%fus"]],milliseconds:[a.Array,["%3Nms","%S.%3Ns"]],seconds:[a.Array,["%Ss"]],minsec:[a.Array,[":%M:%S"]],minutes:[a.Array,[":%M","%Mm"]],hourmin:[a.Array,["%H:%M"]],hours:[a.Array,["%Hh","%H:%M"]],days:[a.Array,["%m/%d","%a%d"]],months:[a.Array,["%m/%Y","%b %Y"]],years:[a.Array,["%Y"]]})}initialize(){super.initialize(),this._update_width_formats()}_update_width_formats(){const t=+i.default(new Date),s=function(s){const e=s.map(s=>d(t,s).length),r=m.sort_by(m.zip(e,s),([t])=>t);return m.unzip(r)};this._width_formats={microseconds:s(this.microseconds),milliseconds:s(this.milliseconds),seconds:s(this.seconds),minsec:s(this.minsec),minutes:s(this.minutes),hourmin:s(this.hourmin),hours:s(this.hours),days:s(this.days),months:s(this.months),years:s(this.years)}}_get_resolution_str(t,s){const e=1.1*t;switch(!1){case!(e<.001):return"microseconds";case!(e<1):return"milliseconds";case!(e<60):return s>=60?"minsec":"seconds";case!(e<3600):return s>=3600?"hourmin":"minutes";case!(e<86400):return"hours";case!(e<2678400):return"days";case!(e<31536e3):return"months";default:return"years"}}doFormat(t,s){if(0==t.length)return[];const e=Math.abs(t[t.length-1]-t[0])/1e3,r=e/(t.length-1),i=this._get_resolution_str(r,e),[,[n]]=this._width_formats[i],a=[],c=l.indexOf(i),m={};for(const t of l)m[t]=0;m.seconds=5,m.minsec=4,m.minutes=4,m.hourmin=3,m.hours=3;for(const s of t){let t,e;try{e=h(s),t=d(s,n)}catch(t){o.logger.warn(unable to format tick for timestamp value ${s}),o.logger.warn(` - ${t}`),a.push("ERR");continue}let r=!1,u=c;for(;0==e[m[l[u]]];){let n;if(u+=1,u==l.length)break;if(("minsec"==i||"hourmin"==i)&&!r){if("minsec"==i&&0==e[4]&&0!=e[5]||"hourmin"==i&&0==e[3]&&0!=e[4]){n=this._width_formats[l[c-1]][1][0],t=d(s,n);break}r=!0}n=this._width_formats[l[u]][1][0],t=d(s,n)}if(this.strip_leading_zeros){let s=t.replace(/^0+/g,"");s!=t&&isNaN(parseInt(s))&&(s=`0${s}`),a.push(s)}else a.push(t)}return a}}e.DatetimeTickFormatter=_,_.__name__="DatetimeTickFormatter",_.init_DatetimeTickFormatter()},n”, ” function _(e,t,n){!function(e){"object"==typeof t&&t.exports?t.exports=e():"function"==typeof define?define(e):this.tz=e()}((function(){function e(e,t,n){var r,o=t.day[1];do{r=new Date(Date.UTC(n,t.month,Math.abs(o++)))}while(t.day[0]<7&&r.getUTCDay()!=t.day[0]);return(r={clock:t.clock,sort:r.getTime(),rule:t,save:6e4*t.save,offset:e.offset})[r.clock]=r.sort+6e4*t.time,r.posix?r.wallclock=r[r.clock]+(e.offset+t.saved):r.posix=r[r.clock]-(e.offset+t.saved),r}function t(t,n,r){var o,a,u,i,l,s,c,f=t[t.zone],h=[],T=new Date(r).getUTCFullYear(),g=1;for(o=1,a=f.length;o<a&&!(f[o][n]<=r);o++);if((u=f[o]).rules){for(s=t[u.rules],c=T+1;c>=T-g;–c)for(o=0,a=s.length;o<a;o++)s[o].from<=c&&c<=s[o].to?h.push(e(u,s[o],c)):s[o].to<c&&1==g&&(g=c-s[o].to);for(h.sort((function(e,t){return e.sort-t.sort})),o=0,a=h.length;o<a;o++)r>=h[o][n]&&h[o][h[o].clock]>u[h[o].clock]&&(i=h[o])}return i&&((l=/^(.*)\/(.*)$/.exec(u.format))?i.abbrev=l[i.save?2:1]:i.abbrev=u.format.replace(/%s/,i.rule.letter)),i||u}function n(e,n){return"UTC"==e.zone?n:(e.entry=t(e,"posix",n),n+e.entry.offset+e.entry.save)}function r(e,n){return"UTC"==e.zone?n:(e.entry=r=t(e,"wallclock",n),0<(o=n-r.wallclock)&&o<r.save?null:n-r.offset-r.save);var r,o}function o(e,t,o){var a,i=+(o[1]+1),s=o[2]*i,c=u.indexOf(o[3].toLowerCase());if(c>9)t+=s*l[c-10];else{if(a=new Date(n(e,t)),c<7)for(;s;)a.setUTCDate(a.getUTCDate()+i),a.getUTCDay()==c&&(s-=i);else 7==c?a.setUTCFullYear(a.getUTCFullYear()+s):8==c?a.setUTCMonth(a.getUTCMonth()+s):a.setUTCDate(a.getUTCDate()+s);null==(t=r(e,a.getTime()))&&(t=r(e,a.getTime()+864e5*i)-864e5*i)}return t}var a={clock:function(){return+new Date},zone:"UTC",entry:{abbrev:"UTC",offset:0,save:0},UTC:1,z:function(e,t,n,r){var o,a,u=this.entry.offset+this.entry.save,i=Math.abs(u/1e3),l=[],s=3600;for(o=0;o<3;o++)l.push(("0"+Math.floor(i/s)).slice(-2)),i%=s,s/=60;return"^"!=n||u?("^"==n&&(r=3),3==r?(a=(a=l.join(":")).replace(/:00$/,""),"^"!=n&&(a=a.replace(/:00$/,""))):r?(a=l.slice(0,r+1).join(":"),"^"==n&&(a=a.replace(/:00$/,""))):a=l.slice(0,2).join(""),a=(a=(u<0?"-":"+")+a).replace(/([-+])(0)/,{_:" $1","-":"$1"}[n]||"$1$2")):"Z"},"%":function(e){return"%"},n:function(e){return"\n"},t:function(e){return"\t"},U:function(e){return s(e,0)},W:function(e){return s(e,1)},V:function(e){return c(e)[0]},G:function(e){return c(e)[1]},g:function(e){return c(e)[1]%100},j:function(e){return Math.floor((e.getTime()-Date.UTC(e.getUTCFullYear(),0))/864e5)+1},s:function(e){return Math.floor(e.getTime()/1e3)},C:function(e){return Math.floor(e.getUTCFullYear()/100)},N:function(e){return e.getTime()%1e3*1e6},m:function(e){return e.getUTCMonth()+1},Y:function(e){return e.getUTCFullYear()},y:function(e){return e.getUTCFullYear()%100},H:function(e){return e.getUTCHours()},M:function(e){return e.getUTCMinutes()},S:function(e){return e.getUTCSeconds()},e:function(e){return e.getUTCDate()},d:function(e){return e.getUTCDate()},u:function(e){return e.getUTCDay()||7},w:function(e){return e.getUTCDay()},l:function(e){return e.getUTCHours()%12||12},I:function(e){return e.getUTCHours()%12||12},k:function(e){return e.getUTCHours()},Z:function(e){return this.entry.abbrev},a:function(e){return this[this.locale].day.abbrev[e.getUTCDay()]},A:function(e){return this[this.locale].day.full[e.getUTCDay()]},h:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},b:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},B:function(e){return this[this.locale].month.full[e.getUTCMonth()]},P:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)].toLowerCase()},p:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)]},R:function(e,t){return this.convert([t,"%H:%M"])},T:function(e,t){return this.convert([t,"%H:%M:%S"])},D:function(e,t){return this.convert([t,"%m/%d/%y"])},F:function(e,t){return this.convert([t,"%Y-%m-%d"])},x:function(e,t){return this.convert([t,this[this.locale].date])},r:function(e,t){return this.convert([t,this[this.locale].time12||"%I:%M:%S"])},X:function(e,t){return this.convert([t,this[this.locale].time24])},c:function(e,t){return this.convert([t,this[this.locale].dateTime])},convert:function(e){if(!e.length)return"1.0.23";var t,a,u,l,s,c=Object.create(this),f=[];for(t=0;t<e.length;t++)if(l=e[t],Array.isArray(l))t||isNaN(l[1])?l.splice.apply(e,[t–,1].concat(l)):s=l;else if(isNaN(l)){if("string"==(u=typeof l))~l.indexOf("%")?c.format=l:t||""!=l?!t&&(u=/^(\d{4})-(\d{2})-(\d{2})(?:[T\s](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|(([+-])(\d{2}(:\d{2}){0,2})))?)?$/.exec(l))?((s=[]).push.apply(s,u.slice(1,8)),u[9]?(s.push(u[10]+1),s.push.apply(s,u[11].split(/:/))):u[8]&&s.push(1)):/^\w{2,3}_\w{2}$/.test(l)?c.locale=l:(u=i.exec(l))?f.push(u):c.zone=l:s=l;else if("function"==u){if(u=l.call(c))return u}else if(/^\w{2,3}_\w{2}$/.test(l.name))c[l.name]=l;else if(l.zones){for(u in l.zones)c[u]=l.zones[u];for(u in l.rules)c[u]=l.rules[u]}}else t||(s=l);if(c[c.locale]||delete c.locale,c[c.zone]||delete c.zone,null!=s){if(""==s)s=c.clock();else if(Array.isArray(s)){for(u=[],a=!s[7],t=0;t<11;t++)u[t]=+(s[t]||0);–u[1],s=Date.UTC.apply(Date.UTC,u)+-u[7]*(36e5*u[8]+6e4*u[9]+1e3*u[10])}else s=Math.floor(s);if(!isNaN(s)){if(a&&(s=r(c,s)),null==s)return s;for(t=0,a=f.length;t<a;t++)s=o(c,s,f[t]);return c.format?(u=new Date(n(c,s)),c.format.replace(/%([-0_^]?)(:{0,3})(\d*)(.)/g,(function(e,t,n,r,o){var a,i,l="0";if(a=c[o]){for(e=String(a.call(c,u,s,t,n.length)),"_"==(t||a.style)&&(l=" "),i="-"==t?0:a.pad||0;e.length<i;)e=l+e;for(i="-"==t?0:r||a.pad;e.length<i;)e=l+e;"N"==o&&i<e.length&&(e=e.slice(0,i)),"^"==t&&(e=e.toUpperCase())}return e}))):s}}return function(){return c.convert(arguments)}},locale:"en_US",en_US:{date:"%m/%d/%Y",time24:"%I:%M:%S %p",time12:"%I:%M:%S %p",dateTime:"%a %d %b %Y %I:%M:%S %p %Z",meridiem:["AM","PM"],month:{abbrev:"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|\"),full:\"January|February|March|April|May|June|July|August|September|October|November|December\".split(\"|")},day:{abbrev:"Sun|Mon|Tue|Wed|Thu|Fri|Sat".split("|\"),full:\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday\".split(\"|")}}},u="Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond",i=new RegExp("^\\s*([+-])(\\d+)\\s+("+u+")s?\\s*$","i"),l=[36e5,6e4,1e3,1];function s(e,t){var n,r,o;return r=new Date(Date.UTC(e.getUTCFullYear(),0)),n=Math.floor((e.getTime()-r.getTime())/864e5),r.getUTCDay()==t?o=0:8==(o=7-r.getUTCDay()+t)&&(o=1),n>=o?Math.floor((n-o)/7)+1:0}function c(e){var t,n,r;return n=e.getUTCFullYear(),t=new Date(Date.UTC(n,0)).getUTCDay(),(r=s(e,1)+(t>1&&t<=4?1:0))?53!=r||4==t||3==t&&29==new Date(n,1,29).getDate()?[r,e.getUTCFullYear()]:[1,e.getUTCFullYear()+1]:(n=e.getUTCFullYear()-1,[r=4==(t=new Date(Date.UTC(n,0)).getUTCDay())||3==t&&29==new Date(n,1,29).getDate()?53:52,e.getUTCFullYear()-1])}return u=u.toLowerCase().split("|\"),\"delmHMSUWVgCIky\".replace(/./g,(function(e){a[e].pad=2})),a.N.pad=9,a.j.pad=3,a.k.style=\"_\",a.l.style=\"_\",a.e.style=\"_\",function(){return a.convert(arguments)}}))},\n", " function _(r,n,e){Object.defineProperty(e,\"__esModule\",{value:!0});const t=r(1),i=t.__importStar(r(159)),u=r(160),a=t.__importDefault(r(157)),f=r(26),o=r(8);function l(r,...n){return u.sprintf(r,...n)}function s(r,n,e){if(o.isNumber(r)){return l((()=>{switch(!1){case Math.floor(r)!=r:return\"%d\";case!(Math.abs(r)>.1&&Math.abs(r)<1e3):return\"%0.3f\";default:return\"%0.3e\"}})(),r)}return`${r}`}function c(r,n,t){if(null==n)return s;if(null!=t&&r in t){const n=t[r];if(o.isString(n)){if(n in e.DEFAULT_FORMATTERS)return e.DEFAULT_FORMATTERS[n];throw new Error(`Unknown tooltip field formatter type '${n}'`)}return function(r,e,t){return n.format(r,e,t)}}return e.DEFAULT_FORMATTERS.numeral}function m(r,n,e,t){if(\"$\"==r[0]){return function(r,n){if(r in n)return n[r];throw new Error(`Unknown special variable '$${r}'`)}(r.substring(1),t)}return function(r,n,e){const t=n.get_column(r);if(null==t)return null;if(o.isNumber(e))return t[e];const i=t[e.index];if(o.isTypedArray(i)||o.isArray(i)){if(o.isArray(i[0])){return i[e.dim2][e.dim1]}return i[e.flat_index]}return i}(r.substring(1).replace(/[{}]/g,\"\"),n,e)}e.DEFAULT_FORMATTERS={numeral:(r,n,e)=>i.format(r,n),datetime:(r,n,e)=>a.default(r,n),printf:(r,n,e)=>l(n,r)},e.sprintf=l,e.basic_formatter=s,e.get_formatter=c,e.get_value=m,e.replace_placeholders=function(r,n,e,t,i={}){return r=(r=r.replace(/@\\$name/g,r=>`@{${i.name}}`)).replace(/((?:\\$\\w+)|(?:@\\w+)|(?:@{(?:[^{}]+)}))(?:{([^{}]+)})?/g,(r,u,a)=>{const o=m(u,n,e,i);if(null==o)return`${f.escape(\"???\")}`;if(\"safe\"==a)return`${o}`;const l=c(u,a,t);return`${f.escape(l(o,a,i))}`})}},\n", " function _(e,n,t){\n", " /*!\n", " * numbro.js\n", " * version : 1.6.2\n", " * author : Företagsplatsen AB\n", " * license : MIT\n", " * http://www.foretagsplatsen.se\n", " */\n", " var r,i={},a=i,o=\"en-US\",l=null,u=\"0,0\";void 0!==n&&n.exports;function c(e){this._value=e}function s(e){var n,t=\"\";for(n=0;n<e;n++)t+=\"0\";return t}function f(e,n,t,r){var i,a,o=Math.pow(10,n);return a=e.toFixed(0).search(\"e\")>-1?function(e,n){var t,r,i,a;return t=(a=e.toString()).split(\"e\")[0],i=a.split(\"e\")[1],a=t.split(\".\")[0]+(r=t.split(\".\")[1]||"")+s(i-r.length),n>0&&(a+="."+s(n)),a}(e,n):(t(e*o)/o).toFixed(n),r&&(i=new RegExp("0{1,"+r+"}$"),a=a.replace(i,"")),a}function d(e,n,t){return n.indexOf("$")>-1?function(e,n,t){var r,a,l=n,u=l.indexOf("$"),c=l.indexOf("("),s=l.indexOf("+"),f=l.indexOf("-"),d="",p="";-1===l.indexOf("$")?"infix"===i[o].currency.position?(p=i[o].currency.symbol,i[o].currency.spaceSeparated&&(p=" "+p+" ")):i[o].currency.spaceSeparated&&(d=" "):l.indexOf(" $")>-1?(d=" ",l=l.replace(" $","")):l.indexOf("$ ")>-1?(d=" ",l=l.replace("$ ","")):l=l.replace("$","");if(a=h(e,l,t,p),-1===n.indexOf("$"))switch(i[o].currency.position){case"postfix":a.indexOf(")")>-1?((a=a.split("")).splice(-1,0,d+i[o].currency.symbol),a=a.join("")):a=a+d+i[o].currency.symbol;break;case"infix":break;case"prefix":a.indexOf("(")>-1||a.indexOf("-")>-1?(a=a.split(""),r=Math.max(c,f)+1,a.splice(r,0,i[o].currency.symbol+d),a=a.join("")):a=i[o].currency.symbol+d+a;break;default:throw Error(‘Currency position should be among ["prefix", "infix", "postfix"]’)}else u<=1?a.indexOf("(")>-1||a.indexOf("+")>-1||a.indexOf("-")>-1?(a=a.split(""),r=1,(u<c||u<s||u<f)&&(r=0),a.splice(r,0,i[o].currency.symbol+d),a=a.join("")):a=i[o].currency.symbol+d+a:a.indexOf(")")>-1?((a=a.split("")).splice(-1,0,d+i[o].currency.symbol),a=a.join("")):a=a+d+i[o].currency.symbol;return a}(e,n,t):n.indexOf("%")>-1?function(e,n,t){var r,i="";e*=100,n.indexOf(" %")>-1?(i=" ",n=n.replace(" %","")):n=n.replace("%","");(r=h(e,n,t)).indexOf(")")>-1?((r=r.split("")).splice(-1,0,i+"%"),r=r.join("")):r=r+i+"%";return r}(e,n,t):n.indexOf(":")>-1?function(e){var n=Math.floor(e/60/60),t=Math.floor((e-60*n*60)/60),r=Math.round(e-60*n*60-60*t);return n+":"+(t<10?"0"+t:t)+":"+(r<10?"0"+r:r)}(e):h(e,n,t)}function h(e,n,t,r){var a,u,c,s,d,h,p,m,x,g,O,b,w,y,M,v,$,B=!1,E=!1,F=!1,k="",U=!1,N=!1,S=!1,j=!1,D=!1,C="",L="",T=Math.abs(e),K=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],G=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],I="",P=!1,R=!1;if(0===e&&null!==l)return l;if(!isFinite(e))return""+e;if(0===n.indexOf("{")){var W=n.indexOf("}");if(-1===W)throw Error(‘Format should also contain a "}"’);b=n.slice(1,W),n=n.slice(W+1)}else b="";if(n.indexOf("}")===n.length-1){var Y=n.indexOf("{");if(-1===Y)throw Error(‘Format should also contain a "{"’);w=n.slice(Y+1,-1),n=n.slice(0,Y+1)}else w="";if(v=null===($=-1===n.indexOf(".")?n.match(/([0-9]+).*/):n.match(/([0-9]+)\..*/))?-1:$[1].length,-1!==n.indexOf("-")&&(P=!0),n.indexOf("(")>-1?(B=!0,n=n.slice(1,-1)):n.indexOf("+")>-1&&(E=!0,n=n.replace(/\+/g,"")),n.indexOf("a")>-1){if(g=n.split(".")[0].match(/[0-9]+/g)||["0"],g=parseInt(g[0],10),U=n.indexOf("aK")>=0,N=n.indexOf("aM")>=0,S=n.indexOf("aB")>=0,j=n.indexOf("aT")>=0,D=U||N||S||j,n.indexOf(" a")>-1?(k=" ",n=n.replace(" a","")):n=n.replace("a",""),p=0===(p=(d=Math.floor(Math.log(T)/Math.LN10)+1)%3)?3:p,g&&0!==T&&(h=Math.floor(Math.log(T)/Math.LN10)+1-g,m=3*~~((Math.min(g,d)-p)/3),T/=Math.pow(10,m),-1===n.indexOf(".")&&g>3))for(n+="[.]",M=(M=0===h?0:3*~~(h/3)-h)<0?M+3:M,a=0;a<M;a++)n+="0";Math.floor(Math.log(Math.abs(e))/Math.LN10)+1!==g&&(T>=Math.pow(10,12)&&!D||j?(k+=i[o].abbreviations.trillion,e/=Math.pow(10,12)):T<Math.pow(10,12)&&T>=Math.pow(10,9)&&!D||S?(k+=i[o].abbreviations.billion,e/=Math.pow(10,9)):T<Math.pow(10,9)&&T>=Math.pow(10,6)&&!D||N?(k+=i[o].abbreviations.million,e/=Math.pow(10,6)):(T<Math.pow(10,6)&&T>=Math.pow(10,3)&&!D||U)&&(k+=i[o].abbreviations.thousand,e/=Math.pow(10,3)))}if(n.indexOf("b")>-1)for(n.indexOf(" b")>-1?(C=" ",n=n.replace(" b","")):n=n.replace("b",""),s=0;s<=K.length;s++)if(u=Math.pow(1024,s),c=Math.pow(1024,s+1),e>=u&&e<c){C+=K[s],u>0&&(e/=u);break}if(n.indexOf("d")>-1)for(n.indexOf(" d")>-1?(C=" ",n=n.replace(" d","")):n=n.replace("d",""),s=0;s<=G.length;s++)if(u=Math.pow(1e3,s),c=Math.pow(1e3,s+1),e>=u&&e<c){C+=G[s],u>0&&(e/=u);break}if(n.indexOf("o")>-1&&(n.indexOf(" o")>-1?(L=" ",n=n.replace(" o","")):n=n.replace("o",""),i[o].ordinal&&(L+=i[o].ordinal(e))),n.indexOf("[.]")>-1&&(F=!0,n=n.replace("[.]",".")),x=e.toString().split(".")[0],O=n.split(".")[1],y=n.indexOf(","),O){if(x=(I=-1!==O.indexOf("")?f(e,e.toString().split(".")[1].length,t):O.indexOf("[")>-1?f(e,(O=(O=O.replace("]","")).split("["))[0].length+O[1].length,t,O[1].length):f(e,O.length,t)).split(".")[0],I.split(".")[1].length)I=(r?k+r:i[o].delimiters.decimal)+I.split(".")[1];else I="";F&&0===Number(I.slice(1))&&(I="")}else x=f(e,null,t);return x.indexOf("-")>-1&&(x=x.slice(1),R=!0),x.length<v&&(x=new Array(v-x.length+1).join("0")+x),y>-1&&(x=x.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i[o].delimiters.thousands)),0===n.indexOf(".")&&(x=""),b+(n.indexOf("(")<n.indexOf("-")?(B&&R?"(":"")+(P&&R||!B&&R?"-":""):(P&&R||!B&&R?"-":"")+(B&&R?"(":""))+(!R&&E&&0!==e?"+":"")+x+I+(L||"")+(k&&!r?k:"")+(C||"")+(B&&R?")":"")+w}function p(e,n){i[e]=n}function m(e){o=e;var n=i[e].defaults;n&&n.format&&r.defaultFormat(n.format),n&&n.currencyFormat&&r.defaultCurrencyFormat(n.currencyFormat)}(r=function(e){return r.isNumbro(e)?e=e.value():0===e||void 0===e?e=0:Number(e)||(e=r.fn.unformat(e)),new c(Number(e))}).version="1.6.2",r.isNumbro=function(e){return e instanceof c},r.setLanguage=function(e,n){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var t=e,r=e.split("-")[0],i=null;a[t]||(Object.keys(a).forEach((function(e){i||e.split("-")[0]!==r||(i=e)})),t=i||n||"en-US"),m(t)},r.setCulture=function(e,n){var t=e,r=e.split("-")[1],a=null;i[t]||(r&&Object.keys(i).forEach((function(e){a||e.split("-")[1]!==r||(a=e)})),t=a||n||"en-US"),m(t)},r.language=function(e,n){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!e)return o;if(e&&!n){if(!a[e])throw new Error("Unknown language : "+e);m(e)}return!n&&a[e]||p(e,n),r},r.culture=function(e,n){if(!e)return o;if(e&&!n){if(!i[e])throw new Error("Unknown culture : "+e);m(e)}return!n&&i[e]||p(e,n),r},r.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return a[o];if(!a[e])throw new Error("Unknown language : "+e);return a[e]},r.cultureData=function(e){if(!e)return i[o];if(!i[e])throw new Error("Unknown culture : "+e);return i[e]},r.culture("en-US",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var n=e%10;return 1==~~(e%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}}),r.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),a},r.cultures=function(){return i},r.zeroFormat=function(e){l="string"==typeof e?e:null},r.defaultFormat=function(e){u="string"==typeof e?e:"0.0"},r.defaultCurrencyFormat=function(e){"string"==typeof e?e:"0$"},r.validate=function(e,n){var t,i,a,o,l,u,c,s;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;if(""===e)return!1;try{c=r.cultureData(n)}catch(e){c=r.cultureData(r.culture())}return a=c.currency.symbol,l=c.abbreviations,t=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(s=e.match(/^[^\d]+/))||(e=e.substr(1),s[0]===a))&&((null===(s=e.match(/[^\d]+$/))||(e=e.slice(0,-1),s[0]===l.thousand||s[0]===l.million||s[0]===l.billion||s[0]===l.trillion))&&(u=new RegExp(i+"{2}"),!e.match(/[^\d.,]/g)&&(!((o=e.split(t)).length>2)&&(o.length<2?!!o[0].match(/^\d+.\d$/)&&!o[0].match(u):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))))},n.exports={format:function(e,n,t,i){return null!=t&&t!==r.culture()&&r.setCulture(t),d(Number(e),null!=n?n:u,null==i?Math.round:i)}}},n”, ” function _(e,n,t){!function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|’[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(e){return i(a(e),arguments)}function r(e,t){return n.apply(null,[e].concat(t||[]))}function i(t,r){var i,s,a,o,p,c,l,u,f,d=1,g=t.length,y="";for(s=0;s<g;s++)if("string"==typeof t[s])y+=t[s];else if("object"==typeof t[s]){if((o=t[s]).keys)for(i=r[d],a=0;a<o.keys.length;a++){if(null==i)throw new Error(n(‘[sprintf] Cannot access property "%s" of undefined value "%s"’,o.keys[a],o.keys[a-1]));i=i[o.keys[a]]}else i=o.param_no?r[o.param_no]:r[d++];if(e.not_type.test(o.type)&&e.not_primitive.test(o.type)&&i instanceof Function&&(i=i()),e.numeric_arg.test(o.type)&&"number"!=typeof i&&isNaN(i))throw new TypeError(n("[sprintf] expecting number but found %T",i));switch(e.number.test(o.type)&&(u=i>=0),o.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,o.width?parseInt(o.width):0);break;case"e":i=o.precision?parseFloat(i).toExponential(o.precision):parseFloat(i).toExponential();break;case"f":i=o.precision?parseFloat(i).toFixed(o.precision):parseFloat(i);break;case"g":i=o.precision?String(Number(i.toPrecision(o.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}e.json.test(o.type)?y+=i:(!e.number.test(o.type)||u&&!o.sign?f="":(f=u?"+":"-",i=i.toString().replace(e.sign,"")),c=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",l=o.width-(f+i).length,p=o.width&&l>0?c.repeat(l):"",y+=o.align?f+i+p:"0"===c?f+p+i:p+f+i)}return y}var s=Object.create(null);function a(n){if(s[n])return s[n];for(var t,r=n,i=[],a=0;r;){if(null!==(t=e.text.exec(r)))i.push(t[0]);else if(null!==(t=e.modulo.exec(r)))i.push("%");else{if(null===(t=e.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var o=[],p=t[2],c=[];if(null===(c=e.key.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(p=p.substring(c[0].length));)if(null!==(c=e.key_access.exec(p)))o.push(c[1]);else{if(null===(c=e.index_access.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}t[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return s[n]=i}void 0!==t&&(t.sprintf=n,t.vsprintf=r),"undefined"!=typeof window&&(window.sprintf=n,window.vsprintf=r,"function"==typeof define&&define.amd&&define((function(){return{sprintf:n,vsprintf:r}})))}()},n”, ” function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(9),a=e(109),s=e(162),r=e(163),c=e(166),_=e(167),m=e(165);class k extends s.CompositeTicker{constructor(e){super(e)}static init_DatetimeTicker(){this.override({num_minor_ticks:0,tickers:()=>[new a.AdaptiveTicker({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*m.ONE_MILLI,num_minor_ticks:0}),new a.AdaptiveTicker({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:m.ONE_SECOND,max_interval:30*m.ONE_MINUTE,num_minor_ticks:0}),new a.AdaptiveTicker({mantissas:[1,2,4,6,8,12],base:24,min_interval:m.ONE_HOUR,max_interval:12*m.ONE_HOUR,num_minor_ticks:0}),new r.DaysTicker({days:t.range(1,32)}),new r.DaysTicker({days:t.range(1,31,3)}),new r.DaysTicker({days:[1,8,15,22]}),new r.DaysTicker({days:[1,15]}),new c.MonthsTicker({months:t.range(0,12,1)}),new c.MonthsTicker({months:t.range(0,12,2)}),new c.MonthsTicker({months:t.range(0,12,4)}),new c.MonthsTicker({months:t.range(0,12,6)}),new _.YearsTicker({})]})}}n.DatetimeTicker=k,k.__name__="DatetimeTicker",k.init_DatetimeTicker()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(1),s=t(110),n=r.__importStar(t(19)),_=t(9),a=t(24);class c extends s.ContinuousTicker{constructor(t){super(t)}static init_CompositeTicker(){this.define({tickers:[n.Array,[]]})}get min_intervals(){return this.tickers.map(t=>t.get_min_interval())}get max_intervals(){return this.tickers.map(t=>t.get_max_interval())}get min_interval(){return this.min_intervals[0]}get max_interval(){return this.max_intervals[0]}get_best_ticker(t,e,i){const r=e-t,s=this.get_ideal_interval(t,e,i),n=[_.sorted_index(this.min_intervals,s)-1,_.sorted_index(this.max_intervals,s)],c=[this.min_intervals[n[0]],this.max_intervals[n[1]]].map(t=>Math.abs(i-r/t));let l;if(a.isEmpty(c.filter(t=>!isNaN(t))))l=this.tickers[0];else{const t=n[_.argmin(c)];l=this.tickers[t]}return l}get_interval(t,e,i){return this.get_best_ticker(t,e,i).get_interval(t,e,i)}get_ticks_no_defaults(t,e,i,r){return this.get_best_ticker(t,e,r).get_ticks_no_defaults(t,e,i,r)}}i.CompositeTicker=c,c.__name__="CompositeTicker",c.init_CompositeTicker()},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),s=t(164),a=t(165),o=i.__importStar(t(19)),r=t(9);class _ extends s.SingleIntervalTicker{constructor(t){super(t)}static init_DaysTicker(){this.define({days:[o.Array,[]]}),this.override({num_minor_ticks:0})}initialize(){super.initialize();const t=this.days;t.length>1?this.interval=(t[1]-t[0])*a.ONE_DAY:this.interval=31*a.ONE_DAY}get_ticks_no_defaults(t,e,n,i){const s=function(t,e){const n=a.last_month_no_later_than(new Date(t)),i=a.last_month_no_later_than(new Date(e));i.setUTCMonth(i.getUTCMonth()+1);const s=[],o=n;for(;s.push(a.copy_date(o)),o.setUTCMonth(o.getUTCMonth()+1),!(o>i););return s}(t,e),o=this.days,_=this.interval;return{major:r.concat(s.map(t=>((t,e)=>{const n=t.getUTCMonth(),i=[];for(const s of o){const o=a.copy_date(t);o.setUTCDate(s),new Date(o.getTime()+e/2).getUTCMonth()==n&&i.push(o)}return i})(t,_))).map(t=>t.getTime()).filter(n=>t<=n&&n<=e),minor:[]}}}n.DaysTicker=_,_.__name__="DaysTicker",_.init_DaysTicker()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),r=e(110),l=n.__importStar(e(19));class a extends r.ContinuousTicker{constructor(e){super(e)}static init_SingleIntervalTicker(){this.define({interval:[l.Number]})}get_interval(e,t,i){return this.interval}get min_interval(){return this.interval}get max_interval(){return this.interval}}i.SingleIntervalTicker=a,a.__name__="SingleIntervalTicker",a.init_SingleIntervalTicker()},n”, ” function _(t,e,n){function _(t){return new Date(t.getTime())}function O(t){const e=_(t);return e.setUTCDate(1),e.setUTCHours(0),e.setUTCMinutes(0),e.setUTCSeconds(0),e.setUTCMilliseconds(0),e}Object.defineProperty(n,"__esModule",{value:!0}),n.ONE_MILLI=1,n.ONE_SECOND=1e3,n.ONE_MINUTE=60*n.ONE_SECOND,n.ONE_HOUR=60*n.ONE_MINUTE,n.ONE_DAY=24*n.ONE_HOUR,n.ONE_MONTH=30*n.ONE_DAY,n.ONE_YEAR=365*n.ONE_DAY,n.copy_date=_,n.last_month_no_later_than=O,n.last_year_no_later_than=function(t){const e=O(t);return e.setUTCMonth(0),e}},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),i=t(164),s=t(165),a=r.__importStar(t(19)),o=t(9);class _ extends i.SingleIntervalTicker{constructor(t){super(t)}static init_MonthsTicker(){this.define({months:[a.Array,[]]})}initialize(){super.initialize();const t=this.months;t.length>1?this.interval=(t[1]-t[0])*s.ONE_MONTH:this.interval=12*s.ONE_MONTH}get_ticks_no_defaults(t,e,n,r){const i=function(t,e){const n=s.last_year_no_later_than(new Date(t)),r=s.last_year_no_later_than(new Date(e));r.setUTCFullYear(r.getUTCFullYear()+1);const i=[],a=n;for(;i.push(s.copy_date(a)),a.setUTCFullYear(a.getUTCFullYear()+1),!(a>r););return i}(t,e),a=this.months;return{major:o.concat(i.map(t=>a.map(e=>{const n=s.copy_date(t);return n.setUTCMonth(e),n}))).map(t=>t.getTime()).filter(n=>t<=n&&n<=e),minor:[]}}}n.MonthsTicker=_,_.__name__="MonthsTicker",_.init_MonthsTicker()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(108),r=e(164),n=e(165);class _ extends r.SingleIntervalTicker{constructor(e){super(e)}initialize(){super.initialize(),this.interval=n.ONE_YEAR,this.basic_ticker=new i.BasicTicker({num_minor_ticks:0})}get_ticks_no_defaults(e,t,a,i){const r=n.last_year_no_later_than(new Date(e)).getUTCFullYear(),_=n.last_year_no_later_than(new Date(t)).getUTCFullYear();return{major:this.basic_ticker.get_ticks_no_defaults(r,_,a,i).major.map(e=>Date.UTC(e,0,1)).filter(a=>e<=a&&a<=t),minor:[]}}}a.YearsTicker=_,_.__name__="YearsTicker"},n”, ” function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(148),o=e(153),n=e(169),r=e(170);class _ extends s.AxisView{}t.LogAxisView=_,_.__name__="LogAxisView";class c extends o.ContinuousAxis{constructor(e){super(e)}static init_LogAxis(){this.prototype.default_view=_,this.override({ticker:()=>new r.LogTicker,formatter:()=>new n.LogTickFormatter})}}t.LogAxis=c,c.__name__="LogAxis",c.init_LogAxis()},n”, ” function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),o=t(113),a=t(112),n=i.__importStar(t(19));class c extends o.TickFormatter{constructor(t){super(t)}static init_LogTickFormatter(){this.define({ticker:[n.Instance,null]})}initialize(){super.initialize(),this.basic_formatter=new a.BasicTickFormatter}doFormat(t,e){if(0==t.length)return[];const r=null!=this.ticker?this.ticker.base:10;let i=!1;const o=new Array(t.length);for(let e=0,a=t.length;e<a;e++)if(o[e]=`${r}^${Math.round(Math.log(t[e])/Math.log(r))}`,e>0&&o[e]==o[e-1]){i=!0;break}return i?this.basic_formatter.doFormat(t,e):o}}r.LogTickFormatter=c,c.__name__="LogTickFormatter",c.init_LogTickFormatter()},n”, ” function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(109),s=t(9);class n extends i.AdaptiveTicker{constructor(t){super(t)}static init_LogTicker(){this.override({mantissas:[1,5]})}get_ticks_no_defaults(t,o,e,i){const n=this.num_minor_ticks,r=[],c=this.base,a=Math.log(t)/Math.log(c),f=Math.log(o)/Math.log(c),l=f-a;let h;if(isFinite(l))if(l<2){const e=this.get_interval(t,o,i),c=Math.floor(t/e),a=Math.ceil(o/e);if(h=s.range(c,a+1).filter(t=>0!=t).map(t=>t*e).filter(e=>t<=e&&e<=o),n>0&&h.length>0){const t=e/n,o=s.range(0,n).map(o=>o*t);for(const t of o.slice(1))r.push(h[0]-t);for(const t of h)for(const e of o)r.push(t+e)}}else{const t=Math.ceil(.999999*a),o=Math.floor(1.000001*f),e=Math.ceil((o-t)/9);if(h=s.range(t-1,o+1,e).map(t=>c**t),n>0&&h.length>0){const t=c**e/n,o=s.range(1,n+1).map(o=>o*t);for(const t of o)r.push(h[0]/t);r.push(h[0]);for(const t of h)for(const e of o)r.push(t*e)}}else h=[];return{major:h.filter(e=>t<=e&&e<=o),minor:r.filter(e=>t<=e&&e<=o)}}}e.LogTicker=n,n.__name__="LogTicker",n.init_LogTicker()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(148),s=e(155),o=e(172),a=e(173);class c extends i.AxisView{}r.MercatorAxisView=c,c.__name__="MercatorAxisView";class n extends s.LinearAxis{constructor(e){super(e)}static init_MercatorAxis(){this.prototype.default_view=c,this.override({ticker:()=>new a.MercatorTicker({dimension:"lat"}),formatter:()=>new o.MercatorTickFormatter({dimension:"lat"})})}}r.MercatorAxis=n,n.__name__="MercatorAxis",n.init_MercatorAxis()},n”, ” function _(r,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=r(1),n=r(112),i=o.__importStar(r(19)),c=r(30);class s extends n.BasicTickFormatter{constructor(r){super(r)}static init_MercatorTickFormatter(){this.define({dimension:[i.LatLon]})}doFormat(r,t){if(null==this.dimension)throw new Error("MercatorTickFormatter.dimension not configured");if(0==r.length)return[];const e=r.length,o=new Array(e);if("lon"==this.dimension)for(let n=0;n<e;n++){const[e]=c.wgs84_mercator.inverse([r[n],t.loc]);o[n]=e}else for(let n=0;n<e;n++){const[,e]=c.wgs84_mercator.inverse([t.loc,r[n]]);o[n]=e}return super.doFormat(o,t)}}e.MercatorTickFormatter=s,s.__name__="MercatorTickFormatter",s.init_MercatorTickFormatter()},n”, ” function _(r,o,e){Object.defineProperty(e,"__esModule",{value:!0});const n=r(1),s=r(108),i=n.__importStar(r(19)),t=r(30);class c extends s.BasicTicker{constructor(r){super(r)}static init_MercatorTicker(){this.define({dimension:[i.LatLon]})}get_ticks_no_defaults(r,o,e,n){if(null==this.dimension)throw new Error("MercatorTicker.dimension not configured");let s,i,c;[r,o]=t.clip_mercator(r,o,this.dimension),"lon"===this.dimension?([s,c]=t.wgs84_mercator.inverse([r,e]),[i,c]=t.wgs84_mercator.inverse([o,e])):([c,s]=t.wgs84_mercator.inverse([e,r]),[c,i]=t.wgs84_mercator.inverse([e,o]));const a=super.get_ticks_no_defaults(s,i,e,n),_=[],f=[];if("lon"===this.dimension){for(const r of a.major)if(t.in_bounds(r,"lon")){const[o]=t.wgs84_mercator.forward([r,c]);_.push(o)}for(const r of a.minor)if(t.in_bounds(r,"lon")){const[o]=t.wgs84_mercator.forward([r,c]);f.push(o)}}else{for(const r of a.major)if(t.in_bounds(r,"lat")){const[,o]=t.wgs84_mercator.forward([c,r]);_.push(o)}for(const r of a.minor)if(t.in_bounds(r,"lat")){const[,o]=t.wgs84_mercator.forward([c,r]);f.push(o)}}return{major:_,minor:f}}}e.MercatorTicker=c,c.__name__="MercatorTicker",c.init_MercatorTicker()},n”, ” function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});var t=e(175);o.CustomJS=t.CustomJS;var u=e(177);o.OpenURL=u.OpenURL},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),u=t(176),c=n.__importStar(t(19)),r=t(24),a=t(26);class i extends u.Callback{constructor(t){super(t)}static init_CustomJS(){this.define({args:[c.Any,{}],code:[c.String,""]})}get names(){return r.keys(this.args)}get values(){return r.values(this.args)}get func(){const t=a.use_strict(this.code);return new Function(…this.names,"cb_obj","cb_data",t)}execute(t,e={}){return this.func.apply(t,this.values.concat(t,e))}}s.CustomJS=i,i.__name__="CustomJS",i.init_CustomJS()},n”, ” function _(e,c,l){Object.defineProperty(l,"__esModule",{value:!0});const a=e(69);class n extends a.Model{constructor(e){super(e)}}l.Callback=n,n.__name__="Callback"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(1),s=e(176),i=e(158),c=o.__importStar(e(19));class r extends s.Callback{constructor(e){super(e)}static init_OpenURL(){this.define({url:[c.String,"http://"],same_tab:[c.Boolean,!1]})}execute(e,{source:t}){const n=e=>{const n=i.replace_placeholders(this.url,t,e);this.same_tab?window.location.href=n:window.open(n)},{selected:o}=t;for(const e of o.indices)n(e);for(const e of o.line_indices)n(e)}}n.OpenURL=r,r.__name__="OpenURL",r.init_OpenURL()},n”, ” function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=a(179);r.Canvas=n.Canvas;var s=a(183);r.CartesianFrame=s.CartesianFrame},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const a=e(1),i=e(13),n=e(64),l=e(70),o=a.__importStar(e(19)),c=e(66),d=e(85),h=e(180),_=e(181),r=(()=>{const e=document.createElement("canvas"),t=e.getContext("webgl",{premultipliedAlpha:!0});return null!=t?{canvas:e,gl:t}:void l.logger.trace("WebGL is not supported")})(),v=a.__importDefault(e(182));class p extends n.DOMView{get ctx(){return this._ctx}initialize(){super.initialize();const e={position:"absolute",top:"0",left:"0",width:"100%",height:"100%"};switch(this.model.output_backend){case"webgl":this.webgl=r;case"canvas":{this.canvas_el=c.canvas({class:_.bk_canvas,style:e});const t=this.canvas_el.getContext("2d");if(null==t)throw new Error("unable to obtain 2D rendering context");this._ctx=t;break}case"svg":{const e=new v.default;this._ctx=e,this.canvas_el=e.getSvg();break}}this.underlays_el=c.div({class:_.bk_canvas_underlays,style:e}),this.overlays_el=c.div({class:_.bk_canvas_overlays,style:e}),this.events_el=c.div({class:_.bk_canvas_events,style:e}),c.append(this.el,this.underlays_el,this.canvas_el,this.overlays_el,this.events_el),h.fixup_ctx(this._ctx),l.logger.debug("CanvasView initialized")}add_underlay(e){this.underlays_el.appendChild(e)}add_overlay(e){this.overlays_el.appendChild(e)}add_event(e){this.events_el.appendChild(e)}prepare_canvas(e,t){this.bbox=new d.BBox({left:0,top:0,width:e,height:t}),this.el.style.width=`${e}px`,this.el.style.height=`${t}px`;const{use_hidpi:s,output_backend:a}=this.model,i=s&&"svg"!=a?devicePixelRatio:1;this.model.pixel_ratio=i,this.canvas_el.style.width=`${e}px`,this.canvas_el.style.height=`${t}px`,this.canvas_el.setAttribute("width",`${e*i}`),this.canvas_el.setAttribute("height",`${t*i}`),l.logger.debug(Rendering CanvasView with width: ${e}, height: ${t}, pixel ratio: ${i})}save(e){if(this.canvas_el instanceof HTMLCanvasElement){const t=this.canvas_el;if(null!=t.msToBlob){const s=t.msToBlob();window.navigator.msSaveBlob(s,e)}else{const s=document.createElement("a");s.href=t.toDataURL("image/png"),s.download=e+".png",s.target="_blank",s.dispatchEvent(new MouseEvent("click"))}}else{const t=this._ctx.getSerializedSvg(!0),s=new Blob([t],{type:"text/plain"}),a=document.createElement("a");a.download=e+".svg",a.innerHTML="Download svg",a.href=window.URL.createObjectURL(s),a.onclick=e=>document.body.removeChild(e.target),a.style.display="none",document.body.appendChild(a),a.click()}}}s.CanvasView=p,p.__name__="CanvasView";class u extends i.HasProps{constructor(e){super(e)}static init_Canvas(){this.prototype.default_view=p,this.internal({use_hidpi:[o.Boolean,!0],pixel_ratio:[o.Number,1],output_backend:[o.OutputBackend,"canvas"]})}}s.Canvas=u,u.__name__="Canvas",u.init_Canvas()},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fixup_ctx=function(e){!function(e){e.setLineDash||(e.setLineDash=t=>{e.mozDash=t,e.webkitLineDash=t}),e.getLineDash||(e.getLineDash=()=>e.mozDash)}(e),function(e){e.setLineDashOffset=t=>{e.lineDashOffset=t,e.mozDashOffset=t,e.webkitLineDashOffset=t},e.getLineDashOffset=()=>e.mozDashOffset}(e),function(e){e.setImageSmoothingEnabled=t=>{e.imageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.oImageSmoothingEnabled=t,e.webkitImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t},e.getImageSmoothingEnabled=()=>{const t=e.imageSmoothingEnabled;return null==t||t}}(e),function(e){e.measureText&&null==e.html5MeasureText&&(e.html5MeasureText=e.measureText,e.measureText=t=>{const n=e.html5MeasureText(t);return n.ascent=1.6*e.html5MeasureText("m").width,n})}(e),function(e){e.ellipse||(e.ellipse=function(t,n,a,o,s,i,m,h=!1){const l=.551784;e.translate(t,n),e.rotate(s);let u=a,r=o;h&&(u=-a,r=-o),e.moveTo(-u,0),e.bezierCurveTo(-u,r*l,-u*l,r,0,r),e.bezierCurveTo(u*l,r,u,r*l,u,0),e.bezierCurveTo(u,-r*l,u*l,-r,0,-r),e.bezierCurveTo(-u*l,-r,-u,-r*l,-u,0),e.rotate(-s),e.translate(-t,-n)})}(e)}},n”, ” function _(a,e,n){Object.defineProperty(n,"__esModule",{value:!0}),a(67),n.bk_canvas="bk-canvas",n.bk_canvas_underlays="bk-canvas-underlays",n.bk_canvas_overlays="bk-canvas-overlays",n.bk_canvas_events="bk-canvas-events"},n”, ” function _(t,e,r){var i,n,s,a,o;function h(t,e){var r,i=Object.keys(e);for(r=0;r<i.length;r++)t=t.replace(new RegExp("\\{"+i[r]+"\\}","gi"),e[i[r]]);return t}function l(t){var e,r,i;if(!t)throw new Error("cannot create a random attribute name for an undefined object");e="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",r="";do{for(r="",i=0;i<12;i++)r+=e[Math.floor(Math.random()*e.length)]}while(t[r]);return r}function c(t){var e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}n”, ” /!!n”, ” * Canvas 2 Svg v1.0.21n”, ” * A low level canvas to SVG converter. Uses a mock canvas context to build an SVG document.n”, ” *n”, ” * Licensed under the MIT license:n”, ” * http://www.opensource.org/licenses/mit-license.phpn”, ” *n”, ” * Author:n”, ” * Kerry Liun”, ” *n”, ” * Copyright (c) 2014 Gliffy Inc.n”, ” */n”, ” Object.defineProperty(r,"__esModule",{value:!0}),o=function(t,e){var r,i,n,s={};for(t=t.split(","),e=e||10,r=0;r<t.length;r+=2)i="&"+t[r+1]+";",n=parseInt(t[r],e),s[i]="&#"+n+";";return s["\\xa0"]=" ",s}("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),i={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}},(s=function(t,e){this.__root=t,this.__ctx=e}).prototype.addColorStop=function(t,e){var r,i=this.__ctx.__createElement("stop");i.setAttribute("offset",t),-1!==e.indexOf("rgba")?(r=/rgba\(\s*(\d+)\s,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e),i.setAttribute("stop-color",h("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),i.setAttribute("stop-opacity",r[4])):i.setAttribute("stop-color",e),this.__root.appendChild(i)},a=function(t,e){this.__root=t,this.__ctx=e},(n=function(t){var e,r={width:500,height:500,enableMirroring:!1};if(arguments.length>1?((e=r).width=arguments[0],e.height=arguments[1]):e=t||r,!(this instanceof n))return new n(e);this.width=e.width||r.width,this.height=e.height||r.height,this.enableMirroring=void 0!==e.enableMirroring?e.enableMirroring:r.enableMirroring,this.canvas=this,this.__document=e.document||document,e.ctx?this.__ctx=e.ctx:(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d")),this.__setDefaultStyles(),this.__stack=[this.__getStyleState()],this.__groupStack=[],this.__root=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__root.setAttribute("version",1.1),this.__root.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__root.setAttribute("width",this.width),this.__root.setAttribute("height",this.height),this.__ids={},this.__defs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__root.appendChild(this.__defs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__root.appendChild(this.__currentElement)}).prototype.__createElement=function(t,e,r){void 0===e&&(e={});var i,n,s=this.__document.createElementNS("http://www.w3.org/2000/svg",t),a=Object.keys(e);for(r&&(s.setAttribute("fill","none"),s.setAttribute("stroke","none")),i=0;i<a.length;i++)n=a[i],s.setAttribute(n,e[n]);return s},n.prototype.__setDefaultStyles=function(){var t,e,r=Object.keys(i);for(t=0;t<r.length;t++)this[e=r[t]]=i[e].canvas},n.prototype.__applyStyleState=function(t){var e,r,i=Object.keys(t);for(e=0;e<i.length;e++)this[r=i[e]]=t[r]},n.prototype.__getStyleState=function(){var t,e,r={},n=Object.keys(i);for(t=0;t<n.length;t++)r[e=n[t]]=this[e];return r},n.prototype.__applyStyleToCurrentElement=function(t){var e=this.__currentElement,r=this.__currentElementsToStyle;r&&(e.setAttribute(t,""),e=r.element,r.children.forEach((function(e){e.setAttribute(t,"")})));var n,o,l,c,p,_=Object.keys(i);for(n=0;n<_.length;n++)if(o=i[_[n]],l=this[_[n]],o.apply)if(l instanceof a){if(l.__ctx)for(;l.__ctx.__defs.childNodes.length;)c=l.__ctx.__defs.childNodes[0].getAttribute("id"),this.__ids[c]=c,this.__defs.appendChild(l.__ctx.__defs.childNodes[0]);e.setAttribute(o.apply,h("url(#{id})",{id:l.__root.getAttribute("id")}))}else if(l instanceof s)e.setAttribute(o.apply,h("url(#{id})",{id:l.__root.getAttribute("id")}));else if(-1!==o.apply.indexOf(t)&&o.svg!==l)if("stroke"!==o.svgAttr&&"fill"!==o.svgAttr||-1===l.indexOf("rgba")){var u=o.svgAttr;if("globalAlpha"===_[n]&&(u=t+"-"+o.svgAttr,e.getAttribute(u)))continue;e.setAttribute(u,l)}else{p=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(l),e.setAttribute(o.svgAttr,h("rgb({r},{g},{b})",{r:p[1],g:p[2],b:p[3]}));var d=p[4],g=this.globalAlpha;null!=g&&(d*=g),e.setAttribute(o.svgAttr+"-opacity",d)}},n.prototype.__closestGroupOrSvg=function(t){return"g"===(t=t||this.__currentElement).nodeName||"svg"===t.nodeName?t:this.__closestGroupOrSvg(t.parentNode)},n.prototype.getSerializedSvg=function(t){var e,r,i,n,s,a=(new XMLSerializer).serializeToString(this.__root);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(a)&&(a=a.replace(‘xmlns="http://www.w3.org/2000/svg’,’xmlns:xlink="http://www.w3.org/1999/xlink’)),t)for(e=Object.keys(o),r=0;r<e.length;r++)i=e[r],n=o[i],(s=new RegExp(i,"gi")).test(a)&&(a=a.replace(s,n));return a},n.prototype.getSvg=function(){return this.__root},n.prototype.save=function(){var t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__stack.push(this.__getStyleState())},n.prototype.restore=function(){this.__currentElement=this.__groupStack.pop(),this.__currentElementsToStyle=null,this.__currentElement||(this.__currentElement=this.__root.childNodes[1]);var t=this.__stack.pop();this.__applyStyleState(t)},n.prototype.__addTransform=function(t){var e=this.__closestGroupOrSvg();if(e.childNodes.length>0){"path"===this.__currentElement.nodeName&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());var r=this.__createElement("g");e.appendChild(r),this.__currentElement=r}var i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=t,this.__currentElement.setAttribute("transform",i)},n.prototype.scale=function(t,e){void 0===e&&(e=t),this.__addTransform(h("scale({x},{y})",{x:t,y:e}))},n.prototype.rotate=function(t){var e=180*t/Math.PI;this.__addTransform(h("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))},n.prototype.translate=function(t,e){this.__addTransform(h("translate({x},{y})",{x:t,y:e}))},n.prototype.transform=function(t,e,r,i,n,s){this.__addTransform(h("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:r,d:i,e:n,f:s}))},n.prototype.beginPath=function(){var t;this.__currentDefaultPath="",this.__currentPosition={},t=this.__createElement("path",{},!0),this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t},n.prototype.__applyCurrentDefaultPath=function(){var t=this.__currentElement;"path"===t.nodeName?t.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",t.nodeName)},n.prototype.__addPathCommand=function(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t},n.prototype.moveTo=function(t,e){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(h("M {x} {y}",{x:t,y:e}))},n.prototype.closePath=function(){this.__currentDefaultPath&&this.__addPathCommand("Z")},n.prototype.lineTo=function(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(h("L {x} {y}",{x:t,y:e})):this.__addPathCommand(h("M {x} {y}",{x:t,y:e}))},n.prototype.bezierCurveTo=function(t,e,r,i,n,s){this.__currentPosition={x:n,y:s},this.__addPathCommand(h("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:r,cp2y:i,x:n,y:s}))},n.prototype.quadraticCurveTo=function(t,e,r,i){this.__currentPosition={x:r,y:i},this.__addPathCommand(h("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:r,y:i}))};var p=function(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]};n.prototype.arcTo=function(t,e,r,i,n){var s=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(void 0!==s&&void 0!==a){if(n<0)throw new Error("IndexSizeError: The radius provided ("+n+") is negative.");if(s===t&&a===e||t===r&&e===i||0===n)this.lineTo(t,e);else{var o=p([s-t,a-e]),h=p([r-t,i-e]);if(o[0]*h[1]!=o[1]*h[0]){var l=o[0]*h[0]+o[1]*h[1],c=Math.acos(Math.abs(l)),_=p([o[0]+h[0],o[1]+h[1]]),u=n/Math.sin(c/2),d=t+u*_[0],g=e+u*_[1],m=[-o[1],o[0]],f=[h[1],-h[0]],y=function(t){var e=t[0];return t[1]>=0?Math.acos(e):-Math.acos(e)},v=y(m),b=y(f);this.lineTo(d+m[0]*n,g+m[1]*n),this.arc(d,g,n,v,b)}else this.lineTo(t,e)}}},n.prototype.stroke=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")},n.prototype.fill=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")},n.prototype.rect=function(t,e,r,i){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()},n.prototype.fillRect=function(t,e,r,i){var n;n=this.__createElement("rect",{x:t,y:e,width:r,height:i},!0),this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("fill")},n.prototype.strokeRect=function(t,e,r,i){var n;n=this.__createElement("rect",{x:t,y:e,width:r,height:i},!0),this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("stroke")},n.prototype.__clearCanvas=function(){for(var t=this.__closestGroupOrSvg().getAttribute("transform"),e=this.__root.childNodes[1],r=e.childNodes,i=r.length-1;i>=0;i–)r[i]&&e.removeChild(r[i]);this.__currentElement=e,this.__groupStack=[],t&&this.__addTransform(t)},n.prototype.clearRect=function(t,e,r,i){if(0!==t||0!==e||r!==this.width||i!==this.height){var n,s=this.__closestGroupOrSvg();n=this.__createElement("rect",{x:t,y:e,width:r,height:i,fill:"#FFFFFF"},!0),s.appendChild(n)}else this.__clearCanvas()},n.prototype.createLinearGradient=function(t,e,r,i){var n=this.__createElement("linearGradient",{id:l(this.__ids),x1:t+"px",x2:r+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(n),new s(n,this)},n.prototype.createRadialGradient=function(t,e,r,i,n,a){var o=this.__createElement("radialGradient",{id:l(this.__ids),cx:i+"px",cy:n+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(o),new s(o,this)},n.prototype.__parseFont=function(){var t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\’\"\sa-z0-9]+?)\s*$/i.exec(this.font),e={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return"underline"===this.__fontUnderline&&(e.decoration="underline"),this.__fontHref&&(e.href=this.__fontHref),e},n.prototype.__wrapTextLink=function(t,e){if(t.href){var r=this.__createElement("a");return r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),r.appendChild(e),r}return e},n.prototype.__applyText=function(t,e,r,i){var n,s,a=this.__parseFont(),o=this.__closestGroupOrSvg(),h=this.__createElement("text",{"font-family":a.family,"font-size":a.size,"font-style":a.style,"font-weight":a.weight,"text-decoration":a.decoration,x:e,y:r,"text-anchor":(n=this.textAlign,s={left:"start",right:"end",center:"middle",start:"start",end:"end"},s[n]||s.start),"dominant-baseline":c(this.textBaseline)},!0);h.appendChild(this.__document.createTextNode(t)),this.__currentElement=h,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(a,h))},n.prototype.fillText=function(t,e,r){this.__applyText(t,e,r,"fill")},n.prototype.strokeText=function(t,e,r){this.__applyText(t,e,r,"stroke")},n.prototype.measureText=function(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)},n.prototype.arc=function(t,e,r,i,n,s){if(i!==n){(i%=2*Math.PI)===(n%=2*Math.PI)&&(n=(n+2*Math.PI-.001*(s?-1:1))%(2*Math.PI));var a=t+r*Math.cos(n),o=e+r*Math.sin(n),l=t+r*Math.cos(i),c=e+r*Math.sin(i),p=s?0:1,_=0,u=n-i;u<0&&(u+=2*Math.PI),_=s?u>Math.PI?0:1:u>Math.PI?1:0,this.lineTo(l,c),this.__addPathCommand(h("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:r,ry:r,xAxisRotation:0,largeArcFlag:_,sweepFlag:p,endX:a,endY:o})),this.__currentPosition={x:a,y:o}}},n.prototype.clip=function(){var t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),r=l(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",r),e.appendChild(this.__currentElement),this.__defs.appendChild(e),t.setAttribute("clip-path",h("url(#{id})",{id:r})),t.appendChild(i),this.__currentElement=i},n.prototype.drawImage=function(){var t,e,r,i,s,a,o,h,l,c,p,_,u,d,g=Array.prototype.slice.call(arguments),m=g[0],f=0,y=0;if(3===g.length)t=g[1],e=g[2],r=s=m.width,i=a=m.height;else if(5===g.length)t=g[1],e=g[2],r=g[3],i=g[4],s=m.width,a=m.height;else{if(9!==g.length)throw new Error("Inavlid number of arguments passed to drawImage: "+arguments.length);f=g[1],y=g[2],s=g[3],a=g[4],t=g[5],e=g[6],r=g[7],i=g[8]}o=this.__closestGroupOrSvg(),this.__currentElement;var v="translate("+t+", "+e+")";if(m instanceof n){if((h=m.getSvg().cloneNode(!0)).childNodes&&h.childNodes.length>1){for(l=h.childNodes[0];l.childNodes.length;)d=l.childNodes[0].getAttribute("id"),this.__ids[d]=d,this.__defs.appendChild(l.childNodes[0]);if(c=h.childNodes[1]){var b,x=c.getAttribute("transform");b=x?x+" "+v:v,c.setAttribute("transform",b),o.appendChild(c)}}}else"IMG"===m.nodeName?((p=this.__createElement("image")).setAttribute("width",r),p.setAttribute("height",i),p.setAttribute("preserveAspectRatio","none"),(f||y||s!==m.width||a!==m.height)&&((_=this.__document.createElement("canvas")).width=r,_.height=i,(u=_.getContext("2d")).drawImage(m,f,y,s,a,0,0,r,i),m=_),p.setAttribute("transform",v),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===m.nodeName?m.toDataURL():m.getAttribute("src")),o.appendChild(p)):"CANVAS"===m.nodeName&&((p=this.__createElement("image")).setAttribute("width",r),p.setAttribute("height",i),p.setAttribute("preserveAspectRatio","none"),(_=this.__document.createElement("canvas")).width=r,_.height=i,(u=_.getContext("2d")).imageSmoothingEnabled=!1,u.mozImageSmoothingEnabled=!1,u.oImageSmoothingEnabled=!1,u.webkitImageSmoothingEnabled=!1,u.drawImage(m,f,y,s,a,0,0,r,i),m=_,p.setAttribute("transform",v),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m.toDataURL()),o.appendChild(p))},n.prototype.createPattern=function(t,e){var r,i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),s=l(this.__ids);return i.setAttribute("id",s),i.setAttribute("width",t.width),i.setAttribute("height",t.height),"CANVAS"===t.nodeName||"IMG"===t.nodeName?((r=this.__document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("width",t.width),r.setAttribute("height",t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===t.nodeName?t.toDataURL():t.getAttribute("src")),i.appendChild(r),this.__defs.appendChild(i)):t instanceof n&&(i.appendChild(t.__root.childNodes[1]),this.__defs.appendChild(i)),new a(i,this)},n.prototype.setLineDash=function(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null},n.prototype.drawFocusRing=function(){},n.prototype.createImageData=function(){},n.prototype.getImageData=function(){},n.prototype.putImageData=function(){},n.prototype.globalCompositeOperation=function(){},n.prototype.setTransform=function(){},r.default=n},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const a=e(184),_=e(120),n=e(129),r=e(130),i=e(185),g=e(88),c=e(187);class h extends c.LayoutItem{constructor(e,t,s,a,_={},n={}){super(),this.x_scale=e,this.y_scale=t,this.x_range=s,this.y_range=a,this.extra_x_ranges=_,this.extra_y_ranges=n,this._configure_scales()}map_to_screen(e,t,s="default",a="default"){return[this.xscales[s].v_compute(e),this.yscales[a].v_compute(t)]}_get_ranges(e,t){return Object.assign(Object.assign({},t),{default:e})}_get_scales(e,t,s){const c={};for(const h in t){const o=t[h];if((o instanceof i.DataRange1d||o instanceof r.Range1d)&&!(e instanceof _.ContinuousScale))throw new Error(Range ${o.type} is incompatible is Scale ${e.type});if(o instanceof g.FactorRange&&!(e instanceof a.CategoricalScale))throw new Error(Range ${o.type} is incompatible is Scale ${e.type});e instanceof n.LogScale&&o instanceof i.DataRange1d&&(o.scale_hint="log");const l=e.clone();l.setv({source_range:o,target_range:s}),c[h]=l}return c}_configure_frame_ranges(){this._h_target=new r.Range1d({start:this._left.value,end:this._right.value}),this._v_target=new r.Range1d({start:this._bottom.value,end:this._top.value})}_configure_scales(){this._configure_frame_ranges(),this._x_ranges=this._get_ranges(this.x_range,this.extra_x_ranges),this._y_ranges=this._get_ranges(this.y_range,this.extra_y_ranges),this._xscales=this._get_scales(this.x_scale,this._x_ranges,this._h_target),this._yscales=this._get_scales(this.y_scale,this._y_ranges,this._v_target)}_update_scales(){this._configure_frame_ranges();for(const e in this._xscales){this._xscales[e].target_range=this._h_target}for(const e in this._yscales){this._yscales[e].target_range=this._v_target}}_set_geometry(e,t){super._set_geometry(e,t),this._update_scales()}get x_ranges(){return this._x_ranges}get y_ranges(){return this._y_ranges}get xscales(){return this._xscales}get yscales(){return this._yscales}}s.CartesianFrame=h,h.__name__="CartesianFrame"},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(121);class _ extends n.Scale{constructor(e){super(e)}compute(e){return super._linear_compute(this.source_range.synthetic(e))}v_compute(e){return super._linear_v_compute(this.source_range.v_synthetic(e))}invert(e){return this._linear_invert(e)}v_invert(e){return this._linear_v_invert(e)}}t.CategoricalScale=_,_.__name__="CategoricalScale"},n”, ” function _(t,i,n){Object.defineProperty(n,"__esModule",{value:!0});const e=t(1),a=t(186),s=t(78),l=t(70),_=e.__importStar(t(19)),o=e.__importStar(t(85)),r=t(9);class d extends a.DataRange{constructor(t){super(t),this._plot_bounds={},this.have_updated_interactively=!1}static init_DataRange1d(){this.define({start:[_.Number],end:[_.Number],range_padding:[_.Number,.1],range_padding_units:[_.PaddingUnits,"percent"],flipped:[_.Boolean,!1],follow:[_.StartEnd],follow_interval:[_.Number],default_span:[_.Number,2],only_visible:[_.Boolean,!1]}),this.internal({scale_hint:[_.String,"auto"]})}initialize(){super.initialize(),this._initial_start=this.start,this._initial_end=this.end,this._initial_range_padding=this.range_padding,this._initial_range_padding_units=this.range_padding_units,this._initial_follow=this.follow,this._initial_follow_interval=this.follow_interval,this._initial_default_span=this.default_span}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}computed_renderers(){const t=this.names;let i=this.renderers;if(0==i.length)for(const t of this.plots){const n=t.renderers.filter(t=>t instanceof s.GlyphRenderer);i=i.concat(n)}t.length>0&&(i=i.filter(i=>r.includes(t,i.name))),l.logger.debug(computed ${i.length} renderers for DataRange1d ${this.id});for(const t of i)l.logger.trace(` - ${t.type} ${t.id}`);return i}_compute_plot_bounds(t,i){let n=o.empty();for(const e of t)null==i[e.id]||!e.visible&&this.only_visible||(n=o.union(n,i[e.id]));return n}adjust_bounds_for_aspect(t,i){const n=o.empty();let e=t.x1-t.x0;e<=0&&(e=1);let a=t.y1-t.y0;a<=0&&(a=1);const s=.5*(t.x1+t.x0),l=.5*(t.y1+t.y0);return e<i*a?e=i*a:a=e/i,n.x1=s+.5*e,n.x0=s-.5*e,n.y1=l+.5*a,n.y0=l-.5*a,n}_compute_min_max(t,i){let n,e,a=o.empty();for(const i in t){const n=t[i];a=o.union(a,n)}return[n,e]=0==i?[a.x0,a.x1]:[a.y0,a.y1],[n,e]}_compute_range(t,i){const n=this.range_padding;let e,a;if(null!=this._initial_start&&(t=this._initial_start),null!=this._initial_end&&(i=this._initial_end),"log"==this.scale_hint){let s,_;if((isNaN(t)||!isFinite(t)||t<=0)&&(t=isNaN(i)||!isFinite(i)||i<=0?.1:i/100,l.logger.warn(could not determine minimum data value for log axis, DataRange1d using value ${t})),(isNaN(i)||!isFinite(i)||i<=0)&&(i=isNaN(t)||!isFinite(t)||t<=0?10:100*t,l.logger.warn(could not determine maximum data value for log axis, DataRange1d using value ${i})),i==t)_=this.default_span+.001,s=Math.log(t)/Math.log(10);else{let e,a;"percent"==this.range_padding_units?(e=Math.log(t)/Math.log(10),a=Math.log(i)/Math.log(10),_=(a-e)*(1+n)):(e=Math.log(t-n)/Math.log(10),a=Math.log(i+n)/Math.log(10),_=a-e),s=(e+a)/2}e=10**(s-_/2),a=10**(s+_/2)}else{let s;s=i==t?this.default_span:"percent"==this.range_padding_units?(i-t)*(1+n):i-t+2*n;const l=(i+t)/2;e=l-s/2,a=l+s/2}let s=1;this.flipped&&([e,a]=[a,e],s=-1);const _=this.follow_interval;return null!=_&&Math.abs(e-a)>_&&("start"==this.follow?a=e+s*_:"end"==this.follow&&(e=a-s*_)),[e,a]}update(t,i,n,e){if(this.have_updated_interactively)return;const a=this.computed_renderers();let s=this._compute_plot_bounds(a,t);null!=e&&(s=this.adjust_bounds_for_aspect(s,e)),this._plot_bounds[n]=s;const[l,_]=this._compute_min_max(this._plot_bounds,i);let[o,r]=this._compute_range(l,_);null!=this._initial_start&&("log"==this.scale_hint?this._initial_start>0&&(o=this._initial_start):o=this._initial_start),null!=this._initial_end&&("log"==this.scale_hint?this._initial_end>0&&(r=this._initial_end):r=this._initial_end);const[d,h]=[this.start,this.end];if(o!=d||r!=h){const t={};o!=d&&(t.start=o),r!=h&&(t.end=r),this.setv(t)}"auto"==this.bounds&&this.setv({bounds:[o,r]},{silent:!0}),this.change.emit()}reset(){this.have_updated_interactively=!1,this.setv({range_padding:this._initial_range_padding,range_padding_units:this._initial_range_padding_units,follow:this._initial_follow,follow_interval:this._initial_follow_interval,default_span:this._initial_default_span},{silent:!0}),this.change.emit()}}n.DataRange1d=d,d.__name__="DataRange1d",d.init_DataRange1d()},n”, ” function _(e,a,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),r=e(89),s=n.__importStar(e(19));class _ extends r.Range{constructor(e){super(e)}static init_DataRange(){this.define({names:[s.Array,[]],renderers:[s.Array,[]]})}}t.DataRange=_,_.__name__="DataRange",_.init_DataRange()},n”, ” function _(a,o,t){Object.defineProperty(t,"__esModule",{value:!0});var e=a(188);t.Sizeable=e.Sizeable;var r=a(189);t.Layoutable=r.Layoutable,t.LayoutItem=r.LayoutItem;var n=a(190);t.HStack=n.HStack,t.VStack=n.VStack,t.AnchorLayout=n.AnchorLayout;var u=a(191);t.Grid=u.Grid,t.Row=u.Row,t.Column=u.Column;var c=a(192);t.ContentBox=c.ContentBox,t.VariadicBox=c.VariadicBox},n”, ” function _(h,t,i){Object.defineProperty(i,"__esModule",{value:!0});const{min:e,max:w}=Math;class d{constructor(h={}){this.width=null!=h.width?h.width:0,this.height=null!=h.height?h.height:0}bounded_to({width:h,height:t}){return new d({width:this.width==1/0&&null!=h?h:this.width,height:this.height==1/0&&null!=t?t:this.height})}expanded_to({width:h,height:t}){return new d({width:h!=1/0?w(this.width,h):this.width,height:t!=1/0?w(this.height,t):this.height})}expand_to({width:h,height:t}){this.width=w(this.width,h),this.height=w(this.height,t)}narrowed_to({width:h,height:t}){return new d({width:e(this.width,h),height:e(this.height,t)})}narrow_to({width:h,height:t}){this.width=e(this.width,h),this.height=e(this.height,t)}grow_by({left:h,right:t,top:i,bottom:e}){const w=this.width+h+t,s=this.height+i+e;return new d({width:w,height:s})}shrink_by({left:h,right:t,top:i,bottom:e}){const s=w(this.width-h-t,0),n=w(this.height-i-e,0);return new d({width:s,height:n})}map(h,t){return new d({width:h(this.width),height:(null!=t?t:h)(this.height)})}}i.Sizeable=d,d.__name__="Sizeable"},n”, ” function _(i,t,h){Object.defineProperty(h,"__esModule",{value:!0});const e=i(188),s=i(85),{min:n,max:g,round:a}=Math;class r{constructor(){this._bbox=new s.BBox,this._inner_bbox=new s.BBox;const i=this;this._top={get value(){return i.bbox.top}},this._left={get value(){return i.bbox.left}},this._width={get value(){return i.bbox.width}},this._height={get value(){return i.bbox.height}},this._right={get value(){return i.bbox.right}},this._bottom={get value(){return i.bbox.bottom}},this._hcenter={get value(){return i.bbox.hcenter}},this._vcenter={get value(){return i.bbox.vcenter}}}get bbox(){return this._bbox}get inner_bbox(){return this._inner_bbox}get sizing(){return this._sizing}set_sizing(i){const t=i.width_policy||"fit",h=i.width,e=null!=i.min_width?i.min_width:0,s=null!=i.max_width?i.max_width:1/0,n=i.height_policy||"fit",g=i.height,a=null!=i.min_height?i.min_height:0,r=null!=i.max_height?i.max_height:1/0,l=i.aspect,_=i.margin||{top:0,right:0,bottom:0,left:0},d=!1!==i.visible,o=i.halign||"start",u=i.valign||"start";this._sizing={width_policy:t,min_width:e,width:h,max_width:s,height_policy:n,min_height:a,height:g,max_height:r,aspect:l,margin:_,visible:d,halign:o,valign:u,size:{width:h,height:g},min_size:{width:e,height:a},max_size:{width:s,height:r}},this._init()}_init(){}_set_geometry(i,t){this._bbox=i,this._inner_bbox=t}set_geometry(i,t){this._set_geometry(i,t||i)}is_width_expanding(){return"max"==this.sizing.width_policy}is_height_expanding(){return"max"==this.sizing.height_policy}apply_aspect(i,{width:t,height:h}){const{aspect:e}=this.sizing;if(null!=e){const{width_policy:s,height_policy:n}=this.sizing,g=(i,t)=>{const h={max:4,fit:3,min:2,fixed:1};return h[i]>h[t]};if("fixed"!=s&&"fixed"!=n)if(s==n){const s=t,n=a(t/e),g=a(h*e),r=h;Math.abs(i.width-s)+Math.abs(i.height-n)<=Math.abs(i.width-g)+Math.abs(i.height-r)?(t=s,h=n):(t=g,h=r)}else g(s,n)?h=a(t/e):t=a(h*e);else"fixed"==s?h=a(t/e):"fixed"==n&&(t=a(h*e))}return{width:t,height:h}}measure(i){if(!this.sizing.visible)return{width:0,height:0};const t=i=>"fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:i,h=i=>"fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:i,s=new e.Sizeable(i).shrink_by(this.sizing.margin).map(t,h),n=this._measure(s),g=this.clip_size(n),a=t(g.width),r=h(g.height),l=this.apply_aspect(s,{width:a,height:r});return Object.assign(Object.assign({},n),l)}compute(i={}){const t=this.measure({width:null!=i.width&&this.is_width_expanding()?i.width:1/0,height:null!=i.height&&this.is_height_expanding()?i.height:1/0}),{width:h,height:e}=t,n=new s.BBox({left:0,top:0,width:h,height:e});let g=void 0;if(null!=t.inner){const{left:i,top:n,right:a,bottom:r}=t.inner;g=new s.BBox({left:i,top:n,right:h-a,bottom:e-r})}this.set_geometry(n,g)}get xview(){return this.bbox.xview}get yview(){return this.bbox.yview}clip_width(i){return g(this.sizing.min_width,n(i,this.sizing.max_width))}clip_height(i){return g(this.sizing.min_height,n(i,this.sizing.max_height))}clip_size({width:i,height:t}){return{width:this.clip_width(i),height:this.clip_height(t)}}}h.Layoutable=r,r.__name__="Layoutable";class l extends r{_measure(i){const{width_policy:t,height_policy:h}=this.sizing;let e,s;if(i.width==1/0)e=null!=this.sizing.width?this.sizing.width:0;else switch(t){case"fixed":e=null!=this.sizing.width?this.sizing.width:0;break;case"min":e=null!=this.sizing.width?n(i.width,this.sizing.width):0;break;case"fit":e=null!=this.sizing.width?n(i.width,this.sizing.width):i.width;break;case"max":e=null!=this.sizing.width?g(i.width,this.sizing.width):i.width}if(i.height==1/0)s=null!=this.sizing.height?this.sizing.height:0;else switch(h){case"fixed":s=null!=this.sizing.height?this.sizing.height:0;break;case"min":s=null!=this.sizing.height?n(i.height,this.sizing.height):0;break;case"fit":s=null!=this.sizing.height?n(i.height,this.sizing.height):i.height;break;case"max":s=null!=this.sizing.height?g(i.height,this.sizing.height):i.height}return{width:e,height:s}}}h.LayoutItem=l,l.__name__="LayoutItem";class _ extends r{_measure(i){const t=this._content_size(),h=i.bounded_to(this.sizing.size).bounded_to(t);return{width:(()=>{switch(this.sizing.width_policy){case"fixed":return null!=this.sizing.width?this.sizing.width:t.width;case"min":return t.width;case"fit":return h.width;case"max":return Math.max(t.width,h.width)}})(),height:(()=>{switch(this.sizing.height_policy){case"fixed":return null!=this.sizing.height?this.sizing.height:t.height;case"min":return t.height;case"fit":return h.height;case"max":return Math.max(t.height,h.height)}})()}}}h.ContentLayoutable=_,_.__name__="ContentLayoutable"},n”, ” function _(t,e,h){Object.defineProperty(h,"__esModule",{value:!0});const o=t(189),r=t(85);class i extends o.Layoutable{constructor(){super(…arguments),this.children=[]}}h.Stack=i,i.__name__="Stack";class s extends i{_measure(t){let e=0,h=0;for(const t of this.children){const o=t.measure({width:0,height:0});e+=o.width,h=Math.max(h,o.height)}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);const{top:h,bottom:o}=t;let{left:i}=t;for(const t of this.children){const{width:e}=t.measure({width:0,height:0});t.set_geometry(new r.BBox({left:i,width:e,top:h,bottom:o})),i+=e}}}h.HStack=s,s.__name__="HStack";class n extends i{_measure(t){let e=0,h=0;for(const t of this.children){const o=t.measure({width:0,height:0});e=Math.max(e,o.width),h+=o.height}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);const{left:h,right:o}=t;let{top:i}=t;for(const t of this.children){const{height:e}=t.measure({width:0,height:0});t.set_geometry(new r.BBox({top:i,height:e,left:h,right:o})),i+=e}}}h.VStack=n,n.__name__="VStack";class c extends o.Layoutable{constructor(){super(…arguments),this.children=[]}_measure(t){let e=0,h=0;for(const{layout:o}of this.children){const r=o.measure(t);e=Math.max(e,r.width),h=Math.max(h,r.height)}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);for(const{layout:e,anchor:h,margin:o}of this.children){const{left:i,right:s,top:n,bottom:c,hcenter:a,vcenter:_}=t,{width:g,height:d}=e.measure(t);let m;switch(h){case"top_left":m=new r.BBox({left:i+o,top:n+o,width:g,height:d});break;case"top_center":m=new r.BBox({hcenter:a,top:n+o,width:g,height:d});break;case"top_right":m=new r.BBox({right:s-o,top:n+o,width:g,height:d});break;case"bottom_right":m=new r.BBox({right:s-o,bottom:c-o,width:g,height:d});break;case"bottom_center":m=new r.BBox({hcenter:a,bottom:c-o,width:g,height:d});break;case"bottom_left":m=new r.BBox({left:i+o,bottom:c-o,width:g,height:d});break;case"center_left":m=new r.BBox({left:i+o,vcenter:_,width:g,height:d});break;case"center":m=new r.BBox({hcenter:a,vcenter:_,width:g,height:d});break;case"center_right":m=new r.BBox({right:s-o,vcenter:_,width:g,height:d})}e.set_geometry(m)}}}h.AnchorLayout=c,c.__name__="AnchorLayout"},n”, ” function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const e=t(188),o=t(189),n=t(8),r=t(85),h=t(9),{max:l,round:c}=Math;class a{constructor(t){this.def=t,this._map=new Map}get(t){let i=this._map.get(t);return void 0===i&&(i=this.def(),this._map.set(t,i)),i}apply(t,i){const s=this.get(t);this._map.set(t,i(s))}}a.__name__="DefaultMap";class g{constructor(){this._items=[],this._nrows=0,this._ncols=0}get nrows(){return this._nrows}get ncols(){return this._ncols}add(t,i){const{r1:s,c1:e}=t;this._nrows=l(this._nrows,s+1),this._ncols=l(this._ncols,e+1),this._items.push({span:t,data:i})}at(t,i){return this._items.filter(({span:s})=>s.r0<=t&&t<=s.r1&&s.c0<=i&&i<=s.c1).map(({data:t})=>t)}row(t){return this._items.filter(({span:i})=>i.r0<=t&&t<=i.r1).map(({data:t})=>t)}col(t){return this._items.filter(({span:i})=>i.c0<=t&&t<=i.c1).map(({data:t})=>t)}foreach(t){for(const{span:i,data:s}of this._items)t(i,s)}map(t){const i=new g;for(const{span:s,data:e}of this._items)i.add(s,t(s,e));return i}}g.__name__="Container";class p extends o.Layoutable{constructor(t=[]){super(),this.items=t,this.rows="auto",this.cols="auto",this.spacing=0,this.absolute=!1}is_width_expanding(){if(super.is_width_expanding())return!0;if("fixed"==this.sizing.width_policy)return!1;const{cols:t}=this._state;return h.some(t,t=>"max"==t.policy)}is_height_expanding(){if(super.is_height_expanding())return!0;if("fixed"==this.sizing.height_policy)return!1;const{rows:t}=this._state;return h.some(t,t=>"max"==t.policy)}_init(){super._init();const t=new g;for(const{layout:i,row:s,col:e,row_span:o,col_span:n}of this.items)if(i.sizing.visible){const r=s,h=e,l=s+(null!=o?o:1)-1,c=e+(null!=n?n:1)-1;t.add({r0:r,c0:h,r1:l,c1:c},i)}const{nrows:i,ncols:s}=t,e=new Array(i);for(let s=0;s<i;s++){const i=(()=>{const t=n.isPlainObject(this.rows)?this.rows[s]||this.rows[""]:this.rows;return null==t?{policy:"auto"}:n.isNumber(t)?{policy:"fixed",height:t}:n.isString(t)?{policy:t}:t})(),o=i.align||"auto";if("fixed"==i.policy)e[s]={policy:"fixed",height:i.height,align:o};else if("min"==i.policy)e[s]={policy:"min",align:o};else if("fit"==i.policy||"max"==i.policy)e[s]={policy:i.policy,flex:i.flex||1,align:o};else{if("auto"!=i.policy)throw new Error("unrechable");h.some(t.row(s),t=>t.is_height_expanding())?e[s]={policy:"max",flex:1,align:o}:e[s]={policy:"min",align:o}}}const o=new Array(s);for(let i=0;i<s;i++){const s=(()=>{const t=n.isPlainObject(this.cols)?this.cols[i]||this.cols[""]:this.cols;return null==t?{policy:"auto"}:n.isNumber(t)?{policy:"fixed",width:t}:n.isString(t)?{policy:t}:t})(),e=s.align||"auto";if("fixed"==s.policy)o[i]={policy:"fixed",width:s.width,align:e};else if("min"==s.policy)o[i]={policy:"min",align:e};else if("fit"==s.policy||"max"==s.policy)o[i]={policy:s.policy,flex:s.flex||1,align:e};else{if("auto"!=s.policy)throw new Error("unrechable");h.some(t.col(i),t=>t.is_width_expanding())?o[i]={policy:"max",flex:1,align:e}:o[i]={policy:"min",align:e}}}const[r,l]=n.isNumber(this.spacing)?[this.spacing,this.spacing]:this.spacing;this._state={items:t,nrows:i,ncols:s,rows:e,cols:o,rspacing:r,cspacing:l}}_measure_totals(t,i){const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state;return{height:h.sum(t)+(s-1)*o,width:h.sum(i)+(e-1)*n}}_measure_cells(t){const{items:i,nrows:s,ncols:o,rows:n,cols:r,rspacing:h,cspacing:a}=this._state,p=new Array(s);for(let t=0;t<s;t++){const i=n[t];p[t]="fixed"==i.policy?i.height:0}const _=new Array(o);for(let t=0;t<o;t++){const i=r[t];_[t]="fixed"==i.policy?i.width:0}const f=new g;return i.foreach((i,s)=>{const{r0:o,c0:g,r1:d,c1:w}=i,u=(d-o)*h,m=(w-g)*a;let y=0;for(let i=o;i<=d;i++)y+=t(i,g).height;y+=u;let x=0;for(let i=g;i<=w;i++)x+=t(o,i).width;x+=m;const b=s.measure({width:x,height:y});f.add(i,{layout:s,size_hint:b});const z=new e.Sizeable(b).grow_by(s.sizing.margin);z.height-=u,z.width-=m;const j=[];for(let t=o;t<=d;t++){const i=n[t];"fixed"==i.policy?z.height-=i.height:j.push(t)}if(z.height>0){const t=c(z.height/j.length);for(const i of j)p[i]=l(p[i],t)}const O=[];for(let t=g;t<=w;t++){const i=r[t];"fixed"==i.policy?z.width-=i.width:O.push(t)}if(z.width>0){const t=c(z.width/O.length);for(const i of O)_[i]=l(_[i],t)}}),{size:this._measure_totals(p,_),row_heights:p,col_widths:_,size_hints:f}}_measure_grid(t){const{nrows:i,ncols:s,rows:e,cols:o,rspacing:n,cspacing:r}=this._state,h=this._measure_cells((t,i)=>{const s=e[t],n=o[i];return{width:"fixed"==n.policy?n.width:1/0,height:"fixed"==s.policy?s.height:1/0}});let a;a="fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:t.height!=1/0&&this.is_height_expanding()?t.height:h.size.height;let g,p=0;for(let t=0;t<i;t++){const i=e[t];"fit"==i.policy||"max"==i.policy?p+=i.flex:a-=h.row_heights[t]}if(a-=(i-1)*n,0!=p&&a>0)for(let t=0;t<i;t++){const i=e[t];if("fit"==i.policy||"max"==i.policy){const s=c(a*(i.flex/p));a-=s,h.row_heights[t]=s,p-=i.flex}}else if(a<0){let t=0;for(let s=0;s<i;s++){"fixed"!=e[s].policy&&t++}let s=-a;for(let o=0;o<i;o++){if("fixed"!=e[o].policy){const i=h.row_heights[o],e=c(s/t);h.row_heights[o]=l(i-e,0),s-=e>i?i:e,t–}}}g="fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:t.width!=1/0&&this.is_width_expanding()?t.width:h.size.width;let _=0;for(let t=0;t<s;t++){const i=o[t];"fit"==i.policy||"max"==i.policy?_+=i.flex:g-=h.col_widths[t]}if(g-=(s-1)*r,0!=_&&g>0)for(let t=0;t<s;t++){const i=o[t];if("fit"==i.policy||"max"==i.policy){const s=c(g*(i.flex/_));g-=s,h.col_widths[t]=s,_-=i.flex}}else if(g<0){let t=0;for(let i=0;i<s;i++){"fixed"!=o[i].policy&&t++}let i=-g;for(let e=0;e<s;e++){if("fixed"!=o[e].policy){const s=h.col_widths[e],o=c(i/t);h.col_widths[e]=l(s-o,0),i-=o>s?s:o,t–}}}const{row_heights:f,col_widths:d,size_hints:w}=this._measure_cells((t,i)=>({width:h.col_widths[i],height:h.row_heights[t]}));return{size:this._measure_totals(f,d),row_heights:f,col_widths:d,size_hints:w}}_measure(t){const{size:i}=this._measure_grid(t);return i}_set_geometry(t,i){super._set_geometry(t,i);const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state,{row_heights:h,col_widths:g,size_hints:p}=this._measure_grid(t),_=this._state.rows.map((t,i)=>Object.assign(Object.assign({},t),{top:0,height:h[i],get bottom(){return this.top+this.height}})),f=this._state.cols.map((t,i)=>Object.assign(Object.assign({},t),{left:0,width:g[i],get right(){return this.left+this.width}})),d=p.map((t,i)=>Object.assign(Object.assign({},i),{outer:new r.BBox,inner:new r.BBox}));for(let i=0,e=this.absolute?t.top:0;i<s;i++){const t=_[i];t.top=e,e+=t.height+o}for(let i=0,s=this.absolute?t.left:0;i<e;i++){const t=f[i];t.left=s,s+=t.width+n}d.foreach(({r0:t,c0:i,r1:s,c1:e},h)=>{const{layout:l,size_hint:a}=h,{sizing:g}=l,{width:p,height:d}=a,w=function(t,i){let s=(i-t)*n;for(let e=t;e<=i;e++)s+=f[e].width;return s}(i,e),u=function(t,i){let s=(i-t)*o;for(let e=t;e<=i;e++)s+=_[e].height;return s}(t,s),m=i==e&&"auto"!=f[i].align?f[i].align:g.halign,y=t==s&&"auto"!=_[t].align?_[t].align:g.valign;let x=f[i].left;"start"==m?x+=g.margin.left:"center"==m?x+=c((w-p)/2):"end"==m&&(x+=w-g.margin.right-p);let b=_[t].top;"start"==y?b+=g.margin.top:"center"==y?b+=c((u-d)/2):"end"==y&&(b+=u-g.margin.bottom-d),h.outer=new r.BBox({left:x,top:b,width:p,height:d})});const w=_.map(()=>({start:new a(()=>0),end:new a(()=>0)})),u=f.map(()=>({start:new a(()=>0),end:new a(()=>0)}));d.foreach(({r0:t,c0:i,r1:s,c1:e},{size_hint:o,outer:n})=>{const{inner:r}=o;null!=r&&(w[t].start.apply(n.top,t=>l(t,r.top)),w[s].end.apply(_[s].bottom-n.bottom,t=>l(t,r.bottom)),u[i].start.apply(n.left,t=>l(t,r.left)),u[e].end.apply(f[e].right-n.right,t=>l(t,r.right)))}),d.foreach(({r0:t,c0:i,r1:s,c1:e},o)=>{const{size_hint:n,outer:h}=o;function l({left:t,right:i,top:s,bottom:e}){const o=h.width-t-i,n=h.height-s-e;return new r.BBox({left:t,top:s,width:o,height:n})}if(null!=n.inner){let r=l(n.inner);if(!1!==n.align){const o=w[t].start.get(h.top),n=w[s].end.get(_[s].bottom-h.bottom),c=u[i].start.get(h.left),a=u[e].end.get(f[e].right-h.right);try{r=l({top:o,bottom:n,left:c,right:a})}catch(t){}}o.inner=r}else o.inner=h}),d.foreach((t,{layout:i,outer:s,inner:e})=>{i.set_geometry(s,e)})}}s.Grid=p,p.__name__="Grid";class _ extends p{constructor(t){super(),this.items=t.map((t,i)=>({layout:t,row:0,col:i})),this.rows="fit"}}s.Row=_,_.__name__="Row";class f extends p{constructor(t){super(),this.items=t.map((t,i)=>({layout:t,row:i,col:0})),this.cols="fit"}}s.Column=f,f.__name__="Column"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(189),i=e(188),o=e(66);class r extends s.ContentLayoutable{constructor(e){super(),this.content_size=o.unsized(e,()=>new i.Sizeable(o.size(e)))}_content_size(){return this.content_size}}n.ContentBox=r,r.__name__="ContentBox";class a extends s.Layoutable{constructor(e){super(),this.el=e}_measure(e){const t=new i.Sizeable(e).bounded_to(this.sizing.size);return o.sized(this.el,t,()=>{const e=new i.Sizeable(o.content_size(this.el)),{border:t,padding:n}=o.extents(this.el);return e.grow_by(t).grow_by(n).map(Math.ceil)})}}n.VariadicBox=a,a.__name__="VariadicBox"},n”, ” function _(e,r,u){Object.defineProperty(u,"__esModule",{value:!0});var a=e(194);u.Expression=a.Expression;var n=e(195);u.Stack=n.Stack;var o=e(196);u.CumSum=o.CumSum},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(69);class n extends s.Model{constructor(e){super(e),this._connected={},this._result={}}initialize(){super.initialize(),this._connected={},this._result={}}v_compute(e){null==this._connected[e.id]&&(this.connect(e.change,()=>delete this._result[e.id]),this.connect(e.patching,()=>delete this._result[e.id]),this.connect(e.streaming,()=>delete this._result[e.id]),this._connected[e.id]=!0);let t=this._result[e.id];return null==t&&(this._result[e.id]=t=this._v_compute(e)),t}}i.Expression=n,n.__name__="Expression"},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),o=t(194),r=i.__importStar(t(19));class s extends o.Expression{constructor(t){super(t)}static init_Stack(){this.define({fields:[r.Array,[]]})}_v_compute(t){var e;const n=null!==(e=t.get_length())&&void 0!==e?e:0,i=new Float64Array(n);for(const e of this.fields){const o=t.data[e];if(null!=o)for(let t=0,e=Math.min(n,o.length);t<e;t++)i[t]+=o[t]}return i}}n.Stack=s,s.__name__="Stack",s.init_Stack()},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),u=e(194),o=i.__importStar(e(19));class r extends u.Expression{constructor(e){super(e)}static init_CumSum(){this.define({field:[o.String],include_zero:[o.Boolean,!1]})}_v_compute(e){const t=new Float64Array(e.get_length()||0),n=e.data[this.field],i=this.include_zero?1:0;t[0]=this.include_zero?0:n[0];for(let e=1;e<t.length;e++)t[e]=t[e-1]+n[e-i];return t}}n.CumSum=r,r.__name__="CumSum",r.init_CumSum()},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});var l=e(198);t.BooleanFilter=l.BooleanFilter;var i=e(200);t.CustomJSFilter=i.CustomJSFilter;var o=e(199);t.Filter=o.Filter;var F=e(201);t.GroupFilter=F.GroupFilter;var a=e(202);t.IndexFilter=a.IndexFilter},n”, ” function _(e,o,l){Object.defineProperty(l,"__esModule",{value:!0});const n=e(1),t=e(199),i=n.__importStar(e(19)),r=e(70),a=e(9),s=e(8);class g extends t.Filter{constructor(e){super(e)}static init_BooleanFilter(){this.define({booleans:[i.Array,null]})}compute_indices(e){const o=this.booleans;return null!=o&&o.length>0?a.every(o,s.isBoolean)?(o.length!==e.get_length()&&r.logger.warn(BooleanFilter ${this.id}: length of booleans doesn’t match data source),a.range(0,o.length).filter(e=>!0===o[e])):(r.logger.warn(BooleanFilter ${this.id}: booleans should be array of booleans, defaulting to no filtering),null):(null!=o&&0==o.length?r.logger.warn(BooleanFilter ${this.id}: booleans is empty, defaulting to no filtering):r.logger.warn(BooleanFilter ${this.id}: booleans was not set, defaulting to no filtering),null)}}l.BooleanFilter=g,g.__name__="BooleanFilter",g.init_BooleanFilter()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1),l=e(69),n=i.__importStar(e(19)),o=e(8),s=e(9),a=e(70);class f extends l.Model{constructor(e){super(e)}static init_Filter(){this.define({filter:[n.Array,null]})}compute_indices(e){const t=this.filter;return null!=t?o.isArrayOf(t,o.isBoolean)?s.range(0,t.length).filter(e=>!0===t[e]):o.isArrayOf(t,o.isInteger)?t:(a.logger.warn(Filter ${this.id}: filter should either be array of only booleans or only integers, defaulting to no filtering),null):(a.logger.warn(Filter ${this.id}: filter was not set to be an array, defaulting to no filtering),null)}}r.Filter=f,f.__name__="Filter",f.init_Filter()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),r=t(199),n=i.__importStar(t(19)),u=t(24),c=t(26);class o extends r.Filter{constructor(t){super(t)}static init_CustomJSFilter(){this.define({args:[n.Any,{}],code:[n.String,""]})}get names(){return u.keys(this.args)}get values(){return u.values(this.args)}get func(){const t=c.use_strict(this.code);return new Function(…this.names,"source",t)}compute_indices(t){return this.filter=this.func(…this.values,t),super.compute_indices(t)}}s.CustomJSFilter=o,o.__name__="CustomJSFilter",o.init_CustomJSFilter()},n”, ” function _(t,n,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1),r=t(199),o=e.__importStar(t(19)),u=t(70),l=t(9);class s extends r.Filter{constructor(t){super(t),this.indices=null}static init_GroupFilter(){this.define({column_name:[o.String],group:[o.String]})}compute_indices(t){const n=t.get_column(this.column_name);return null==n?(u.logger.warn("group filter: groupby column not found in data source"),null):(this.indices=l.range(0,t.get_length()||0).filter(t=>n[t]===this.group),0===this.indices.length&&u.logger.warn(group filter: group ‘${this.group}’ did not match any values in column ‘${this.column_name}’),this.indices)}}i.GroupFilter=s,s.__name__="GroupFilter",s.init_GroupFilter()},n”, ” function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),r=e(199),s=t.__importStar(e(19)),l=e(70),d=e(8),o=e(9);class c extends r.Filter{constructor(e){super(e)}static init_IndexFilter(){this.define({indices:[s.Array,null]})}compute_indices(e){return null!=this.indices?o.every(this.indices,d.isInteger)?this.indices:(l.logger.warn(IndexFilter ${this.id}: indices should be array of integers, defaulting to no filtering),null):(l.logger.warn(IndexFilter ${this.id}: indices was not set, defaulting to no filtering),null)}}n.IndexFilter=c,c.__name__="IndexFilter",c.init_IndexFilter()},n”, ” function _(r,t,a){Object.defineProperty(a,"__esModule",{value:!0});var e=r(112);a.BasicTickFormatter=e.BasicTickFormatter;var c=r(152);a.CategoricalTickFormatter=c.CategoricalTickFormatter;var i=r(156);a.DatetimeTickFormatter=i.DatetimeTickFormatter;var o=r(204);a.FuncTickFormatter=o.FuncTickFormatter;var m=r(169);a.LogTickFormatter=m.LogTickFormatter;var F=r(172);a.MercatorTickFormatter=F.MercatorTickFormatter;var k=r(205);a.NumeralTickFormatter=k.NumeralTickFormatter;var T=r(206);a.PrintfTickFormatter=T.PrintfTickFormatter;var v=r(113);a.TickFormatter=v.TickFormatter},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),s=t(113),i=r.__importStar(t(19)),c=t(24),a=t(26);class u extends s.TickFormatter{constructor(t){super(t)}static init_FuncTickFormatter(){this.define({args:[i.Any,{}],code:[i.String,""]})}get names(){return c.keys(this.args)}get values(){return c.values(this.args)}_make_func(){const t=a.use_strict(this.code);return new Function("tick","index","ticks",…this.names,t)}doFormat(t,e){const n=this._make_func().bind({});return t.map((t,e,r)=>n(t,e,r,…this.values))}}n.FuncTickFormatter=u,u.__name__="FuncTickFormatter",u.init_FuncTickFormatter()},n”, ” function _(r,t,n){Object.defineProperty(n,"__esModule",{value:!0});const e=r(1),o=e.__importStar(r(159)),a=r(113),i=e.__importStar(r(19));class u extends a.TickFormatter{constructor(r){super(r)}static init_NumeralTickFormatter(){this.define({format:[i.String,"0,0"],language:[i.String,"en"],rounding:[i.RoundingFunction,"round"]})}get _rounding_fn(){switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}doFormat(r,t){const{format:n,language:e,_rounding_fn:a}=this;return r.map(r=>o.format(r,n,e,a))}}n.NumeralTickFormatter=u,u.__name__="NumeralTickFormatter",u.init_NumeralTickFormatter()},n”, ” function _(t,r,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1),n=t(113),o=t(158),a=e.__importStar(t(19));class c extends n.TickFormatter{constructor(t){super(t)}static init_PrintfTickFormatter(){this.define({format:[a.String,"%s"]})}doFormat(t,r){return t.map(t=>o.sprintf(this.format,t))}}i.PrintfTickFormatter=c,c.__name__="PrintfTickFormatter",c.init_PrintfTickFormatter()},n”, ” function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var v=a(208);r.AnnularWedge=v.AnnularWedge;var l=a(209);r.Annulus=l.Annulus;var t=a(210);r.Arc=t.Arc;var i=a(211);r.Bezier=i.Bezier;var n=a(212);r.Circle=n.Circle;var u=a(213);r.CenterRotatable=u.CenterRotatable;var c=a(214);r.Ellipse=c.Ellipse;var g=a(215);r.EllipseOval=g.EllipseOval;var A=a(86);r.Glyph=A.Glyph;var p=a(92);r.HArea=p.HArea;var s=a(216);r.HBar=s.HBar;var d=a(218);r.HexTile=d.HexTile;var R=a(219);r.Image=R.Image;var o=a(221);r.ImageRGBA=o.ImageRGBA;var y=a(222);r.ImageURL=y.ImageURL;var h=a(80);r.Line=h.Line;var m=a(224);r.MultiLine=m.MultiLine;var B=a(225);r.MultiPolygons=B.MultiPolygons;var P=a(226);r.Oval=P.Oval;var G=a(91);r.Patch=G.Patch;var H=a(227);r.Patches=H.Patches;var I=a(228);r.Quad=I.Quad;var L=a(229);r.Quadratic=L.Quadratic;var M=a(230);r.Ray=M.Ray;var O=a(231);r.Rect=O.Rect;var x=a(232);r.Segment=x.Segment;var C=a(233);r.Step=C.Step;var E=a(234);r.Text=E.Text;var Q=a(94);r.VArea=Q.VArea;var S=a(235);r.VBar=S.VBar;var T=a(236);r.Wedge=T.Wedge;var V=a(81);r.XYGlyph=V.XYGlyph},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(81),n=e(90),a=i.__importStar(e(87)),_=i.__importStar(e(19)),o=e(10);class h extends r.XYGlyphView{_map_data(){"data"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this._inner_radius):this.sinner_radius=this._inner_radius,"data"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this._outer_radius):this.souter_radius=this._outer_radius,this._angle=new Float32Array(this._start_angle.length);for(let e=0,t=this._start_angle.length;e<t;e++)this._angle[e]=this._end_angle[e]-this._start_angle[e]}_render(e,t,{sx:s,sy:i,_start_angle:r,_angle:n,sinner_radius:a,souter_radius:_}){const o=this.model.properties.direction.value();for(const h of t)isNaN(s[h]+i[h]+a[h]+_[h]+r[h]+n[h])||(e.translate(s[h],i[h]),e.rotate(r[h]),e.moveTo(_[h],0),e.beginPath(),e.arc(0,0,_[h],0,n[h],o),e.rotate(n[h]),e.lineTo(a[h],0),e.arc(0,0,a[h],0,-n[h],!o),e.closePath(),e.rotate(-n[h]-r[h]),e.translate(-s[h],-i[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,h),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,h),e.stroke()))}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(s);let n,_,h,u;if("data"==this.model.properties.outer_radius.units)n=i-this.max_outer_radius,h=i+this.max_outer_radius,_=r-this.max_outer_radius,u=r+this.max_outer_radius;else{const e=t-this.max_outer_radius,i=t+this.max_outer_radius;[n,h]=this.renderer.xscale.r_invert(e,i);const r=s-this.max_outer_radius,a=s+this.max_outer_radius;[_,u]=this.renderer.yscale.r_invert(r,a)}const l=[];for(const e of this.index.indices({x0:n,x1:h,y0:_,y1:u})){const t=this.souter_radius[e]**2,s=this.sinner_radius[e]**2,[n,a]=this.renderer.xscale.r_compute(i,this._x[e]),[_,o]=this.renderer.yscale.r_compute(r,this._y[e]),h=(n-a)**2+(_-o)**2;h<=t&&h>=s&&l.push([e,h])}const d=this.model.properties.direction.value(),c=[];for(const[e,i]of l){const r=Math.atan2(s-this.sy[e],t-this.sx[e]);o.angle_between(-r,-this._start_angle[e],-this._end_angle[e],d)&&c.push([e,i])}return a.create_hit_test_result_from_hits(c)}draw_legend_for_index(e,t,s){n.generic_area_legend(this.visuals,e,t,s)}_scenterxy(e){const t=(this.sinner_radius[e]+this.souter_radius[e])/2,s=(this._start_angle[e]+this._end_angle[e])/2;return{x:this.sx[e]+t*Math.cos(s),y:this.sy[e]+t*Math.sin(s)}}scenterx(e){return this._scenterxy(e).x}scentery(e){return this._scenterxy(e).y}}s.AnnularWedgeView=h,h.__name__="AnnularWedgeView";class u extends r.XYGlyph{constructor(e){super(e)}static init_AnnularWedge(){this.prototype.default_view=h,this.mixins(["line","fill"]),this.define({direction:[_.Direction,"anticlock"],inner_radius:[_.DistanceSpec],outer_radius:[_.DistanceSpec],start_angle:[_.AngleSpec],end_angle:[_.AngleSpec]})}}s.AnnularWedge=u,u.__name__="AnnularWedge",u.init_AnnularWedge()},n”, ” function _(s,i,t){Object.defineProperty(t,"__esModule",{value:!0});const e=s(1),r=s(81),a=e.__importStar(s(87)),n=e.__importStar(s(19)),_=s(101);class u extends r.XYGlyphView{_map_data(){"data"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this._inner_radius):this.sinner_radius=this._inner_radius,"data"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this._outer_radius):this.souter_radius=this._outer_radius}_render(s,i,{sx:t,sy:e,sinner_radius:r,souter_radius:a}){for(const n of i)if(!isNaN(t[n]+e[n]+r[n]+a[n])){if(this.visuals.fill.doit){if(this.visuals.fill.set_vectorize(s,n),s.beginPath(),_.is_ie)for(const i of[!1,!0])s.arc(t[n],e[n],r[n],0,Math.PI,i),s.arc(t[n],e[n],a[n],Math.PI,0,!i);else s.arc(t[n],e[n],r[n],0,2*Math.PI,!0),s.arc(t[n],e[n],a[n],2*Math.PI,0,!1);s.fill()}this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,n),s.beginPath(),s.arc(t[n],e[n],r[n],0,2*Math.PI),s.moveTo(t[n]+a[n],e[n]),s.arc(t[n],e[n],a[n],0,2*Math.PI),s.stroke())}}_hit_point(s){const{sx:i,sy:t}=s,e=this.renderer.xscale.invert(i),r=this.renderer.yscale.invert(t);let n,_,u,o;if("data"==this.model.properties.outer_radius.units)n=e-this.max_outer_radius,u=e+this.max_outer_radius,_=r-this.max_outer_radius,o=r+this.max_outer_radius;else{const s=i-this.max_outer_radius,e=i+this.max_outer_radius;[n,u]=this.renderer.xscale.r_invert(s,e);const r=t-this.max_outer_radius,a=t+this.max_outer_radius;[_,o]=this.renderer.yscale.r_invert(r,a)}const h=[];for(const s of this.index.indices({x0:n,x1:u,y0:_,y1:o})){const i=this.souter_radius[s]**2,t=this.sinner_radius[s]**2,[a,n]=this.renderer.xscale.r_compute(e,this._x[s]),[_,u]=this.renderer.yscale.r_compute(r,this._y[s]),o=(a-n)**2+(_-u)**2;o<=i&&o>=t&&h.push([s,o])}return a.create_hit_test_result_from_hits(h)}draw_legend_for_index(s,{x0:i,y0:t,x1:e,y1:r},a){const n=a+1,_=new Array(n);_[a]=(i+e)/2;const u=new Array(n);u[a]=(t+r)/2;const o=.5*Math.min(Math.abs(e-i),Math.abs(r-t)),h=new Array(n);h[a]=.4*o;const d=new Array(n);d[a]=.8*o,this._render(s,[a],{sx:_,sy:u,sinner_radius:h,souter_radius:d})}}t.AnnulusView=u,u.__name__="AnnulusView";class o extends r.XYGlyph{constructor(s){super(s)}static init_Annulus(){this.prototype.default_view=u,this.mixins(["line","fill"]),this.define({inner_radius:[n.DistanceSpec],outer_radius:[n.DistanceSpec]})}}t.Annulus=o,o.__name__="Annulus",o.init_Annulus()},n”, ” function _(e,i,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(1),r=e(81),n=e(90),a=t.__importStar(e(19));class _ extends r.XYGlyphView{_map_data(){"data"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius):this.sradius=this._radius}_render(e,i,{sx:s,sy:t,sradius:r,_start_angle:n,_end_angle:a}){if(this.visuals.line.doit){const _=this.model.properties.direction.value();for(const c of i)isNaN(s[c]+t[c]+r[c]+n[c]+a[c])||(e.beginPath(),e.arc(s[c],t[c],r[c],n[c],a[c],_),this.visuals.line.set_vectorize(e,c),e.stroke())}}draw_legend_for_index(e,i,s){n.generic_line_legend(this.visuals,e,i,s)}}s.ArcView=_,_.__name__="ArcView";class c extends r.XYGlyph{constructor(e){super(e)}static init_Arc(){this.prototype.default_view=_,this.mixins(["line"]),this.define({direction:[a.Direction,"anticlock"],radius:[a.DistanceSpec],start_angle:[a.AngleSpec],end_angle:[a.AngleSpec]})}}s.Arc=c,c.__name__="Arc",c.init_Arc()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(82),n=t(86),c=t(90);function o(t,e,i,s,n,c,o,h){const r=[],_=[[],[]];for(let _=0;_<=2;_++){let a,x,l;if(0===_?(x=6*t-12*i+6*n,a=-3*t+9*i-9*n+3*o,l=3*i-3*t):(x=6*e-12*s+6*c,a=-3*e+9*s-9*c+3*h,l=3*s-3*e),Math.abs(a)<1e-12){if(Math.abs(x)<1e-12)continue;const t=-l/x;0<t&&t<1&&r.push(t);continue}const y=x*x-4*l*a,u=Math.sqrt(y);if(y<0)continue;const d=(-x+u)/(2*a);0<d&&d<1&&r.push(d);const f=(-x-u)/(2*a);0<f&&f<1&&r.push(f)}let a=r.length;const x=a;for(;a–;){const x=r[a],l=1-x,y=l*l*l*t+3*l*l*x*i+3*l*x*x*n+x*x*x*o;_[0][a]=y;const u=l*l*l*e+3*l*l*x*s+3*l*x*x*c+x*x*x*h;_[1][a]=u}return _[0][x]=t,_[1][x]=e,_[0][x+1]=o,_[1][x+1]=h,[Math.min(…_[0]),Math.max(…_[1]),Math.max(…_[0]),Math.min(…_[1])]}class h extends n.GlyphView{_index_data(){const t=[];for(let e=0,i=this._x0.length;e<i;e++){if(isNaN(this._x0[e]+this._x1[e]+this._y0[e]+this._y1[e]+this._cx0[e]+this._cy0[e]+this._cx1[e]+this._cy1[e]))continue;const[i,s,n,c]=o(this._x0[e],this._y0[e],this._x1[e],this._y1[e],this._cx0[e],this._cy0[e],this._cx1[e],this._cy1[e]);t.push({x0:i,y0:s,x1:n,y1:c,i:e})}return new s.SpatialIndex(t)}_render(t,e,{sx0:i,sy0:s,sx1:n,sy1:c,scx0:o,scy0:h,scx1:r,scy1:_}){if(this.visuals.line.doit)for(const a of e)isNaN(i[a]+s[a]+n[a]+c[a]+o[a]+h[a]+r[a]+_[a])||(t.beginPath(),t.moveTo(i[a],s[a]),t.bezierCurveTo(o[a],h[a],r[a],_[a],n[a],c[a]),this.visuals.line.set_vectorize(t,a),t.stroke())}draw_legend_for_index(t,e,i){c.generic_line_legend(this.visuals,t,e,i)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}i.BezierView=h,h.__name__="BezierView";class r extends n.Glyph{constructor(t){super(t)}static init_Bezier(){this.prototype.default_view=h,this.coords([["x0","y0"],["x1","y1"],["cx0","cy0"],["cx1","cy1"]]),this.mixins(["line"])}}i.Bezier=r,r.__name__="Bezier",r.init_Bezier()},n”, ” function _(s,i,e){Object.defineProperty(e,"__esModule",{value:!0});const t=s(1),r=s(81),a=t.__importStar(s(87)),n=t.__importStar(s(19)),h=s(9),d=s(12);class _ extends r.XYGlyphView{_map_data(){if(null!=this._radius)if("data"==this.model.properties.radius.spec.units){switch(this.model.properties.radius_dimension.spec.value){case"x":this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius);break;case"y":this.sradius=this.sdist(this.renderer.yscale,this._y,this._radius);break;case"max":{const s=this.sdist(this.renderer.xscale,this._x,this._radius),i=this.sdist(this.renderer.yscale,this._y,this._radius);this.sradius=d.map(s,(s,e)=>Math.max(s,i[e]));break}case"min":{const s=this.sdist(this.renderer.xscale,this._x,this._radius),i=this.sdist(this.renderer.yscale,this._y,this._radius);this.sradius=d.map(s,(s,e)=>Math.min(s,i[e]));break}}}else this.sradius=this._radius,this.max_size=2*this.max_radius;else this.sradius=d.map(this._size,s=>s/2)}_mask_data(){const[s,i]=this.renderer.plot_view.frame.bbox.ranges;let e,t,r,a;if(null!=this._radius&&"data"==this.model.properties.radius.units){const n=s.start,h=s.end;[e,r]=this.renderer.xscale.r_invert(n,h),e-=this.max_radius,r+=this.max_radius;const d=i.start,_=i.end;[t,a]=this.renderer.yscale.r_invert(d,_),t-=this.max_radius,a+=this.max_radius}else{const n=s.start-this.max_size,h=s.end+this.max_size;[e,r]=this.renderer.xscale.r_invert(n,h);const d=i.start-this.max_size,_=i.end+this.max_size;[t,a]=this.renderer.yscale.r_invert(d,_)}return this.index.indices({x0:e,x1:r,y0:t,y1:a})}_render(s,i,{sx:e,sy:t,sradius:r}){for(const a of i)isNaN(e[a]+t[a]+r[a])||(s.beginPath(),s.arc(e[a],t[a],r[a],0,2*Math.PI,!1),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(s,a),s.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,a),s.stroke()))}_hit_point(s){const{sx:i,sy:e}=s,t=this.renderer.xscale.invert(i),r=this.renderer.yscale.invert(e);let n,h,d,_;if(null!=this._radius&&"data"==this.model.properties.radius.units)n=t-this.max_radius,h=t+this.max_radius,d=r-this.max_radius,_=r+this.max_radius;else{const s=i-this.max_size,t=i+this.max_size;[n,h]=this.renderer.xscale.r_invert(s,t);const r=e-this.max_size,a=e+this.max_size;[d,_]=this.renderer.yscale.r_invert(r,a)}const l=this.index.indices({x0:n,x1:h,y0:d,y1:_}),c=[];if(null!=this._radius&&"data"==this.model.properties.radius.units)for(const s of l){const i=this.sradius[s]**2,[e,a]=this.renderer.xscale.r_compute(t,this._x[s]),[n,h]=this.renderer.yscale.r_compute(r,this._y[s]),d=(e-a)**2+(n-h)**2;d<=i&&c.push([s,d])}else for(const s of l){const t=this.sradius[s]**2,r=(this.sx[s]-i)**2+(this.sy[s]-e)**2;r<=t&&c.push([s,r])}return a.create_hit_test_result_from_hits(c)}_hit_span(s){const{sx:i,sy:e}=s,t=this.bounds(),r=a.create_empty_hit_test_result();let n,h,d,_;if("h"==s.direction){let s,e;if(d=t.y0,_=t.y1,null!=this._radius&&"data"==this.model.properties.radius.units)s=i-this.max_radius,e=i+this.max_radius,[n,h]=this.renderer.xscale.r_invert(s,e);else{const t=this.max_size/2;s=i-t,e=i+t,[n,h]=this.renderer.xscale.r_invert(s,e)}}else{let s,i;if(n=t.x0,h=t.x1,null!=this._radius&&"data"==this.model.properties.radius.units)s=e-this.max_radius,i=e+this.max_radius,[d,_]=this.renderer.yscale.r_invert(s,i);else{const t=this.max_size/2;s=e-t,i=e+t,[d,_]=this.renderer.yscale.r_invert(s,i)}}const l=this.index.indices({x0:n,x1:h,y0:d,y1:_});return r.indices=l,r}_hit_rect(s){const{sx0:i,sx1:e,sy0:t,sy1:r}=s,[n,h]=this.renderer.xscale.r_invert(i,e),[d,_]=this.renderer.yscale.r_invert(t,r),l=a.create_empty_hit_test_result();return l.indices=this.index.indices({x0:n,x1:h,y0:d,y1:_}),l}_hit_poly(s){const{sx:i,sy:e}=s,t=h.range(0,this.sx.length),r=[];for(let s=0,n=t.length;s<n;s++){const n=t[s];a.point_in_poly(this.sx[s],this.sy[s],i,e)&&r.push(n)}const n=a.create_empty_hit_test_result();return n.indices=r,n}draw_legend_for_index(s,{x0:i,y0:e,x1:t,y1:r},a){const n=a+1,h=new Array(n);h[a]=(i+t)/2;const d=new Array(n);d[a]=(e+r)/2;const _=new Array(n);_[a]=.2*Math.min(Math.abs(t-i),Math.abs(r-e)),this._render(s,[a],{sx:h,sy:d,sradius:_})}}e.CircleView=_,_.__name__="CircleView";class l extends r.XYGlyph{constructor(s){super(s)}static init_Circle(){this.prototype.default_view=_,this.mixins(["line","fill"]),this.define({angle:[n.AngleSpec,0],size:[n.DistanceSpec,{units:"screen",value:4}],radius:[n.DistanceSpec],radius_dimension:[n.RadiusDimension,"x"]})}initialize(){super.initialize(),this.properties.radius.optional=!0}}e.Circle=l,l.__name__="Circle",l.init_Circle()},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const a=e(1),i=e(81),l=a.__importStar(e(19));class s extends i.XYGlyphView{}n.CenterRotatableView=s,s.__name__="CenterRotatableView";class _ extends i.XYGlyph{constructor(e){super(e)}static init_CenterRotatable(){this.mixins(["line","fill"]),this.define({angle:[l.AngleSpec,0],width:[l.DistanceSpec],height:[l.DistanceSpec]})}}n.CenterRotatable=_,_.__name__="CenterRotatable",_.init_CenterRotatable()},n”, ” function _(e,l,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(215);class t extends s.EllipseOvalView{}i.EllipseView=t,t.__name__="EllipseView";class _ extends s.EllipseOval{constructor(e){super(e)}static init_Ellipse(){this.prototype.default_view=t}}i.Ellipse=_,_.__name__="Ellipse",_.init_Ellipse()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(213),r=i.__importStar(t(87));class a extends h.CenterRotatableView{_set_data(){this.max_w2=0,"data"==this.model.properties.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,"data"==this.model.properties.height.units&&(this.max_h2=this.max_height/2)}_map_data(){"data"==this.model.properties.width.units?this.sw=this.sdist(this.renderer.xscale,this._x,this._width,"center"):this.sw=this._width,"data"==this.model.properties.height.units?this.sh=this.sdist(this.renderer.yscale,this._y,this._height,"center"):this.sh=this._height}_render(t,s,{sx:e,sy:i,sw:h,sh:r,_angle:a}){for(const _ of s)isNaN(e[_]+i[_]+h[_]+r[_]+a[_])||(t.beginPath(),t.ellipse(e[_],i[_],h[_]/2,r[_]/2,a[_],0,2*Math.PI),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,_),t.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,_),t.stroke()))}_hit_point(t){let s,e,i,h,a,_,n,l,d,o;const{sx:x,sy:m}=t,c=this.renderer.xscale.invert(x),w=this.renderer.yscale.invert(m);"data"==this.model.properties.width.units?(s=c-this.max_width,e=c+this.max_width):(n=x-this.max_width,l=x+this.max_width,[s,e]=this.renderer.xscale.r_invert(n,l)),"data"==this.model.properties.height.units?(i=w-this.max_height,h=w+this.max_height):(d=m-this.max_height,o=m+this.max_height,[i,h]=this.renderer.yscale.r_invert(d,o));const p=this.index.indices({x0:s,x1:e,y0:i,y1:h}),y=[];for(const t of p)a=r.point_in_ellipse(x,m,this._angle[t],this.sh[t]/2,this.sw[t]/2,this.sx[t],this.sy[t]),a&&([n,l]=this.renderer.xscale.r_compute(c,this._x[t]),[d,o]=this.renderer.yscale.r_compute(w,this._y[t]),_=(n-l)**2+(d-o)**2,y.push([t,_]));return r.create_hit_test_result_from_hits(y)}draw_legend_for_index(t,{x0:s,y0:e,x1:i,y1:h},r){const a=r+1,_=new Array(a);_[r]=(s+i)/2;const n=new Array(a);n[r]=(e+h)/2;const l=this.sw[r]/this.sh[r],d=.8*Math.min(Math.abs(i-s),Math.abs(h-e)),o=new Array(a),x=new Array(a);l>1?(o[r]=d,x[r]=d/l):(o[r]=d*l,x[r]=d),this._render(t,[r],{sx:_,sy:n,sw:o,sh:x,_angle:[0]})}_bounds({x0:t,x1:s,y0:e,y1:i}){return{x0:t-this.max_w2,x1:s+this.max_w2,y0:e-this.max_h2,y1:i+this.max_h2}}}e.EllipseOvalView=a,a.__name__="EllipseOvalView";class _ extends h.CenterRotatable{constructor(t){super(t)}}e.EllipseOval=_,_.__name__="EllipseOval"},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(217),r=i.__importStar(t(19));class _ extends h.BoxView{scenterx(t){return(this.sleft[t]+this.sright[t])/2}scentery(t){return this.sy[t]}_index_data(){return this._index_box(this._y.length)}_lrtb(t){return[Math.min(this._left[t],this._right[t]),Math.max(this._left[t],this._right[t]),this._y[t]+.5*this._height[t],this._y[t]-.5*this._height[t]]}_map_data(){this.sy=this.renderer.yscale.v_compute(this._y),this.sh=this.sdist(this.renderer.yscale,this._y,this._height,"center"),this.sleft=this.renderer.xscale.v_compute(this._left),this.sright=this.renderer.xscale.v_compute(this._right);const t=this.sy.length;this.stop=new Float64Array(t),this.sbottom=new Float64Array(t);for(let s=0;s<t;s++)this.stop[s]=this.sy[s]-this.sh[s]/2,this.sbottom[s]=this.sy[s]+this.sh[s]/2;this._clamp_viewport()}}e.HBarView=_,_.__name__="HBarView";class a extends h.Box{constructor(t){super(t)}static init_HBar(){this.prototype.default_view=_,this.coords([["left","y"]]),this.define({height:[r.NumberSpec],right:[r.CoordinateSpec]}),this.override({left:0})}}e.HBar=a,a.__name__="HBar",a.init_HBar()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),r=t(82),n=t(86),h=t(90),a=i.__importStar(t(87));class o extends n.GlyphView{get_anchor_point(t,e,s){const i=Math.min(this.sleft[e],this.sright[e]),r=Math.max(this.sright[e],this.sleft[e]),n=Math.min(this.stop[e],this.sbottom[e]),h=Math.max(this.sbottom[e],this.stop[e]);switch(t){case"top_left":return{x:i,y:n};case"top_center":return{x:(i+r)/2,y:n};case"top_right":return{x:r,y:n};case"bottom_left":return{x:i,y:h};case"bottom_center":return{x:(i+r)/2,y:h};case"bottom_right":return{x:r,y:h};case"center_left":return{x:i,y:(n+h)/2};case"center":return{x:(i+r)/2,y:(n+h)/2};case"center_right":return{x:r,y:(n+h)/2};default:return null}}_index_box(t){const e=[];for(let s=0;s<t;s++){const[t,i,r,n]=this._lrtb(s);!isNaN(t+i+r+n)&&isFinite(t+i+r+n)&&e.push({x0:Math.min(t,i),y0:Math.min(r,n),x1:Math.max(i,t),y1:Math.max(r,n),i:s})}return new r.SpatialIndex(e)}_render(t,e,{sleft:s,sright:i,stop:r,sbottom:n}){for(const h of e)isNaN(s[h]+r[h]+i[h]+n[h])||(t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,h),t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.fill()),this.visuals.hatch.doit2(t,h,()=>{t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.fill()},()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,h),t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.stroke()))}_clamp_viewport(){const t=this.renderer.plot_view.frame.bbox.h_range,e=this.renderer.plot_view.frame.bbox.v_range,s=this.stop.length;for(let i=0;i<s;i++)this.stop[i]=Math.max(this.stop[i],e.start),this.sbottom[i]=Math.min(this.sbottom[i],e.end),this.sleft[i]=Math.max(this.sleft[i],t.start),this.sright[i]=Math.min(this.sright[i],t.end)}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){const{sx:e,sy:s}=t,i=this.renderer.xscale.invert(e),r=this.renderer.yscale.invert(s),n=this.index.indices({x0:i,y0:r,x1:i,y1:r}),h=a.create_empty_hit_test_result();return h.indices=n,h}_hit_span(t){const{sx:e,sy:s}=t;let i;if("v"==t.direction){const t=this.renderer.yscale.invert(s),e=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(e.start,e.end);i=this.index.indices({x0:r,y0:t,x1:n,y1:t})}else{const t=this.renderer.xscale.invert(e),s=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(s.start,s.end);i=this.index.indices({x0:t,y0:r,x1:t,y1:n})}const r=a.create_empty_hit_test_result();return r.indices=i,r}draw_legend_for_index(t,e,s){h.generic_area_legend(this.visuals,t,e,s)}}s.BoxView=o,o.__name__="BoxView";class _ extends n.Glyph{constructor(t){super(t)}static init_Box(){this.mixins(["line","fill","hatch"])}}s.Box=_,_.__name__="Box",_.init_Box()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(86),n=i.__importStar(e(87)),a=i.__importStar(e(19)),h=e(82),_=e(90);class l extends r.GlyphView{scenterx(e){return this.sx[e]}scentery(e){return this.sy[e]}_set_data(){const e=this._q.length,t=this.model.size,s=this.model.aspect_scale;if(this._x=new Float64Array(e),this._y=new Float64Array(e),"pointytop"==this.model.orientation)for(let i=0;i<e;i++)this._x[i]=t*Math.sqrt(3)*(this._q[i]+this._r[i]/2)/s,this._y[i]=3*-t/2*this._r[i];else for(let i=0;i<e;i++)this._x[i]=3*t/2*this._q[i],this._y[i]=-t*Math.sqrt(3)*(this._r[i]+this._q[i]/2)*s}_index_data(){let e=this.model.size,t=Math.sqrt(3)*e/2;"flattop"==this.model.orientation?([t,e]=[e,t],e*=this.model.aspect_scale):t/=this.model.aspect_scale;const s=[];for(let i=0;i<this._x.length;i++){const r=this._x[i],n=this._y[i];!isNaN(r+n)&&isFinite(r+n)&&s.push({x0:r-t,y0:n-e,x1:r+t,y1:n+e,i})}return new h.SpatialIndex(s)}map_data(){[this.sx,this.sy]=this.map_to_screen(this._x,this._y),[this.svx,this.svy]=this._get_unscaled_vertices()}_get_unscaled_vertices(){const e=this.model.size,t=this.model.aspect_scale;if("pointytop"==this.model.orientation){const s=this.renderer.yscale,i=this.renderer.xscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))/t,a=r/2;return[[0,-n,-n,0,n,n],[r,a,-a,-r,-a,a]]}{const s=this.renderer.xscale,i=this.renderer.yscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))*t,a=r/2;return[[r,a,-a,-r,-a,a],[0,-n,-n,0,n,n]]}}_render(e,t,{sx:s,sy:i,svx:r,svy:n,_scale:a}){for(const h of t)if(!isNaN(s[h]+i[h]+a[h])){e.translate(s[h],i[h]),e.beginPath();for(let t=0;t<6;t++)e.lineTo(r[t]*a[h],n[t]*a[h]);e.closePath(),e.translate(-s[h],-i[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,h),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,h),e.stroke())}}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(s),a=this.index.indices({x0:i,y0:r,x1:i,y1:r}),h=[];for(const e of a)n.point_in_poly(t-this.sx[e],s-this.sy[e],this.svx,this.svy)&&h.push(e);const _=n.create_empty_hit_test_result();return _.indices=h,_}_hit_span(e){const{sx:t,sy:s}=e;let i;if("v"==e.direction){const e=this.renderer.yscale.invert(s),t=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(t.start,t.end);i=this.index.indices({x0:r,y0:e,x1:n,y1:e})}else{const e=this.renderer.xscale.invert(t),s=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(s.start,s.end);i=this.index.indices({x0:e,y0:r,x1:e,y1:n})}const r=n.create_empty_hit_test_result();return r.indices=i,r}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:r}=e,[a,h]=this.renderer.xscale.r_invert(t,s),[_,l]=this.renderer.yscale.r_invert(i,r),o=n.create_empty_hit_test_result();return o.indices=this.index.indices({x0:a,x1:h,y0:_,y1:l}),o}draw_legend_for_index(e,t,s){_.generic_area_legend(this.visuals,e,t,s)}}s.HexTileView=l,l.__name__="HexTileView";class o extends r.Glyph{constructor(e){super(e)}static init_HexTile(){this.prototype.default_view=l,this.coords([["r","q"]]),this.mixins(["line","fill"]),this.define({size:[a.Number,1],aspect_scale:[a.Number,1],scale:[a.NumberSpec,1],orientation:[a.HexTileOrientation,"pointytop"]}),this.override({line_color:null})}}s.HexTile=o,o.__name__="HexTile",o.init_HexTile()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(1),s=e(220),_=e(114),n=i.__importStar(e(19)),h=e(9);class o extends s.ImageBaseView{initialize(){super.initialize(),this.connect(this.model.color_mapper.change,()=>this._update_image()),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_update_image(){null!=this.image_data&&(this._set_data(),this.renderer.plot_view.request_render())}_set_data(){this._set_width_heigh_data();const e=this.model.color_mapper.rgba_mapper;for(let t=0,a=this._image.length;t<a;t++){let a;if(null!=this._image_shape&&this._image_shape[t].length>0){a=this._image[t];const e=this._image_shape[t];this._height[t]=e[0],this._width[t]=e[1]}else{const e=this._image[t];a=h.concat(e),this._height[t]=e.length,this._width[t]=e[0].length}const i=e.v_compute(a);this._set_image_data_from_buffer(t,i)}}_render(e,t,{image_data:a,sx:i,sy:s,sw:_,sh:n}){const h=e.getImageSmoothingEnabled();e.setImageSmoothingEnabled(!1),e.globalAlpha=this.model.global_alpha;for(const h of t){if(null==a[h])continue;if(isNaN(i[h]+s[h]+_[h]+n[h]))continue;const t=s[h];e.translate(0,t),e.scale(1,-1),e.translate(0,-t),e.drawImage(a[h],0|i[h],0|s[h],_[h],n[h]),e.translate(0,t),e.scale(1,-1),e.translate(0,-t)}e.setImageSmoothingEnabled(h)}}a.ImageView=o,o.__name__="ImageView";class l extends s.ImageBase{constructor(e){super(e)}static init_Image(){this.prototype.default_view=o,this.define({color_mapper:[n.Instance,()=>new _.LinearColorMapper({palette:["#000000","#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0","#ffffff"]})]})}}a.Image=l,l.__name__="Image",l.init_Image()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),h=e(81),a=s.__importStar(e(19)),_=s.__importStar(e(87)),r=e(82);class n extends h.XYGlyphView{_render(e,t,i){}_index_data(){const e=[];for(let t=0,i=this._x.length;t<i;t++){const[i,s,h,a]=this._lrtb(t);!isNaN(i+s+h+a)&&isFinite(i+s+h+a)&&e.push({x0:i,y0:a,x1:s,y1:h,i:t})}return new r.SpatialIndex(e)}_lrtb(e){const t=this.renderer.xscale.source_range,i=this._x[e],s=t.is_reversed?i-this._dw[e]:i+this._dw[e],h=this.renderer.yscale.source_range,a=this._y[e],_=h.is_reversed?a-this._dh[e]:a+this._dh[e],[r,n]=i<s?[i,s]:[s,i],[d,g]=a<_?[a,_]:[_,a];return[r,n,g,d]}_set_width_heigh_data(){null!=this.image_data&&this.image_data.length==this._image.length||(this.image_data=new Array(this._image.length)),null!=this._width&&this._width.length==this._image.length||(this._width=new Array(this._image.length)),null!=this._height&&this._height.length==this._image.length||(this._height=new Array(this._image.length))}_get_or_create_canvas(e){const t=this.image_data[e];if(null!=t&&t.width==this._width[e]&&t.height==this._height[e])return t;{const t=document.createElement("canvas");return t.width=this._width[e],t.height=this._height[e],t}}_set_image_data_from_buffer(e,t){const i=this._get_or_create_canvas(e),s=i.getContext("2d"),h=s.getImageData(0,0,this._width[e],this._height[e]);h.data.set(t),s.putImageData(h,0,0),this.image_data[e]=i}_map_data(){switch(this.model.properties.dw.units){case"data":this.sw=this.sdist(this.renderer.xscale,this._x,this._dw,"edge",this.model.dilate);break;case"screen":this.sw=this._dw}switch(this.model.properties.dh.units){case"data":this.sh=this.sdist(this.renderer.yscale,this._y,this._dh,"edge",this.model.dilate);break;case"screen":this.sh=this._dh}}_image_index(e,t,i){const[s,h,a,_]=this._lrtb(e),r=this._width[e],n=this._height[e],d=(h-s)/r,g=(a-_)/n;let l=Math.floor((t-s)/d),c=Math.floor((i-_)/g);return this.renderer.xscale.source_range.is_reversed&&(l=r-l-1),this.renderer.yscale.source_range.is_reversed&&(c=n-c-1),{index:e,dim1:l,dim2:c,flat_index:c*r+l}}_hit_point(e){const{sx:t,sy:i}=e,s=this.renderer.xscale.invert(t),h=this.renderer.yscale.invert(i),a=this.index.indices({x0:s,x1:s,y0:h,y1:h}),r=_.create_empty_hit_test_result();r.image_indices=[];for(const e of a)t!=1/0&&i!=1/0&&r.image_indices.push(this._image_index(e,s,h));return r}}i.ImageBaseView=n,n.__name__="ImageBaseView";class d extends h.XYGlyph{constructor(e){super(e)}static init_ImageBase(){this.prototype.default_view=n,this.define({image:[a.NumberSpec],dw:[a.DistanceSpec],dh:[a.DistanceSpec],dilate:[a.Boolean,!1],global_alpha:[a.Number,1]})}}i.ImageBase=d,d.__name__="ImageBase",d.init_ImageBase()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(220),s=e(9);class n extends i.ImageBaseView{initialize(){super.initialize(),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_set_data(e){this._set_width_heigh_data();for(let t=0,a=this._image.length;t<a;t++){if(null!=e&&e.indexOf(t)<0)continue;let a;if(null!=this._image_shape&&this._image_shape[t].length>0){a=this._image[t].buffer;const e=this._image_shape[t];this._height[t]=e[0],this._width[t]=e[1]}else{const e=this._image[t],i=s.concat(e);a=new ArrayBuffer(4*i.length);const n=new Uint32Array(a);for(let e=0,t=i.length;e<t;e++)n[e]=i[e];this._height[t]=e.length,this._width[t]=e[0].length}const i=new Uint8Array(a);this._set_image_data_from_buffer(t,i)}}_render(e,t,{image_data:a,sx:i,sy:s,sw:n,sh:h}){const _=e.getImageSmoothingEnabled();e.setImageSmoothingEnabled(!1),e.globalAlpha=this.model.global_alpha;for(const _ of t){if(isNaN(i[_]+s[_]+n[_]+h[_]))continue;const t=s[_];e.translate(0,t),e.scale(1,-1),e.translate(0,-t),e.drawImage(a[_],0|i[_],0|s[_],n[_],h[_]),e.translate(0,t),e.scale(1,-1),e.translate(0,-t)}e.setImageSmoothingEnabled(_)}}a.ImageRGBAView=n,n.__name__="ImageRGBAView";class h extends i.ImageBase{constructor(e){super(e)}static init_ImageRGBA(){this.prototype.default_view=n}}a.ImageRGBA=h,h.__name__="ImageRGBA",h.init_ImageRGBA()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(81),a=i.__importStar(e(19)),n=e(12),h=e(82),l=e(223);class _ extends r.XYGlyphView{constructor(){super(…arguments),this._images_rendered=!1}initialize(){super.initialize(),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_index_data(){return new h.SpatialIndex([])}_set_data(){null!=this.image&&this.image.length==this._url.length||(this.image=n.map(this._url,()=>null));const{retry_attempts:e,retry_timeout:t}=this.model;for(let s=0,i=this._url.length;s<i;s++){const i=this._url[s];null!=i&&""!=i&&new l.ImageLoader(i,{loaded:e=>{this.image[s]=e,this.renderer.request_render()},attempts:e+1,timeout:t})}const s="data"==this.model.properties.w.units,i="data"==this.model.properties.h.units,r=this._x.length,a=new Array(s?2*r:r),h=new Array(i?2*r:r);for(let e=0;e<r;e++)a[e]=this._x[e],h[e]=this._y[e];if(s)for(let e=0;e<r;e++)a[r+e]=this._x[e]+this._w[e];if(i)for(let e=0;e<r;e++)h[r+e]=this._y[e]+this._h[e];const _=n.min(a),o=n.max(a),d=n.min(h),c=n.max(h);this._bounds_rect={x0:_,x1:o,y0:d,y1:c}}has_finished(){return super.has_finished()&&1==this._images_rendered}_map_data(){const e=null!=this.model.w?this._w:n.map(this._x,()=>NaN),t=null!=this.model.h?this._h:n.map(this._x,()=>NaN);switch(this.model.properties.w.units){case"data":this.sw=this.sdist(this.renderer.xscale,this._x,e,"edge",this.model.dilate);break;case"screen":this.sw=e}switch(this.model.properties.h.units){case"data":this.sh=this.sdist(this.renderer.yscale,this._y,t,"edge",this.model.dilate);break;case"screen":this.sh=t}}_render(e,t,{image:s,sx:i,sy:r,sw:a,sh:n,_angle:h}){const{frame:l}=this.renderer.plot_view;e.rect(l._left.value+1,l._top.value+1,l._width.value-2,l._height.value-2),e.clip();let _=!0;for(const l of t){if(isNaN(i[l]+r[l]+h[l]))continue;const t=s[l];null!=t?this._render_image(e,l,t,i,r,a,n,h):_=!1}_&&!this._images_rendered&&(this._images_rendered=!0,this.notify_finished())}_final_sx_sy(e,t,s,i,r){switch(e){case"top_left":return[t,s];case"top_center":return[t-i/2,s];case"top_right":return[t-i,s];case"center_right":return[t-i,s-r/2];case"bottom_right":return[t-i,s-r];case"bottom_center":return[t-i/2,s-r];case"bottom_left":return[t,s-r];case"center_left":return[t,s-r/2];case"center":return[t-i/2,s-r/2]}}_render_image(e,t,s,i,r,a,n,h){isNaN(a[t])&&(a[t]=s.width),isNaN(n[t])&&(n[t]=s.height);const{anchor:l}=this.model,[_,o]=this._final_sx_sy(l,i[t],r[t],a[t],n[t]);e.save(),e.globalAlpha=this.model.global_alpha;const d=a[t]/2,c=n[t]/2;h[t]?(e.translate(_,o),e.translate(d,c),e.rotate(h[t]),e.translate(-d,-c),e.drawImage(s,0,0,a[t],n[t]),e.translate(d,c),e.rotate(-h[t]),e.translate(-d,-c),e.translate(-_,-o)):e.drawImage(s,_,o,a[t],n[t]),e.restore()}bounds(){return this._bounds_rect}}s.ImageURLView=_,_.__name__="ImageURLView";class o extends r.XYGlyph{constructor(e){super(e)}static init_ImageURL(){this.prototype.default_view=_,this.define({url:[a.StringSpec],anchor:[a.Anchor,"top_left"],global_alpha:[a.Number,1],angle:[a.AngleSpec,0],w:[a.DistanceSpec],h:[a.DistanceSpec],dilate:[a.Boolean,!1],retry_attempts:[a.Number,0],retry_timeout:[a.Number,0]})}}s.ImageURL=o,o.__name__="ImageURL",o.init_ImageURL()},n”, ” function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const s=i(70);class a{constructor(i,e={}){this._image=new Image,this._finished=!1;const{attempts:t=1,timeout:a=1}=e;this.promise=new Promise((o,n)=>{this._image.crossOrigin="anonymous";let r=0;this._image.onerror=()=>{if(++r==t){const a=`unable to load ${i} image after ${t} attempts`;if(s.logger.warn(a),null==this._image.crossOrigin)return void(null!=e.failed&&e.failed());s.logger.warn(attempting to load ${i} without a cross origin policy),this._image.crossOrigin=null,r=0}setTimeout(()=>this._image.src=i,a)},this._image.onload=()=>{this._finished=!0,null!=e.loaded&&e.loaded(this._image),o(this._image)},this._image.src=i})}get finished(){return this._finished}get image(){return this._image}}t.ImageLoader=a,a.__name__="ImageLoader"},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(82),r=i.__importStar(t(87)),l=t(24),o=t(9),_=t(8),h=t(86),c=t(90);class a extends h.GlyphView{_index_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++){if(null==this._xs[e]||0===this._xs[e].length)continue;const s=this._xs[e],i=[];for(let t=0,e=s.length;t<e;t++){const e=s[t];_.isStrictNaN(e)||i.push(e)}const n=this._ys[e],r=[];for(let t=0,e=n.length;t<e;t++){const e=n[t];_.isStrictNaN(e)||r.push(e)}const[l,h]=[o.min(i),o.max(i)],[c,a]=[o.min(r),o.max(r)];t.push({x0:l,y0:c,x1:h,y1:a,i:e})}return new n.SpatialIndex(t)}_render(t,e,{sxs:s,sys:i}){for(const n of e){const[e,r]=[s[n],i[n]];this.visuals.line.set_vectorize(t,n);for(let s=0,i=e.length;s<i;s++)0!=s?isNaN(e[s])||isNaN(r[s])?(t.stroke(),t.beginPath()):t.lineTo(e[s],r[s]):(t.beginPath(),t.moveTo(e[s],r[s]));t.stroke()}}_hit_point(t){const e=r.create_empty_hit_test_result(),s={x:t.sx,y:t.sy};let i=9999;const n={};for(let t=0,e=this.sxs.length;t<e;t++){const e=Math.max(2,this.visuals.line.cache_select("line_width",t)/2);let l=null;for(let n=0,o=this.sxs[t].length-1;n<o;n++){const o={x:this.sxs[t][n],y:this.sys[t][n]},_={x:this.sxs[t][n+1],y:this.sys[t][n+1]},h=r.dist_to_segment(s,o,_);h<e&&h<i&&(i=h,l=[n])}l&&(n[t]=l)}return e.indices=l.keys(n).map(t=>parseInt(t,10)),e.multiline_indices=n,e}_hit_span(t){const{sx:e,sy:s}=t,i=r.create_empty_hit_test_result();let n,o;"v"===t.direction?(n=this.renderer.yscale.invert(s),o=this._ys):(n=this.renderer.xscale.invert(e),o=this._xs);const _={};for(let t=0,e=o.length;t<e;t++){const e=[];for(let s=0,i=o[t].length-1;s<i;s++)o[t][s]<=n&&n<=o[t][s+1]&&e.push(s);e.length>0&&(_[t]=e)}return i.indices=l.keys(_).map(t=>parseInt(t,10)),i.multiline_indices=_,i}get_interpolation_hit(t,e,s){const[i,n,r,l]=[this._xs[t][e],this._ys[t][e],this._xs[t][e+1],this._ys[t][e+1]];return c.line_interpolation(this.renderer,s,i,n,r,l)}draw_legend_for_index(t,e,s){c.generic_line_legend(this.visuals,t,e,s)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}s.MultiLineView=a,a.__name__="MultiLineView";class x extends h.Glyph{constructor(t){super(t)}static init_MultiLine(){this.prototype.default_view=a,this.coords([["xs","ys"]]),this.mixins(["line"])}}s.MultiLine=x,x.__name__="MultiLine",x.init_MultiLine()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(82),r=t(86),l=t(90),o=t(9),h=t(12),_=i.__importStar(t(87)),a=t(8),c=t(11);class d extends r.GlyphView{_index_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++)for(let s=0,i=this._xs[e].length;s<i;s++){const i=this._xs[e][s][0],n=this._ys[e][s][0];0!=i.length&&t.push({x0:o.min(i),y0:o.min(n),x1:o.max(i),y1:o.max(n),i:e})}return this.hole_index=this._index_hole_data(),new n.SpatialIndex(t)}_index_hole_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++)for(let s=0,i=this._xs[e].length;s<i;s++)if(this._xs[e][s].length>1)for(let i=1,n=this._xs[e][s].length;i<n;i++){const n=this._xs[e][s][i],r=this._ys[e][s][i];0!=n.length&&t.push({x0:o.min(n),y0:o.min(r),x1:o.max(n),y1:o.max(r),i:e})}return new n.SpatialIndex(t)}_mask_data(){const t=this.renderer.plot_view.frame.x_ranges.default,[e,s]=[t.min,t.max],i=this.renderer.plot_view.frame.y_ranges.default,[n,r]=[i.min,i.max];return this.index.indices({x0:e,x1:s,y0:n,y1:r}).sort((t,e)=>t-e).filter((t,e,s)=>0===e||t!==s[e-1])}_inner_loop(t,e,s){t.beginPath();for(let i=0,n=e.length;i<n;i++)for(let n=0,r=e[i].length;n<r;n++){const r=e[i][n],l=s[i][n];for(let e=0,s=r.length;e<s;e++)0!=e?t.lineTo(r[e],l[e]):t.moveTo(r[e],l[e]);t.closePath()}}_render(t,e,{sxs:s,sys:i}){if(this.visuals.fill.doit||this.visuals.line.doit)for(const n of e){const[e,r]=[s[n],i[n]];this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,n),this._inner_loop(t,e,r),t.fill("evenodd")),this.visuals.hatch.doit2(t,n,()=>{this._inner_loop(t,e,r),t.fill("evenodd")},()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,n),this._inner_loop(t,e,r),t.stroke())}}_hit_rect(t){const{sx0:e,sx1:s,sy0:i,sy1:n}=t,r=[e,s,s,e],l=[i,i,n,n],[o,h]=this.renderer.xscale.r_invert(e,s),[a,c]=this.renderer.yscale.r_invert(i,n),d=this.index.indices({x0:o,x1:h,y0:a,y1:c}),x=[];for(let t=0,e=d.length;t<e;t++){const e=d[t],s=this.sxs[e],i=this.sys[e];let n=!0;for(let t=0,e=s.length;t<e;t++){for(let e=0,o=s[t][0].length;e<o;e++){const o=s[t][0][e],h=i[t][0][e];if(!_.point_in_poly(o,h,r,l)){n=!1;break}}if(!n)break}n&&x.push(e)}const y=_.create_empty_hit_test_result();return y.indices=x,y}_hit_point(t){const{sx:e,sy:s}=t,i=this.renderer.xscale.invert(e),n=this.renderer.yscale.invert(s),r=this.index.indices({x0:i,y0:n,x1:i,y1:n}),l=this.hole_index.indices({x0:i,y0:n,x1:i,y1:n}),o=[];for(let t=0,i=r.length;t<i;t++){const i=r[t],n=this.sxs[i],h=this.sys[i];for(let t=0,r=n.length;t<r;t++){const r=n[t].length;if(_.point_in_poly(e,s,n[t][0],h[t][0]))if(1==r)o.push(i);else if(-1==l.indexOf(i))o.push(i);else if(r>1){let l=!1;for(let i=1;i<r;i++){const r=n[t][i],o=h[t][i];if(_.point_in_poly(e,s,r,o)){l=!0;break}}l||o.push(i)}}}const h=_.create_empty_hit_test_result();return h.indices=o,h}_get_snap_coord(t){return h.sum(t)/t.length}scenterx(t,e,s){if(1==this.sxs[t].length)return this._get_snap_coord(this.sxs[t][0][0]);{const i=this.sxs[t],n=this.sys[t];for(let t=0,r=i.length;t<r;t++)if(_.point_in_poly(e,s,i[t][0],n[t][0]))return this._get_snap_coord(i[t][0])}c.unreachable()}scentery(t,e,s){if(1==this.sys[t].length)return this._get_snap_coord(this.sys[t][0][0]);{const i=this.sxs[t],n=this.sys[t];for(let t=0,r=i.length;t<r;t++)if(_.point_in_poly(e,s,i[t][0],n[t][0]))return this._get_snap_coord(n[t][0])}c.unreachable()}map_data(){const t=this;for(let[e,s]of this.model._coords){const i=`s${e}`,n=`s${s}`;if(e=`_${e}`,s=`_${s}`,null!=t[e]&&(a.isArray(t[e][0])||a.isTypedArray(t[e][0]))){const r=t[e].length;t[i]=new Array(r),t[n]=new Array(r);for(let l=0;l<r;l++){const r=t[e][l].length;t[i][l]=new Array(r),t[n][l]=new Array(r);for(let o=0;o<r;o++){const r=t[e][l][o].length;t[i][l][o]=new Array(r),t[n][l][o]=new Array(r);for(let h=0;h<r;h++){const[r,_]=this.map_to_screen(t[e][l][o][h],t[s][l][o][h]);t[i][l][o][h]=r,t[n][l][o][h]=_}}}}}}draw_legend_for_index(t,e,s){l.generic_area_legend(this.visuals,t,e,s)}}s.MultiPolygonsView=d,d.__name__="MultiPolygonsView";class x extends r.Glyph{constructor(t){super(t)}static init_MultiPolygons(){this.prototype.default_view=d,this.coords([["xs","ys"]]),this.mixins(["line","fill","hatch"])}}s.MultiPolygons=x,x.__name__="MultiPolygons",x.init_MultiPolygons()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const l=e(215);class s extends l.EllipseOvalView{_map_data(){super._map_data();const{sw:e}=this,t=e.length;for(let a=0;a<t;a++)e[a]*=.75}}a.OvalView=s,s.__name__="OvalView";class _ extends l.EllipseOval{constructor(e){super(e)}static init_Oval(){this.prototype.default_view=s}}a.Oval=_,_.__name__="Oval",_.init_Oval()},n”, ” function _(s,t,e){Object.defineProperty(e,"__esModule",{value:!0});const i=s(1),n=s(82),r=s(86),o=s(90),_=s(9),l=s(12),h=s(8),c=i.__importStar(s(87)),a=s(11);class d extends r.GlyphView{_build_discontinuous_object(s){const t=[];for(let e=0,i=s.length;e<i;e++){t[e]=[];let i=_.copy(s[e]);for(;i.length>0;){const s=_.find_last_index(i,s=>h.isStrictNaN(s));let n;s>=0?n=i.splice(s):(n=i,i=[]);const r=n.filter(s=>!h.isStrictNaN(s));t[e].push(r)}}return t}_index_data(){const s=this._build_discontinuous_object(this._xs),t=this._build_discontinuous_object(this._ys),e=[];for(let i=0,n=this._xs.length;i<n;i++)for(let n=0,r=s[i].length;n<r;n++){const r=s[i][n],o=t[i][n];0!=r.length&&e.push({x0:_.min(r),y0:_.min(o),x1:_.max(r),y1:_.max(o),i})}return new n.SpatialIndex(e)}_mask_data(){const s=this.renderer.plot_view.frame.x_ranges.default,[t,e]=[s.min,s.max],i=this.renderer.plot_view.frame.y_ranges.default,[n,r]=[i.min,i.max];return this.index.indices({x0:t,x1:e,y0:n,y1:r}).sort((s,t)=>s-t)}_inner_loop(s,t,e,i){for(let n=0,r=t.length;n<r;n++)0!=n?isNaN(t[n]+e[n])?(s.closePath(),i.apply(s),s.beginPath()):s.lineTo(t[n],e[n]):(s.beginPath(),s.moveTo(t[n],e[n]));s.closePath(),i.call(s)}_render(s,t,{sxs:e,sys:i}){this.sxss=this._build_discontinuous_object(e),this.syss=this._build_discontinuous_object(i);for(const n of t){const[t,r]=[e[n],i[n]];this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(s,n),this._inner_loop(s,t,r,s.fill)),this.visuals.hatch.doit2(s,n,()=>this._inner_loop(s,t,r,s.fill),()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,n),this._inner_loop(s,t,r,s.stroke))}}_hit_rect(s){const{sx0:t,sx1:e,sy0:i,sy1:n}=s,r=[t,e,e,t],o=[i,i,n,n],[_,l]=this.renderer.xscale.r_invert(t,e),[h,a]=this.renderer.yscale.r_invert(i,n),d=this.index.indices({x0:_,x1:l,y0:h,y1:a}),u=[];for(let s=0,t=d.length;s<t;s++){const t=d[s],e=this.sxs[t],i=this.sys[t];let n=!0;for(let s=0,t=e.length;s<t;s++){const t=e[s],_=i[s];if(!c.point_in_poly(t,_,r,o)){n=!1;break}}n&&u.push(t)}const x=c.create_empty_hit_test_result();return x.indices=u,x}_hit_point(s){const{sx:t,sy:e}=s,i=this.renderer.xscale.invert(t),n=this.renderer.yscale.invert(e),r=this.index.indices({x0:i,y0:n,x1:i,y1:n}),o=[];for(let s=0,i=r.length;s<i;s++){const i=r[s],n=this.sxss[i],_=this.syss[i];for(let s=0,r=n.length;s<r;s++)c.point_in_poly(t,e,n[s],_[s])&&o.push(i)}const _=c.create_empty_hit_test_result();return _.indices=o,_}_get_snap_coord(s){return l.sum(s)/s.length}scenterx(s,t,e){if(1==this.sxss[s].length)return this._get_snap_coord(this.sxs[s]);{const i=this.sxss[s],n=this.syss[s];for(let s=0,r=i.length;s<r;s++)if(c.point_in_poly(t,e,i[s],n[s]))return this._get_snap_coord(i[s])}a.unreachable()}scentery(s,t,e){if(1==this.syss[s].length)return this._get_snap_coord(this.sys[s]);{const i=this.sxss[s],n=this.syss[s];for(let s=0,r=i.length;s<r;s++)if(c.point_in_poly(t,e,i[s],n[s]))return this._get_snap_coord(n[s])}a.unreachable()}draw_legend_for_index(s,t,e){o.generic_area_legend(this.visuals,s,t,e)}}e.PatchesView=d,d.__name__="PatchesView";class u extends r.Glyph{constructor(s){super(s)}static init_Patches(){this.prototype.default_view=d,this.coords([["xs","ys"]]),this.mixins(["line","fill","hatch"])}}e.Patches=u,u.__name__="Patches",u.init_Patches()},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(217);class _ extends i.BoxView{scenterx(t){return(this.sleft[t]+this.sright[t])/2}scentery(t){return(this.stop[t]+this.sbottom[t])/2}_index_data(){return this._index_box(this._right.length)}_lrtb(t){return[this._left[t],this._right[t],this._top[t],this._bottom[t]]}}s.QuadView=_,_.__name__="QuadView";class o extends i.Box{constructor(t){super(t)}static init_Quad(){this.prototype.default_view=_,this.coords([["right","bottom"],["left","top"]])}}s.Quad=o,o.__name__="Quad",o.init_Quad()},n”, ” function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(82),n=t(86),r=t(90);function _(t,i,e){if(i==(t+e)/2)return[t,e];{const s=(t-i)/(t-2*i+e),n=t*(1-s)**2+2*i*(1-s)*s+e*s**2;return[Math.min(t,e,n),Math.max(t,e,n)]}}class a extends n.GlyphView{_index_data(){const t=[];for(let i=0,e=this._x0.length;i<e;i++){if(isNaN(this._x0[i]+this._x1[i]+this._y0[i]+this._y1[i]+this._cx[i]+this._cy[i]))continue;const[e,s]=_(this._x0[i],this._cx[i],this._x1[i]),[n,r]=_(this._y0[i],this._cy[i],this._y1[i]);t.push({x0:e,y0:n,x1:s,y1:r,i})}return new s.SpatialIndex(t)}_render(t,i,{sx0:e,sy0:s,sx1:n,sy1:r,scx:_,scy:a}){if(this.visuals.line.doit)for(const c of i)isNaN(e[c]+s[c]+n[c]+r[c]+_[c]+a[c])||(t.beginPath(),t.moveTo(e[c],s[c]),t.quadraticCurveTo(_[c],a[c],n[c],r[c]),this.visuals.line.set_vectorize(t,c),t.stroke())}draw_legend_for_index(t,i,e){r.generic_line_legend(this.visuals,t,i,e)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}e.QuadraticView=a,a.__name__="QuadraticView";class c extends n.Glyph{constructor(t){super(t)}static init_Quadratic(){this.prototype.default_view=a,this.coords([["x0","y0"],["x1","y1"],["cx","cy"]]),this.mixins(["line"])}}e.Quadratic=c,c.__name__="Quadratic",c.init_Quadratic()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(81),a=e(90),l=s.__importStar(e(19));class r extends n.XYGlyphView{_map_data(){"data"==this.model.properties.length.units?this.slength=this.sdist(this.renderer.xscale,this._x,this._length):this.slength=this._length}_render(e,t,{sx:i,sy:s,slength:n,_angle:a}){if(this.visuals.line.doit){const l=2*(this.renderer.plot_view.frame._width.value+this.renderer.plot_view.frame._height.value);for(let e=0,t=n.length;e<t;e++)0==n[e]&&(n[e]=l);for(const l of t)isNaN(i[l]+s[l]+a[l]+n[l])||(e.translate(i[l],s[l]),e.rotate(a[l]),e.beginPath(),e.moveTo(0,0),e.lineTo(n[l],0),this.visuals.line.set_vectorize(e,l),e.stroke(),e.rotate(-a[l]),e.translate(-i[l],-s[l]))}}draw_legend_for_index(e,t,i){a.generic_line_legend(this.visuals,e,t,i)}}i.RayView=r,r.__name__="RayView";class _ extends n.XYGlyph{constructor(e){super(e)}static init_Ray(){this.prototype.default_view=r,this.mixins(["line"]),this.define({length:[l.DistanceSpec],angle:[l.AngleSpec]})}}i.Ray=_,_.__name__="Ray",_.init_Ray()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(213),a=t(90),r=i.__importStar(t(87)),n=i.__importStar(t(19)),_=t(12);class o extends h.CenterRotatableView{_set_data(){this.max_w2=0,"data"==this.model.properties.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,"data"==this.model.properties.height.units&&(this.max_h2=this.max_height/2)}_map_data(){if("data"==this.model.properties.width.units)[this.sw,this.sx0]=this._map_dist_corner_for_data_side_length(this._x,this._width,this.renderer.xscale);else{this.sw=this._width;const t=this.sx.length;this.sx0=new Float64Array(t);for(let s=0;s<t;s++)this.sx0[s]=this.sx[s]-this.sw[s]/2}if("data"==this.model.properties.height.units)[this.sh,this.sy1]=this._map_dist_corner_for_data_side_length(this._y,this._height,this.renderer.yscale);else{this.sh=this._height;const t=this.sy.length;this.sy1=new Float64Array(t);for(let s=0;s<t;s++)this.sy1[s]=this.sy[s]-this.sh[s]/2}const t=this.sw.length;this.ssemi_diag=new Float64Array(t);for(let s=0;s<t;s++)this.ssemi_diag[s]=Math.sqrt(this.sw[s]/2*this.sw[s]/2+this.sh[s]/2*this.sh[s]/2)}_render(t,s,{sx:e,sy:i,sx0:h,sy1:a,sw:r,sh:n,_angle:_}){if(this.visuals.fill.doit)for(const o of s)isNaN(e[o]+i[o]+h[o]+a[o]+r[o]+n[o]+_[o])||(this.visuals.fill.set_vectorize(t,o),_[o]?(t.translate(e[o],i[o]),t.rotate(_[o]),t.fillRect(-r[o]/2,-n[o]/2,r[o],n[o]),t.rotate(-_[o]),t.translate(-e[o],-i[o])):t.fillRect(h[o],a[o],r[o],n[o]));if(this.visuals.line.doit){t.beginPath();for(const o of s)isNaN(e[o]+i[o]+h[o]+a[o]+r[o]+n[o]+_[o])||0!=r[o]&&0!=n[o]&&(_[o]?(t.translate(e[o],i[o]),t.rotate(_[o]),t.rect(-r[o]/2,-n[o]/2,r[o],n[o]),t.rotate(-_[o]),t.translate(-e[o],-i[o])):t.rect(h[o],a[o],r[o],n[o]),this.visuals.line.set_vectorize(t,o),t.stroke(),t.beginPath());t.stroke()}}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){let{sx:s,sy:e}=t;const i=this.renderer.xscale.invert(s),h=this.renderer.yscale.invert(e),a=[];for(let t=0,s=this.sx0.length;t<s;t++)a.push(this.sx0[t]+this.sw[t]/2);const n=[];for(let t=0,s=this.sy1.length;t<s;t++)n.push(this.sy1[t]+this.sh[t]/2);const o=_.max(this._ddist(0,a,this.ssemi_diag)),l=_.max(this._ddist(1,n,this.ssemi_diag)),d=i-o,c=i+o,x=h-l,y=h+l,m=[];for(const t of this.index.indices({x0:d,x1:c,y0:x,y1:y})){let i,h;if(this._angle[t]){const a=Math.sin(-this._angle[t]),r=Math.cos(-this._angle[t]),n=r*(s-this.sx[t])-a*(e-this.sy[t])+this.sx[t],_=a*(s-this.sx[t])+r*(e-this.sy[t])+this.sy[t];s=n,e=_,h=Math.abs(this.sx[t]-s)<=this.sw[t]/2,i=Math.abs(this.sy[t]-e)<=this.sh[t]/2}else h=s-this.sx0[t]<=this.sw[t]&&s-this.sx0[t]>=0,i=e-this.sy1[t]<=this.sh[t]&&e-this.sy1[t]>=0;i&&h&&m.push(t)}const f=r.create_empty_hit_test_result();return f.indices=m,f}_map_dist_corner_for_data_side_length(t,s,e){const i=t.length,h=new Float64Array(i),a=new Float64Array(i);for(let e=0;e<i;e++)h[e]=Number(t[e])-s[e]/2,a[e]=Number(t[e])+s[e]/2;const r=e.v_compute(h),n=e.v_compute(a),_=this.sdist(e,h,s,"edge",this.model.dilate);let o=r;for(let t=0,s=r.length;t<s;t++)if(r[t]!=n[t]){o=r[t]<n[t]?r:n;break}return[_,o]}_ddist(t,s,e){const i=0==t?this.renderer.xscale:this.renderer.yscale,h=s,a=h.length,r=new Float64Array(a);for(let t=0;t<a;t++)r[t]=h[t]+e[t];const n=i.v_invert(h),_=i.v_invert(r),o=n.length,l=new Float64Array(o);for(let t=0;t<o;t++)l[t]=Math.abs(_[t]-n[t]);return l}draw_legend_for_index(t,s,e){a.generic_area_legend(this.visuals,t,s,e)}_bounds({x0:t,x1:s,y0:e,y1:i}){return{x0:t-this.max_w2,x1:s+this.max_w2,y0:e-this.max_h2,y1:i+this.max_h2}}}e.RectView=o,o.__name__="RectView";class l extends h.CenterRotatable{constructor(t){super(t)}static init_Rect(){this.prototype.default_view=o,this.define({dilate:[n.Boolean,!1]})}}e.Rect=l,l.__name__="Rect",l.init_Rect()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1).__importStar(e(87)),n=e(82),r=e(86),h=e(90);class _ extends r.GlyphView{_index_data(){const e=[];for(let t=0,s=this._x0.length;t<s;t++){const s=this._x0[t],i=this._x1[t],n=this._y0[t],r=this._y1[t];isNaN(s+i+n+r)||e.push({x0:Math.min(s,i),y0:Math.min(n,r),x1:Math.max(s,i),y1:Math.max(n,r),i:t})}return new n.SpatialIndex(e)}_render(e,t,{sx0:s,sy0:i,sx1:n,sy1:r}){if(this.visuals.line.doit)for(const h of t)isNaN(s[h]+i[h]+n[h]+r[h])||(e.beginPath(),e.moveTo(s[h],i[h]),e.lineTo(n[h],r[h]),this.visuals.line.set_vectorize(e,h),e.stroke())}_hit_point(e){const{sx:t,sy:s}=e,n={x:t,y:s},r=[],[h,_]=this.renderer.xscale.r_invert(t-2,t+2),[a,c]=this.renderer.yscale.r_invert(s-2,s+2),o=this.index.indices({x0:h,y0:a,x1:_,y1:c});for(const e of o){const t=Math.max(2,this.visuals.line.cache_select("line_width",e)/2)**2,s={x:this.sx0[e],y:this.sy0[e]},h={x:this.sx1[e],y:this.sy1[e]};i.dist_to_segment_squared(n,s,h)<t&&r.push(e)}const x=i.create_empty_hit_test_result();return x.indices=r,x}_hit_span(e){const[t,s]=this.renderer.plot_view.frame.bbox.ranges,{sx:n,sy:r}=e;let h,_,a;"v"==e.direction?(a=this.renderer.yscale.invert(r),[h,_]=[this._y0,this._y1]):(a=this.renderer.xscale.invert(n),[h,_]=[this._x0,this._x1]);const c=[],[o,x]=this.renderer.xscale.r_invert(t.start,t.end),[l,d]=this.renderer.yscale.r_invert(s.start,s.end),y=this.index.indices({x0:o,y0:l,x1:x,y1:d});for(const t of y){(h[t]<=a&&a<=_[t]||_[t]<=a&&a<=h[t])&&c.push(t);const s=1.5+this.visuals.line.cache_select("line_width",t)/2;h[t]==_[t]&&("h"==e.direction?Math.abs(this.sx0[t]-n)<=s&&c.push(t):Math.abs(this.sy0[t]-r)<=s&&c.push(t))}const u=i.create_empty_hit_test_result();return u.indices=c,u}scenterx(e){return(this.sx0[e]+this.sx1[e])/2}scentery(e){return(this.sy0[e]+this.sy1[e])/2}draw_legend_for_index(e,t,s){h.generic_line_legend(this.visuals,e,t,s)}}s.SegmentView=_,_.__name__="SegmentView";class a extends r.Glyph{constructor(e){super(e)}static init_Segment(){this.prototype.default_view=_,this.coords([["x0","y0"],["x1","y1"]]),this.mixins(["line"])}}s.Segment=a,a.__name__="Segment",a.init_Segment()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(81),o=e(90),r=n.__importStar(e(19));class l extends s.XYGlyphView{_render(e,t,{sx:i,sy:n}){let s=!1,o=null;this.visuals.line.set_value(e);const r=t.length;if(!(r<2)){e.beginPath(),e.moveTo(i[0],n[0]);for(const r of t){let t,l,a,_;switch(this.model.mode){case"before":[t,a]=[i[r-1],n[r]],[l,_]=[i[r],n[r]];break;case"after":[t,a]=[i[r],n[r-1]],[l,_]=[i[r],n[r]];break;case"center":{const e=(i[r-1]+i[r])/2;[t,a]=[e,n[r-1]],[l,_]=[e,n[r]];break}default:throw new Error("unexpected")}if(s){if(!isFinite(i[r]+n[r])){e.stroke(),e.beginPath(),s=!1,o=r;continue}null!=o&&r-o>1&&(e.stroke(),s=!1)}s?(e.lineTo(t,a),e.lineTo(l,_)):(e.beginPath(),e.moveTo(i[r],n[r]),s=!0),o=r}e.lineTo(i[r-1],n[r-1]),e.stroke()}}draw_legend_for_index(e,t,i){o.generic_line_legend(this.visuals,e,t,i)}}i.StepView=l,l.__name__="StepView";class a extends s.XYGlyph{constructor(e){super(e)}static init_Step(){this.prototype.default_view=l,this.mixins(["line"]),this.define({mode:[r.StepMode,"before"]})}}i.Step=a,a.__name__="Step",a.init_Step()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),_=t(81),n=i.__importStar(t(87)),o=i.__importStar(t(19)),h=t(131);class r extends _.XYGlyphView{_rotate_point(t,s,e,i,_){return[(t-e)*Math.cos(_)-(s-i)*Math.sin(_)+e,(t-e)*Math.sin(_)+(s-i)*Math.cos(_)+i]}_text_bounds(t,s,e,i){return[[t,t+e,t+e,t,t],[s,s,s-i,s-i,s]]}_render(t,s,{sx:e,sy:i,_x_offset:_,_y_offset:n,_angle:o,_text:r}){this._sys=[],this._sxs=[];for(const l of s)if(!isNaN(e[l]+i[l]+_[l]+n[l]+o[l])&&null!=r[l]&&(this._sxs[l]=[],this._sys[l]=[],this.visuals.text.doit)){const s=`${r[l]}`;t.save(),t.translate(e[l]+_[l],i[l]+n[l]),t.rotate(o[l]),this.visuals.text.set_vectorize(t,l);const a=this.visuals.text.cache_select("font",l),{height:x}=h.measure_font(a),c=this.visuals.text.text_line_height.value()*x;if(-1==s.indexOf("\n")){t.fillText(s,0,0);const o=e[l]+_[l],h=i[l]+n[l],r=t.measureText(s).width,[a,x]=this._text_bounds(o,h,r,c);this._sxs[l].push(a),this._sys[l].push(x)}else{const o=s.split("\n"),h=c*o.length,r=this.visuals.text.cache_select("text_baseline",l);let a;switch(r){case"top":a=0;break;case"middle":a=-h/2+c/2;break;case"bottom":a=-h+c;break;default:a=0,console.warn(‘${r}’ baseline not supported with multi line text)}for(const s of o){t.fillText(s,0,a);const o=e[l]+_[l],h=a+i[l]+n[l],r=t.measureText(s).width,[x,u]=this._text_bounds(o,h,r,c);this._sxs[l].push(x),this._sys[l].push(u),a+=c}}t.restore()}}_hit_point(t){const{sx:s,sy:e}=t,i=[];for(let t=0;t<this._sxs.length;t++){const _=this._sxs[t],o=this._sys[t],h=_.length;for(let r=0,l=h;r<l;r++){const[l,a]=this._rotate_point(s,e,_[h-1][0],o[h-1][0],-this._angle[t]);n.point_in_poly(l,a,_[r],o[r])&&i.push(t)}}const _=n.create_empty_hit_test_result();return _.indices=i,_}_scenterxy(t){const s=this._sxs[t][0][0],e=this._sys[t][0][0],i=(this._sxs[t][0][2]+s)/2,_=(this._sys[t][0][2]+e)/2,[n,o]=this._rotate_point(i,_,s,e,this._angle[t]);return{x:n,y:o}}scenterx(t){return this._scenterxy(t).x}scentery(t){return this._scenterxy(t).y}}e.TextView=r,r.__name__="TextView";class l extends _.XYGlyph{constructor(t){super(t)}static init_Text(){this.prototype.default_view=r,this.mixins(["text"]),this.define({text:[o.NullStringSpec,{field:"text"}],angle:[o.AngleSpec,0],x_offset:[o.NumberSpec,0],y_offset:[o.NumberSpec,0]})}}e.Text=l,l.__name__="Text",l.init_Text()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(217),r=i.__importStar(t(19));class o extends h.BoxView{scenterx(t){return this.sx[t]}scentery(t){return(this.stop[t]+this.sbottom[t])/2}_index_data(){return this._index_box(this._x.length)}_lrtb(t){return[this._x[t]-this._width[t]/2,this._x[t]+this._width[t]/2,Math.max(this._top[t],this._bottom[t]),Math.min(this._top[t],this._bottom[t])]}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sw=this.sdist(this.renderer.xscale,this._x,this._width,"center"),this.stop=this.renderer.yscale.v_compute(this._top),this.sbottom=this.renderer.yscale.v_compute(this._bottom);const t=this.sx.length;this.sleft=new Float64Array(t),this.sright=new Float64Array(t);for(let s=0;s<t;s++)this.sleft[s]=this.sx[s]-this.sw[s]/2,this.sright[s]=this.sx[s]+this.sw[s]/2;this._clamp_viewport()}}e.VBarView=o,o.__name__="VBarView";class _ extends h.Box{constructor(t){super(t)}static init_VBar(){this.prototype.default_view=o,this.coords([["x","bottom"]]),this.define({width:[r.NumberSpec],top:[r.CoordinateSpec]}),this.override({bottom:0})}}e.VBar=_,_.__name__="VBar",_.init_VBar()},n”, ” function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(1),r=e(81),n=e(90),a=i.__importStar(e(87)),_=i.__importStar(e(19)),d=e(10);class l extends r.XYGlyphView{_map_data(){"data"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius):this.sradius=this._radius}_render(e,s,{sx:t,sy:i,sradius:r,_start_angle:n,_end_angle:a}){const _=this.model.properties.direction.value();for(const d of s)isNaN(t[d]+i[d]+r[d]+n[d]+a[d])||(e.beginPath(),e.arc(t[d],i[d],r[d],n[d],a[d],_),e.lineTo(t[d],i[d]),e.closePath(),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,d),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,d),e.stroke()))}_hit_point(e){let s,t,i,r,n,_,l,h,o;const{sx:c,sy:u}=e,p=this.renderer.xscale.invert(c),x=this.renderer.yscale.invert(u),g=2*this.max_radius;"data"===this.model.properties.radius.units?(_=p-g,l=p+g,h=x-g,o=x+g):(t=c-g,i=c+g,[_,l]=this.renderer.xscale.r_invert(t,i),r=u-g,n=u+g,[h,o]=this.renderer.yscale.r_invert(r,n));const y=[];for(const e of this.index.indices({x0:_,x1:l,y0:h,y1:o})){const a=this.sradius[e]**2;[t,i]=this.renderer.xscale.r_compute(p,this._x[e]),[r,n]=this.renderer.yscale.r_compute(x,this._y[e]),s=(t-i)**2+(r-n)**2,s<=a&&y.push([e,s])}const f=this.model.properties.direction.value(),v=[];for(const[e,s]of y){const t=Math.atan2(u-this.sy[e],c-this.sx[e]);d.angle_between(-t,-this._start_angle[e],-this._end_angle[e],f)&&v.push([e,s])}return a.create_hit_test_result_from_hits(v)}draw_legend_for_index(e,s,t){n.generic_area_legend(this.visuals,e,s,t)}_scenterxy(e){const s=this.sradius[e]/2,t=(this._start_angle[e]+this._end_angle[e])/2;return{x:this.sx[e]+s*Math.cos(t),y:this.sy[e]+s*Math.sin(t)}}scenterx(e){return this._scenterxy(e).x}scentery(e){return this._scenterxy(e).y}}t.WedgeView=l,l.__name__="WedgeView";class h extends r.XYGlyph{constructor(e){super(e)}static init_Wedge(){this.prototype.default_view=l,this.mixins(["line","fill"]),this.define({direction:[_.Direction,"anticlock"],radius:[_.DistanceSpec],start_angle:[_.AngleSpec],end_angle:[_.AngleSpec]})}}t.Wedge=h,h.__name__="Wedge",h.init_Wedge()},n”, ” function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const r=e(1);r.__exportStar(e(98),_),r.__exportStar(e(238),_),r.__exportStar(e(239),_)},n”, ” function _(e,o,r){Object.defineProperty(r,"__esModule",{value:!0});const t=e(69);class n extends t.Model{constructor(e){super(e)}}r.LayoutProvider=n,n.__name__="LayoutProvider"},n”, ” function _(t,a,e){Object.defineProperty(e,"__esModule",{value:!0});const o=t(1),r=t(238),s=o.__importStar(t(19));class n extends r.LayoutProvider{constructor(t){super(t)}static init_StaticLayoutProvider(){this.define({graph_layout:[s.Any,{}]})}get_node_coordinates(t){const a=[],e=[],o=t.data.index;for(let t=0,r=o.length;t<r;t++){const r=this.graph_layout[o[t]],[s,n]=null!=r?r:[NaN,NaN];a.push(s),e.push(n)}return[a,e]}get_edge_coordinates(t){const a=[],e=[],o=t.data.start,r=t.data.end,s=null!=t.data.xs&&null!=t.data.ys;for(let n=0,u=o.length;n<u;n++){const u=null!=this.graph_layout[o[n]]&&null!=this.graph_layout[r[n]];if(s&&u)a.push(t.data.xs[n]),e.push(t.data.ys[n]);else{let t,s;[s,t]=u?[this.graph_layout[o[n]],this.graph_layout[r[n]]]:[[NaN,NaN],[NaN,NaN]],a.push([s[0],t[0]]),e.push([s[1],t[1]])}}return[a,e]}}e.StaticLayoutProvider=n,n.__name__="StaticLayoutProvider",n.init_StaticLayoutProvider()},n”, ” function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});var i=e(241);d.Grid=i.Grid},n”, ” function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),s=e(149),r=n.__importStar(e(19)),_=e(8);class o extends s.GuideRendererView{render(){if(!this.model.visible)return;const e=this.plot_view.canvas_view.ctx;e.save(),this._draw_regions(e),this._draw_minor_grids(e),this._draw_grids(e),e.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render())}_draw_regions(e){if(!this.visuals.band_fill.doit&&!this.visuals.band_hatch.doit)return;this.visuals.band_fill.set_value(e);const[i,t]=this.grid_coords("major",!1);for(let n=0;n<i.length-1;n++){if(n%2!=1)continue;const[s,r]=this.plot_view.map_to_screen(i[n],t[n],this.model.x_range_name,this.model.y_range_name),[_,o]=this.plot_view.map_to_screen(i[n+1],t[n+1],this.model.x_range_name,this.model.y_range_name);this.visuals.band_fill.doit&&e.fillRect(s[0],r[0],_[1]-s[0],o[1]-r[0]),this.visuals.band_hatch.doit2(e,n,()=>{e.fillRect(s[0],r[0],_[1]-s[0],o[1]-r[0])},()=>this.request_render())}}_draw_grids(e){if(!this.visuals.grid_line.doit)return;const[i,t]=this.grid_coords("major");this._draw_grid_helper(e,this.visuals.grid_line,i,t)}_draw_minor_grids(e){if(!this.visuals.minor_grid_line.doit)return;const[i,t]=this.grid_coords("minor");this._draw_grid_helper(e,this.visuals.minor_grid_line,i,t)}_draw_grid_helper(e,i,t,n){i.set_value(e);for(let i=0;i<t.length;i++){const[s,r]=this.plot_view.map_to_screen(t[i],n[i],this.model.x_range_name,this.model.y_range_name);e.beginPath(),e.moveTo(Math.round(s[0]),Math.round(r[0]));for(let i=1;i<s.length;i++)e.lineTo(Math.round(s[i]),Math.round(r[i]));e.stroke()}}ranges(){const e=this.model.dimension,i=(e+1)%2,t=this.plot_view.frame,n=[t.x_ranges[this.model.x_range_name],t.y_ranges[this.model.y_range_name]];return[n[e],n[i]]}computed_bounds(){const[e]=this.ranges(),i=this.model.bounds,t=[e.min,e.max];let n,s;if(_.isArray(i))n=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]),n<t[0]&&(n=t[0]),s>t[1]&&(s=t[1]);else{[n,s]=t;for(const e of this.plot_view.axis_views)e.dimension==this.model.dimension&&e.model.x_range_name==this.model.x_range_name&&e.model.y_range_name==this.model.y_range_name&&([n,s]=e.computed_bounds)}return[n,s]}grid_coords(e,i=!0){const t=this.model.dimension,n=(t+1)%2,[s,r]=this.ranges();let[_,o]=this.computed_bounds();[_,o]=[Math.min(_,o),Math.max(_,o)];const a=[[],[]],l=this.model.get_ticker();if(null==l)return a;const d=l.get_ticks(_,o,s,r.min,{})[e],h=s.min,m=s.max,c=r.min,u=r.max;i||(d[0]!=h&&d.splice(0,0,h),d[d.length-1]!=m&&d.push(m));for(let e=0;e<d.length;e++){if((d[e]==h||d[e]==m)&&i)continue;const s=[],r=[],_=2;for(let i=0;i<_;i++){const t=c+(u-c)/(_-1)*i;s.push(d[e]),r.push(t)}a[t].push(s),a[n].push(r)}return a}}t.GridView=o,o.__name__="GridView";class a extends s.GuideRenderer{constructor(e){super(e)}static init_Grid(){this.prototype.default_view=o,this.mixins(["line:grid_","line:minor_grid_","fill:band_","hatch:band_"]),this.define({bounds:[r.Any,"auto"],dimension:[r.Any,0],axis:[r.Instance],ticker:[r.Instance],x_range_name:[r.String,"default"],y_range_name:[r.String,"default"]}),this.override({level:"underlay",band_fill_color:null,band_fill_alpha:0,grid_line_color:"#e5e5e5",minor_grid_line_color:null})}get_ticker(){return null!=this.ticker?this.ticker:null!=this.axis?this.axis.ticker:null}}t.Grid=a,a.__name__="Grid",a.init_Grid()},n”, ” function _(a,o,r){Object.defineProperty(r,"__esModule",{value:!0});var e=a(243);r.Box=e.Box;var v=a(245);r.Column=v.Column;var x=a(246);r.GridBox=x.GridBox;var B=a(247);r.HTMLBox=B.HTMLBox;var n=a(244);r.LayoutDOM=n.LayoutDOM;var t=a(248);r.Row=t.Row;var u=a(249);r.Spacer=u.Spacer;var d=a(250);r.Panel=d.Panel,r.Tabs=d.Tabs;var i=a(254);r.WidgetBox=i.WidgetBox},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(244),o=n.__importStar(e(19));class c extends s.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.children.change,()=>this.rebuild())}get child_models(){return this.model.children}}i.BoxView=c,c.__name__="BoxView";class r extends s.LayoutDOM{constructor(e){super(e)}static init_Box(){this.define({children:[o.Array,[]],spacing:[o.Number,0]})}}i.Box=r,r.__name__="Box",r.init_Box()},n”, ” function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const s=i(1),o=i(69),l=i(66),n=i(70),h=i(8),a=s.__importStar(i(19)),_=i(96),r=i(64),d=i(67);class u extends r.DOMView{constructor(){super(…arguments),this._idle_notified=!1,this._offset_parent=null,this._viewport={}}initialize(){super.initialize(),this.el.style.position=this.is_root?"relative":"absolute",this._child_views={}}async lazy_initialize(){await this.build_child_views()}remove(){for(const i of this.child_views)i.remove();this._child_views={},super.remove()}connect_signals(){super.connect_signals(),this.is_root&&(this._on_resize=()=>this.resize_layout(),window.addEventListener("resize",this._on_resize),this._parent_observer=setInterval(()=>{const i=this.el.offsetParent;this._offset_parent!=i&&(this._offset_parent=i,null!=i&&(this.compute_viewport(),this.invalidate_layout()))},250));const i=this.model.properties;this.on_change([i.width,i.height,i.min_width,i.min_height,i.max_width,i.max_height,i.margin,i.width_policy,i.height_policy,i.sizing_mode,i.aspect_ratio,i.visible],()=>this.invalidate_layout()),this.on_change([i.background,i.css_classes],()=>this.invalidate_render())}disconnect_signals(){null!=this._parent_observer&&clearTimeout(this._parent_observer),null!=this._on_resize&&window.removeEventListener("resize",this._on_resize),super.disconnect_signals()}css_classes(){return super.css_classes().concat(this.model.css_classes)}get child_views(){return this.child_models.map(i=>this._child_views[i.id])}async build_child_views(){await _.build_views(this._child_views,this.child_models,{parent:this})}render(){super.render(),l.empty(this.el);const{background:i}=this.model;this.el.style.backgroundColor=null!=i?i:"",l.classes(this.el).clear().add(…this.css_classes());for(const i of this.child_views)this.el.appendChild(i.el),i.render()}update_layout(){for(const i of this.child_views)i.update_layout();this._update_layout()}update_position(){this.el.style.display=this.model.visible?"block":"none";const i=this.is_root?this.layout.sizing.margin:void 0;l.position(this.el,this.layout.bbox,i);for(const i of this.child_views)i.update_position()}after_layout(){for(const i of this.child_views)i.after_layout();this._has_finished=!0}compute_viewport(){this._viewport=this._viewport_size()}renderTo(i){i.appendChild(this.el),this._offset_parent=this.el.offsetParent,this.compute_viewport(),this.build()}build(){return this.assert_root(),this.render(),this.update_layout(),this.compute_layout(),this}async rebuild(){await this.build_child_views(),this.invalidate_render()}compute_layout(){const i=Date.now();this.layout.compute(this._viewport),this.update_position(),this.after_layout(),n.logger.debug(layout computed in ${Date.now()-i} ms),this.notify_finished()}resize_layout(){this.root.compute_viewport(),this.root.compute_layout()}invalidate_layout(){this.root.update_layout(),this.root.compute_layout()}invalidate_render(){this.render(),this.invalidate_layout()}has_finished(){if(!super.has_finished())return!1;for(const i of this.child_views)if(!i.has_finished())return!1;return!0}notify_finished(){this.is_root?!this._idle_notified&&this.has_finished()&&null!=this.model.document&&(this._idle_notified=!0,this.model.document.notify_idle(this.model)):this.root.notify_finished()}_width_policy(){return null!=this.model.width?"fixed":"fit"}_height_policy(){return null!=this.model.height?"fixed":"fit"}box_sizing(){let{width_policy:i,height_policy:t,aspect_ratio:e}=this.model;"auto"==i&&(i=this._width_policy()),"auto"==t&&(t=this._height_policy());const{sizing_mode:s}=this.model;if(null!=s)if("fixed"==s)i=t="fixed";else if("stretch_both"==s)i=t="max";else if("stretch_width"==s)i="max";else if("stretch_height"==s)t="max";else switch(null==e&&(e="auto"),s){case"scale_width":i="max",t="min";break;case"scale_height":i="min",t="max";break;case"scale_both":i="max",t="max"}const o={width_policy:i,height_policy:t},{min_width:l,min_height:n}=this.model;null!=l&&(o.min_width=l),null!=n&&(o.min_height=n);const{width:a,height:_}=this.model;null!=a&&(o.width=a),null!=_&&(o.height=_);const{max_width:r,max_height:d}=this.model;null!=r&&(o.max_width=r),null!=d&&(o.max_height=d),"auto"==e&&null!=a&&null!=_?o.aspect=a/_:h.isNumber(e)&&(o.aspect=e);const{margin:u}=this.model;if(null!=u)if(h.isNumber(u))o.margin={top:u,right:u,bottom:u,left:u};else if(2==u.length){const[i,t]=u;o.margin={top:i,right:t,bottom:i,left:t}}else{const[i,t,e,s]=u;o.margin={top:i,right:t,bottom:e,left:s}}o.visible=this.model.visible;const{align:c}=this.model;return h.isArray(c)?[o.halign,o.valign]=c:o.halign=o.valign=c,o}_viewport_size(){return l.undisplayed(this.el,()=>{let i=this.el;for(;i=i.parentElement;){if(i.classList.contains(d.bk_root))continue;if(i==document.body){const{margin:{left:i,right:t,top:e,bottom:s}}=l.extents(document.body);return{width:Math.ceil(document.documentElement.clientWidth-i-t),height:Math.ceil(document.documentElement.clientHeight-e-s)}}const{padding:{left:t,right:e,top:s,bottom:o}}=l.extents(i),{width:n,height:h}=i.getBoundingClientRect(),a=Math.ceil(n-t-e),_=Math.ceil(h-s-o);if(a>0||_>0)return{width:a>0?a:void 0,height:_>0?_:void 0}}return{}})}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.layout.bbox.box,children:this.child_views.map(i=>i.serializable_state())})}}e.LayoutDOMView=u,u.__name__="LayoutDOMView";class c extends o.Model{constructor(i){super(i)}static init_LayoutDOM(){this.define({width:[a.Number,null],height:[a.Number,null],min_width:[a.Number,null],min_height:[a.Number,null],max_width:[a.Number,null],max_height:[a.Number,null],margin:[a.Any,[0,0,0,0]],width_policy:[a.Any,"auto"],height_policy:[a.Any,"auto"],aspect_ratio:[a.Any,null],sizing_mode:[a.SizingMode,null],visible:[a.Boolean,!0],disabled:[a.Boolean,!1],align:[a.Any,"start"],background:[a.Color,null],css_classes:[a.Array,[]]})}}e.LayoutDOM=c,c.__name__="LayoutDOM",c.init_LayoutDOM()},n”, ” function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(243),n=t(191),l=s.__importStar(t(19));class u extends e.BoxView{_update_layout(){const t=this.child_views.map(t=>t.layout);this.layout=new n.Column(t),this.layout.rows=this.model.rows,this.layout.spacing=[this.model.spacing,0],this.layout.set_sizing(this.box_sizing())}}i.ColumnView=u,u.__name__="ColumnView";class _ extends e.Box{constructor(t){super(t)}static init_Column(){this.prototype.default_view=u,this.define({rows:[l.Any,"auto"]})}}i.Column=_,_.__name__="Column",_.init_Column()},n”, ” function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t(1),e=t(244),n=t(191),l=o.__importStar(t(19));class r extends e.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.children.change,()=>this.rebuild())}get child_models(){return this.model.children.map(([t])=>t)}_update_layout(){this.layout=new n.Grid,this.layout.rows=this.model.rows,this.layout.cols=this.model.cols,this.layout.spacing=this.model.spacing;for(const[t,i,s,o,e]of this.model.children){const n=this._child_views[t.id];this.layout.items.push({layout:n.layout,row:i,col:s,row_span:o,col_span:e})}this.layout.set_sizing(this.box_sizing())}}s.GridBoxView=r,r.__name__="GridBoxView";class a extends e.LayoutDOM{constructor(t){super(t)}static init_GridBox(){this.prototype.default_view=r,this.define({children:[l.Array,[]],rows:[l.Any,"auto"],cols:[l.Any,"auto"],spacing:[l.Any,0]})}}s.GridBox=a,a.__name__="GridBox",a.init_GridBox()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(244),_=e(187);class n extends s.LayoutDOMView{get child_models(){return[]}_update_layout(){this.layout=new _.ContentBox(this.el),this.layout.set_sizing(this.box_sizing())}}o.HTMLBoxView=n,n.__name__="HTMLBoxView";class i extends s.LayoutDOM{constructor(e){super(e)}}o.HTMLBox=i,i.__name__="HTMLBox"},n”, ” function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(243),_=t(191),a=s.__importStar(t(19));class n extends e.BoxView{_update_layout(){const t=this.child_views.map(t=>t.layout);this.layout=new _.Row(t),this.layout.cols=this.model.cols,this.layout.spacing=[0,this.model.spacing],this.layout.set_sizing(this.box_sizing())}}i.RowView=n,n.__name__="RowView";class l extends e.Box{constructor(t){super(t)}static init_Row(){this.prototype.default_view=n,this.define({cols:[a.Any,"auto"]})}}i.Row=l,l.__name__="Row",l.init_Row()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(244),s=e(187);class _ extends i.LayoutDOMView{get child_models(){return[]}_update_layout(){this.layout=new s.LayoutItem,this.layout.set_sizing(this.box_sizing())}}a.SpacerView=_,_.__name__="SpacerView";class o extends i.LayoutDOM{constructor(e){super(e)}static init_Spacer(){this.prototype.default_view=_}}a.Spacer=o,o.__name__="Spacer",o.init_Spacer()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),a=e(187),l=e(66),h=e(9),o=i.__importStar(e(19)),c=e(244),d=e(69),n=e(145),r=e(251),_=e(252),b=e(253);class p extends c.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.tabs.change,()=>this.rebuild()),this.connect(this.model.properties.active.change,()=>this.on_active_change())}get child_models(){return this.model.tabs.map(e=>e.child)}_update_layout(){const e=this.model.tabs_location,t="above"==e||"below"==e,{scroll_el:s,headers_el:i}=this;this.header=new class extends a.ContentBox{_measure(e){const a=l.size(s),o=l.children(i).slice(0,3).map(e=>l.size(e)),{width:c,height:d}=super._measure(e);if(t){const t=a.width+h.sum(o.map(e=>e.width));return{width:e.width!=1/0?e.width:t,height:d}}{const t=a.height+h.sum(o.map(e=>e.height));return{width:c,height:e.height!=1/0?e.height:t}}}}(this.header_el),t?this.header.set_sizing({width_policy:"fit",height_policy:"fixed"}):this.header.set_sizing({width_policy:"fixed",height_policy:"fit"});let o=1,c=1;switch(e){case"above":o-=1;break;case"below":o+=1;break;case"left":c-=1;break;case"right":c+=1}const d={layout:this.header,row:o,col:c},n=this.child_views.map(e=>({layout:e.layout,row:1,col:1}));this.layout=new a.Grid([d,…n]),this.layout.set_sizing(this.box_sizing())}update_position(){super.update_position(),this.header_el.style.position="absolute",l.position(this.header_el,this.header.bbox);const e=this.model.tabs_location,t="above"==e||"below"==e,s=l.size(this.scroll_el),i=l.scroll_size(this.headers_el);if(t){const{width:e}=this.header.bbox;i.width>e?(this.wrapper_el.style.maxWidth=`${e-s.width}px`,l.display(this.scroll_el)):(this.wrapper_el.style.maxWidth="",l.undisplay(this.scroll_el))}else{const{height:e}=this.header.bbox;i.height>e?(this.wrapper_el.style.maxHeight=`${e-s.height}px`,l.display(this.scroll_el)):(this.wrapper_el.style.maxHeight="",l.undisplay(this.scroll_el))}const{child_views:a}=this;for(const e of a)l.hide(e.el);const h=a[this.model.active];null!=h&&l.show(h.el)}render(){super.render();const{active:e}=this.model,t=this.model.tabs_location,s="above"==t||"below"==t,i=this.model.tabs.map((t,s)=>{const i=l.div({class:[r.bk_tab,s==e?n.bk_active:null]},t.title);if(i.addEventListener("click",e=>{e.target==e.currentTarget&&this.change_active(s)}),t.closable){const e=l.div({class:r.bk_close});e.addEventListener("click",e=>{if(e.target==e.currentTarget){this.model.tabs=h.remove_at(this.model.tabs,s);const e=this.model.tabs.length;this.model.active>e-1&&(this.model.active=e-1)}}),i.appendChild(e)}return i});this.headers_el=l.div({class:[r.bk_headers]},i),this.wrapper_el=l.div({class:r.bk_headers_wrapper},this.headers_el);const a=l.div({class:[_.bk_btn,_.bk_btn_default],disabled:""},l.div({class:[b.bk_caret,n.bk_left]})),o=l.div({class:[_.bk_btn,_.bk_btn_default]},l.div({class:[b.bk_caret,n.bk_right]}));let c=0;const d=e=>()=>{const t=this.model.tabs.length;c="left"==e?Math.max(c-1,0):Math.min(c+1,t-1),0==c?a.setAttribute("disabled",""):a.removeAttribute("disabled"),c==t-1?o.setAttribute("disabled",""):o.removeAttribute("disabled");const i=l.children(this.headers_el).slice(0,c).map(e=>e.getBoundingClientRect());if(s){const e=-h.sum(i.map(e=>e.width));this.headers_el.style.left=`${e}px`}else{const e=-h.sum(i.map(e=>e.height));this.headers_el.style.top=`${e}px`}};a.addEventListener("click",d("left")),o.addEventListener("click",d("right")),this.scroll_el=l.div({class:_.bk_btn_group},a,o),this.header_el=l.div({class:[r.bk_tabs_header,n.bk_side(t)]},this.scroll_el,this.wrapper_el),this.el.appendChild(this.header_el)}change_active(e){e!=this.model.active&&(this.model.active=e)}on_active_change(){const e=this.model.active,t=l.children(this.headers_el);for(const e of t)e.classList.remove(n.bk_active);t[e].classList.add(n.bk_active);const{child_views:s}=this;for(const e of s)l.hide(e.el);l.show(s[e].el)}}s.TabsView=p,p.__name__="TabsView";class u extends c.LayoutDOM{constructor(e){super(e)}static init_Tabs(){this.prototype.default_view=p,this.define({tabs:[o.Array,[]],tabs_location:[o.Location,"above"],active:[o.Number,0]})}}s.Tabs=u,u.__name__="Tabs",u.init_Tabs();class m extends d.Model{constructor(e){super(e)}static init_Panel(){this.define({title:[o.String,""],child:[o.Instance],closable:[o.Boolean,!1]})}}s.Panel=m,m.__name__="Panel",m.init_Panel()},n”, ” function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const b=e(1);e(67),b.__importStar(e(66)).styles.append(‘.bk-root .bk-tabs-header {\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n overflow: hidden;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-tabs-header .bk-btn-group {\n height: auto;\n margin-right: 5px;\n}\n.bk-root .bk-tabs-header .bk-btn-group > .bk-btn {\n flex-grow: 0;\n -webkit-flex-grow: 0;\n height: auto;\n padding: 4px 4px;\n}\n.bk-root .bk-tabs-header .bk-headers-wrapper {\n flex-grow: 1;\n -webkit-flex-grow: 1;\n overflow: hidden;\n color: #666666;\n}\n.bk-root .bk-tabs-header.bk-above .bk-headers-wrapper {\n border-bottom: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-right .bk-headers-wrapper {\n border-left: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-below .bk-headers-wrapper {\n border-top: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-left .bk-headers-wrapper {\n border-right: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-above,\n.bk-root .bk-tabs-header.bk-below {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-tabs-header.bk-above .bk-headers,\n.bk-root .bk-tabs-header.bk-below .bk-headers {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-tabs-header.bk-left,\n.bk-root .bk-tabs-header.bk-right {\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-tabs-header.bk-left .bk-headers,\n.bk-root .bk-tabs-header.bk-right .bk-headers {\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-tabs-header .bk-headers {\n position: relative;\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n}\n.bk-root .bk-tabs-header .bk-tab {\n padding: 4px 8px;\n border: solid transparent;\n white-space: nowrap;\n cursor: pointer;\n}\n.bk-root .bk-tabs-header .bk-tab:hover {\n background-color: #f2f2f2;\n}\n.bk-root .bk-tabs-header .bk-tab.bk-active {\n color: #4d4d4d;\n background-color: white;\n border-color: #e6e6e6;\n}\n.bk-root .bk-tabs-header .bk-tab .bk-close {\n margin-left: 10px;\n}\n.bk-root .bk-tabs-header.bk-above .bk-tab {\n border-width: 3px 1px 0px 1px;\n border-radius: 4px 4px 0 0;\n}\n.bk-root .bk-tabs-header.bk-right .bk-tab {\n border-width: 1px 3px 1px 0px;\n border-radius: 0 4px 4px 0;\n}\n.bk-root .bk-tabs-header.bk-below .bk-tab {\n border-width: 0px 1px 3px 1px;\n border-radius: 0 0 4px 4px;\n}\n.bk-root .bk-tabs-header.bk-left .bk-tab {\n border-width: 1px 0px 1px 3px;\n border-radius: 4px 0 0 4px;\n}\n.bk-root .bk-close {\n display: inline-block;\n width: 10px;\n height: 10px;\n vertical-align: middle;\n background-image: url(\’data:image/svg+xml;utf8,\\\n <svg viewPort="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg">\\\n <line x1="1" y1="9" x2="9" y2="1" stroke="gray" stroke-width="2"/>\\\n <line x1="1" y1="1" x2="9" y2="9" stroke="gray" stroke-width="2"/>\\\n </svg>\’);\n}\n.bk-root .bk-close:hover {\n background-image: url(\’data:image/svg+xml;utf8,\\\n <svg viewPort="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg">\\\n <line x1="1" y1="9" x2="9" y2="1" stroke="red" stroke-width="2"/>\\\n <line x1="1" y1="1" x2="9" y2="9" stroke="red" stroke-width="2"/>\\\n </svg>\’);\n}\n’),n.bk_tabs_header="bk-tabs-header",n.bk_headers_wrapper="bk-headers-wrapper",n.bk_headers="bk-headers",n.bk_tab="bk-tab",n.bk_close="bk-close"},n”, ” function _(n,o,b){Object.defineProperty(b,"__esModule",{value:!0});const r=n(1);n(67),r.__importStar(n(66)).styles.append(".bk-root .bk-btn {\n height: 100%;\n display: inline-block;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n cursor: pointer;\n padding: 6px 12px;\n font-size: 12px;\n border: 1px solid transparent;\n border-radius: 4px;\n outline: 0;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-btn:hover,\n.bk-root .bk-btn:focus {\n text-decoration: none;\n}\n.bk-root .bk-btn:active,\n.bk-root .bk-btn.bk-active {\n background-image: none;\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.bk-root .bk-btn[disabled] {\n cursor: not-allowed;\n pointer-events: none;\n opacity: 0.65;\n box-shadow: none;\n}\n.bk-root .bk-btn-default {\n color: #333;\n background-color: #fff;\n border-color: #ccc;\n}\n.bk-root .bk-btn-default:hover {\n background-color: #f5f5f5;\n border-color: #b8b8b8;\n}\n.bk-root .bk-btn-default.bk-active {\n background-color: #ebebeb;\n border-color: #adadad;\n}\n.bk-root .bk-btn-default[disabled],\n.bk-root .bk-btn-default[disabled]:hover,\n.bk-root .bk-btn-default[disabled]:focus,\n.bk-root .bk-btn-default[disabled]:active,\n.bk-root .bk-btn-default[disabled].bk-active {\n background-color: #e6e6e6;\n border-color: #ccc;\n}\n.bk-root .bk-btn-primary {\n color: #fff;\n background-color: #428bca;\n border-color: #357ebd;\n}\n.bk-root .bk-btn-primary:hover {\n background-color: #3681c1;\n border-color: #2c699e;\n}\n.bk-root .bk-btn-primary.bk-active {\n background-color: #3276b1;\n border-color: #285e8e;\n}\n.bk-root .bk-btn-primary[disabled],\n.bk-root .bk-btn-primary[disabled]:hover,\n.bk-root .bk-btn-primary[disabled]:focus,\n.bk-root .bk-btn-primary[disabled]:active,\n.bk-root .bk-btn-primary[disabled].bk-active {\n background-color: #506f89;\n border-color: #357ebd;\n}\n.bk-root .bk-btn-success {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.bk-root .bk-btn-success:hover {\n background-color: #4eb24e;\n border-color: #409240;\n}\n.bk-root .bk-btn-success.bk-active {\n background-color: #47a447;\n border-color: #398439;\n}\n.bk-root .bk-btn-success[disabled],\n.bk-root .bk-btn-success[disabled]:hover,\n.bk-root .bk-btn-success[disabled]:focus,\n.bk-root .bk-btn-success[disabled]:active,\n.bk-root .bk-btn-success[disabled].bk-active {\n background-color: #667b66;\n border-color: #4cae4c;\n}\n.bk-root .bk-btn-warning {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.bk-root .bk-btn-warning:hover {\n background-color: #eea43b;\n border-color: #e89014;\n}\n.bk-root .bk-btn-warning.bk-active {\n background-color: #ed9c28;\n border-color: #d58512;\n}\n.bk-root .bk-btn-warning[disabled],\n.bk-root .bk-btn-warning[disabled]:hover,\n.bk-root .bk-btn-warning[disabled]:focus,\n.bk-root .bk-btn-warning[disabled]:active,\n.bk-root .bk-btn-warning[disabled].bk-active {\n background-color: #c89143;\n border-color: #eea236;\n}\n.bk-root .bk-btn-danger {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.bk-root .bk-btn-danger:hover {\n background-color: #d5433e;\n border-color: #bd2d29;\n}\n.bk-root .bk-btn-danger.bk-active {\n background-color: #d2322d;\n border-color: #ac2925;\n}\n.bk-root .bk-btn-danger[disabled],\n.bk-root .bk-btn-danger[disabled]:hover,\n.bk-root .bk-btn-danger[disabled]:focus,\n.bk-root .bk-btn-danger[disabled]:active,\n.bk-root .bk-btn-danger[disabled].bk-active {\n background-color: #a55350;\n border-color: #d43f3a;\n}\n.bk-root .bk-btn-group {\n height: 100%;\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-btn-group > .bk-btn {\n flex-grow: 1;\n -webkit-flex-grow: 1;\n}\n.bk-root .bk-btn-group > .bk-btn + .bk-btn {\n margin-left: -1px;\n}\n.bk-root .bk-btn-group > .bk-btn:first-child:not(:last-child) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):last-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.bk-root .bk-btn-group .bk-dropdown-toggle {\n flex: 0 0 0;\n -webkit-flex: 0 0 0;\n padding: 6px 6px;\n}\n"),b.bk_btn="bk-btn",b.bk_btn_group="bk-btn-group",b.bk_btn_default="bk-btn-default",b.bk_btn_primary="bk-btn-primary",b.bk_btn_success="bk-btn-success",b.bk_btn_warning="bk-btn-warning",b.bk_btn_danger="bk-btn-danger",b.bk_btn_type=function(n){switch(n){case"default":return b.bk_btn_default;case"primary":return b.bk_btn_primary;case"success":return b.bk_btn_success;case"warning":return b.bk_btn_warning;case"danger":return b.bk_btn_danger}},b.bk_dropdown_toggle="bk-dropdown-toggle"},n”, ” function _(n,o,r){Object.defineProperty(r,"__esModule",{value:!0});const b=n(1);n(67),b.__importStar(n(66)).styles.append(".bk-root .bk-menu {\n position: absolute;\n left: 0;\n width: 100%;\n z-index: 100;\n cursor: pointer;\n font-size: 12px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n}\n.bk-root .bk-menu.bk-above {\n bottom: 100%;\n}\n.bk-root .bk-menu.bk-below {\n top: 100%;\n}\n.bk-root .bk-menu > .bk-divider {\n height: 1px;\n margin: 7.5px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.bk-root .bk-menu > :not(.bk-divider) {\n padding: 6px 12px;\n}\n.bk-root .bk-menu > :not(.bk-divider):hover,\n.bk-root .bk-menu > :not(.bk-divider).bk-active {\n background-color: #e6e6e6;\n}\n.bk-root .bk-caret {\n display: inline-block;\n vertical-align: middle;\n width: 0;\n height: 0;\n margin: 0 5px;\n}\n.bk-root .bk-caret.bk-down {\n border-top: 4px solid;\n}\n.bk-root .bk-caret.bk-up {\n border-bottom: 4px solid;\n}\n.bk-root .bk-caret.bk-down,\n.bk-root .bk-caret.bk-up {\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n}\n.bk-root .bk-caret.bk-left {\n border-right: 4px solid;\n}\n.bk-root .bk-caret.bk-right {\n border-left: 4px solid;\n}\n.bk-root .bk-caret.bk-left,\n.bk-root .bk-caret.bk-right {\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n}\n"),r.bk_menu="bk-menu",r.bk_caret="bk-caret",r.bk_divider="bk-divider"},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const o=e(245);class _ extends o.ColumnView{}i.WidgetBoxView=_,_.__name__="WidgetBoxView";class n extends o.Column{constructor(e){super(e)}static init_WidgetBox(){this.prototype.default_view=_}}i.WidgetBox=n,n.__name__="WidgetBox",n.init_WidgetBox()},n”, ” function _(r,a,o){Object.defineProperty(o,"__esModule",{value:!0});var e=r(256);o.CategoricalColorMapper=e.CategoricalColorMapper;var p=r(258);o.CategoricalMarkerMapper=p.CategoricalMarkerMapper;var l=r(259);o.CategoricalPatternMapper=l.CategoricalPatternMapper;var C=r(115);o.ContinuousColorMapper=C.ContinuousColorMapper;var M=r(116);o.ColorMapper=M.ColorMapper;var t=r(114);o.LinearColorMapper=t.LinearColorMapper;var i=r(260);o.LogColorMapper=i.LogColorMapper},n”, ” function _(r,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=r(1),a=r(257),c=r(116),i=o.__importStar(r(19));class s extends c.ColorMapper{constructor(r){super(r)}static init_CategoricalColorMapper(){this.define({factors:[i.Array],start:[i.Number,0],end:[i.Number]})}_v_compute(r,t,e,{nan_color:o}){a.cat_v_compute(r,this.factors,e,t,this.start,this.end,o)}}e.CategoricalColorMapper=s,s.__name__="CategoricalColorMapper",s.init_CategoricalColorMapper()},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const l=e(12),i=e(8);function u(e,n){if(e.length!=n.length)return!1;for(let t=0,l=e.length;t<l;t++)if(e[t]!==n[t])return!1;return!0}t._cat_equals=u,t.cat_v_compute=function(e,n,t,c,f,o,r){for(let _=0,g=e.length;_<g;_++){let g,s,d=e[_];i.isString(d)?g=l.index_of(n,d):(null!=f?d=null!=o?d.slice(f,o):d.slice(f):null!=o&&(d=d.slice(0,o)),g=1==d.length?l.index_of(n,d[0]):l.find_index(n,e=>u(e,d))),s=g<0||g>=t.length?r:t[g],c[_]=s}}},n”, ” function _(r,e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=r(1),s=r(257),i=r(117),c=t.__importStar(r(19));class n extends i.Mapper{constructor(r){super(r)}static init_CategoricalMarkerMapper(){this.define({factors:[c.Array],markers:[c.Array],start:[c.Number,0],end:[c.Number],default_value:[c.MarkerType,"circle"]})}v_compute(r){const e=new Array(r.length);return s.cat_v_compute(r,this.factors,this.markers,e,this.start,this.end,this.default_value),e}}a.CategoricalMarkerMapper=n,n.__name__="CategoricalMarkerMapper",n.init_CategoricalMarkerMapper()},n”, ” function _(t,e,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t(1),n=t(257),s=t(117),i=r.__importStar(t(19));class c extends s.Mapper{constructor(t){super(t)}static init_CategoricalPatternMapper(){this.define({factors:[i.Array],patterns:[i.Array],start:[i.Number,0],end:[i.Number],default_value:[i.HatchPatternType," "]})}v_compute(t){const e=new Array(t.length);return n.cat_v_compute(t,this.factors,this.patterns,e,this.start,this.end,this.default_value),e}}a.CategoricalPatternMapper=c,c.__name__="CategoricalPatternMapper",c.init_CategoricalPatternMapper()},n”, ” function _(o,l,n){Object.defineProperty(n,"__esModule",{value:!0});const t=o(115),e=o(12);class i extends t.ContinuousColorMapper{constructor(o){super(o)}_v_compute(o,l,n,t){const{nan_color:i,low_color:h,high_color:c}=t,r=n.length,s=null!=this.low?this.low:e.min(o),u=null!=this.high?this.high:e.max(o),a=r/(Math.log(u)-Math.log(s)),g=n.length-1;for(let t=0,e=o.length;t<e;t++){const e=o[t];if(isNaN(e)){l[t]=i;continue}if(e>u){l[t]=null!=c?c:n[g];continue}if(e==u){l[t]=n[g];continue}if(e<s){l[t]=null!=h?h:n[0];continue}const r=Math.log(e)-Math.log(s);let _=Math.floor(r*a);_>g&&(_=g),l[t]=n[_]}}}n.LogColorMapper=i,i.__name__="LogColorMapper"},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0}),e(1).__exportStar(e(262),t);var a=e(263);t.Marker=a.Marker;var _=e(264);t.Scatter=_.Scatter},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e(263),s=Math.sqrt(3);function r(e,t){e.moveTo(-t,t),e.lineTo(t,-t),e.moveTo(-t,-t),e.lineTo(t,t)}function n(e,t){e.moveTo(0,t),e.lineTo(0,-t),e.moveTo(-t,0),e.lineTo(t,0)}function c(e,t){e.moveTo(0,t),e.lineTo(t/1.5,0),e.lineTo(0,-t),e.lineTo(-t/1.5,0),e.closePath()}function l(e,t){const o=t*s,i=o/3;e.moveTo(-t,i),e.lineTo(t,i),e.lineTo(0,i-o),e.closePath()}function a(e,t,o,i,s){const c=.65*o;n(e,o),r(e,c),i.doit&&(i.set_vectorize(e,t),e.stroke())}function d(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function _(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),r(e,o),e.stroke())}function v(e,t,o,i,s){n(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function f(e,t,o,i,s){c(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function u(e,t,o,i,s){c(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function T(e,t,o,i,r){!function(e,t){const o=t/2,i=s*o;e.moveTo(t,0),e.lineTo(o,-i),e.lineTo(-o,-i),e.lineTo(-t,0),e.lineTo(-o,i),e.lineTo(o,i),e.closePath()}(e,o),r.doit&&(r.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function z(e,t,o,i,s){e.rotate(Math.PI),l(e,o),e.rotate(-Math.PI),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function k(e,t,o,i,s){const r=2*o;e.rect(-o,-o,r,r),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function m(e,t,o,i,s){const r=2*o;e.rect(-o,-o,r,r),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function C(e,t,o,i,s){const n=2*o;e.rect(-o,-o,n,n),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),r(e,o),e.stroke())}function h(e,t,o,i,s){l(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function q(e,t,o,i,s){!function(e,t){e.moveTo(-t,0),e.lineTo(t,0)}(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function M(e,t,o,i,s){r(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function P(e,t){var o;const s=class extends i.MarkerView{static initClass(){this.prototype._render_one=t}};s.initClass();const r=((o=class extends i.Marker{static initClass(){this.prototype.default_view=s}}).__name__=e,o);return r.initClass(),r}o.Asterisk=P("Asterisk",a),o.CircleCross=P("CircleCross",d),o.CircleX=P("CircleX",_),o.Cross=P("Cross",v),o.Dash=P("Dash",q),o.Diamond=P("Diamond",f),o.DiamondCross=P("DiamondCross",u),o.Hex=P("Hex",T),o.InvertedTriangle=P("InvertedTriangle",z),o.Square=P("Square",k),o.SquareCross=P("SquareCross",m),o.SquareX=P("SquareX",C),o.Triangle=P("Triangle",h),o.X=P("X",M),o.marker_funcs={asterisk:a,circle:function(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())},circle_cross:d,circle_x:_,cross:v,diamond:f,diamond_cross:u,hex:T,inverted_triangle:z,square:k,square_cross:m,square_x:C,triangle:h,dash:q,x:M}},n”, ” function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(1),r=e(81),n=i.__importStar(e(87)),a=i.__importStar(e(19)),_=e(9);class h extends r.XYGlyphView{_render(e,s,{sx:t,sy:i,_size:r,_angle:n}){for(const a of s){if(isNaN(t[a]+i[a]+r[a]+n[a]))continue;const s=r[a]/2;e.beginPath(),e.translate(t[a],i[a]),n[a]&&e.rotate(n[a]),this._render_one(e,a,s,this.visuals.line,this.visuals.fill),n[a]&&e.rotate(-n[a]),e.translate(-t[a],-i[a])}}_mask_data(){const e=this.renderer.plot_view.frame.bbox.h_range,s=e.start-this.max_size,t=e.end+this.max_size,[i,r]=this.renderer.xscale.r_invert(s,t),n=this.renderer.plot_view.frame.bbox.v_range,a=n.start-this.max_size,_=n.end+this.max_size,[h,c]=this.renderer.yscale.r_invert(a,_);return this.index.indices({x0:i,x1:r,y0:h,y1:c})}_hit_point(e){const{sx:s,sy:t}=e,i=s-this.max_size,r=s+this.max_size,[a,_]=this.renderer.xscale.r_invert(i,r),h=t-this.max_size,c=t+this.max_size,[o,x]=this.renderer.yscale.r_invert(h,c),l=this.index.indices({x0:a,x1:_,y0:o,y1:x}),y=[];for(const e of l){const i=this._size[e]/2,r=Math.abs(this.sx[e]-s)+Math.abs(this.sy[e]-t);Math.abs(this.sx[e]-s)<=i&&Math.abs(this.sy[e]-t)<=i&&y.push([e,r])}return n.create_hit_test_result_from_hits(y)}_hit_span(e){const{sx:s,sy:t}=e,i=this.bounds(),r=this.max_size/2,a=n.create_empty_hit_test_result();let _,h,c,o;if("h"==e.direction){c=i.y0,o=i.y1;const e=s-r,t=s+r;[_,h]=this.renderer.xscale.r_invert(e,t)}else{_=i.x0,h=i.x1;const e=t-r,s=t+r;[c,o]=this.renderer.yscale.r_invert(e,s)}const x=this.index.indices({x0:_,x1:h,y0:c,y1:o});return a.indices=x,a}_hit_rect(e){const{sx0:s,sx1:t,sy0:i,sy1:r}=e,[a,_]=this.renderer.xscale.r_invert(s,t),[h,c]=this.renderer.yscale.r_invert(i,r),o=n.create_empty_hit_test_result();return o.indices=this.index.indices({x0:a,x1:_,y0:h,y1:c}),o}_hit_poly(e){const{sx:s,sy:t}=e,i=_.range(0,this.sx.length),r=[];for(let e=0,a=i.length;e<a;e++){const a=i[e];n.point_in_poly(this.sx[e],this.sy[e],s,t)&&r.push(a)}const a=n.create_empty_hit_test_result();return a.indices=r,a}draw_legend_for_index(e,{x0:s,x1:t,y0:i,y1:r},n){const a=n+1,_=new Array(a);_[n]=(s+t)/2;const h=new Array(a);h[n]=(i+r)/2;const c=new Array(a);c[n]=.4*Math.min(Math.abs(t-s),Math.abs(r-i));const o=new Array(a);o[n]=0,this._render(e,[n],{sx:_,sy:h,_size:c,_angle:o})}}t.MarkerView=h,h.__name__="MarkerView";class c extends r.XYGlyph{constructor(e){super(e)}static init_Marker(){this.mixins(["line","fill"]),this.define({size:[a.DistanceSpec,{units:"screen",value:4}],angle:[a.AngleSpec,0]})}}t.Marker=c,c.__name__="Marker",c.init_Marker()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=e(1),s=e(263),n=e(262),i=a.__importStar(e(19));class _ extends s.MarkerView{_render(e,t,{sx:r,sy:a,_size:s,_angle:i,_marker:_}){for(const c of t){if(isNaN(r[c]+a[c]+s[c]+i[c])||null==_[c])continue;const t=s[c]/2;e.beginPath(),e.translate(r[c],a[c]),i[c]&&e.rotate(i[c]),n.marker_funcs[_[c]](e,c,t,this.visuals.line,this.visuals.fill),i[c]&&e.rotate(-i[c]),e.translate(-r[c],-a[c])}}draw_legend_for_index(e,{x0:t,x1:r,y0:a,y1:s},n){const i=n+1,_=new Array(i);_[n]=(t+r)/2;const c=new Array(i);c[n]=(a+s)/2;const o=new Array(i);o[n]=.4*Math.min(Math.abs(r-t),Math.abs(s-a));const l=new Array(i);l[n]=0;const u=new Array(i);u[n]=this._marker[n],this._render(e,[n],{sx:_,sy:c,_size:o,_angle:l,_marker:u})}}r.ScatterView=_,_.__name__="ScatterView";class c extends s.Marker{constructor(e){super(e)}static init_Scatter(){this.prototype.default_view=_,this.define({marker:[i.MarkerSpec,{value:"circle"}]})}}r.Scatter=c,c.__name__="Scatter",c.init_Scatter()},n”, ” function _(a,o,p){Object.defineProperty(p,"__esModule",{value:!0});var t=a(266);p.MapOptions=t.MapOptions;var e=a(266);p.GMapOptions=e.GMapOptions;var n=a(266);p.GMapPlot=n.GMapPlot;var M=a(267);p.Plot=M.Plot},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1),n=t(70),a=t(267),s=o.__importStar(t(19)),p=t(69),r=t(130),_=t(287);i.GMapPlotView=_.GMapPlotView;class l extends p.Model{constructor(t){super(t)}static init_MapOptions(){this.define({lat:[s.Number],lng:[s.Number],zoom:[s.Number,12]})}}i.MapOptions=l,l.__name__="MapOptions",l.init_MapOptions();class c extends l{constructor(t){super(t)}static init_GMapOptions(){this.define({map_type:[s.String,"roadmap"],scale_control:[s.Boolean,!1],styles:[s.String],tilt:[s.Int,45]})}}i.GMapOptions=c,c.__name__="GMapOptions",c.init_GMapOptions();class u extends a.Plot{constructor(t){super(t)}static init_GMapPlot(){this.prototype.default_view=_.GMapPlotView,this.define({map_options:[s.Instance],api_key:[s.String]}),this.override({x_range:()=>new r.Range1d,y_range:()=>new r.Range1d})}initialize(){super.initialize(),this.use_map=!0,this.api_key||n.logger.error("api_key is required. See https://developers.google.com/maps/documentation/javascript/get-api-key for more information on how to obtain your own.")}}i.GMapPlot=u,u.__name__="GMapPlot",u.init_GMapPlot()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(1).__importStar(e(19)),o=e(14),i=e(9),a=e(24),l=e(8),s=e(244),_=e(141),h=e(119),c=e(268),u=e(73),d=e(78),b=e(185),g=e(280);r.PlotView=g.PlotView;class m extends s.LayoutDOM{constructor(e){super(e)}static init_Plot(){this.prototype.default_view=g.PlotView,this.mixins(["line:outline_","fill:background_","fill:border_"]),this.define({toolbar:[n.Instance,()=>new c.Toolbar],toolbar_location:[n.Location,"right"],toolbar_sticky:[n.Boolean,!0],plot_width:[n.Number,600],plot_height:[n.Number,600],frame_width:[n.Number,null],frame_height:[n.Number,null],title:[n.Any,()=>new _.Title({text:""})],title_location:[n.Location,"above"],above:[n.Array,[]],below:[n.Array,[]],left:[n.Array,[]],right:[n.Array,[]],center:[n.Array,[]],renderers:[n.Array,[]],x_range:[n.Instance,()=>new b.DataRange1d],extra_x_ranges:[n.Any,{}],y_range:[n.Instance,()=>new b.DataRange1d],extra_y_ranges:[n.Any,{}],x_scale:[n.Instance,()=>new h.LinearScale],y_scale:[n.Instance,()=>new h.LinearScale],lod_factor:[n.Number,10],lod_interval:[n.Number,300],lod_threshold:[n.Number,2e3],lod_timeout:[n.Number,500],hidpi:[n.Boolean,!0],output_backend:[n.OutputBackend,"canvas"],min_border:[n.Number,5],min_border_top:[n.Number,null],min_border_left:[n.Number,null],min_border_bottom:[n.Number,null],min_border_right:[n.Number,null],inner_width:[n.Number],inner_height:[n.Number],outer_width:[n.Number],outer_height:[n.Number],match_aspect:[n.Boolean,!1],aspect_scale:[n.Number,1],reset_policy:[n.ResetPolicy,"standard"]}),this.override({outline_line_color:"#e5e5e5",border_fill_color:"#ffffff",background_fill_color:"#ffffff"})}get width(){const e=this.getv("width");return null!=e?e:this.plot_width}get height(){const e=this.getv("height");return null!=e?e:this.plot_height}_doc_attached(){super._doc_attached(),this._tell_document_about_change("inner_height",null,this.inner_height,{}),this._tell_document_about_change("inner_width",null,this.inner_width,{})}initialize(){super.initialize(),this.reset=new o.Signal0(this,"reset");for(const e of a.values(this.extra_x_ranges).concat(this.x_range)){let t=e.plots;l.isArray(t)&&(t=t.concat(this),e.setv({plots:t},{silent:!0}))}for(const e of a.values(this.extra_y_ranges).concat(this.y_range)){let t=e.plots;l.isArray(t)&&(t=t.concat(this),e.setv({plots:t},{silent:!0}))}}add_layout(e,t="center"){this.setv({[t]:[…this.getv(t),e]})}remove_layout(e){const t=t=>{i.remove_by(t,t=>t==e)};t(this.left),t(this.right),t(this.above),t(this.below),t(this.center)}add_renderers(…e){this.renderers=this.renderers.concat(e)}add_glyph(e,t=new u.ColumnDataSource,r={}){const n=Object.assign(Object.assign({},r),{data_source:t,glyph:e}),o=new d.GlyphRenderer(n);return this.add_renderers(o),o}add_tools(…e){this.toolbar.tools=this.toolbar.tools.concat(e)}get panels(){return this.side_panels.concat(this.center)}get side_panels(){const{above:e,below:t,left:r,right:n}=this;return i.concat([e,t,r,n])}}r.Plot=m,m.__name__="Plot",m.init_Plot()},n”, ” function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),c=t(8),o=t(9),n=t(269),a=t(274),l=t=>{switch(t){case"tap":return"active_tap";case"pan":return"active_drag";case"pinch":case"scroll":return"active_scroll";case"multi":return"active_multi"}return null},r=t=>"tap"==t||"pan"==t;class _ extends a.ToolbarBase{constructor(t){super(t)}static init_Toolbar(){this.prototype.default_view=a.ToolbarBaseView,this.define({active_drag:[i.Any,"auto"],active_inspect:[i.Any,"auto"],active_scroll:[i.Any,"auto"],active_tap:[i.Any,"auto"],active_multi:[i.Any,null]})}connect_signals(){super.connect_signals(),this.connect(this.properties.tools.change,()=>this._init_tools())}_init_tools(){if(super._init_tools(),"auto"==this.active_inspect);else if(this.active_inspect instanceof n.InspectTool){let t=!1;for(const s of this.inspectors)s!=this.active_inspect?s.active=!1:t=!0;t||(this.active_inspect=null)}else if(c.isArray(this.active_inspect)){const t=o.intersection(this.active_inspect,this.inspectors);t.length!=this.active_inspect.length&&(this.active_inspect=t);for(const t of this.inspectors)o.includes(this.active_inspect,t)||(t.active=!1)}else if(null==this.active_inspect)for(const t of this.inspectors)t.active=!1;const t=t=>{t.active?this._active_change(t):t.active=!0};for(const t in this.gestures){const s=this.gestures[t];s.tools=o.sort_by(s.tools,t=>t.default_order);for(const t of s.tools)this.connect(t.properties.active.change,this._active_change.bind(this,t))}for(const s in this.gestures){const e=l(s);if(e){const i=this[e];if("auto"==i){const e=this.gestures[s];0!=e.tools.length&&r(s)&&t(e.tools[0])}else null!=i&&(o.includes(this.tools,i)?t(i):this[e]=null)}}}}e.Toolbar=_,_.__name__="Toolbar",_.init_Toolbar()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(1),s=e(270),i=e(273),_=n.__importStar(e(19));class c extends s.ButtonToolView{}o.InspectToolView=c,c.__name__="InspectToolView";class l extends s.ButtonTool{constructor(e){super(e),this.event_type="move"}static init_InspectTool(){this.prototype.button_view=i.OnOffButtonView,this.define({toggleable:[_.Boolean,!0]}),this.override({active:!0})}}o.InspectTool=l,l.__name__="InspectTool",l.init_InspectTool()},n”, ” function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t(1),s=t(64),n=t(271),l=t(66),c=i.__importStar(t(19)),a=t(26),r=t(8),_=t(272);class u extends s.DOMView{initialize(){super.initialize(),this.connect(this.model.change,()=>this.render()),this.el.addEventListener("click",()=>this._clicked()),this.render()}css_classes(){return super.css_classes().concat(_.bk_toolbar_button)}render(){l.empty(this.el);const t=this.model.computed_icon;r.isString(t)&&(a.startsWith(t,"data:image")?this.el.style.backgroundImage="url(’"+t+"’)":this.el.classList.add(t)),this.el.title=this.model.tooltip}}o.ButtonToolButtonView=u,u.__name__="ButtonToolButtonView";class d extends n.ToolView{}o.ButtonToolView=d,d.__name__="ButtonToolView";class h extends n.Tool{constructor(t){super(t)}static init_ButtonTool(){this.internal({disabled:[c.Boolean,!1]})}get tooltip(){return this.tool_name}get computed_icon(){return this.icon}}o.ButtonTool=h,h.__name__="ButtonTool",h.init_ButtonTool()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1).__importStar(t(19)),o=t(65),s=t(9),a=t(69);class r extends o.View{get plot_view(){return this.parent}get plot_model(){return this.parent.model}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>{this.model.active?this.activate():this.deactivate()})}activate(){}deactivate(){}}i.ToolView=r,r.__name__="ToolView";class _ extends a.Model{constructor(t){super(t)}static init_Tool(){this.prototype._known_aliases=new Map,this.internal({active:[n.Boolean,!1]})}get synthetic_renderers(){return[]}_get_dim_tooltip(t,e){switch(e){case"width":return`${t} (x-axis)`;case"height":return`${t} (y-axis)`;case"both":return t}}_get_dim_limits([t,e],[i,n],o,a){const r=o.bbox.h_range;let _;"width"==a||"both"==a?(_=[s.min([t,i]),s.max([t,i])],_=[s.max([_[0],r.start]),s.min([_[1],r.end])]):_=[r.start,r.end];const l=o.bbox.v_range;let c;return"height"==a||"both"==a?(c=[s.min([e,n]),s.max([e,n])],c=[s.max([c[0],l.start]),s.min([c[1],l.end])]):c=[l.start,l.end],[_,c]}static register_alias(t,e){this.prototype._known_aliases.set(t,e)}static from_string(t){const e=this.prototype._known_aliases.get(t);if(null!=e)return e();{const e=[…this.prototype._known_aliases.keys()];throw new Error(unexpected tool name ‘${t}’, possible tools are ${e.join(", ")})}}}i.Tool=_,_.__name__="Tool",_.init_Tool()},n”, ” function _(o,b,t){Object.defineProperty(t,"__esModule",{value:!0});const n=o(1);o(67),n.__importStar(o(66)).styles.append(‘.bk-root .bk-toolbar-hidden {\n visibility: hidden;\n opacity: 0;\n transition: visibility 0.3s linear, opacity 0.3s linear;\n}\n.bk-root .bk-toolbar,\n.bk-root .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-toolbar .bk-logo {\n flex-shrink: 0;\n -webkit-flex-shrink: 0;\n}\n.bk-root .bk-toolbar.bk-above,\n.bk-root .bk-toolbar.bk-below {\n flex-direction: row;\n -webkit-flex-direction: row;\n justify-content: flex-end;\n -webkit-justify-content: flex-end;\n}\n.bk-root .bk-toolbar.bk-above .bk-button-bar,\n.bk-root .bk-toolbar.bk-below .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-toolbar.bk-above .bk-logo,\n.bk-root .bk-toolbar.bk-below .bk-logo {\n order: 1;\n -webkit-order: 1;\n margin-left: 5px;\n margin-right: 0px;\n}\n.bk-root .bk-toolbar.bk-left,\n.bk-root .bk-toolbar.bk-right {\n flex-direction: column;\n -webkit-flex-direction: column;\n justify-content: flex-start;\n -webkit-justify-content: flex-start;\n}\n.bk-root .bk-toolbar.bk-left .bk-button-bar,\n.bk-root .bk-toolbar.bk-right .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-toolbar.bk-left .bk-logo,\n.bk-root .bk-toolbar.bk-right .bk-logo {\n order: 0;\n -webkit-order: 0;\n margin-bottom: 5px;\n margin-top: 0px;\n}\n.bk-root .bk-toolbar-button {\n width: 30px;\n height: 30px;\n background-size: 60%;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center;\n}\n.bk-root .bk-toolbar-button:hover {\n background-color: #f9f9f9;\n}\n.bk-root .bk-toolbar-button:focus {\n outline: none;\n}\n.bk-root .bk-toolbar-button::-moz-focus-inner {\n border: 0;\n}\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button {\n border-bottom: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button.bk-active {\n border-bottom-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button {\n border-top: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button.bk-active {\n border-top-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button {\n border-left: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button.bk-active {\n border-left-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button {\n border-right: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button.bk-active {\n border-right-color: #26aae1;\n}\n.bk-root .bk-button-bar + .bk-button-bar:before {\n content: " ";\n display: inline-block;\n background-color: lightgray;\n}\n.bk-root .bk-toolbar.bk-above .bk-button-bar + .bk-button-bar:before,\n.bk-root .bk-toolbar.bk-below .bk-button-bar + .bk-button-bar:before {\n height: 10px;\n width: 1px;\n}\n.bk-root .bk-toolbar.bk-left .bk-button-bar + .bk-button-bar:before,\n.bk-root .bk-toolbar.bk-right .bk-button-bar + .bk-button-bar:before {\n height: 1px;\n width: 10px;\n}\n’),t.bk_toolbar="bk-toolbar",t.bk_toolbar_hidden="bk-toolbar-hidden",t.bk_toolbar_button="bk-toolbar-button",t.bk_button_bar="bk-button-bar",t.bk_toolbar_button_custom_action="bk-toolbar-button-custom-action"},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(270),n=e(145);class o extends s.ButtonToolButtonView{render(){super.render(),this.model.active?this.el.classList.add(n.bk_active):this.el.classList.remove(n.bk_active)}_clicked(){const e=this.model.active;this.model.active=!e}}i.OnOffButtonView=o,o.__name__="OnOffButtonView"},n”, ” function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),s=t(70),l=t(66),n=t(96),a=i.__importStar(t(19)),r=t(64),_=t(9),c=t(15),h=t(8),u=t(69),d=t(275),v=t(276),b=t(277),p=t(269),g=t(272),m=t(279),f=t(145);class w extends u.Model{constructor(t){super(t)}static init_ToolbarViewModel(){this.define({_visible:[a.Any,null],autohide:[a.Boolean,!1]})}get visible(){return!this.autohide||null!=this._visible&&this._visible}}e.ToolbarViewModel=w,w.__name__="ToolbarViewModel",w.init_ToolbarViewModel();class y extends r.DOMView{initialize(){super.initialize(),this._tool_button_views={},this._toolbar_view_model=new w({autohide:this.model.autohide})}async lazy_initialize(){await this._build_tool_button_views()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.tools.change,async()=>{await this._build_tool_button_views(),this.render()}),this.connect(this.model.properties.autohide.change,()=>{this._toolbar_view_model.autohide=this.model.autohide,this._on_visible_change()}),this.connect(this._toolbar_view_model.properties._visible.change,()=>this._on_visible_change())}remove(){n.remove_views(this._tool_button_views),super.remove()}async _build_tool_button_views(){const t=null!=this.model._proxied_tools?this.model._proxied_tools:this.model.tools;await n.build_views(this._tool_button_views,t,{parent:this},t=>t.button_view)}set_visibility(t){t!=this._toolbar_view_model._visible&&(this._toolbar_view_model._visible=t)}_on_visible_change(){const t=this._toolbar_view_model.visible,o=g.bk_toolbar_hidden;this.el.classList.contains(o)&&t?this.el.classList.remove(o):t||this.el.classList.add(o)}render(){if(l.empty(this.el),this.el.classList.add(g.bk_toolbar),this.el.classList.add(f.bk_side(this.model.toolbar_location)),this._toolbar_view_model.autohide=this.model.autohide,this._on_visible_change(),null!=this.model.logo){const t="grey"===this.model.logo?m.bk_grey:null,o=l.a({href:"https://bokeh.org/",target:"_blank",class:[m.bk_logo,m.bk_logo_small,t]});this.el.appendChild(o)}const t=[],o=t=>this._tool_button_views[t.id].el,{gestures:e}=this.model;for(const i in e)t.push(e[i].tools.map(o));t.push(this.model.actions.map(o)),t.push(this.model.inspectors.filter(t=>t.toggleable).map(o));for(const o of t)if(0!==o.length){const t=l.div({class:g.bk_button_bar},o);this.el.appendChild(t)}}update_layout(){}update_position(){}after_layout(){this._has_finished=!0}}function T(){return{pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}}}e.ToolbarBaseView=y,y.__name__="ToolbarBaseView";class k extends u.Model{constructor(t){super(t)}static init_ToolbarBase(){this.prototype.default_view=y,this.define({tools:[a.Array,[]],logo:[a.Logo,"normal"],autohide:[a.Boolean,!1]}),this.internal({gestures:[a.Any,T],actions:[a.Array,[]],inspectors:[a.Array,[]],help:[a.Array,[]],toolbar_location:[a.Location,"right"]})}initialize(){super.initialize(),this._init_tools()}_init_tools(){const t=function(t,o){if(t.length!=o.length)return!0;const e=new c.Set(o.map(t=>t.id));return _.some(t,t=>!e.has(t.id))},o=this.tools.filter(t=>t instanceof p.InspectTool);t(this.inspectors,o)&&(this.inspectors=o);const e=this.tools.filter(t=>t instanceof b.HelpTool);t(this.help,e)&&(this.help=e);const i=this.tools.filter(t=>t instanceof v.ActionTool);t(this.actions,i)&&(this.actions=i);const l=(t,o)=>{t in this.gestures||s.logger.warn(Toolbar: unknown event type ‘${t}’ for tool: ${o.type} (${o.id}))},n={pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}};for(const t of this.tools)if(t instanceof d.GestureTool&&t.event_type)if(h.isString(t.event_type))n[t.event_type].tools.push(t),l(t.event_type,t);else{n.multi.tools.push(t);for(const o of t.event_type)l(o,t)}for(const o of Object.keys(n)){const e=this.gestures[o];t(e.tools,n[o].tools)&&(e.tools=n[o].tools),e.active&&_.every(e.tools,t=>t.id!=e.active.id)&&(e.active=null)}}get horizontal(){return"above"===this.toolbar_location||"below"===this.toolbar_location}get vertical(){return"left"===this.toolbar_location||"right"===this.toolbar_location}_active_change(t){const{event_type:o}=t;if(null==o)return;const e=h.isString(o)?[o]:o;for(const o of e)if(t.active){const e=this.gestures[o].active;null!=e&&t!=e&&(s.logger.debug(Toolbar: deactivating tool: ${e.type} (${e.id}) for event type ‘${o}’),e.active=!1),this.gestures[o].active=t,s.logger.debug(Toolbar: activating tool: ${t.type} (${t.id}) for event type ‘${o}’)}else this.gestures[o].active=null}}e.ToolbarBase=k,k.__name__="ToolbarBase",k.init_ToolbarBase()},n”, ” function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(270),n=e(273);class u extends s.ButtonToolView{}t.GestureToolView=u,u.__name__="GestureToolView";class _ extends s.ButtonTool{constructor(e){super(e),this.button_view=n.OnOffButtonView}}t.GestureTool=_,_.__name__="GestureTool"},n”, ” function _(o,t,n){Object.defineProperty(n,"__esModule",{value:!0});const e=o(270),i=o(14);class s extends e.ButtonToolButtonView{_clicked(){this.model.do.emit()}}n.ActionToolButtonView=s,s.__name__="ActionToolButtonView";class c extends e.ButtonToolView{connect_signals(){super.connect_signals(),this.connect(this.model.do,()=>this.doit())}}n.ActionToolView=c,c.__name__="ActionToolView";class l extends e.ButtonTool{constructor(o){super(o),this.button_view=s,this.do=new i.Signal0(this,"do")}}n.ActionTool=l,l.__name__="ActionTool"},n”, ” function _(o,e,t){Object.defineProperty(t,"__esModule",{value:!0});const i=o(1),l=o(276),s=i.__importStar(o(19)),n=o(278);class _ extends l.ActionToolView{doit(){window.open(this.model.redirect)}}t.HelpToolView=_,_.__name__="HelpToolView";class r extends l.ActionTool{constructor(o){super(o),this.tool_name="Help",this.icon=n.bk_tool_icon_help}static init_HelpTool(){this.prototype.default_view=_,this.define({help_tooltip:[s.String,"Click the question mark to learn more about Bokeh plot tools."],redirect:[s.String,"https://docs.bokeh.org/en/latest/docs/user_guide/tools.html"]}),this.register_alias("help",()=>new r)}get tooltip(){return this.help_tooltip}}t.HelpTool=r,r.__name__="HelpTool",r.init_HelpTool()},n”, ” function _(A,g,o){Object.defineProperty(o,"__esModule",{value:!0});const C=A(1);A(67),C.__importStar(A(66)).styles.append(‘.bk-root .bk-tool-icon-box-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg0kduFrowAAAIdJREFUWMPtVtEKwCAI9KL//4e9DPZ3+wP3KgOjNZouFYI4C8q7s7DtB1lGIeMoRMRinCLXg/ML3EcFqpjjloOyZxRntxpwQ8HsgHYARKFAtSFrCg3TCdMFCE1BuuALEXJLjC4qENsFVXCESZw38/kWLOkC/K4PcOc/Hj03WkoDT3EaWW9egQul6CUbq90JTwAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-box-zoom {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg82t254aQAAAkBJREFUWMPN11+E1FEUB/DPTFn2qaeIpcSwr5NlUyJiKWVXWUqvlUh/iE3RY9mUekkPPURtLKNRrFJEeuphGfUUaVliiX1aVjGs6aG7+XX9ZnZ+d2fTl2vmnHvPPfeee/79Sk+may2/UQq/q7Qu+bAJoxjHIKqB/wlfUMcMVqI9bLZ+DGIKwzlzQ2GcxCx2xwvKOUKlaHTiX8bHNspjDONHkOmJBW5jIof/FvPh/06MZOb6cRc7cGn1AKUE5cdzlM/gAr5F/O24H3xkFRfxAbVygvK+cIsspjGWo1zgjeFpxL+BvnLw7laBA4xjIFJwrgu52DoVjKdY4HBEX8dSF3JLYe1fe6UcYCii3xWQjdfuSTnAtoheKCC7GNED5Zx4L4qt61jbTLHA94geKSC7P7ZeShQ0Inoi1IJuEOeORooFXkV0FZNdZs5qvFfKAeqYy7nZ6yg//HG0MBfffh71lFrQDCW2EvEP4mt4okZUDftz9rmGZkotmMxJRtlisy+MTniAWrty3AlXw0hFM2TD89l+oNsoOJXjbIs4EpqNtTCLXbiZ0g+M4mFObj8U3vsNjoZCVcmk60ZwthpepLZkB/AsivWfOJZxtpUQHfWib7KWDwzjeegBZJSdKFiE2qJTFFTwElsi/unQ/awXrU4WGMD7nOJxBY/1EO2iYConq93CHT1GOwucjdqnRyFz+VcHmMNefMY9nNkA3SWUOoXhQviSWQ4huLIRFlirFixnQq/XaKXUgg2xQNGv4V7x/RcW+AXPB3h7H1PaiQAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-zoom-in {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsUBmL8iQAAA2JJREFUWMO9l12IlFUYx3//MzPrLpSjkm5oN4FFIWVEl66IQlFYwtLOzozsjHdGRSCRF0sfBEXRVV0FQuQiLm5CZNBFgRRaRLVFhbJ2EdiN5gbK7toObTPn6eYdPTvNzPvOBz5Xh/ec5/n/n89zXtEHmZqeSXSuXBz/3zfdKvBWJHQrwZuRcP0El+QkbQXeBX6WZEgm6TtJk5lM5o4Lc+cV6qpf4Ga20Tm338zeATItVK9Ker6yvPzp4NDQ3+XieGsCU9MzTYumGbhz7m4ze9/MHgvBgItACrgfGAj2jgAvAYs3wlEujjc13kii8YyZrXXOfWhmo9GnFUlvOOemarVapVqtkslksmb2KjARqL62ecuWN9NxbRInzrldAXhV0uFSIfdew7G/gNLU9MwS8CwSmE3Oz88fcXG5blfpqVRq0Ix8VIAAX0XgrVL7HDCHGcCaWrV60LUBN8Dae58aQIxEqcA592I9M610JL0cpG/U9TIHJNKY3RV5z0R+7Nd4HZ0P1g/2RMBuegLAsRMnb4vT8d5vqKfMzOgtAlADrkmqGywmiMBTwfr3dC9j1Xv/r6Tvg/5/5ejxE6cO7M9faVbQZrYNOFSPmqQvVo9FKexvi5uWX58943aM7DwAfBDY+FbSCxP5sdkGx55GeguzrUEXPaSo2pFkAbiSZQCAzZJOmdkjwd6SpB/M7KykQTPbA2wDhoIzRzcNDx9MJwGNIXdJ0mEzmwbujL7dbma7gd03A7lKfnTOvf74nl0r6bonTUbujRSUCrm2d4L3/kvn3JPe+8+BDW2i9o+kT7z3kxP5sYsA6W47oE64TsR7P9tQL4vA2mh9WdIscKxUyJ0M7aR7acOGzikD65EQLEjaa2ZXzMwDFeB6qZBbbLTRE4EGeSaozNOZgYFf8qP7lmIvs354n0qlHpB0T7B9Ogl4IgJJrmjv/SiQjbrkD+BMUkfSbYATPdckrTOzkciWAXOlQu5cYgLdPEIapud9wMOR9zVJH3ViKx333mtHMJvNuoWFhZ3A+ojMcja77njXBEKwJJfTcqUyCIQ34Mf7nnh0paMnXacFuGoC1mr3AtuDfLzd8Zuyl+rfuGn4HLAD+Az4qZQf+61TAj0Noj8vX6oC35SL43u7teG6rf5+iXppwW7/JUL5D03qaFRvvUe+AAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-zoom-out {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsHgty9VwAAA0FJREFUWMO9l09oXFUUxn/fmXlpItppi22k7UJBRSlVkCytSAuKUloIdjKT0El3FXVXdVFKRVAQV7qQohsNwdA0UFvBhYtqUVyIVlRaogtFQVq7qSTVjA3z3nHzBq/jvPmTN/Ss7rv3nvN99/y794kByMzcfE/7picn/jenmwWeRUI3E7wdCRskuCSTdDfwBvCtJEdySV9KOhpF0e0/LF5SqKtBgbv7ZjObcvfXgShD9Zqk5+orKx8Oj4z8NT05kU1gZm6+bdK0Azezu9z9hLs/HoIBvwAF4H5gKFh7B3gBWFY3460kWve4+3oze9fdx9OpVUmvmNlMHMf1RqNBFEUldz8OHAxUX9q6bduryut+Sfvc/Wz62ZD0fK1afjND9y3gGSRwv1GMojstTxUUCoVhdyopEYDzKXjWwZ4FFnEHWBc3Goet00m7lZlZYQixKw0FZnakGZksHUnHgvCN5/KARBH37enpOVg58H13HV0Kxg/kIuD/ngSA2ZMLt3bTSZJkUzNk7k4+D0AM/CGpaXCyBw/sC8Y/qZd2GpZiuL9YLN4Sx/HpoP5/c/exQ1OVq+1yyt13SLoArEsJnMjlgfOffvK3u58Kprab2QezJxfG2iTzUzI70wRPG9jbmpmb95SNB9mpzp7/j2yVdNbdx4K565K+cvfPJQ27+x5gBzAS7Hlvy+jo4WIvoC3kWpcvS3rR3eeAO9K529x9N7C7zX6AC2b28hN7Hl1Vt44niVq13LUjmtlYkiQfA5s6eO+GpDNJkhw9NFX5ueNt2ARodyF1IHIN2JiOl4H16fiKpK+B2Vq1vBAqFAf4IJkGNiIhWJK0192vunsC1IE/a9XycquNXARa5OnApeeioaHvKuP7r3dTGsiLqFAo7JR0T7B8rhfwXARa2us4UEqr5Ffgs151i/08oTNKdIO770ptObBYq5Yv5ibQq/sl3Qc8lJ4+lnSqH1vFfp9koZRKJVtaWnqkWXqSVkqlDe+vmUDWpZMlK/X6MBDegKf3P/nYaj8ErN9fqZBYEsf3Ag8G8Xit33BaniTcvGX0IvAw8BHwTa1y4Md+CeRqRL9fudwAvpienNi7Vhu21uwflOT+L+i1X2TJP57iUvUFtHWsAAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-help {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABltpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPHRpZmY6Q29tcHJlc3Npb24+NTwvdGlmZjpDb21wcmVzc2lvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDNDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMTIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDMjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOnN1YmplY3Q+CiAgICAgICAgICAgIDxyZGY6U2VxLz4KICAgICAgICAgPC9kYzpzdWJqZWN0PgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxNjoxMToyOCAxMToxMTo4MjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+UGl4ZWxtYXRvciAzLjY8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cphjt2AAAAT7SURBVFgJxRdbaFxFdGb2bhui227BWrsVKYgf2kJUbP9EUPuzEB803WTXJjH61Q/7Ya1+CMYKEVTsh4J/EpvY7BoabUiNiA8s1p+4KIhpoUUEselHqyS76TbZ3HuP58ydc3d2u4+IkQxczpz3mZkzZ86VYpXjvenpjZsLhUcliE4AuUuASAgptmt1EFdwPiclzIIUUwubNn17OJlcXo1p2UpodHRiux9xB1Eug1+slbzhFxGOKc851tu7/0oznYYBDA8Pt0U2tL8KQryIq2tvZqQhD0QJHRz3yqWhgYGBpXpydQMwqz6NCnurleCSADkJEfgKfOePqL80R/wV1ZaQyr1LenKfkPCkEPKeaj0xg7vxVL3duCmA0Vyuw/fl52hgBxsBED+h4Cv9z3R/zbRm8MTJTx7HQN7GQB6w5C4L4SX7M5lfLBpurjXMyvNIShiyi0l1pL8n9b7EDGPR8fHxzSsQ6XDB3618/xqo6Pk25V5MpVJllgHM1BO58RdQ612kOYZ+GXdij70TYQB05mpj+1kU5G2fB+l3PZtOf8NGx6ambnMXb3yAxg8wjSEG6OKKR9oicBQD+ZvpH2Wzj0lQpxCPG9qMv1x6hHNCsSAlHM7ZOa682vlI9tRDbvHGbD3nZAPpDoD/3JIrLpAs26UFkC3EMUA99hpfGtEBfJjNJnS2Gwnadnvl+Xw+iuc3DAJuNyIaSCHpilVldyDjjUxj3WDZIAhxhHHyRcdNuA7AAfUaXzVKODpzFiZ4/uLvh5G+m2no+C/pyIf7MqlEJB7bpqR6nXkEUfbeawuLaZsW2ISfNQ2vtaktQlGFQyIVGT0o2+2EC4iQNGwjBIN9qdQ5Qg4mk4X4rW3vCClLtowE2FOFUxKDfNmiZci3ovKKRFPh4FK9q4Zbdr+lKKJiA13TcHR2dmLBgdmQ0GAS2MZaEowY+XbAk09IvgtYZGp16SyvFhaHcIUh645t8T9DBCcnz5zZ4hZLu3DzK2QlL1QQa0Y+pHiJKPSuOGj3PmZTheM5w2TwqBxnvBZOTk7G5gvXJ5Aelms8wnJURL+olSWcfEhf6gDoUXPMq6ZlqbzWU2pE+3hi4s6F68tfIj9cBMlikr7Z0/P0b/X0yIcUXsDCF1WhtL4OROHaXk+xlkbV0Cu732Nmhc4peaWSg73pA8dq5RkvO37ldUTfXCKZv2q45MkhvG87WQEzpCCUSvV1d9GONBy3lMvgKSwrZig8gjAietWY0QriylO2jIo4yVbOSb7KB/qmI9BPKjHpSSXYauRyn92Nq9/Kcrj13x3s3v8D481glQ/0raiNYgX9njPSBOImbrHZePl+tfFmc9sH+Xaoh8NjOKSVdDMhjjYzQLy+dFceH5+IJQf9VYXX4tROg4ZFU8m31M3mfPEqUoJqCGJfvWpo2xnNfdrhC28n06SCeSzNZxlvBINGRXCtKS7EY1uV6V7HWAm38y1cXaXsMcOCvr9ySPj+af7A1U2HJXHzVNvUXVLIGyPf+jV0pf8GHoN+TLAyPkidTCi2RpPApmnR0Bd1zGRaB/B8Oj2HSw7LLbVR1MmskW8RdEWVXSJf3JbpAMgRtc4IZoxTh9qotQjCasm46M0YX9pV1VmbpvRH5OwwgdRtSg2vKaAz/1dNKVtb17Y8DCL4HVufHxMOYl1/zTgIgiYvBnFKfaNp3YjTdPz3n9Na8//X7/k/O1tdwopcZlcAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-hover {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4oVHp0SwAAAQJJREFUWMPtlsENgzAMRb8RQ5VJItFDOgaZAMaAA0iZpN3KPZSoEEHSQBCViI/G8pfNt/KAFFcPshPdoAGgZkYVVYjQAFCyFLN8tlAbXRwAxp61nc9XCkGERpZCxRDvBl0zoxp7K98GAACxxH29srNNmPsK2l7zHoHHXZDr+/9vwDfB3kgeSB5IHkgeOH0DmesJjSXi6pUvkYt5u9teVy6aWREDM0D0BRvmGRV5N6DsQkMzI64FidtI5t3AOKWaFhuioY8dlYf9TO1PREUh/9HVeAqzIThHgWZ6MuNmC1jiL1mK4pAzlKUojEmNsxcmL0J60tazWjLZFpClPbd9BMJfL95145YajN5RHQAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-crosshair {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADEUlEQVRYR81XXVIaQRCeHqug8CXmBNETaE4gniDwIgpVspxAbxC9ATkBkCpQ8gKeQDiB5AQxNyAvUlrldr7eHxyGXZi1rMJ5opbp7m++7un+htSGF204vsoMoNXrlzSpfWa1oxQfhAegCZGaEtPorHo8znIoJwCt6+td8uk7ApUQCIHTF4BNAWzImq8ap6cP68CsBdDp9i9ZqXM7ML79g/EnCWD+jgMKENKqWT+tXK0CkQqgNRjs0OxpQIqKhoMxaG6/6JeRnK7T6yO2UvVqhYSlLX+ryORfgKn9ORDFIy7ky41yGcwsr0QAQfDH5zucOswx819fs4egI9OFCcD8DjBF7VNbEX0JzdWEt3NHSSASAcCxBDqMgt/623kvyTgNgNjJIfTjk4D4FqaJR1715MjmYAmA5Bx3AwUXQL+t105KaTlcBSC26XRvhjEIoLiq1yqXpr8FAGG16/ug4IT27fxBWu7EiQuAiImJpEMKE6nYM30uAIDDttSUOPfJP7JzbjPhAiBIh9QE67vIvoOi9WJfCwDavf40ulpjbCqmUf+W753ezURuh7Dg1SqflwAEHU6pgfyBq9Y4qx0LG++2fnZ/eUzcstmdM2AWH+jfc+liWdBJfSENf8Lifi3GVwC9mybOfi5dzatWVrbbLIHNva8p5h/16gkaFiLGGxbufkoE6XguwePiXLF3XmMfCUCUAqtKXU7sumd1CowOuJEi3Pg1FBpjitIGhyvVSfvmjci6ZR+rFQfDiPVE2jFYeICQ+PoewwjC5h7CZld6DBdyu6nDSKgzOyIMhmhK5TTqXYbRorZYM46TmpKAAOrGWwSJJekSB1yqJNOzp1Gs7YJ0EDeySDIMtJbQHh6Kf/uFfNFZkolJICRmz0P8DKWZuIG2g1hpok+Mk0Qphs0h9lzMtWRoNvYLuVImUWrmPJDlBKeRBDfATGOpHkhw670QSHWGLLckmF1PTsMlYqMJpyUbiO0weiMMceqLVTcotnMCYAYJJbcuQrVgZFP0NOOJYpr62pf3AmrHfWUG4O7abefGAfwH7EXSMJafOlYAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-lasso-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgwlGP1qdAAABMBJREFUWMO9V1uIVVUY/r61z57ZMx4DnbzgkbQXL5iCJphlWdpIGY4jpFBkEiU9ZNaDRRcITcIwMwgxoQtU2IMXdAZfMjFvpERXYiSbysyBEXFmyuHMnLP32uvrwT2xnY5nxvHQ93Jg7fWv71/r//7L4a59TRgqJk+Z6v3a+sv0OI5nk5wu6VaSVZImAThHsgjgrKTvM5nMUWvtmf5n8HodCIKgOgzDhc65pSTrJQWDsSNpJX1ljHnDOfdT37oZLLHv+8OMMasKhcIJ59xHAJYMlhwAJGUAzJfUTHLFuFzOG5QDU6dNMyQfs9Yedc5tBpAD4IYYNQGoBrDtQnt7/b0LFrJsCHzfn2itfQfAnZLiazytA3AaQAuAiwDaEgeNpGkkswAWSBqRONB38b88z5uTKePt6iiKXkk8jq+iJC5LOmiMaTLGHLPWhmWeHr7vV0dRtATAapAzIVmSo51zyzIlbm2stesFPA6pKk0r6Ryg93y/ek8YFvPOOTg3cDSiKCoC2OP7/rEoirYm4rUkF12lAWNM1lr7lqQn0+QA8gI2jBg5cj6Aj8OwmB+KAKIoukhyp6SRJAUgl0ndPLDWPi9pJQCbuviXvu+/GIZhW1dnJ24UJFuTjCCA2ADA8sYGWmsXS3qmL94kDYAtkh4Nw7ANlQJ5U6INT1KrAYC9zQdykl7nFSj5fXp5Y8NWVBhy7mUAjqShMYdMXV2dJ2klyRwAJ8lIeuGWCRMP7N7frEqSG2OmAFhKshNAp5wrmO7u7jEAngPQm1S2z2pqapr+OPt7XEly0oxwzq2RdFmSD2AMgKKJouhhAL4kA+Cs53l7e3t7uytJHgRBreTWkXwkKVJnJD0B4GAGwIJE9R6AFufc6UqSZ7PZbD6ff5dkA4CQZEHSqwAOISmXtwGIE+F1SeqqIP8d+Xz+C0mLJYWSAODteXffczjdDQNJ0BWMCoLg5gqIbRTJNwHsljQhUb0luWPM2LE7Thw/9m/5NCT/TByxAOYWi8X6/gdWV1dnfN8fNRBxJpMZTXKdc+6IpFVJWAEgkvSJpA0X2tvtVTaSjgOYBCAEEADYSHK87/sfhmEYA9gShuEDkgzJHyWtB/B1irQ2juP7ADxkrX0wOUOpzmdpzEY590HJ7Ni1r2kSyZOSiv2+hSRjSTXp/QAukzySNJOJkmalyNIl10hqMcasdc61XDNcQRD8BnITgNp+36r6kfcNFMMlLQGwTNLMEuQGQBfJl2bdPru+HDkAZAqFQux53jZHEsC6aw0eg2gylNRBcqcx5v04ji999+03AwsWAOI4Lsy9a94WkisAnE5a5WCJYwCfA1g7LJudI2lTHMeXBm1faiQzxkyRtF3S5CTupeAB+KG2tnZFT0/P30NO2VKLzrmfAbwGMipjG5Oc0dPTc0Md05SZ5U4Q2FxChErtEYD7jTGNQ3UgM8Asv90Yc9I5LSKRlXSI5CxJa0jWSALJjKRnAewfkniT+vwf7N7fXHK9rq7O7+jo+BTA/NRrdBpjnnLOnUrvXd7YMPQXSBunneno6IhIHgYwW1JtkgmBpBkATlVMAwOk3nFJ+VSoqgCMr6gIy2FcLtdKspAedyQN/98caDt/3kpyabUmf8WvG/8A1vODTBVE/0MAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-pan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4lKssI9gAAAOtJREFUWMPVll0KwyAMgNPgoc0JzDX2Mtgp3csKErSamGabIEUo/T6bHz0ezxdsjPJ5kvUDaROem7VJAp3gufkbtwtI+JYEOsHNEugIN0mgM1wtsVoF1MnyKtZHZBW4DVxoMh6jaAW0MTfnBAbALyUwCD6UwEB4VyJN4FXx4aqUAACgFLjzrsRP9AECAP4Cm88QtJeJrGivdeNdPpko+j1H7XzUB+6WYHmo4eDk4wj41XFMEfBZGXpK0F/eB+QhVcXslVo7i6eANjF5NYSojCN7wi05MJNgbfKiMaPZA75TBVKCrWWbnGrb3DPePZ9Bcbe/QecAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-xpan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4X4hxZdgAAAMpJREFUWMPtlsEKwjAMhr/pwOOedINJe/PobWXCfAIvgo/nA4heOiilZQqN2yE5lpD/I38SWt3uD9aMHSuHAiiAAmwaYCqoM/0KMABtQYDW11wEaHyiEei28bWb8LGOkk5C4iEEgE11YBQWDyHGuAMD0CeS30IQPfACbC3o+Vd2bOIOWMCtoO1mC+ap3CfmoCokFs/SZd6E0ILjnzrhvFbyEJ2FIZzXyB6iZ3AkjITn8WOdSbbAoaD4NSW+tIZdQYBOPyQKoAAKkIsPv0se4A/1UC0AAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-ypan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4anK0lywAAAMVJREFUWMPtlzEKwzAMRX/S7rlpIMXeOnaLaME36FLo8XqCdNFghGljyc4kgQi2Q/SUj0F/eL7eMMTKz6j9wNlYPGRrFcSoLH4XxQPvdQeYuPOlcLbw2dRTgqvoXEaolWM0aP4LYm0NkHYWzyFSSwlmzjw2sR6OvAXNwgEcwAEcwAEcwAEcoGYk20SiMCHlmVoCzACoojEqjHBmCeJOCOo1lgPA7Q8E8TvdjMmHuzsV3NFD4w+1t+Ai/gTx3qHuOFqdMQB8ASMwJX0IEHOeAAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-range {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABCJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjMyPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4zMjwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxkYzpzdWJqZWN0PgogICAgICAgICAgICA8cmRmOkJhZy8+CiAgICAgICAgIDwvZGM6c3ViamVjdD4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDQtMjhUMTQ6MDQ6NDk8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPlBpeGVsbWF0b3IgMy43PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrsrWBhAAAD60lEQVRYCcVWv2scRxSemZ097SHbSeWkcYwwclDhzr1Q5T6QE1LghP6BGNIYJGRWNlaZItiFK1mr+JAu4HQu0kjpU8sgF3ITAsaFg0hOvt2Zyfvmdsa7a610Unx44Zgf773vvfneezPHNzrbhn3CT3xC3wPXYOC8LDzqdi8YY/gwh4BeknS/2th6dr2kf94AOp3OFyWgMyziOPbMDxV9FTtJnl1ut795Xd0/YQ0/vtYQwMT1KXWCfr2IjOWwtNehwN4xL9ykTrm6Pzl58yLn3J+mKh9mXbT3uRjGEDph+O8/TjfP5dBp7Ha7AX7O3o5nZeD/0E/OGyXntDgzA0X6qmCnrVutVlrUWV9f/3xo+pwhGDhvEPHOjoxnZjJggXmMHzBQ7NGNp9vxk61fr0HR7e/u7pZzCGHlc7qwBYYTT7tJYSx1AQzppyFPft5apta9w7SKcn0b7P7+/jCsDQ5mbc0dCmIJGDN0ehdcjsmkm6A6KUeKFOTE11PLxrC7Ukqh3ylL2fT0NAP9q6ur6rRCJJYsbKB0JsbCKMuy+xREePDyxQPCz+Crlw062QcA5wBOOt1l6vIl2WiI9F1fN6Q+BBqit6hEC4Hk08GQJMn4myjSP7RavVxgdaVUh/3U6HCMsPr9pYnJKRziHtWQ+un58+hGs6nsjQSjpuTyKGN3CX+FBwHXSiEVgjP+O8X6N12kIePES+GzTKAkGbNp8yJsGUMVzz8jPKReiyAQRimy5/cjye5RpF8utFp/+nwmT7d/NMzcFkS7yjJNGDaPURQxIQThEQy0SyF4l5WJYYhBa816vZ6dU7A6CAhbZVow/pDe0O9hVOoCi13r4BgBAvJHqMSQL2vE/iH6IAXEwgrRVUmBoRRwnwJQT98xEeVeSUyB4dJ5nwJBKdCFFGRmUCcu7rwIYypCTblaChuNBhWODrman5ub+4v0rMNBt8z6Ezh7GksJQpCbm79cMQE7QBFm/X6f0rjWnv8WRYg/QdbUpwDAEBy8vPyA8rNGzg3a8MiElwiM7dAtRqNoNptjGPM1laVxP9umWEMGLOKhKUOJDtBwDmzsw9fC/CzHr9SGuCTi2LbbKvVtmqXpCjMihBFa79Wrt5fGx9PDzc3fmu32Lf8qFliwU9emKhBSp+kRKn/hu9k1COEDbFdt/BoKWOAkuEbdVYyoIXv8+I/QK9dMHEb1Knb7MHOv8LFFOsjzCVHWOD7Ltn+MXCRF4729vWMDK+p8rLkvwjLg4N4v741m5YuwCI9CvHp1Ha8gFdBoPnQAkGsYYGxxcfEI7QQlFCTGUXwjAz4tWF+EpymOWu7fglE7qsOvrYE6g4+9/x/vhRbMdLOCFgAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-polygon-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjc1OfiVKAAAAe1JREFUWMPt1r9rU1EUB/DPK0XbqphFHETo4OCiFhwF0V1KHbRSROLqon+AUMVRRFBwEbRFMBiV+mMW/wIxi5OD1kERRVKRJHUwLvfBTZrU5OWBGXLgQu7Jfe98z/ec7z0vKa88b2q1BDtRHdAPBaylm1NzsxsOjPnPNt6WSWprbft+/c3I3zOAjhT1Y4+fvcjEQJIXnVECSa+AhqIHqlHH5lWCZoe+Gk4GRgDG86j9SAUdlDBSQaZhlOkuHyoVdJmsw98D1S5fM4NYM1LCpqM+Lwa240oLgmZzpVZvzKT75VLZcqksSZKWlQeAy/iORVwIvh31xvotvK7VG3Px4aWHj3Jl4C2uYSvq+Bn8v6LLbaVWb9zsBiKLCvbiNG7gLm7jAYqbPHMJMziZ9lsKoh8GtqCEVVzHftwJn+TFHp4/hg8BSCYVfMOZoPEv2NZGdy9WCGUr9toDR3E2/H4V6nwRe/BmgN65H1ZhvMuB3XiKIyFoGefwO6ysVkUlrNUNsyAK/jli533Q+Y8cJFvAeXyMS1CI/jiMr/gUtD2LQwMGr4R3p7bY3oQHQ5b38CT4D2AXXg6YcQXHpyYnlqKsi5iOAVSwL9zd7zJ09r+Cpwq72omFMazjT9Dnibym0dTkRDUKrrgwH7MwXVyYB38BstaGDfLUTsgAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-redo {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4itK+dVQAAAaFJREFUWMPt1L1rFFEUBfDfJDaBBSslIFjbaSFp1FJQFMVCHkzhKIqdUYOCoBgErVz8rCwiTDMwBCIKipDWyip/gxAIWAmBgBC0eYFh2Gx2l9lFcA5M8e59782Zc84dWrT435Hs1siLchqn43MS0zgW22vYxjesYjVLw3YjBPKinMUTBOwf8J5fKLGYpWFjJAJ5Uc7gIW6jM6Kim3iNZ1katgYmEL/6I+YasvY7Lg6iRpIX5VF8wuEe/XV8wGf8jN6LWTiAc7iEQ7ucPZ+lYW0vAtfwvlbfwCKW9gpXDOv1mJvZHiSO91MiyYsyiQSuxtpXXM7SsDmM5nlRdrCMMz3sOJWl4Xevc/vwBzdwAl+yNNwZxfRI+GxelK9ikHcwh8d4NNR/YFRES1ZwoTYdR7I0rNf3TzVNIGbmSvR/Bx08mIgCFSVu4l2ltIWD9WxNGR+W8KOynqnZ0rwCeVG+wa0hjrxtWoF5dAfc28V8Mib/n+Nev5dnabg/zgw87aNEN/bHOwVRiRe4Wym9zNKwMKkpgIWKEt24njxiJlq0aPFv4i9ZWXMSPPhE/QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-reset {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4gWqH8eQAABLdJREFUWMPtlktsVGUUx3/nfvfOlLQaY2IiRRMQIRpI0PjamJhoVASDvNpCpYw1vJQYSVwZwIVQF6wwRHmkAUof9ElrI6VqDAXcID4TF0IiYQMkSlTokNCZ+b7jove2t+NMH7rQBWd3v+989/zP+Z8X3Jb/WGQySvUNTQBJESkNguAVYIWqzhaRhwBU9WcR+QXoymazn6jqzUQiMQSQzWZRVdal1vwzAI2tHQBPOuc2AbWTdOyQ53n7nHNfRwee51GzqoIQMCLDpr3x/tLQ0oZzrk5Vj0/BOEBt+KYuOlBVGlrahr0Wob27t3gEjnZ2AyQzmUwHsDgP6J/AYRE553neDwDOuUdU9QngNeCumK4TkRMhZUORcYC1qysLA6iuSQHIwkWLD6lqapQsuSmwTVV3h99I7EcAR462A2xR2Ilq6ehTaejvO1774kuLNALR33eclsaGsQDe3fYegHl43vyNwEeqGl1963mm2jl7YZRTQ82qlWP4HM6ZToC5ztkW4LHQoALru7s6Di5dvlIj/e6ujrEAWoZDn8hmMjXATMACGaAVuBjXTVVXFc/AxhaA+4zvn1DV+eHxVWPMAmvtb5GeMWZyZVhI2rt7qVy2pOh9U1snwIPW2vMi4oWJuBPYHkVAVScPoKmtkzVVK6cEMsyJraHhiCqJqJUwj/JRz7TW1iSSyR2rVyylqa0Ta+24Ic8vXaAEmDFc/l5Z2A/80OibuVyuz/f9ElUdHCmvw82t5HK5h6y1PYhsz2YyGw43t2KtBZHIGwB6+j4rCkBVUdV7gXrggnPuu8h4eP+xMeZS2D0rJYZ6AdAMzAt1b4nI26p6IFZOY8pugijcKSIHVLUK0LyST4vnrVfnWr3mjmP4QTATaERkXkypRFX3isjmuHdRJEK6Ckqquopp06bdKCkp2Sgi7XnGLcg7gzeutwNIiPYc8HixqIrIOlU9ONVIhHPEd851icgSVXUiskVV94gIqoonIt0i8gfQCfwae38e6BWRXuBZz5jZ8VbaOE4EIqlZVUEQBLlkMplS1QER2RwkEnsSyaREDUzyeNsvIhvCMqkH1kdIJ2o+k8iJB1LVVRfjZ6nqqlEAIbdVQGto8Lrv+/dbawcjAL7vc+6bs+zetetfLSHxniIFGofGGsU2oC7eOCbDfZ7nQawBOSAX74SF9oEPImOq+r7nmVmxb5raukZa8UReGmNmhbMkAwwBH467EYVZe49z7kdgenj8k7V2oTHm8kgdWcvrNdVFjR8cHkYzjDH9wLjDaEwEzpwa4MypgWvAjtjxfGNMj4jMiT+M+kFsZI/Q6Pv+HGNMT8w4wI7TAyevxXVPD5z8+zD64tRXAMHVK1eaVLUyVvuDqroV2BOnJF4ZIedviUidqt4Re9s+vbx8zZXLl7PR2+nl5Tz/zNOFp2FzxzGAklw22wUsLLaSKXwf8vhosZUM6PeDYEUum70VHfpBwKsVyyfeikOP6oBNwN1TrLbfgX3A1kKLzKeff8nLLzw38T5wZDgxn1LnNk5lLRfP26/OnR2hwfNYW2Atn9RCsrf+EECyrKysDFimqhXhyjY3VLkAXBKRDqA7nU6nS0tLhyIj6XSaN9bVclv+l/IXAmkwvZc+jNUAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-save {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4UexUIzAAAAIRJREFUWMNjXLhs5X+GAQRMDAMMWJDYjGhyf7CoIQf8x2H+f0KGM9M7BBio5FNcITo408CoA0YdQM1cwEhtB/ylgqMkCJmFLwrOQguj/xTg50hmkeyARAYGhlNUCIXjDAwM0eREwTUGBgbz0Ww46oBRB4w6YNQBow4YdcCIahP+H5EhAAAH2R8hH3Rg0QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-tap-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCOTJBQzE0RDQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCOTJBQzE0QzQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTQ0QzIwMUM1RjIxNjgxMUE3QkFFMzhGRjc2NTI3MjgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6eYZ88AAADLklEQVR42rSXf2TUYRzHv7tuGcfE6Vwb5zLSSjEj7Y9KWqfEmFZJP+yPMdKKmUrrn0iUfjhWlLFi6YfNrF+StBoTo39iYkTGco4xxxG59P7k/T2PT8/37nu3bx9ezvPj+zyf5/PreS78bGLS8SmrwE6yje3NHJsDBTALpknBz6JhH3NiYAB0gHqPOVv52wJ6QQ48BzdAttTioRJjdeA8mAHHS2xuk3p+M8M16ipVQE49Ds6CiFO9RLjGONf05QLx6wPQaBlbBlPgJVgkP0ETiIJ2sB/E1XfimjfgBOOlKDUqCGOcqBcQnw6BYW5YTo4wbvQhMmCfGRemC2rBiGXzWUb+kM/NRZ6CHWBM9ce5R61NgX6ayhSJ5EPlItlDRNkz4JbFHf06BkSzHjXxM+gDv1S/mPUo2AXWgt9UUHL/IVhS8yUV1/EbV3o4N+NaoE9Fu/i827K5pNYHnqAVJECShWmAaddpscYFFXwR7vnXBRGlnUN/L6kqKJlxnRUuDbaDBiL+vst5d4gpcpBrqk/2jIgCKVUolhntplzivHmwh4stGOPfwBWwl/2dpp8p7xjQZqFLiQJtauKkivYm+kzccpK57yXfOUe+P23JqAnVbhMFmlXntCWnxbT31am9ZJ4BJifsUmNTqt0cYhA5ypympPg7VkEKunPbVb8cIG+0kyHLJZNR7fUMooUKFHAPkfQo58VLK+RzwRDd4FdWG9mjpaAXzqkJa1R7kQttqEABWXMjOOxxVRfnhRm5URX1prk/0pQHwNcKlchZ+jdpC+hFdVqO0my9Hj5dkYgCn1Rfh/KdlNDHrJhPqlDih+IfBd6qwpOgEqYMsorJ2HtWxtagLJDn/W3KRfPOZhoeBJfZPgVeGKeKrkQBh5dLXl25Ny3pc4/1fkTdbvFqFQgbxWeYD0hXulhQ0pYiM1jG547fcbMQpVnHTZEn9W3ljsCzwHxCdVteNHIZvQa7/7cC7nV6zHIfyFP9EXjFa7YxKAVqPP4bxhhoLWW+z9JyCb6M/MREg59/RlmmXbmneIybB+YC/ay+yrffqEddDzwGvKxxDmzhc0tc80XVgblqFfgjwAAPubcGjAOl1wAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-undo {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4em8Dh0gAAAatJREFUWMPt1rFrFFEQBvDfGhACASshkL/ALpWVrSAKEQV5sIULWlgZNSgIFkGIVQ412gkBt1lYLERREFJqJRaW1oHAoZUQsDqwecWy7N3tbe6C4H2wxc682Zn3zTfvLXPM8b8j6RqYF+UCzsfnHBawGt3fMcAX7GEvS8NgKgXkRbmMxwg41TLsN0psZmnodyogL8pFPMIdLHUk7hA7eJKl4U/rAuKu3+HslFr/FZezNPSTFslX8QErDe4DvMVH/Iq9F7VwGpdwZUjsPtaSFjv/1vCBPjaxO0xcNbHejLpZrrlvJCMCT+JzA+2fcC1Lw+GE4l3CG1yIptfjCtiKoqtiJ0vD3aM0Py/K57iIMxgkQxat4EdN7e9xdRzlk+LEEPvDWvIDXJ928sYxjL36icWK+VaWhlezOIqbGFirJd/H7szugrwoX+D2BDEvszSsT5OBdfRaru/F9dPXQF6U27g/KnmWhgctxqyzBrZGMNGL/rHI0nDkKXiKexXTsywNGx0OnFbFNk3BRoWJXnw//j+ivCi32/S8CxPVNiWOAdUiJtXITIqYY45/Cn8B2D97FYW2H+IAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-wheel-pan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgswOmEYWAAABddJREFUWMO9l09oXNcVxn/n3vc0fzRjj2RHyIZ6ERuy6CarxJtS0pQSCsXNpqGFWK5tTHAwyqIGN7VdEts1LV04BEoxdlJnUbfNogtDCYWQRZOSxtAUCoFiJY0pWJVUjeTKM9LMe+9+Xcyb8ZMychuofeHCffeee7/vnXvOuefYlV/+mv932//tb91z/Y2rvxmMHQ+4FcEfOIGN4A+UwDDwoQScc7vM7AIwB8yZ2QXn3K77Ab6OgJnVgeOSbkqaBiaACUnTkm4Cx3OZzwf+qzcRQup1zNZ9RwDe+0YI4YKZTUn6zCGSMLOfAF/03r+QZdnyfwO+ePEiI6N1nPMgMDMkETLRbd2mXG8gCbd9YiIKIUxLKoLfBN7I+80+CUlTIYTp7RMT0b3Af37p8kh5y9gZcy4Fzt+5szqSaxkzUR7dwtrKMmaGW242d0t6vrD/He/90865o865o977p4F3Ctp4frnZ3L0Z+OryUrVSrZ0z8ZxhHjhcq1XPrS43q/0flDlK9XpPA2ma7gMeyvfPx3H8TJZlH4YQWiGEVpZlH8Zx/Awwn8s8lKbpvmq1ahvB641SXNk6dhLskNA2MIBtwKHK1vGTW8bKMRbAMgyPqWeETxUM8VSSJAv52JmZA0iSZMHMThWwnipXKp8hsLLcSaIR92oU8xjSayCQXotiHotG3Ku3m+0EOQwPQCDggMf7BzQajSs5eAk4B5zLx4O1vD2eJMmAQKliscgASJMw21pansFs1swQ/DNLmUmTMNuXX+taXHTDaj5OW612R1JZ0nFJJ/J+XFJ5aWmpA6S5bHV8fHsPHFU6q3pJCjtFxtrKMuXRLUUXXxdrRLazFOtUolZlsGhmACsgnHPTwJnCnjP5HMBKLotzxsTE9rgDL0t6LoriKsDIaB31ZEK+JxQJRHFUBR2NqLw8OTkZR0OC0ntm9k1JWU7OA4vD/mZ+YfElsANmNEKi75vztzB5M8uAr+bx48me88g757PQ1U5zNg52YH7hX8l6f+4Fi3c3BqHNmkI4YQOV2MGCNu9qHPYCewfzbrC+XSGcWEcgTRKA3wFfyzdDz5d+D3x9CIcfA4eBbQS9LscskgfLnHNPAnslvS/pbZDHLLPADpx9N9fqpSIBH8cxWZY9m6bpb4Ev5fN/iKLo2TRNgdx/eo8Wk5O7Ts/N/SOSdMjHdj4kmgkIEJLJzPZKetvMTkIvFLsR25Ml2gfuF5M7vnA66sdooJYkCSGERe/9VAjhzRxoKk3Tvg3U8nulVqvx8cyNpER2umM+SdOkbc5B8JhpqBdIgTRR24h+lpKen731aRIN7thscH9Zlv0d2F8YD2TIX7F2uw3A7ZWV1a0TYz9ca8cJZHRbuRuaDfUCw9/qJHamPOKToAwHtHN6lMvlSkH2o7wDMDo6WuGuQbbn5+YAKNcb3J5fSvrhtTY+vsOPuD1IOyRhMOkj9kSx29HfXB5RUnS964NT2+3vbGbxG9auO2cDNuV6A8NTb5TitBuOpQkfYD2vwOxgmvBB2g3Hto5X42EJyVsFlztbKpXGNgqVSqUxSWcLU2+tdToa9hasLjfPYlwGa+bTi8Dl1dvNsyvNtQQL9MO2w+HM7BqwlAtPdrvdq9773WAVsIr3fne3270KTOYyS2Z2bbXdHhogKmPj7YWF+VOSXs/v/9KdO+0fVBrjbRkgB/KIDBnYu9f/7D+ZmfmRxPd6qwB8YmZXcq1MAQ/nJhTM+OnDe/a8+PGNG9lm19V/D1Qw7HXZlcRa69+U6w38l5/4ipxzf5X0CPBILjcGPJH34pVcc8692FxcXLlXRnTwwH7+9P4f8aWe3fY59LIqo1NMyQBCCHNmdgx4BegUWefjDvCKmR0LIcz9L8nokSNH+PRvH4HC3YQ098pSbevg24qlmZmNmtmjkg4D3+j/tZldkvQXSa3PW5ptlpL3ZaIN99OS9F7+IgKUgSyEkNyv2nHT7DZX0dr9rpjua2l2r4rogRAYVqZvnPsPqVnpEXjEaB4AAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-wheel-zoom {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgskILvMJQAABTtJREFUWMPdl1+MXVUVxn/fPvf2zrSFmUKnoBCUdjRoVaIxEpO2JhilMYBCtBQS2hejpg1Uo2NUrIFAoyGmtiE+GHwQGtvQJhqDmKYRBv+URFsFDNCSptH60DJTO3dKnX/33rM/H7rvsDu9M20fDMaVnGTvtb69z7fWXmvtc/TEzqd4OyXwNsv/FwFJQVI/sA14SZKRLOlPkr5TrVYXHz70quYkEEK4TtI2YAgYkrQthHDdhV5uuw+43/ZrwCbgRttgY/tjtrc0m83X3/f+D6ydnJhYcB4BSZcBA7aP2d4ELAGW2N5k+xgwkDB0IH19CGGH7R8B1aQeAf4KvAw0ku4K2zu7uru3ApdPEyiKohd4TNKjtjt5h6RHgccSNrddbvuHtm9Jqoak7xVF8WFgdavV+pSk5cCObNmXgK++85prCj3z28HKqZMnH7D9YAY4BvwujT8BvCuL1INX9vVt+dfwcCvNb7f9q2RuSfrGvWu/sL2Nf3LX7pzvj4ENSGBPVarVd4fRkZFltjdmoMGiKO4IIWwIIWwoiuIOYDDzeOPoyMiyFLkum7WJCMDztrcrTTrIRuAQZ6NcK1utL4dWq/VZoC8BhqvV6l1lWb4YYxyLMY6VZflitVq9CxhOmL60hhCKeYiV7WMKIXw9jT1HpXw3c+bOAKzOjJubzebJrKQCQLPZPClpc7bP6rMYKtjXth2OMf7tIkr11Wz8oQDc1Fb09vY+kQw1YAuwJY2nbUluAnCWpKkaFl6IQIzxivaR2SYA89sJVK/Xp2x32R6w/a30DNjuqtfrU0ArYecDCEqgLqm94T0dEm9mBG7PxkdDlkBnkhebgIezNQ8nHcCZPL9ijE1Jf/bZZoPtzbavmqNZLbf9tSxq+yoduuJ+SZ+zXSZyBXCqU+d8fvC5yRUrV+0G2j3g2hDCLyXd/+Su3QdnvP/zCuH72LWsgf2k0oHlH2c2odlkxcpVEdgr6aDtjyb8x20/J+mA7T9I6rL9SWA5dne2/GdXLl58qNJh398An85yTMA+4DOz8Dgu6Zu2dwJXJ91ltm8Gbp7Fgb+EEB4aHhpq5CEtACqVyr3AC0AlPS8k3TSmQ2YPhhBuS/1/LpmS9JTtNTHGfwBU2uUALARotVqniqJYH2Pck85pfavVaufAwnQvnHc0McaDKVptebN94QAnJB0EdtjekydyZXqjs/0ZgLIs/w6sy8bnYGYJ63pgERKC05JutT1kOwITwL9tvzlzUQUYB+Zjs2DBgu6xsbGJZHstByZbezregcBXeCsEz1bnzXt5anLyzLq71zDLxTRdVgemdx0fv2e2w5thO5DbiqL4oKT3ZKpnpyYnz+SY2ZpTAPZmJfdIrVZbNBNUq9UW2X4kU+2dcf53Aj1pj2PA7y/6m1DS00A9za9uNBq7iqJYBuoGdRdFsazRaOzKSqye1rTbaa/tlbYrqXQP2X4FIA9/J1l39xrC0v7+w5IeB8XkwS1lWe6TGJAYKMty31tfO4qSHl/a3384I3CDpI+kzC4lnRfrue6GytEjR8oQwlY73gC0L4qlth/q0M1/LYWtR48cKQF6enrC6dOnVwGLEpnxnp7en4+O1i/tszzGOCTpPmB7ahb57QUwBWyXdF+McWg6MScmuoA8OX8xOlpvXGz422XYTsB/SnpA0h7bX5R0WzI9HUL4qe2XbI+dk3xl+V7gxoztD5jRI+YK/zkEEokx2/uB/RdzIfUtueqVN04cXwF8G3iHY3z9Urw/j8ClyhsnjrcS2Vv/J/8NLxT+/zqBTkcxU/cfEkyEAu3kmjAAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-box-edit {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4QfHjM1QAAAGRJREFUWMNjXLhsJcNAAiaGAQYsDAwM/+lsJ+OgCwGsLqMB+D8o08CoA0YdMOqAUQewDFQdMBoFIyoN/B/U7YFRB7DQIc7xyo9GwbBMA4xDqhxgISH1klXbDYk0QOseEeOgDgEAIS0JQleje6IAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-freehand-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADTElEQVRYCeWWTWwMYRjH/88721X1lZJIGxJxcEE4OOiBgzjXWh8TJKR76kWacOBGxdEJIdk4VChZI/phidRBHMRRIr7DSUiaSCRFRM3u88gz+o7Z6bBTdjmYZPf9eJ55fv/5zzvvDPC/H9QsA66Olo9Ga+/MdR+Ljm2/KQIULsz9FqItGdOfJKLhApLgVkiSCGODjWit7QpKWy+TNrFeXvzKVUT8NiTVaIgDcbiCFJ7GiT8WkARXAdYBK0Lbhi/CenArRNskuM7/tgNp4ArQ42dwjf3WY5gWTqC7O/NbNn2Xkfw/YwdSw/We14HP2IEZwX+y9cZ9SH0LmgFP7UCz4KkENBNeV0Cz4b8U8DfgKiDxMWwUXETqLvJpCQpXZfawbzS7t9v5pL19cHBwfja7YA0y/lyCM0+E5hv5+piZXwKYcF23as+37bTXsQVqgkL0p/34fHR7DcBtbetFsBmGDwMOJCggYG55yw7dMlk6DuC1Bdu2RsCU9TYWQq2IoGbsreZ5NzvEqfSBsIsIy8OTbcdgiRHeh4o8AFAEwDakbY2AaCCpH7V9aGhoUUUy3UyVbkPYFuYLDlUZH8XBpwxkK0Dbgxg5HcVi0ent7a0RULMIozaHBSMfF9b2SzdutFcFB2FkwMIJOG6qfteXOa1nHZ48tyefuwyfT9s6wtzZ3t7eZse2DR2I228TtHXzuWCx9g8MtK5cuHCZTH4tiHEOa4xFngvTyS8f35d6enomiCi4/foEXBkZaQuukChL4FYA2Whd7YcC4gEdW3CpdL3LtGAVCVYJywEyTpAuJKeMOKXZs/Bw947C50KhUFOG4cwz35cjWNBlHGeD53n3xsfHP/T19U1qciggar8Fa4I3PHobIotBWBtc2hSiChyZxVzM53Pv7FVH6Tp3uVy+g0r1ImD2GjIrQGYIxjnfuXTZGICS5k/bBwJoubwEFX4TLah9EXomJGMA3za+f9913Yl4TnzsDQ+vE6YTZOjHh4ngibstt1pzQwd04F0bPStEBpXqRoBeQ/AKghfBnOEKgS+Q7z91Xfdz/HGKg8Ox7z8iYD9z6wqTkZFgnvhMGP9VZ2or1XVkPM9z0mytSfVsHa1RLBZbLoyNzUnK+ydz3wC6I9x+lwbngwAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-poly-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjglo9eZgwAAAc5JREFUWMPt1zFrU1EUB/DfS4OmVTGDIChCP4BgnQXRxVHqIJUupp9AB8VBQcRBQUXIB9DWQoMRiXZzcnQSA34A7aAuHSJKkgo2LvfBrU3aJnlYkBy4vHcP557zP/9z3r33JdXa647N0kHSZd5Nn0rSxc8G3cXp85sMcnZZ8vge3osZ+l3vB8CWFA0iL14t79h210swAjACMAIwAjACkB90D/8/GchI9ve4nPwTBh5E9ws7OepzGWb9EddSn51Op9ZstadSg4VK1UKlKkmSDSMLALewiuNh/hVJq71Wxttmqz0dG88vPc+MgWP4grvYG3SLOBrZFFFrttqPe4HIDxh4GSei+98iSlusuYopXEAjBtEPA3tQwUpwluAbDm4TPJUz+BTW9l2Ce6G7L0X/Bw8D3T/7SKKIDzHg7QCcxjvcQAEtXAnrrg/RP0/DKPbqgcN4iVOR7gcO4dcQgRuoh7HSqwlP4n20m63jJu5n8MkWMYfP3UowhzdR8FU8w9iQwevBdyq3/27CMRzAE5yLuvsRLg+ZcR1nJ8YL81HWJUzGAPaFZwe/Q5MdyYDyNHgjzO90YyGHtVDncuiJchaHw8R4oREFV5qdiVmYLM3OgD9k5209/atmIAAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-point-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEiERGWPELgAAA4RJREFUWMO1lr1uG1cQhb9ztdRSP7AF1QxgwKlcuZSqRC9gWUUUINWqTh5AnaFOnVPEteQmRuhCURqWsSqqc9IolREXdEvQBElxtdw7KURSFEVKu4w8wAKLxdw9Z+bMnRmZGXfZ29//II8th4WwGVNyIoQLYB5vxA9Caq04iUd9A+7ZlsNC2I7TdSd2hZXMJKlnTqp9jtl/GBaqoyQ0noFKpUIzBicYYc+DEFpxkglc4oVJa5gvDn8v1xV2irG3FM4NSVwjUKlUaMcpJhCGmSEJQ6QGD8M5WnHCd8+f3QCXpPLx8WNwv0j6Bm9FMK7FJ3WBE+R/2t7c/GBmFvSBrzRTCsyTDjXrxUgEMtpxynJYmJoBJ4VAybwVARgvL7Oik0okCodnKpVKX7P0leiVMb0VvbJT+upznK4vh0GIeQwwQStJkHQD3MwsCALTJRG7Qrdrj5m/djgYaIa0hlkRdJk26XEgC9txurccBtVW3IudBImmZuACUP+ZlIDBt9FKcubYNTcAH/X0RYM1E7utJPlqe+uZzPxUcEkiSS4sTT95n15Mud0xWC0o2PAWOCdK3KYZlFxfM+tHOcnMzNr1es18ug+cgsVjP4yBU/Ppfrter1m/+l0+zYygML1xRVHU7TSb1cSzBzoBzszsH+AMdJJ49jrNZjWKou6wBnwOzcyndBpNbuueURR1Dw8Pq35p9cc5p/Dy9Dypt7jXrtdGwQECS9NPhr6Gq6txUzNigE6zydLK6lTw12/KT4FGFEUfJX2YJNONq5tVs4ODA7sD/DnwJ/BoADZuE3tHFs12dna6d4C/BI6AlbyzI8ii2TTw12/KK33gb2cdXsNZoAntbZC2SeO4c9592k/5eNQbiwvFd1kJuFGwLJr1wSPg/SwpvyFBHufOeXcFeAlE97U/uCxOY+P3b+Bn4B3Q+L8EdJfD4a+/AbC4UBzPxiPg3wlHZquB28Cn2IuR9x3gr3uV4DbwfvSDOvi4uFA8BDZmIRHkjHpS9Ht9iRqd8+5G3g05mAGcQbsdiX5QJ428G7Kygo8XYdb1/K4NWVmjzkNge2sz84bs+ELmpDDLtqWsNZBXgvmw8CTtpWVMT7x5YWBjLARnwZfKQNYN2U2LPvrh+5nBt7c2M2/It9bArCTKR8eZN+SJ13AScPnoODeRdqNenH+wul5w2gUr2WUjMFAt8bZ/0axX/wNnv4H8vTFb1QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-poly-edit {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gELFi46qJmxxAAABV9JREFUWMOdl19vFFUYxn9n9u9sCyylUIzWUoMQBAWCMdEEIt6xIRQSLIEKtvHe6AcA4yeQb7CAUNJy0daLeomJN8SEULAC2kBBapBKoLvbmdl/c14vdmY7u91tF95kknPOnHmf95znPc97Ro2OTeBbdjFDT3c32ZxVHUOE9kSMB0/m6ExuoJn1H+ur6Y+OTfD50SMN5168OgrAlyf7CfuD+z7+iDs3p8hkLUQ0iFQ/yFl5Nm/qonfHVva+s32Zw9GxCYILsZ08tpNfBhbs+1YN4OH9+7huGdECSBVfqUosbsllfmauBqiR+cCNwOr7AEo8pPHJnymXykhg5fUWjoQpl0vVvhZhbSzGoUOHqgBlt6B6uruj2Zy1E9jo0fhfeyL2x4Mnc8VErK0KUEOB64JSyptfG4RSytsJjUJVxw2lsFy3urL9nx1Qd25ObctkrVMi+jQivd7U2ZyV/3Hzpq7h3h1b/7p9Y0o8v8rwAbTWrGpSocN/FGDlbAI0Rl23PCBan0Ok158H9Ipwzi25A/Mzc9Gl/BYx/E4kYqC1NKRARNAaDCNUM27Z+Zr+ouXs0q4+LSLBHPYCFkTkC6uU39kwCdsS7WRKmaYUiAhdnZ3MPX2K4+QjQI+C94A93rMzm8ltMwyDeDzWjMZeEb2pYQDdW3vITU2jtUZ5QThOPgm8C7wP7J15OPsBsB3oWpGnVWisCeDS1VHj4vBI92+/3tgB7Ab2AruAXiDBK5oIOkhtkEYRNRuJhObrd8Dl9ewf4D5wG7hVLpen29vb5wzD+BrkbBMaL3d1dk5nsrnlFDTTFWAWmAZueWD3gCemGde2k2fw1Al1YXhEvjozoO49eczdqekrWmsc2zlrmvEKOGoW1GUjFLqSk2KpJrCLwyMCPAP+BO54QL8DM6YZX/ClsP9YnwKkXnIBP4jdIpJRpdJTCYdMwwi98KU0Hjc/dDILNyUcwTCWdOSMJ0TRmBktGRhLugu0xyLk7CIqVNm+0bGJptl1YXikD0grpY4Rjc4a8Fbgdab/6OGbAJeCUuyJnnHmZH9pbSyGuBXV8NUwlUpR1EWyixmSyTWEwqGlJ2Swbo2JXbAAfgDGgGQA9I1A9t1tlq0AxrXxn0ilUpw4fhQqYkH/sT41OTnJJwf2s6FjI5mshdYa7bqVR2uezr9MJmJt14FvGrh/O9D+e6UkM/xyCuCqEKCYnJyUTKFQrZDHjxzGshwWLQcRsOz8Hi85P23id0ug/XilAMLBmm4tPGdoaKjSH5+oAGrhwvBI9SjZTn4QSK9yenoD7dlrExPoJlXW8G8ytpNHxRKk02lGxsdRKFwXLNvx5yY94HQLGhGk4LFCYQSqaE0AwWM1eOoEbR0dKBSW7bC4mKuffxs4D/wCLKwQQPAUzIkslfp6cVomROWSolh0GjldAM4nzDi2k9/i5UAzC9aKfwNJ3zgJg9YEvN6+C7SHgKm69+sD7RfNnKTTaZRPQfAut4oFV//IS7gkcB34VlVo8kGzphlfB+DU+TfNGBpZtRastvrvARJmfMF28ge9sc2B9/PNnCilMIDwK6y8/ow/Ai4kvILTljAXvDvEvrqKSUs60KolzPjBxspavQD2tKqCAGF/Ba+xE/Wbilu54wZV8NEKF5fXzQHl/bh4hUsE0WAXSlDMYcQSrQXgCmsTseXHsJkNnjqBFGwKJaHsKlxtUHYVhbLCzr1kaOA4bcn1y1Swmb+iLpJKpVrfgdpfsiVVCYcgluwgnU7jEgJ4s5UkLFtWYyHyEg0/N1q1tmQH+YXnAMFr97Nmv3p+0QsHQRsF8qpBOE5+rb9Nkaj50tVQKjqh4OU3GNL/1/So3vuUgbAAAAAASUVORK5CYII=");\n}\n’),o.bk_tool_icon_box_select="bk-tool-icon-box-select",o.bk_tool_icon_box_zoom="bk-tool-icon-box-zoom",o.bk_tool_icon_zoom_in="bk-tool-icon-zoom-in",o.bk_tool_icon_zoom_out="bk-tool-icon-zoom-out",o.bk_tool_icon_help="bk-tool-icon-help",o.bk_tool_icon_hover="bk-tool-icon-hover",o.bk_tool_icon_crosshair="bk-tool-icon-crosshair",o.bk_tool_icon_lasso_select="bk-tool-icon-lasso-select",o.bk_tool_icon_pan="bk-tool-icon-pan",o.bk_tool_icon_xpan="bk-tool-icon-xpan",o.bk_tool_icon_ypan="bk-tool-icon-ypan",o.bk_tool_icon_range="bk-tool-icon-range",o.bk_tool_icon_polygon_select="bk-tool-icon-polygon-select",o.bk_tool_icon_redo="bk-tool-icon-redo",o.bk_tool_icon_reset="bk-tool-icon-reset",o.bk_tool_icon_save="bk-tool-icon-save",o.bk_tool_icon_tap_select="bk-tool-icon-tap-select",o.bk_tool_icon_undo="bk-tool-icon-undo",o.bk_tool_icon_wheel_pan="bk-tool-icon-wheel-pan",o.bk_tool_icon_wheel_zoom="bk-tool-icon-wheel-zoom",o.bk_tool_icon_box_edit="bk-tool-icon-box-edit",o.bk_tool_icon_freehand_draw="bk-tool-icon-freehand-draw",o.bk_tool_icon_poly_draw="bk-tool-icon-poly-draw",o.bk_tool_icon_point_draw="bk-tool-icon-point-draw",o.bk_tool_icon_poly_edit="bk-tool-icon-poly-edit"},n”, ” function _(o,l,g){Object.defineProperty(g,"__esModule",{value:!0});const n=o(1);o(67),n.__importStar(o(66)).styles.append(".bk-root .bk-logo {\n margin: 5px;\n position: relative;\n display: block;\n background-repeat: no-repeat;\n}\n.bk-root .bk-logo.bk-grey {\n filter: url(\"data:image/svg+xml;utf8,<svg xmlns=\\’http://www.w3.org/2000/svg\\’><filter id=\\’grayscale\\’><feColorMatrix type=\\’matrix\\’ values=\\’0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\\’/></filter></svg>#grayscale\");\n /* Firefox 10+, Firefox on Android /\n filter: gray;\n / IE6-9 /\n -webkit-filter: grayscale(100%);\n / Chrome 19+, Safari 6+, Safari 6+ iOS /\n}\n.bk-root .bk-logo-small {\n width: 20px;\n height: 20px;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAOkSURBVDiNjZRtaJVlGMd/1/08zzln5zjP1LWcU9N0NkN8m2CYjpgQYQXqSs0I84OLIC0hkEKoPtiH3gmKoiJDU7QpLgoLjLIQCpEsNJ1vqUOdO7ppbuec5+V+rj4ctwzd8IIbbi6u+8f1539dt3A78eXC7QizUF7gyV1fD1Yqg4JWz84yffhm0qkFqBogB9rM8tZdtwVsPUhWhGcFJngGeWrPzHm5oaMmkfEg1usvLFyc8jLRqDOMru7AyC8saQr7GG7f5fvDeH7Ej8CM66nIF+8yngt6HWaKh7k49Soy9nXurCi1o3qUbS3zWfrYeQDTB/Qj6kX6Ybhw4B+bOYoLKCC9H3Nu/leUTZ1JdRWkkn2ldcCamzrcf47KKXdAJllSlxAOkRgyHsGC/zRday5Qld9DyoM4/q/rUoy/CXh3jzOu3bHUVZeU+DEn8FInkPBFlu3+nW3Nw0mk6vCDiWg8CeJaxEwuHS3+z5RgY+YBR6V1Z1nxSOfoaPa4LASWxxdNp+VWTk7+4vzaou8v8PN+xo+KY2xsw6une2frhw05CTYOmQvsEhjhWjn0bmXPjpE1+kplmmkP3suftwTubK9Vq22qKmrBhpY4jvd5afdRA3wGjFAgcnTK2s4hY0/GPNIb0nErGMCRxWOOX64Z8RAC4oCXdklmEvcL8o0BfkNK4lUg9HTl+oPlQxdNo3Mg4Nv175e/1LDGzZen30MEjRUtmXSfiTVu1kK8W4txyV6BMKlbgk3lMwYCiusNy9fVfvvwMxv8Ynl6vxoByANLTWplvuj/nF9m2+PDtt1eiHPBr1oIfhCChQMBw6Aw0UulqTKZdfVvfG7VcfIqLG9bcldL/+pdWTLxLUy8Qq38heUIjh4XlzZxzQm19lLFlr8vdQ97rjZVOLf8nclzckbcD4wxXMidpX30sFd37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==);\n}\n.bk-root .bk-logo-notebook {\n display: inline-block;\n vertical-align: middle;\n margin-right: 5px;\n}\n"),g.bk_logo="bk-logo",g.bk_logo_notebook="bk-logo-notebook",g.bk_logo_small="bk-logo-small",g.bk_grey="bk-grey"},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});var s=this&&this.__rest||function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i};const n=t(183),a=t(179),o=t(185),r=t(78),l=t(244),h=t(141),_=t(148),d=t(142),u=t(281),c=t(14),p=t(96),g=t(282),m=t(68),b=t(70),f=t(285),w=t(8),v=t(9),y=t(24),x=t(187),O=t(190),z=t(286),S=t(191),M=t(85);class R extends x.Layoutable{constructor(){super(…arguments),this.min_border={left:0,top:0,right:0,bottom:0}}_measure(t){t=new x.Sizeable(t).bounded_to(this.sizing.size);const e=this.left_panel.measure({width:0,height:t.height}),i=Math.max(e.width,this.min_border.left),s=this.right_panel.measure({width:0,height:t.height}),n=Math.max(s.width,this.min_border.right),a=this.top_panel.measure({width:t.width,height:0}),o=Math.max(a.height,this.min_border.top),r=this.bottom_panel.measure({width:t.width,height:0}),l=Math.max(r.height,this.min_border.bottom),h=new x.Sizeable(t).shrink_by({left:i,right:n,top:o,bottom:l}),_=this.center_panel.measure(h);return{width:i+_.width+n,height:o+_.height+l,inner:{left:i,right:n,top:o,bottom:l},align:(()=>{const{width_policy:t,height_policy:e}=this.center_panel.sizing;return"fixed"!=t&&"fixed"!=e})()}}_set_geometry(t,e){super._set_geometry(t,e),this.center_panel.set_geometry(e);const i=this.left_panel.measure({width:0,height:t.height}),s=this.right_panel.measure({width:0,height:t.height}),n=this.top_panel.measure({width:t.width,height:0}),a=this.bottom_panel.measure({width:t.width,height:0}),{left:o,top:r,right:l,bottom:h}=e;this.top_panel.set_geometry(new M.BBox({left:o,right:l,bottom:r,height:n.height})),this.bottom_panel.set_geometry(new M.BBox({left:o,right:l,top:h,height:a.height})),this.left_panel.set_geometry(new M.BBox({top:r,bottom:h,right:o,width:i.width})),this.right_panel.set_geometry(new M.BBox({top:r,bottom:h,left:l,width:s.width}))}}i.PlotLayout=R,R.__name__="PlotLayout";class k extends l.LayoutDOMView{constructor(){super(…arguments),this._outer_bbox=new M.BBox,this._inner_bbox=new M.BBox,this._needs_paint=!0,this._needs_layout=!1}get is_paused(){return null!=this._is_paused&&0!==this._is_paused}get child_models(){return[]}pause(){null==this._is_paused?this._is_paused=1:this._is_paused+=1}unpause(t=!1){if(null==this._is_paused)throw new Error("wasn’t paused");this._is_paused-=1,0!=this._is_paused||t||this.request_paint()}request_render(){this.request_paint()}request_paint(){if(!this.is_paused){const t=this.throttled_paint();this._ready=this._ready.then(()=>t)}}request_layout(){this._needs_layout=!0,this.request_paint()}reset(){"standard"==this.model.reset_policy&&(this.clear_state(),this.reset_range(),this.reset_selection()),this.model.trigger_event(new u.Reset)}remove(){this.ui_event_bus.destroy(),p.remove_views(this.renderer_views),p.remove_views(this.tool_views),this.canvas_view.remove(),super.remove()}render(){super.render(),this.el.appendChild(this.canvas_view.el),this.canvas_view.render()}initialize(){this.pause(),super.initialize(),this.state_changed=new c.Signal0(this,"state_changed"),this.lod_started=!1,this.visuals=new m.Visuals(this.model),this._initial_state_info={selection:{},dimensions:{width:0,height:0}},this.visibility_callbacks=[],this.state={history:[],index:-1},this.canvas=new a.Canvas({use_hidpi:this.model.hidpi,output_backend:this.model.output_backend}),this.frame=new n.CartesianFrame(this.model.x_scale,this.model.y_scale,this.model.x_range,this.model.y_range,this.model.extra_x_ranges,this.model.extra_y_ranges),this.throttled_paint=f.throttle(()=>this.repaint(),1e3/60);const{title_location:t,title:e}=this.model;null!=t&&null!=e&&(this._title=e instanceof h.Title?e:new h.Title({text:e}));const{toolbar_location:i,toolbar:s}=this.model;null!=i&&null!=s&&(this._toolbar=new d.ToolbarPanel({toolbar:s}),s.toolbar_location=i),this.renderer_views={},this.tool_views={}}async lazy_initialize(){this.canvas_view=await p.build_view(this.canvas,{parent:this}),this.ui_event_bus=new g.UIEvents(this,this.model.toolbar,this.canvas_view.events_el),await this.build_renderer_views(),await this.build_tool_views(),this.update_dataranges(),this.unpause(!0),b.logger.debug("PlotView initialized")}_width_policy(){return null==this.model.frame_width?super._width_policy():"min"}_height_policy(){return null==this.model.frame_height?super._height_policy():"min"}_update_layout(){this.layout=new R,this.layout.set_sizing(this.box_sizing());const{frame_width:t,frame_height:e}=this.model;this.layout.center_panel=this.frame,this.layout.center_panel.set_sizing(Object.assign(Object.assign({},null!=t?{width_policy:"fixed",width:t}:{width_policy:"fit"}),null!=e?{height_policy:"fixed",height:e}:{height_policy:"fit"}));const i=v.copy(this.model.above),s=v.copy(this.model.below),n=v.copy(this.model.left),a=v.copy(this.model.right),o=t=>{switch(t){case"above":return i;case"below":return s;case"left":return n;case"right":return a}},{title_location:r,title:l}=this.model;null!=r&&null!=l&&o(r).push(this._title);const{toolbar_location:_,toolbar:u}=this.model;if(null!=_&&null!=u){const t=o(_);let e=!0;if(this.model.toolbar_sticky)for(let i=0;i<t.length;i++){const s=t[i];if(s instanceof h.Title){t[i]="above"==_||"below"==_?[s,this._toolbar]:[this._toolbar,s],e=!1;break}}e&&t.push(this._toolbar)}const c=(t,e)=>{const i=this.renderer_views[e.id];return i.layout=new z.SidePanel(t,i)},p=(t,e)=>{const i="above"==t||"below"==t,s=[];for(const n of e)if(w.isArray(n)){const e=n.map(e=>{const s=c(t,e);if(e instanceof d.ToolbarPanel){const t=i?"width_policy":"height_policy";s.set_sizing(Object.assign(Object.assign({},s.sizing),{[t]:"min"}))}return s});let a;i?(a=new S.Row(e),a.set_sizing({width_policy:"max",height_policy:"min"})):(a=new S.Column(e),a.set_sizing({width_policy:"min",height_policy:"max"})),a.absolute=!0,s.push(a)}else s.push(c(t,n));return s},g=null!=this.model.min_border?this.model.min_border:0;this.layout.min_border={left:null!=this.model.min_border_left?this.model.min_border_left:g,top:null!=this.model.min_border_top?this.model.min_border_top:g,right:null!=this.model.min_border_right?this.model.min_border_right:g,bottom:null!=this.model.min_border_bottom?this.model.min_border_bottom:g};const m=new O.VStack,b=new O.VStack,f=new O.HStack,y=new O.HStack;m.children=v.reversed(p("above",i)),b.children=p("below",s),f.children=v.reversed(p("left",n)),y.children=p("right",a),m.set_sizing({width_policy:"fit",height_policy:"min"}),b.set_sizing({width_policy:"fit",height_policy:"min"}),f.set_sizing({width_policy:"min",height_policy:"fit"}),y.set_sizing({width_policy:"min",height_policy:"fit"}),this.layout.top_panel=m,this.layout.bottom_panel=b,this.layout.left_panel=f,this.layout.right_panel=y}get axis_views(){const t=[];for(const e in this.renderer_views){const i=this.renderer_views[e];i instanceof _.AxisView&&t.push(i)}return t}set_cursor(t="default"){this.canvas_view.el.style.cursor=t}set_toolbar_visibility(t){for(const e of this.visibility_callbacks)e(t)}prepare_webgl(t,e){const{webgl:i}=this.canvas_view;if(null!=i){const{width:s,height:n}=this.canvas_view.bbox,{pixel_ratio:a}=this.canvas_view.model;i.canvas.width=a*s,i.canvas.height=a*n;const{gl:o}=i;o.enable(o.SCISSOR_TEST);const[r,l,h,_]=e,{xview:d,yview:u}=this.canvas_view.bbox,c=d.compute(r),p=u.compute(l+_);o.scissor(t*c,t*p,t*h,t*_),o.enable(o.BLEND),o.blendFuncSeparate(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA,o.ONE_MINUS_DST_ALPHA,o.ONE)}}clear_webgl(){const{webgl:t}=this.canvas_view;if(null!=t){const{gl:e,canvas:i}=t;e.viewport(0,0,i.width,i.height),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT||e.DEPTH_BUFFER_BIT)}}blit_webgl(){const{ctx:t,webgl:e}=this.canvas_view;if(null!=e&&(b.logger.debug("drawing with WebGL"),t.restore(),t.drawImage(e.canvas,0,0),t.save(),this.model.hidpi)){const e=this.canvas.pixel_ratio;t.scale(e,e),t.translate(.5,.5)}}update_dataranges(){const t={},e={};let i=!1;for(const t of y.values(this.frame.x_ranges).concat(y.values(this.frame.y_ranges)))t instanceof o.DataRange1d&&"log"==t.scale_hint&&(i=!0);for(const s in this.renderer_views){const n=this.renderer_views[s];if(n instanceof r.GlyphRendererView){const a=n.glyph.bounds();if(null!=a&&(t[s]=a),i){const t=n.glyph.log_bounds();null!=t&&(e[s]=t)}}}let s=!1,n=!1;const{width:a,height:l}=this.frame.bbox;let h;!1!==this.model.match_aspect&&0!=a&&0!=l&&(h=1/this.model.aspect_scale*(a/l));for(const i of y.values(this.frame.x_ranges)){if(i instanceof o.DataRange1d){const n="log"==i.scale_hint?e:t;i.update(n,0,this.model.id,h),i.follow&&(s=!0)}null!=i.bounds&&(n=!0)}for(const i of y.values(this.frame.y_ranges)){if(i instanceof o.DataRange1d){const n="log"==i.scale_hint?e:t;i.update(n,1,this.model.id,h),i.follow&&(s=!0)}null!=i.bounds&&(n=!0)}if(s&&n){b.logger.warn("Follow enabled so bounds are unset.");for(const t of y.values(this.frame.x_ranges))t.bounds=null;for(const t of y.values(this.frame.y_ranges))t.bounds=null}this.range_update_timestamp=Date.now()}map_to_screen(t,e,i="default",s="default"){return this.frame.map_to_screen(t,e,i,s)}push_state(t,e){const{history:i,index:s}=this.state,n=null!=i[s]?i[s].info:{},a=Object.assign(Object.assign(Object.assign({},this._initial_state_info),n),e);this.state.history=this.state.history.slice(0,this.state.index+1),this.state.history.push({type:t,info:a}),this.state.index=this.state.history.length-1,this.state_changed.emit()}clear_state(){this.state={history:[],index:-1},this.state_changed.emit()}can_undo(){return this.state.index>=0}can_redo(){return this.state.index<this.state.history.length-1}undo(){this.can_undo()&&(this.state.index-=1,this._do_state_change(this.state.index),this.state_changed.emit())}redo(){this.can_redo()&&(this.state.index+=1,this._do_state_change(this.state.index),this.state_changed.emit())}_do_state_change(t){const e=null!=this.state.history[t]?this.state.history[t].info:this._initial_state_info;null!=e.range&&this.update_range(e.range),null!=e.selection&&this.update_selection(e.selection)}get_selection(){const t={};for(const e of this.model.renderers)if(e instanceof r.GlyphRenderer){const{selected:i}=e.data_source;t[e.id]=i}return t}update_selection(t){for(const e of this.model.renderers){if(!(e instanceof r.GlyphRenderer))continue;const i=e.data_source;null!=t?null!=t[e.id]&&i.selected.update(t[e.id],!0,!1):i.selection_manager.clear()}}reset_selection(){this.update_selection(null)}_update_ranges_together(t){let e=1;for(const[i,s]of t)e=Math.min(e,this._get_weight_to_constrain_interval(i,s));if(e<1)for(const[i,s]of t)s.start=e*s.start+(1-e)*i.start,s.end=e*s.end+(1-e)*i.end}_update_ranges_individually(t,e,i,s){let n=!1;for(const[s,a]of t){if(!i){const t=this._get_weight_to_constrain_interval(s,a);t<1&&(a.start=t*a.start+(1-t)*s.start,a.end=t*a.end+(1-t)*s.end)}if(null!=s.bounds&&"auto"!=s.bounds){const[t,o]=s.bounds,r=Math.abs(a.end-a.start);s.is_reversed?(null!=t&&t>=a.end&&(n=!0,a.end=t,(e||i)&&(a.start=t+r)),null!=o&&o<=a.start&&(n=!0,a.start=o,(e||i)&&(a.end=o-r))):(null!=t&&t>=a.start&&(n=!0,a.start=t,(e||i)&&(a.end=t+r)),null!=o&&o<=a.end&&(n=!0,a.end=o,(e||i)&&(a.start=o-r)))}}if(!(i&&n&&s))for(const[e,i]of t)e.have_updated_interactively=!0,e.start==i.start&&e.end==i.end||e.setv(i)}_get_weight_to_constrain_interval(t,e){const{min_interval:i}=t;let{max_interval:s}=t;if(null!=t.bounds&&"auto"!=t.bounds){const[e,i]=t.bounds;if(null!=e&&null!=i){const t=Math.abs(i-e);s=null!=s?Math.min(s,t):t}}let n=1;if(null!=i||null!=s){const a=Math.abs(t.end-t.start),o=Math.abs(e.end-e.start);i>0&&o<i&&(n=(a-i)/(a-o)),s>0&&o>s&&(n=(s-a)/(o-a)),n=Math.max(0,Math.min(1,n))}return n}update_range(t,e=!1,i=!1,s=!0){this.pause();const{x_ranges:n,y_ranges:a}=this.frame;if(null==t){for(const t in n){n[t].reset()}for(const t in a){a[t].reset()}this.update_dataranges()}else{const o=[];for(const e in n){const i=n[e];o.push([i,t.xrs[e]])}for(const e in a){const i=a[e];o.push([i,t.yrs[e]])}i&&this._update_ranges_together(o),this._update_ranges_individually(o,e,i,s)}this.unpause()}reset_range(){this.update_range(null)}_invalidate_layout(){(()=>{for(const t of this.model.side_panels){if(this.renderer_views[t.id].layout.has_size_changed())return!0}return!1})()&&this.root.compute_layout()}get_renderer_views(){return this.computed_renderers.map(t=>this.renderer_views[t.id])}async build_renderer_views(){this.computed_renderers=[];const{above:t,below:e,left:i,right:s,center:n,renderers:a}=this.model;this.computed_renderers.push(…t,…e,…i,…s,…n,…a),null!=this._title&&this.computed_renderers.push(this._title),null!=this._toolbar&&this.computed_renderers.push(this._toolbar);for(const t of this.model.toolbar.tools)null!=t.overlay&&this.computed_renderers.push(t.overlay),this.computed_renderers.push(…t.synthetic_renderers);await p.build_views(this.renderer_views,this.computed_renderers,{parent:this})}async build_tool_views(){const t=this.model.toolbar.tools;(await p.build_views(this.tool_views,t,{parent:this})).map(t=>this.ui_event_bus.register_tool(t))}connect_signals(){super.connect_signals();const{x_ranges:t,y_ranges:e}=this.frame;for(const e in t){const i=t[e];this.connect(i.change,()=>{this._needs_layout=!0,this.request_paint()})}for(const t in e){const i=e[t];this.connect(i.change,()=>{this._needs_layout=!0,this.request_paint()})}const{above:i,below:s,left:n,right:a,center:o,renderers:r}=this.model.properties;this.on_change([i,s,n,a,o,r],async()=>await this.build_renderer_views()),this.connect(this.model.toolbar.properties.tools.change,async()=>{await this.build_renderer_views(),await this.build_tool_views()}),this.connect(this.model.change,()=>this.request_paint()),this.connect(this.model.reset,()=>this.reset())}set_initial_range(){let t=!0;const{x_ranges:e,y_ranges:i}=this.frame,s={},n={};for(const i in e){const{start:n,end:a}=e[i];if(null==n||null==a||w.isStrictNaN(n+a)){t=!1;break}s[i]={start:n,end:a}}if(t)for(const e in i){const{start:s,end:a}=i[e];if(null==s||null==a||w.isStrictNaN(s+a)){t=!1;break}n[e]={start:s,end:a}}t?(this._initial_state_info.range={xrs:s,yrs:n},b.logger.debug("initial ranges set")):b.logger.warn("could not set initial ranges")}has_finished(){if(!super.has_finished())return!1;for(const t in this.renderer_views){if(!this.renderer_views[t].has_finished())return!1}return!0}after_layout(){if(super.after_layout(),this._needs_layout=!1,this.model.setv({inner_width:Math.round(this.frame._width.value),inner_height:Math.round(this.frame._height.value),outer_width:Math.round(this.layout._width.value),outer_height:Math.round(this.layout._height.value)},{no_change:!0}),!1!==this.model.match_aspect&&(this.pause(),this.update_dataranges(),this.unpause(!0)),!this._outer_bbox.equals(this.layout.bbox)){const{width:t,height:e}=this.layout.bbox;this.canvas_view.prepare_canvas(t,e),this._outer_bbox=this.layout.bbox,this._needs_paint=!0}this._inner_bbox.equals(this.frame.inner_bbox)||(this._inner_bbox=this.layout.inner_bbox,this._needs_paint=!0),this._needs_paint&&(this._needs_paint=!1,this.paint())}repaint(){this._needs_layout&&this._invalidate_layout(),this.paint()}paint(){if(this.is_paused)return;b.logger.trace(`PlotView.paint() for ${this.model.id}`);const{document:t}=this.model;if(null!=t){const e=t.interactive_duration();e>=0&&e<this.model.lod_interval?setTimeout(()=>{t.interactive_duration()>this.model.lod_timeout&&t.interactive_stop(this.model),this.request_paint()},this.model.lod_timeout):t.interactive_stop(this.model)}for(const t in this.renderer_views){const e=this.renderer_views[t];if(null==this.range_update_timestamp||e instanceof r.GlyphRendererView&&e.set_data_timestamp>this.range_update_timestamp){this.update_dataranges();break}}const{ctx:e}=this.canvas_view,i=this.canvas.pixel_ratio;e.save(),this.model.hidpi&&(e.scale(i,i),e.translate(.5,.5));const s=[this.frame._left.value,this.frame._top.value,this.frame._width.value,this.frame._height.value];if(this._map_hook(e,s),this._paint_empty(e,s),this.prepare_webgl(i,s),this.clear_webgl(),this.visuals.outline_line.doit){e.save(),this.visuals.outline_line.set_value(e);let[t,i,n,a]=s;t+n==this.layout._width.value&&(n-=1),i+a==this.layout._height.value&&(a-=1),e.strokeRect(t,i,n,a),e.restore()}this._paint_levels(e,["image","underlay","glyph"],s,!0),this._paint_levels(e,["annotation"],s,!1),this._paint_levels(e,["overlay"],s,!1),null==this._initial_state_info.range&&this.set_initial_range(),e.restore()}_paint_levels(t,e,i,s){for(const n of e)for(const e of this.computed_renderers){if(e.level!=n)continue;const a=this.renderer_views[e.id];t.save(),(s||a.needs_clip)&&(t.beginPath(),t.rect(…i),t.clip()),a.render(),t.restore(),a.has_webgl&&(this.blit_webgl(),this.clear_webgl())}}_map_hook(t,e){}_paint_empty(t,e){const[i,s,n,a]=[0,0,this.layout._width.value,this.layout._height.value],[o,r,l,h]=e;t.clearRect(i,s,n,a),this.visuals.border_fill.doit&&(this.visuals.border_fill.set_value(t),t.fillRect(i,s,n,a),t.clearRect(o,r,l,h)),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(o,r,l,h))}save(t){this.canvas_view.save(t)}serializable_state(){const t=super.serializable_state(),{children:e}=t,i=s(t,["children"]),n=this.get_renderer_views().map(t=>t.serializable_state()).filter(t=>"bbox"in t);return Object.assign(Object.assign({},i),{children:[…e,…n]})}}i.PlotView=k,k.__name__="PlotView"},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});var n=this&&this.__decorate||function(e,t,s,n){var _,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,n);else for(var r=e.length-1;r>=0;r–)(_=e[r])&&(o=(a<3?_(o):a>3?_(t,s,o):_(t,s))||o);return a>3&&o&&Object.defineProperty(t,s,o),o};function _(e){return function(t){t.prototype.event_name=e}}class a{constructor(){this.origin=null}to_json(){const{event_name:e}=this;return{event_name:e,event_values:this._to_json()}}_to_json(){return{model:this.origin}}}s.BokehEvent=a,a.__name__="BokehEvent";let o=class extends a{};s.ButtonClick=o,o.__name__="ButtonClick",s.ButtonClick=o=n([_("button_click")],o);let r=class extends a{constructor(e){super(),this.item=e}_to_json(){const{item:e}=this;return Object.assign(Object.assign({},super._to_json()),{item:e})}};s.MenuItemClick=r,r.__name__="MenuItemClick",s.MenuItemClick=r=n([_("menu_item_click")],r);class c extends a{}s.UIEvent=c,c.__name__="UIEvent";let i=class extends c{};s.LODStart=i,i.__name__="LODStart",s.LODStart=i=n([_("lodstart")],i);let l=class extends c{};s.LODEnd=l,l.__name__="LODEnd",s.LODEnd=l=n([_("lodend")],l);let u=class extends c{constructor(e,t){super(),this.geometry=e,this.final=t}_to_json(){const{geometry:e,final:t}=this;return Object.assign(Object.assign({},super._to_json()),{geometry:e,final:t})}};s.SelectionGeometry=u,u.__name__="SelectionGeometry",s.SelectionGeometry=u=n([_("selectiongeometry")],u);let h=class extends c{};s.Reset=h,h.__name__="Reset",s.Reset=h=n([_("reset")],h);class d extends c{constructor(e,t,s,n){super(),this.sx=e,this.sy=t,this.x=s,this.y=n}_to_json(){const{sx:e,sy:t,x:s,y:n}=this;return Object.assign(Object.assign({},super._to_json()),{sx:e,sy:t,x:s,y:n})}}s.PointEvent=d,d.__name__="PointEvent";let m=class extends d{constructor(e,t,s,n,_,a){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.delta_x=_,this.delta_y=a}_to_json(){const{delta_x:e,delta_y:t}=this;return Object.assign(Object.assign({},super._to_json()),{delta_x:e,delta_y:t})}};s.Pan=m,m.__name__="Pan",s.Pan=m=n([_("pan")],m);let p=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.scale=_}_to_json(){const{scale:e}=this;return Object.assign(Object.assign({},super._to_json()),{scale:e})}};s.Pinch=p,p.__name__="Pinch",s.Pinch=p=n([_("pinch")],p);let x=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.rotation=_}_to_json(){const{rotation:e}=this;return Object.assign(Object.assign({},super._to_json()),{rotation:e})}};s.Rotate=x,x.__name__="Rotate",s.Rotate=x=n([_("rotate")],x);let j=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.delta=_}_to_json(){const{delta:e}=this;return Object.assign(Object.assign({},super._to_json()),{delta:e})}};s.MouseWheel=j,j.__name__="MouseWheel",s.MouseWheel=j=n([_("wheel")],j);let y=class extends d{};s.MouseMove=y,y.__name__="MouseMove",s.MouseMove=y=n([_("mousemove")],y);let P=class extends d{};s.MouseEnter=P,P.__name__="MouseEnter",s.MouseEnter=P=n([_("mouseenter")],P);let O=class extends d{};s.MouseLeave=O,O.__name__="MouseLeave",s.MouseLeave=O=n([_("mouseleave")],O);let b=class extends d{};s.Tap=b,b.__name__="Tap",s.Tap=b=n([_("tap")],b);let g=class extends d{};s.DoubleTap=g,g.__name__="DoubleTap",s.DoubleTap=g=n([_("doubletap")],g);let v=class extends d{};s.Press=v,v.__name__="Press",s.Press=v=n([_("press")],v);let E=class extends d{};s.PressUp=E,E.__name__="PressUp",s.PressUp=E=n([_("pressup")],E);let M=class extends d{};s.PanStart=M,M.__name__="PanStart",s.PanStart=M=n([_("panstart")],M);let f=class extends d{};s.PanEnd=f,f.__name__="PanEnd",s.PanEnd=f=n([_("panend")],f);let R=class extends d{};s.PinchStart=R,R.__name__="PinchStart",s.PinchStart=R=n([_("pinchstart")],R);let S=class extends d{};s.PinchEnd=S,S.__name__="PinchEnd",s.PinchEnd=S=n([_("pinchend")],S);let k=class extends d{};s.RotateStart=k,k.__name__="RotateStart",s.RotateStart=k=n([_("rotatestart")],k);let D=class extends d{};s.RotateEnd=D,D.__name__="RotateEnd",s.RotateEnd=D=n([_("rotateend")],D)},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),i=n.__importDefault(t(283)),r=t(14),a=t(70),h=t(66),_=t(284),o=t(9),c=t(24),l=t(8),p=t(101),u=n.__importStar(t(281));class d{constructor(t,e,s){this.plot_view=t,this.toolbar=e,this.hit_area=s,this.pan_start=new r.Signal(this,"pan:start"),this.pan=new r.Signal(this,"pan"),this.pan_end=new r.Signal(this,"pan:end"),this.pinch_start=new r.Signal(this,"pinch:start"),this.pinch=new r.Signal(this,"pinch"),this.pinch_end=new r.Signal(this,"pinch:end"),this.rotate_start=new r.Signal(this,"rotate:start"),this.rotate=new r.Signal(this,"rotate"),this.rotate_end=new r.Signal(this,"rotate:end"),this.tap=new r.Signal(this,"tap"),this.doubletap=new r.Signal(this,"doubletap"),this.press=new r.Signal(this,"press"),this.pressup=new r.Signal(this,"pressup"),this.move_enter=new r.Signal(this,"move:enter"),this.move=new r.Signal(this,"move"),this.move_exit=new r.Signal(this,"move:exit"),this.scroll=new r.Signal(this,"scroll"),this.keydown=new r.Signal(this,"keydown"),this.keyup=new r.Signal(this,"keyup"),this.hammer=new i.default(this.hit_area,{touchAction:"auto",inputClass:i.default.TouchMouseInput}),this._configure_hammerjs(),this.hit_area.addEventListener("mousemove",t=>this._mouse_move(t)),this.hit_area.addEventListener("mouseenter",t=>this._mouse_enter(t)),this.hit_area.addEventListener("mouseleave",t=>this._mouse_exit(t)),this.hit_area.addEventListener("wheel",t=>this._mouse_wheel(t)),document.addEventListener("keydown",this),document.addEventListener("keyup",this)}destroy(){this.hammer.destroy(),document.removeEventListener("keydown",this),document.removeEventListener("keyup",this)}handleEvent(t){"keydown"==t.type?this._key_down(t):"keyup"==t.type&&this._key_up(t)}_configure_hammerjs(){this.hammer.get("doubletap").recognizeWith("tap"),this.hammer.get("tap").requireFailure("doubletap"),this.hammer.get("doubletap").dropRequireFailure("tap"),this.hammer.on("doubletap",t=>this._doubletap(t)),this.hammer.on("tap",t=>this._tap(t)),this.hammer.on("press",t=>this._press(t)),this.hammer.on("pressup",t=>this._pressup(t)),this.hammer.get("pan").set({direction:i.default.DIRECTION_ALL}),this.hammer.on("panstart",t=>this._pan_start(t)),this.hammer.on("pan",t=>this._pan(t)),this.hammer.on("panend",t=>this._pan_end(t)),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("pinchstart",t=>this._pinch_start(t)),this.hammer.on("pinch",t=>this._pinch(t)),this.hammer.on("pinchend",t=>this._pinch_end(t)),this.hammer.get("rotate").set({enable:!0}),this.hammer.on("rotatestart",t=>this._rotate_start(t)),this.hammer.on("rotate",t=>this._rotate(t)),this.hammer.on("rotateend",t=>this._rotate_end(t))}register_tool(t){const e=t.model.event_type;null!=e&&(l.isString(e)?this._register_tool(t,e):e.forEach((e,s)=>this._register_tool(t,e,s<1)))}_register_tool(t,e,s=!0){const n=t,{id:i}=n.model,r=t=>e=>{e.id==i&&t(e.e)},h=t=>e=>{t(e.e)};switch(e){case"pan":null!=n._pan_start&&n.connect(this.pan_start,r(n._pan_start.bind(n))),null!=n._pan&&n.connect(this.pan,r(n._pan.bind(n))),null!=n._pan_end&&n.connect(this.pan_end,r(n._pan_end.bind(n)));break;case"pinch":null!=n._pinch_start&&n.connect(this.pinch_start,r(n._pinch_start.bind(n))),null!=n._pinch&&n.connect(this.pinch,r(n._pinch.bind(n))),null!=n._pinch_end&&n.connect(this.pinch_end,r(n._pinch_end.bind(n)));break;case"rotate":null!=n._rotate_start&&n.connect(this.rotate_start,r(n._rotate_start.bind(n))),null!=n._rotate&&n.connect(this.rotate,r(n._rotate.bind(n))),null!=n._rotate_end&&n.connect(this.rotate_end,r(n._rotate_end.bind(n)));break;case"move":null!=n._move_enter&&n.connect(this.move_enter,r(n._move_enter.bind(n))),null!=n._move&&n.connect(this.move,r(n._move.bind(n))),null!=n._move_exit&&n.connect(this.move_exit,r(n._move_exit.bind(n)));break;case"tap":null!=n._tap&&n.connect(this.tap,r(n._tap.bind(n)));break;case"press":null!=n._press&&n.connect(this.press,r(n._press.bind(n))),null!=n._pressup&&n.connect(this.pressup,r(n._pressup.bind(n)));break;case"scroll":null!=n._scroll&&n.connect(this.scroll,r(n._scroll.bind(n)));break;default:throw new Error(`unsupported event_type: ${e}`)}s&&(null!=n._doubletap&&n.connect(this.doubletap,h(n._doubletap.bind(n))),null!=n._keydown&&n.connect(this.keydown,h(n._keydown.bind(n))),null!=n._keyup&&n.connect(this.keyup,h(n._keyup.bind(n))),p.is_mobile&&null!=n._scroll&&"pinch"==e&&(a.logger.debug("Registering scroll on touch screen"),n.connect(this.scroll,r(n._scroll.bind(n)))))}_hit_test_renderers(t,e){const s=this.plot_view.get_renderer_views();for(const n of o.reversed(s)){const{level:s}=n.model;if(("annotation"==s||"overlay"==s)&&null!=n.interactive_hit&&n.interactive_hit(t,e))return n}return null}_hit_test_frame(t,e){return this.plot_view.frame.bbox.contains(t,e)}_hit_test_canvas(t,e){return this.plot_view.layout.bbox.contains(t,e)}_trigger(t,e,s){const n=this.toolbar.gestures,i=t.name.split(":")[0],r=this._hit_test_renderers(e.sx,e.sy),a=this._hit_test_canvas(e.sx,e.sy);switch(i){case"move":{const s=n[i].active;null!=s&&this.trigger(t,e,s.id);const h=this.toolbar.inspectors.filter(t=>t.active);let _="default";null!=r?(_=r.cursor(e.sx,e.sy)||_,c.isEmpty(h)||(t=this.move_exit)):this._hit_test_frame(e.sx,e.sy)&&(c.isEmpty(h)||(_="crosshair")),this.plot_view.set_cursor(_),this.plot_view.set_toolbar_visibility(a),h.map(s=>this.trigger(t,e,s.id));break}case"tap":{const{target:a}=s;if(null!=a&&a!=this.hit_area)return;null!=r&&null!=r.on_hit&&r.on_hit(e.sx,e.sy);const h=n[i].active;null!=h&&this.trigger(t,e,h.id);break}case"scroll":{const i=n[p.is_mobile?"pinch":"scroll"].active;null!=i&&(s.preventDefault(),s.stopPropagation(),this.trigger(t,e,i.id));break}case"pan":{const r=n[i].active;null!=r&&(s.preventDefault(),this.trigger(t,e,r.id));break}default:{const s=n[i].active;null!=s&&this.trigger(t,e,s.id)}}this._trigger_bokeh_event(e)}trigger(t,e,s=null){t.emit({id:s,e})}_trigger_bokeh_event(t){const e=(()=>{const e=this.plot_view.frame.xscales.default,s=this.plot_view.frame.yscales.default,{sx:n,sy:i}=t,r=e.invert(n),a=s.invert(i);switch(t.type){case"wheel":return new u.MouseWheel(n,i,r,a,t.delta);case"mousemove":return new u.MouseMove(n,i,r,a);case"mouseenter":return new u.MouseEnter(n,i,r,a);case"mouseleave":return new u.MouseLeave(n,i,r,a);case"tap":return new u.Tap(n,i,r,a);case"doubletap":return new u.DoubleTap(n,i,r,a);case"press":return new u.Press(n,i,r,a);case"pressup":return new u.PressUp(n,i,r,a);case"pan":return new u.Pan(n,i,r,a,t.deltaX,t.deltaY);case"panstart":return new u.PanStart(n,i,r,a);case"panend":return new u.PanEnd(n,i,r,a);case"pinch":return new u.Pinch(n,i,r,a,t.scale);case"pinchstart":return new u.PinchStart(n,i,r,a);case"pinchend":return new u.PinchEnd(n,i,r,a);case"rotate":return new u.Rotate(n,i,r,a,t.rotation);case"rotatestart":return new u.RotateStart(n,i,r,a);case"rotateend":return new u.RotateEnd(n,i,r,a);default:return}})();null!=e&&this.plot_view.model.trigger_event(e)}_get_sxy(t){const{pageX:e,pageY:s}=function(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}(t)?(0!=t.touches.length?t.touches:t.changedTouches)[0]:t,{left:n,top:i}=h.offset(this.hit_area);return{sx:e-n,sy:s-i}}_pan_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{deltaX:t.deltaX,deltaY:t.deltaY,shiftKey:t.srcEvent.shiftKey})}_pinch_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{scale:t.scale,shiftKey:t.srcEvent.shiftKey})}_rotate_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{rotation:t.rotation,shiftKey:t.srcEvent.shiftKey})}_tap_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{shiftKey:t.srcEvent.shiftKey})}_move_event(t){return Object.assign({type:t.type},this._get_sxy(t))}_scroll_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t)),{delta:_.getDeltaY(t)})}_key_event(t){return{type:t.type,keyCode:t.keyCode}}_pan_start(t){const e=this._pan_event(t);e.sx-=t.deltaX,e.sy-=t.deltaY,this._trigger(this.pan_start,e,t.srcEvent)}_pan(t){this._trigger(this.pan,this._pan_event(t),t.srcEvent)}_pan_end(t){this._trigger(this.pan_end,this._pan_event(t),t.srcEvent)}_pinch_start(t){this._trigger(this.pinch_start,this._pinch_event(t),t.srcEvent)}_pinch(t){this._trigger(this.pinch,this._pinch_event(t),t.srcEvent)}_pinch_end(t){this._trigger(this.pinch_end,this._pinch_event(t),t.srcEvent)}_rotate_start(t){this._trigger(this.rotate_start,this._rotate_event(t),t.srcEvent)}_rotate(t){this._trigger(this.rotate,this._rotate_event(t),t.srcEvent)}_rotate_end(t){this._trigger(this.rotate_end,this._rotate_event(t),t.srcEvent)}_tap(t){this._trigger(this.tap,this._tap_event(t),t.srcEvent)}_doubletap(t){const e=this._tap_event(t);this._trigger_bokeh_event(e),this.trigger(this.doubletap,e)}_press(t){this._trigger(this.press,this._tap_event(t),t.srcEvent)}_pressup(t){this._trigger(this.pressup,this._tap_event(t),t.srcEvent)}_mouse_enter(t){this._trigger(this.move_enter,this._move_event(t),t)}_mouse_move(t){this._trigger(this.move,this._move_event(t),t)}_mouse_exit(t){this._trigger(this.move_exit,this._move_event(t),t)}_mouse_wheel(t){this._trigger(this.scroll,this._scroll_event(t),t)}_key_down(t){this.trigger(this.keydown,this._key_event(t))}_key_up(t){this.trigger(this.keyup,this._key_event(t))}}s.UIEvents=d,d.__name__="UIEvents"},n”, ” function _(t,e,n){n”, ” /! Hammer.JS - v2.0.7 - 2016-04-22n”, ” * http://hammerjs.github.io/n”, ” n”, ” * Copyright (c) 2016 Jorik Tangelder;n”, ” * Licensed under the MIT license */n”, ” !function(t,n,i,r){"use strict";var s,o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),h=Math.round,u=Math.abs,c=Date.now;function l(t,e,n){return setTimeout(y(t,n),e)}function p(t,e,n){return!!Array.isArray(t)&&(f(t,n[e],n),!0)}function f(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function v(e,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,r,i),e.apply(this,arguments)}}s="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var d=v((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use assign."),m=v((function(t,e){return d(t,e,!0)}),"merge","Use assign.");function g(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&s(i,n)}function y(t,e){return function(){return t.apply(e,arguments)}}function T(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function E(t,e){return void 0===t?e:t}function I(t,e,n){f(S(e),(function(e){t.addEventListener(e,n,!1)}))}function A(t,e,n){f(S(e),(function(e){t.removeEventListener(e,n,!1)}))}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function C(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function b(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];b(r,o)<0&&i.push(t[s]),r[s]=o,s++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function D(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<o.length;){if((i=(n=o[s])?n+r:e)in t)return i;s++}}var w=1;function O(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var R="ontouchstart"in t,M=void 0!==D(t,"PointerEvent"),z=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N=["x","y"],X=["clientX","clientY"];function Y(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){T(t.options.enable,[t])&&n.handler(e)},this.init()}function F(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=W(e));r>1&&!n.firstMultiple?n.firstMultiple=W(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,h=e.center=q(i);e.timeStamp=c(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=U(a,h),e.distance=L(a,h),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=H(e.deltaX,e.deltaY);var l=k(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=u(l.x)>u(l.y)?l.x:l.y,e.scale=o?(p=o.pointers,f=i,L(f[0],f[1],X)/L(p[0],p[1],X)):1,e.rotation=o?function(t,e){return U(e[1],e[0],X)+U(t[1],t[0],X)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,o=t.lastInterval||e,a=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(a>25||void 0===o.velocity)){var h=e.deltaX-o.deltaX,c=e.deltaY-o.deltaY,l=k(a,h,c);i=l.x,r=l.y,n=u(l.x)>u(l.y)?l.x:l.y,s=H(h,c),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var p,f;var v=t.element;_(e.srcEvent.target,v)&&(v=e.srcEvent.target);e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:e,center:q(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:h(n/e),y:h(i/e)}}function k(t,e,n){return{x:e/t||0,y:n/t||0}}function H(t,e){return t===e?1:u(t)>=u(e)?t<0?2:4:e<0?8:16}function L(t,e,n){n||(n=N);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function U(t,e,n){n||(n=N);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}Y.prototype={handler:function(){},init:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(O(this.element),this.evWin,this.domHandler)}};var V={mousedown:1,mousemove:2,mouseup:4};function j(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,Y.apply(this,arguments)}g(j,Y,{handler:function(t){var e=V[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var G={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},B="pointerdown",$="pointermove pointerup pointercancel";function J(){this.evEl=B,this.evWin=$,Y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(B="MSPointerDown",$="MSPointerMove MSPointerUp MSPointerCancel"),g(J,Y,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=G[i],s=Z[t.pointerType]||t.pointerType,o="touch"==s,a=b(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var K={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Q(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Y.apply(this,arguments)}function tt(t,e){var n=x(t.touches),i=x(t.changedTouches);return 12&e&&(n=P(n.concat(i),"identifier",!0)),[n,i]}g(Q,Y,{handler:function(t){var e=K[t.type];if(1===e&&(this.started=!0),this.started){var n=tt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},Y.apply(this,arguments)}function it(t,e){var n=x(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=x(t.changedTouches),a=[],h=this.target;if(s=n.filter((function(t){return _(t.target,h)})),1===e)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),12&e&&delete i[o[r].identifier],r++;return a.length?[P(s.concat(a),"identifier",!0),a]:void 0}g(nt,Y,{handler:function(t){var e=et[t.type],n=it.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});function rt(){Y.apply(this,arguments);var t=y(this.handler,this);this.touch=new nt(this.manager,t),this.mouse=new j(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function st(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ot.call(this,e)):12&t&&ot.call(this,e)}function ot(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function at(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}g(rt,Y,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)st.call(this,e,n);else if(r&&at.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ht=D(a.style,"touchAction"),ut=void 0!==ht,ct=function(){if(!ut)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){e[i]=!n||t.CSS.supports("touch-action",i)})),e}();function lt(t,e){this.manager=t,this.set(e)}lt.prototype={set:function(t){"compute"==t&&(t=this.compute()),ut&&this.manager.element.style&&ct[t]&&(this.manager.element.style[ht]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,(function(e){T(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(C(t,"none"))return"none";var e=C(t,"pan-x"),n=C(t,"pan-y");if(e&&n)return"none";if(e||n)return e?"pan-x":"pan-y";if(C(t,"manipulation"))return"manipulation";return"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=C(i,"none")&&!ct.none,s=C(i,"pan-y")&&!ct["pan-y"],o=C(i,"pan-x")&&!ct["pan-x"];if(r){var a=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(a&&h&&u)return}if(!o||!s)return r||s&&6&n||o&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};function pt(t){this.options=s({},this.defaults,t||{}),this.id=w++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ft(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function vt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function dt(t,e){var n=e.manager;return n?n.get(t):t}function mt(){pt.apply(this,arguments)}function gt(){mt.apply(this,arguments),this.pX=null,this.pY=null}function yt(){mt.apply(this,arguments)}function Tt(){pt.apply(this,arguments),this._timer=null,this._input=null}function Et(){mt.apply(this,arguments)}function It(){mt.apply(this,arguments)}function At(){pt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function _t(t,e){return(e=e||{}).recognizers=E(e.recognizers,_t.defaults.preset),new Ct(t,e)}pt.prototype={defaults:{},set:function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(p(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=dt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return p(t,"dropRecognizeWith",this)||(t=dt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(p(t,"requireFailure",this))return this;var e=this.requireFail;return-1===b(e,t=dt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(p(t,"dropRequireFailure",this))return this;t=dt(t,this);var e=b(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+ft(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+ft(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=s({},t);if(!T(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},g(mt,pt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:32}}),g(gt,mt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return mt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=vt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),g(yt,mt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),g(Tt,pt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=l((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),g(Et,mt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),g(It,mt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return gt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=vt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),g(At,pt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||L(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=l((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),_t.VERSION="2.0.7",_t.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Et,{enable:!1}],[yt,{enable:!1},["rotate"]],[It,{direction:6}],[gt,{direction:6},["swipe"]],[At],[At,{event:"doubletap",taps:2},["tap"]],[Tt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ct(t,e){var n;this.options=s({},_t.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(M?J:z?nt:R?rt:j))(n,F),this.touchAction=new lt(this,this.options.touchAction),St(this,!0),f(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function St(t,e){var n,i=t.element;i.style&&(f(t.options.cssProps,(function(r,s){n=D(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Ct.prototype={set:function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof pt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(p(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(p(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=b(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return f(S(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return f(S(t),(function(t){e?n[t]&&n[t].splice(b(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var i=n.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<i.length;)i[r](e),r++}},destroy:function(){this.element&&St(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(_t,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ct,Input:Y,TouchAction:lt,TouchInput:nt,MouseInput:j,PointerEventInput:J,TouchMouseInput:rt,SingleTouchInput:Q,Recognizer:pt,AttrRecognizer:mt,Tap:At,Pan:gt,Swipe:It,Pinch:yt,Rotate:Et,Press:Tt,on:I,off:A,each:f,merge:m,extend:d,assign:s,inherit:g,bindFn:y,prefixed:D}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=_t,"function"==typeof define&&define.amd?define((function(){return _t})):void 0!==e&&e.exports?e.exports=_t:t.Hammer=_t}(window,document)},n”, ” function _(e,t,n){n”, ” /!n”, ” * jQuery Mousewheel 3.1.13n”, ” *n”, ” * Copyright jQuery Foundation and other contributorsn”, ” * Released under the MIT licensen”, ” * http://jquery.org/licensen”, ” */n”, ” function r(e){const t=getComputedStyle(e).fontSize;return null!=t?parseInt(t,10):null}Object.defineProperty(n,"__esModule",{value:!0}),n.getDeltaY=function(e){let t=-e.deltaY;if(e.target instanceof HTMLElement)switch(e.deltaMode){case e.DOM_DELTA_LINE:t*=r((n=e.target).offsetParent||document.body)||r(n)||16;break;case e.DOM_DELTA_PAGE:t*=function(e){return e.clientHeight}(e.target)}var n;return t}},n”, ” function _(n,e,o){Object.defineProperty(o,"__esModule",{value:!0});const t=("undefined"!=typeof window?window.requestAnimationFrame:void 0)||("undefined"!=typeof window?window.webkitRequestAnimationFrame:void 0)||("undefined"!=typeof window?window.mozRequestAnimationFrame:void 0)||("undefined"!=typeof window?window.msRequestAnimationFrame:void 0)||function(n){return n(Date.now()),-1};o.throttle=function(n,e){let o=null,i=0,u=!1;return function(){return new Promise((d,w)=>{const r=function(){i=Date.now(),o=null,u=!1;try{n(),d()}catch(n){w(n)}},a=Date.now(),f=e-(a-i);f<=0&&!u?(null!=o&&clearTimeout(o),u=!0,t(r)):o||u?d():o=setTimeout(()=>t(r),f)})}}},n”, ” function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const l=i(188),a=i(189),r=i(8),h=Math.PI/2,o="left",s="center",n={above:{parallel:0,normal:-h,horizontal:0,vertical:-h},below:{parallel:0,normal:h,horizontal:0,vertical:h},left:{parallel:-h,normal:0,horizontal:0,vertical:-h},right:{parallel:h,normal:0,horizontal:0,vertical:h}},d={above:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"alphabetic",vertical:"middle"},below:{justified:"bottom",parallel:"hanging",normal:"middle",horizontal:"hanging",vertical:"middle"},left:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"},right:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"}},_={above:{justified:s,parallel:s,normal:o,horizontal:s,vertical:o},below:{justified:s,parallel:s,normal:o,horizontal:s,vertical:o},left:{justified:s,parallel:s,normal:"right",horizontal:"right",vertical:s},right:{justified:s,parallel:s,normal:o,horizontal:o,vertical:s}},c={above:"right",below:o,left:"right",right:o},m={above:o,below:"right",left:"right",right:o};class g extends a.ContentLayoutable{constructor(i,t){switch(super(),this.side=i,this.obj=t,this.side){case"above":this._dim=0,this._normals=[0,-1];break;case"below":this._dim=0,this._normals=[0,1];break;case"left":this._dim=1,this._normals=[-1,0];break;case"right":this._dim=1,this._normals=[1,0]}this.is_horizontal?this.set_sizing({width_policy:"max",height_policy:"fixed"}):this.set_sizing({width_policy:"fixed",height_policy:"max"})}_content_size(){return new l.Sizeable(this.get_oriented_size())}get_oriented_size(){const{width:i,height:t}=this.obj.get_size();return!this.obj.rotate||this.is_horizontal?{width:i,height:t}:{width:t,height:i}}has_size_changed(){const{width:i,height:t}=this.get_oriented_size();return this.is_horizontal?this.bbox.height!=t:this.bbox.width!=i}get dimension(){return this._dim}get normals(){return this._normals}get is_horizontal(){return 0==this._dim}get is_vertical(){return 1==this._dim}apply_label_text_heuristics(i,t){const e=this.side;let l,a;r.isString(t)?(l=d[e][t],a=_[e][t]):0===t?(l="whatever",a="whatever"):t<0?(l="middle",a=c[e]):(l="middle",a=m[e]),i.textBaseline=l,i.textAlign=a}get_label_angle_heuristic(i){return n[this.side][i]}}e.SidePanel=g,g.__name__="SidePanel"},n”, ” function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(14),o=t(66),a=t(30),n=t(280),p=new i.Signal0({},"gmaps_ready");class l extends n.PlotView{initialize(){this.pause(),super.initialize(),this._tiles_loaded=!1,this.zoom_count=0;const{zoom:t,lat:e,lng:s}=this.model.map_options;if(this.initial_zoom=t,this.initial_lat=e,this.initial_lng=s,"undefined"==typeof google||null==google.maps){if(void 0===window._bokeh_gmaps_callback){!function(t){window._bokeh_gmaps_callback=()=>p.emit();const e=document.createElement("script");e.type="text/javascript",e.src=`https://maps.googleapis.com/maps/api/js?v=3.36&key=${t}&callback=_bokeh_gmaps_callback`,document.body.appendChild(e)}(atob(this.model.api_key))}p.connect(()=>this.request_render())}this.unpause()}remove(){o.remove(this.map_el),super.remove()}update_range(t){if(null==t)this.map.setCenter({lat:this.initial_lat,lng:this.initial_lng}),this.map.setOptions({zoom:this.initial_zoom}),super.update_range(null);else if(null!=t.sdx||null!=t.sdy)this.map.panBy(t.sdx||0,t.sdy||0),super.update_range(t);else if(null!=t.factor){if(10!==this.zoom_count)return void(this.zoom_count+=1);this.zoom_count=0,this.pause(),super.update_range(t);const e=t.factor<0?-1:1,s=this.map.getZoom(),i=s+e;if(i>=2){this.map.setZoom(i);const[t,e,,]=this._get_projected_bounds();e-t<0&&this.map.setZoom(s)}this.unpause()}this._set_bokeh_ranges()}_build_map(){const{maps:t}=google;this.map_types={satellite:t.MapTypeId.SATELLITE,terrain:t.MapTypeId.TERRAIN,roadmap:t.MapTypeId.ROADMAP,hybrid:t.MapTypeId.HYBRID};const e=this.model.map_options,s={center:new t.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:this.map_types[e.map_type],scaleControl:e.scale_control,tilt:e.tilt};null!=e.styles&&(s.styles=JSON.parse(e.styles)),this.map_el=o.div({style:{position:"absolute"}}),this.canvas_view.add_underlay(this.map_el),this.map=new t.Map(this.map_el,s),t.event.addListener(this.map,"idle",()=>this._set_bokeh_ranges()),t.event.addListener(this.map,"bounds_changed",()=>this._set_bokeh_ranges()),t.event.addListenerOnce(this.map,"tilesloaded",()=>this._render_finished()),this.connect(this.model.properties.map_options.change,()=>this._update_options()),this.connect(this.model.map_options.properties.styles.change,()=>this._update_styles()),this.connect(this.model.map_options.properties.lat.change,()=>this._update_center("lat")),this.connect(this.model.map_options.properties.lng.change,()=>this._update_center("lng")),this.connect(this.model.map_options.properties.zoom.change,()=>this._update_zoom()),this.connect(this.model.map_options.properties.map_type.change,()=>this._update_map_type()),this.connect(this.model.map_options.properties.scale_control.change,()=>this._update_scale_control()),this.connect(this.model.map_options.properties.tilt.change,()=>this._update_tilt())}_render_finished(){this._tiles_loaded=!0,this.notify_finished()}has_finished(){return super.has_finished()&&!0===this._tiles_loaded}_get_latlon_bounds(){const t=this.map.getBounds(),e=t.getNorthEast(),s=t.getSouthWest();return[s.lng(),e.lng(),s.lat(),e.lat()]}_get_projected_bounds(){const[t,e,s,i]=this._get_latlon_bounds(),[o,n]=a.wgs84_mercator.forward([t,s]),[p,l]=a.wgs84_mercator.forward([e,i]);return[o,p,n,l]}_set_bokeh_ranges(){const[t,e,s,i]=this._get_projected_bounds();this.frame.x_range.setv({start:t,end:e}),this.frame.y_range.setv({start:s,end:i})}_update_center(t){const e=this.map.getCenter().toJSON();e[t]=this.model.map_options[t],this.map.setCenter(e),this._set_bokeh_ranges()}_update_map_type(){this.map.setOptions({mapTypeId:this.map_types[this.model.map_options.map_type]})}_update_scale_control(){this.map.setOptions({scaleControl:this.model.map_options.scale_control})}_update_tilt(){this.map.setOptions({tilt:this.model.map_options.tilt})}_update_options(){this._update_styles(),this._update_center("lat"),this._update_center("lng"),this._update_zoom(),this._update_map_type()}_update_styles(){this.map.setOptions({styles:JSON.parse(this.model.map_options.styles)})}_update_zoom(){this.map.setOptions({zoom:this.model.map_options.zoom}),this._set_bokeh_ranges()}_map_hook(t,e){if(null==this.map&&"undefined"!=typeof google&&null!=google.maps&&this._build_map(),null!=this.map_el){const[t,s,i,o]=e;this.map_el.style.top=`${s}px`,this.map_el.style.left=`${t}px`,this.map_el.style.width=`${i}px`,this.map_el.style.height=`${o}px`}}_paint_empty(t,e){const s=this.layout._width.value,i=this.layout._height.value,[o,a,n,p]=e;t.clearRect(0,0,s,i),t.beginPath(),t.moveTo(0,0),t.lineTo(0,i),t.lineTo(s,i),t.lineTo(s,0),t.lineTo(0,0),t.moveTo(o,a),t.lineTo(o+n,a),t.lineTo(o+n,a+p),t.lineTo(o,a+p),t.lineTo(o,a),t.closePath(),null!=this.model.border_fill_color&&(t.fillStyle=this.model.border_fill_color,t.fill())}}s.GMapPlotView=l,l.__name__="GMapPlotView"},n”, ” function _(a,e,n){Object.defineProperty(n,"__esModule",{value:!0});var g=a(186);n.DataRange=g.DataRange;var R=a(185);n.DataRange1d=R.DataRange1d;var r=a(88);n.FactorRange=r.FactorRange;var t=a(89);n.Range=t.Range;var d=a(130);n.Range1d=d.Range1d},n”, ” function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});var n=e(78);d.GlyphRenderer=n.GlyphRenderer;var R=e(97);d.GraphRenderer=R.GraphRenderer;var a=e(149);d.GuideRenderer=a.GuideRenderer;var G=e(63);d.Renderer=G.Renderer},n”, ” function _(a,e,c){Object.defineProperty(c,"__esModule",{value:!0});var l=a(184);c.CategoricalScale=l.CategoricalScale;var o=a(120);c.ContinuousScale=o.ContinuousScale;var r=a(119);c.LinearScale=r.LinearScale;var S=a(129);c.LogScale=S.LogScale;var n=a(121);c.Scale=n.Scale},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),e(1).__exportStar(e(99),o);var n=e(76);o.Selection=n.Selection},n”, ” function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var o=a(293);r.ServerSentDataSource=o.ServerSentDataSource;var S=a(295);r.AjaxDataSource=S.AjaxDataSource;var u=a(73);r.ColumnDataSource=u.ColumnDataSource;var t=a(74);r.ColumnarDataSource=t.ColumnarDataSource;var c=a(95);r.CDSView=c.CDSView;var D=a(75);r.DataSource=D.DataSource;var v=a(296);r.GeoJSONDataSource=v.GeoJSONDataSource;var n=a(294);r.WebDataSource=n.WebDataSource},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const a=e(294);class s extends a.WebDataSource{constructor(e){super(e),this.initialized=!1}destroy(){super.destroy()}setup(){if(!this.initialized){this.initialized=!0,new EventSource(this.data_url).onmessage=e=>{this.load_data(JSON.parse(e.data),this.mode,this.max_size)}}}}i.ServerSentDataSource=s,s.__name__="ServerSentDataSource"},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const r=e(1),s=e(73),i=r.__importStar(e(19));class n extends s.ColumnDataSource{constructor(e){super(e)}get_column(e){const t=this.data[e];return null!=t?t:[]}initialize(){super.initialize(),this.setup()}load_data(e,t,a){const{adapter:r}=this;let s;switch(s=null!=r?r.execute(this,{response:e}):e,t){case"replace":this.data=s;break;case"append":{const e=this.data;for(const t of this.columns()){const r=Array.from(e[t]),i=Array.from(s[t]);s[t]=r.concat(i).slice(-a)}this.data=s;break}}}static init_WebDataSource(){this.define({mode:[i.UpdateMode,"replace"],max_size:[i.Number],adapter:[i.Any,null],data_url:[i.String]})}}a.WebDataSource=n,n.__name__="WebDataSource",n.init_WebDataSource()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),a=t(294),r=t(70),o=s.__importStar(t(19));class n extends a.WebDataSource{constructor(t){super(t),this.initialized=!1}static init_AjaxDataSource(){this.define({polling_interval:[o.Number],content_type:[o.String,"application/json"],http_headers:[o.Any,{}],method:[o.HTTPMethod,"POST"],if_modified:[o.Boolean,!1]})}destroy(){null!=this.interval&&clearInterval(this.interval),super.destroy()}setup(){if(!this.initialized&&(this.initialized=!0,this.get_data(this.mode),this.polling_interval)){const t=()=>this.get_data(this.mode,this.max_size,this.if_modified);this.interval=setInterval(t,this.polling_interval)}}get_data(t,e=0,i=!1){const s=this.prepare_request();s.addEventListener("load",()=>this.do_load(s,t,e)),s.addEventListener("error",()=>this.do_error(s)),s.send()}prepare_request(){const t=new XMLHttpRequest;t.open(this.method,this.data_url,!0),t.withCredentials=!1,t.setRequestHeader("Content-Type",this.content_type);const e=this.http_headers;for(const i in e){const s=e[i];t.setRequestHeader(i,s)}return t}do_load(t,e,i){if(200===t.status){const s=JSON.parse(t.responseText);this.load_data(s,e,i)}}do_error(t){r.logger.error(`Failed to fetch JSON from ${this.data_url} with code ${t.status}`)}}i.AjaxDataSource=n,n.__name__="AjaxDataSource",n.init_AjaxDataSource()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1),n=e(74),s=e(70),a=r.__importStar(e(19)),i=e(9);function l(e){return null!=e?e:NaN}class c extends n.ColumnarDataSource{constructor(e){super(e)}static init_GeoJSONDataSource(){this.define({geojson:[a.Any]}),this.internal({data:[a.Any,{}]})}initialize(){super.initialize(),this._update_data()}connect_signals(){super.connect_signals(),this.connect(this.properties.geojson.change,()=>this._update_data())}_update_data(){this.data=this.geojson_to_column_data()}_get_new_list_array(e){return i.range(0,e).map(e=>[])}_get_new_nan_array(e){return i.range(0,e).map(e=>NaN)}_add_properties(e,t,o,r){const n=e.properties||{};for(const e in n)t.hasOwnProperty(e)||(t[e]=this._get_new_nan_array(r)),t[e][o]=l(n[e])}_add_geometry(e,t,o){function r(e,t){return e.concat([[NaN,NaN,NaN]]).concat(t)}switch(e.type){case"Point":{const[r,n,s]=e.coordinates;t.x[o]=r,t.y[o]=n,t.z[o]=l(s);break}case"LineString":{const{coordinates:r}=e;for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"Polygon":{e.coordinates.length>1&&s.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used.");const r=e.coordinates[0];for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"MultiPoint":s.logger.warn("MultiPoint not supported in Bokeh");break;case"MultiLineString":{const n=e.coordinates.reduce(r);for(let e=0;e<n.length;e++){const[r,s,a]=n[e];t.xs[o][e]=r,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"MultiPolygon":{const n=[];for(const t of e.coordinates)t.length>1&&s.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used."),n.push(t[0]);const a=n.reduce(r);for(let e=0;e<a.length;e++){const[r,n,s]=a[e];t.xs[o][e]=r,t.ys[o][e]=n,t.zs[o][e]=l(s)}break}default:throw new Error(`Invalid GeoJSON geometry type: ${e.type}`)}}geojson_to_column_data(){const e=JSON.parse(this.geojson);let t;switch(e.type){case"GeometryCollection":if(null==e.geometries)throw new Error("No geometries found in GeometryCollection");if(0===e.geometries.length)throw new Error("geojson.geometries must have one or more items");t=e.geometries;break;case"FeatureCollection":if(null==e.features)throw new Error("No features found in FeaturesCollection");if(0==e.features.length)throw new Error("geojson.features must have one or more items");t=e.features;break;default:throw new Error("Bokeh only supports type GeometryCollection and FeatureCollection at top level")}let o=0;for(const e of t){const t="Feature"===e.type?e.geometry:e;"GeometryCollection"==t.type?o+=t.geometries.length:o+=1}const r={x:this._get_new_nan_array(o),y:this._get_new_nan_array(o),z:this._get_new_nan_array(o),xs:this._get_new_list_array(o),ys:this._get_new_list_array(o),zs:this._get_new_list_array(o)};let n=0;for(const e of t){const t="Feature"==e.type?e.geometry:e;if("GeometryCollection"==t.type)for(const s of t.geometries)this._add_geometry(s,r,n),"Feature"===e.type&&this._add_properties(e,r,n,o),n+=1;else this._add_geometry(t,r,n),"Feature"===e.type&&this._add_properties(e,r,n,o),n+=1}return r}}o.GeoJSONDataSource=c,c.__name__="GeoJSONDataSource",c.init_GeoJSONDataSource()},n”, ” function _(e,r,i){Object.defineProperty(i,"__esModule",{value:!0});var c=e(109);i.AdaptiveTicker=c.AdaptiveTicker;var a=e(108);i.BasicTicker=a.BasicTicker;var k=e(151);i.CategoricalTicker=k.CategoricalTicker;var T=e(162);i.CompositeTicker=T.CompositeTicker;var t=e(110);i.ContinuousTicker=t.ContinuousTicker;var o=e(161);i.DatetimeTicker=o.DatetimeTicker;var v=e(163);i.DaysTicker=v.DaysTicker;var n=e(298);i.FixedTicker=n.FixedTicker;var s=e(170);i.LogTicker=s.LogTicker;var l=e(173);i.MercatorTicker=l.MercatorTicker;var u=e(166);i.MonthsTicker=u.MonthsTicker;var d=e(164);i.SingleIntervalTicker=d.SingleIntervalTicker;var g=e(111);i.Ticker=g.Ticker;var C=e(167);i.YearsTicker=C.YearsTicker},n”, ” function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=i(1),n=i(110),s=r.__importStar(i(19));class _ extends n.ContinuousTicker{constructor(i){super(i),this.min_interval=0,this.max_interval=0}static init_FixedTicker(){this.define({ticks:[s.Array,[]],minor_ticks:[s.Array,[]]})}get_ticks_no_defaults(i,t,e,r){return{major:this.ticks,minor:this.minor_ticks}}get_interval(i,t,e){return 0}}e.FixedTicker=_,_.__name__="FixedTicker",_.init_FixedTicker()},n”, ” function _(e,r,o){Object.defineProperty(o,"__esModule",{value:!0});var T=e(300);o.BBoxTileSource=T.BBoxTileSource;var c=e(301);o.MercatorTileSource=c.MercatorTileSource;var i=e(304);o.QUADKEYTileSource=i.QUADKEYTileSource;var l=e(305);o.TileRenderer=l.TileRenderer;var S=e(302);o.TileSource=S.TileSource;var u=e(308);o.TMSTileSource=u.TMSTileSource;var a=e(306);o.WMTSTileSource=a.WMTSTileSource},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(1),i=e(301),l=o.__importStar(e(19));class _ extends i.MercatorTileSource{constructor(e){super(e)}static init_BBoxTileSource(){this.define({use_latlon:[l.Boolean,!1]})}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars);let i,l,_,n;return this.use_latlon?[l,n,i,_]=this.get_tile_geographic_bounds(e,t,r):[l,n,i,_]=this.get_tile_meter_bounds(e,t,r),o.replace("{XMIN}",l.toString()).replace("{YMIN}",n.toString()).replace("{XMAX}",i.toString()).replace("{YMAX}",_.toString())}}r.BBoxTileSource=_,_.__name__="BBoxTileSource",_.init_BBoxTileSource()},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const _=t(1),s=t(302),r=_.__importStar(t(19)),o=t(9),n=t(303);class l extends s.TileSource{constructor(t){super(t)}static init_MercatorTileSource(){this.define({snap_to_zoom:[r.Boolean,!1],wrap_around:[r.Boolean,!0]}),this.override({x_origin_offset:20037508.34,y_origin_offset:20037508.34,initial_resolution:156543.03392804097})}initialize(){super.initialize(),this._resolutions=o.range(this.min_zoom,this.max_zoom+1).map(t=>this.get_resolution(t))}_computed_initial_resolution(){return null!=this.initial_resolution?this.initial_resolution:2*Math.PI*6378137/this.tile_size}is_valid_tile(t,e,i){return!(!this.wrap_around&&(t<0||t>=2**i))&&!(e<0||e>=2**i)}parent_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=_.substring(0,_.length-1);return this.quadkey_to_tile_xyz(s)}get_resolution(t){return this._computed_initial_resolution()/2**t}get_resolution_by_extent(t,e,i){return[(t[2]-t[0])/i,(t[3]-t[1])/e]}get_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s);let o=0;for(const t of this._resolutions){if(r>t){if(0==o)return 0;if(o>0)return o-1}o+=1}return o-1}get_closest_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s),o=this._resolutions.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t}));return this._resolutions.indexOf(o)}snap_to_zoom_level(t,e,i,_){const[s,r,o,n]=t,l=this._resolutions[_];let u=i*l,a=e*l;if(!this.snap_to_zoom){const t=(o-s)/u,e=(n-r)/a;t>e?(u=o-s,a*=t):(u*=e,a=n-r)}const h=(u-(o-s))/2,c=(a-(n-r))/2;return[s-h,r-c,o+h,n+c]}tms_to_wmts(t,e,i){return[t,2**i-1-e,i]}wmts_to_tms(t,e,i){return[t,2**i-1-e,i]}pixels_to_meters(t,e,i){const _=this.get_resolution(i);return[t*_-this.x_origin_offset,e*_-this.y_origin_offset]}meters_to_pixels(t,e,i){const _=this.get_resolution(i);return[(t+this.x_origin_offset)/_,(e+this.y_origin_offset)/_]}pixels_to_tile(t,e){let i=Math.ceil(t/this.tile_size);return i=0===i?i:i-1,[i,Math.max(Math.ceil(e/this.tile_size)-1,0)]}pixels_to_raster(t,e,i){return[t,(this.tile_size<<i)-e]}meters_to_tile(t,e,i){const[_,s]=this.meters_to_pixels(t,e,i);return this.pixels_to_tile(_,s)}get_tile_meter_bounds(t,e,i){const[_,s]=this.pixels_to_meters(t*this.tile_size,e*this.tile_size,i),[r,o]=this.pixels_to_meters((t+1)*this.tile_size,(e+1)*this.tile_size,i);return[_,s,r,o]}get_tile_geographic_bounds(t,e,i){const _=this.get_tile_meter_bounds(t,e,i),[s,r,o,l]=n.meters_extent_to_geographic(_);return[s,r,o,l]}get_tiles_by_extent(t,e,i=1){const[_,s,r,o]=t;let[n,l]=this.meters_to_tile(_,s,e),[u,a]=this.meters_to_tile(r,o,e);n-=i,l-=i,u+=i,a+=i;const h=[];for(let t=a;t>=l;t–)for(let i=n;i<=u;i++)this.is_valid_tile(i,t,e)&&h.push([i,t,e,this.get_tile_meter_bounds(i,t,e)]);return this.sort_tiles_from_center(h,[n,l,u,a]),h}quadkey_to_tile_xyz(t){let e=0,i=0;const _=t.length;for(let s=_;s>0;s–){const r=1<<s-1;switch(t.charAt(_-s)){case"0":continue;case"1":e|=r;break;case"2":i|=r;break;case"3":e|=r,i|=r;break;default:throw new TypeError(`Invalid Quadkey: ${t}`)}}return[e,i,_]}tile_xyz_to_quadkey(t,e,i){let _="";for(let s=i;s>0;s–){const i=1<<s-1;let r=0;0!=(t&i)&&(r+=1),0!=(e&i)&&(r+=2),_+=r.toString()}return _}children_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=[];for(let t=0;t<=3;t++){const[e,i,r]=this.quadkey_to_tile_xyz(_+t.toString()),o=this.get_tile_meter_bounds(e,i,r);s.push([e,i,r,o])}return s}get_closest_parent_by_tile_xyz(t,e,i){const _=this.calculate_world_x_by_tile_xyz(t,e,i);[t,e,i]=this.normalize_xyz(t,e,i);let s=this.tile_xyz_to_quadkey(t,e,i);for(;s.length>0;)if(s=s.substring(0,s.length-1),[t,e,i]=this.quadkey_to_tile_xyz(s),[t,e,i]=this.denormalize_xyz(t,e,i,_),this.tiles.has(this.tile_xyz_to_key(t,e,i)))return[t,e,i];return[0,0,0]}normalize_xyz(t,e,i){if(this.wrap_around){const _=2**i;return[(t%_+_)%_,e,i]}return[t,e,i]}denormalize_xyz(t,e,i,_){return[t+_*2**i,e,i]}denormalize_meters(t,e,i,_){return[t+2*_*Math.PI*6378137,e]}calculate_world_x_by_tile_xyz(t,e,i){return Math.floor(t/2**i)}}i.MercatorTileSource=l,l.__name__="MercatorTileSource",l.init_MercatorTileSource()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1),n=e(69),s=i.__importStar(e(19));class l extends n.Model{constructor(e){super(e)}static init_TileSource(){this.define({url:[s.String,""],tile_size:[s.Number,256],max_zoom:[s.Number,30],min_zoom:[s.Number,0],extra_url_vars:[s.Any,{}],attribution:[s.String,""],x_origin_offset:[s.Number],y_origin_offset:[s.Number],initial_resolution:[s.Number]})}initialize(){super.initialize(),this.tiles=new Map,this._normalize_case()}connect_signals(){super.connect_signals(),this.connect(this.change,()=>this._clear_cache())}string_lookup_replace(e,t){let r=e;for(const e in t){const i=t[e];r=r.replace(`{${e}}`,i)}return r}_normalize_case(){const e=this.url.replace("{x}","{X}").replace("{y}","{Y}").replace("{z}","{Z}").replace("{q}","{Q}").replace("{xmin}","{XMIN}").replace("{ymin}","{YMIN}").replace("{xmax}","{XMAX}").replace("{ymax}","{YMAX}");this.url=e}_clear_cache(){this.tiles=new Map}tile_xyz_to_key(e,t,r){return`${e}:${t}:${r}`}key_to_tile_xyz(e){const[t,r,i]=e.split(":").map(e=>parseInt(e));return[t,r,i]}sort_tiles_from_center(e,t){const[r,i,n,s]=t,l=(n-r)/2+r,a=(s-i)/2+i;e.sort((function(e,t){return Math.sqrt((l-e[0])**2+(a-e[1])**2)-Math.sqrt((l-t[0])**2+(a-t[1])**2)}))}get_image_url(e,t,r){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",t.toString()).replace("{Z}",r.toString())}}r.TileSource=l,l.__name__="TileSource",l.init_TileSource()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(30);function o(e,t){return n.wgs84_mercator.forward([e,t])}function c(e,t){return n.wgs84_mercator.inverse([e,t])}r.geographic_to_meters=o,r.meters_to_geographic=c,r.geographic_extent_to_meters=function(e){const[t,r,n,c]=e,[_,i]=o(t,r),[s,u]=o(n,c);return[_,i,s,u]},r.meters_extent_to_geographic=function(e){const[t,r,n,o]=e,[_,i]=c(t,r),[s,u]=c(n,o);return[_,i,s,u]}},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const _=e(301);class s extends _.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const _=this.string_lookup_replace(this.url,this.extra_url_vars),[s,o,u]=this.tms_to_wmts(e,t,r),c=this.tile_xyz_to_quadkey(s,o,u);return _.replace("{Q}",c)}}r.QUADKEYTileSource=s,s.__name__="QUADKEYTileSource"},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),_=e(306),a=e(79),n=e(130),r=e(66),h=s.__importStar(e(19)),l=e(223),o=e(9),d=e(8),m=e(77),c=e(73),u=e(307);class p extends a.DataRendererView{initialize(){this._tiles=[],super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render()),this.connect(this.model.tile_source.change,()=>this.request_render())}get_extent(){return[this.x_range.start,this.y_range.start,this.x_range.end,this.y_range.end]}get map_plot(){return this.plot_model}get map_canvas(){return this.plot_view.canvas_view.ctx}get map_frame(){return this.plot_view.frame}get x_range(){return this.map_plot.x_range}get y_range(){return this.map_plot.y_range}_set_data(){this.extent=this.get_extent(),this._last_height=void 0,this._last_width=void 0}_update_attribution(){null!=this.attribution_el&&r.removeElement(this.attribution_el);const{attribution:e}=this.model.tile_source;if(d.isString(e)&&e.length>0){const{layout:t,frame:i}=this.plot_view,s=t._width.value-i._right.value,_=t._height.value-i._bottom.value,a=i._width.value;this.attribution_el=r.div({class:u.bk_tile_attribution,style:{position:"absolute",right:`${s}px`,bottom:`${_}px`,"max-width":`${a-4}px`,padding:"2px","background-color":"rgba(255,255,255,0.5)","font-size":"9px","line-height":"1.05","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}}),this.plot_view.canvas_view.add_event(this.attribution_el),this.attribution_el.innerHTML=e,this.attribution_el.title=this.attribution_el.textContent.replace(/\s\n\s*/g," ")}}_map_data(){this.initial_extent=this.get_extent();const e=this.model.tile_source.get_level_by_extent(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value),t=this.model.tile_source.snap_to_zoom_level(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value,e);this.x_range.start=t[0],this.y_range.start=t[1],this.x_range.end=t[2],this.y_range.end=t[3],this.x_range instanceof n.Range1d&&(this.x_range.reset_start=t[0],this.x_range.reset_end=t[2]),this.y_range instanceof n.Range1d&&(this.y_range.reset_start=t[1],this.y_range.reset_end=t[3]),this._update_attribution()}_create_tile(e,t,i,s,_=!1){const[a,n,r]=this.model.tile_source.normalize_xyz(e,t,i),h={img:void 0,tile_coords:[e,t,i],normalized_coords:[a,n,r],quadkey:this.model.tile_source.tile_xyz_to_quadkey(e,t,i),cache_key:this.model.tile_source.tile_xyz_to_key(e,t,i),bounds:s,loaded:!1,finished:!1,x_coord:s[0],y_coord:s[3]},o=this.model.tile_source.get_image_url(a,n,r);new l.ImageLoader(o,{loaded:e=>{Object.assign(h,{img:e,loaded:!0}),_?(h.finished=!0,this.notify_finished()):this.request_render()},failed(){h.finished=!0}}),this.model.tile_source.tiles.set(h.cache_key,h),this._tiles.push(h)}_enforce_aspect_ratio(){if(this._last_height!==this.map_frame._height.value||this._last_width!==this.map_frame._width.value){const e=this.get_extent(),t=this.model.tile_source.get_level_by_extent(e,this.map_frame._height.value,this.map_frame._width.value),i=this.model.tile_source.snap_to_zoom_level(e,this.map_frame._height.value,this.map_frame._width.value,t);this.x_range.setv({start:i[0],end:i[2]}),this.y_range.setv({start:i[1],end:i[3]}),this.extent=i,this._last_height=this.map_frame._height.value,this._last_width=this.map_frame._width.value}}has_finished(){if(!super.has_finished())return!1;if(0===this._tiles.length)return!1;for(const e of this._tiles)if(!e.finished)return!1;return!0}render(){null==this.map_initialized&&(this._set_data(),this._map_data(),this.map_initialized=!0),this._enforce_aspect_ratio(),this._update(),null!=this.prefetch_timer&&clearTimeout(this.prefetch_timer),this.prefetch_timer=setTimeout(this._prefetch_tiles.bind(this),500),this.has_finished()&&this.notify_finished()}_draw_tile(e){const t=this.model.tile_source.tiles.get(e);if(null!=t&&t.loaded){const[[e],[i]]=this.plot_view.map_to_screen([t.bounds[0]],[t.bounds[3]]),[[s],[_]]=this.plot_view.map_to_screen([t.bounds[2]],[t.bounds[1]]),a=s-e,n=_-i,r=e,h=i,l=this.map_canvas.getImageSmoothingEnabled();this.map_canvas.setImageSmoothingEnabled(this.model.smoothing),this.map_canvas.drawImage(t.img,r,h,a,n),this.map_canvas.setImageSmoothingEnabled(l),t.finished=!0}}_set_rect(){const e=this.plot_model.properties.outline_line_width.value(),t=this.map_frame._left.value+e/2,i=this.map_frame._top.value+e/2,s=this.map_frame._width.value-e,_=this.map_frame._height.value-e;this.map_canvas.rect(t,i,s,_),this.map_canvas.clip()}_render_tiles(e){this.map_canvas.save(),this._set_rect(),this.map_canvas.globalAlpha=this.model.alpha;for(const t of e)this._draw_tile(t);this.map_canvas.restore()}_prefetch_tiles(){const{tile_source:e}=this.model,t=this.get_extent(),i=this.map_frame._height.value,s=this.map_frame._width.value,_=this.model.tile_source.get_level_by_extent(t,i,s),a=this.model.tile_source.get_tiles_by_extent(t,_);for(let t=0,i=Math.min(10,a.length);t<i;t++){const[i,s,_]=a[t],n=this.model.tile_source.children_by_tile_xyz(i,s,_);for(const t of n){const[i,s,_,a]=t;e.tiles.has(e.tile_xyz_to_key(i,s,_))||this._create_tile(i,s,_,a,!0)}}}_fetch_tiles(e){for(const t of e){const[e,i,s,_]=t;this._create_tile(e,i,s,_)}}_update(){const{tile_source:e}=this.model,{min_zoom:t}=e,{max_zoom:i}=e;let s=this.get_extent();const _=this.extent[2]-this.extent[0]<s[2]-s[0],a=this.map_frame._height.value,n=this.map_frame._width.value;let r=e.get_level_by_extent(s,a,n),h=!1;r<t?(s=this.extent,r=t,h=!0):r>i&&(s=this.extent,r=i,h=!0),h&&(this.x_range.setv({x_range:{start:s[0],end:s[2]}}),this.y_range.setv({start:s[1],end:s[3]})),this.extent=s;const l=e.get_tiles_by_extent(s,r),d=[],m=[],c=[],u=[];for(const t of l){const[i,s,a]=t,n=e.tile_xyz_to_key(i,s,a),r=e.tiles.get(n);if(null!=r&&r.loaded)m.push(n);else if(this.model.render_parents){const[t,n,r]=e.get_closest_parent_by_tile_xyz(i,s,a),h=e.tile_xyz_to_key(t,n,r),l=e.tiles.get(h);if(null!=l&&l.loaded&&!o.includes(c,h)&&c.push(h),_){const t=e.children_by_tile_xyz(i,s,a);for(const[i,s,_]of t){const t=e.tile_xyz_to_key(i,s,_);e.tiles.has(t)&&u.push(t)}}}null==r&&d.push(t)}this._render_tiles(c),this._render_tiles(u),this._render_tiles(m),null!=this.render_timer&&clearTimeout(this.render_timer),this.render_timer=setTimeout(()=>this._fetch_tiles(d),65)}}i.TileRendererView=p,p.__name__="TileRendererView";class g extends a.DataRenderer{constructor(e){super(e),this._selection_manager=new m.SelectionManager({source:new c.ColumnDataSource})}static init_TileRenderer(){this.prototype.default_view=p,this.define({alpha:[h.Number,1],smoothing:[h.Boolean,!0],tile_source:[h.Instance,()=>new _.WMTSTileSource],render_parents:[h.Boolean,!0]})}get_selection_manager(){return this._selection_manager}}i.TileRenderer=g,g.__name__="TileRenderer",g.init_TileRenderer()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(301);class s extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars),[s,c,_]=this.tms_to_wmts(e,t,r);return o.replace("{X}",s.toString()).replace("{Y}",c.toString()).replace("{Z}",_.toString())}}r.WMTSTileSource=s,s.__name__="WMTSTileSource"},n”, ” function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1);t(67),o.__importStar(t(66)).styles.append(".bk-root .bk-tile-attribution a {\n color: black;\n}\n"),i.bk_tile_attribution="bk-tile-attribution"},n”, ” function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(301);class c extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,r,t){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",r.toString()).replace("{Z}",t.toString())}}t.TMSTileSource=c,c.__name__="TMSTileSource"},n”, ” function _(e,r,a){Object.defineProperty(a,"__esModule",{value:!0});var t=e(310);a.CanvasTexture=t.CanvasTexture;var u=e(312);a.ImageURLTexture=u.ImageURLTexture;var v=e(311);a.Texture=v.Texture},n”, ” function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),c=t(311),s=r.__importStar(t(19)),i=t(26);class a extends c.Texture{constructor(t){super(t)}static init_CanvasTexture(){this.define({code:[s.String]})}get func(){const t=i.use_strict(this.code);return new Function("ctx","color","scale","weight",t)}get_pattern(t,e,n){return r=>{const c=document.createElement("canvas");c.width=e,c.height=e;const s=c.getContext("2d");return this.func.call(this,s,t,e,n),r.createPattern(c,this.repetition)}}}n.CanvasTexture=a,a.__name__="CanvasTexture",a.init_CanvasTexture()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),n=e(69),o=r.__importStar(e(19));class _ extends n.Model{constructor(e){super(e)}static init_Texture(){this.define({repetition:[o.TextureRepetition,"repeat"]})}onload(e){e()}}i.Texture=_,_.__name__="Texture",_.init_Texture()},n”, ” function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),a=e(311),n=r.__importStar(e(19)),s=e(223);class o extends a.Texture{constructor(e){super(e)}static init_ImageURLTexture(){this.define({url:[n.String]})}initialize(){super.initialize(),this._loader=new s.ImageLoader(this.url)}get_pattern(e,t,i){return e=>this._loader.finished?e.createPattern(this._loader.image,this.repetition):null}onload(e){this._loader.promise.then(()=>e())}}i.ImageURLTexture=o,o.__name__="ImageURLTexture",o.init_ImageURLTexture()},n”, ” function _(o,l,T){Object.defineProperty(T,"__esModule",{value:!0});var a=o(276);T.ActionTool=a.ActionTool;var r=o(314);T.CustomAction=r.CustomAction;var e=o(277);T.HelpTool=e.HelpTool;var v=o(315);T.RedoTool=v.RedoTool;var t=o(316);T.ResetTool=t.ResetTool;var n=o(317);T.SaveTool=n.SaveTool;var s=o(318);T.UndoTool=s.UndoTool;var P=o(319);T.ZoomInTool=P.ZoomInTool;var c=o(321);T.ZoomOutTool=c.ZoomOutTool;var i=o(270);T.ButtonTool=i.ButtonTool;var d=o(322);T.EditTool=d.EditTool;var u=o(323);T.BoxEditTool=u.BoxEditTool;var y=o(324);T.FreehandDrawTool=y.FreehandDrawTool;var m=o(325);T.PointDrawTool=m.PointDrawTool;var x=o(326);T.PolyDrawTool=x.PolyDrawTool;var B=o(327);T.PolyTool=B.PolyTool;var S=o(328);T.PolyEditTool=S.PolyEditTool;var b=o(329);T.BoxSelectTool=b.BoxSelectTool;var h=o(332);T.BoxZoomTool=h.BoxZoomTool;var Z=o(275);T.GestureTool=Z.GestureTool;var p=o(333);T.LassoSelectTool=p.LassoSelectTool;var w=o(334);T.PanTool=w.PanTool;var C=o(335);T.PolySelectTool=C.PolySelectTool;var D=o(336);T.RangeTool=D.RangeTool;var E=o(330);T.SelectTool=E.SelectTool;var H=o(337);T.TapTool=H.TapTool;var R=o(338);T.WheelPanTool=R.WheelPanTool;var A=o(339);T.WheelZoomTool=A.WheelZoomTool;var I=o(340);T.CrosshairTool=I.CrosshairTool;var W=o(341);T.CustomJSHover=W.CustomJSHover;var O=o(342);T.HoverTool=O.HoverTool;var _=o(269);T.InspectTool=_.InspectTool;var f=o(271);T.Tool=f.Tool;var g=o(343);T.ToolProxy=g.ToolProxy;var F=o(268);T.Toolbar=F.Toolbar;var G=o(274);T.ToolbarBase=G.ToolbarBase;var J=o(344);T.ProxyToolbar=J.ProxyToolbar;var L=o(344);T.ToolbarBox=L.ToolbarBox},n”, ” function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1),s=t(276),e=n.__importStar(t(19)),c=t(272);class _ extends s.ActionToolButtonView{css_classes(){return super.css_classes().concat(c.bk_toolbar_button_custom_action)}}i.CustomActionButtonView=_,_.__name__="CustomActionButtonView";class l extends s.ActionToolView{doit(){null!=this.model.callback&&this.model.callback.execute(this.model)}}i.CustomActionView=l,l.__name__="CustomActionView";class u extends s.ActionTool{constructor(t){super(t),this.tool_name="Custom Action",this.button_view=_}static init_CustomAction(){this.prototype.default_view=l,this.define({action_tooltip:[e.String,"Perform a Custom Action"],callback:[e.Any],icon:[e.String]})}get tooltip(){return this.action_tooltip}}i.CustomAction=u,u.__name__="CustomAction",u.init_CustomAction()},n”, ” function _(o,e,t){Object.defineProperty(t,"__esModule",{value:!0});const i=o(276),s=o(278);class n extends i.ActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state_changed,()=>this.model.disabled=!this.plot_view.can_redo())}doit(){this.plot_view.redo()}}t.RedoToolView=n,n.__name__="RedoToolView";class _ extends i.ActionTool{constructor(o){super(o),this.tool_name="Redo",this.icon=s.bk_tool_icon_redo}static init_RedoTool(){this.prototype.default_view=n,this.override({disabled:!0}),this.register_alias("redo",()=>new _)}}t.RedoTool=_,_.__name__="RedoTool",_.init_RedoTool()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(276),i=e(278);class _ extends s.ActionToolView{doit(){this.plot_view.reset()}}o.ResetToolView=_,_.__name__="ResetToolView";class l extends s.ActionTool{constructor(e){super(e),this.tool_name="Reset",this.icon=i.bk_tool_icon_reset}static init_ResetTool(){this.prototype.default_view=_,this.register_alias("reset",()=>new l)}}o.ResetTool=l,l.__name__="ResetTool",l.init_ResetTool()},n”, ” function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(276),s=e(278);class _ extends i.ActionToolView{doit(){this.plot_view.save("bokeh_plot")}}t.SaveToolView=_,_.__name__="SaveToolView";class a extends i.ActionTool{constructor(e){super(e),this.tool_name="Save",this.icon=s.bk_tool_icon_save}static init_SaveTool(){this.prototype.default_view=_,this.register_alias("save",()=>new a)}}t.SaveTool=a,a.__name__="SaveTool",a.init_SaveTool()},n”, ” function _(o,t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=o(276),i=o(278);class s extends n.ActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state_changed,()=>this.model.disabled=!this.plot_view.can_undo())}doit(){this.plot_view.undo()}}e.UndoToolView=s,s.__name__="UndoToolView";class _ extends n.ActionTool{constructor(o){super(o),this.tool_name="Undo",this.icon=i.bk_tool_icon_undo}static init_UndoTool(){this.prototype.default_view=s,this.override({disabled:!0}),this.register_alias("undo",()=>new _)}}e.UndoTool=_,_.__name__="UndoTool",_.init_UndoTool()},n”, ” function _(o,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=o(1),n=o(276),s=o(320),_=e.__importStar(o(19)),m=o(278);class l extends n.ActionToolView{doit(){const o=this.plot_view.frame,t=this.model.dimensions,i="width"==t||"both"==t,e="height"==t||"both"==t,n=s.scale_range(o,this.model.factor,i,e);this.plot_view.push_state("zoom_out",{range:n}),this.plot_view.update_range(n,!1,!0),this.model.document&&this.model.document.interactive_start(this.plot_model)}}i.ZoomInToolView=l,l.__name__="ZoomInToolView";class h extends n.ActionTool{constructor(o){super(o),this.tool_name="Zoom In",this.icon=m.bk_tool_icon_zoom_in}static init_ZoomInTool(){this.prototype.default_view=l,this.define({factor:[_.Percent,.1],dimensions:[_.Dimensions,"both"]}),this.register_alias("zoom_in",()=>new h({dimensions:"both"})),this.register_alias("xzoom_in",()=>new h({dimensions:"width"})),this.register_alias("yzoom_in",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}i.ZoomInTool=h,h.__name__="ZoomInTool",h.init_ZoomInTool()},n”, ” function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=n(10);function r(n,t,e){const[o,r]=[n.start,n.end],c=null!=e?e:(r+o)/2;return[o-(o-c)*t,r-(r-c)*t]}function c(n,[t,e]){const o={};for(const r in n){const c=n[r],[s,l]=c.r_invert(t,e);o[r]={start:s,end:l}}return o}e.scale_highlow=r,e.get_info=c,e.scale_range=function(n,t,e=!0,s=!0,l){t=o.clamp(t,-.9,.9);const a=e?t:0,[u,i]=r(n.bbox.h_range,a,null!=l?l.x:void 0),_=c(n.xscales,[u,i]),f=s?t:0,[d,b]=r(n.bbox.v_range,f,null!=l?l.y:void 0);return{xrs:_,yrs:c(n.yscales,[d,b]),factor:t}}},n”, ” function _(o,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=o(1),s=o(276),n=o(320),_=e.__importStar(o(19)),m=o(278);class l extends s.ActionToolView{doit(){const o=this.plot_view.frame,t=this.model.dimensions,i="width"==t||"both"==t,e="height"==t||"both"==t,s=n.scale_range(o,-this.model.factor,i,e);this.plot_view.push_state("zoom_out",{range:s}),this.plot_view.update_range(s,!1,!0),this.model.document&&this.model.document.interactive_start(this.plot_model)}}i.ZoomOutToolView=l,l.__name__="ZoomOutToolView";class h extends s.ActionTool{constructor(o){super(o),this.tool_name="Zoom Out",this.icon=m.bk_tool_icon_zoom_out}static init_ZoomOutTool(){this.prototype.default_view=l,this.define({factor:[_.Percent,.1],dimensions:[_.Dimensions,"both"]}),this.register_alias("zoom_out",()=>new h({dimensions:"both"})),this.register_alias("xzoom_out",()=>new h({dimensions:"width"})),this.register_alias("yzoom_out",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}i.ZoomOutTool=h,h.__name__="ZoomOutTool",h.init_ZoomOutTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(1).__importStar(e(19)),n=e(9),i=e(8),_=e(275);class r extends _.GestureToolView{constructor(){super(…arguments),this._mouse_in_frame=!0}_move_enter(e){this._mouse_in_frame=!0}_move_exit(e){this._mouse_in_frame=!1}_map_drag(e,t,s){const o=this.plot_view.frame;return o.bbox.contains(e,t)?[o.xscales[s.x_range_name].invert(e),o.yscales[s.y_range_name].invert(t)]:null}_delete_selected(e){const t=e.data_source,s=t.selected.indices;s.sort();for(const e of t.columns()){const o=t.get_array(e);for(let e=0;e<s.length;e++){const t=s[e];o.splice(t-e,1)}}this._emit_cds_changes(t)}_pop_glyphs(e,t){const s=e.columns();if(t&&s.length)for(const o of s){let s=e.get_array(o);const n=s.length-t+1;n<1||(i.isArray(s)||(s=Array.from(s),e.data[o]=s),s.splice(0,n))}}_emit_cds_changes(e,t=!0,s=!0,o=!0){s&&e.selection_manager.clear(),t&&e.change.emit(),o&&(e.data=e.data,e.properties.data.change.emit())}_drag_points(e,t){if(null==this._basepoint)return;const[s,o]=this._basepoint;for(const n of t){const t=this._map_drag(s,o,n),i=this._map_drag(e.sx,e.sy,n);if(null==i||null==t)continue;const[_,r]=i,[a,c]=t,[l,d]=[_-a,r-c],m=n.glyph,u=n.data_source,[p,h]=[m.x.field,m.y.field];for(const e of u.selected.indices)p&&(u.data[p][e]+=l),h&&(u.data[h][e]+=d);u.change.emit()}this._basepoint=[e.sx,e.sy]}_pad_empty_columns(e,t){for(const s of e.columns())n.includes(t,s)||e.get_array(s).push(this.model.empty_value)}_select_event(e,t,s){const o=this.plot_view.frame,{sx:n,sy:i}=e;if(!o.bbox.contains(n,i))return[];const _={type:"point",sx:n,sy:i},r=[];for(const e of s){const s=e.get_selection_manager(),o=e.data_source,n=[this.plot_view.renderer_views[e.id]];s.select(n,_,!0,t)&&r.push(e),o.properties.selected.change.emit()}return r}}s.EditToolView=r,r.__name__="EditToolView";class a extends _.GestureTool{constructor(e){super(e)}static init_EditTool(){this.define({custom_icon:[o.String],custom_tooltip:[o.String],empty_value:[o.Any],renderers:[o.Array,[]]})}get tooltip(){return this.custom_tooltip||this.tool_name}get computed_icon(){return this.custom_icon||this.icon}}s.EditTool=a,a.__name__="EditTool",a.init_EditTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),_=e(66),o=i.__importStar(e(19)),n=e(322),a=e(278);class d extends n.EditToolView{_tap(e){if(null!=this._draw_basepoint||null!=this._basepoint)return;const t=e.shiftKey;this._select_event(e,t,this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)if(e.keyCode===_.Keys.Backspace)this._delete_selected(t);else if(e.keyCode==_.Keys.Esc){t.data_source.selection_manager.clear()}}_set_extent([e,t],[s,i],_,o=!1){const n=this.model.renderers[0],a=this.plot_view.frame,d=n.glyph,l=n.data_source,r=a.xscales[n.x_range_name],h=a.yscales[n.y_range_name],[p,u]=r.r_invert(e,t),[c,m]=h.r_invert(s,i),[f,b]=[(p+u)/2,(c+m)/2],[y,x]=[u-p,m-c],[w,g]=[d.x.field,d.y.field],[v,E]=[d.width.field,d.height.field];if(_)this._pop_glyphs(l,this.model.num_objects),w&&l.get_array(w).push(f),g&&l.get_array(g).push(b),v&&l.get_array(v).push(y),E&&l.get_array(E).push(x),this._pad_empty_columns(l,[w,g,v,E]);else{const e=l.data[w].length-1;w&&(l.data[w][e]=f),g&&(l.data[g][e]=b),v&&(l.data[v][e]=y),E&&(l.data[E][e]=x)}this._emit_cds_changes(l,!0,!1,o)}_update_box(e,t=!1,s=!1){if(null==this._draw_basepoint)return;const i=[e.sx,e.sy],_=this.plot_view.frame,o=this.model.dimensions,n=this.model._get_dim_limits(this._draw_basepoint,i,_,o);if(null!=n){const[e,i]=n;this._set_extent(e,i,t,s)}}_doubletap(e){this.model.active&&(null!=this._draw_basepoint?(this._update_box(e,!1,!0),this._draw_basepoint=null):(this._draw_basepoint=[e.sx,e.sy],this._select_event(e,!0,this.model.renderers),this._update_box(e,!0,!1)))}_move(e){this._update_box(e,!1,!1)}_pan_start(e){if(e.shiftKey){if(null!=this._draw_basepoint)return;this._draw_basepoint=[e.sx,e.sy],this._update_box(e,!0,!1)}else{if(null!=this._basepoint)return;this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy]}}_pan(e,t=!1,s=!1){if(e.shiftKey){if(null==this._draw_basepoint)return;this._update_box(e,t,s)}else{if(null==this._basepoint)return;this._drag_points(e,this.model.renderers)}}_pan_end(e){if(this._pan(e,!1,!0),e.shiftKey)this._draw_basepoint=null;else{this._basepoint=null;for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0)}}}s.BoxEditToolView=d,d.__name__="BoxEditToolView";class l extends n.EditTool{constructor(e){super(e),this.tool_name="Box Edit Tool",this.icon=a.bk_tool_icon_box_edit,this.event_type=["tap","pan","move"],this.default_order=1}static init_BoxEditTool(){this.prototype.default_view=d,this.define({dimensions:[o.Dimensions,"both"],num_objects:[o.Int,0]})}}s.BoxEditTool=l,l.__name__="BoxEditTool",l.init_BoxEditTool()},n”, ” function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1),r=e(66),_=s.__importStar(e(19)),o=e(8),i=e(322),d=e(278);class n extends i.EditToolView{_draw(e,t,a=!1){if(!this.model.active)return;const s=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,s);if(null==r)return;const[_,i]=r,d=s.data_source,n=s.glyph,[h,l]=[n.xs.field,n.ys.field];if("new"==t)this._pop_glyphs(d,this.model.num_objects),h&&d.get_array(h).push([_]),l&&d.get_array(l).push([i]),this._pad_empty_columns(d,[h,l]);else if("add"==t){if(h){const e=d.data[h].length-1;let t=d.get_array(h)[e];o.isArray(t)||(t=Array.from(t),d.data[h][e]=t),t.push(_)}if(l){const e=d.data[l].length-1;let t=d.get_array(l)[e];o.isArray(t)||(t=Array.from(t),d.data[l][e]=t),t.push(i)}}this._emit_cds_changes(d,!0,!0,a)}_pan_start(e){this._draw(e,"new")}_pan(e){this._draw(e,"add")}_pan_end(e){this._draw(e,"add",!0)}_tap(e){this._select_event(e,e.shiftKey,this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===r.Keys.Esc?t.data_source.selection_manager.clear():e.keyCode===r.Keys.Backspace&&this._delete_selected(t)}}a.FreehandDrawToolView=n,n.__name__="FreehandDrawToolView";class h extends i.EditTool{constructor(e){super(e),this.tool_name="Freehand Draw Tool",this.icon=d.bk_tool_icon_freehand_draw,this.event_type=["pan","tap"],this.default_order=3}static init_FreehandDrawTool(){this.prototype.default_view=n,this.define({num_objects:[_.Int,0]})}}a.FreehandDrawTool=h,h.__name__="FreehandDrawTool",h.init_FreehandDrawTool()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(1),i=e(66),a=s.__importStar(e(19)),n=e(322),_=e(278);class r extends n.EditToolView{_tap(e){const t=e.shiftKey;if(this._select_event(e,t,this.model.renderers).length||!this.model.add)return;const o=this.model.renderers[0],s=this._map_drag(e.sx,e.sy,o);if(null==s)return;const i=o.glyph,a=o.data_source,[n,_]=[i.x.field,i.y.field],[r,d]=s;this._pop_glyphs(a,this.model.num_objects),n&&a.get_array(n).push(r),_&&a.get_array(_).push(d),this._pad_empty_columns(a,[n,_]),a.change.emit(),a.data=a.data,a.properties.data.change.emit()}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===i.Keys.Backspace?this._delete_selected(t):e.keyCode==i.Keys.Esc&&t.data_source.selection_manager.clear()}_pan_start(e){this.model.drag&&(this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){this.model.drag&&null!=this._basepoint&&this._drag_points(e,this.model.renderers)}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0);this._basepoint=null}}}o.PointDrawToolView=r,r.__name__="PointDrawToolView";class d extends n.EditTool{constructor(e){super(e),this.tool_name="Point Draw Tool",this.icon=_.bk_tool_icon_point_draw,this.event_type=["tap","pan","move"],this.default_order=2}static init_PointDrawTool(){this.prototype.default_view=r,this.define({add:[a.Boolean,!0],drag:[a.Boolean,!0],num_objects:[a.Int,0]})}}o.PointDrawTool=d,d.__name__="PointDrawTool",d.init_PointDrawTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(66),a=i.__importStar(e(19)),o=e(8),n=e(327),_=e(278);class d extends n.PolyToolView{constructor(){super(…arguments),this._drawing=!1,this._initialized=!1}_tap(e){this._drawing?this._draw(e,"add",!0):this._select_event(e,e.shiftKey,this.model.renderers)}_draw(e,t,s=!1){const i=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,i);if(this._initialized||this.activate(),null==r)return;const[a,n]=this._snap_to_vertex(e,…r),_=i.data_source,d=i.glyph,[l,h]=[d.xs.field,d.ys.field];if("new"==t)this._pop_glyphs(_,this.model.num_objects),l&&_.get_array(l).push([a,a]),h&&_.get_array(h).push([n,n]),this._pad_empty_columns(_,[l,h]);else if("edit"==t){if(l){const e=_.data[l][_.data[l].length-1];e[e.length-1]=a}if(h){const e=_.data[h][_.data[h].length-1];e[e.length-1]=n}}else if("add"==t){if(l){const e=_.data[l].length-1;let t=_.get_array(l)[e];const s=t[t.length-1];t[t.length-1]=a,o.isArray(t)||(t=Array.from(t),_.data[l][e]=t),t.push(s)}if(h){const e=_.data[h].length-1;let t=_.get_array(h)[e];const s=t[t.length-1];t[t.length-1]=n,o.isArray(t)||(t=Array.from(t),_.data[h][e]=t),t.push(s)}}this._emit_cds_changes(_,!0,!1,s)}_show_vertices(){if(!this.model.active)return;const e=[],t=[];for(let s=0;s<this.model.renderers.length;s++){const i=this.model.renderers[s],r=i.data_source,a=i.glyph,[o,n]=[a.xs.field,a.ys.field];if(o)for(const t of r.get_array(o))Array.prototype.push.apply(e,t);if(n)for(const e of r.get_array(n))Array.prototype.push.apply(t,e);this._drawing&&s==this.model.renderers.length-1&&(e.splice(e.length-1,1),t.splice(t.length-1,1))}this._set_vertices(e,t)}_doubletap(e){this.model.active&&(this._drawing?(this._drawing=!1,this._draw(e,"edit",!0)):(this._drawing=!0,this._draw(e,"new",!0)))}_move(e){this._drawing&&this._draw(e,"edit")}_remove(){const e=this.model.renderers[0],t=e.data_source,s=e.glyph,[i,r]=[s.xs.field,s.ys.field];if(i){const e=t.data[i].length-1,s=t.get_array(i)[e];s.splice(s.length-1,1)}if(r){const e=t.data[r].length-1,s=t.get_array(r)[e];s.splice(s.length-1,1)}this._emit_cds_changes(t)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===r.Keys.Backspace?this._delete_selected(t):e.keyCode==r.Keys.Esc&&(this._drawing&&(this._remove(),this._drawing=!1),t.data_source.selection_manager.clear())}_pan_start(e){this.model.drag&&(this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){if(null==this._basepoint||!this.model.drag)return;const[t,s]=this._basepoint;for(const i of this.model.renderers){const r=this._map_drag(t,s,i),a=this._map_drag(e.sx,e.sy,i);if(null==a||null==r)continue;const o=i.data_source,n=i.glyph,[_,d]=[n.xs.field,n.ys.field];if(!_&&!d)continue;const[l,h]=a,[c,g]=r,[p,f]=[l-c,h-g];for(const e of o.selected.indices){let t,s,i;_&&(s=o.data[_][e]),d?(i=o.data[d][e],t=i.length):t=s.length;for(let e=0;e<t;e++)s&&(s[e]+=p),i&&(i[e]+=f)}o.change.emit()}this._basepoint=[e.sx,e.sy]}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source);this._basepoint=null}}activate(){if(this.model.vertex_renderer&&this.model.active){if(this._show_vertices(),!this._initialized)for(const e of this.model.renderers){const t=e.data_source;t.connect(t.properties.data.change,()=>this._show_vertices())}this._initialized=!0}}deactivate(){this._drawing&&(this._remove(),this._drawing=!1),this.model.vertex_renderer&&this._hide_vertices()}}s.PolyDrawToolView=d,d.__name__="PolyDrawToolView";class l extends n.PolyTool{constructor(e){super(e),this.tool_name="Polygon Draw Tool",this.icon=_.bk_tool_icon_poly_draw,this.event_type=["pan","tap","move"],this.default_order=3}static init_PolyDrawTool(){this.prototype.default_view=d,this.define({drag:[a.Boolean,!0],num_objects:[a.Int,0]})}}s.PolyDrawTool=l,l.__name__="PolyDrawTool",l.init_PolyDrawTool()},n”, ” function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(1).__importStar(e(19)),i=e(8),s=e(322);class _ extends s.EditToolView{_set_vertices(e,t){const r=this.model.vertex_renderer.glyph,o=this.model.vertex_renderer.data_source,[s,_]=[r.x.field,r.y.field];s&&(i.isArray(e)?o.data[s]=e:r.x={value:e}),_&&(i.isArray(t)?o.data[_]=t:r.y={value:t}),this._emit_cds_changes(o,!0,!0,!1)}_hide_vertices(){this._set_vertices([],[])}_snap_to_vertex(e,t,r){if(this.model.vertex_renderer){const o=this._select_event(e,!1,[this.model.vertex_renderer]),i=this.model.vertex_renderer.data_source,s=this.model.vertex_renderer.glyph,[_,l]=[s.x.field,s.y.field];if(o.length){const e=i.selected.indices[0];_&&(t=i.data[_][e]),l&&(r=i.data[l][e]),i.selection_manager.clear()}}return[t,r]}}r.PolyToolView=_,_.__name__="PolyToolView";class l extends s.EditTool{constructor(e){super(e)}static init_PolyTool(){this.prototype.default_view=_,this.define({vertex_renderer:[o.Instance]})}}r.PolyTool=l,l.__name__="PolyTool",l.init_PolyTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(66),i=e(8),_=e(327),d=e(278);class n extends _.PolyToolView{constructor(){super(…arguments),this._drawing=!1}_doubletap(e){if(!this.model.active)return;const t=this._map_drag(e.sx,e.sy,this.model.vertex_renderer);if(null==t)return;const[s,r]=t,i=this._select_event(e,!1,[this.model.vertex_renderer]),_=this.model.vertex_renderer.data_source,d=this.model.vertex_renderer.glyph,[n,l]=[d.x.field,d.y.field];if(i.length&&null!=this._selected_renderer){const e=_.selected.indices[0];this._drawing?(this._drawing=!1,_.selection_manager.clear()):(_.selected.indices=[e+1],n&&_.get_array(n).splice(e+1,0,s),l&&_.get_array(l).splice(e+1,0,r),this._drawing=!0),_.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}else this._show_vertices(e)}_show_vertices(e){if(!this.model.active)return;const t=this._select_event(e,!1,this.model.renderers);if(!t.length)return this._set_vertices([],[]),this._selected_renderer=null,void(this._drawing=!1);const s=t[0],r=s.glyph,_=s.data_source,d=_.selected.indices[0],[n,l]=[r.xs.field,r.ys.field];let a,c;n?(a=_.data[n][d],i.isArray(a)||(_.data[n][d]=a=Array.from(a))):a=r.xs.value,l?(c=_.data[l][d],i.isArray(c)||(_.data[l][d]=c=Array.from(c))):c=r.ys.value,this._selected_renderer=s,this._set_vertices(a,c)}_move(e){if(this._drawing&&null!=this._selected_renderer){const t=this.model.vertex_renderer,s=t.data_source,r=t.glyph,i=this._map_drag(e.sx,e.sy,t);if(null==i)return;let[_,d]=i;const n=s.selected.indices;[_,d]=this._snap_to_vertex(e,_,d),s.selected.indices=n;const[l,a]=[r.x.field,r.y.field],c=n[0];l&&(s.data[l][c]=_),a&&(s.data[a][c]=d),s.change.emit(),this._selected_renderer.data_source.change.emit()}}_tap(e){const t=this.model.vertex_renderer,s=this._map_drag(e.sx,e.sy,t);if(null==s)return;if(this._drawing&&this._selected_renderer){let[r,i]=s;const _=t.data_source,d=t.glyph,[n,l]=[d.x.field,d.y.field],a=_.selected.indices;[r,i]=this._snap_to_vertex(e,r,i);const c=a[0];if(_.selected.indices=[c+1],n){const e=_.get_array(n),t=e[c];e[c]=r,e.splice(c+1,0,t)}if(l){const e=_.get_array(l),t=e[c];e[c]=i,e.splice(c+1,0,t)}return _.change.emit(),void this._emit_cds_changes(this._selected_renderer.data_source,!0,!1,!0)}const r=e.shiftKey;this._select_event(e,r,[t]),this._select_event(e,r,this.model.renderers)}_remove_vertex(){if(!this._drawing||!this._selected_renderer)return;const e=this.model.vertex_renderer,t=e.data_source,s=e.glyph,r=t.selected.indices[0],[i,_]=[s.x.field,s.y.field];i&&t.get_array(i).splice(r,1),_&&t.get_array(_).splice(r,1),t.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}_pan_start(e){this._select_event(e,!0,[this.model.vertex_renderer]),this._basepoint=[e.sx,e.sy]}_pan(e){null!=this._basepoint&&(this._drag_points(e,[this.model.vertex_renderer]),this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&(this._drag_points(e,[this.model.vertex_renderer]),this._emit_cds_changes(this.model.vertex_renderer.data_source,!1,!0,!0),this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}_keyup(e){if(!this.model.active||!this._mouse_in_frame)return;let t;t=this._selected_renderer?[this.model.vertex_renderer]:this.model.renderers;for(const s of t)e.keyCode===r.Keys.Backspace?(this._delete_selected(s),this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source)):e.keyCode==r.Keys.Esc&&(this._drawing?(this._remove_vertex(),this._drawing=!1):this._selected_renderer&&this._hide_vertices(),s.data_source.selection_manager.clear())}deactivate(){this._selected_renderer&&(this._drawing&&(this._remove_vertex(),this._drawing=!1),this._hide_vertices())}}s.PolyEditToolView=n,n.__name__="PolyEditToolView";class l extends _.PolyTool{constructor(e){super(e),this.tool_name="Poly Edit Tool",this.icon=d.bk_tool_icon_poly_edit,this.event_type=["tap","pan","move"],this.default_order=4}static init_PolyEditTool(){this.prototype.default_view=n}}s.PolyEditTool=l,l.__name__="PolyEditTool",l.init_PolyEditTool()},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(1),i=e(330),l=e(105),n=s.__importStar(e(19)),_=e(278);class c extends i.SelectToolView{_compute_limits(e){const t=this.plot_view.frame,o=this.model.dimensions;let s=this._base_point;if("center"==this.model.origin){const[t,o]=s,[i,l]=e;s=[t-(i-t),o-(l-o)]}return this.model._get_dim_limits(s,e,t,o)}_pan_start(e){const{sx:t,sy:o}=e;this._base_point=[t,o]}_pan(e){const{sx:t,sy:o}=e,s=[t,o],[i,l]=this._compute_limits(s);if(this.model.overlay.update({left:i[0],right:i[1],top:l[0],bottom:l[1]}),this.model.select_every_mousemove){const t=e.shiftKey;this._do_select(i,l,!1,t)}}_pan_end(e){const{sx:t,sy:o}=e,s=[t,o],[i,l]=this._compute_limits(s),n=e.shiftKey;this._do_select(i,l,!0,n),this.model.overlay.update({left:null,right:null,top:null,bottom:null}),this._base_point=null,this.plot_view.push_state("box_select",{selection:this.plot_view.get_selection()})}_do_select([e,t],[o,s],i,l=!1){const n={type:"rect",sx0:e,sx1:t,sy0:o,sy1:s};this._select(n,i,l)}}o.BoxSelectToolView=c,c.__name__="BoxSelectToolView";const a=()=>new l.BoxAnnotation({level:"overlay",render_mode:"css",top_units:"screen",left_units:"screen",bottom_units:"screen",right_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class r extends i.SelectTool{constructor(e){super(e),this.tool_name="Box Select",this.icon=_.bk_tool_icon_box_select,this.event_type="pan",this.default_order=30}static init_BoxSelectTool(){this.prototype.default_view=c,this.define({dimensions:[n.Dimensions,"both"],select_every_mousemove:[n.Boolean,!1],overlay:[n.Instance,a],origin:[n.BoxOrigin,"corner"]}),this.register_alias("box_select",()=>new r),this.register_alias("xbox_select",()=>new r({dimensions:"width"})),this.register_alias("ybox_select",()=>new r({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}o.BoxSelectTool=r,r.__name__="BoxSelectTool",r.init_BoxSelectTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(1),n=e(275),o=e(78),i=e(97),c=e(331),_=r.__importStar(e(19)),a=e(66),l=e(281);class d extends n.GestureToolView{get computed_renderers(){const e=this.model.renderers,t=this.plot_model.renderers,s=this.model.names;return c.compute_renderers(e,t,s)}_computed_renderers_by_data_source(){const e={};for(const t of this.computed_renderers){let s;if(t instanceof o.GlyphRenderer)s=t.data_source.id;else{if(!(t instanceof i.GraphRenderer))continue;s=t.node_renderer.data_source.id}s in e||(e[s]=[]),e[s].push(t)}return e}_keyup(e){if(e.keyCode==a.Keys.Esc){for(const e of this.computed_renderers)e.get_selection_manager().clear();this.plot_view.request_render()}}_select(e,t,s){const r=this._computed_renderers_by_data_source();for(const n in r){const o=r[n],i=o[0].get_selection_manager(),c=[];for(const e of o)e.id in this.plot_view.renderer_views&&c.push(this.plot_view.renderer_views[e.id]);i.select(c,e,t,s)}null!=this.model.callback&&this._emit_callback(e),this._emit_selection_event(e,t)}_emit_selection_event(e,t=!0){const{frame:s}=this.plot_view,r=s.xscales.default,n=s.yscales.default;let o;switch(e.type){case"point":{const{sx:t,sy:s}=e,i=r.invert(t),c=n.invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}case"span":{const{sx:t,sy:s}=e,i=r.invert(t),c=n.invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}case"rect":{const{sx0:t,sx1:s,sy0:i,sy1:c}=e,[_,a]=r.r_invert(t,s),[l,d]=n.r_invert(i,c);o=Object.assign(Object.assign({},e),{x0:_,y0:l,x1:a,y1:d});break}case"poly":{const{sx:t,sy:s}=e,i=r.v_invert(t),c=n.v_invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}}this.plot_model.trigger_event(new l.SelectionGeometry(o,t))}}s.SelectToolView=d,d.__name__="SelectToolView";class u extends n.GestureTool{constructor(e){super(e)}static init_SelectTool(){this.define({renderers:[_.Any,"auto"],names:[_.Array,[]]})}}s.SelectTool=u,u.__name__="SelectTool",u.init_SelectTool()},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const r=e(9);t.compute_renderers=function(e,n,t){if(null==e)return[];let u="auto"==e?n:e;return t.length>0&&(u=u.filter(e=>r.includes(t,e.name))),u}},n”, ” function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(1),i=t(275),n=t(105),a=s.__importStar(t(19)),_=t(278);class l extends i.GestureToolView{_match_aspect(t,o,e){const s=e.bbox.aspect,i=e.bbox.h_range.end,n=e.bbox.h_range.start,a=e.bbox.v_range.end,_=e.bbox.v_range.start;let l=Math.abs(t[0]-o[0]),r=Math.abs(t[1]-o[1]);const h=0==r?0:l/r,[c]=h>=s?[1,h/s]:[s/h,1];let m,p,d,u;return t[0]<=o[0]?(m=t[0],p=t[0]+l*c,p>i&&(p=i)):(p=t[0],m=t[0]-l*c,m<n&&(m=n)),l=Math.abs(p-m),t[1]<=o[1]?(u=t[1],d=t[1]+l/s,d>a&&(d=a)):(d=t[1],u=t[1]-l/s,u<_&&(u=_)),r=Math.abs(d-u),t[0]<=o[0]?p=t[0]+s*r:m=t[0]-s*r,[[m,p],[u,d]]}_compute_limits(t){const o=this.plot_view.frame,e=this.model.dimensions;let s,i,n=this._base_point;if("center"==this.model.origin){const[o,e]=n,[s,i]=t;n=[o-(s-o),e-(i-e)]}return this.model.match_aspect&&"both"==e?[s,i]=this._match_aspect(n,t,o):[s,i]=this.model._get_dim_limits(n,t,o,e),[s,i]}_pan_start(t){this._base_point=[t.sx,t.sy]}_pan(t){const o=[t.sx,t.sy],[e,s]=this._compute_limits(o);this.model.overlay.update({left:e[0],right:e[1],top:s[0],bottom:s[1]})}_pan_end(t){const o=[t.sx,t.sy],[e,s]=this._compute_limits(o);this._update(e,s),this.model.overlay.update({left:null,right:null,top:null,bottom:null}),this._base_point=null}_update([t,o],[e,s]){if(Math.abs(o-t)<=5||Math.abs(s-e)<=5)return;const{xscales:i,yscales:n}=this.plot_view.frame,a={};for(const e in i){const s=i[e],[n,_]=s.r_invert(t,o);a[e]={start:n,end:_}}const _={};for(const t in n){const o=n[t],[i,a]=o.r_invert(e,s);_[t]={start:i,end:a}}const l={xrs:a,yrs:_};this.plot_view.push_state("box_zoom",{range:l}),this.plot_view.update_range(l)}}e.BoxZoomToolView=l,l.__name__="BoxZoomToolView";const r=()=>new n.BoxAnnotation({level:"overlay",render_mode:"css",top_units:"screen",left_units:"screen",bottom_units:"screen",right_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class h extends i.GestureTool{constructor(t){super(t),this.tool_name="Box Zoom",this.icon=_.bk_tool_icon_box_zoom,this.event_type="pan",this.default_order=20}static init_BoxZoomTool(){this.prototype.default_view=l,this.define({dimensions:[a.Dimensions,"both"],overlay:[a.Instance,r],match_aspect:[a.Boolean,!1],origin:[a.BoxOrigin,"corner"]}),this.register_alias("box_zoom",()=>new h({dimensions:"both"})),this.register_alias("xbox_zoom",()=>new h({dimensions:"width"})),this.register_alias("ybox_zoom",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}e.BoxZoomTool=h,h.__name__="BoxZoomTool",h.init_BoxZoomTool()},n”, ” function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const l=e(1),a=e(330),o=e(138),i=e(66),_=l.__importStar(e(19)),c=e(278);class n extends a.SelectToolView{initialize(){super.initialize(),this.data=null}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._active_change())}_active_change(){this.model.active||this._clear_overlay()}_keyup(e){e.keyCode==i.Keys.Enter&&this._clear_overlay()}_pan_start(e){const{sx:s,sy:t}=e;this.data={sx:[s],sy:[t]}}_pan(e){const{sx:s,sy:t}=e,[l,a]=this.plot_view.frame.bbox.clip(s,t);if(this.data.sx.push(l),this.data.sy.push(a),this.model.overlay.update({xs:this.data.sx,ys:this.data.sy}),this.model.select_every_mousemove){const s=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!1,s)}}_pan_end(e){this._clear_overlay();const s=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!0,s),this.plot_view.push_state("lasso_select",{selection:this.plot_view.get_selection()})}_clear_overlay(){this.model.overlay.update({xs:[],ys:[]})}_do_select(e,s,t,l){const a={type:"poly",sx:e,sy:s};this._select(a,t,l)}}t.LassoSelectToolView=n,n.__name__="LassoSelectToolView";const h=()=>new o.PolyAnnotation({level:"overlay",xs_units:"screen",ys_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class r extends a.SelectTool{constructor(e){super(e),this.tool_name="Lasso Select",this.icon=c.bk_tool_icon_lasso_select,this.event_type="pan",this.default_order=12}static init_LassoSelectTool(){this.prototype.default_view=n,this.define({select_every_mousemove:[_.Boolean,!0],overlay:[_.Instance,h]}),this.register_alias("lasso_select",()=>new r)}}t.LassoSelectTool=r,r.__name__="LassoSelectTool",r.init_LassoSelectTool()},n”, ” function _(t,s,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),e=t(275),o=i.__importStar(t(19)),a=t(278);class _ extends e.GestureToolView{_pan_start(t){this.last_dx=0,this.last_dy=0;const{sx:s,sy:n}=t,i=this.plot_view.frame.bbox;if(!i.contains(s,n)){const t=i.h_range,e=i.v_range;(s<t.start||s>t.end)&&(this.v_axis_only=!0),(n<e.start||n>e.end)&&(this.h_axis_only=!0)}null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}_pan(t){this._update(t.deltaX,t.deltaY),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}_pan_end(t){this.h_axis_only=!1,this.v_axis_only=!1,null!=this.pan_info&&this.plot_view.push_state("pan",{range:this.pan_info})}_update(t,s){const n=this.plot_view.frame,i=t-this.last_dx,e=s-this.last_dy,o=n.bbox.h_range,a=o.start-i,_=o.end-i,h=n.bbox.v_range,l=h.start-e,r=h.end-e,d=this.model.dimensions;let c,p,m,u,x,y;"width"!=d&&"both"!=d||this.v_axis_only?(c=o.start,p=o.end,m=0):(c=a,p=_,m=-i),"height"!=d&&"both"!=d||this.h_axis_only?(u=h.start,x=h.end,y=0):(u=l,x=r,y=-e),this.last_dx=t,this.last_dy=s;const{xscales:v,yscales:b}=n,g={};for(const t in v){const s=v[t],[n,i]=s.r_invert(c,p);g[t]={start:n,end:i}}const w={};for(const t in b){const s=b[t],[n,i]=s.r_invert(u,x);w[t]={start:n,end:i}}this.pan_info={xrs:g,yrs:w,sdx:m,sdy:y},this.plot_view.update_range(this.pan_info,!0)}}n.PanToolView=_,_.__name__="PanToolView";class h extends e.GestureTool{constructor(t){super(t),this.tool_name="Pan",this.event_type="pan",this.default_order=10}static init_PanTool(){this.prototype.default_view=_,this.define({dimensions:[o.Dimensions,"both"]}),this.register_alias("pan",()=>new h({dimensions:"both"})),this.register_alias("xpan",()=>new h({dimensions:"width"})),this.register_alias("ypan",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip("Pan",this.dimensions)}get icon(){switch(this.dimensions){case"both":return a.bk_tool_icon_pan;case"width":return a.bk_tool_icon_xpan;case"height":return a.bk_tool_icon_ypan}}}n.PanTool=h,h.__name__="PanTool",h.init_PanTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const l=e(1),o=e(330),i=e(138),a=e(66),_=l.__importStar(e(19)),c=e(9),n=e(278);class h extends o.SelectToolView{initialize(){super.initialize(),this.data={sx:[],sy:[]}}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._active_change())}_active_change(){this.model.active||this._clear_data()}_keyup(e){e.keyCode==a.Keys.Enter&&this._clear_data()}_doubletap(e){const t=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!0,t),this.plot_view.push_state("poly_select",{selection:this.plot_view.get_selection()}),this._clear_data()}_clear_data(){this.data={sx:[],sy:[]},this.model.overlay.update({xs:[],ys:[]})}_tap(e){const{sx:t,sy:s}=e;this.plot_view.frame.bbox.contains(t,s)&&(this.data.sx.push(t),this.data.sy.push(s),this.model.overlay.update({xs:c.copy(this.data.sx),ys:c.copy(this.data.sy)}))}_do_select(e,t,s,l){const o={type:"poly",sx:e,sy:t};this._select(o,s,l)}}s.PolySelectToolView=h,h.__name__="PolySelectToolView";const y=()=>new i.PolyAnnotation({level:"overlay",xs_units:"screen",ys_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class d extends o.SelectTool{constructor(e){super(e),this.tool_name="Poly Select",this.icon=n.bk_tool_icon_polygon_select,this.event_type="tap",this.default_order=11}static init_PolySelectTool(){this.prototype.default_view=h,this.define({overlay:[_.Instance,y]}),this.register_alias("poly_select",()=>new d)}}s.PolySelectTool=d,d.__name__="PolySelectTool",d.init_PolySelectTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(105),l=e(70),a=i.__importStar(e(19)),r=e(275),o=e(278);function _(e){switch(e){case 1:return 2;case 2:return 1;case 4:return 5;case 5:return 4;default:return e}}function h(e,t,s,i){if(null==t)return!1;const n=s.compute(t);return Math.abs(e-n)<i}function d(e,t,s,i,n){let l=!0;if(null!=n.left&&null!=n.right){const t=s.invert(e);(t<n.left||t>n.right)&&(l=!1)}if(null!=n.bottom&&null!=n.top){const e=i.invert(t);(e<n.bottom||e>n.top)&&(l=!1)}return l}function u(e,t,s){let i=0;return e>=s.start&&e<=s.end&&(i+=1),t>=s.start&&t<=s.end&&(i+=1),i}function c(e,t,s,i){const n=t.compute(e),l=t.invert(n+s);return l>=i.start&&l<=i.end?l:e}function g(e,t,s){return e>t.start?(t.end=e,s):(t.end=t.start,t.start=e,_(s))}function y(e,t,s){return e<t.end?(t.start=e,s):(t.start=t.end,t.end=e,_(s))}function f(e,t,s,i){const[n,l]=t.r_compute(e.start,e.end),[a,r]=t.r_invert(n+s,l+s),o=u(e.start,e.end,i);u(a,r,i)>=o&&(e.start=a,e.end=r)}s.flip_side=_,s.is_near=h,s.is_inside=d,s.sides_inside=u,s.compute_value=c,s.update_range_end_side=g,s.update_range_start_side=y,s.update_range=f;class v extends r.GestureToolView{initialize(){super.initialize(),this.side=0,this.model.update_overlay_from_ranges()}connect_signals(){super.connect_signals(),null!=this.model.x_range&&this.connect(this.model.x_range.change,()=>this.model.update_overlay_from_ranges()),null!=this.model.y_range&&this.connect(this.model.y_range.change,()=>this.model.update_overlay_from_ranges())}_pan_start(e){this.last_dx=0,this.last_dy=0;const t=this.model.x_range,s=this.model.y_range,i=this.plot_view.frame,l=i.xscales.default,a=i.yscales.default,r=this.model.overlay,{left:o,right:_,top:u,bottom:c}=r,g=this.model.overlay.properties.line_width.value()+n.EDGE_TOLERANCE;null!=t&&this.model.x_interaction&&(h(e.sx,o,l,g)?this.side=1:h(e.sx,_,l,g)?this.side=2:d(e.sx,e.sy,l,a,r)&&(this.side=3)),null!=s&&this.model.y_interaction&&(0==this.side&&h(e.sy,c,a,g)&&(this.side=4),0==this.side&&h(e.sy,u,a,g)?this.side=5:d(e.sx,e.sy,l,a,this.model.overlay)&&(3==this.side?this.side=7:this.side=6))}_pan(e){const t=this.plot_view.frame,s=e.deltaX-this.last_dx,i=e.deltaY-this.last_dy,n=this.model.x_range,l=this.model.y_range,a=t.xscales.default,r=t.yscales.default;if(null!=n)if(3==this.side||7==this.side)f(n,a,s,t.x_range);else if(1==this.side){const e=c(n.start,a,s,t.x_range);this.side=y(e,n,this.side)}else if(2==this.side){const e=c(n.end,a,s,t.x_range);this.side=g(e,n,this.side)}if(null!=l)if(6==this.side||7==this.side)f(l,r,i,t.y_range);else if(4==this.side){const e=c(l.start,r,i,t.y_range);this.side=y(e,l,this.side)}else if(5==this.side){const e=c(l.end,r,i,t.y_range);this.side=g(e,l,this.side)}this.last_dx=e.deltaX,this.last_dy=e.deltaY}_pan_end(e){this.side=0}}s.RangeToolView=v,v.__name__="RangeToolView";const m=()=>new n.BoxAnnotation({level:"overlay",render_mode:"canvas",fill_color:"lightgrey",fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:.5},line_dash:[2,2]});class p extends r.GestureTool{constructor(e){super(e),this.tool_name="Range Tool",this.icon=o.bk_tool_icon_range,this.event_type="pan",this.default_order=1}static init_RangeTool(){this.prototype.default_view=v,this.define({x_range:[a.Instance,null],x_interaction:[a.Boolean,!0],y_range:[a.Instance,null],y_interaction:[a.Boolean,!0],overlay:[a.Instance,m]})}initialize(){super.initialize(),this.overlay.in_cursor="grab",this.overlay.ew_cursor=null!=this.x_range&&this.x_interaction?"ew-resize":null,this.overlay.ns_cursor=null!=this.y_range&&this.y_interaction?"ns-resize":null}update_overlay_from_ranges(){null==this.x_range&&null==this.y_range&&(this.overlay.left=null,this.overlay.right=null,this.overlay.bottom=null,this.overlay.top=null,l.logger.warn("RangeTool not configured with any Ranges.")),null==this.x_range?(this.overlay.left=null,this.overlay.right=null):(this.overlay.left=this.x_range.start,this.overlay.right=this.x_range.end),null==this.y_range?(this.overlay.bottom=null,this.overlay.top=null):(this.overlay.bottom=this.y_range.start,this.overlay.top=this.y_range.end)}}s.RangeTool=p,p.__name__="RangeTool",p.init_RangeTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),o=e(330),n=i.__importStar(e(19)),a=e(278);class _ extends o.SelectToolView{_tap(e){const{sx:t,sy:s}=e,i={type:"point",sx:t,sy:s},o=e.shiftKey;this._select(i,!0,o)}_select(e,t,s){const i=this.model.callback;if("select"==this.model.behavior){const o=this._computed_renderers_by_data_source();for(const n in o){const a=o[n],_=a[0].get_selection_manager(),c=a.map(e=>this.plot_view.renderer_views[e.id]);if(_.select(c,e,t,s)&&null!=i){const{frame:t}=this.plot_view,s=t.xscales[a[0].x_range_name],o=t.yscales[a[0].y_range_name],n=s.invert(e.sx),c=o.invert(e.sy),l={geometries:Object.assign(Object.assign({},e),{x:n,y:c}),source:_.source};i.execute(this.model,l)}}this._emit_selection_event(e),this.plot_view.push_state("tap",{selection:this.plot_view.get_selection()})}else for(const t of this.computed_renderers){const s=t.get_selection_manager();if(s.inspect(this.plot_view.renderer_views[t.id],e)&&null!=i){const{frame:o}=this.plot_view,n=o.xscales[t.x_range_name],a=o.yscales[t.y_range_name],_=n.invert(e.sx),c=a.invert(e.sy),l={geometries:Object.assign(Object.assign({},e),{x:_,y:c}),source:s.source};i.execute(this.model,l)}}}}s.TapToolView=_,_.__name__="TapToolView";class c extends o.SelectTool{constructor(e){super(e),this.tool_name="Tap",this.icon=a.bk_tool_icon_tap_select,this.event_type="tap",this.default_order=10}static init_TapTool(){this.prototype.default_view=_,this.define({behavior:[n.TapBehavior,"select"],callback:[n.Any]}),this.register_alias("click",()=>new c({behavior:"inspect"})),this.register_alias("tap",()=>new c)}}s.TapTool=c,c.__name__="TapTool",c.init_TapTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),o=e(275),i=n.__importStar(e(19)),a=e(278);class l extends o.GestureToolView{_scroll(e){let t=this.model.speed*e.delta;t>.9?t=.9:t<-.9&&(t=-.9),this._update_ranges(t)}_update_ranges(e){const{frame:t}=this.plot_view,s=t.bbox.h_range,n=t.bbox.v_range,[o,i]=[s.start,s.end],[a,l]=[n.start,n.end];let r,h,_,d;switch(this.model.dimension){case"height":{const t=Math.abs(l-a);r=o,h=i,_=a-t*e,d=l-t*e;break}case"width":{const t=Math.abs(i-o);r=o-t*e,h=i-t*e,_=a,d=l;break}default:throw new Error("this shouldn’t have happened")}const{xscales:c,yscales:p}=t,m={};for(const e in c){const t=c[e],[s,n]=t.r_invert(r,h);m[e]={start:s,end:n}}const u={};for(const e in p){const t=p[e],[s,n]=t.r_invert(_,d);u[e]={start:s,end:n}}const w={xrs:m,yrs:u,factor:e};this.plot_view.push_state("wheel_pan",{range:w}),this.plot_view.update_range(w,!1,!0),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}}s.WheelPanToolView=l,l.__name__="WheelPanToolView";class r extends o.GestureTool{constructor(e){super(e),this.tool_name="Wheel Pan",this.icon=a.bk_tool_icon_wheel_pan,this.event_type="scroll",this.default_order=12}static init_WheelPanTool(){this.prototype.default_view=l,this.define({dimension:[i.Dimension,"width"]}),this.internal({speed:[i.Number,.001]}),this.register_alias("xwheel_pan",()=>new r({dimension:"width"})),this.register_alias("ywheel_pan",()=>new r({dimension:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimension)}}s.WheelPanTool=r,r.__name__="WheelPanTool",r.init_WheelPanTool()},n”, ” function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),i=e(275),l=e(320),n=s.__importStar(e(19)),_=e(101),h=e(278);class a extends i.GestureToolView{_pinch(e){const{sx:o,sy:t,scale:s}=e;let i;i=s>=1?20*(s-1):-20/s,this._scroll({type:"wheel",sx:o,sy:t,delta:i})}_scroll(e){const{frame:o}=this.plot_view,t=o.bbox.h_range,s=o.bbox.v_range,{sx:i,sy:n}=e,_=this.model.dimensions,h=("width"==_||"both"==_)&&t.start<i&&i<t.end,a=("height"==_||"both"==_)&&s.start<n&&n<s.end;if(!(h&&a||this.model.zoom_on_axis))return;const m=this.model.speed*e.delta,r=l.scale_range(o,m,h,a,{x:i,y:n});this.plot_view.push_state("wheel_zoom",{range:r}),this.plot_view.update_range(r,!1,!0,this.model.maintain_focus),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}}t.WheelZoomToolView=a,a.__name__="WheelZoomToolView";class m extends i.GestureTool{constructor(e){super(e),this.tool_name="Wheel Zoom",this.icon=h.bk_tool_icon_wheel_zoom,this.event_type=_.is_mobile?"pinch":"scroll",this.default_order=10}static init_WheelZoomTool(){this.prototype.default_view=a,this.define({dimensions:[n.Dimensions,"both"],maintain_focus:[n.Boolean,!0],zoom_on_axis:[n.Boolean,!0],speed:[n.Number,1/600]}),this.register_alias("wheel_zoom",()=>new m({dimensions:"both"})),this.register_alias("xwheel_zoom",()=>new m({dimensions:"width"})),this.register_alias("ywheel_zoom",()=>new m({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}t.WheelZoomTool=m,m.__name__="WheelZoomTool",m.init_WheelZoomTool()},n”, ” function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),o=i(269),n=i(140),l=t.__importStar(i(19)),h=i(24),r=i(278);class _ extends o.InspectToolView{_move(i){if(!this.model.active)return;const{sx:e,sy:s}=i;this.plot_view.frame.bbox.contains(e,s)?this._update_spans(e,s):this._update_spans(null,null)}_move_exit(i){this._update_spans(null,null)}_update_spans(i,e){const s=this.model.dimensions;"width"!=s&&"both"!=s||(this.model.spans.width.computed_location=e),"height"!=s&&"both"!=s||(this.model.spans.height.computed_location=i)}}s.CrosshairToolView=_,_.__name__="CrosshairToolView";class a extends o.InspectTool{constructor(i){super(i),this.tool_name="Crosshair",this.icon=r.bk_tool_icon_crosshair}static init_CrosshairTool(){this.prototype.default_view=_,this.define({dimensions:[l.Dimensions,"both"],line_color:[l.Color,"black"],line_width:[l.Number,1],line_alpha:[l.Number,1]}),this.internal({location_units:[l.SpatialUnits,"screen"],render_mode:[l.RenderMode,"css"],spans:[l.Any]}),this.register_alias("crosshair",()=>new a)}get tooltip(){return this._get_dim_tooltip("Crosshair",this.dimensions)}get synthetic_renderers(){return h.values(this.spans)}initialize(){super.initialize(),this.spans={width:new n.Span({for_hover:!0,dimension:"width",render_mode:this.render_mode,location_units:this.location_units,line_color:this.line_color,line_width:this.line_width,line_alpha:this.line_alpha}),height:new n.Span({for_hover:!0,dimension:"height",render_mode:this.render_mode,location_units:this.location_units,line_color:this.line_color,line_width:this.line_width,line_alpha:this.line_alpha})}}}s.CrosshairTool=a,a.__name__="CrosshairTool",a.init_CrosshairTool()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(1),o=e(69),i=r.__importStar(e(19)),a=e(24),n=e(26);class u extends o.Model{constructor(e){super(e)}static init_CustomJSHover(){this.define({args:[i.Any,{}],code:[i.String,""]})}get values(){return a.values(this.args)}_make_code(e,t,s,r){return new Function(…a.keys(this.args),e,t,s,n.use_strict(r))}format(e,t,s){return this._make_code("value","format","special_vars",this.code)(…this.values,e,t,s)}}s.CustomJSHover=u,u.__name__="CustomJSHover",u.init_CustomJSHover()},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),i=e(269),o=e(143),r=e(78),l=e(97),a=e(331),c=n.__importStar(e(87)),d=e(158),_=e(66),p=n.__importStar(e(19)),h=e(21),m=e(24),u=e(8),y=e(96),x=e(278),f=e(144);function v(e,t,s,n,i,o){const r={x:i[e],y:o[e]},l={x:i[e+1],y:o[e+1]};let a,d;if("span"==t.type)"h"==t.direction?(a=Math.abs(r.x-s),d=Math.abs(l.x-s)):(a=Math.abs(r.y-n),d=Math.abs(l.y-n));else{const e={x:s,y:n};a=c.dist_2_pts(r,e),d=c.dist_2_pts(l,e)}return a<d?[[r.x,r.y],e]:[[l.x,l.y],e+1]}function w(e,t,s){return[[e[s],t[s]],s]}s._nearest_line_hit=v,s._line_hit=w;class b extends i.InspectToolView{initialize(){super.initialize(),this.ttviews={}}remove(){y.remove_views(this.ttviews),super.remove()}connect_signals(){super.connect_signals();for(const e of this.computed_renderers)e instanceof r.GlyphRenderer?this.connect(e.data_source.inspect,this._update):e instanceof l.GraphRenderer&&(this.connect(e.node_renderer.data_source.inspect,this._update),this.connect(e.edge_renderer.data_source.inspect,this._update));this.connect(this.model.properties.renderers.change,()=>this._computed_renderers=this._ttmodels=null),this.connect(this.model.properties.names.change,()=>this._computed_renderers=this._ttmodels=null),this.connect(this.model.properties.tooltips.change,()=>this._ttmodels=null)}_compute_ttmodels(){const e={},t=this.model.tooltips;if(null!=t)for(const s of this.computed_renderers)if(s instanceof r.GlyphRenderer){const n=new o.Tooltip({custom:u.isString(t)||u.isFunction(t),attachment:this.model.attachment,show_arrow:this.model.show_arrow});e[s.id]=n}else if(s instanceof l.GraphRenderer){const n=new o.Tooltip({custom:u.isString(t)||u.isFunction(t),attachment:this.model.attachment,show_arrow:this.model.show_arrow});e[s.node_renderer.id]=n,e[s.edge_renderer.id]=n}return y.build_views(this.ttviews,m.values(e),{parent:this.plot_view}),e}get computed_renderers(){if(null==this._computed_renderers){const e=this.model.renderers,t=this.plot_model.renderers,s=this.model.names;this._computed_renderers=a.compute_renderers(e,t,s)}return this._computed_renderers}get ttmodels(){return null==this._ttmodels&&(this._ttmodels=this._compute_ttmodels()),this._ttmodels}_clear(){this._inspect(1/0,1/0);for(const e in this.ttmodels){this.ttmodels[e].clear()}}_move(e){if(!this.model.active)return;const{sx:t,sy:s}=e;this.plot_view.frame.bbox.contains(t,s)?this._inspect(t,s):this._clear()}_move_exit(){this._clear()}_inspect(e,t){let s;if("mouse"==this.model.mode)s={type:"point",sx:e,sy:t};else{s={type:"span",direction:"vline"==this.model.mode?"h":"v",sx:e,sy:t}}for(const e of this.computed_renderers){e.get_selection_manager().inspect(this.plot_view.renderer_views[e.id],s)}null!=this.model.callback&&this._emit_callback(s)}_update([e,{geometry:t}]){if(!this.model.active)return;if(!(e instanceof r.GlyphRendererView||e instanceof l.GraphRendererView))return;const{model:s}=e;if("ignore"==this.model.muted_policy&&s instanceof r.GlyphRenderer&&s.muted)return;const n=this.ttmodels[s.id];if(null==n)return;n.clear();const i=s.get_selection_manager();let o=i.inspectors[s.id];if(s instanceof r.GlyphRenderer&&(o=s.view.convert_selection_to_subset(o)),o.is_empty())return;const a=i.source,{frame:c}=this.plot_view,{sx:d,sy:_}=t,p=c.xscales[s.x_range_name],h=c.yscales[s.y_range_name],u=p.invert(d),y=h.invert(_),x=e.glyph;for(const s of o.line_indices){let i,r,l=x._x[s+1],c=x._y[s+1],m=s;switch(this.model.line_policy){case"interp":[l,c]=x.get_interpolation_hit(s,t),i=p.compute(l),r=h.compute(c);break;case"prev":[[i,r],m]=w(x.sx,x.sy,s);break;case"next":[[i,r],m]=w(x.sx,x.sy,s+1);break;case"nearest":[[i,r],m]=v(s,t,d,_,x.sx,x.sy),l=x._x[m],c=x._y[m];break;default:[i,r]=[d,_]}const f={index:m,x:u,y,sx:d,sy:_,data_x:l,data_y:c,rx:i,ry:r,indices:o.line_indices,name:e.model.name};n.add(i,r,this._render_tooltips(a,m,f))}for(const e of o.image_indices){const t={index:e.index,x:u,y,sx:d,sy:_},s=this._render_tooltips(a,e,t);n.add(d,_,s)}for(const i of o.indices)if(m.isEmpty(o.multiline_indices)){const t=null!=x._x?x._x[i]:void 0,l=null!=x._y?x._y[i]:void 0;let c,p,h;if("snap_to_data"==this.model.point_policy){let e=x.get_anchor_point(this.model.anchor,i,[d,_]);null==e&&(e=x.get_anchor_point("center",i,[d,_])),c=e.x,p=e.y}else[c,p]=[d,_];h=s instanceof r.GlyphRenderer?s.view.convert_indices_from_subset([i])[0]:i;const m={index:h,x:u,y,sx:d,sy:_,data_x:t,data_y:l,indices:o.indices,name:e.model.name};n.add(c,p,this._render_tooltips(a,h,m))}else for(const l of o.multiline_indices[i.toString()]){let c,m,f,b=x._xs[i][l],g=x._ys[i][l],k=l;switch(this.model.line_policy){case"interp":[b,g]=x.get_interpolation_hit(i,l,t),c=p.compute(b),m=h.compute(g);break;case"prev":[[c,m],k]=w(x.sxs[i],x.sys[i],l);break;case"next":[[c,m],k]=w(x.sxs[i],x.sys[i],l+1);break;case"nearest":[[c,m],k]=v(l,t,d,_,x.sxs[i],x.sys[i]),b=x._xs[i][k],g=x._ys[i][k];break;default:throw new Error("should’t have happened")}f=s instanceof r.GlyphRenderer?s.view.convert_indices_from_subset([i])[0]:i;const T={index:f,x:u,y,sx:d,sy:_,data_x:b,data_y:g,segment_index:k,indices:o.multiline_indices,name:e.model.name};n.add(c,m,this._render_tooltips(a,f,T))}}_emit_callback(e){for(const t of this.computed_renderers){const s=t.data_source.inspected,{frame:n}=this.plot_view,i=n.xscales[t.x_range_name],o=n.yscales[t.y_range_name],r=i.invert(e.sx),l=o.invert(e.sy),a=Object.assign({x:r,y:l},e);this.model.callback.execute(this.model,{index:s,geometry:a,renderer:t})}}_render_tooltips(e,t,s){const n=this.model.tooltips;if(u.isString(n)){const i=_.div();return i.innerHTML=d.replace_placeholders(n,e,t,this.model.formatters,s),i}if(u.isFunction(n))return n(e,s);{const i=_.div({style:{display:"table",borderSpacing:"2px"}});for(const[o,r]of n){const n=_.div({style:{display:"table-row"}});let l;if(i.appendChild(n),l=_.div({style:{display:"table-cell"},class:f.bk_tooltip_row_label},0!=o.length?`${o}: :""),n.appendChild(l),l=_.div({style:{display:"table-cell"},class:f.bk_tooltip_row_value}),n.appendChild(l),r.indexOf("$color")>=0){const[,s="",n]=r.match(/\$color(\[.*\])?:(\w*)/),i=e.get_column(n);if(null==i){const e=_.span({},`${n} unknown);l.appendChild(e);continue}const o=s.indexOf("hex")>=0,a=s.indexOf("swatch")>=0;let c=u.isNumber(t)?i[t]:null;if(null==c){const e=_.span({},"(null)");l.appendChild(e);continue}o&&(c=h.color2hex(c));let d=_.span({},c);l.appendChild(d),a&&(d=_.span({class:f.bk_tooltip_color_block,style:{backgroundColor:c}}," "),l.appendChild(d))}else{const n=_.span();n.innerHTML=d.replace_placeholders(r.replace("$~","$data_"),e,t,this.model.formatters,s),l.appendChild(n)}}return i}}}s.HoverToolView=b,b.__name__="HoverToolView";class g extends i.InspectTool{constructor(e){super(e),this.tool_name="Hover",this.icon=x.bk_tool_icon_hover}static init_HoverTool(){this.prototype.default_view=b,this.define({tooltips:[p.Any,[["index","$index"],["data (x, y)","($x, $y)"],["screen (x, y)","($sx, $sy)"]]],formatters:[p.Any,{}],renderers:[p.Any,"auto"],names:[p.Array,[]],mode:[p.HoverMode,"mouse"],muted_policy:[p.MutedPolicy,"show"],point_policy:[p.PointPolicy,"snap_to_data"],line_policy:[p.LinePolicy,"nearest"],show_arrow:[p.Boolean,!0],anchor:[p.Anchor,"center"],attachment:[p.TooltipAttachment,"horizontal"],callback:[p.Any]}),this.register_alias("hover",()=>new g)}}s.HoverTool=g,g.__name__="HoverTool",g.init_HoverTool()},n”, ” function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),s=t(14),n=t(69),l=t(269);class c extends n.Model{constructor(t){super(t)}static init_ToolProxy(){this.define({tools:[i.Array,[]],active:[i.Boolean,!1],disabled:[i.Boolean,!1]})}get button_view(){return this.tools[0].button_view}get event_type(){return this.tools[0].event_type}get tooltip(){return this.tools[0].tooltip}get tool_name(){return this.tools[0].tool_name}get icon(){return this.tools[0].computed_icon}get computed_icon(){return this.icon}get toggleable(){const t=this.tools[0];return t instanceof l.InspectTool&&t.toggleable}initialize(){super.initialize(),this.do=new s.Signal0(this,"do")}connect_signals(){super.connect_signals(),this.connect(this.do,()=>this.doit()),this.connect(this.properties.active.change,()=>this.set_active())}doit(){for(const t of this.tools)t.do.emit()}set_active(){for(const t of this.tools)t.active=this.active}}e.ToolProxy=c,c.__name__="ToolProxy",c.init_ToolProxy()},n”, ” function _(t,o,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),e=t(9),n=t(274),r=t(343),l=t(244),c=t(187);class h extends n.ToolbarBase{constructor(t){super(t)}static init_ProxyToolbar(){this.define({toolbars:[i.Array,[]]})}initialize(){super.initialize(),this._merge_tools()}_merge_tools(){this._proxied_tools=[];const t={},o={},s={},i=[],n=[];for(const t of this.help)e.includes(n,t.redirect)||(i.push(t),n.push(t.redirect));this._proxied_tools.push(…i),this.help=i;for(const t in this.gestures){const o=this.gestures[t];t in s||(s[t]={});for(const i of o.tools)i.type in s[t]||(s[t][i.type]=[]),s[t][i.type].push(i)}for(const o of this.inspectors)o.type in t||(t[o.type]=[]),t[o.type].push(o);for(const t of this.actions)t.type in o||(o[t.type]=[]),o[t.type].push(t);const l=(t,o=!1)=>{const s=new r.ToolProxy({tools:t,active:o});return this._proxied_tools.push(s),s};for(const t in s){const o=this.gestures[t];o.tools=[];for(const i in s[t]){const e=s[t][i];if(e.length>0)if("multi"==t)for(const t of e){const s=l([t]);o.tools.push(s),this.connect(s.properties.active.change,this._active_change.bind(this,s))}else{const t=l(e);o.tools.push(t),this.connect(t.properties.active.change,this._active_change.bind(this,t))}}}this.actions=[];for(const t in o){const s=o[t];if("CustomAction"==t)for(const t of s)this.actions.push(l([t]));else s.length>0&&this.actions.push(l(s))}this.inspectors=[];for(const o in t){const s=t[o];s.length>0&&this.inspectors.push(l(s,!0))}for(const t in this.gestures){const o=this.gestures[t];0!=o.tools.length&&(o.tools=e.sort_by(o.tools,t=>t.default_order),"pinch"!=t&&"scroll"!=t&&"multi"!=t&&(o.tools[0].active=!0))}}}s.ProxyToolbar=h,h.__name__="ProxyToolbar",h.init_ProxyToolbar();class a extends l.LayoutDOMView{initialize(){this.model.toolbar.toolbar_location=this.model.toolbar_location,super.initialize()}get child_models(){return[this.model.toolbar]}_update_layout(){this.layout=new c.ContentBox(this.child_views[0].el);const{toolbar:t}=this.model;t.horizontal?this.layout.set_sizing({width_policy:"fit",min_width:100,height_policy:"fixed"}):this.layout.set_sizing({width_policy:"fixed",height_policy:"fit",min_height:100})}}s.ToolbarBoxView=a,a.__name__="ToolbarBoxView";class _ extends l.LayoutDOM{constructor(t){super(t)}static init_ToolbarBox(){this.prototype.default_view=a,this.define({toolbar:[i.Instance],toolbar_location:[i.Location,"right"]})}}s.ToolbarBox=_,_.__name__="ToolbarBox",_.init_ToolbarBox()},n”, ” function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(5),i=e(64),d=e(96),c=e(66),l=e(346);t.index={},t.add_document_standalone=async function(e,n,s=[],a=!1){const u=new Map;async function r(o){let a;const r=e.roots().indexOf(o),f=s[r];null!=f?a=f:n.classList.contains(l.BOKEH_ROOT)?a=n:(a=c.div({class:l.BOKEH_ROOT}),n.appendChild(a));const v=await d.build_view(o,{parent:null});return v instanceof i.DOMView&&v.renderTo(a),u.set(o,v),t.index[o.id]=v,v}for(const n of e.roots())await r(n);return a&&(window.document.title=e.title()),e.on_change(e=>{e instanceof o.RootAddedEvent?r(e.model):e instanceof o.RootRemovedEvent?function(e){const n=u.get(e);null!=n&&(n.remove(),u.delete(e),delete t.index[e.id])}(e.model):a&&e instanceof o.TitleChangedEvent&&(window.document.title=e.title)}),[…u.values()]}},n”, ” function _(e,o,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(66),r=e(67);function l(e){let o=document.getElementById(e);if(null==o)throw new Error(Error rendering Bokeh model: could not find #${e} HTML tag);if(!document.body.contains(o))throw new Error(Error rendering Bokeh model: element #${e} must be under <body>);if("SCRIPT"==o.tagName){const e=t.div({class:n.BOKEH_ROOT});t.replaceWith(o,e),o=e}return o}n.BOKEH_ROOT=r.bk_root,n._resolve_element=function(e){const{elementid:o}=e;return null!=o?l(o):document.body},n._resolve_root_elements=function(e){const o=[];if(null!=e.root_ids&&null!=e.roots)for(const n of e.root_ids)o.push(l(e.roots[n]));return o}},n”, ” function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const e=n(348),s=n(70),c=n(345);t._get_ws_url=function(n,o){let t,e="ws:";return"https:"==window.location.protocol&&(e="wss:"),null!=o?(t=document.createElement("a"),t.href=o):t=window.location,null!=n?"/"==n&&(n=""):n=t.pathname.replace(/\/+$/,""),e+"//"+t.host+n+"/ws"};const r={};t.add_document_from_session=async function(n,o,t,a=[],i=!1){const l=window.location.search.substr(1);let d;try{d=await function(n,o,t){const s=e.parse_token(o).session_id;n in r||(r[n]={});const c=r[n];return s in c||(c[s]=e.pull_session(n,o,t)),c[s]}(n,o,l)}catch(n){const t=e.parse_token(o).session_id;throw s.logger.error(Failed to load Bokeh session ${t}: ${n}),n}return c.add_document_standalone(d.document,t,a,i)}},n”, ” function _(e,s,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(70),o=e(5),r=e(349),i=e(350),c=e(351);n.DEFAULT_SERVER_WEBSOCKET_URL="ws://localhost:5006/ws",n.DEFAULT_TOKEN="eyJzZXNzaW9uX2lkIjogImRlZmF1bHQifQ";let l=0;function _(e){let s=e.split(".")[0];const n=s.length%4;return 0!=n&&(s+="=".repeat(4-n)),JSON.parse(atob(s.replace(/_/g,"/").replace(/-/g,"+")))}n.parse_token=_;class h{constructor(e=n.DEFAULT_SERVER_WEBSOCKET_URL,s=n.DEFAULT_TOKEN,o=null){this.url=e,this.token=s,this.args_string=o,this._number=l++,this.socket=null,this.session=null,this.closed_permanently=!1,this._current_handler=null,this._pending_replies=new Map,this._pending_messages=[],this._receiver=new i.Receiver,this.id=_(s).session_id.split(".")[0],t.logger.debug(Creating websocket ${this._number} to ‘${this.url}’ session ‘${this.id}’)}async connect(){if(this.closed_permanently)throw new Error("Cannot connect() a closed ClientConnection");if(null!=this.socket)throw new Error("Already connected");this._current_handler=null,this._pending_replies.clear(),this._pending_messages=[];try{let e=`${this.url}`;return null!=this.args_string&&this.args_string.length>0&&(e+=`?${this.args_string}`),this.socket=new WebSocket(e,["bokeh",this.token]),new Promise((e,s)=>{this.socket.binaryType="arraybuffer",this.socket.onopen=()=>this._on_open(e,s),this.socket.onmessage=e=>this._on_message(e),this.socket.onclose=e=>this._on_close(e,s),this.socket.onerror=()=>this._on_error(s)})}catch(e){throw t.logger.error(websocket creation failed to url: ${this.url}),t.logger.error(` - ${e}`),e}}close(){this.closed_permanently||(t.logger.debug(Permanently closing websocket connection ${this._number}),this.closed_permanently=!0,null!=this.socket&&this.socket.close(1e3,`close method called on ClientConnection ${this._number}`),this.session._connection_closed())}_schedule_reconnect(e){setTimeout(()=>{this.closed_permanently||t.logger.info(Websocket connection ${this._number} disconnected, will not attempt to reconnect)},e)}send(e){if(null==this.socket)throw new Error(not connected so cannot send ${e});e.send(this.socket)}async send_with_reply(e){const s=await new Promise((s,n)=>{this._pending_replies.set(e.msgid(),{resolve:s,reject:n}),this.send(e)});if("ERROR"===s.msgtype())throw new Error(Error reply ${s.content.text});return s}async _pull_doc_json(){const e=r.Message.create("PULL-DOC-REQ",{}),s=await this.send_with_reply(e);if(!("doc"in s.content))throw new Error("No ‘doc’ field in PULL-DOC-REPLY");return s.content.doc}async _repull_session_doc(e,s){var n;t.logger.debug(this.session?"Repulling session":"Pulling session for first time");try{const n=await this._pull_doc_json();if(null==this.session)if(this.closed_permanently)t.logger.debug("Got new document after connection was already closed"),s(new Error("The connection has been closed"));else{const s=o.Document.from_json(n),i=o.Document._compute_patch_since_json(n,s);if(i.events.length>0){t.logger.debug(Sending ${i.events.length} changes from model construction back to server);const e=r.Message.create("PATCH-DOC",{},i);this.send(e)}this.session=new c.ClientSession(this,s,this.id);for(const e of this._pending_messages)this.session.handle(e);this._pending_messages=[],t.logger.debug("Created a new session from new pulled doc"),e(this.session)}else this.session.document.replace_with_json(n),t.logger.debug("Updated existing session with new pulled doc")}catch(e){null===(n=console.trace)||void 0===n||n.call(console,e),t.logger.error(Failed to repull session ${e}),s(e)}}_on_open(e,s){t.logger.info(Websocket connection ${this._number} is now open),this._current_handler=n=>{this._awaiting_ack_handler(n,e,s)}}_on_message(e){null==this._current_handler&&t.logger.error("Got a message with no current handler set");try{this._receiver.consume(e.data)}catch(e){this._close_bad_protocol(e.toString())}const s=this._receiver.message;if(null!=s){const e=s.problem();null!=e&&this._close_bad_protocol(e),this._current_handler(s)}}_on_close(e,s){t.logger.info(Lost websocket ${this._number} connection, ${e.code} (${e.reason})),this.socket=null,this._pending_replies.forEach(e=>e.reject("Disconnected")),this._pending_replies.clear(),this.closed_permanently||this._schedule_reconnect(2e3),s(new Error(Lost websocket connection, ${e.code} (${e.reason})))}_on_error(e){t.logger.debug(Websocket error on socket ${this._number});const s="Could not open websocket";t.logger.error(Failed to connect to Bokeh server: ${s}),e(new Error(s))}_close_bad_protocol(e){t.logger.error(Closing connection: ${e}),null!=this.socket&&this.socket.close(1002,e)}_awaiting_ack_handler(e,s,n){"ACK"===e.msgtype()?(this._current_handler=e=>this._steady_state_handler(e),this._repull_session_doc(s,n)):this._close_bad_protocol("First message was not an ACK")}_steady_state_handler(e){const s=e.reqid(),n=this._pending_replies.get(s);n?(this._pending_replies.delete(s),n.resolve(e)):this.session?this.session.handle(e):"PATCH-DOC"!=e.msgtype()&&this._pending_messages.push(e)}}n.ClientConnection=h,h.__name__="ClientConnection",n.pull_session=function(e,s,n){return new h(e,s,n).connect()}},n”, ” function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const r=e(26);class n{constructor(e,s,t){this.header=e,this.metadata=s,this.content=t,this.buffers=[]}static assemble(e,s,t){const r=JSON.parse(e),i=JSON.parse(s),h=JSON.parse(t);return new n(r,i,h)}assemble_buffer(e,s){if((null!=this.header.num_buffers?this.header.num_buffers:0)<=this.buffers.length)throw new Error("too many buffers received, expecting #{nb}");this.buffers.push([e,s])}static create(e,s,t={}){const r=n.create_header(e);return new n(r,s,t)}static create_header(e){return{msgid:r.uniqueId(),msgtype:e}}complete(){return null!=this.header&&null!=this.metadata&&null!=this.content&&(!("num_buffers"in this.header)||this.buffers.length===this.header.num_buffers)}send(e){if((null!=this.header.num_buffers?this.header.num_buffers:0)>0)throw new Error("BokehJS only supports receiving buffers, not sending");const s=JSON.stringify(this.header),t=JSON.stringify(this.metadata),r=JSON.stringify(this.content);e.send(s),e.send(t),e.send(r)}msgid(){return this.header.msgid}msgtype(){return this.header.msgtype}reqid(){return this.header.reqid}problem(){return"msgid"in this.header?"msgtype"in this.header?null:"No msgtype in header":"No msgid in header"}}t.Message=n,n.__name__="Message"},n”, ” function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const _=e(349);class r{constructor(){this.message=null,this._partial=null,this._fragments=[],this._buf_header=null,this._current_consumer=this._HEADER}consume(e){this._current_consumer(e)}_HEADER(e){this._assume_text(e),this.message=null,this._partial=null,this._fragments=[e],this._buf_header=null,this._current_consumer=this._METADATA}_METADATA(e){this._assume_text(e),this._fragments.push(e),this._current_consumer=this._CONTENT}_CONTENT(e){this._assume_text(e),this._fragments.push(e);const[t,s,r]=this._fragments.slice(0,3);this._partial=_.Message.assemble(t,s,r),this._check_complete()}_BUFFER_HEADER(e){this._assume_text(e),this._buf_header=e,this._current_consumer=this._BUFFER_PAYLOAD}_BUFFER_PAYLOAD(e){this._assume_binary(e),this._partial.assemble_buffer(this._buf_header,e),this._check_complete()}_assume_text(e){if(e instanceof ArrayBuffer)throw new Error("Expected text fragment but received binary fragment")}_assume_binary(e){if(!(e instanceof ArrayBuffer))throw new Error("Expected binary fragment but received text fragment")}_check_complete(){this._partial.complete()?(this.message=this._partial,this._current_consumer=this._HEADER):this._current_consumer=this._BUFFER_HEADER}}s.Receiver=r,r.__name__="Receiver"},n”, ” function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(5),s=e(349),i=e(70);class c{constructor(e,t,n){this._connection=e,this.document=t,this.id=n,this._document_listener=e=>this._document_changed(e),this.document.on_change(this._document_listener)}handle(e){const t=e.msgtype();"PATCH-DOC"===t?this._handle_patch(e):"OK"===t?this._handle_ok(e):"ERROR"===t?this._handle_error(e):i.logger.debug(Doing nothing with message ${e.msgtype()})}close(){this._connection.close()}_connection_closed(){this.document.remove_on_change(this._document_listener)}async request_server_info(){const e=s.Message.create("SERVER-INFO-REQ",{});return(await this._connection.send_with_reply(e)).content}async force_roundtrip(){await this.request_server_info()}_document_changed(e){if(e.setter_id===this.id)return;if(e instanceof o.ModelChangedEvent&&!(e.attr in e.model.serializable_attributes()))return;const t=s.Message.create("PATCH-DOC",{},this.document.create_json_patch([e]));this._connection.send(t)}_handle_patch(e){this.document.apply_json_patch(e.content,e.buffers,this.id)}_handle_ok(e){i.logger.trace(Unhandled OK reply to ${e.reqid()})}_handle_error(e){i.logger.error(Unhandled ERROR reply to ${e.reqid()}: ${e.content.text})}}n.ClientSession=c,c.__name__="ClientSession"},n”, ” function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(5),r=e(350),s=e(70),i=e(24),c=e(345),l=e(346);function u(e,o){o.buffers.length>0?e.consume(o.buffers[0].buffer):e.consume(o.content.data);const t=e.message;null!=t&&this.apply_json_patch(t.content,t.buffers)}function g(e,o){if("undefined"!=typeof Jupyter&&null!=Jupyter.notebook.kernel){s.logger.info(Registering Jupyter comms for target ${e});const t=Jupyter.notebook.kernel.comm_manager;try{t.register_target(e,t=>{s.logger.info(Registering Jupyter comms for target ${e});const n=new r.Receiver;t.on_msg(u.bind(o,n))})}catch(e){s.logger.warn(Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e}))}}else if(o.roots()[0].id in t.kernels){s.logger.info(Registering JupyterLab comms for target ${e});const n=t.kernels[o.roots()[0].id];try{n.registerCommTarget(e,t=>{s.logger.info(Registering JupyterLab comms for target ${e});const n=new r.Receiver;t.onMsg=u.bind(o,n)})}catch(e){s.logger.warn(Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e}))}}else console.warn("Jupyter notebooks comms not available. push_notebook() will not function. If running JupyterLab ensure the latest @bokeh/jupyter_bokeh extension is installed. In an exported notebook this warning is expected.")}e(279),e(353),t.kernels={},t.embed_items_notebook=function(e,o){if(1!=i.size(e))throw new Error("embed_items_notebook expects exactly one document in docs_json");const t=n.Document.from_json(i.values(e)[0]);for(const e of o){null!=e.notebook_comms_target&&g(e.notebook_comms_target,t);const o=l._resolve_element(e),n=l._resolve_root_elements(e);c.add_document_standalone(t,o,n)}}},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(1);e(67),n.__importStar(e(66)).styles.append("/* notebook specific tweaks so no black outline and matching padding\n/* can’t be wrapped inside bk-root. here are the offending jupyter lines:\n/* https://github.com/jupyter/notebook/blob/master/notebook/static/notebook/less/renderedhtml.less#L59-L76 /\n.rendered_html .bk-root .bk-tooltip table,\n.rendered_html .bk-root .bk-tooltip tr,\n.rendered_html .bk-root .bk-tooltip th,\n.rendered_html .bk-root .bk-tooltip td {\n border: none;\n padding: 1px;\n}\n")},n”, ” function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const o=e(1);o.__exportStar(e(349),_),o.__exportStar(e(350),_)},n”, ” function _(e,t,n){function s(){const e=document.getElementsByTagName("body")[0],t=document.getElementsByClassName("bokeh-test-div");1==t.length&&(e.removeChild(t[0]),delete t[0]);const n=document.createElement("div");n.classList.add("bokeh-test-div"),n.style.display="none",e.insertBefore(n,e.firstChild)}Object.defineProperty(n,"__esModule",{value:!0}),n.results={},n.init=function(){s()},n.record0=function(e,t){n.results[e]=t},n.record=function(e,t){n.results[e]=t,s()},n.count=function(e){null==n.results[e]&&(n.results[e]=0),n.results[e]+=1,s()}},n”, ” function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.safely=function(e,t=!1){try{return e()}catch(e){if(function(e){const t=document.createElement("div");t.style.backgroundColor="#f2dede",t.style.border="1px solid #a94442",t.style.borderRadius="4px",t.style.display="inline-block",t.style.fontFamily="sans-serif",t.style.marginTop="5px",t.style.minWidth="200px",t.style.padding="5px 5px 5px 10px",t.classList.add("bokeh-error-box-into-flames");const o=document.createElement("span");o.style.backgroundColor="#a94442",o.style.borderRadius="0px 4px 0px 0px",o.style.color="white",o.style.cursor="pointer",o.style.cssFloat="right",o.style.fontSize="0.8em",o.style.margin="-6px -6px 0px 0px",o.style.padding="2px 5px 4px 5px",o.title="close",o.setAttribute("aria-label","close"),o.appendChild(document.createTextNode("x")),o.addEventListener("click",()=>r.removeChild(t));const n=document.createElement("h3");n.style.color="#a94442",n.style.margin="8px 0px 0px 0px",n.style.padding="0px",n.appendChild(document.createTextNode("Bokeh Error"));const l=document.createElement("pre");l.style.whiteSpace="unset",l.style.overflowX="auto";const s=e instanceof Error?e.message:e;l.appendChild(document.createTextNode(s)),t.appendChild(o),t.appendChild(n),t.appendChild(l);const r=document.getElementsByTagName("body")[0];r.insertBefore(t,r.firstChild)}(e),t)return;throw e}}},n”, ” ], 0, {"main":0,"tslib":1,"index":2,"version":3,"embed/index":4,"document/index":5,"document/document":6,"base":7,"core/util/types":8,"core/util/array":9,"core/util/math":10,"core/util/assert":11,"core/util/arrayable":12,"core/has_props":13,"core/signaling":14,"core/util/data_structures":15,"core/util/eq":16,"core/util/callback":17,"core/property_mixins":18,"core/properties":19,"core/enums":20,"core/util/color":21,"core/util/svg_colors":22,"core/settings":23,"core/util/object":24,"core/util/refs":25,"core/util/string":26,"models/index":27,"models/annotations/index":28,"models/annotations/annotation":29,"core/util/projections":30,"models/renderers/renderer":63,"core/dom_view":64,"core/view":65,"core/dom":66,"styles/root":67,"core/visuals":68,"model":69,"core/logging":70,"models/annotations/arrow":71,"models/annotations/arrow_head":72,"models/sources/column_data_source":73,"models/sources/columnar_data_source":74,"models/sources/data_source":75,"models/selections/selection":76,"core/selection_manager":77,"models/renderers/glyph_renderer":78,"models/renderers/data_renderer":79,"models/glyphs/line":80,"models/glyphs/xy_glyph":81,"core/util/spatial":82,"core/util/bbox":85,"models/glyphs/glyph":86,"core/hittest":87,"models/ranges/factor_range":88,"models/ranges/range":89,"models/glyphs/utils":90,"models/glyphs/patch":91,"models/glyphs/harea":92,"models/glyphs/area":93,"models/glyphs/varea":94,"models/sources/cds_view":95,"core/build_views":96,"models/renderers/graph_renderer":97,"models/graphs/graph_hit_test_policy":98,"models/selections/interaction_policy":99,"core/util/serialization":100,"core/util/compat":101,"core/util/typed_array":102,"document/events":103,"models/annotations/band":104,"models/annotations/box_annotation":105,"styles/annotations":106,"models/annotations/color_bar":107,"models/tickers/basic_ticker":108,"models/tickers/adaptive_ticker":109,"models/tickers/continuous_ticker":110,"models/tickers/ticker":111,"models/formatters/basic_tick_formatter":112,"models/formatters/tick_formatter":113,"models/mappers/linear_color_mapper":114,"models/mappers/continuous_color_mapper":115,"models/mappers/color_mapper":116,"models/mappers/mapper":117,"models/transforms/transform":118,"models/scales/linear_scale":119,"models/scales/continuous_scale":120,"models/scales/scale":121,"models/transforms/index":122,"models/transforms/customjs_transform":123,"models/transforms/dodge":124,"models/transforms/interpolator":125,"models/transforms/jitter":126,"models/transforms/linear_interpolator":127,"models/transforms/step_interpolator":128,"models/scales/log_scale":129,"models/ranges/range1d":130,"core/util/text":131,"models/annotations/label":132,"models/annotations/text_annotation":133,"models/annotations/label_set":134,"models/annotations/legend":135,"models/annotations/legend_item":136,"core/vectorization":137,"models/annotations/poly_annotation":138,"models/annotations/slope":139,"models/annotations/span":140,"models/annotations/title":141,"models/annotations/toolbar_panel":142,"models/annotations/tooltip":143,"styles/tooltips":144,"styles/mixins":145,"models/annotations/whisker":146,"models/axes/index":147,"models/axes/axis":148,"models/renderers/guide_renderer":149,"models/axes/categorical_axis":150,"models/tickers/categorical_ticker":151,"models/formatters/categorical_tick_formatter":152,"models/axes/continuous_axis":153,"models/axes/datetime_axis":154,"models/axes/linear_axis":155,"models/formatters/datetime_tick_formatter":156,"core/util/templating":158,"models/tickers/datetime_ticker":161,"models/tickers/composite_ticker":162,"models/tickers/days_ticker":163,"models/tickers/single_interval_ticker":164,"models/tickers/util":165,"models/tickers/months_ticker":166,"models/tickers/years_ticker":167,"models/axes/log_axis":168,"models/formatters/log_tick_formatter":169,"models/tickers/log_ticker":170,"models/axes/mercator_axis":171,"models/formatters/mercator_tick_formatter":172,"models/tickers/mercator_ticker":173,"models/callbacks/index":174,"models/callbacks/customjs":175,"models/callbacks/callback":176,"models/callbacks/open_url":177,"models/canvas/index":178,"models/canvas/canvas":179,"core/util/canvas":180,"styles/canvas":181,"models/canvas/cartesian_frame":183,"models/scales/categorical_scale":184,"models/ranges/data_range1d":185,"models/ranges/data_range":186,"core/layout/index":187,"core/layout/types":188,"core/layout/layoutable":189,"core/layout/alignments":190,"core/layout/grid":191,"core/layout/html":192,"models/expressions/index":193,"models/expressions/expression":194,"models/expressions/stack":195,"models/expressions/cumsum":196,"models/filters/index":197,"models/filters/boolean_filter":198,"models/filters/filter":199,"models/filters/customjs_filter":200,"models/filters/group_filter":201,"models/filters/index_filter":202,"models/formatters/index":203,"models/formatters/func_tick_formatter":204,"models/formatters/numeral_tick_formatter":205,"models/formatters/printf_tick_formatter":206,"models/glyphs/index":207,"models/glyphs/annular_wedge":208,"models/glyphs/annulus":209,"models/glyphs/arc":210,"models/glyphs/bezier":211,"models/glyphs/circle":212,"models/glyphs/center_rotatable":213,"models/glyphs/ellipse":214,"models/glyphs/ellipse_oval":215,"models/glyphs/hbar":216,"models/glyphs/box":217,"models/glyphs/hex_tile":218,"models/glyphs/image":219,"models/glyphs/image_base":220,"models/glyphs/image_rgba":221,"models/glyphs/image_url":222,"core/util/image":223,"models/glyphs/multi_line":224,"models/glyphs/multi_polygons":225,"models/glyphs/oval":226,"models/glyphs/patches":227,"models/glyphs/quad":228,"models/glyphs/quadratic":229,"models/glyphs/ray":230,"models/glyphs/rect":231,"models/glyphs/segment":232,"models/glyphs/step":233,"models/glyphs/text":234,"models/glyphs/vbar":235,"models/glyphs/wedge":236,"models/graphs/index":237,"models/graphs/layout_provider":238,"models/graphs/static_layout_provider":239,"models/grids/index":240,"models/grids/grid":241,"models/layouts/index":242,"models/layouts/box":243,"models/layouts/layout_dom":244,"models/layouts/column":245,"models/layouts/grid_box":246,"models/layouts/html_box":247,"models/layouts/row":248,"models/layouts/spacer":249,"models/layouts/tabs":250,"styles/tabs":251,"styles/buttons":252,"styles/menus":253,"models/layouts/widget_box":254,"models/mappers/index":255,"models/mappers/categorical_color_mapper":256,"models/mappers/categorical_mapper":257,"models/mappers/categorical_marker_mapper":258,"models/mappers/categorical_pattern_mapper":259,"models/mappers/log_color_mapper":260,"models/markers/index":261,"models/markers/defs":262,"models/markers/marker":263,"models/markers/scatter":264,"models/plots/index":265,"models/plots/gmap_plot":266,"models/plots/plot":267,"models/tools/toolbar":268,"models/tools/inspectors/inspect_tool":269,"models/tools/button_tool":270,"models/tools/tool":271,"styles/toolbar":272,"models/tools/on_off_button":273,"models/tools/toolbar_base":274,"models/tools/gestures/gesture_tool":275,"models/tools/actions/action_tool":276,"models/tools/actions/help_tool":277,"styles/icons":278,"styles/logo":279,"models/plots/plot_canvas":280,"core/bokeh_events":281,"core/ui_events":282,"core/util/wheel":284,"core/util/throttle":285,"core/layout/side_panel":286,"models/plots/gmap_plot_canvas":287,"models/ranges/index":288,"models/renderers/index":289,"models/scales/index":290,"models/selections/index":291,"models/sources/index":292,"models/sources/server_sent_data_source":293,"models/sources/web_data_source":294,"models/sources/ajax_data_source":295,"models/sources/geojson_data_source":296,"models/tickers/index":297,"models/tickers/fixed_ticker":298,"models/tiles/index":299,"models/tiles/bbox_tile_source":300,"models/tiles/mercator_tile_source":301,"models/tiles/tile_source":302,"models/tiles/tile_utils":303,"models/tiles/quadkey_tile_source":304,"models/tiles/tile_renderer":305,"models/tiles/wmts_tile_source":306,"styles/tiles":307,"models/tiles/tms_tile_source":308,"models/textures/index":309,"models/textures/canvas_texture":310,"models/textures/texture":311,"models/textures/image_url_texture":312,"models/tools/index":313,"models/tools/actions/custom_action":314,"models/tools/actions/redo_tool":315,"models/tools/actions/reset_tool":316,"models/tools/actions/save_tool":317,"models/tools/actions/undo_tool":318,"models/tools/actions/zoom_in_tool":319,"core/util/zoom":320,"models/tools/actions/zoom_out_tool":321,"models/tools/edit/edit_tool":322,"models/tools/edit/box_edit_tool":323,"models/tools/edit/freehand_draw_tool":324,"models/tools/edit/point_draw_tool":325,"models/tools/edit/poly_draw_tool":326,"models/tools/edit/poly_tool":327,"models/tools/edit/poly_edit_tool":328,"models/tools/gestures/box_select_tool":329,"models/tools/gestures/select_tool":330,"models/tools/util":331,"models/tools/gestures/box_zoom_tool":332,"models/tools/gestures/lasso_select_tool":333,"models/tools/gestures/pan_tool":334,"models/tools/gestures/poly_select_tool":335,"models/tools/gestures/range_tool":336,"models/tools/gestures/tap_tool":337,"models/tools/gestures/wheel_pan_tool":338,"models/tools/gestures/wheel_zoom_tool":339,"models/tools/inspectors/crosshair_tool":340,"models/tools/inspectors/customjs_hover":341,"models/tools/inspectors/hover_tool":342,"models/tools/tool_proxy":343,"models/tools/toolbar_box":344,"embed/standalone":345,"embed/dom":346,"embed/server":347,"client/connection":348,"protocol/message":349,"protocol/receiver":350,"client/session":351,"embed/notebook":352,"styles/notebook":353,"protocol/index":354,"testing":355,"safely":356}, {});n”, ” })n”, “n”, “n”, ” / END bokeh.min.js /n”, ” },n”, ” n”, ” function(Bokeh) {n”, ” / BEGIN bokeh-widgets.min.js /n”, ” /!n”, ” * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn”, ” * All rights reserved.n”, ” * n”, ” * Redistribution and use in source and binary forms, with or without modification,n”, ” * are permitted provided that the following conditions are met:n”, ” * n”, ” * Redistributions of source code must retain the above copyright notice,n”, ” * this list of conditions and the following disclaimer.n”, ” * n”, ” * Redistributions in binary form must reproduce the above copyright notice,n”, ” * this list of conditions and the following disclaimer in the documentationn”, ” * and/or other materials provided with the distribution.n”, ” * n”, ” * Neither the name of Anaconda nor the names of any contributorsn”, ” * may be used to endorse or promote products derived from this softwaren”, ” * without specific prior written permission.n”, ” * n”, ” * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n”, ” * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn”, ” * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn”, ” * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn”, ” * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn”, ” * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn”, ” * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn”, ” * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn”, ” * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n”, ” * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn”, ” * THE POSSIBILITY OF SUCH DAMAGE.n”, ” /n”, ” (function(root, factory) {n”, ” factory(root["Bokeh"], "2.0.2");n”, ” })(this, function(Bokeh, version) {n”, ” var define;n”, ” return (function(modules, entry, aliases, externals) {n”, ” const bokeh = typeof Bokeh !== "undefined" && (version != null ? Bokeh[version] : Bokeh);n”, ” if (bokeh != null) {n”, ” return bokeh.register_plugin(modules, entry, aliases);n”, ” } else {n”, ” throw new Error("Cannot find Bokeh " + version + ". You have to load it prior to loading plugins.");n”, ” }n”, ” })n”, ” ({n”, ” 376: function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1).__importStar(e(377));o.Widgets=r,e(7).register_models(r)},n”, ” 377: function _(r,e,t){Object.defineProperty(t,"__esModule",{value:!0});var a=r(378);t.AbstractButton=a.AbstractButton;var o=r(381);t.AbstractIcon=o.AbstractIcon;var u=r(382);t.AutocompleteInput=u.AutocompleteInput;var n=r(386);t.Button=n.Button;var i=r(387);t.CheckboxButtonGroup=i.CheckboxButtonGroup;var v=r(389);t.CheckboxGroup=v.CheckboxGroup;var p=r(391);t.ColorPicker=p.ColorPicker;var l=r(392);t.DatePicker=l.DatePicker;var c=r(395);t.DateRangeSlider=c.DateRangeSlider;var d=r(400);t.DateSlider=d.DateSlider;var g=r(401);t.Div=g.Div;var I=r(404);t.Dropdown=I.Dropdown;var S=r(405);t.FileInput=S.FileInput;var P=r(384);t.InputWidget=P.InputWidget;var k=r(402);t.Markup=k.Markup;var x=r(406);t.MultiSelect=x.MultiSelect;var D=r(407);t.Paragraph=D.Paragraph;var b=r(408);t.PasswordInput=b.PasswordInput;var s=r(409);t.MultiChoice=s.MultiChoice;var h=r(412);t.PreText=h.PreText;var A=r(413);t.RadioButtonGroup=A.RadioButtonGroup;var B=r(414);t.RadioGroup=B.RadioGroup;var C=r(415);t.RangeSlider=C.RangeSlider;var G=r(416);t.Select=G.Select;var R=r(417);t.Slider=R.Slider;var T=r(418);t.Spinner=T.Spinner;var M=r(383);t.TextInput=M.TextInput;var w=r(419);t.TextAreaInput=w.TextAreaInput;var W=r(420);t.Toggle=W.Toggle;var _=r(441);t.Widget=_.Widget},n”, ” 378: function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),s=t(66),o=t(96),l=t(379),r=t(252);class _ extends l.ControlView{async lazy_initialize(){await super.lazy_initialize();const{icon:t}=this.model;null!=t&&(this.icon_view=await o.build_view(t,{parent:this}))}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}remove(){null!=this.icon_view&&this.icon_view.remove(),super.remove()}_render_button(…t){return s.button({type:"button",disabled:this.model.disabled,class:[r.bk_btn,r.bk_btn_type(this.model.button_type)]},…t)}render(){super.render(),this.button_el=this._render_button(this.model.label),this.button_el.addEventListener("click",()=>this.click()),null!=this.icon_view&&(s.prepend(this.button_el,this.icon_view.el,s.nbsp()),this.icon_view.render()),this.group_el=s.div({class:r.bk_btn_group},this.button_el),this.el.appendChild(this.group_el)}click(){}}n.AbstractButtonView=_,_.__name__="AbstractButtonView";class c extends l.Control{constructor(t){super(t)}static init_AbstractButton(){this.define({label:[i.String,"Button"],icon:[i.Instance],button_type:[i.ButtonType,"default"]})}}n.AbstractButton=c,c.__name__="AbstractButton",c.init_AbstractButton()},n”, ” 379: function _(e,n,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(441);class o extends t.WidgetView{connect_signals(){super.connect_signals();const e=this.model.properties;this.on_change(e.disabled,()=>this.render())}}s.ControlView=o,o.__name__="ControlView";class i extends t.Widget{constructor(e){super(e)}}s.Control=i,i.__name__="Control"},n”, ” 441: function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=i(1),n=i(247),r=o.__importStar(i(19));class _ extends n.HTMLBoxView{_width_policy(){return"horizontal"==this.model.orientation?super._width_policy():"fixed"}_height_policy(){return"horizontal"==this.model.orientation?"fixed":super._height_policy()}box_sizing(){const i=super.box_sizing();return"horizontal"==this.model.orientation?null==i.width&&(i.width=this.model.default_size):null==i.height&&(i.height=this.model.default_size),i}}t.WidgetView=_,_.__name__="WidgetView";class s extends n.HTMLBox{constructor(i){super(i)}static init_Widget(){this.define({orientation:[r.Orientation,"horizontal"],default_size:[r.Number,300]}),this.override({margin:[5,5,5,5]})}}t.Widget=s,s.__name__="Widget",s.init_Widget()},n”, ” 381: function _(e,t,c){Object.defineProperty(c,"__esModule",{value:!0});const s=e(69),n=e(64);class o extends n.DOMView{}c.AbstractIconView=o,o.__name__="AbstractIconView";class _ extends s.Model{constructor(e){super(e)}}c.AbstractIcon=_,_.__name__="AbstractIcon"},n”, ” 382: function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),s=e(383),h=e(66),_=i.__importStar(e(19)),o=e(10),u=e(145),r=e(253);class c extends s.TextInputView{constructor(){super(…arguments),this._open=!1,this._last_value="",this._hover_index=0}render(){super.render(),this.input_el.addEventListener("keydown",e=>this._keydown(e)),this.input_el.addEventListener("keyup",e=>this._keyup(e)),this.menu=h.div({class:[r.bk_menu,u.bk_below]}),this.menu.addEventListener("click",e=>this._menu_click(e)),this.menu.addEventListener("mouseover",e=>this._menu_hover(e)),this.el.appendChild(this.menu),h.undisplay(this.menu)}change_input(){this._open&&this.menu.children.length>0&&(this.model.value=this.menu.children[this._hover_index].textContent,this.input_el.focus(),this._hide_menu())}_update_completions(e){h.empty(this.menu);for(const t of e){const e=h.div({},t);this.menu.appendChild(e)}e.length>0&&this.menu.children[0].classList.add(u.bk_active)}_show_menu(){if(!this._open){this._open=!0,this._hover_index=0,this._last_value=this.model.value,h.display(this.menu);const e=t=>{const{target:n}=t;n instanceof HTMLElement&&!this.el.contains(n)&&(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,h.undisplay(this.menu))}_menu_click(e){e.target!=e.currentTarget&&e.target instanceof Element&&(this.model.value=e.target.textContent,this.input_el.focus(),this._hide_menu())}_menu_hover(e){if(e.target!=e.currentTarget&&e.target instanceof Element){let t=0;for(t=0;t<this.menu.children.length&&this.menu.children[t].textContent!=e.target.textContent;t++);this._bump_hover(t)}}_bump_hover(e){const t=this.menu.children.length;this._open&&t>0&&(this.menu.children[this._hover_index].classList.remove(u.bk_active),this._hover_index=o.clamp(e,0,t-1),this.menu.children[this._hover_index].classList.add(u.bk_active))}_keydown(e){}_keyup(e){switch(e.keyCode){case h.Keys.Enter:this.change_input();break;case h.Keys.Esc:this._hide_menu();break;case h.Keys.Up:this._bump_hover(this._hover_index-1);break;case h.Keys.Down:this._bump_hover(this._hover_index+1);break;default:{const e=this.input_el.value;if(e.length<this.model.min_characters)return void this._hide_menu();const t=[];for(const n of this.model.completions)n.startsWith(e)&&t.push(n);this._update_completions(t),0==t.length?this._hide_menu():this._show_menu()}}}}n.AutocompleteInputView=c,c.__name__="AutocompleteInputView";class l extends s.TextInput{constructor(e){super(e)}static init_AutocompleteInput(){this.prototype.default_view=c,this.define({completions:[_.Array,[]],min_characters:[_.Int,2]})}}n.AutocompleteInput=l,l.__name__="AutocompleteInput",l.init_AutocompleteInput()},n”, ” 383: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(384),l=e(66),p=n.__importStar(e(19)),u=e(385);class a extends s.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.value.change,()=>this.input_el.value=this.model.value),this.connect(this.model.properties.value_input.change,()=>this.input_el.value=this.model.value_input),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled),this.connect(this.model.properties.placeholder.change,()=>this.input_el.placeholder=this.model.placeholder)}render(){super.render(),this.input_el=l.input({type:"text",class:u.bk_input,name:this.model.name,value:this.model.value,disabled:this.model.disabled,placeholder:this.model.placeholder}),this.input_el.addEventListener("change",()=>this.change_input()),this.input_el.addEventListener("input",()=>this.change_input_oninput()),this.group_el.appendChild(this.input_el)}change_input(){this.model.value=this.input_el.value,super.change_input()}change_input_oninput(){this.model.value_input=this.input_el.value,super.change_input()}}i.TextInputView=a,a.__name__="TextInputView";class h extends s.InputWidget{constructor(e){super(e)}static init_TextInput(){this.prototype.default_view=a,this.define({value:[p.String,""],value_input:[p.String,""],placeholder:[p.String,""]})}}i.TextInput=h,h.__name__="TextInput",h.init_TextInput()},n”, ” 384: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),l=e(379),s=e(66),_=n.__importStar(e(19)),o=e(385);class p extends l.ControlView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.title.change,()=>{this.label_el.textContent=this.model.title})}render(){super.render();const{title:e}=this.model;this.label_el=s.label({style:{display:0==e.length?"none":""}},e),this.group_el=s.div({class:o.bk_input_group},this.label_el),this.el.appendChild(this.group_el)}change_input(){}}i.InputWidgetView=p,p.__name__="InputWidgetView";class r extends l.Control{constructor(e){super(e)}static init_InputWidget(){this.define({title:[_.String,""]})}}i.InputWidget=r,r.__name__="InputWidget",r.init_InputWidget()},n”, ” 385: function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const e=n(1);n(67),e.__importStar(n(66)).styles.append(‘.bk-root .bk-input {\n display: inline-block;\n width: 100%;\n flex-grow: 1;\n -webkit-flex-grow: 1;\n min-height: 31px;\n padding: 0 12px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n.bk-root .bk-input:focus {\n border-color: #66afe9;\n outline: 0;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);\n}\n.bk-root .bk-input::placeholder,\n.bk-root .bk-input:-ms-input-placeholder,\n.bk-root .bk-input::-moz-placeholder,\n.bk-root .bk-input::-webkit-input-placeholder {\n color: #999;\n opacity: 1;\n}\n.bk-root .bk-input[disabled] {\n cursor: not-allowed;\n background-color: #eee;\n opacity: 1;\n}\n.bk-root select:not([multiple]).bk-input,\n.bk-root select:not([size]).bk-input {\n height: auto;\n appearance: none;\n -webkit-appearance: none;\n background-image: url(\’data:image/svg+xml;utf8,<svg version="1.1" viewBox="0 0 25 20" xmlns="http://www.w3.org/2000/svg"><path d="M 0,0 25,0 12.5,20 Z" fill="black" /></svg>\’);\n background-position: right 0.5em center;\n background-size: 8px 6px;\n background-repeat: no-repeat;\n}\n.bk-root select[multiple].bk-input,\n.bk-root select[size].bk-input,\n.bk-root textarea.bk-input {\n height: auto;\n}\n.bk-root .bk-input-group {\n width: 100%;\n height: 100%;\n display: inline-flex;\n display: -webkit-inline-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: start;\n -webkit-align-items: start;\n flex-direction: column;\n -webkit-flex-direction: column;\n white-space: nowrap;\n}\n.bk-root .bk-input-group.bk-inline {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-input-group.bk-inline > *:not(:first-child) {\n margin-left: 5px;\n}\n.bk-root .bk-input-group input[type="checkbox"] + span,\n.bk-root .bk-input-group input[type="radio"] + span {\n position: relative;\n top: -2px;\n margin-left: 3px;\n}\n’),t.bk_input="bk-input",t.bk_input_group="bk-input-group"},n”, ” 386: function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(378),o=t(281);class s extends n.AbstractButtonView{click(){this.model.clicks=this.model.clicks+1,this.model.trigger_event(new o.ButtonClick),super.click()}}i.ButtonView=s,s.__name__="ButtonView";class c extends n.AbstractButton{constructor(t){super(t)}static init_Button(){this.prototype.default_view=s,this.override({label:"Button"})}}i.Button=c,c.__name__="Button",c.init_Button()},n”, ” 387: function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t(1),c=t(388),n=t(66),s=t(15),u=i.__importStar(t(19)),a=t(145);class r extends c.ButtonGroupView{get active(){return new s.Set(this.model.active)}change_active(t){const{active:e}=this;e.toggle(t),this.model.active=e.values}_update_active(){const{active:t}=this;this._buttons.forEach((e,o)=>{n.classes(e).toggle(a.bk_active,t.has(o))})}}o.CheckboxButtonGroupView=r,r.__name__="CheckboxButtonGroupView";class _ extends c.ButtonGroup{constructor(t){super(t)}static init_CheckboxButtonGroup(){this.prototype.default_view=r,this.define({active:[u.Array,[]]})}}o.CheckboxButtonGroup=_,_.__name__="CheckboxButtonGroup",_.init_CheckboxButtonGroup()},n”, ” 388: function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const s=t(1),o=t(379),i=t(66),_=s.__importStar(t(19)),r=t(252);class a extends o.ControlView{connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.button_type,()=>this.render()),this.on_change(t.labels,()=>this.render()),this.on_change(t.active,()=>this._update_active())}render(){super.render(),this._buttons=this.model.labels.map((t,e)=>{const n=i.div({class:[r.bk_btn,r.bk_btn_type(this.model.button_type)],disabled:this.model.disabled},t);return n.addEventListener("click",()=>this.change_active(e)),n}),this._update_active();const t=i.div({class:r.bk_btn_group},this._buttons);this.el.appendChild(t)}}n.ButtonGroupView=a,a.__name__="ButtonGroupView";class u extends o.Control{constructor(t){super(t)}static init_ButtonGroup(){this.define({labels:[_.Array,[]],button_type:[_.ButtonType,"default"]})}}n.ButtonGroup=u,u.__name__="ButtonGroup",u.init_ButtonGroup()},n”, ” 389: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),o=e(390),s=e(66),c=e(9),l=e(15),a=n.__importStar(e(19)),r=e(145),d=e(385);class p extends o.InputGroupView{render(){super.render();const e=s.div({class:[d.bk_input_group,this.model.inline?r.bk_inline:null]});this.el.appendChild(e);const{active:t,labels:i}=this.model;for(let n=0;n<i.length;n++){const o=s.input({type:"checkbox",value:`${n}`});o.addEventListener("change",()=>this.change_active(n)),this.model.disabled&&(o.disabled=!0),c.includes(t,n)&&(o.checked=!0);const l=s.label({},o,s.span({},i[n]));e.appendChild(l)}}change_active(e){const t=new l.Set(this.model.active);t.toggle(e),this.model.active=t.values}}i.CheckboxGroupView=p,p.__name__="CheckboxGroupView";class u extends o.InputGroup{constructor(e){super(e)}static init_CheckboxGroup(){this.prototype.default_view=p,this.define({active:[a.Array,[]],labels:[a.Array,[]],inline:[a.Boolean,!1]})}}i.CheckboxGroup=u,u.__name__="CheckboxGroup",u.init_CheckboxGroup()},n”, ” 390: function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(379);class s extends o.ControlView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}}t.InputGroupView=s,s.__name__="InputGroupView";class c extends o.Control{constructor(e){super(e)}}t.InputGroup=c,c.__name__="InputGroup"},n”, ” 391: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),o=e(384),s=e(66),l=n.__importStar(e(19)),r=e(385);class c extends o.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.color.change,()=>this.input_el.value=this.model.color),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled)}render(){super.render(),this.input_el=s.input({type:"color",class:r.bk_input,name:this.model.name,value:this.model.color,disabled:this.model.disabled}),this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){this.model.color=this.input_el.value,super.change_input()}}t.ColorPickerView=c,c.__name__="ColorPickerView";class d extends o.InputWidget{constructor(e){super(e)}static init_ColorPicker(){this.prototype.default_view=c,this.define({color:[l.Color,"#000000"]})}}t.ColorPicker=d,d.__name__="ColorPicker",d.init_ColorPicker()},n”, ” 392: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),a=n.__importDefault(e(393)),s=e(384),l=e(66),o=n.__importStar(e(19)),d=e(8),r=e(385);function c(e){const t=[];for(const i of e)d.isString(i)?t.push(i):d.isArray(i)&&2==i.length&&t.push({from:i[0],to:i[1]});return t}e(394);class u extends s.InputWidgetView{connect_signals(){super.connect_signals();const{value:e,min_date:t,max_date:i,disabled_dates:n,enabled_dates:a,position:s,inline:l}=this.model.properties;this.connect(e.change,()=>{var t;return null===(t=this._picker)||void 0===t?void 0:t.setDate(e.value())}),this.connect(t.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("minDate",t.value())}),this.connect(i.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("maxDate",i.value())}),this.connect(n.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("disable",n.value())}),this.connect(a.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("enable",a.value())}),this.connect(s.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("position",s.value())}),this.connect(l.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("inline",l.value())})}render(){null==this._picker&&(super.render(),this.input_el=l.input({type:"text",class:r.bk_input,disabled:this.model.disabled}),this.group_el.appendChild(this.input_el),this._picker=a.default(this.input_el,{defaultDate:this.model.value,minDate:this.model.min_date,maxDate:this.model.max_date,inline:this.model.inline,position:this.model.position,disable:c(this.model.disabled_dates),enable:c(this.model.enabled_dates),onChange:(e,t,i)=>this._on_change(e,t,i)}))}_on_change(e,t,i){this.model.value=t,this.change_input()}}i.DatePickerView=u,u.__name__="DatePickerView";class _ extends s.InputWidget{constructor(e){super(e)}static init_DatePicker(){this.prototype.default_view=u,this.define({value:[o.Any],min_date:[o.Any],max_date:[o.Any],disabled_dates:[o.Any,[]],enabled_dates:[o.Any,[]],position:[o.CalendarPosition,"auto"],inline:[o.Boolean,!1]})}}i.DatePicker=_,_.__name__="DatePicker",_.init_DatePicker()},n”, ” 393: function _(e,t,n){n”, ” / flatpickr v4.6.3, @license MIT /var a,i;a=this,i=function(){"use strict";n”, ” /! *************************************************************************n”, ” Copyright (c) Microsoft Corporation. All rights reserved.n”, ” Licensed under the Apache License, Version 2.0 (the "License"); you may not usen”, ” this file except in compliance with the License. You may obtain a copy of then”, ” License at http://www.apache.org/licenses/LICENSE-2.0n”, ” n”, ” THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYn”, ” KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDn”, ” WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,n”, ” MERCHANTABLITY OR NON-INFRINGEMENT.n”, ” n”, ” See the Apache Version 2.0 License for specific language governing permissionsn”, ” and limitations under the License.n”, ” ************************************************************************* /var e=function(){return(e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version=’1.1’ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’ viewBox=’0 0 17 17’><g></g><path d=’M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z’ /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version=’1.1’ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’ viewBox=’0 0 17 17’><g></g><path d=’M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z’ /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},i=function(e){return("0"+e).slice(-2)},o=function(e){return!0===e?1:0};function r(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=window.setTimeout((function(){a=null,n||e.apply(i,o)}),t),n&&!a&&e.apply(i,o)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function s(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function u(e,t){var n=d("div","numInputWrapper"),a=d("input","numInput "+e),i=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}var f=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},g={D:f,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*o(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var a=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:f,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:f,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},p={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},h={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[h.w(e,t,n)]},F:function(e,t,n){return m(h.n(e,t,n)-1,!1,t)},G:function(e,t,n){return i(h.h(e,t,n))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},v=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,n){var a=n||r;return void 0!==i.formatDate?i.formatDate(e,t,a):t.split("").map((function(t,n,o){return h[t]&&"\\"!==o[n-1]?h[t](e,a,i):"\\"!==t?t:""})).join("")}},D=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,a,o){if(0===e||e){var l,c=o||r,d=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var s=t||(i||n).dateFormat,u=String(e).trim();if("today"===u)l=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else if(i&&i.parseDate)l=i.parseDate(e,s);else{l=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,m=[],h=0,v=0,D="";h<s.length;h++){var w=s[h],b="\\"===w,C="\\"===s[h-1]||b;if(p[w]&&!C){D+=p[w];var M=new RegExp(D).exec(e);M&&(f=!0)&&m["Y"!==w?"push":"unshift"]({fn:g[w],val:M[++v]})}else b||(D+=".");m.forEach((function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l}))}l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===a&&l.setHours(0,0,0,0),l;i.errorHandler(new Error("Invalid date provided: "+d))}}};function w(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var b=864e5;function C(f,g){var h={config:e({},n,y.defaultConfig),l10n:a};function C(e){return e.bind(h)}function M(){var e=h.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==h.calendarContainer&&(h.calendarContainer.style.visibility="hidden",h.calendarContainer.style.display="block"),void 0!==h.daysContainer){var t=(h.days.offsetWidth+1)*e.showMonths;h.daysContainer.style.width=t+"px",h.calendarContainer.style.width=t+(void 0!==h.weekWrapper?h.weekWrapper.offsetWidth:0)+"px",h.calendarContainer.style.removeProperty("visibility"),h.calendarContainer.style.removeProperty("display")}}))}function x(e){0===h.selectedDates.length&&ne(),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==h.amPM&&e.target===h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]);var a=parseFloat(n.getAttribute("min")),r=parseFloat(n.getAttribute("max")),l=parseFloat(n.getAttribute("step")),c=parseInt(n.value,10),d=e.delta||(t?38===e.which?1:-1:0),s=c+l*d;if(void 0!==n.value&&2===n.value.length){var u=n===h.hourElement,f=n===h.minuteElement;s<a?(s=r+s+o(!u)+(o(u)&&o(!h.amPM)),f&&Y(void 0,-1,h.hourElement)):s>r&&(s=n===h.hourElement?s-r-o(!h.amPM):a,f&&Y(void 0,1,h.hourElement)),h.amPM&&u&&(1===l?s+c===23:Math.abs(s-c)>l)&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]),n.value=i(s)}}(e);var t=h._input.value;E(),ve(),h._input.value!==t&&h._debouncedChange()}function E(){if(void 0!==h.hourElement&&void 0!==h.minuteElement){var e,t,n=(parseInt(h.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(h.minuteElement.value,10)||0)%60,i=void 0!==h.secondElement?(parseInt(h.secondElement.value,10)||0)%60:0;void 0!==h.amPM&&(e=n,t=h.amPM.textContent,n=e%12+12*o(t===h.l10n.amPM[1]));var r=void 0!==h.config.minTime||h.config.minDate&&h.minDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.minDate,!0);if(void 0!==h.config.maxTime||h.config.maxDate&&h.maxDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.maxDate,!0)){var l=void 0!==h.config.maxTime?h.config.maxTime:h.config.maxDate;(n=Math.min(n,l.getHours()))===l.getHours()&&(a=Math.min(a,l.getMinutes())),a===l.getMinutes()&&(i=Math.min(i,l.getSeconds()))}if(r){var c=void 0!==h.config.minTime?h.config.minTime:h.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(a=Math.max(a,c.getMinutes())),a===c.getMinutes()&&(i=Math.max(i,c.getSeconds()))}I(n,a,i)}}function T(e){var t=e||h.latestSelectedDateObj;t&&I(t.getHours(),t.getMinutes(),t.getSeconds())}function k(){var e=h.config.defaultHour,t=h.config.defaultMinute,n=h.config.defaultSeconds;if(void 0!==h.config.minDate){var a=h.config.minDate.getHours(),i=h.config.minDate.getMinutes();(e=Math.max(e,a))===a&&(t=Math.max(i,t)),e===a&&t===i&&(n=h.config.minDate.getSeconds())}if(void 0!==h.config.maxDate){var o=h.config.maxDate.getHours(),r=h.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(r,t)),e===o&&t===r&&(n=h.config.maxDate.getSeconds())}I(e,t,n)}function I(e,t,n){void 0!==h.latestSelectedDateObj&&h.latestSelectedDateObj.setHours(e%24,t,n||0,0),h.hourElement&&h.minuteElement&&!h.isMobile&&(h.hourElement.value=i(h.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),h.minuteElement.value=i(t),void 0!==h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(e>=12)]),void 0!==h.secondElement&&(h.secondElement.value=i(n)))}function S(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&V(t)}function O(e,t,n,a){return t instanceof Array?t.forEach((function(t){return O(e,t,n,a)})):e instanceof Array?e.forEach((function(e){return O(e,t,n,a)})):(e.addEventListener(t,n,a),void h._handlers.push({element:e,event:t,handler:n,options:a}))}function _(e){return function(t){1===t.which&&e(t)}}function F(){fe("onChange")}function N(e,t){var n=void 0!==e?h.parseDate(e):h.latestSelectedDateObj||(h.config.minDate&&h.config.minDate>h.now?h.config.minDate:h.config.maxDate&&h.config.maxDate<h.now?h.config.maxDate:h.now),a=h.currentYear,i=h.currentMonth;try{void 0!==n&&(h.currentYear=n.getFullYear(),h.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,h.config.errorHandler(e)}t&&h.currentYear!==a&&(fe("onYearChange"),B()),!t||h.currentYear===a&&h.currentMonth===i||fe("onMonthChange"),h.redraw()}function P(e){~e.target.className.indexOf("arrow")&&Y(e,e.target.classList.contains("arrowUp")?1:-1)}function Y(e,t,n){var a=e&&e.target,i=n||a&&a.parentNode&&a.parentNode.firstChild,o=me("increment");o.delta=t,i&&i.dispatchEvent(o)}function A(e,t,n,a){var i=Z(t,!0),o=d("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",h.formatDate(t,h.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,h.now)&&(h.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,ge(t)&&(o.classList.add("selected"),h.selectedDateElem=o,"range"===h.config.mode&&(c(o,"startRange",h.selectedDates[0]&&0===w(t,h.selectedDates[0],!0)),c(o,"endRange",h.selectedDates[1]&&0===w(t,h.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===h.config.mode&&function(e){return!("range"!==h.config.mode||h.selectedDates.length<2)&&w(e,h.selectedDates[0])>=0&&w(e,h.selectedDates[1])<=0}(t)&&!ge(t)&&o.classList.add("inRange"),h.weekNumbers&&1===h.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&h.weekNumbers.insertAdjacentHTML("beforeend","<span class=’flatpickr-day’>"+h.config.getWeek(t)+"</span>"),fe("onDayCreate",o),o}function j(e){e.focus(),"range"===h.config.mode&&ee(e)}function H(e){for(var t=e>0?0:h.config.showMonths-1,n=e>0?h.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=h.daysContainer.children[a],o=e>0?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&Z(c.dateObj))return c}}function L(e,t){var n=Q(document.activeElement||document.body),a=void 0!==e?e:n?document.activeElement:void 0!==h.selectedDateElem&&Q(h.selectedDateElem)?h.selectedDateElem:void 0!==h.todayDateElem&&Q(h.todayDateElem)?h.todayDateElem:H(t>0?1:-1);return void 0===a?h._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():h.currentMonth,a=t>0?h.config.showMonths:-1,i=t>0?1:-1,o=n-h.currentMonth;o!=a;o+=i)for(var r=h.daysContainer.children[o],l=n-h.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,d=l;d>=0&&d<c&&d!=(t>0?c:-1);d+=i){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&Z(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return j(s)}h.changeMonth(i),L(H(i),0)}(a,t):j(a)}function W(e,t){for(var n=(new Date(e,t,1).getDay()-h.l10n.firstDayOfWeek+7)%7,a=h.utils.getDaysInMonth((t-1+12)%12),i=h.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),r=h.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-n,u=0;s<=a;s++,u++)o.appendChild(A(l,new Date(e,t-1,s),s,u));for(s=1;s<=i;s++,u++)o.appendChild(A("",new Date(e,t,s),s,u));for(var f=i+1;f<=42-n&&(1===h.config.showMonths||u%7!=0);f++,u++)o.appendChild(A(c,new Date(e,t+1,f%i),f,u));var m=d("div","dayContainer");return m.appendChild(o),m}function R(){if(void 0!==h.daysContainer){s(h.daysContainer),h.weekNumbers&&s(h.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<h.config.showMonths;t++){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),e.appendChild(W(n.getFullYear(),n.getMonth()))}h.daysContainer.appendChild(e),h.days=h.daysContainer.firstChild,"range"===h.config.mode&&1===h.selectedDates.length&&ee()}}function B(){if(!(h.config.showMonths>1||"dropdown"!==h.config.monthSelectorType)){var e=function(e){return!(void 0!==h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&e<h.config.minDate.getMonth()||void 0!==h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()&&e>h.config.maxDate.getMonth())};h.monthsDropdownContainer.tabIndex=-1,h.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=d("option","flatpickr-monthDropdown-month");n.value=new Date(h.currentYear,t).getMonth().toString(),n.textContent=m(t,h.config.shorthandCurrentMonth,h.l10n),n.tabIndex=-1,h.currentMonth===t&&(n.selected=!0),h.monthsDropdownContainer.appendChild(n)}}}function J(){var e,t=d("div","flatpickr-month"),n=window.document.createDocumentFragment();h.config.showMonths>1||"static"===h.config.monthSelectorType?e=d("span","cur-month"):(h.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),O(h.monthsDropdownContainer,"change",(function(e){var t=e.target,n=parseInt(t.value,10);h.changeMonth(n-h.currentMonth),fe("onMonthChange")})),B(),e=h.monthsDropdownContainer);var a=u("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",h.l10n.yearAriaLabel),h.config.minDate&&i.setAttribute("min",h.config.minDate.getFullYear().toString()),h.config.maxDate&&(i.setAttribute("max",h.config.maxDate.getFullYear().toString()),i.disabled=!!h.config.minDate&&h.config.minDate.getFullYear()===h.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),t.appendChild(n),{container:t,yearElement:i,monthElement:e}}function K(){s(h.monthNav),h.monthNav.appendChild(h.prevMonthNav),h.config.showMonths&&(h.yearElements=[],h.monthElements=[]);for(var e=h.config.showMonths;e–;){var t=J();h.yearElements.push(t.yearElement),h.monthElements.push(t.monthElement),h.monthNav.appendChild(t.container)}h.monthNav.appendChild(h.nextMonthNav)}function U(){h.weekdayContainer?s(h.weekdayContainer):h.weekdayContainer=d("div","flatpickr-weekdays");for(var e=h.config.showMonths;e–;){var t=d("div","flatpickr-weekdaycontainer");h.weekdayContainer.appendChild(t)}return q(),h.weekdayContainer}function q(){if(h.weekdayContainer){var e=h.l10n.firstDayOfWeek,t=h.l10n.weekdays.shorthand.slice();e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=h.config.showMonths;n–;)h.weekdayContainer.children[n].innerHTML="\n <span class=’flatpickr-weekday’>\n "+t.join("</span><span class=’flatpickr-weekday’>")+"\n </span>\n "}}function $(e,t){void 0===t&&(t=!0);var n=t?e:e-h.currentMonth;n<0&&!0===h._hidePrevMonthArrow||n>0&&!0===h._hideNextMonthArrow||(h.currentMonth+=n,(h.currentMonth<0||h.currentMonth>11)&&(h.currentYear+=h.currentMonth>11?1:-1,h.currentMonth=(h.currentMonth+12)%12,fe("onYearChange"),B()),R(),fe("onMonthChange"),pe())}function z(e){return!(!h.config.appendTo||!h.config.appendTo.contains(e))||h.calendarContainer.contains(e)}function G(e){if(h.isOpen&&!h.config.inline){var t="function"==typeof(r=e).composedPath?r.composedPath()[0]:r.target,n=z(t),a=t===h.input||t===h.altInput||h.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(h.input)||~e.path.indexOf(h.altInput)),i="blur"===e.type?a&&e.relatedTarget&&!z(e.relatedTarget):!a&&!n&&!z(e.relatedTarget),o=!h.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&x(),h.close(),"range"===h.config.mode&&1===h.selectedDates.length&&(h.clear(!1),h.redraw()))}var r}function V(e){if(!(!e||h.config.minDate&&e<h.config.minDate.getFullYear()||h.config.maxDate&&e>h.config.maxDate.getFullYear())){var t=e,n=h.currentYear!==t;h.currentYear=t||h.currentYear,h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth=Math.min(h.config.maxDate.getMonth(),h.currentMonth):h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&(h.currentMonth=Math.max(h.config.minDate.getMonth(),h.currentMonth)),n&&(h.redraw(),fe("onYearChange"),B())}}function Z(e,t){void 0===t&&(t=!0);var n=h.parseDate(e,void 0,t);if(h.config.minDate&&n&&w(n,h.config.minDate,void 0!==t?t:!h.minDateHasTime)<0||h.config.maxDate&&n&&w(n,h.config.maxDate,void 0!==t?t:!h.maxDateHasTime)>0)return!1;if(0===h.config.enable.length&&0===h.config.disable.length)return!0;if(void 0===n)return!1;for(var a=h.config.enable.length>0,i=a?h.config.enable:h.config.disable,o=0,r=void 0;o<i.length;o++){if("function"==typeof(r=i[o])&&r(n))return a;if(r instanceof Date&&void 0!==n&&r.getTime()===n.getTime())return a;if("string"==typeof r&&void 0!==n){var l=h.parseDate(r,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof r&&void 0!==n&&r.from&&r.to&&n.getTime()>=r.from.getTime()&&n.getTime()<=r.to.getTime())return a}return!a}function Q(e){return void 0!==h.daysContainer&&-1===e.className.indexOf("hidden")&&h.daysContainer.contains(e)}function X(e){var t=e.target===h._input,n=h.config.allowInput,a=h.isOpen&&(!n||!t),i=h.config.inline&&t&&!n;if(13===e.keyCode&&t){if(n)return h.setDate(h._input.value,!0,e.target===h.altInput?h.config.altFormat:h.config.dateFormat),e.target.blur();h.open()}else if(z(e.target)||a||i){var o=!!h.timeContainer&&h.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?(e.preventDefault(),x(),le()):ce(e);break;case 27:e.preventDefault(),le();break;case 8:case 46:t&&!h.config.allowInput&&(e.preventDefault(),h.clear());break;case 37:case 39:if(o||t)h.hourElement&&h.hourElement.focus();else if(e.preventDefault(),void 0!==h.daysContainer&&(!1===n||document.activeElement&&Q(document.activeElement))){var r=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),$(r),L(H(1),0)):L(void 0,r)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;h.daysContainer&&void 0!==e.target.$i||e.target===h.input||e.target===h.altInput?e.ctrlKey?(e.stopPropagation(),V(h.currentYear-l),L(H(1),0)):o||L(void 0,7*l):e.target===h.currentYearElement?V(h.currentYear-l):h.config.enableTime&&(!o&&h.hourElement&&h.hourElement.focus(),x(e),h._debouncedChange());break;case 9:if(o){var c=[h.hourElement,h.minuteElement,h.secondElement,h.amPM].concat(h.pluginElements).filter((function(e){return e})),d=c.indexOf(e.target);if(-1!==d){var s=c[d+(e.shiftKey?-1:1)];e.preventDefault(),(s||h._input).focus()}}else!h.config.noCalendar&&h.daysContainer&&h.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),h._input.focus())}}if(void 0!==h.amPM&&e.target===h.amPM)switch(e.key){case h.l10n.amPM[0].charAt(0):case h.l10n.amPM[0].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[0],E(),ve();break;case h.l10n.amPM[1].charAt(0):case h.l10n.amPM[1].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[1],E(),ve()}(t||z(e.target))&&fe("onKeyDown",e)}function ee(e){if(1===h.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():h.days.firstElementChild.dateObj.getTime(),n=h.parseDate(h.selectedDates[0],void 0,!0).getTime(),a=Math.min(t,h.selectedDates[0].getTime()),i=Math.max(t,h.selectedDates[0].getTime()),o=!1,r=0,l=0,c=a;c<i;c+=b)Z(new Date(c),!0)||(o=o||c>a&&c<i,c<n&&(!r||c>r)?r=c:c>n&&(!l||c<l)&&(l=c));for(var d=0;d<h.config.showMonths;d++)for(var s=h.daysContainer.children[d],u=function(a,i){var c,d,u,f=s.children[a],m=f.dateObj.getTime(),g=r>0&&m<r||l>0&&m>l;return g?(f.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){f.classList.remove(e)})),"continue"):o&&!g?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){f.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=h.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&m===n?f.classList.add("startRange"):n>t&&m===n&&f.classList.add("endRange"),m>=r&&(0===l||m<=l)&&(d=n,u=t,(c=m)>Math.min(d,u)&&c<Math.max(d,u))&&f.classList.add("inRange"))))},f=0,m=s.children.length;f<m;f++)u(f)}}function te(){!h.isOpen||h.config.static||h.config.inline||oe()}function ne(){h.setDate(void 0!==h.config.minDate?new Date(h.config.minDate.getTime()):new Date,!0),k(),ve()}function ae(e){return function(t){var n=h.config["_"+e+"Date"]=h.parseDate(t,h.config.dateFormat),a=h.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(h["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),h.selectedDates&&(h.selectedDates=h.selectedDates.filter((function(e){return Z(e)})),h.selectedDates.length||"min"!==e||T(n),ve()),h.daysContainer&&(re(),void 0!==n?h.currentYearElement[e]=n.getFullYear().toString():h.currentYearElement.removeAttribute(e),h.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function ie(){"object"!=typeof h.config.locale&&void 0===y.l10ns[h.config.locale]&&h.config.errorHandler(new Error("flatpickr: invalid locale "+h.config.locale)),h.l10n=e({},y.l10ns.default,"object"==typeof h.config.locale?h.config.locale:"default"!==h.config.locale?y.l10ns[h.config.locale]:void 0),p.K="("+h.l10n.amPM[0]+"|\"+h.l10n.amPM[1]+\"|"+h.l10n.amPM[0].toLowerCase()+"|\"+h.l10n.amPM[1].toLowerCase()+\")\",void 0===e({},g,JSON.parse(JSON.stringify(f.dataset||{}))).time_24hr&&void 0===y.defaultConfig.time_24hr&&(h.config.time_24hr=h.l10n.time_24hr),h.formatDate=v(h),h.parseDate=D({config:h.config,l10n:h.l10n})}function oe(e){if(void 0!==h.calendarContainer){fe(\"onPreCalendarPosition\");var t=e||h._positionElement,n=Array.prototype.reduce.call(h.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),a=h.calendarContainer.offsetWidth,i=h.config.position.split(\" \"),o=i[0],r=i.length>1?i[1]:null,l=t.getBoundingClientRect(),d=window.innerHeight-l.bottom,s=\"above\"===o||"below"!==o&&d<n&&l.top>n,u=window.pageYOffset+l.top+(s?-n-2:t.offsetHeight+2);if(c(h.calendarContainer,"arrowTop",!s),c(h.calendarContainer,"arrowBottom",s),!h.config.inline){var f=window.pageXOffset+l.left-(null!=r&&"center"===r?(a-l.width)/2:0),m=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=f+a>window.document.body.offsetWidth,p=m+a>window.document.body.offsetWidth;if(c(h.calendarContainer,"rightMost",g),!h.config.static)if(h.calendarContainer.style.top=u+"px",g)if(p){var v=document.styleSheets[0];if(void 0===v)return;var D=window.document.body.offsetWidth,w=Math.max(0,D/2-a/2),b=v.cssRules.length,C="{left:"+l.left+"px;right:auto;}";c(h.calendarContainer,"rightMost",!1),c(h.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,b),h.calendarContainer.style.left=w+"px",h.calendarContainer.style.right="auto"}else h.calendarContainer.style.left="auto",h.calendarContainer.style.right=m+"px";else h.calendarContainer.style.left=f+"px",h.calendarContainer.style.right="auto"}}}function re(){h.config.noCalendar||h.isMobile||(pe(),R())}function le(){h._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(h.close,0):h.close()}function ce(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,a=h.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<h.currentMonth||a.getMonth()>h.currentMonth+h.config.showMonths-1)&&"range"!==h.config.mode;if(h.selectedDateElem=n,"single"===h.config.mode)h.selectedDates=[a];else if("multiple"===h.config.mode){var o=ge(a);o?h.selectedDates.splice(parseInt(o),1):h.selectedDates.push(a)}else"range"===h.config.mode&&(2===h.selectedDates.length&&h.clear(!1,!1),h.latestSelectedDateObj=a,h.selectedDates.push(a),0!==w(a,h.selectedDates[0],!0)&&h.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(E(),i){var r=h.currentYear!==a.getFullYear();h.currentYear=a.getFullYear(),h.currentMonth=a.getMonth(),r&&(fe("onYearChange"),B()),fe("onMonthChange")}if(pe(),R(),ve(),h.config.enableTime&&setTimeout((function(){return h.showTimeInput=!0}),50),i||"range"===h.config.mode||1!==h.config.showMonths?void 0!==h.selectedDateElem&&void 0===h.hourElement&&h.selectedDateElem&&h.selectedDateElem.focus():j(n),void 0!==h.hourElement&&void 0!==h.hourElement&&h.hourElement.focus(),h.config.closeOnSelect){var l="single"===h.config.mode&&!h.config.enableTime,c="range"===h.config.mode&&2===h.selectedDates.length&&!h.config.enableTime;(l||c)&&le()}F()}}h.parseDate=D({config:h.config,l10n:h.l10n}),h._handlers=[],h.pluginElements=[],h.loadedPlugins=[],h._bind=O,h._setHoursFromDate=T,h._positionCalendar=oe,h.changeMonth=$,h.changeYear=V,h.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),h.input.value="",void 0!==h.altInput&&(h.altInput.value=""),void 0!==h.mobileInput&&(h.mobileInput.value=""),h.selectedDates=[],h.latestSelectedDateObj=void 0,!0===t&&(h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth()),h.showTimeInput=!1,!0===h.config.enableTime&&k(),h.redraw(),e&&fe("onChange")},h.close=function(){h.isOpen=!1,h.isMobile||(void 0!==h.calendarContainer&&h.calendarContainer.classList.remove("open"),void 0!==h._input&&h._input.classList.remove("active")),fe("onClose")},h._createElement=d,h.destroy=function(){void 0!==h.config&&fe("onDestroy");for(var e=h._handlers.length;e–;){var t=h._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(h._handlers=[],h.mobileInput)h.mobileInput.parentNode&&h.mobileInput.parentNode.removeChild(h.mobileInput),h.mobileInput=void 0;else if(h.calendarContainer&&h.calendarContainer.parentNode)if(h.config.static&&h.calendarContainer.parentNode){var n=h.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else h.calendarContainer.parentNode.removeChild(h.calendarContainer);h.altInput&&(h.input.type="text",h.altInput.parentNode&&h.altInput.parentNode.removeChild(h.altInput),delete h.altInput),h.input&&(h.input.type=h.input._type,h.input.classList.remove("flatpickr-input"),h.input.removeAttribute("readonly"),h.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete h[e]}catch(e){}}))},h.isEnabled=Z,h.jumpToDate=N,h.open=function(e,t){if(void 0===t&&(t=h._positionElement),!0===h.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==h.mobileInput&&(h.mobileInput.focus(),h.mobileInput.click()),void fe("onOpen");if(!h._input.disabled&&!h.config.inline){var n=h.isOpen;h.isOpen=!0,n||(h.calendarContainer.classList.add("open"),h._input.classList.add("active"),fe("onOpen"),oe(t)),!0===h.config.enableTime&&!0===h.config.noCalendar&&(0===h.selectedDates.length&&ne(),!1!==h.config.allowInput||void 0!==e&&h.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return h.hourElement.select()}),50))}},h.redraw=re,h.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(h.config,e),e)void 0!==de[a]&&de[a].forEach((function(e){return e()}));else h.config[e]=n,void 0!==de[e]?de[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(h.config[e]=l(n));h.redraw(),ve(!1)},h.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=h.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return h.clear(t);se(e,n),h.showTimeInput=h.selectedDates.length>0,h.latestSelectedDateObj=h.selectedDates[h.selectedDates.length-1],h.redraw(),N(),T(),0===h.selectedDates.length&&h.clear(!1),ve(t),t&&fe("onChange")},h.toggle=function(e){if(!0===h.isOpen)return h.close();h.open(e)};var de={locale:[ie,q],showMonths:[K,M,U],minDate:[N],maxDate:[N]};function se(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return h.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[h.parseDate(e,t)];else if("string"==typeof e)switch(h.config.mode){case"single":case"time":n=[h.parseDate(e,t)];break;case"multiple":n=e.split(h.config.conjunction).map((function(e){return h.parseDate(e,t)}));break;case"range":n=e.split(h.l10n.rangeSeparator).map((function(e){return h.parseDate(e,t)}))}else h.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));h.selectedDates=n.filter((function(e){return e instanceof Date&&Z(e,!1)})),"range"===h.config.mode&&h.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ue(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?h.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:h.parseDate(e.from,void 0),to:h.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function fe(e,t){if(void 0!==h.config){var n=h.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](h.selectedDates,h.input.value,h,t);"onChange"===e&&(h.input.dispatchEvent(me("change")),h.input.dispatchEvent(me("input")))}}function me(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function ge(e){for(var t=0;t<h.selectedDates.length;t++)if(0===w(h.selectedDates[t],e))return""+t;return!1}function pe(){h.config.noCalendar||h.isMobile||!h.monthNav||(h.yearElements.forEach((function(e,t){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),h.config.showMonths>1||"static"===h.config.monthSelectorType?h.monthElements[t].textContent=m(n.getMonth(),h.config.shorthandCurrentMonth,h.l10n)+" ":h.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),h._hidePrevMonthArrow=void 0!==h.config.minDate&&(h.currentYear===h.config.minDate.getFullYear()?h.currentMonth<=h.config.minDate.getMonth():h.currentYear<h.config.minDate.getFullYear()),h._hideNextMonthArrow=void 0!==h.config.maxDate&&(h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth+1>h.config.maxDate.getMonth():h.currentYear>h.config.maxDate.getFullYear()))}function he(e){return h.selectedDates.map((function(t){return h.formatDate(t,e)})).filter((function(e,t,n){return"range"!==h.config.mode||h.config.enableTime||n.indexOf(e)===t})).join("range"!==h.config.mode?h.config.conjunction:h.l10n.rangeSeparator)}function ve(e){void 0===e&&(e=!0),void 0!==h.mobileInput&&h.mobileFormatStr&&(h.mobileInput.value=void 0!==h.latestSelectedDateObj?h.formatDate(h.latestSelectedDateObj,h.mobileFormatStr):""),h.input.value=he(h.config.dateFormat),void 0!==h.altInput&&(h.altInput.value=he(h.config.altFormat)),!1!==e&&fe("onValueUpdate")}function De(e){var t=h.prevMonthNav.contains(e.target),n=h.nextMonthNav.contains(e.target);t||n?$(t?-1:1):h.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?h.changeYear(h.currentYear+1):e.target.classList.contains("arrowDown")&&h.changeYear(h.currentYear-1)}return function(){h.element=h.input=f,h.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e({},g,JSON.parse(JSON.stringify(f.dataset||{}))),o={};h.config.parseDate=i.parseDate,h.config.formatDate=i.formatDate,Object.defineProperty(h.config,"enable",{get:function(){return h.config._enable},set:function(e){h.config._enable=ue(e)}}),Object.defineProperty(h.config,"disable",{get:function(){return h.config._disable},set:function(e){h.config._disable=ue(e)}});var r="time"===i.mode;if(!i.dateFormat&&(i.enableTime||r)){var c=y.defaultConfig.dateFormat||n.dateFormat;o.dateFormat=i.noCalendar||r?"H:i"+(i.enableSeconds?":S":""):c+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||r)&&!i.altFormat){var d=y.defaultConfig.altFormat||n.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):d+" h:i"+(i.enableSeconds?":S":"")+" K"}i.altInputClass||(h.config.altInputClass=h.input.className+" "+h.config.altInputClass),Object.defineProperty(h.config,"minDate",{get:function(){return h.config._minDate},set:ae("min")}),Object.defineProperty(h.config,"maxDate",{get:function(){return h.config._maxDate},set:ae("max")});var s=function(e){return function(t){h.config["min"===e?"_minTime":"_maxTime"]=h.parseDate(t,"H:i:S")}};Object.defineProperty(h.config,"minTime",{get:function(){return h.config._minTime},set:s("min")}),Object.defineProperty(h.config,"maxTime",{get:function(){return h.config._maxTime},set:s("max")}),"time"===i.mode&&(h.config.noCalendar=!0,h.config.enableTime=!0),Object.assign(h.config,o,i);for(var u=0;u<a.length;u++)h.config[a[u]]=!0===h.config[a[u]]||"true"===h.config[a[u]];for(t.filter((function(e){return void 0!==h.config[e]})).forEach((function(e){h.config[e]=l(h.config[e]||[]).map(C)})),h.isMobile=!h.config.disableMobile&&!h.config.inline&&"single"===h.config.mode&&!h.config.disable.length&&!h.config.enable.length&&!h.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),u=0;u<h.config.plugins.length;u++){var m=h.config.plugins[u](h)||{};for(var p in m)t.indexOf(p)>-1?h.config[p]=l(m[p]).map(C).concat(h.config[p]):void 0===i[p]&&(h.config[p]=m[p])}fe("onParseConfig")}(),ie(),h.input=h.config.wrap?f.querySelector("[data-input]"):f,h.input?(h.input._type=h.input.type,h.input.type="text",h.input.classList.add("flatpickr-input"),h._input=h.input,h.config.altInput&&(h.altInput=d(h.input.nodeName,h.config.altInputClass),h._input=h.altInput,h.altInput.placeholder=h.input.placeholder,h.altInput.disabled=h.input.disabled,h.altInput.required=h.input.required,h.altInput.tabIndex=h.input.tabIndex,h.altInput.type="text",h.input.setAttribute("type","hidden"),!h.config.static&&h.input.parentNode&&h.input.parentNode.insertBefore(h.altInput,h.input.nextSibling)),h.config.allowInput||h._input.setAttribute("readonly","readonly"),h._positionElement=h.config.positionElement||h._input):h.config.errorHandler(new Error("Invalid input element specified")),function(){h.selectedDates=[],h.now=h.parseDate(h.config.now)||new Date;var e=h.config.defaultDate||("INPUT"!==h.input.nodeName&&"TEXTAREA"!==h.input.nodeName||!h.input.placeholder||h.input.value!==h.input.placeholder?h.input.value:null);e&&se(e,h.config.dateFormat),h._initialDate=h.selectedDates.length>0?h.selectedDates[0]:h.config.minDate&&h.config.minDate.getTime()>h.now.getTime()?h.config.minDate:h.config.maxDate&&h.config.maxDate.getTime()<h.now.getTime()?h.config.maxDate:h.now,h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth(),h.selectedDates.length>0&&(h.latestSelectedDateObj=h.selectedDates[0]),void 0!==h.config.minTime&&(h.config.minTime=h.parseDate(h.config.minTime,"H:i")),void 0!==h.config.maxTime&&(h.config.maxTime=h.parseDate(h.config.maxTime,"H:i")),h.minDateHasTime=!!h.config.minDate&&(h.config.minDate.getHours()>0||h.config.minDate.getMinutes()>0||h.config.minDate.getSeconds()>0),h.maxDateHasTime=!!h.config.maxDate&&(h.config.maxDate.getHours()>0||h.config.maxDate.getMinutes()>0||h.config.maxDate.getSeconds()>0),Object.defineProperty(h,"showTimeInput",{get:function(){return h._showTimeInput},set:function(e){h._showTimeInput=e,h.calendarContainer&&c(h.calendarContainer,"showTimeInput",e),h.isOpen&&oe()}})}(),h.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=h.currentMonth),void 0===t&&(t=h.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:h.l10n.daysInMonth[e]}},h.isMobile||function(){var e=window.document.createDocumentFragment();if(h.calendarContainer=d("div","flatpickr-calendar"),h.calendarContainer.tabIndex=-1,!h.config.noCalendar){if(e.appendChild((h.monthNav=d("div","flatpickr-months"),h.yearElements=[],h.monthElements=[],h.prevMonthNav=d("span","flatpickr-prev-month"),h.prevMonthNav.innerHTML=h.config.prevArrow,h.nextMonthNav=d("span","flatpickr-next-month"),h.nextMonthNav.innerHTML=h.config.nextArrow,K(),Object.defineProperty(h,"_hidePrevMonthArrow",{get:function(){return h.__hidePrevMonthArrow},set:function(e){h.__hidePrevMonthArrow!==e&&(c(h.prevMonthNav,"flatpickr-disabled",e),h.__hidePrevMonthArrow=e)}}),Object.defineProperty(h,"_hideNextMonthArrow",{get:function(){return h.__hideNextMonthArrow},set:function(e){h.__hideNextMonthArrow!==e&&(c(h.nextMonthNav,"flatpickr-disabled",e),h.__hideNextMonthArrow=e)}}),h.currentYearElement=h.yearElements[0],pe(),h.monthNav)),h.innerContainer=d("div","flatpickr-innerContainer"),h.config.weekNumbers){var t=function(){h.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",h.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;h.innerContainer.appendChild(n),h.weekNumbers=a,h.weekWrapper=n}h.rContainer=d("div","flatpickr-rContainer"),h.rContainer.appendChild(U()),h.daysContainer||(h.daysContainer=d("div","flatpickr-days"),h.daysContainer.tabIndex=-1),R(),h.rContainer.appendChild(h.daysContainer),h.innerContainer.appendChild(h.rContainer),e.appendChild(h.innerContainer)}h.config.enableTime&&e.appendChild(function(){h.calendarContainer.classList.add("hasTime"),h.config.noCalendar&&h.calendarContainer.classList.add("noCalendar"),h.timeContainer=d("div","flatpickr-time"),h.timeContainer.tabIndex=-1;var e=d("span","flatpickr-time-separator",":"),t=u("flatpickr-hour",{"aria-label":h.l10n.hourAriaLabel});h.hourElement=t.getElementsByTagName("input")[0];var n=u("flatpickr-minute",{"aria-label":h.l10n.minuteAriaLabel});if(h.minuteElement=n.getElementsByTagName("input")[0],h.hourElement.tabIndex=h.minuteElement.tabIndex=-1,h.hourElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getHours():h.config.time_24hr?h.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(h.config.defaultHour)),h.minuteElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getMinutes():h.config.defaultMinute),h.hourElement.setAttribute("step",h.config.hourIncrement.toString()),h.minuteElement.setAttribute("step",h.config.minuteIncrement.toString()),h.hourElement.setAttribute("min",h.config.time_24hr?"0":"1"),h.hourElement.setAttribute("max",h.config.time_24hr?"23":"12"),h.minuteElement.setAttribute("min","0"),h.minuteElement.setAttribute("max","59"),h.timeContainer.appendChild(t),h.timeContainer.appendChild(e),h.timeContainer.appendChild(n),h.config.time_24hr&&h.timeContainer.classList.add("time24hr"),h.config.enableSeconds){h.timeContainer.classList.add("hasSeconds");var a=u("flatpickr-second");h.secondElement=a.getElementsByTagName("input")[0],h.secondElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getSeconds():h.config.defaultSeconds),h.secondElement.setAttribute("step",h.minuteElement.getAttribute("step")),h.secondElement.setAttribute("min","0"),h.secondElement.setAttribute("max","59"),h.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),h.timeContainer.appendChild(a)}return h.config.time_24hr||(h.amPM=d("span","flatpickr-am-pm",h.l10n.amPM[o((h.latestSelectedDateObj?h.hourElement.value:h.config.defaultHour)>11)]),h.amPM.title=h.l10n.toggleTitle,h.amPM.tabIndex=-1,h.timeContainer.appendChild(h.amPM)),h.timeContainer}()),c(h.calendarContainer,"rangeMode","range"===h.config.mode),c(h.calendarContainer,"animate",!0===h.config.animate),c(h.calendarContainer,"multiMonth",h.config.showMonths>1),h.calendarContainer.appendChild(e);var r=void 0!==h.config.appendTo&&void 0!==h.config.appendTo.nodeType;if((h.config.inline||h.config.static)&&(h.calendarContainer.classList.add(h.config.inline?"inline":"static"),h.config.inline&&(!r&&h.element.parentNode?h.element.parentNode.insertBefore(h.calendarContainer,h._input.nextSibling):void 0!==h.config.appendTo&&h.config.appendTo.appendChild(h.calendarContainer)),h.config.static)){var l=d("div","flatpickr-wrapper");h.element.parentNode&&h.element.parentNode.insertBefore(l,h.element),l.appendChild(h.element),h.altInput&&l.appendChild(h.altInput),l.appendChild(h.calendarContainer)}h.config.static||h.config.inline||(void 0!==h.config.appendTo?h.config.appendTo:window.document.body).appendChild(h.calendarContainer)}(),function(){if(h.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(h.element.querySelectorAll("[data-"+e+"]"),(function(t){return O(t,"click",h[e])}))})),h.isMobile)!function(){var e=h.config.enableTime?h.config.noCalendar?"time":"datetime-local":"date";h.mobileInput=d("input",h.input.className+" flatpickr-mobile"),h.mobileInput.step=h.input.getAttribute("step")||"any",h.mobileInput.tabIndex=1,h.mobileInput.type=e,h.mobileInput.disabled=h.input.disabled,h.mobileInput.required=h.input.required,h.mobileInput.placeholder=h.input.placeholder,h.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",h.selectedDates.length>0&&(h.mobileInput.defaultValue=h.mobileInput.value=h.formatDate(h.selectedDates[0],h.mobileFormatStr)),h.config.minDate&&(h.mobileInput.min=h.formatDate(h.config.minDate,"Y-m-d")),h.config.maxDate&&(h.mobileInput.max=h.formatDate(h.config.maxDate,"Y-m-d")),h.input.type="hidden",void 0!==h.altInput&&(h.altInput.type="hidden");try{h.input.parentNode&&h.input.parentNode.insertBefore(h.mobileInput,h.input.nextSibling)}catch(e){}O(h.mobileInput,"change",(function(e){h.setDate(e.target.value,!1,h.mobileFormatStr),fe("onChange"),fe("onClose")}))}();else{var e=r(te,50);h._debouncedChange=r(F,300),h.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&O(h.daysContainer,"mouseover",(function(e){"range"===h.config.mode&&ee(e.target)})),O(window.document.body,"keydown",X),h.config.inline||h.config.static||O(window,"resize",e),void 0!==window.ontouchstart?O(window.document,"touchstart",G):O(window.document,"mousedown",_(G)),O(window.document,"focus",G,{capture:!0}),!0===h.config.clickOpens&&(O(h._input,"focus",h.open),O(h._input,"mousedown",_(h.open))),void 0!==h.daysContainer&&(O(h.monthNav,"mousedown",_(De)),O(h.monthNav,["keyup","increment"],S),O(h.daysContainer,"mousedown",_(ce))),void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&(O(h.timeContainer,["increment"],x),O(h.timeContainer,"blur",x,{capture:!0}),O(h.timeContainer,"mousedown",_(P)),O([h.hourElement,h.minuteElement],["focus","click"],(function(e){return e.target.select()})),void 0!==h.secondElement&&O(h.secondElement,"focus",(function(){return h.secondElement&&h.secondElement.select()})),void 0!==h.amPM&&O(h.amPM,"mousedown",_((function(e){x(e),F()}))))}}(),(h.selectedDates.length||h.config.noCalendar)&&(h.config.enableTime&&T(h.config.noCalendar?h.latestSelectedDateObj||h.config.minDate:void 0),ve(!1)),M(),h.showTimeInput=h.selectedDates.length>0||h.config.noCalendar;var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!h.isMobile&&a&&oe(),fe("onReady")}(),h}function M(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=C(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},i=0,o=t;i<o.length;i++){var r=o[i];a(r)}return e}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return M(this,e)},HTMLElement.prototype.flatpickr=function(e){return M([this],e)});var y=function(e,t){return"string"==typeof e?M(window.document.querySelectorAll(e),t):e instanceof Node?M([e],t):M(e,t)};return y.defaultConfig={},y.l10ns={en:e({},a),default:e({},a)},y.localize=function(t){y.l10ns.default=e({},y.l10ns.default,t)},y.setDefaults=function(t){y.defaultConfig=e({},y.defaultConfig,t)},y.parseDate=D({}),y.formatDate=v({}),y.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return M(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=y),y},"object"==typeof n&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):(a=a||self).flatpickr=i()},n”, ” 394: function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const a=n(1);n(67),a.__importStar(n(66)).styles.append(‘.flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n background: #fff;\n -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);\n box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #e6e6e6;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: \’\’;\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #fff;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #fff;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n background: transparent;\n color: rgba(0, 0, 0, 0.9);\n fill: rgba(0, 0, 0, 0.9);\n height: 34px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0;\n height: 34px;\n padding: 10px;\n z-index: 3;\n color: rgba(0, 0, 0, 0.9);\n fill: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,\n.flatpickr-months .flatpickr-next-month.flatpickr-disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n /\n /*rtl:begin:ignore/\n /\n */\n left: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n /\n /*rtl:begin:ignore/\n /\n */\n right: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #959ea9;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(57, 57, 57, 0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0, 0, 0, 0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: "";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(57, 57, 57, 0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(57, 57, 57, 0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(0, 0, 0, 0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 7.48px 0 0 0;\n line-height: 1;\n height: 34px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(0, 0, 0, 0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months {\n appearance: menulist;\n background: transparent;\n border: none;\n border-radius: 0;\n box-sizing: border-box;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n height: auto;\n line-height: inherit;\n margin: -1px 0 0 0;\n outline: none;\n padding: 0 0 0 0.5ch;\n position: relative;\n vertical-align: initial;\n -webkit-box-sizing: border-box;\n -webkit-appearance: menulist;\n -moz-appearance: menulist;\n width: auto;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:focus,\n.flatpickr-current-month .flatpickr-monthDropdown-months:active {\n outline: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {\n background-color: transparent;\n outline: none;\n padding: 0;\n}\n.flatpickr-weekdays {\n background: transparent;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: transparent;\n color: rgba(0, 0, 0, 0.54);\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #e6e6e6;\n box-shadow: -1px 0 0 #e6e6e6;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #393939;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e6e6e6;\n border-color: #e6e6e6;\n}\n.flatpickr-day.today {\n border-color: #959ea9;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #959ea9;\n background: #959ea9;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #569ff7;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #569ff7;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #569ff7;\n box-shadow: -10px 0 0 #569ff7;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(57, 57, 57, 0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover {\n cursor: not-allowed;\n color: rgba(57, 57, 57, 0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n -webkit-box-shadow: 1px 0 0 #e6e6e6;\n box-shadow: 1px 0 0 #e6e6e6;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(57, 57, 57, 0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-time:after {\n content: "";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #393939;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #393939;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #393939;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n float: left;\n line-height: inherit;\n color: #393939;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eee;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n.flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n -webkit-box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);\n box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #eceef1;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-innerContainer {\n border-bottom: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n border: 1px solid #eceef1;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: \’\’;\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #eceef1;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #eceef1;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #eceef1;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #eceef1;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n border-radius: 5px 5px 0 0;\n background: #eceef1;\n color: #5a6171;\n fill: #5a6171;\n height: 34px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0;\n height: 34px;\n padding: 10px;\n z-index: 3;\n color: #5a6171;\n fill: #5a6171;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,\n.flatpickr-months .flatpickr-next-month.flatpickr-disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n /\n /*rtl:begin:ignore/\n /\n */\n left: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n /\n /*rtl:begin:ignore/\n /\n */\n right: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #bbb;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(72, 72, 72, 0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0, 0, 0, 0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: "";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(72, 72, 72, 0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(72, 72, 72, 0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(90, 97, 113, 0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 7.48px 0 0 0;\n line-height: 1;\n height: 34px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: #5a6171;\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: #5a6171;\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(90, 97, 113, 0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months {\n appearance: menulist;\n background: #eceef1;\n border: none;\n border-radius: 0;\n box-sizing: border-box;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n height: auto;\n line-height: inherit;\n margin: -1px 0 0 0;\n outline: none;\n padding: 0 0 0 0.5ch;\n position: relative;\n vertical-align: initial;\n -webkit-box-sizing: border-box;\n -webkit-appearance: menulist;\n -moz-appearance: menulist;\n width: auto;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:focus,\n.flatpickr-current-month .flatpickr-monthDropdown-months:active {\n outline: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {\n background-color: #eceef1;\n outline: none;\n padding: 0;\n}\n.flatpickr-weekdays {\n background: #eceef1;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: #eceef1;\n color: #5a6171;\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n border-left: 1px solid #eceef1;\n border-right: 1px solid #eceef1;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #eceef1;\n box-shadow: -1px 0 0 #eceef1;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #484848;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e2e2e2;\n border-color: #e2e2e2;\n}\n.flatpickr-day.today {\n border-color: #bbb;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #bbb;\n background: #bbb;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #ff5a5f;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #ff5a5f;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #ff5a5f;\n box-shadow: -10px 0 0 #ff5a5f;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;\n box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(72, 72, 72, 0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover {\n cursor: not-allowed;\n color: rgba(72, 72, 72, 0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;\n box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n border-left: 1px solid #eceef1;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(72, 72, 72, 0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n background: #fff;\n border-bottom: 1px solid #eceef1;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n background: #fff;\n border-radius: 0 0 5px 5px;\n}\n.flatpickr-time:after {\n content: "";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #484848;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #484848;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #484848;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n float: left;\n line-height: inherit;\n color: #484848;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eaeaea;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\nspan.flatpickr-day.selected {\n font-weight: bold;\n}\n’)},n”, ” 395: function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(1).__importDefault(e(157)),r=e(396);class n extends r.AbstractRangeSliderView{}a.DateRangeSliderView=n,n.__name__="DateRangeSliderView";class d extends r.AbstractSlider{constructor(e){super(e),this.behaviour="drag",this.connected=[!1,!0,!1]}static init_DateRangeSlider(){this.prototype.default_view=n,this.override({format:"%d %b %Y"})}_formatter(e,t){return i.default(e,t)}}a.DateRangeSlider=d,d.__name__="DateRangeSlider",d.init_DateRangeSlider()},n”, ” 396: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),l=i.__importStar(e(397)),r=i.__importStar(e(19)),o=e(66),n=e(9),a=e(379),d=e(398),h="bk-noUi-";class _ extends a.ControlView{get noUiSlider(){return this.slider_el.noUiSlider}initialize(){super.initialize()}connect_signals(){super.connect_signals();const{direction:e,orientation:t,tooltips:s}=this.model.properties;this.on_change([e,t,s],()=>this.render());const{start:i,end:l,value:r,step:o,title:n}=this.model.properties;this.on_change([i,l,r,o],()=>{const{start:e,end:t,value:s,step:i}=this._calc_to();this.noUiSlider.updateOptions({range:{min:e,max:t},start:s,step:i})});const{bar_color:a}=this.model.properties;this.on_change(a,()=>{this._set_bar_color()});const{show_value:d}=this.model.properties;this.on_change([r,n,d],()=>this._update_title())}_update_title(){o.empty(this.title_el);const e=null==this.model.title||0==this.model.title.length&&!this.model.show_value;if(this.title_el.style.display=e?"none":"",!e&&(0!=this.model.title.length&&(this.title_el.textContent=`${this.model.title}: ),this.model.show_value)){const{value:e}=this._calc_to(),t=e.map(e=>this.model.pretty(e)).join(" .. ");this.title_el.appendChild(o.span({class:d.bk_slider_value},t))}}_set_bar_color(){if(!this.model.disabled){this.slider_el.querySelector(.${h}connect`).style.backgroundColor=this.model.bar_color}}_keypress_handle(e,t=0){const{start:s,value:i,end:l,step:r}=this._calc_to(),o=2==i.length;let n=s,a=l;switch(o&&0==t?a=i[1]:o&&1==t&&(n=i[0]),e.which){case 37:i[t]=Math.max(i[t]-r,n);break;case 39:i[t]=Math.min(i[t]+r,a);break;default:return}this.model.value=o?i:i[0],this.model.properties.value.change.emit(),this.model.value_throttled=this.model.value,this.noUiSlider.set(i)}render(){super.render();const{start:e,end:t,value:s,step:i}=this._calc_to();let r;if(this.model.tooltips){const e={to:e=>this.model.pretty(e)};r=n.repeat(e,s.length)}else r=!1;if(null==this.slider_el){this.slider_el=o.div(),l.create(this.slider_el,{cssPrefix:h,range:{min:e,max:t},start:s,step:i,behaviour:this.model.behaviour,connect:this.model.connected,tooltips:r,orientation:this.model.orientation,direction:this.model.direction}),this.noUiSlider.on("slide",(e,t,s)=>this._slide(s)),this.noUiSlider.on("change",(e,t,s)=>this._change(s)),this._set_keypress_handles();const n=(e,t)=>{if(!r)return;this.slider_el.querySelectorAll(.${h}handle)[e].querySelector(.${h}tooltip).style.display=t?"block":""};this.noUiSlider.on("start",(e,t)=>n(t,!0)),this.noUiSlider.on("end",(e,t)=>n(t,!1))}else this.noUiSlider.updateOptions({range:{min:e,max:t},start:s,step:i});this._set_bar_color(),this.model.disabled?this.slider_el.setAttribute("disabled","true"):this.slider_el.removeAttribute("disabled"),this.title_el=o.div({class:d.bk_slider_title}),this._update_title(),this.group_el=o.div({class:d.bk_input_group},this.title_el,this.slider_el),this.el.appendChild(this.group_el)}_slide(e){this.model.value=this._calc_from(e)}_change(e){this.model.value=this._calc_from(e),this.model.value_throttled=this.model.value}}_.__name__="AbstractBaseSliderView";class c extends _{_calc_to(){return{start:this.model.start,end:this.model.end,value:[this.model.value],step:this.model.step}}_calc_from([e]){return Number.isInteger(this.model.start)&&Number.isInteger(this.model.end)&&Number.isInteger(this.model.step)?Math.round(e):e}_set_keypress_handles(){const e=this.slider_el.querySelector(.${h}handle);e.setAttribute("tabindex","0"),e.addEventListener("keydown",e=>this._keypress_handle(e))}}s.AbstractSliderView=c,c.__name__="AbstractSliderView";class u extends _{_calc_to(){return{start:this.model.start,end:this.model.end,value:this.model.value,step:this.model.step}}_calc_from(e){return e}_set_keypress_handles(){const e=this.slider_el.querySelector(.${h}handle-lower),t=this.slider_el.querySelector(.${h}handle-upper);e.setAttribute("tabindex","0"),e.addEventListener("keydown",e=>this._keypress_handle(e,0)),t.setAttribute("tabindex","1"),t.addEventListener("keydown",e=>this._keypress_handle(e,1))}}s.AbstractRangeSliderView=u,u.__name__="AbstractRangeSliderView";class m extends a.Control{constructor(e){super(e),this.connected=!1}static init_AbstractSlider(){this.define({title:[r.String,""],show_value:[r.Boolean,!0],start:[r.Any],end:[r.Any],value:[r.Any],value_throttled:[r.Any],step:[r.Number,1],format:[r.Any],direction:[r.Any,"ltr"],tooltips:[r.Boolean,!0],bar_color:[r.Color,"#e6e6e6"]})}_formatter(e,t){return`${e}`}pretty(e){return this._formatter(e,this.format)}}s.AbstractSlider=m,m.__name__="AbstractSlider",m.init_AbstractSlider()},n”, ” 397: function _(t,e,r){n”, ” /! nouislider - 10.1.0 - 2017-07-28 17:11:18 */var n;n=function(){"use strict";var t="10.1.0";function e(t){t.preventDefault()}function r(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function n(t,e,r){r>0&&(s(t,e),setTimeout((function(){a(t,e)}),r))}function i(t){return Array.isArray(t)?t:[t]}function o(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function s(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function a(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function l(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:r?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:r?t.documentElement.scrollTop:t.body.scrollTop}}function u(t,e){return 100/(e-t)}function c(t,e){return 100*e/(t[1]-t[0])}function p(t,e){for(var r=1;t>=e[r];)r+=1;return r}function f(t,e,r){if(r>=t.slice(-1)[0])return 100;var n,i,o,s,a=p(r,t);return n=t[a-1],i=t[a],o=e[a-1],s=e[a],o+function(t,e){return c(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}([n,i],r)/u(o,s)}function d(t,e,r,n){if(100===n)return n;var i,o,s=p(n,t);return r?n-(i=t[s-1])>((o=t[s])-i)/2?o:i:e[s-1]?t[s-1]+function(t,e){return Math.round(t/e)*e}(n-t[s-1],e[s-1]):n}function h(t,e,n){var i;if("number"==typeof e&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(e))throw new Error("noUiSlider (10.1.0): ‘range’ contains invalid value.");if(!r(i="min"===t?0:"max"===t?100:parseFloat(t))||!r(e[0]))throw new Error("noUiSlider (10.1.0): ‘range’ value isn’t numeric.");n.xPct.push(i),n.xVal.push(e[0]),i?n.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(n.xSteps[0]=e[1]),n.xHighestCompleteStep.push(0)}function m(t,e,r){if(!e)return!0;r.xSteps[t]=c([r.xVal[t],r.xVal[t+1]],e)/u(r.xPct[t],r.xPct[t+1]);var n=(r.xVal[t+1]-r.xVal[t])/r.xNumSteps[t],i=Math.ceil(Number(n.toFixed(3))-1),o=r.xVal[t]+r.xNumSteps[t]*i;r.xHighestCompleteStep[t]=o}function g(t,e,r){this.xPct=[],this.xVal=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var n,i=[];for(n in t)t.hasOwnProperty(n)&&i.push([t[n],n]);for(i.length&&"object"==typeof i[0][0]?i.sort((function(t,e){return t[0][0]-e[0][0]})):i.sort((function(t,e){return t[0]-e[0]})),n=0;n<i.length;n++)h(i[n][1],i[n][0],this);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)m(n,this.xNumSteps[n],this)}g.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!=0)throw new Error("noUiSlider (10.1.0): ‘limit’, ‘margin’ and ‘padding’ must be divisible by step.");return 2===this.xPct.length&&c(this.xVal,t)},g.prototype.toStepping=function(t){return t=f(this.xVal,this.xPct,t)},g.prototype.fromStepping=function(t){return function(t,e,r){if(r>=100)return t.slice(-1)[0];var n,i=p(r,e);return function(t,e){return e*(t[1]-t[0])/100+t[0]}([t[i-1],t[i]],(r-(n=e[i-1]))*u(n,e[i]))}(this.xVal,this.xPct,t)},g.prototype.getStep=function(t){return t=d(this.xPct,this.xSteps,this.snap,t)},g.prototype.getNearbySteps=function(t){var e=p(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},g.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(o);return Math.max.apply(null,t)},g.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var v={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};function b(t){if(function(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}(t))return!0;throw new Error("noUiSlider (10.1.0): ‘format’ requires ‘to’ and ‘from’ methods.")}function S(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘step’ is not numeric.");t.singleStep=e}function w(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider (10.1.0): ‘range’ is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider (10.1.0): Missing ‘min’ or ‘max’ in ‘range’.");if(e.min===e.max)throw new Error("noUiSlider (10.1.0): ‘range’ ‘min’ and ‘max’ cannot be equal.");t.spectrum=new g(e,t.snap,t.singleStep)}function x(t,e){if(e=i(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider (10.1.0): ‘start’ option is incorrect.");t.handles=e.length,t.start=e}function y(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘snap’ option must be a boolean.")}function E(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘animate’ option must be a boolean.")}function C(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘animationDuration’ option must be a number.")}function N(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider (10.1.0): ‘connect’ option doesn’t match handle count.");n=e}t.connect=n}function U(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider (10.1.0): ‘orientation’ option is invalid.")}}function P(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘margin’ option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider (10.1.0): ‘margin’ option is only supported on linear sliders.")}function A(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘limit’ option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit||t.handles<2)throw new Error("noUiSlider (10.1.0): ‘limit’ option is only supported on linear sliders with 2 or more handles.")}function M(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘padding’ option must be numeric.");if(0!==e){if(t.padding=t.spectrum.getMargin(e),!t.padding)throw new Error("noUiSlider (10.1.0): ‘padding’ option is only supported on linear sliders.");if(t.padding<0)throw new Error("noUiSlider (10.1.0): ‘padding’ option must be a positive number.");if(t.padding>=50)throw new Error("noUiSlider (10.1.0): ‘padding’ option must be less than half the range.")}}function O(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider (10.1.0): ‘direction’ option was not recognized.")}}function k(t,e){if("string"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘behaviour’ must be a string containing options.");var r=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider (10.1.0): ‘fixed’ behaviour must be used with 2 handles");P(t,t.start[1]-t.start[0])}t.events={tap:r||o,drag:n,fixed:i,snap:o,hover:s}}function V(t,e){if(t.multitouch=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘multitouch’ option must be a boolean.")}function F(t,e){if(!1!==e)if(!0===e){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(!0)}else{if(t.tooltips=i(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider (10.1.0): must pass a formatter for all handles.");t.tooltips.forEach((function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider (10.1.0): ‘tooltips’ must be passed a formatter or ‘false’.")}))}}function L(t,e){t.ariaFormat=e,b(e)}function z(t,e){t.format=e,b(e)}function j(t,e){if(void 0!==e&&"string"!=typeof e&&!1!==e)throw new Error("noUiSlider (10.1.0): ‘cssPrefix’ must be a string or `false`.");t.cssPrefix=e}function H(t,e){if(void 0!==e&&"object"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘cssClasses’ must be an object.");if("string"==typeof t.cssPrefix)for(var r in t.cssClasses={},e)e.hasOwnProperty(r)&&(t.cssClasses[r]=t.cssPrefix+e[r]);else t.cssClasses=e}function D(t,e){if(!0!==e&&!1!==e)throw new Error("noUiSlider (10.1.0): ‘useRequestAnimationFrame’ option should be true (default) or false.");t.useRequestAnimationFrame=e}function q(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:v,format:v},r={step:{r:!1,t:S},start:{r:!0,t:x},connect:{r:!0,t:N},direction:{r:!0,t:O},snap:{r:!1,t:y},animate:{r:!1,t:E},animationDuration:{r:!1,t:C},range:{r:!0,t:w},orientation:{r:!1,t:U},margin:{r:!1,t:P},limit:{r:!1,t:A},padding:{r:!1,t:M},behaviour:{r:!0,t:k},multitouch:{r:!0,t:V},ariaFormat:{r:!1,t:L},format:{r:!1,t:z},tooltips:{r:!1,t:F},cssPrefix:{r:!1,t:j},cssClasses:{r:!1,t:H},useRequestAnimationFrame:{r:!1,t:D}},n={connect:!1,direction:"ltr",behaviour:"tap",multitouch:!1,orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(r).forEach((function(i){if(void 0===t[i]&&void 0===n[i]){if(r[i].r)throw new Error("noUiSlider (10.1.0): ‘"+i+"’ is required.");return!0}r[i].t(e,void 0===t[i]?n[i]:t[i])})),e.pips=t.pips;var i=[["left","top"],["right","bottom"]];return e.style=i[e.dir][e.ort],e.styleOposite=i[e.dir?0:1][e.ort],e}function T(t,r,o){var u,c,p,f,d,h,m,g=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},v=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),b=t,S=[],w=[],x=0,y=r.spectrum,E=[],C={},N=t.ownerDocument,U=N.documentElement,P=N.body;function A(t,e){var r=N.createElement("div");return e&&s(r,e),t.appendChild(r),r}function M(t,e){var n=A(t,r.cssClasses.origin),i=A(n,r.cssClasses.handle);return i.setAttribute("data-handle",e),i.setAttribute("tabindex","0"),i.setAttribute("role","slider"),i.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),0===e?s(i,r.cssClasses.handleLower):e===r.handles-1&&s(i,r.cssClasses.handleUpper),n}function O(t,e){return!!e&&A(t,r.cssClasses.connect)}function k(t,e){return!!r.tooltips[e]&&A(t.firstChild,r.cssClasses.tooltip)}function V(t,e,n){var i=N.createElement("div"),o=[r.cssClasses.valueNormal,r.cssClasses.valueLarge,r.cssClasses.valueSub],a=[r.cssClasses.markerNormal,r.cssClasses.markerLarge,r.cssClasses.markerSub],l=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],u=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];function c(t,e){var n=e===r.cssClasses.value,i=n?o:a;return e+" "+(n?l:u)[r.ort]+" "+i[t]}return s(i,r.cssClasses.pips),s(i,0===r.ort?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical),Object.keys(t).forEach((function(o){!function(t,o){o[1]=o[1]&&e?e(o[0],o[1]):o[1];var s=A(i,!1);s.className=c(o[1],r.cssClasses.marker),s.style[r.style]=t+"%",o[1]&&((s=A(i,!1)).className=c(o[1],r.cssClasses.value),s.style[r.style]=t+"%",s.innerText=n.to(o[0]))}(o,t[o])})),i}function F(){var t;d&&((t=d).parentElement.removeChild(t),d=null)}function L(t){F();var e=t.mode,r=t.density||1,n=t.filter||!1,i=function(t,e,r){if("range"===t||"steps"===t)return y.xVal;if("count"===t){if(!e)throw new Error("noUiSlider (10.1.0): ‘values’ required for mode ‘count’.");var n,i=100/(e-1),o=0;for(e=[];(n=o++*i)<=100;)e.push(n);t="positions"}return"positions"===t?e.map((function(t){return y.fromStepping(r?y.getStep(t):t)})):"values"===t?r?e.map((function(t){return y.fromStepping(y.getStep(y.toStepping(t)))})):e:void 0}(e,t.values||!1,t.stepped||!1),o=function(t,e,r){var n,i={},o=y.xVal[0],s=y.xVal[y.xVal.length-1],a=!1,l=!1,u=0;return n=r.slice().sort((function(t,e){return t-e})),(r=n.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==o&&(r.unshift(o),a=!0),r[r.length-1]!==s&&(r.push(s),l=!0),r.forEach((function(n,o){var s,c,p,f,d,h,m,g,v,b=n,S=r[o+1];if("steps"===e&&(s=y.xNumSteps[o]),s||(s=S-b),!1!==b&&void 0!==S)for(s=Math.max(s,1e-7),c=b;c<=S;c=(c+s).toFixed(7)/1){for(m=(d=(f=y.toStepping(c))-u)/t,v=d/(g=Math.round(m)),p=1;p<=g;p+=1)i[(u+p*v).toFixed(5)]=["x",0];h=r.indexOf(c)>-1?1:"steps"===e?2:0,!o&&a&&(h=0),c===S&&l||(i[f.toFixed(5)]=[c,h]),u=f}})),i}(r,e,i),s=t.format||{to:Math.round};return d=b.appendChild(V(o,n,s))}function z(){var t=u.getBoundingClientRect(),e="offset"+["Width","Height"][r.ort];return 0===r.ort?t.width||u[e]:t.height||u[e]}function j(t,e,n,i){var o=function(o){return!b.hasAttribute("disabled")&&(s=b,a=r.cssClasses.tap,!(s.classList?s.classList.contains(a):new RegExp("\\b"+a+"\\b").test(s.className))&&!!(o=function(t,e,n){var i,o,s=0===t.type.indexOf("touch"),a=0===t.type.indexOf("mouse"),u=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(u=!0),s&&r.multitouch){var c=function(t){return t.target===n||n.contains(t.target)};if("touchstart"===t.type){var p=Array.prototype.filter.call(t.touches,c);if(p.length>1)return!1;i=p[0].pageX,o=p[0].pageY}else{var f=Array.prototype.find.call(t.changedTouches,c);if(!f)return!1;i=f.pageX,o=f.pageY}}else if(s){if(t.touches.length>1)return!1;i=t.changedTouches[0].pageX,o=t.changedTouches[0].pageY}return e=e||l(N),(a||u)&&(i=t.clientX+e.x,o=t.clientY+e.y),t.pageOffset=e,t.points=[i,o],t.cursor=a||u,t}(o,i.pageOffset,i.target||e))&&!(t===g.start&&void 0!==o.buttons&&o.buttons>1)&&(!i.hover||!o.buttons)&&(v||o.preventDefault(),o.calcPoint=o.points[r.ort],void n(o,i)));var s,a},s=[];return t.split(" ").forEach((function(t){e.addEventListener(t,o,!!v&&{passive:!0}),s.push([t,o])})),s}function H(t){var e,n,i,o,s,a,c=100*(t-(e=u,n=r.ort,i=e.getBoundingClientRect(),o=e.ownerDocument,s=o.documentElement,a=l(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?i.top+a.y-s.clientTop:i.left+a.x-s.clientLeft))/z();return r.dir?100-c:c}function D(t,e,r,n){var i=r.slice(),o=[!t,t],s=[t,!t];n=n.slice(),t&&n.reverse(),n.length>1?n.forEach((function(t,r){var n=W(i,t,i[t]+e,o[r],s[r],!1);!1===n?e=0:(e=n-i[t],i[t]=n)})):o=s=[!0];var a=!1;n.forEach((function(t,n){a=J(t,r[t]+e,o[n],s[n])||a})),a&&n.forEach((function(t){T("update",t),T("slide",t)}))}function T(t,e,n){Object.keys(C).forEach((function(i){var o=i.split(".")[0];t===o&&C[i].forEach((function(t){t.call(f,E.map(r.format.to),e,E.slice(),n||!1,S.slice())}))}))}function R(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&B(t,e)}function X(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return B(t,e);var n=(r.dir?-1:1)*(t.calcPoint-e.startCalcPoint);D(n>0,100*n/e.baseSize,e.locations,e.handleNumbers)}function B(t,n){n.handle&&(a(n.handle,r.cssClasses.active),x-=1),n.listeners.forEach((function(t){U.removeEventListener(t[0],t[1])})),0===x&&(a(b,r.cssClasses.drag),G(),t.cursor&&(P.style.cursor="",P.removeEventListener("selectstart",e))),n.handleNumbers.forEach((function(t){T("change",t),T("set",t),T("end",t)}))}function Y(t,n){var i;if(1===n.handleNumbers.length){var o=c[n.handleNumbers[0]];if(o.hasAttribute("disabled"))return!1;i=o.children[0],x+=1,s(i,r.cssClasses.active)}t.stopPropagation();var a=[],l=j(g.move,U,X,{target:t.target,handle:i,listeners:a,startCalcPoint:t.calcPoint,baseSize:z(),pageOffset:t.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:t.buttons,locations:S.slice()}),u=j(g.end,U,B,{target:t.target,handle:i,listeners:a,handleNumbers:n.handleNumbers}),p=j("mouseout",U,R,{target:t.target,handle:i,listeners:a,handleNumbers:n.handleNumbers});a.push.apply(a,l.concat(u,p)),t.cursor&&(P.style.cursor=getComputedStyle(t.target).cursor,c.length>1&&s(b,r.cssClasses.drag),P.addEventListener("selectstart",e,!1)),n.handleNumbers.forEach((function(t){T("start",t)}))}function _(t){t.stopPropagation();var e=H(t.calcPoint),i=function(t){var e=100,r=!1;return c.forEach((function(n,i){if(!n.hasAttribute("disabled")){var o=Math.abs(S[i]-t);o<e&&(r=i,e=o)}})),r}(e);if(!1===i)return!1;r.events.snap||n(b,r.cssClasses.tap,r.animationDuration),J(i,e,!0,!0),G(),T("slide",i,!0),T("update",i,!0),T("change",i,!0),T("set",i,!0),r.events.snap&&Y(t,{handleNumbers:[i]})}function I(t){var e=H(t.calcPoint),r=y.getStep(e),n=y.fromStepping(r);Object.keys(C).forEach((function(t){"hover"===t.split(".")[0]&&C[t].forEach((function(t){t.call(f,n)}))}))}function W(t,e,n,i,o,s){var a;return c.length>1&&(i&&e>0&&(n=Math.max(n,t[e-1]+r.margin)),o&&e<c.length-1&&(n=Math.min(n,t[e+1]-r.margin))),c.length>1&&r.limit&&(i&&e>0&&(n=Math.min(n,t[e-1]+r.limit)),o&&e<c.length-1&&(n=Math.max(n,t[e+1]-r.limit))),r.padding&&(0===e&&(n=Math.max(n,r.padding)),e===c.length-1&&(n=Math.min(n,100-r.padding))),n=y.getStep(n),a=n,!((n=Math.max(Math.min(a,100),0))===t[e]&&!s)&&n}function $(t){return t+"%"}function G(){w.forEach((function(t){var e=S[t]>50?-1:1,r=3+(c.length+e*t);c[t].childNodes[0].style.zIndex=r}))}function J(t,e,n,i){return!1!==(e=W(S,t,e,n,i,!1))&&(function(t,e){S[t]=e,E[t]=y.fromStepping(e);var n=function(){c[t].style[r.style]=$(e),K(t),K(t+1)};window.requestAnimationFrame&&r.useRequestAnimationFrame?window.requestAnimationFrame(n):n()}(t,e),!0)}function K(t){if(p[t]){var e=0,n=100;0!==t&&(e=S[t-1]),t!==p.length-1&&(n=S[t]),p[t].style[r.style]=$(e),p[t].style[r.styleOposite]=$(100-n)}}function Q(t,e){null!==t&&!1!==t&&("number"==typeof t&&(t=String(t)),!1===(t=r.format.from(t))||isNaN(t)||J(e,y.toStepping(t),!1,!1))}function Z(t,e){var o=i(t),s=void 0===S[0];e=void 0===e||!!e,o.forEach(Q),r.animate&&!s&&n(b,r.cssClasses.tap,r.animationDuration),w.forEach((function(t){J(t,S[t],!0,!1)})),G(),w.forEach((function(t){T("update",t),null!==o[t]&&e&&T("set",t)}))}function tt(){var t=E.map(r.format.to);return 1===t.length?t[0]:t}function et(t,e){C[t]=C[t]||[],C[t].push(e),"update"===t.split(".")[0]&&c.forEach((function(t,e){T("update",e)}))}if(b.noUiSlider)throw new Error("noUiSlider (10.1.0): Slider was already initialized.");return function(t){s(t,r.cssClasses.target),0===r.dir?s(t,r.cssClasses.ltr):s(t,r.cssClasses.rtl),0===r.ort?s(t,r.cssClasses.horizontal):s(t,r.cssClasses.vertical),u=A(t,r.cssClasses.base)}(b),function(t,e){c=[],(p=[]).push(O(e,t[0]));for(var n=0;n<r.handles;n++)c.push(M(e,n)),w[n]=n,p.push(O(e,t[n+1]))}(r.connect,u),f={destroy:function(){for(var t in r.cssClasses)r.cssClasses.hasOwnProperty(t)&&a(b,r.cssClasses[t]);for(;b.firstChild;)b.removeChild(b.firstChild);delete b.noUiSlider},steps:function(){return S.map((function(t,e){var r=y.getNearbySteps(t),n=E[e],i=r.thisStep.step,o=null;!1!==i&&n+i>r.stepAfter.startValue&&(i=r.stepAfter.startValue-n),o=n>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&n-r.stepBefore.highestStep,100===t?i=null:0===t&&(o=null);var s=y.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(s))),null!==o&&!1!==o&&(o=Number(o.toFixed(s))),[o,i]}))},on:et,off:function(t){var e=t&&t.split(".")[0],r=e&&t.substring(e.length);Object.keys(C).forEach((function(t){var n=t.split(".")[0],i=t.substring(n.length);e&&e!==n||r&&r!==i||delete C[t]}))},get:tt,set:Z,reset:function(t){Z(r.start,t)},__moveHandles:function(t,e,r){D(t,e,S,r)},options:o,updateOptions:function(t,e){var n=tt(),i=["margin","limit","padding","range","animate","snap","step","format"];i.forEach((function(e){void 0!==t[e]&&(o[e]=t[e])}));var s=q(o);i.forEach((function(e){void 0!==t[e]&&(r[e]=s[e])})),y=s.spectrum,r.margin=s.margin,r.limit=s.limit,r.padding=s.padding,r.pips&&L(r.pips),S=[],Z(t.start||n,e)},target:b,removePips:F,pips:L},(h=r.events).fixed||c.forEach((function(t,e){j(g.start,t.children[0],Y,{handleNumbers:[e]})})),h.tap&&j(g.start,u,_,{}),h.hover&&j(g.move,u,I,{hover:!0}),h.drag&&p.forEach((function(t,e){if(!1!==t&&0!==e&&e!==p.length-1){var n=c[e-1],i=c[e],o=[t];s(t,r.cssClasses.draggable),h.fixed&&(o.push(n.children[0]),o.push(i.children[0])),o.forEach((function(t){j(g.start,t,Y,{handles:[n,i],handleNumbers:[e-1,e]})}))}})),Z(r.start),r.pips&&L(r.pips),r.tooltips&&(m=c.map(k),et("update",(function(t,e,n){if(m[e]){var i=t[e];!0!==r.tooltips[e]&&(i=r.tooltips[e].to(n[e])),m[e].innerHTML=i}}))),et("update",(function(t,e,n,i,o){w.forEach((function(t){var e=c[t],i=W(S,t,0,!0,!0,!0),s=W(S,t,100,!0,!0,!0),a=o[t],l=r.ariaFormat.to(n[t]);e.children[0].setAttribute("aria-valuemin",i.toFixed(1)),e.children[0].setAttribute("aria-valuemax",s.toFixed(1)),e.children[0].setAttribute("aria-valuenow",a.toFixed(1)),e.children[0].setAttribute("aria-valuetext",l)}))})),f}return{version:t,create:function(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider (10.1.0): create requires a single element, got: "+t);var r=T(t,q(e),e);return t.noUiSlider=r,r}}},"function"==typeof define&&define.amd?define([],n):"object"==typeof r?e.exports=n():window.noUiSlider=n()},n”, ” 398: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1);e(67),e(399),l.__importStar(e(66)).styles.append(".bk-root .bk-slider-title {\n white-space: nowrap;\n}\n.bk-root .bk-slider-value {\n font-weight: 600;\n}\n"),i.bk_slider_value="bk-slider-value",i.bk_slider_title="bk-slider-title",i.bk_input_group="bk-input-group"},n”, ” 399: function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);n(67),r.__importStar(n(66)).styles.append(‘.bk-root {\n / Functional styling;\n * These styles are required for noUiSlider to function.\n * You don\’t need to change these rules to apply your design.\n /\n / Painting and performance;\n * Browsers can paint handles in their own layer.\n /\n / Slider size and handle placement;\n /\n / Styling;\n /\n / Handles and cursors;\n /\n / Handle stripes;\n /\n / Disabled state;\n /\n / Base;\n \n */\n / Values;\n \n */\n / Markings;\n \n */\n / Horizontal layout;\n \n */\n / Vertical layout;\n \n */\n}\n.bk-root .bk-noUi-target,\n.bk-root .bk-noUi-target * {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-user-select: none;\n -ms-touch-action: none;\n touch-action: none;\n -ms-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bk-root .bk-noUi-target {\n position: relative;\n direction: ltr;\n}\n.bk-root .bk-noUi-base {\n width: 100%;\n height: 100%;\n position: relative;\n z-index: 1;\n / Fix 401 /\n}\n.bk-root .bk-noUi-connect {\n position: absolute;\n right: 0;\n top: 0;\n left: 0;\n bottom: 0;\n}\n.bk-root .bk-noUi-origin {\n position: absolute;\n height: 0;\n width: 0;\n}\n.bk-root .bk-noUi-handle {\n position: relative;\n z-index: 1;\n}\n.bk-root .bk-noUi-state-tap .bk-noUi-connect,\n.bk-root .bk-noUi-state-tap .bk-noUi-origin {\n -webkit-transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\n transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\n}\n.bk-root .bk-noUi-state-drag * {\n cursor: inherit !important;\n}\n.bk-root .bk-noUi-base,\n.bk-root .bk-noUi-handle {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n.bk-root .bk-noUi-horizontal {\n height: 18px;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\n width: 34px;\n height: 28px;\n left: -17px;\n top: -6px;\n}\n.bk-root .bk-noUi-vertical {\n width: 18px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\n width: 28px;\n height: 34px;\n left: -6px;\n top: -17px;\n}\n.bk-root .bk-noUi-target {\n background: #FAFAFA;\n border-radius: 4px;\n border: 1px solid #D3D3D3;\n box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;\n}\n.bk-root .bk-noUi-connect {\n background: #3FB8AF;\n border-radius: 4px;\n box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45);\n -webkit-transition: background 450ms;\n transition: background 450ms;\n}\n.bk-root .bk-noUi-draggable {\n cursor: ew-resize;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-draggable {\n cursor: ns-resize;\n}\n.bk-root .bk-noUi-handle {\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #FFF;\n cursor: default;\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;\n}\n.bk-root .bk-noUi-active {\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;\n}\n.bk-root .bk-noUi-handle:before,\n.bk-root .bk-noUi-handle:after {\n content: "";\n display: block;\n position: absolute;\n height: 14px;\n width: 1px;\n background: #E8E7E6;\n left: 14px;\n top: 6px;\n}\n.bk-root .bk-noUi-handle:after {\n left: 17px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle:before,\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\n width: 14px;\n height: 1px;\n left: 6px;\n top: 14px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\n top: 17px;\n}\n.bk-root [disabled] .bk-noUi-connect {\n background: #B8B8B8;\n}\n.bk-root [disabled].bk-noUi-target,\n.bk-root [disabled].bk-noUi-handle,\n.bk-root [disabled] .bk-noUi-handle {\n cursor: not-allowed;\n}\n.bk-root .bk-noUi-pips,\n.bk-root .bk-noUi-pips * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bk-root .bk-noUi-pips {\n position: absolute;\n color: #999;\n}\n.bk-root .bk-noUi-value {\n position: absolute;\n white-space: nowrap;\n text-align: center;\n}\n.bk-root .bk-noUi-value-sub {\n color: #ccc;\n font-size: 10px;\n}\n.bk-root .bk-noUi-marker {\n position: absolute;\n background: #CCC;\n}\n.bk-root .bk-noUi-marker-sub {\n background: #AAA;\n}\n.bk-root .bk-noUi-marker-large {\n background: #AAA;\n}\n.bk-root .bk-noUi-pips-horizontal {\n padding: 10px 0;\n height: 80px;\n top: 100%;\n left: 0;\n width: 100%;\n}\n.bk-root .bk-noUi-value-horizontal {\n -webkit-transform: translate3d(-50%, 50%, 0);\n transform: translate3d(-50%, 50%, 0);\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker {\n margin-left: -1px;\n width: 2px;\n height: 5px;\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-sub {\n height: 10px;\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-large {\n height: 15px;\n}\n.bk-root .bk-noUi-pips-vertical {\n padding: 0 10px;\n height: 100%;\n top: 0;\n left: 100%;\n}\n.bk-root .bk-noUi-value-vertical {\n -webkit-transform: translate3d(0, 50%, 0);\n transform: translate3d(0, 50%, 0);\n padding-left: 25px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker {\n width: 5px;\n height: 2px;\n margin-top: -1px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-sub {\n width: 10px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-large {\n width: 15px;\n}\n.bk-root .bk-noUi-tooltip {\n display: block;\n position: absolute;\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #fff;\n color: #000;\n padding: 5px;\n text-align: center;\n white-space: nowrap;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-tooltip {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n left: 50%;\n bottom: 120%;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-tooltip {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n top: 50%;\n right: 120%;\n}\n.bk-root .bk-noUi-handle {\n cursor: grab;\n cursor: -webkit-grab;\n}\n.bk-root .bk-noUi-handle.bk-noUi-active {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n}\n.bk-root .bk-noUi-tooltip {\n display: none;\n white-space: nowrap;\n}\n.bk-root .bk-noUi-handle:hover .bk-noUi-tooltip {\n display: block;\n}\n.bk-root .bk-noUi-horizontal {\n width: 100%;\n height: 10px;\n}\n.bk-root .bk-noUi-horizontal.bk-noUi-target {\n margin: 5px 0px;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\n width: 14px;\n height: 18px;\n left: -7px;\n top: -5px;\n}\n.bk-root .bk-noUi-vertical {\n width: 10px;\n height: 100%;\n}\n.bk-root .bk-noUi-vertical.bk-noUi-target {\n margin: 0px 5px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\n width: 18px;\n height: 14px;\n left: -5px;\n top: -7px;\n}\n.bk-root .bk-noUi-handle:after,\n.bk-root .bk-noUi-handle:before {\n display: none;\n}\n.bk-root .bk-noUi-connect {\n box-shadow: none;\n}\n’)},n”, ” 400: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1).__importDefault(e(157)),a=e(396);class d extends a.AbstractSliderView{}i.DateSliderView=d,d.__name__="DateSliderView";class s extends a.AbstractSlider{constructor(e){super(e),this.behaviour="tap",this.connected=[!0,!1]}static init_DateSlider(){this.prototype.default_view=d,this.override({format:"%d %b %Y"})}_formatter(e,t){return r.default(e,t)}}i.DateSlider=s,s.__name__="DateSlider",s.init_DateSlider()},n”, ” 401: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),_=e(402),n=r.__importStar(e(19));class s extends _.MarkupView{render(){super.render(),this.model.render_as_text?this.markup_el.textContent=this.model.text:this.markup_el.innerHTML=this.model.text}}i.DivView=s,s.__name__="DivView";class a extends _.Markup{constructor(e){super(e)}static init_Div(){this.prototype.default_view=s,this.define({render_as_text:[n.Boolean,!1]})}}i.Div=a,a.__name__="Div",a.init_Div()},n”, ” 402: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(187),a=e(66),r=s.__importStar(e(19)),l=e(441),_=e(403);class c extends l.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>{this.render(),this.root.compute_layout()})}_update_layout(){this.layout=new n.VariadicBox(this.el),this.layout.set_sizing(this.box_sizing())}render(){super.render();const e=Object.assign(Object.assign({},this.model.style),{display:"inline-block"});this.markup_el=a.div({class:_.bk_clearfix,style:e}),this.el.appendChild(this.markup_el)}}i.MarkupView=c,c.__name__="MarkupView";class o extends l.Widget{constructor(e){super(e)}static init_Markup(){this.define({text:[r.String,""],style:[r.Any,{}]})}}i.Markup=o,o.__name__="Markup",o.init_Markup()},n”, ” 403: function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1);e(67),n.__importStar(e(66)).styles.append(‘.bk-root .bk-clearfix:before,\n.bk-root .bk-clearfix:after {\n content: "";\n display: table;\n}\n.bk-root .bk-clearfix:after {\n clear: both;\n}\n’),t.bk_clearfix="bk-clearfix"},n”, ” 404: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(378),o=e(281),_=e(66),d=n.__importStar(e(19)),l=e(8),r=e(145),c=e(252),u=e(253);class h extends s.AbstractButtonView{constructor(){super(…arguments),this._open=!1}render(){super.render();const e=_.div({class:[u.bk_caret,r.bk_down]});if(this.model.is_split){const t=this._render_button(e);t.classList.add(c.bk_dropdown_toggle),t.addEventListener("click",()=>this._toggle_menu()),this.group_el.appendChild(t)}else this.button_el.appendChild(e);const t=this.model.menu.map((e,t)=>{if(null==e)return _.div({class:u.bk_divider});{const i=l.isString(e)?e:e[0],n=_.div({},i);return n.addEventListener("click",()=>this._item_click(t)),n}});this.menu=_.div({class:[u.bk_menu,r.bk_below]},t),this.el.appendChild(this.menu),_.undisplay(this.menu)}_show_menu(){if(!this._open){this._open=!0,_.display(this.menu);const e=t=>{const{target:i}=t;i instanceof HTMLElement&&!this.el.contains(i)&&(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,_.undisplay(this.menu))}_toggle_menu(){this._open?this._hide_menu():this._show_menu()}click(){this.model.is_split?(this._hide_menu(),this.model.trigger_event(new o.ButtonClick),super.click()):this._toggle_menu()}_item_click(e){this._hide_menu();const t=this.model.menu[e];if(null!=t){const i=l.isString(t)?t:t[1];l.isString(i)?this.model.trigger_event(new o.MenuItemClick(i)):i.execute(this.model,{index:e})}}}i.DropdownView=h,h.__name__="DropdownView";class p extends s.AbstractButton{constructor(e){super(e)}static init_Dropdown(){this.prototype.default_view=h,this.define({split:[d.Boolean,!1],menu:[d.Array,[]]}),this.override({label:"Dropdown"})}get is_split(){return this.split}}i.Dropdown=p,p.__name__="Dropdown",p.init_Dropdown()},n”, ” 405: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1).__importStar(e(19)),s=e(441);class n extends s.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.width.change,()=>this.render())}render(){null==this.dialogEl&&(this.dialogEl=document.createElement("input"),this.dialogEl.type="file",this.dialogEl.multiple=this.model.multiple,this.dialogEl.onchange=()=>{const{files:e}=this.dialogEl;null!=e&&this.load_files(e)},this.el.appendChild(this.dialogEl)),null!=this.model.accept&&""!=this.model.accept&&(this.dialogEl.accept=this.model.accept),this.dialogEl.style.width="{this.model.width}px",this.dialogEl.disabled=this.model.disabled}async load_files(e){const t=[],i=[],l=[];let s;for(s=0;s<e.length;s++){i.push(e[s].name);const n=await this.readfile(e[s]),[,o,,a]=n.split(/[:;,]/,4);t.push(a),l.push(o)}this.model.multiple?(this.model.filename=i,this.model.mime_type=l,this.model.value=t):(this.model.filename=i[0],this.model.mime_type=l[0],this.model.value=t[0])}readfile(e){return new Promise((t,i)=>{const l=new FileReader;l.onload=()=>{var s;const{result:n}=l;null!=n?t(n):i(null!==(s=l.error)&&void 0!==s?s:new Error(`unable to read ‘${e.name}’`))},l.readAsDataURL(e)})}}i.FileInputView=n,n.__name__="FileInputView";class o extends s.Widget{constructor(e){super(e)}static init_FileInput(){this.prototype.default_view=n,this.define({value:[l.Any,""],mime_type:[l.Any,""],filename:[l.Any,""],accept:[l.String,""],multiple:[l.Boolean,!1]})}}i.FileInput=o,o.__name__="FileInput",o.init_FileInput()},n”, ” 406: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(66),l=e(8),o=e(15),r=i.__importStar(e(19)),c=e(384),h=e(385);class a extends c.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,()=>this.render_selection()),this.connect(this.model.properties.options.change,()=>this.render()),this.connect(this.model.properties.name.change,()=>this.render()),this.connect(this.model.properties.title.change,()=>this.render()),this.connect(this.model.properties.size.change,()=>this.render()),this.connect(this.model.properties.disabled.change,()=>this.render())}render(){super.render();const e=this.model.options.map(e=>{let t,s;return l.isString(e)?t=s=e:[t,s]=e,n.option({value:t},s)});this.select_el=n.select({multiple:!0,class:h.bk_input,name:this.model.name,disabled:this.model.disabled},e),this.select_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.select_el),this.render_selection()}render_selection(){const e=new o.Set(this.model.value);for(const t of Array.from(this.el.querySelectorAll("option")))t.selected=e.has(t.value);this.select_el.size=this.model.size}change_input(){const e=null!=this.el.querySelector("select:focus"),t=[];for(const e of Array.from(this.el.querySelectorAll("option")))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.select_el.focus()}}s.MultiSelectView=a,a.__name__="MultiSelectView";class d extends c.InputWidget{constructor(e){super(e)}static init_MultiSelect(){this.prototype.default_view=a,this.define({value:[r.Array,[]],options:[r.Array,[]],size:[r.Number,4]})}}s.MultiSelect=d,d.__name__="MultiSelect",d.init_MultiSelect()},n”, ” 407: function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});const t=a(402),p=a(66);class s extends t.MarkupView{render(){super.render();const a=p.p({style:{margin:0}},this.model.text);this.markup_el.appendChild(a)}}r.ParagraphView=s,s.__name__="ParagraphView";class i extends t.Markup{constructor(a){super(a)}static init_Paragraph(){this.prototype.default_view=s}}r.Paragraph=i,i.__name__="Paragraph",i.init_Paragraph()},n”, ” 408: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(383);class r extends n.TextInputView{render(){super.render(),this.input_el.type="password"}}s.PasswordInputView=r,r.__name__="PasswordInputView";class p extends n.TextInput{constructor(e){super(e)}static init_PasswordInput(){this.prototype.default_view=r}}s.PasswordInput=p,p.__name__="PasswordInput",p.init_PasswordInput()},n”, ” 409: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=s.__importDefault(e(410)),o=e(66),n=e(8),h=s.__importStar(e(19)),c=e(385);e(411);const r=e(384);class d extends r.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,()=>this.render_selection()),this.connect(this.model.properties.disabled.change,()=>this.set_disabled()),this.connect(this.model.properties.max_items.change,()=>this.render()),this.connect(this.model.properties.option_limit.change,()=>this.render()),this.connect(this.model.properties.delete_button.change,()=>this.render()),this.connect(this.model.properties.placeholder.change,()=>this.render()),this.connect(this.model.properties.options.change,()=>this.render()),this.connect(this.model.properties.name.change,()=>this.render()),this.connect(this.model.properties.title.change,()=>this.render())}render(){super.render();const e=this.model.options.map(e=>{let t,i;return n.isString(e)?t=i=e:[t,i]=e,o.option({value:t},i)});this.select_el=o.select({multiple:!0,class:c.bk_input,name:this.model.name,disabled:this.model.disabled},e),this.group_el.appendChild(this.select_el),this.render_selection();let t="choices__item",i="choices__button";this.model.solid?(t+=" solid",i+=" solid"):(t+=" light",i+=" light");const s={removeItemButton:this.model.delete_button,classNames:{item:t,button:i}};null!==this.model.placeholder&&(s.placeholderValue=this.model.placeholder),null!==this.model.max_items&&(s.maxItemCount=this.model.max_items),null!==this.model.option_limit&&(s.renderChoiceLimit=this.model.option_limit),this.choice_el=new l.default(this.select_el,s),this.select_el.addEventListener("change",()=>this.change_input())}render_selection(){const e=new Set(this.model.value);for(const t of Array.from(this.el.querySelectorAll("option")))t.selected=e.has(t.value)}set_disabled(){this.model.disabled?this.choice_el.disable():this.choice_el.enable()}change_input(){const e=null!=this.el.querySelector("select:focus"),t=[];for(const e of Array.from(this.el.querySelectorAll("option")))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.select_el.focus()}}i.MultiChoiceView=d,d.__name__="MultiChoiceView";class a extends r.InputWidget{constructor(e){super(e)}static init_MultiChoice(){this.prototype.default_view=d,this.define({value:[h.Array,[]],options:[h.Array,[]],max_items:[h.Number,null],delete_button:[h.Boolean,!0],placeholder:[h.String,null],option_limit:[h.Number,null],solid:[h.Boolean,!0]})}}i.MultiChoice=a,a.__name__="MultiChoice",a.init_MultiChoice()},n”, ” 410: function _(e,t,i){n”, ” /! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme /n”, ” var n,s;n=window,s=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/public/assets/scripts/",i(i.s=4)}([function(e,t,i){"use strict";var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function o(e,t,i){return e.concat(t).map((function(e){return r(e,i)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t,i){var n={};return i.isMergeableObject(e)&&a(e).forEach((function(t){n[t]=r(e[t],i)})),a(t).forEach((function(s){(function(e,t){try{return t in e&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}catch(e){return!1}})(e,s)||(i.isMergeableObject(t[s])&&e[s]?n[s]=function(e,t){if(!t.customMerge)return l;var i=t.customMerge(e);return"function"==typeof i?i:l}(s,i)(e[s],t[s],i):n[s]=r(t[s],i))})),n}function l(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||n,i.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(t);return s===Array.isArray(e)?s?i.arrayMerge(e,t,i):c(e,t,i):r(t,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return l(e,i,t)}),{})};var h=l;e.exports=h},function(e,t,i){"use strict";(function(e,n){var s,r=i(3);s="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var o=Object(r.a)(s);t.a=o}).call(this,i(5),i(6)(e))},function(e,t,i){n”, ” /!n”, ” * Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)n”, ” n”, ” * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)n”, ” * All Rights Reserved. Apache Software License 2.0n”, ” *n”, ” * http://www.apache.org/licenses/LICENSE-2.0n”, ” */n”, ” e.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,i){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=i(2),o=i(8),a=i(0),c=function(){function e(t,i){var n=i.location,s=void 0===n?0:n,r=i.distance,a=void 0===r?100:r,c=i.threshold,l=void 0===c?.6:c,h=i.maxPatternLength,u=void 0===h?32:h,d=i.caseSensitive,p=void 0!==d&&d,m=i.tokenSeparator,f=void 0===m?/ +/g:m,v=i.findAllMatches,g=void 0!==v&&v,_=i.minMatchCharLength,b=void 0===_?1:_,y=i.id,E=void 0===y?null:y,I=i.keys,S=void 0===I?[]:I,w=i.shouldSort,O=void 0===w||w,C=i.getFn,A=void 0===C?o:C,L=i.sortFn,T=void 0===L?function(e,t){return e.score-t.score}:L,x=i.tokenize,k=void 0!==x&&x,P=i.matchAllTokens,D=void 0!==P&&P,M=i.includeMatches,N=void 0!==M&&M,F=i.includeScore,j=void 0!==F&&F,K=i.verbose,R=void 0!==K&&K;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:l,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:f,findAllMatches:g,minMatchCharLength:b,id:E,keys:S,includeMatches:N,includeScore:j,shouldSort:O,getFn:A,sortFn:T,verbose:R,tokenize:k,matchAllTokens:D},this.setCollection(t)}var t,i;return t=e,(i=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log(’———\nSearch pattern: "’.concat(e,’"’));var i=this._prepareSearchers(e),n=i.tokenSearchers,s=i.fullSearcher,r=this._search(n,s),o=r.weights,a=r.results;return this._computeScore(o,a),this.options.shouldSort&&this._sort(a),t.limit&&"number"==typeof t.limit&&(a=a.slice(0,t.limit)),this._format(a)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var i=e.split(this.options.tokenSeparator),n=0,s=i.length;n<s;n+=1)t.push(new r(i[n],this.options));return{tokenSearchers:t,fullSearcher:new r(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,i=this.list,n={},s=[];if("string"==typeof i[0]){for(var r=0,o=i.length;r<o;r+=1)this._analyze({key:"",value:i[r],record:r,index:r},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t});return{weights:null,results:s}}for(var a={},c=0,l=i.length;c<l;c+=1)for(var h=i[c],u=0,d=this.options.keys.length;u<d;u+=1){var p=this.options.keys[u];if("string"!=typeof p){if(a[p.name]={weight:1-p.weight||1},p.weight<=0||p.weight>1)throw new Error("Key weight has to be > 0 and <= 1");p=p.name}else a[p]={weight:1};this._analyze({key:p,value:this.options.getFn(h,p),record:h,index:c},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t})}return{weights:a,results:s}}},{key:"_analyze",value:function(e,t){var i=e.key,n=e.arrayIndex,s=void 0===n?-1:n,r=e.value,o=e.record,c=e.index,l=t.tokenSearchers,h=void 0===l?[]:l,u=t.fullSearcher,d=void 0===u?[]:u,p=t.resultMap,m=void 0===p?{}:p,f=t.results,v=void 0===f?[]:f;if(null!=r){var g=!1,_=-1,b=0;if("string"==typeof r){this._log("\nKey: ".concat(""===i?"-":i));var y=d.search(r);if(this._log(‘Full text: "’.concat(r,’", score: ‘).concat(y.score)),this.options.tokenize){for(var E=r.split(this.options.tokenSeparator),I=[],S=0;S<h.length;S+=1){var w=h[S];this._log(’\nPattern: "’.concat(w.pattern,’"’));for(var O=!1,C=0;C<E.length;C+=1){var A=E[C],L=w.search(A),T={};L.isMatch?(T[A]=L.score,g=!0,O=!0,I.push(L.score)):(T[A]=1,this.options.matchAllTokens||I.push(1)),this._log(‘Token: "’.concat(A,’", score: ‘).concat(T[A]))}O&&(b+=1)}_=I[0];for(var x=I.length,k=1;k<x;k+=1)_+=I[k];_/=x,this._log("Token score average:",_)}var P=y.score;_>-1&&(P=(P+_)/2),this._log("Score average:",P);var D=!this.options.tokenize||!this.options.matchAllTokens||b>=h.length;if(this._log("\nCheck Matches: ".concat(D)),(g||y.isMatch)&&D){var M=m[c];M?M.output.push({key:i,arrayIndex:s,value:r,score:P,matchedIndices:y.matchedIndices}):(m[c]={item:o,output:[{key:i,arrayIndex:s,value:r,score:P,matchedIndices:y.matchedIndices}]},v.push(m[c]))}}else if(a(r))for(var N=0,F=r.length;N<F;N+=1)this._analyze({key:i,arrayIndex:N,value:r[N],record:o,index:c},{resultMap:m,results:v,tokenSearchers:h,fullSearcher:d})}}},{key:"_computeScore",value:function(e,t){this._log("\n\nComputing score:\n");for(var i=0,n=t.length;i<n;i+=1){for(var s=t[i].output,r=s.length,o=1,a=1,c=0;c<r;c+=1){var l=e?e[s[c].key].weight:1,h=(1===l?s[c].score:s[c].score||.001)*l;1!==l?a=Math.min(a,h):(s[c].nScore=h,o*=h)}t[i].score=1===a?o:a,this._log(t[i])}}},{key:"_sort",value:function(e){this._log("\n\nSorting…."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var i=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===n(t)&&null!==t){if(-1!==i.indexOf(t))return;i.push(t)}return t}))),i=null}var s=[];this.options.includeMatches&&s.push((function(e,t){var i=e.output;t.matches=[];for(var n=0,s=i.length;n<s;n+=1){var r=i[n];if(0!==r.matchedIndices.length){var o={indices:r.matchedIndices,value:r.value};r.key&&(o.key=r.key),r.hasOwnProperty("arrayIndex")&&r.arrayIndex>-1&&(o.arrayIndex=r.arrayIndex),t.matches.push(o)}}})),this.options.includeScore&&s.push((function(e,t){t.score=e.score}));for(var r=0,o=e.length;r<o;r+=1){var a=e[r];if(this.options.id&&(a.item=this.options.getFn(a.item,this.options.id)[0]),s.length){for(var c={item:a.item},l=0,h=s.length;l<h;l+=1)s[l](a,c);t.push(c)}else t.push(a.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&s(t.prototype,i),e}();e.exports=c},function(e,t,i){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=i(3),r=i(4),o=i(7),a=function(){function e(t,i){var n=i.location,s=void 0===n?0:n,r=i.distance,a=void 0===r?100:r,c=i.threshold,l=void 0===c?.6:c,h=i.maxPatternLength,u=void 0===h?32:h,d=i.isCaseSensitive,p=void 0!==d&&d,m=i.tokenSeparator,f=void 0===m?/ +/g:m,v=i.findAllMatches,g=void 0!==v&&v,_=i.minMatchCharLength,b=void 0===_?1:_;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:l,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:f,findAllMatches:g,minMatchCharLength:b},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=u&&(this.patternAlphabet=o(this.pattern))}var t,i;return t=e,(i=[{key:"search",value:function(e){if(this.options.isCaseSensitive||(e=e.toLowerCase()),this.pattern===e)return{isMatch:!0,score:0,matchedIndices:[[0,e.length-1]]};var t=this.options,i=t.maxPatternLength,n=t.tokenSeparator;if(this.pattern.length>i)return s(e,this.pattern,n);var o=this.options,a=o.location,c=o.distance,l=o.threshold,h=o.findAllMatches,u=o.minMatchCharLength;return r(e,this.pattern,this.patternAlphabet,{location:a,distance:c,threshold:l,findAllMatches:h,minMatchCharLength:u})}}])&&n(t.prototype,i),e}();e.exports=a},function(e,t){var i=/[\-\[\]\/\{\}\(\)\\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,s=new RegExp(t.replace(i,"\\$&").replace(n,"|\")),r=e.match(s),o=!!r,a=[];if(o)for(var c=0,l=r.length;c<l;c+=1){var h=r[c];a.push([e.indexOf(h),h.length-1])}return{score:o?.5:1,isMatch:o,matchedIndices:a}}},function(e,t,i){var n=i(5),s=i(6);e.exports=function(e,t,i,r){for(var o=r.location,a=void 0===o?0:o,c=r.distance,l=void 0===c?100:c,h=r.threshold,u=void 0===h?.6:h,d=r.findAllMatches,p=void 0!==d&&d,m=r.minMatchCharLength,f=void 0===m?1:m,v=a,g=e.length,_=u,b=e.indexOf(t,v),y=t.length,E=[],I=0;I<g;I+=1)E[I]=0;if(-1!==b){var S=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:l});if(_=Math.min(S,_),-1!==(b=e.lastIndexOf(t,v+y))){var w=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:l});_=Math.min(w,_)}}b=-1;for(var O=[],C=1,A=y+g,L=1<<y-1,T=0;T<y;T+=1){for(var x=0,k=A;x<k;)n(t,{errors:T,currentLocation:v+k,expectedLocation:v,distance:l})<=_?x=k:A=k,k=Math.floor((A-x)/2+x);A=k;var P=Math.max(1,v-k+1),D=p?g:Math.min(v+k,g)+y,M=Array(D+2);M[D+1]=(1<<T)-1;for(var N=D;N>=P;N-=1){var F=N-1,j=i[e.charAt(F)];if(j&&(E[F]=1),M[N]=(M[N+1]<<1|1)&j,0!==T&&(M[N]|=(O[N+1]|O[N])<<1|1|O[N+1]),M[N]&L&&(C=n(t,{errors:T,currentLocation:F,expectedLocation:v,distance:l}))<=_){if(_=C,(b=F)<=v)break;P=Math.max(1,2*v-b)}}if(n(t,{errors:T+1,currentLocation:v,expectedLocation:v,distance:l})>_)break;O=M}return{isMatch:b>=0,score:0===C?.001:C,matchedIndices:s(E,f)}}},function(e,t){e.exports=function(e,t){var i=t.errors,n=void 0===i?0:i,s=t.currentLocation,r=void 0===s?0:s,o=t.expectedLocation,a=void 0===o?0:o,c=t.distance,l=void 0===c?100:c,h=n/e.length,u=Math.abs(a-r);return l?h+u/l:u?1:h}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[],n=-1,s=-1,r=0,o=e.length;r<o;r+=1){var a=e[r];a&&-1===n?n=r:a||-1===n||((s=r-1)-n+1>=t&&i.push([n,s]),n=-1)}return e[r-1]&&r-n>=t&&i.push([n,r-1]),i}},function(e,t){e.exports=function(e){for(var t={},i=e.length,n=0;n<i;n+=1)t[e.charAt(n)]=0;for(var s=0;s<i;s+=1)t[e.charAt(s)]|=1<<i-s-1;return t}},function(e,t,i){var n=i(0);e.exports=function(e,t){return function e(t,i,s){if(i){var r=i.indexOf("."),o=i,a=null;-1!==r&&(o=i.slice(0,r),a=i.slice(r+1));var c=t[o];if(null!=c)if(a||"string"!=typeof c&&"number"!=typeof c)if(n(c))for(var l=0,h=c.length;l<h;l+=1)e(c[l],a,s);else a&&e(c,a,s);else s.push(c.toString())}else s.push(t);return s}(e,t,[])}}])},function(e,t,i){"use strict";function n(e){var t,i=e.Symbol;return"function"==typeof i?i.observable?t=i.observable:(t=i("observable"),i.observable=t):t="@@observable",t}i.d(t,"a",(function(){return n}))},function(e,t,i){e.exports=i(7)},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,i){"use strict";i.r(t);var n=i(2),s=i.n(n),r=i(0),o=i.n(r),a=i(1),c=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,i){var n;if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,r=t,o=[],c=o,d=!1;function p(){c===o&&(c=o.slice())}function m(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return r}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),c.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var i=c.indexOf(e);c.splice(i,1)}}}function v(e){if(!h(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error(‘Actions may not have an undefined "type" property. Have you misspelled a constant?’);if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,r=s(r,e)}finally{d=!1}for(var t=o=c,i=0;i<t.length;i++)(0,t[i])();return e}function g(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,v({type:l.REPLACE})}function _(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function i(){e.next&&e.next(m())}return i(),{unsubscribe:t(i)}}})[a.a]=function(){return this},e}return v({type:l.INIT}),(n={dispatch:v,subscribe:f,getState:m,replaceReducer:g})[a.a]=_,n}function d(e,t){var i=t&&t.type;return"Given "+(i&&’action "’+String(i)+’"’||"an action")+’, reducer "’+e+’" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.’}var p,m=[],f=[],v=[],g={loading:!1},_=function(e,t){switch(void 0===e&&(e=g),t.type){case"SET_IS_LOADING":return{loading:t.isLoading};default:return e}},b=function(e){return Array.from({length:e},(function(){return(e=0,t=36,Math.floor(Math.random()*(t-e)+e)).toString(36);var e,t})).join("")},y=function(e){return Object.prototype.toString.call(e).slice(8,-1)},E=function(e,t){return null!=t&&y(t)===e},I=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/</g,"<").replace(/"/g,""")},S=(p=document.createElement("div"),function(e){var t=e.trim();p.innerHTML=t;for(var i=p.children[0];p.firstChild;)p.removeChild(p.firstChild);return i}),w=function(e,t){return e.score-t.score},O=function(e){return JSON.parse(JSON.stringify(e))},C=function(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++){var s=t[n];"function"==typeof e[s]&&(i[s]=e[s])}var r,o=Object.keys(i);try{!function(e){Object.keys(e).forEach((function(t){var i=e[t];if(void 0===i(void 0,{type:l.INIT}))throw new Error(‘Reducer "’+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don’t want to set a value for this reducer, you can use null instead of undefined.");if(void 0===i(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(‘Reducer "’+t+"\" returned undefined when probed with a random type. Don’t try to handle "+l.INIT+’ or other actions in "redux/" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.’)}))}(i)}catch(e){r=e}return function(e,t){if(void 0===e&&(e={}),r)throw r;for(var n=!1,s={},a=0;a<o.length;a++){var c=o[a],l=i[c],h=e[c],u=l(h,t);if(void 0===u){var p=d(c,t);throw new Error(p)}s[c]=u,n=n||u!==h}return n?s:e}}({items:function(e,t){switch(void 0===e&&(e=m),t.type){case"ADD_ITEM":return[].concat(e,[{id:t.id,choiceId:t.choiceId,groupId:t.groupId,value:t.value,label:t.label,active:!0,highlighted:!1,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]).map((function(e){var t=e;return t.highlighted=!1,t}));case"REMOVE_ITEM":return e.map((function(e){var i=e;return i.id===t.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":return e.map((function(e){var i=e;return i.id===t.id&&(i.highlighted=t.highlighted),i}));default:return e}},groups:function(e,t){switch(void 0===e&&(e=f),t.type){case"ADD_GROUP":return[].concat(e,[{id:t.id,value:t.value,active:t.active,disabled:t.disabled}]);case"CLEAR_CHOICES":return[];default:return e}},choices:function(e,t){switch(void 0===e&&(e=v),t.type){case"ADD_CHOICE":return[].concat(e,[{id:t.id,elementId:t.elementId,groupId:t.groupId,value:t.value,label:t.label||t.value,disabled:t.disabled||!1,selected:!1,active:!0,score:9999,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return t.activateOptions?e.map((function(e){var i=e;return i.active=t.active,i})):t.choiceId>-1?e.map((function(e){var i=e;return i.id===parseInt(t.choiceId,10)&&(i.selected=!0),i})):e;case"REMOVE_ITEM":return t.choiceId>-1?e.map((function(e){var i=e;return i.id===parseInt(t.choiceId,10)&&(i.selected=!1),i})):e;case"FILTER_CHOICES":return e.map((function(e){var i=e;return i.active=t.results.some((function(e){var t=e.item,n=e.score;return t.id===i.id&&(i.score=n,!0)})),i}));case"ACTIVATE_CHOICES":return e.map((function(e){var i=e;return i.active=t.active,i}));case"CLEAR_CHOICES":return v;default:return e}},general:_}),A=function(e,t){var i=e;if("CLEAR_ALL"===t.type)i=void 0;else if("RESET_TO"===t.type)return O(t.state);return C(i,t)};function L(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var T=function(){function e(){this._store=u(A,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var t,i,n,s=e.prototype;return s.subscribe=function(e){this._store.subscribe(e)},s.dispatch=function(e){this._store.dispatch(e)},s.isLoading=function(){return this.state.general.loading},s.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},s.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},t=e,(i=[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter((function(e){return!0===e.active}))}},{key:"highlightedActiveItems",get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter((function(e){return!0===e.active}))}},{key:"selectableChoices",get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find((function(e){return!0===e.placeholder}))}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var i=!0===e.active&&!1===e.disabled,n=t.some((function(e){return!0===e.active&&!1===e.disabled}));return i&&n}),[])}}])&&L(t.prototype,i),n&&L(t,n),e}();function x(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var k=function(){function e(e){var t=e.element,i=e.type,n=e.classNames;this.element=t,this.classNames=n,this.type=i,this.isActive=!1}var t,i,n,s=e.prototype;return s.getChild=function(e){return this.element.querySelector(e)},s.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},s.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t=e,(i=[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}])&&x(t.prototype,i),n&&x(t,n),e}(),P={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:function(e,t){var i=e.value,n=e.label,s=void 0===n?i:n,r=t.value,o=t.label,a=void 0===o?r:o;return s.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading…",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return’Press Enter to add <b>"’+I(e)+’"</b>’},maxItemText:function(e){return"Only "+e+" values can be added"},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input–cloned",list:"choices__list",listItems:"choices__list–multiple",listSingle:"choices__list–single",listDropdown:"choices__list–dropdown",item:"choices__item",itemSelectable:"choices__item–selectable",itemDisabled:"choices__item–disabled",itemChoice:"choices__item–choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"}},D="showDropdown",M="hideDropdown",N="change",F="choice",j="search",K="addItem",R="removeItem",H="highlightItem",B="highlightChoice",V="ADD_CHOICE",G="FILTER_CHOICES",q="ACTIVATE_CHOICES",U="CLEAR_CHOICES",z="ADD_GROUP",W="ADD_ITEM",X="REMOVE_ITEM",$="HIGHLIGHT_ITEM",J=46,Y=8,Z=13,Q=65,ee=27,te=38,ie=40,ne=33,se=34,re=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,s=e.position;this.element=t,this.classNames=n,this.type=i,this.position=s,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t=e.prototype;return t.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.shouldFlip=function(e){if("number"!=typeof e)return!1;var t=!1;return"auto"===this.position?t=!window.matchMedia("(min-height: "+(e+1)+"px)").matches:"top"===this.position&&(t=!0),t},t.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},t.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.focus=function(){this.isFocussed||this.element.focus()},t.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),"select-one"===this.type&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),"select-one"===this.type&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.wrap=function(e){!function(e,t){void 0===t&&(t=document.createElement("div")),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)}(e,this.element)},t.unwrap=function(e){this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element)},t.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t._onFocus=function(){this.isFocussed=!0},t._onBlur=function(){this.isFocussed=!1},e}();function oe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ae=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,s=e.preventPaste;this.element=t,this.type=i,this.classNames=n,this.preventPaste=s,this.isFocussed=this.element===document.activeElement,this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t,i,n,s=e.prototype;return s.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},s.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},s.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},s.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},s.focus=function(){this.isFocussed||this.element.focus()},s.blur=function(){this.isFocussed&&this.element.blur()},s.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},s.setWidth=function(){var e=this.element,t=e.style,i=e.value,n=e.placeholder;t.minWidth=n.length+1+"ch",t.width=i.length+1+"ch"},s.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},s.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},s._onInput=function(){"select-one"!==this.type&&this.setWidth()},s._onPaste=function(e){this.preventPaste&&e.preventDefault()},s._onFocus=function(){this.isFocussed=!0},s._onBlur=function(){this.isFocussed=!1},t=e,(i=[{key:"placeholder",set:function(e){this.element.placeholder=e}},{key:"value",get:function(){return I(this.element.value)},set:function(e){this.element.value=e}}])&&oe(t.prototype,i),n&&oe(t,n),e}(),ce=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}var t=e.prototype;return t.clear=function(){this.element.innerHTML=""},t.append=function(e){this.element.appendChild(e)},t.getChild=function(e){return this.element.querySelector(e)},t.hasChildren=function(){return this.element.hasChildNodes()},t.scrollToTop=function(){this.element.scrollTop=0},t.scrollToChildElement=function(e,t){var i=this;if(e){var n=this.element.offsetHeight,s=this.element.scrollTop+n,r=e.offsetHeight,o=e.offsetTop+r,a=t>0?this.element.scrollTop+o-s:e.offsetTop;requestAnimationFrame((function(){i._animateScroll(a,t)}))}},t._scrollDown=function(e,t,i){var n=(i-e)/t,s=n>1?n:1;this.element.scrollTop=e+s},t._scrollUp=function(e,t,i){var n=(e-i)/t,s=n>1?n:1;this.element.scrollTop=e-s},t._animateScroll=function(e,t){var i=this,n=this.element.scrollTop,s=!1;t>0?(this._scrollDown(n,4,e),n<e&&(s=!0)):(this._scrollUp(n,4,e),n>e&&(s=!0)),s&&requestAnimationFrame((function(){i._animateScroll(e,t)}))},e}();function le(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var he=function(){function e(e){var t=e.element,i=e.classNames;if(this.element=t,this.classNames=i,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var t,i,n,s=e.prototype;return s.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},s.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},s.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},s.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},s.triggerEvent=function(e,t){!function(e,t,i){void 0===i&&(i=null);var n=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}(this.element,e,t)},t=e,(i=[{key:"isActive",get:function(){return"active"===this.element.dataset.choice}},{key:"dir",get:function(){return this.element.dir}},{key:"value",get:function(){return this.element.value},set:function(e){this.element.value=e}}])&&le(t.prototype,i),n&&le(t,n),e}();function ue(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var de=function(e){var t,i,n,s,r;function o(t){var i,n=t.element,s=t.classNames,r=t.delimiter;return(i=e.call(this,{element:n,classNames:s})||this).delimiter=r,i}return i=e,(t=o).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,n=o,(s=[{key:"value",get:function(){return this.element.value},set:function(e){var t=e.map((function(e){return e.value})).join(this.delimiter);this.element.setAttribute("value",t),this.element.value=t}}])&&ue(n.prototype,s),r&&ue(n,r),o}(he);function pe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var me=function(e){var t,i,n,s,r;function o(t){var i,n=t.element,s=t.classNames,r=t.template;return(i=e.call(this,{element:n,classNames:s})||this).template=r,i}return i=e,(t=o).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,o.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},n=o,(s=[{key:"placeholderOption",get:function(){return this.element.querySelector(‘option[value=""]’)||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach((function(e){return n=e,s=t.template(n),void i.appendChild(s);var n,s})),this.appendDocFragment(i)}}])&&pe(n.prototype,s),r&&pe(n,r),o}(he),fe={containerOuter:function(e,t,i,n,s,r){var o=e.containerOuter,a=Object.assign(document.createElement("div"),{className:o});return a.dataset.type=r,t&&(a.dir=t),n&&(a.tabIndex=0),i&&(a.setAttribute("role",s?"combobox":"listbox"),s&&a.setAttribute("aria-autocomplete","list")),a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"),a},containerInner:function(e){var t=e.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var i=e.list,n=e.listSingle,s=e.listItems;return Object.assign(document.createElement("div"),{className:i+" "+(t?n:s)})},placeholder:function(e,t){var i=e.placeholder;return Object.assign(document.createElement("div"),{className:i,innerHTML:t})},item:function(e,t,i){var n=e.item,s=e.button,r=e.highlightedState,o=e.itemSelectable,a=e.placeholder,c=t.id,l=t.value,h=t.label,u=t.customProperties,d=t.active,p=t.disabled,m=t.highlighted,f=t.placeholder,v=Object.assign(document.createElement("div"),{className:n,innerHTML:h});if(Object.assign(v.dataset,{item:"",id:c,value:l,customProperties:u}),d&&v.setAttribute("aria-selected","true"),p&&v.setAttribute("aria-disabled","true"),f&&v.classList.add(a),v.classList.add(m?r:o),i){p&&v.classList.remove(o),v.dataset.deletable="";var g=Object.assign(document.createElement("button"),{type:"button",className:s,innerHTML:"Remove item"});g.setAttribute("aria-label","Remove item: ‘"+l+"’"),g.dataset.button="",v.appendChild(g)}return v},choiceList:function(e,t){var i=e.list,n=Object.assign(document.createElement("div"),{className:i});return t||n.setAttribute("aria-multiselectable","true"),n.setAttribute("role","listbox"),n},choiceGroup:function(e,t){var i=e.group,n=e.groupHeading,s=e.itemDisabled,r=t.id,o=t.value,a=t.disabled,c=Object.assign(document.createElement("div"),{className:i+" "+(a?s:"")});return c.setAttribute("role","group"),Object.assign(c.dataset,{group:"",id:r,value:o}),a&&c.setAttribute("aria-disabled","true"),c.appendChild(Object.assign(document.createElement("div"),{className:n,innerHTML:o})),c},choice:function(e,t,i){var n=e.item,s=e.itemChoice,r=e.itemSelectable,o=e.selectedState,a=e.itemDisabled,c=e.placeholder,l=t.id,h=t.value,u=t.label,d=t.groupId,p=t.elementId,m=t.disabled,f=t.selected,v=t.placeholder,g=Object.assign(document.createElement("div"),{id:p,innerHTML:u,className:n+" "+s});return f&&g.classList.add(o),v&&g.classList.add(c),g.setAttribute("role",d>0?"treeitem":"option"),Object.assign(g.dataset,{choice:"",id:l,value:h,selectText:i}),m?(g.classList.add(a),g.dataset.choiceDisabled="",g.setAttribute("aria-disabled","true")):(g.classList.add(r),g.dataset.choiceSelectable=""),g},input:function(e,t){var i=e.input,n=e.inputCloned,s=Object.assign(document.createElement("input"),{type:"text",className:i+" "+n,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return s.setAttribute("role","textbox"),s.setAttribute("aria-autocomplete","list"),s.setAttribute("aria-label",t),s},dropdown:function(e){var t=e.list,i=e.listDropdown,n=document.createElement("div");return n.classList.add(t,i),n.setAttribute("aria-expanded","false"),n},notice:function(e,t,i){var n=e.item,s=e.itemChoice,r=e.noResults,o=e.noChoices;void 0===i&&(i="");var a=[n,s];return"no-choices"===i?a.push(o):"no-results"===i&&a.push(r),Object.assign(document.createElement("div"),{innerHTML:t,className:a.join(" ")})},option:function(e){var t=e.label,i=e.value,n=e.customProperties,s=e.active,r=e.disabled,o=new Option(t,i,!1,s);return n&&(o.dataset.customProperties=n),o.disabled=r,o}},ve=function(e){return void 0===e&&(e=!0),{type:q,active:e}},ge=function(e,t){return{type:$,id:e,highlighted:t}},_e=function(e){var t=e.value,i=e.id,n=e.active,s=e.disabled;return{type:z,value:t,id:i,active:n,disabled:s}},be=function(e){return{type:"SET_IS_LOADING",isLoading:e}};function ye(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ee="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Ie={},Se=function(){var e,t,i;function n(e,t){var i=this;void 0===e&&(e="[data-choice]"),void 0===t&&(t={}),this.config=o.a.all([P,n.defaults.options,t],{arrayMerge:function(e,t){return[].concat(t)}});var s,r,a,c,l=(s=this.config,r=P,a=Object.keys(s).sort(),c=Object.keys(r).sort(),a.filter((function(e){return c.indexOf(e)<0})));l.length&&console.warn("Unknown config option(s) passed",l.join(", "));var h="string"==typeof e?document.querySelector(e):e;if(!(h instanceof HTMLInputElement||h instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement="text"===h.type,this._isSelectOneElement="select-one"===h.type,this._isSelectMultipleElement="select-multiple"===h.type,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto"),t.addItemFilter&&"function"!=typeof t.addItemFilter){var u=t.addItemFilter instanceof RegExp?t.addItemFilter:new RegExp(t.addItemFilter);this.config.addItemFilter=u.test.bind(u)}if(this._isTextElement?this.passedElement=new de({element:h,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new me({element:h,classNames:this.config.classNames,template:function(e){return i._templates.option(e)}}),this.initialised=!1,this._store=new T,this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(e,t){var i=e.id||e.name&&e.name+"-"+b(2)||b(4);return i=t+"-"+(i=i.replace(/(:|\.|\[|\]|,)/g,""))}(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var d=window.getComputedStyle(this.passedElement.element).direction;d!==window.getComputedStyle(document.documentElement).direction&&(this._direction=d)}if(this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach((function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:e.getAttribute("data-custom-properties")})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),void(this.initialised=!0);this.init()}e=n,i=[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return Ie},get templates(){return fe}})}}],(t=null)&&ye(e.prototype,t),i&&ye(e,i);var r=n.prototype;return r.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=O(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},r.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=null,this.initialised=!1)},r.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},r.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},r.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e)return this;var i=e.id,n=e.groupId,s=void 0===n?-1:n,r=e.value,o=void 0===r?"":r,a=e.label,c=void 0===a?"":a,l=s>=0?this._store.getGroupById(s):null;return this._store.dispatch(ge(i,!0)),t&&this.passedElement.triggerEvent(H,{id:i,value:o,label:c,groupValue:l&&l.value?l.value:null}),this},r.unhighlightItem=function(e){if(!e)return this;var t=e.id,i=e.groupId,n=void 0===i?-1:i,s=e.value,r=void 0===s?"":s,o=e.label,a=void 0===o?"":o,c=n>=0?this._store.getGroupById(n):null;return this._store.dispatch(ge(t,!1)),this.passedElement.triggerEvent(H,{id:t,value:r,label:a,groupValue:c&&c.value?c.value:null}),this},r.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},r.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},r.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},r.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},r.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(i){t._removeItem(i),e&&t._triggerChange(i.value)})),this},r.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(D,{})})),this},r.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(M,{})})),this):this},r.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,i){var n=e?i.value:i;return t.push(n),t}),[]);return this._isSelectOneElement?t[0]:t},r.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},r.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},r.setChoices=function(e,t,i,n){var s=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===i&&(i="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can’t be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of ‘value’ field in passed objects");if(n&&this.clearChoices(),"function"==typeof e){var r=e(this);if("function"==typeof Promise&&r instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return s._handleLoadingState(!0)})).then((function(){return r})).then((function(e){return s.setChoices(e,t,i,n)})).catch((function(e){s.config.silent||console.error(e)})).then((function(){return s._handleLoadingState(!1)})).then((function(){return s}));if(!Array.isArray(r))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof r);return this.setChoices(r,t,i,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){e.choices?s._addGroup({id:parseInt(e.id,10)||null,group:e,valueKey:t,labelKey:i}):s._addChoice({value:e[t],label:e[i],isSelected:e.selected,isDisabled:e.disabled,customProperties:e.customProperties,placeholder:e.placeholder})})),this._stopLoading(),this},r.clearChoices=function(){return this._store.dispatch({type:U}),this},r.clearStore=function(){return this._store.dispatch({type:"CLEAR_ALL"}),this},r.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(ve(!0))),this},r._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState)}},r._renderChoices=function(){var e=this,t=this._store,i=t.activeGroups,n=t.activeChoices,s=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),i.length>=1&&!this._isSearching){var r=n.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));r.length>=1&&(s=this._createChoicesFragment(r,s)),s=this._createGroupsFragment(i,n,s)}else n.length>=1&&(s=this._createChoicesFragment(n,s));if(s.childNodes&&s.childNodes.length>0){var o=this._store.activeItems,a=this._canAddItem(o,this.input.value);a.response?(this.choiceList.append(s),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",a.notice))}else{var c,l;this._isSearching?(l="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,c=this._getTemplate("notice",l,"no-results")):(l="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,c=this._getTemplate("notice",l,"no-choices")),this.choiceList.append(c)}},r._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},r._createGroupsFragment=function(e,t,i){var n=this;return void 0===i&&(i=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var s=function(e){return t.filter((function(t){return n._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===n.config.renderSelectedChoices||!t.selected)}))}(e);if(s.length>=1){var r=n._getTemplate("choiceGroup",e);i.appendChild(r),n._createChoicesFragment(s,i,!0)}})),i},r._createChoicesFragment=function(e,t,i){var n=this;void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1);var s=this.config,r=s.renderSelectedChoices,o=s.searchResultLimit,a=s.renderChoiceLimit,c=this._isSearching?w:this.config.sorter,l=function(e){if("auto"!==r||n._isSelectOneElement||!e.selected){var i=n._getTemplate("choice",e,n.config.itemSelectText);t.appendChild(i)}},h=e;"auto"!==r||this._isSelectOneElement||(h=e.filter((function(e){return!e.selected})));var u=h.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),d=u.placeholderChoices,p=u.normalChoices;(this.config.shouldSort||this._isSearching)&&p.sort(c);var m=h.length,f=this._isSelectOneElement?[].concat(d,p):p;this._isSearching?m=o:a&&a>0&&!i&&(m=a);for(var v=0;v<m;v+=1)f[v]&&l(f[v]);return t},r._createItemsFragment=function(e,t){var i=this;void 0===t&&(t=document.createDocumentFragment());var n=this.config,s=n.shouldSortItems,r=n.sorter,o=n.removeItemButton;return s&&!this._isSelectOneElement&&e.sort(r),this._isTextElement?this.passedElement.value=e:this.passedElement.options=e,e.forEach((function(e){var n=i._getTemplate("item",e,o);t.appendChild(n)})),t},r._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(N,{value:e})},r._selectPlaceholderChoice=function(){var e=this._store.placeholderChoice;e&&(this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value))},r._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var i=t.parentNode.getAttribute("data-id"),n=e.find((function(e){return e.id===parseInt(i,10)}));this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},r._handleItemAction=function(e,t,i){var n=this;if(void 0===i&&(i=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var s=t.getAttribute("data-id");e.forEach((function(e){e.id!==parseInt(s,10)||e.highlighted?!i&&e.highlighted&&n.unhighlightItem(e):n.highlightItem(e)})),this.input.focus()}},r._handleChoiceAction=function(e,t){if(e&&t){var i=t.dataset.id,n=this._store.getChoiceById(i);if(n){var s=e[0]&&e[0].keyCode?e[0].keyCode:null,r=this.dropdown.isActive;n.keyCode=s,this.passedElement.triggerEvent(F,{choice:n}),n.selected||n.disabled||this._canAddItem(e,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),r&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},r._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],i=e.some((function(e){return e.highlighted}));this.config.editItems&&!i&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(i||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},r._startLoading=function(){this._store.dispatch(be(!0))},r._stopLoading=function(){this._store.dispatch(be(!1))},r._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild("."+this.config.classNames.placeholder);e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(t)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},r._handleSearch=function(e){if(e&&this.input.isFocussed){var t=this._store.choices,i=this.config,n=i.searchFloor,s=i.searchChoices,r=t.some((function(e){return!e.active}));if(e&&e.length>=n){var o=s?this._searchChoices(e):0;this.passedElement.triggerEvent(j,{value:e,resultCount:o})}else r&&(this._isSearching=!1,this._store.dispatch(ve(!0)))}},r._canAddItem=function(e,t){var i=!0,n="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var s=function(e,t,i){return void 0===i&&(i="value"),e.some((function(e){return"string"==typeof t?e[i]===t.trim():e[i]===t}))}(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(i=!1,n="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&s&&i&&(i=!1,n="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&i&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(i=!1,n="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:i,notice:n}},r._searchChoices=function(e){var t="string"==typeof e?e.trim():e,i="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t===i+" ")return 0;var n=this._store.searchableChoices,r=t,o=[].concat(this.config.searchFields),a=Object.assign(this.config.fuseOptions,{keys:o}),c=new s.a(n,a).search(r);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(function(e){return{type:G,results:e}}(c)),c.length},r._addEventListeners=function(){var e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},r._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},r._onKeyDown=function(e){var t,i=e.target,n=e.keyCode,s=e.ctrlKey,r=e.metaKey,o=this._store.activeItems,a=this.input.isFocussed,c=this.dropdown.isActive,l=this.itemList.hasChildren(),h=String.fromCharCode(n),u=J,d=Y,p=Z,m=Q,f=ee,v=te,g=ie,_=ne,b=se,y=s||r;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(h)&&this.showDropdown();var E=((t={})[m]=this._onAKey,t[p]=this._onEnterKey,t[f]=this._onEscapeKey,t[v]=this._onDirectionKey,t[_]=this._onDirectionKey,t[g]=this._onDirectionKey,t[b]=this._onDirectionKey,t[d]=this._onDeleteKey,t[u]=this._onDeleteKey,t);E[n]&&E[n]({event:e,target:i,keyCode:n,metaKey:r,activeItems:o,hasFocusedInput:a,hasActiveDropdown:c,hasItems:l,hasCtrlDownKeyPressed:y})},r._onKeyUp=function(e){var t=e.target,i=e.keyCode,n=this.input.value,s=this._store.activeItems,r=this._canAddItem(s,n),o=J,a=Y;if(this._isTextElement)if(r.notice&&n){var c=this._getTemplate("notice",r.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var l=(i===o||i===a)&&!t.value,h=!this._isTextElement&&this._isSearching,u=this._canSearch&&r.response;l&&h?(this._isSearching=!1,this._store.dispatch(ve(!0))):u&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},r._onAKey=function(e){var t=e.hasItems;e.hasCtrlDownKeyPressed&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},r._onEnterKey=function(e){var t=e.event,i=e.target,n=e.activeItems,s=e.hasActiveDropdown,r=Z,o=i.hasAttribute("data-button");if(this._isTextElement&&i.value){var a=this.input.value;this._canAddItem(n,a).response&&(this.hideDropdown(!0),this._addItem({value:a}),this._triggerChange(a),this.clearInput())}if(o&&(this._handleButtonAction(n,i),t.preventDefault()),s){var c=this.dropdown.getChild("."+this.config.classNames.highlightedState);c&&(n[0]&&(n[0].keyCode=r),this._handleChoiceAction(n,c)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},r._onEscapeKey=function(e){e.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())},r._onDirectionKey=function(e){var t,i,n,s=e.event,r=e.hasActiveDropdown,o=e.keyCode,a=e.metaKey,c=ie,l=ne,h=se;if(r||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var u,d=o===c||o===h?1:-1;if(a||o===h||o===l)u=d>0?this.dropdown.element.querySelector("[data-choice-selectable]:last-of-type"):this.dropdown.element.querySelector("[data-choice-selectable]");else{var p=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);u=p?function(e,t,i){if(void 0===i&&(i=1),e instanceof Element&&"string"==typeof t){for(var n=(i>0?"next":"previous")+"ElementSibling",s=e[n];s;){if(s.matches(t))return s;s=s[n]}return s}}(p,"[data-choice-selectable]",d):this.dropdown.element.querySelector("[data-choice-selectable]")}u&&(t=u,i=this.choiceList.element,void 0===(n=d)&&(n=1),t&&(n>0?i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=i.scrollTop)||this.choiceList.scrollToChildElement(u,d),this._highlightChoice(u)),s.preventDefault()}},r._onDeleteKey=function(e){var t=e.event,i=e.target,n=e.hasFocusedInput,s=e.activeItems;!n||i.value||this._isSelectOneElement||(this._handleBackspace(s),t.preventDefault())},r._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},r._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},r._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(Ee&&this.choiceList.element.contains(t)){var i=this.choiceList.element.firstElementChild,n="ltr"===this._direction?e.offsetX>=i.offsetWidth:e.offsetX<i.offsetLeft;this._isScrollingOnIe=n}if(t!==this.input.element){var s=t.closest("[data-button],[data-item],[data-choice]");if(s instanceof HTMLElement){var r=e.shiftKey,o=this._store.activeItems,a=s.dataset;"button"in a?this._handleButtonAction(o,s):"item"in a?this._handleItemAction(o,s,r):"choice"in a&&this._handleChoiceAction(o,s)}e.preventDefault()}}},r._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},r._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},r._onFocus=function(e){var t,i=this,n=e.target;this.containerOuter.element.contains(n)&&((t={}).text=function(){n===i.input.element&&i.containerOuter.addFocusState()},t["select-one"]=function(){i.containerOuter.addFocusState(),n===i.input.element&&i.showDropdown(!0)},t["select-multiple"]=function(){n===i.input.element&&(i.showDropdown(!0),i.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},r._onBlur=function(e){var t=this,i=e.target;if(this.containerOuter.element.contains(i)&&!this._isScrollingOnIe){var n,s=this._store.activeItems.some((function(e){return e.highlighted}));((n={}).text=function(){i===t.input.element&&(t.containerOuter.removeFocusState(),s&&t.unhighlightAll(),t.hideDropdown(!0))},n["select-one"]=function(){t.containerOuter.removeFocusState(),(i===t.input.element||i===t.containerOuter.element&&!t._canSearch)&&t.hideDropdown(!0)},n["select-multiple"]=function(){i===t.input.element&&(t.containerOuter.removeFocusState(),t.hideDropdown(!0),s&&t.unhighlightAll())},n)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},r._onFormReset=function(){this._store.dispatch({type:"RESET_TO",state:this._initialState})},r._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(i.length){var n=e;Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState)).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),n?this._highlightPosition=i.indexOf(n):(n=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||(n=i[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(B,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},r._addItem=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,s=e.choiceId,r=void 0===s?-1:s,o=e.groupId,a=void 0===o?-1:o,c=e.customProperties,l=void 0===c?null:c,h=e.placeholder,u=void 0!==h&&h,d=e.keyCode,p=void 0===d?null:d,m="string"==typeof t?t.trim():t,f=p,v=l,g=this._store.items,_=n||m,b=r||-1,y=a>=0?this._store.getGroupById(a):null,E=g?g.length+1:1;return this.config.prependValue&&(m=this.config.prependValue+m.toString()),this.config.appendValue&&(m+=this.config.appendValue.toString()),this._store.dispatch(function(e){var t=e.value,i=e.label,n=e.id,s=e.choiceId,r=e.groupId,o=e.customProperties,a=e.placeholder,c=e.keyCode;return{type:W,value:t,label:i,id:n,choiceId:s,groupId:r,customProperties:o,placeholder:a,keyCode:c}}({value:m,label:_,id:E,choiceId:b,groupId:a,customProperties:l,placeholder:u,keyCode:f})),this._isSelectOneElement&&this.removeActiveItems(E),this.passedElement.triggerEvent(K,{id:E,value:m,label:_,customProperties:v,groupValue:y&&y.value?y.value:void 0,keyCode:f}),this},r._removeItem=function(e){if(!e||!E("Object",e))return this;var t=e.id,i=e.value,n=e.label,s=e.choiceId,r=e.groupId,o=r>=0?this._store.getGroupById(r):null;return this._store.dispatch(function(e,t){return{type:X,id:e,choiceId:t}}(t,s)),o&&o.value?this.passedElement.triggerEvent(R,{id:t,value:i,label:n,groupValue:o.value}):this.passedElement.triggerEvent(R,{id:t,value:i,label:n}),this},r._addChoice=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,s=e.isSelected,r=void 0!==s&&s,o=e.isDisabled,a=void 0!==o&&o,c=e.groupId,l=void 0===c?-1:c,h=e.customProperties,u=void 0===h?null:h,d=e.placeholder,p=void 0!==d&&d,m=e.keyCode,f=void 0===m?null:m;if(null!=t){var v=this._store.choices,g=n||t,_=v?v.length+1:1,b=this._baseId+"-"+this._idNames.itemChoice+"-"+_;this._store.dispatch(function(e){var t=e.value,i=e.label,n=e.id,s=e.groupId,r=e.disabled,o=e.elementId,a=e.customProperties,c=e.placeholder,l=e.keyCode;return{type:V,value:t,label:i,id:n,groupId:s,disabled:r,elementId:o,customProperties:a,placeholder:c,keyCode:l}}({id:_,groupId:l,elementId:b,value:t,label:g,disabled:a,customProperties:u,placeholder:p,keyCode:f})),r&&this._addItem({value:t,label:g,choiceId:_,customProperties:u,placeholder:p,keyCode:f})}},r._addGroup=function(e){var t=this,i=e.group,n=e.id,s=e.valueKey,r=void 0===s?"value":s,o=e.labelKey,a=void 0===o?"label":o,c=E("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION")),l=n||Math.floor((new Date).valueOf()*Math.random()),h=!!i.disabled&&i.disabled;c?(this._store.dispatch(_e({value:i.label,id:l,active:!0,disabled:h})),c.forEach((function(e){var i=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[r],label:E("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:i,groupId:l,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch(_e({value:i.label,id:i.id,active:!1,disabled:i.disabled}))},r._getTemplate=function(e){var t;if(!e)return null;for(var i=this.config.classNames,n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return(t=this._templates[e]).call.apply(t,[this,i].concat(s))},r._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,S)),this._templates=o()(fe,t)},r._createElements=function(){this.containerOuter=new re({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new re({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new ae({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new ce({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new ce({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new k({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},r._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},r._addPredefinedGroups=function(e){var t=this,i=this.passedElement.placeholderOption;i&&"SELECT"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},r._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var i=e.some((function(e){return e.selected})),n=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,s){var r=e.value,o=e.label,a=e.customProperties,c=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var l=!(!t._isSelectOneElement||i||s!==n)||e.selected,h=e.disabled;t._addChoice({value:r,label:o,isSelected:l,isDisabled:h,customProperties:a,placeholder:c})}else t._addChoice({value:r,label:o,isSelected:e.selected,isDisabled:e.disabled,customProperties:a,placeholder:c})}))},r._addPredefinedItems=function(e){var t=this;e.forEach((function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})}))},r._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[y(e).toLowerCase()]()},r._findAndSelectChoiceByValue=function(e){var t=this,i=this._store.choices.find((function(i){return t.config.valueComparer(i.value,e)}));i&&!i.selected&&this._addItem({value:i.value,label:i.label,choiceId:i.id,groupId:i.groupId,customProperties:i.customProperties,placeholder:i.placeholder,keyCode:i.keyCode})},r._generatePlaceholderValue=function(){if(this._isSelectElement){var e=this.passedElement.placeholderOption;return!!e&&e.text}var t=this.config,i=t.placeholder,n=t.placeholderValue,s=this.passedElement.element.dataset;if(i){if(n)return n;if(s.placeholder)return s.placeholder}return!1},n}();t.default=Se}]).default},"object"==typeof i&&"object"==typeof t?t.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof i?i.Choices=s():n.Choices=s()},n”, ” 411: function _(n,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=n(1);n(67),i.__importStar(n(66)).styles.append(".bk-root {\n /*===============================\n= Choices =\n===============================/\n /===== End of Choices ======/\n}\n.bk-root .choices {\n position: relative;\n margin-bottom: 24px;\n font-size: 16px;\n}\n.bk-root .choices:focus {\n outline: none;\n}\n.bk-root .choices:last-child {\n margin-bottom: 0;\n}\n.bk-root .choices.is-disabled .choices__inner,\n.bk-root .choices.is-disabled .choices__input {\n background-color: #eaeaea;\n cursor: not-allowed;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.bk-root .choices.is-disabled .choices__item {\n cursor: not-allowed;\n}\n.bk-root .choices [hidden] {\n display: none !important;\n}\n.bk-root .choices[data-type*=’select-one’] {\n cursor: pointer;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__inner {\n padding-bottom: 7.5px;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__input {\n display: block;\n width: 100%;\n padding: 10px;\n border-bottom: 1px solid #dddddd;\n background-color: #ffffff;\n margin: 0;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n padding: 0;\n background-size: 8px;\n position: absolute;\n top: 50%;\n right: 0;\n margin-top: -10px;\n margin-right: 25px;\n height: 20px;\n width: 20px;\n border-radius: 10em;\n opacity: 0.5;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button:hover,\n.bk-root .choices[data-type*=’select-one’] .choices__button:focus {\n opacity: 1;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button:focus {\n box-shadow: 0px 0px 0px 2px #00bcd4;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__item[data-value=’’] .choices__button {\n display: none;\n}\n.bk-root .choices[data-type*=’select-one’]:after {\n content: ‘’;\n height: 0;\n width: 0;\n border-style: solid;\n border-color: #333333 transparent transparent transparent;\n border-width: 5px;\n position: absolute;\n right: 11.5px;\n top: 50%;\n margin-top: -2.5px;\n pointer-events: none;\n}\n.bk-root .choices[data-type*=’select-one’].is-open:after {\n border-color: transparent transparent #333333 transparent;\n margin-top: -7.5px;\n}\n.bk-root .choices[data-type*=’select-one’][dir=’rtl’]:after {\n left: 11.5px;\n right: auto;\n}\n.bk-root .choices[data-type*=’select-one’][dir=’rtl’] .choices__button {\n right: auto;\n left: 0;\n margin-left: 25px;\n margin-right: 0;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__inner,\n.bk-root .choices[data-type*=’text’] .choices__inner {\n cursor: text;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__button,\n.bk-root .choices[data-type*=’text’] .choices__button {\n position: relative;\n display: inline-block;\n margin-top: 0;\n margin-right: -4px;\n margin-bottom: 0;\n margin-left: 8px;\n padding-left: 16px;\n border-left: 1px solid #008fa1;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n background-size: 8px;\n width: 8px;\n line-height: 1;\n opacity: 0.75;\n border-radius: 0;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__button:hover,\n.bk-root .choices[data-type*=’select-multiple’] .choices__button:focus,\n.bk-root .choices[data-type*=’text’] .choices__button:hover,\n.bk-root .choices[data-type*=’text’] .choices__button:focus {\n opacity: 1;\n}\n.bk-root .choices__inner {\n display: inline-block;\n vertical-align: top;\n width: 100%;\n background-color: #f9f9f9;\n padding: 7.5px 7.5px 3.75px;\n border: 1px solid #dddddd;\n border-radius: 2.5px;\n font-size: 14px;\n min-height: 44px;\n overflow: hidden;\n}\n.bk-root .is-focused .choices__inner,\n.bk-root .is-open .choices__inner {\n border-color: #b7b7b7;\n}\n.bk-root .is-open .choices__inner {\n border-radius: 2.5px 2.5px 0 0;\n}\n.bk-root .is-flipped.is-open .choices__inner {\n border-radius: 0 0 2.5px 2.5px;\n}\n.bk-root .choices__list {\n margin: 0;\n padding-left: 0;\n list-style: none;\n}\n.bk-root .choices__list–single {\n display: inline-block;\n padding: 4px 16px 4px 4px;\n width: 100%;\n}\n.bk-root [dir=’rtl’] .choices__list–single {\n padding-right: 4px;\n padding-left: 16px;\n}\n.bk-root .choices__list–single .choices__item {\n width: 100%;\n}\n.bk-root .choices__list–multiple {\n display: inline;\n}\n.bk-root .choices__list–multiple .choices__item {\n display: inline-block;\n vertical-align: middle;\n border-radius: 20px;\n padding: 4px 10px;\n font-size: 12px;\n font-weight: 500;\n margin-right: 3.75px;\n margin-bottom: 3.75px;\n background-color: #00bcd4;\n border: 1px solid #00a5bb;\n color: #ffffff;\n word-break: break-all;\n box-sizing: border-box;\n}\n.bk-root .choices__list–multiple .choices__item[data-deletable] {\n padding-right: 5px;\n}\n.bk-root [dir=’rtl’] .choices__list–multiple .choices__item {\n margin-right: 0;\n margin-left: 3.75px;\n}\n.bk-root .choices__list–multiple .choices__item.is-highlighted {\n background-color: #00a5bb;\n border: 1px solid #008fa1;\n}\n.bk-root .is-disabled .choices__list–multiple .choices__item {\n background-color: #aaaaaa;\n border: 1px solid #919191;\n}\n.bk-root .choices__list–dropdown {\n visibility: hidden;\n z-index: 1;\n position: absolute;\n width: 100%;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n top: 100%;\n margin-top: -1px;\n border-bottom-left-radius: 2.5px;\n border-bottom-right-radius: 2.5px;\n overflow: hidden;\n word-break: break-all;\n will-change: visibility;\n}\n.bk-root .choices__list–dropdown.is-active {\n visibility: visible;\n}\n.bk-root .is-open .choices__list–dropdown {\n border-color: #b7b7b7;\n}\n.bk-root .is-flipped .choices__list–dropdown {\n top: auto;\n bottom: 100%;\n margin-top: 0;\n margin-bottom: -1px;\n border-radius: 0.25rem 0.25rem 0 0;\n}\n.bk-root .choices__list–dropdown .choices__list {\n position: relative;\n max-height: 300px;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n will-change: scroll-position;\n}\n.bk-root .choices__list–dropdown .choices__item {\n position: relative;\n padding: 10px;\n font-size: 14px;\n}\n.bk-root [dir=’rtl’] .choices__list–dropdown .choices__item {\n text-align: right;\n}\n@media (min-width: 640px) {\n .bk-root .choices__list–dropdown .choices__item–selectable {\n padding-right: 100px;\n }\n .bk-root .choices__list–dropdown .choices__item–selectable:after {\n content: attr(data-select-text);\n font-size: 12px;\n opacity: 0;\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n }\n .bk-root [dir=’rtl’] .choices__list–dropdown .choices__item–selectable {\n text-align: right;\n padding-left: 100px;\n padding-right: 10px;\n }\n .bk-root [dir=’rtl’] .choices__list–dropdown .choices__item–selectable:after {\n right: auto;\n left: 10px;\n }\n}\n.bk-root .choices__list–dropdown .choices__item–selectable.is-highlighted {\n background-color: #f2f2f2;\n}\n.bk-root .choices__list–dropdown .choices__item–selectable.is-highlighted:after {\n opacity: 0.5;\n}\n.bk-root .choices__item {\n cursor: default;\n}\n.bk-root .choices__item–selectable {\n cursor: pointer;\n}\n.bk-root .choices__item–disabled {\n cursor: not-allowed;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n opacity: 0.5;\n}\n.bk-root .choices__heading {\n font-weight: 600;\n font-size: 12px;\n padding: 10px;\n border-bottom: 1px solid #f7f7f7;\n color: gray;\n}\n.bk-root .choices__button {\n text-indent: -9999px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n cursor: pointer;\n}\n.bk-root .choices__button:focus {\n outline: none;\n}\n.bk-root .choices__input {\n display: inline-block;\n vertical-align: baseline;\n background-color: #f9f9f9;\n font-size: 14px;\n margin-bottom: 5px;\n border: 0;\n border-radius: 0;\n max-width: 100%;\n padding: 4px 0 4px 2px;\n}\n.bk-root .choices__input:focus {\n outline: 0;\n}\n.bk-root [dir=’rtl’] .choices__input {\n padding-right: 2px;\n padding-left: 0;\n}\n.bk-root .choices__placeholder {\n opacity: 0.5;\n}\n.bk-root .choices {\n width: 100%;\n}\n.bk-root .choices__inner .choices__item.light {\n background-color: rgba(0, 126, 255, 0.08);\n border-radius: 5px;\n border: 1px solid rgba(0, 126, 255, 0.24);\n color: #007eff;\n}\n.bk-root .choices__inner .choices__item.solid {\n background-color: #1f77b4;\n border: none;\n border-radius: 5px;\n color: white;\n}\n.bk-root .choices__inner .choices__item.solid .is-highlighted {\n background-color: #1f77b4;\n border: none;\n}\n.bk-root .choices__input {\n background-color: transparent;\n}\n.bk-root .choices__inner {\n background: transparent;\n border: 1px solid darkgray;\n border-radius: 5px;\n min-height: unset;\n}\n.bk-root .choices__list {\n white-space: initial;\n}\n.bk-root .choices[data-type*=select-multiple] .choices__button.light {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDA3ZWZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n}\n.bk-root .choices[data-type*=select-multiple] .choices__button.solid {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjZmZmZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n border-left: 1px solid white;\n opacity: 1;\n}\n")},n”, ” 412: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const s=e(402),i=e(66);class n extends s.MarkupView{render(){super.render();const e=i.pre({style:{overflow:"auto"}},this.model.text);this.markup_el.appendChild(e)}}r.PreTextView=n,n.__name__="PreTextView";class _ extends s.Markup{constructor(e){super(e)}static init_PreText(){this.prototype.default_view=n}}r.PreText=_,_.__name__="PreText",_.init_PreText()},n”, ” 413: function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),a=t(388),n=t(66),u=i.__importStar(t(19)),s=t(145);class _ extends a.ButtonGroupView{change_active(t){this.model.active!==t&&(this.model.active=t)}_update_active(){const{active:t}=this.model;this._buttons.forEach((o,e)=>{n.classes(o).toggle(s.bk_active,t===e)})}}e.RadioButtonGroupView=_,_.__name__="RadioButtonGroupView";class c extends a.ButtonGroup{constructor(t){super(t)}static init_RadioButtonGroup(){this.prototype.default_view=_,this.define({active:[u.Any,null]})}}e.RadioButtonGroup=c,c.__name__="RadioButtonGroup",c.init_RadioButtonGroup()},n”, ” 414: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),a=e(66),o=e(26),d=n.__importStar(e(19)),s=e(390),l=e(145),r=e(385);class p extends s.InputGroupView{render(){super.render();const e=a.div({class:[r.bk_input_group,this.model.inline?l.bk_inline:null]});this.el.appendChild(e);const i=o.uniqueId(),{active:t,labels:n}=this.model;for(let o=0;o<n.length;o++){const d=a.input({type:"radio",name:i,value:${o}});d.addEventListener("change",()=>this.change_active(o)),this.model.disabled&&(d.disabled=!0),o==t&&(d.checked=!0);const s=a.label({},d,a.span({},n[o]));e.appendChild(s)}}change_active(e){this.model.active=e}}t.RadioGroupView=p,p.__name__="RadioGroupView";class u extends s.InputGroup{constructor(e){super(e)}static init_RadioGroup(){this.prototype.default_view=p,this.define({active:[d.Number],labels:[d.Array,[]],inline:[d.Boolean,!1]})}}t.RadioGroup=u,u.__name__="RadioGroup",u.init_RadioGroup()},n”, ” 415: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1).__importStar(e(159)),a=e(396),n=e(8);class o extends a.AbstractRangeSliderView{}r.RangeSliderView=o,o.__name__="RangeSliderView";class s extends a.AbstractSlider{constructor(e){super(e),this.behaviour="drag",this.connected=[!1,!0,!1]}static init_RangeSlider(){this.prototype.default_view=o,this.override({format:"0[.]00"})}_formatter(e,t){return n.isString(t)?i.format(e,t):t.doFormat([e],{loc:0})[0]}}r.RangeSlider=s,s.__name__="RangeSlider",s.init_RangeSlider()},n”, ” 416: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(66),l=e(8),o=e(70),c=i.__importStar(e(19)),d=e(384),a=e(385);class r extends d.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}build_options(e){return e.map(e=>{let t,s;l.isString(e)?t=s=e:[t,s]=e;const i=this.model.value==t;return n.option({selected:i,value:t},s)})}render(){let e;if(super.render(),l.isArray(this.model.options))e=this.build_options(this.model.options);else{e=[];const t=this.model.options;for(const s in t){const i=t[s];e.push(n.optgroup({label:s},this.build_options(i)))}}this.select_el=n.select({class:a.bk_input,id:this.model.id,name:this.model.name,disabled:this.model.disabled},e),this.select_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.select_el)}change_input(){const e=this.select_el.value;o.logger.debug(selectbox: value = ${e}),this.model.value=e,super.change_input()}}s.SelectView=r,r.__name__="SelectView";class u extends d.InputWidget{constructor(e){super(e)}static init_Select(){this.prototype.default_view=r,this.define({value:[c.String,""],options:[c.Any,[]]})}}s.Select=u,u.__name__="Select",u.init_Select()},n”, ” 417: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1).__importStar(e(159)),o=e(396),s=e(8);class _ extends o.AbstractSliderView{}r.SliderView=_,_.__name__="SliderView";class a extends o.AbstractSlider{constructor(e){super(e),this.behaviour="tap",this.connected=[!0,!1]}static init_Slider(){this.prototype.default_view=_,this.override({format:"0[.]00"})}_formatter(e,t){return s.isString(t)?i.format(e,t):t.doFormat([e],{loc:0})[0]}}r.Slider=a,a.__name__="Slider",a.init_Slider()},n”, ” 418: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(384),l=e(66),h=n.__importStar(e(19)),o=e(385),{floor:p,max:d,min:u}=Math;function r(e){return p(e)!==e?e.toFixed(16).replace(/0+$/,"").split(".")[1].length:0}class a extends s.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.low.change,()=>{const{low:e}=this.model;null!=e&&(this.input_el.min=e.toFixed(16))}),this.connect(this.model.properties.high.change,()=>{const{high:e}=this.model;null!=e&&(this.input_el.max=e.toFixed(16))}),this.connect(this.model.properties.step.change,()=>{const{step:e}=this.model;this.input_el.step=e.toFixed(16)}),this.connect(this.model.properties.value.change,()=>{const{value:e,step:t}=this.model;this.input_el.value=e.toFixed(r(t)).replace(/(\.[0-9]*[1-9])0+$|\.0*$/,"$1")}),this.connect(this.model.properties.disabled.change,()=>{this.input_el.disabled=this.model.disabled})}render(){super.render(),this.input_el=l.input({type:"number",class:o.bk_input,name:this.model.name,min:this.model.low,max:this.model.high,value:this.model.value,step:this.model.step,disabled:this.model.disabled}),this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){if(this.input_el.value){const{step:e}=this.model;let t=Number(this.input_el.value);null!=this.model.low&&(t=d(t,this.model.low)),null!=this.model.high&&(t=u(t,this.model.high)),this.model.value=Number(t.toFixed(r(e))),super.change_input()}}}i.SpinnerView=a,a.__name__="SpinnerView";class c extends s.InputWidget{constructor(e){super(e)}static init_Spinner(){this.prototype.default_view=a,this.define({value:[h.Number,0],low:[h.Number,null],high:[h.Number,null],step:[h.Number,1]})}}i.Spinner=c,c.__name__="Spinner",c.init_Spinner()},n”, ” 419: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(383),l=e(384),h=e(66),o=s.__importStar(e(19)),a=e(385);class p extends l.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.value.change,()=>this.input_el.value=this.model.value),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled),this.connect(this.model.properties.placeholder.change,()=>this.input_el.placeholder=this.model.placeholder),this.connect(this.model.properties.rows.change,()=>this.input_el.rows=this.model.rows),this.connect(this.model.properties.cols.change,()=>this.input_el.cols=this.model.cols),this.connect(this.model.properties.max_length.change,()=>this.input_el.maxLength=this.model.max_length)}render(){super.render(),this.input_el=h.textarea({class:a.bk_input,name:this.model.name,disabled:this.model.disabled,placeholder:this.model.placeholder,cols:this.model.cols,rows:this.model.rows,maxLength:this.model.max_length}),this.input_el.textContent=this.model.value,this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){this.model.value=this.input_el.value,super.change_input()}}i.TextAreaInputView=p,p.__name__="TextAreaInputView";class r extends n.TextInput{constructor(e){super(e)}static init_TextAreaInput(){this.prototype.default_view=p,this.define({cols:[o.Number,20],rows:[o.Number,2],max_length:[o.Number,500]})}}i.TextAreaInput=r,r.__name__="TextAreaInput",r.init_TextAreaInput()},n”, ” 420: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),c=e(378),o=e(66),a=s.__importStar(e(19)),n=e(145);class l extends c.AbstractButtonView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._update_active())}render(){super.render(),this._update_active()}click(){this.model.active=!this.model.active,super.click()}_update_active(){o.classes(this.button_el).toggle(n.bk_active,this.model.active)}}i.ToggleView=l,l.__name__="ToggleView";class _ extends c.AbstractButton{constructor(e){super(e)}static init_Toggle(){this.prototype.default_view=l,this.define({active:[a.Boolean,!1]}),this.override({label:"Toggle"})}}i.Toggle=_,_.__name__="Toggle",_.init_Toggle()},n”, ” }, 376, {"models/widgets/main":376,"models/widgets/index":377,"models/widgets/abstract_button":378,"models/widgets/control":379,"models/widgets/widget":441,"models/widgets/abstract_icon":381,"models/widgets/autocomplete_input":382,"models/widgets/text_input":383,"models/widgets/input_widget":384,"styles/widgets/inputs":385,"models/widgets/button":386,"models/widgets/checkbox_button_group":387,"models/widgets/button_group":388,"models/widgets/checkbox_group":389,"models/widgets/input_group":390,"models/widgets/color_picker":391,"models/widgets/date_picker":392,"styles/widgets/flatpickr":394,"models/widgets/date_range_slider":395,"models/widgets/abstract_slider":396,"styles/widgets/sliders":398,"styles/widgets/nouislider":399,"models/widgets/date_slider":400,"models/widgets/div":401,"models/widgets/markup":402,"styles/clearfix":403,"models/widgets/dropdown":404,"models/widgets/file_input":405,"models/widgets/multiselect":406,"models/widgets/paragraph":407,"models/widgets/password_input":408,"models/widgets/multichoice":409,"styles/widgets/choices":411,"models/widgets/pretext":412,"models/widgets/radio_button_group":413,"models/widgets/radio_group":414,"models/widgets/range_slider":415,"models/widgets/selectbox":416,"models/widgets/slider":417,"models/widgets/spinner":418,"models/widgets/textarea_input":419,"models/widgets/toggle":420}, {});n”, ” })n”, “n”, “n”, ” /* END bokeh-widgets.min.js /n”, ” },n”, ” n”, ” function(Bokeh) {n”, ” / BEGIN bokeh-tables.min.js /n”, ” /!n”, ” * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn”, ” * All rights reserved.n”, ” * n”, ” * Redistribution and use in source and binary forms, with or without modification,n”, ” * are permitted provided that the following conditions are met:n”, ” * n”, ” * Redistributions of source code must retain the above copyright notice,n”, ” * this list of conditions and the following disclaimer.n”, ” * n”, ” * Redistributions in binary form must reproduce the above copyright notice,n”, ” * this list of conditions and the following disclaimer in the documentationn”, ” * and/or other materials provided with the distribution.n”, ” * n”, ” * Neither the name of Anaconda nor the names of any contributorsn”, ” * may be used to endorse or promote products derived from this softwaren”, ” * without specific prior written permission.n”, ” * n”, ” * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n”, ” * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn”, ” * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn”, ” * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn”, ” * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn”, ” * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn”, ” * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn”, ” * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn”, ” * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n”, ” * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn”, ” * THE POSSIBILITY OF SUCH DAMAGE.n”, ” /n”, ” (function(root, factory) {n”, ” factory(root["Bokeh"], "2.0.2");n”, ” })(this, function(Bokeh, version) {n”, ” var define;n”, ” return (function(modules, entry, aliases, externals) {n”, ” const bokeh = typeof Bokeh !== "undefined" && (version != null ? Bokeh[version] : Bokeh);n”, ” if (bokeh != null) {n”, ” return bokeh.register_plugin(modules, entry, aliases);n”, ” } else {n”, ” throw new Error("Cannot find Bokeh " + version + ". You have to load it prior to loading plugins.");n”, ” }n”, ” })n”, ” ({n”, ” 421: function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1).__importStar(e(422));o.Tables=r,e(7).register_models(r)},n”, ” 422: function _(a,g,r){Object.defineProperty(r,"__esModule",{value:!0});const e=a(1);e.__exportStar(a(423),r),e.__exportStar(a(444),r);var t=a(424);r.DataTable=t.DataTable;var o=a(447);r.TableColumn=o.TableColumn;var n=a(440);r.TableWidget=n.TableWidget;var u=a(448);r.AvgAggregator=u.AvgAggregator,r.MinAggregator=u.MinAggregator,r.MaxAggregator=u.MaxAggregator,r.SumAggregator=u.SumAggregator;var l=a(449);r.GroupingInfo=l.GroupingInfo,r.DataCube=l.DataCube},n”, ” 423: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1).__importStar(e(19)),r=e(66),a=e(64),n=e(69),l=e(424),u=e(442);class d extends a.DOMView{constructor(e){super(Object.assign({model:e.column.model},e)),this.args=e,this.initialize(),this.render()}get emptyValue(){return null}initialize(){super.initialize(),this.inputEl=this._createInput(),this.defaultValue=null}async lazy_initialize(){throw new Error("unsupported")}css_classes(){return super.css_classes().concat(u.bk_cell_editor)}render(){super.render(),this.args.container.append(this.el),this.el.appendChild(this.inputEl),this.renderEditor(),this.disableNavigation()}renderEditor(){}disableNavigation(){this.inputEl.addEventListener("keydown",e=>{switch(e.keyCode){case r.Keys.Left:case r.Keys.Right:case r.Keys.Up:case r.Keys.Down:case r.Keys.PageUp:case r.Keys.PageDown:e.stopImmediatePropagation()}})}destroy(){this.remove()}focus(){this.inputEl.focus()}show(){}hide(){}position(){}getValue(){return this.inputEl.value}setValue(e){this.inputEl.value=e}serializeValue(){return this.getValue()}isValueChanged(){return!(""==this.getValue()&&null==this.defaultValue)&&this.getValue()!==this.defaultValue}applyValue(e,t){const i=this.args.grid.getData(),s=i.index.indexOf(e[l.DTINDEX_NAME]);i.setField(s,this.args.column.field,t)}loadValue(e){const t=e[this.args.column.field];this.defaultValue=null!=t?t:this.emptyValue,this.setValue(this.defaultValue)}validateValue(e){if(this.args.column.validator){const t=this.args.column.validator(e);if(!t.valid)return t}return{valid:!0,msg:null}}validate(){return this.validateValue(this.getValue())}}i.CellEditorView=d,d.__name__="CellEditorView";class o extends n.Model{}i.CellEditor=o,o.__name__="CellEditor";class _ extends d{get emptyValue(){return""}_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}}i.StringEditorView=_,_.__name__="StringEditorView";class c extends o{static init_StringEditor(){this.prototype.default_view=_,this.define({completions:[s.Array,[]]})}}i.StringEditor=c,c.__name__="StringEditor",c.init_StringEditor();class p extends d{_createInput(){return r.textarea()}}i.TextEditorView=p,p.__name__="TextEditorView";class h extends o{static init_TextEditor(){this.prototype.default_view=p}}i.TextEditor=h,h.__name__="TextEditor",h.init_TextEditor();class E extends d{_createInput(){return r.select()}renderEditor(){for(const e of this.model.options)this.inputEl.appendChild(r.option({value:e},e));this.focus()}}i.SelectEditorView=E,E.__name__="SelectEditorView";class V extends o{static init_SelectEditor(){this.prototype.default_view=E,this.define({options:[s.Array,[]]})}}i.SelectEditor=V,V.__name__="SelectEditor",V.init_SelectEditor();class m extends d{_createInput(){return r.input({type:"text"})}}i.PercentEditorView=m,m.__name__="PercentEditorView";class f extends o{static init_PercentEditor(){this.prototype.default_view=m}}i.PercentEditor=f,f.__name__="PercentEditor",f.init_PercentEditor();class x extends d{_createInput(){return r.input({type:"checkbox",value:"true"})}renderEditor(){this.focus()}loadValue(e){this.defaultValue=!!e[this.args.column.field],this.inputEl.checked=this.defaultValue}serializeValue(){return this.inputEl.checked}}i.CheckboxEditorView=x,x.__name__="CheckboxEditorView";class w extends o{static init_CheckboxEditor(){this.prototype.default_view=x}}i.CheckboxEditor=w,w.__name__="CheckboxEditor",w.init_CheckboxEditor();class g extends d{_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){return parseInt(this.getValue(),10)||0}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return isNaN(e)?{valid:!1,msg:"Please enter a valid integer"}:super.validateValue(e)}}i.IntEditorView=g,g.__name__="IntEditorView";class v extends o{static init_IntEditor(){this.prototype.default_view=g,this.define({step:[s.Number,1]})}}i.IntEditor=v,v.__name__="IntEditor",v.init_IntEditor();class y extends d{_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){return parseFloat(this.getValue())||0}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return isNaN(e)?{valid:!1,msg:"Please enter a valid number"}:super.validateValue(e)}}i.NumberEditorView=y,y.__name__="NumberEditorView";class b extends o{static init_NumberEditor(){this.prototype.default_view=y,this.define({step:[s.Number,.01]})}}i.NumberEditor=b,b.__name__="NumberEditor",b.init_NumberEditor();class I extends d{_createInput(){return r.input({type:"text"})}}i.TimeEditorView=I,I.__name__="TimeEditorView";class N extends o{static init_TimeEditor(){this.prototype.default_view=I}}i.TimeEditor=N,N.__name__="TimeEditor",N.init_TimeEditor();class C extends d{_createInput(){return r.input({type:"text"})}get emptyValue(){return new Date}renderEditor(){this.inputEl.focus(),this.inputEl.select()}destroy(){super.destroy()}show(){super.show()}hide(){super.hide()}position(){return super.position()}getValue(){}setValue(e){}}i.DateEditorView=C,C.__name__="DateEditorView";class D extends o{static init_DateEditor(){this.prototype.default_view=C}}i.DateEditor=D,D.__name__="DateEditor",D.init_DateEditor()},n”, ” 424: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),o=e(425),n=e(429),l=e(430),r=e(431),d=s.__importStar(e(19)),a=e(26),h=e(8),c=e(9),u=e(24),_=e(70),m=e(187),g=e(440),p=e(441),b=e(442);i.DTINDEX_NAME="__bkdt_internal_index__";class w{constructor(e,t){this.init(e,t)}init(e,t){if(i.DTINDEX_NAME in e.data)throw new Error(`special name ${i.DTINDEX_NAME} cannot be used as a data table column`);this.source=e,this.view=t,this.index=this.view.indices}getLength(){return this.index.length}getItem(e){const t={};for(const i of u.keys(this.source.data))t[i]=this.source.data[i][this.index[e]];return t[i.DTINDEX_NAME]=this.index[e],t}getField(e,t){return t==i.DTINDEX_NAME?this.index[e]:this.source.data[t][this.index[e]]}setField(e,t,i){const s=this.index[e];this.source.patch({[t]:[[s,i]]})}getItemMetadata(e){return null}getRecords(){return c.range(0,this.getLength()).map(e=>this.getItem(e))}sort(e){let t=e.map(e=>[e.sortCol.field,e.sortAsc?1:-1]);0==t.length&&(t=[[i.DTINDEX_NAME,1]]);const s=this.getRecords(),o=this.index.slice();this.index.sort((function(e,i){for(const[n,l]of t){const t=s[o.indexOf(e)][n],r=s[o.indexOf(i)][n],d=t==r?0:t>r?l:-l;if(0!=d)return d}return 0}))}}i.TableDataProvider=w,w.__name__="TableDataProvider";class x extends p.WidgetView{constructor(){super(…arguments),this._in_selection_update=!1,this._warned_not_reorderable=!1}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.source.streaming,()=>this.updateGrid()),this.connect(this.model.source.patching,()=>this.updateGrid()),this.connect(this.model.source.change,()=>this.updateGrid()),this.connect(this.model.source.properties.data.change,()=>this.updateGrid()),this.connect(this.model.source.selected.change,()=>this.updateSelection()),this.connect(this.model.source.selected.properties.indices.change,()=>this.updateSelection())}_update_layout(){this.layout=new m.LayoutItem,this.layout.set_sizing(this.box_sizing())}update_position(){super.update_position(),this.grid.resizeCanvas()}updateGrid(){if(this.model.view.compute_indices(),this.data.init(this.model.source,this.model.view),this.model.sortable){const e=this.grid.getColumns(),t=this.grid.getSortColumns().map(t=>({sortCol:{field:e[this.grid.getColumnIndex(t.columnId)].field},sortAsc:t.sortAsc}));this.data.sort(t)}this.grid.invalidate(),this.grid.render()}updateSelection(){if(this._in_selection_update)return;const{selected:e}=this.model.source,t=e.indices.map(e=>this.data.index.indexOf(e)).sort();this._in_selection_update=!0,this.grid.setSelectedRows(t),this._in_selection_update=!1;const i=this.grid.getViewport(),s=this.model.get_scroll_index(i,t);null!=s&&this.grid.scrollRowToTop(s)}newIndexColumn(){return{id:a.uniqueId(),name:this.model.index_header,field:i.DTINDEX_NAME,width:this.model.index_width,behavior:"select",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:b.bk_cell_index,headerCssClass:b.bk_header_index}}css_classes(){return super.css_classes().concat(b.bk_data_table)}render(){let e,t=this.model.columns.map(e=>e.toColumn());if("checkbox"==this.model.selectable&&(e=new n.CheckboxSelectColumn({cssClass:b.bk_cell_select}),t.unshift(e.getColumnDefinition())),null!=this.model.index_position){const e=this.model.index_position,i=this.newIndexColumn();-1==e?t.push(i):e<-1?t.splice(e+1,0,i):t.splice(e,0,i)}let{reorderable:i}=this.model;!i||"undefined"!=typeof $&&null!=$.fn&&null!=$.fn.sortable||(this._warned_not_reorderable||(_.logger.warn("jquery-ui is required to enable DataTable.reorderable"),this._warned_not_reorderable=!0),i=!1);const s={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:i,forceFitColumns:this.model.fit_columns,multiColumnSort:this.model.sortable,editable:this.model.editable,autoEdit:!1,rowHeight:this.model.row_height};if(this.data=new w(this.model.source,this.model.view),this.grid=new r.Grid(this.el,this.data,t,s),this.grid.onSort.subscribe((e,i)=>{this.model.sortable&&(t=i.sortCols,this.data.sort(t),this.grid.invalidate(),this.updateSelection(),this.grid.render(),this.model.header_row||this._hide_header(),this.model.update_sort_columns(t))}),!1!==this.model.selectable){this.grid.setSelectionModel(new o.RowSelectionModel({selectActiveRow:null==e})),null!=e&&this.grid.registerPlugin(e);const t={dataItemColumnValueExtractor(e,t){let i=e[t.field];return h.isString(i)&&(i=i.replace(/\n/g,"\\n")),i},includeHeaderWhenCopying:!1};this.grid.registerPlugin(new l.CellExternalCopyManager(t)),this.grid.onSelectedRowsChanged.subscribe((e,t)=>{this._in_selection_update||(this.model.source.selected.indices=t.rows.map(e=>this.data.index[e]))}),this.updateSelection(),this.model.header_row||this._hide_header()}}_hide_header(){for(const e of Array.from(this.el.querySelectorAll(".slick-header-columns")))e.style.height="0px";this.grid.resizeCanvas()}}i.DataTableView=x,x.__name__="DataTableView";class f extends g.TableWidget{constructor(e){super(e),this._sort_columns=[]}get sort_columns(){return this._sort_columns}static init_DataTable(){this.prototype.default_view=x,this.define({columns:[d.Array,[]],fit_columns:[d.Boolean,!0],sortable:[d.Boolean,!0],reorderable:[d.Boolean,!0],editable:[d.Boolean,!1],selectable:[d.Any,!0],index_position:[d.Int,0],index_header:[d.String,"#"],index_width:[d.Int,40],scroll_to_selection:[d.Boolean,!0],header_row:[d.Boolean,!0],row_height:[d.Int,25]}),this.override({width:600,height:400})}update_sort_columns(e){return this._sort_columns=e.map(e=>({field:e.sortCol.field,sortAsc:e.sortAsc})),null}get_scroll_index(e,t){return this.scroll_to_selection&&0!=t.length?c.some(t,t=>e.top<=t&&t<=e.bottom)?null:Math.max(0,Math.min(…t)-1):null}}i.DataTable=f,f.__name__="DataTable",f.init_DataTable()},n”, ” 425: function _(e,t,n){var o=e(426),r=e(428);t.exports={RowSelectionModel:function(e){var t,n,l,i=[],c=this,u=new r.EventHandler,s={selectActiveRow:!0};function a(e){return function(){n||(n=!0,e.apply(this,arguments),n=!1)}}function f(e){for(var t=[],n=0;n<e.length;n++)for(var o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}function h(e){for(var n=[],o=t.getColumns().length-1,l=0;l<e.length;l++)n.push(new r.Range(e[l],0,e[l],o));return n}function w(){return f(i)}function g(e){(i&&0!==i.length||e&&0!==e.length)&&(i=e,c.onSelectedRangesChanged.notify(i))}function v(e,n){l.selectActiveRow&&null!=n.row&&g([new r.Range(n.row,0,n.row,t.getColumns().length-1)])}function p(e){var n=t.getActiveCell();if(t.getOptions().multiSelect&&n&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which==r.keyCode.UP||e.which==r.keyCode.DOWN)){var o=w();o.sort((function(e,t){return e-t})),o.length||(o=[n.row]);var l,i=o[0],c=o[o.length-1];if((l=e.which==r.keyCode.DOWN?n.row<c||i==c?++c:++i:n.row<c?–c:–i)>=0&&l<t.getDataLength())t.scrollRowIntoView(l),g(h(function(e,t){var n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}(i,c)));e.preventDefault(),e.stopPropagation()}}function y(e){var n=t.getCellFromEvent(e);if(!n||!t.canCellBeActive(n.row,n.cell))return!1;if(!t.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;var r=f(i),l=o.inArray(n.row,r);if(-1===l&&(e.ctrlKey||e.metaKey))r.push(n.row),t.setActiveCell(n.row,n.cell);else if(-1!==l&&(e.ctrlKey||e.metaKey))r=o.grep(r,(function(e,t){return e!==n.row})),t.setActiveCell(n.row,n.cell);else if(r.length&&e.shiftKey){var c=r.pop(),u=Math.min(n.row,c),s=Math.max(n.row,c);r=[];for(var a=u;a<=s;a++)a!==c&&r.push(a);r.push(c),t.setActiveCell(n.row,n.cell)}return g(h(r)),e.stopImmediatePropagation(),!0}o.extend(this,{getSelectedRows:w,setSelectedRows:function(e){g(h(e))},getSelectedRanges:function(){return i},setSelectedRanges:g,init:function(n){l=o.extend(!0,{},s,e),t=n,u.subscribe(t.onActiveCellChanged,a(v)),u.subscribe(t.onKeyDown,a(p)),u.subscribe(t.onClick,a(y))},destroy:function(){u.unsubscribeAll()},onSelectedRangesChanged:new r.Event})}}},n”, ” 426: function _(e,n,f){n.exports="undefined"!=typeof $?$:e(427)},n”, ” 427: function _(e,t,n){n”, ” /!n”, ” * jQuery JavaScript Library v3.4.1n”, ” * https://jquery.com/n”, ” n”, ” * Includes Sizzle.jsn”, ” * https://sizzlejs.com/n”, ” *n”, ” * Copyright JS Foundation and other contributorsn”, ” * Released under the MIT licensen”, ” * https://jquery.org/licensen”, ” *n”, ” * Date: 2019-05-01T21:04Zn”, ” */n”, ” !function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var i,o,a=(n=n||r).createElement("script");if(a.text=e,t)for(i in y)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,o);n.head.appendChild(a).parentNode.removeChild(a)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}b.fn=b.prototype={jquery:"3.4.1",constructor:b,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return b.each(this,e)},map:function(e){return this.pushStack(b.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},b.extend=b.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s–);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(b.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||b.isPlainObject(n)?n:{},i=!1,a[t]=b.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},b.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===d)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){m(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(w,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?b.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(T(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(b.fn[Symbol.iterator]=n[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var C=n”, ” /!n”, ” * Sizzle CSS Selector Engine v2.3.4n”, ” * https://sizzlejs.com/n”, ” n”, ” * Copyright JS Foundation and other contributorsn”, ” * Released under the MIT licensen”, ” * https://js.foundation/n”, ” *n”, ” * Date: 2019-04-08n”, ” */n”, ” function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ue(),k=ue(),S=ue(),N=ue(),A=function(e,t){return e===t&&(f=!0),0},D={}.hasOwnProperty,j=[],q=j.pop,L=j.push,H=j.push,O=j.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:’((?:\\\\.|[^\\\\’]))’|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+I+\"))|)"+M+"\\]",$=":("+I+")(?:\\(((‘((?:\\\\.|[^\\\\’]))’|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+","+M+""),z=new RegExp("^"+M+"([>+~]|"+M+")"+M+""),U=new RegExp(M+"|>\"),X=new RegExp($),V=new RegExp(\"^\"+I+\"$\"),G={ID:new RegExp(\"^#(\"+I+\")\"),CLASS:new RegExp(\"^\\\\.(\"+I+\")\"),TAG:new RegExp(\"^(\"+I+\"|[*])\"),ATTR:new RegExp(\"^\"+W),PSEUDO:new RegExp(\"^\"+$),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+M+\"*(even|odd|(([+-]|)(\\d*)n|)"+M+"(?:([+-]|)"+M+"*(\\d+)|))"+M+"\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d)"+M+"\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{H.apply(j=O.call(w.childNodes),w.childNodes),j[w.childNodes.length].nodeType}catch(e){H={apply:j.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=Z.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!N[e+" "]&&(!v||!v.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===T&&U.test(e)){for((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=b),s=(h=a(e)).length;s–;)h[s]="#"+c+" "+xe(h[s]);y=h.join(","),m=ee.test(e)&&ye(t.parentNode)||t}try{return H.apply(r,m.querySelectorAll(y)),r}catch(t){N(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|\"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return\"input\"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return(\"input\"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a–;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if(""===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){h.appendChild(e).innerHTML="<a id=’"+b+"’></a><select id=’"+b+"-\r\\’ msallowcapture=’’><option selected=’’></option></select>",e.querySelectorAll("[msallowcapture^=’’]").length&&v.push("[^$]="+M+"*(?:’’|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+").length||v.push(".#.+[+~]")})),ce((function(e){e.innerHTML="<a href=’’ disabled=’disabled’></a><select disabled=’disabled’><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll(",:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=m.call(e,""),m.call(e,"[s!=’’]:x"),y.push("!=",$)})),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?P(c,e)-P(c,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),n.matchesSelector&&g&&!N[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){N(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&D.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(A),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i–;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return""===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)\"))&&E(e,(function(e){return t.test(\"string\"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute(\"class\")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a–;)e[r=P(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s–;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;–r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i–;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le((function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:Te(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=Te(y,d),r(l,[],s,u),c=l.length;c–;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c–;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c–;)(f=y[c])&&(l=i?P(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else y=Te(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)}))}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=be((function(e){return e===t}),s,!0),f=be((function(e){return P(t,e)>-1}),s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[be(we(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Ce(u>1&&we(p),u>1&&xe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"":""})).replace(B,"$1"),n,u<i&&Ee(e.slice(u,i)),i<o&&Ee(e=e.slice(i)),i<o&&xe(e))}p.push(n)}return we(p)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=se.tokenize=function(e,t){var n,i,o,a,s,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=_.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):k(e,u).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n–;)(s=Ee(t[n]))[b]?i.push(s):o.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,v,y=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument===d||(p(f),s=!g);v=e[h++];)if(v(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!v&&f)&&y–,o&&x.push(f))}if(y+=m,n&&m!==y){for(h=0;v=t[h++];)v(x,b,a,s);if(o){if(y>0)for(;m–;)x[m]||b[m]||(b[m]=q.call(u));b=Te(b)}H.apply(u,b),c&&!o&&b.length>0&&y+t.length>1&&se.uniqueSort(u)}return c&&(T=E,l=w),x};return n?le(o):o}(o,i))).selector=e}return s},u=se.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=G.needsContext.test(e)?0:u.length;o–&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&xe(u)))return H.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split("").sort(A).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href=’#’></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);b.find=C,b.expr=C.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=C.uniqueSort,b.text=C.getText,b.isXMLDoc=C.isXML,b.contains=C.contains,b.escapeSelector=C.escape;var E=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&b(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=b.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return g(t)?b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?b.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?b.grep(e,(function(e){return u.call(t,e)>-1!==n})):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},b.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<r;t++)if(b.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,i[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&S.test(e)?b(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),A.test(i[1])&&b.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,j=b(r);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&b(e);if(!S.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?b.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(b(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(N(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},(function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),this.length>1&&(H[e]||b.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}}));var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(P)||[],(function(e,n){t[n]=!0})),t}(e):b.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){b.each(n,(function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&u()),this},remove:function(){return b.each(arguments,(function(e,t){for(var n;(n=b.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s–})),this},has:function(e){return e?b.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},b.extend({Deferred:function(t){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return b.Deferred((function(t){b.each(n,(function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,g(l)?i?l.call(e,a(o,n,R,i),a(o,n,M,i)):(o++,l.call(e,a(o,n,R,i),a(o,n,M,i),a(o,n,R,n.notifyWith))):(r!==R&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(r!==M&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(b.Deferred.getStackHook&&(c.stackTrace=b.Deferred.getStackHook()),e.setTimeout(c))}}return b.Deferred((function(e){n[0][3].add(a(0,e,g(i)?i:R,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:R)),n[2][3].add(a(0,e,g(r)?r:M))})).promise()},promise:function(e){return null!=e?b.extend(e,i):i}},o={};return b.each(n,(function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=b.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,–t||a.resolveWith(r,i)}};if(t<=1&&(I(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();for(;n–;)I(i[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},b.readyException=function(t){e.setTimeout((function(){throw t}))};var $=b.Deferred();function F(){r.removeEventListener("DOMContentLoaded",F),e.removeEventListener("load",F),b.ready()}b.fn.ready=function(e){return $.then(e).catch((function(e){b.readyException(e)})),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?–b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&–b.readyWait>0||$.resolveWith(r,[b]))}}),b.ready.then=$.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(b.ready):(r.addEventListener("DOMContentLoaded",F),e.addEventListener("load",F));var B=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)B(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(b(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=b.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;for(;n–;)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(n=a.length;n–;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Q.set(this,e)})):B(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))||void 0!==(n=Z(o,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r–),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){b.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:b.Callbacks("once memory").add((function(){Y.remove(e,[t+"queue",n])}))})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n–),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each((function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=b.Deferred(),o=this,a=this.length,s=function(){–r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a–;)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=r.documentElement,ie=function(e){return b.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===b.css(e,"display")},se=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},u=s(),l=n&&n[3]||(b.cssNumber[t]?"":"px"),c=e.nodeType&&(b.cssNumber[t]||"px"!==l&&+u)&&te.exec(b.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a–;)b.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,b.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var le={};function ce(e){var t,n=e.ownerDocument,r=e.nodeName,i=le[r];return i||(t=n.body.appendChild(n.createElement(r)),i=b.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),le[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Y.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ae(r)&&(i[o]=ce(r))):"none"!==n&&(i[o]="none",Y.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}b.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ae(this)?b(this).show():b(this).hide()}))}});var pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,"<select multiple=’multiple’>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||""):void 0!==e.querySelectorAll?e.querySelectorAll(t||""):[],void 0===t||t&&N(e,t)?b.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var me,xe,be=/<|&#?\\w+;/;function we(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if(\"object\"===x(o))b.merge(p,o.nodeType?[o]:o);else if(be.test(o)){for(a=a||f.appendChild(t.createElement(\"div\")),s=(de.exec(o)||[\"\",\"\"])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+b.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;b.merge(p,a.childNodes),(a=f.firstChild).textContent=\"\"}else p.push(t.createTextNode(o));for(f.textContent=\"\",d=0;o=p[d++];)if(r&&b.inArray(o,r)>-1)i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),\"script\"),l&&ye(a),n)for(c=0;o=a[c++];)he.test(o.type||"")&&n.push(o);return f}me=r.createDocumentFragment().appendChild(r.createElement("div")),(xe=r.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),me.appendChild(xe),h.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return b().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=b.guid++)),e.each((function(){b.event.add(this,t,i,r,n)}))}function De(e,t,n){n?(Y.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=Y.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),Y.set(this,t,a),r=n(this,t),this[t](),a!==(i=Y.get(this,t))||r?Y.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else a.length&&(Y.set(this,t,{value:b.event.trigger(b.extend(a[0],b.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,t)&&b.event.add(e,t,ke)}b.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&b.find.matchesSelector(re,i),n.guid||(n.guid=b.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(P)||[""]).length;l–;)d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=b.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=b.event.special[d]||{},c=b.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&b.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),b.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(P)||[""]).length;l–;)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=b.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o–;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&(""!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount–,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||b.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=b.event.fix(e),u=new Array(arguments.length),l=(Y.get(this,"events")||{})[s.type]||[],c=b.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=b.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((b.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?b(i,this).index(l)>-1:b.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&N(t,"input")&&De(t,"click",ke),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&N(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&N(t,"input")&&Y.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},(function(e,t){b.event.special[e]={setup:function(){return De(this,e,Ne),!1},trigger:function(){return De(this,e),!0},delegateType:t}})),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||b.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),b.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){b.event.remove(this,e,n,t)}))}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!(?:\[CDATA\[|–)|(?:\]\]|–)>\s*$/g;function Oe(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),a=Y.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)b.event.add(t,i,l[i][n]);Q.hasData(e)&&(s=Q.access(e),u=b.extend({},s),Q.set(t,u))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&pe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function We(e,t,n,r){t=a.apply([],t);var i,o,s,u,l,c,f=0,p=e.length,d=p-1,v=t[0],y=g(v);if(y||p>1&&"string"==typeof v&&!h.checkClone&&Le.test(v))return e.each((function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),We(o,t,n,r)}));if(p&&(o=(i=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=b.map(ve(i,"script"),Pe)).length;f<p;f++)l=i,f!==d&&(l=b.clone(l,!0,!0),u&&b.merge(s,ve(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,b.map(s,Re),f=0;f<u;f++)l=s[f],he.test(l.type||"")&&!Y.access(l,"globalEval")&&b.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?b._evalUrl&&!l.noModule&&b._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):m(l.textContent.replace(He,""),l,c))}return e}function $e(e,t,n){for(var r,i=t?b.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||b.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=ie(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(a=ve(s),r=0,i=(o=ve(e)).length;r<i;r++)Ie(o[r],a[r]);if(t)if(n)for(o=o||ve(e),a=a||ve(s),r=0,i=o.length;r<i;r++)Me(o[r],a[r]);else Me(e,s);return(a=ve(s,"script")).length>0&&ye(a,!u&&ve(e,"script")),s},cleanData:function(e){for(var t,n,r,i=b.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),b.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return B(this,(function(e){return void 0===e?b.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return B(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(b.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return We(this,arguments,(function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var n,r=[],i=b(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),b(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}}));var Fe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Be=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},_e=new RegExp(ne.join("|"),"i");function ze(e,t,n){var r,i,o,a,s=e.style;return(n=n||Be(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=b.style(e,t)),!h.pixelBoxStyles()&&Fe.test(a)&&_e.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",a=12===n(c.offsetWidth/3),re.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,a,s,u,l=r.createElement("div"),c=r.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,b.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))}();var Xe=["Webkit","Moz","ms"],Ve=r.createElement("div").style,Ge={};function Ye(e){var t=b.cssProps[e]||Ge[e];return t||(e in Ve?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n–;)if((e=Xe[n]+t)in Ve)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je=/^–/,Ke={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=b.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=b.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=b.css(e,"border"+ne[a]+"Width",!0,i))):(u+=b.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=b.css(e,"border"+ne[a]+"Width",!0,i):s+=b.css(e,"border"+ne[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function nt(e,t,n){var r=Be(e),i=(!h.boxSizingReliable()||n)&&"border-box"===b.css(e,"boxSizing",!1,r),o=i,a=ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===b.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===b.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+tt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Je.test(t),l=e.style;if(u||(t=Ye(s)),a=b.cssHooks[t]||b.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(b.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Je.test(t)||(t=Ye(s)),(a=b.cssHooks[t]||b.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in Ze&&(i=Ze[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):se(e,Ke,(function(){return nt(e,t,r)}))},set:function(e,n,r){var i,o=Be(e),a=!h.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===b.css(e,"boxSizing",!1,o),u=r?tt(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-tt(e,t,"border",!1,o)-.5)),u&&(i=te.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),et(0,n,u)}}})),b.cssHooks.marginLeft=Ue(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ne[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(b.cssHooks[e+t].set=et)})),b.fn.extend({css:function(e,t){return B(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Be(e),i=t.length;a<i;a++)o[t[a]]=b.css(e,t[a],!1,r);return o}return void 0!==n?b.style(e,t,n):b.css(e,t)}),e,t,arguments.length>1)}}),b.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=rt.prototype.init,b.fx.step={};var it,ot,at=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function ut(){ot&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ut):e.setTimeout(ut,b.fx.interval),b.fx.tick())}function lt(){return e.setTimeout((function(){it=void 0})),it=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function pt(e,t,n){var r,i,o=0,a=pt.prefilters.length,s=b.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=it||lt(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=b.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=pt.prefilters[o].call(l,e,c,l.opts))return g(r.stop)&&(b._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return b.map(c,ft,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}b.Animation=b.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=b._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued–,b.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],at.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||b.style(e,r)}if((u=!b.isEmptyObject(t))||!b.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=b.css(e,"display"))&&(l?c=l:(fe([e],!0),l=e.style.display||l,c=b.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===b.css(e,"float")&&(u||(p.done((function(){h.display=l})),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&fe([e],!0),p.done((function(){for(r in g||fe([e]),Y.remove(e,"fxshow"),d)b.style(e,r,d[r])}))),u=ft(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return b.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=pt(this,b.extend({},e),o);(i||Y.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=b.timers,a=Y.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&st.test(i)&&r(a[i]);for(i=o.length;i–;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Y.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t–;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),b.each(["toggle","show","hide"],(function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}})),b.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t–,1);n.length||b.fx.stop(),it=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){ot||(ot=!0,ut())},b.fx.stop=function(){ot=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,n){return t=b.fx&&b.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}}))},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var dt,ht=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return B(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))}}),b.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?b.prop(e,t,n):(1===o&&b.isXMLDoc(e)||(i=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=b.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||b.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}}));var gt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function yt(e){return(e.match(P)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}b.fn.extend({prop:function(e,t){return B(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))}}),b.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&b.isXMLDoc(e)||(t=b.propFix[t]||t,i=b.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each((function(t){b(this).addClass(e.call(this,t,mt(this)))}));if((t=xt(e)).length)for(;n=this[u++];)if(i=mt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each((function(t){b(this).removeClass(e.call(this,t,mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)for(;n=this[u++];)if(i=mt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){b(this).toggleClass(e.call(this,n,mt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=b(this),a=xt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;b.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,b(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=b.map(i,(function(e){return null==e?"":e+""}))),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=b.valHooks[i.type]||b.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:yt(b.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=b(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=b.makeArray(t),a=i.length;a–;)((r=i[a]).selected=b.inArray(b.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},h.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,y=[i||r],m=f.call(t,"type")?t.type:t,x=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!wt.test(m+b.event.triggered)&&(m.indexOf(".")>-1&&(x=m.split("."),m=x.shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[b.expando]?t:new b.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:b.makeArray(n,[t]),d=b.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!v(i)){for(l=d.delegateType||m,wt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)y.push(s),u=s;u===(i.ownerDocument||r)&&y.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=y[a++])&&!t.isPropagationStopped();)h=s,t.type=a>1?l:d.bindType||m,(p=(Y.get(s,"events")||{})[t.type]&&Y.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&V(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(y.pop(),n)||!V(i)||c&&g(i[m])&&!v(i)&&((u=i[c])&&(i[c]=null),b.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Tt),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Tt),b.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),h.focusin||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Y.access(r,t);i||r.addEventListener(e,n,!0),Y.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Y.access(r,t)-1;i?Y.access(r,t,i):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}}));var Ct=e.location,Et=Date.now(),kt=/\?/;b.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+t),n};var St=/\[\]$/,Nt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))b.each(t,(function(t,i){n||St.test(e)?r(e,i):jt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)jt(e+"["+i+"]",t[i],n,r)}b.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){i(this.name,this.value)}));else for(n in e)jt(n,e[n],t,i);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Dt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,(function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}})):{name:t.name,value:n.replace(Nt,"\r\n")}})).get()}});var qt=/%20/g,Lt=/#.*$/,Ht=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Rt=/^\/\//,Mt={},It={},Wt="*/".concat("*"),$t=r.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(P)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Bt(e,t,n,r){var i={},o=e===It;function a(s){var u;return i[s]=!0,b.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function _t(e,t){var n,r,i=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}$t.href=Ct.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_t(_t(e,b.ajaxSettings),t):_t(b.ajaxSettings,e)},ajaxPrefilter:Ft(Mt),ajaxTransport:Ft(It),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=b.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?b(g):b.event,y=b.Deferred(),m=b.Callbacks("once memory"),x=h.statusCode||{},w={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ot.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),k(0,t),this}};if(y.promise(E),h.url=((t||h.url||Ct.href)+"").replace(Rt,Ct.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=$t.protocol+"//"+$t.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=b.param(h.data,h.traditional)),Bt(Mt,h,n,E),c)return E;for(p in(f=b.event&&h.global)&&0==b.active++&&b.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pt.test(h.type),o=h.url.replace(Lt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(qt,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(kt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ht,"$1"),d=(kt.test(o)?"&":"?")+"_="+Et+++d),h.url=o+d),h.ifModified&&(b.lastModified[o]&&E.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&E.setRequestHeader("If-None-Match",b.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Wt+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),i=Bt(It,h,n,E)){if(E.readyState=1,f&&v.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(u=e.setTimeout((function(){E.abort("timeout")}),h.timeout));try{c=!1,i.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,r,s){var l,p,d,w,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,E,r)),w=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(h,w,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(b.etag[o]=T)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=w.state,p=w.data,l=!(d=w.error))):(d=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",l?y.resolveWith(g,[p,C,E]):y.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&v.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(v.trigger("ajaxComplete",[E,h]),–b.active||b.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],(function(e,t){b[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:i,data:n,success:r},b.isPlainObject(e)&&e))}})),b._evalUrl=function(e,t){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){b(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ut=b.ajaxSettings.xhr();h.cors=!!Ut&&"withCredentials"in Ut,h.ajax=Ut=!!Ut,b.ajaxTransport((function(t){var n,r;if(h.cors||Ut&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),b.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,Vt=[],Gt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||b.expando+"_"+Et++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Gt,"$1"+i):!1!==t.jsonp&&(t.url+=(kt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||b.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always((function(){void 0===o?b(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),h.createHTMLDocument=((Xt=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(i)):t=r),a=!n&&[],(o=A.exec(e))?[t.createElement(o[1])]:(o=we([e],t,a),a&&a.length&&b(a).remove(),b.merge([],o.childNodes)));var i,o,a},b.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&b.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=b.css(e,"position"),c=b(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=b.css(e,"top"),u=b.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),i.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-b.css(r,"marginTop",!0),left:t.left-i.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||re}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return B(this,(function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ue(h.pixelPosition,(function(e,n){if(n)return n=ze(e,t),Fe.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){b.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return B(this,(function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),b.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,""):this.off(t,e||"",n)}}),b.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||b.guid++,i},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=N,b.isFunction=g,b.isWindow=v,b.camelCase=X,b.type=x,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return b}));var Yt=e.jQuery,Qt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Qt),t&&e.jQuery===b&&(e.jQuery=Yt),b},t||(e.jQuery=e.$=b),b}))},n”, ” 428: function _(t,i,n){function o(){var t=!1,i=!1;this.stopPropagation=function(){t=!0},this.isPropagationStopped=function(){return t},this.stopImmediatePropagation=function(){i=!0},this.isImmediatePropagationStopped=function(){return i}}function e(){this.__nonDataRow=!0}function r(){this.__group=!0,this.level=0,this.count=0,this.value=null,this.title=null,this.collapsed=!1,this.selectChecked=!1,this.totals=null,this.rows=[],this.groups=null,this.groupingKey=null}function s(){this.__groupTotals=!0,this.group=null,this.initialized=!1}function l(){var t=null;this.isActive=function(i){return i?t===i:null!==t},this.activate=function(i){if(i!==t){if(null!==t)throw new Error("SlickGrid.EditorLock.activate: an editController is still active, can’t activate another editController");if(!i.commitCurrentEdit)throw new Error("SlickGrid.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!i.cancelCurrentEdit)throw new Error("SlickGrid.EditorLock.activate: editController must implement .cancelCurrentEdit()");t=i}},this.deactivate=function(i){if(t!==i)throw new Error("SlickGrid.EditorLock.deactivate: specified editController is not the currently active one");t=null},this.commitCurrentEdit=function(){return!t||t.commitCurrentEdit()},this.cancelCurrentEdit=function(){return!t||t.cancelCurrentEdit()}}r.prototype=new e,r.prototype.equals=function(t){return this.value===t.value&&this.count===t.count&&this.collapsed===t.collapsed&&this.title===t.title},s.prototype=new e,i.exports={Event:function(){var t=[];this.subscribe=function(i){t.push(i)},this.unsubscribe=function(i){for(var n=t.length-1;n>=0;n–)t[n]===i&&t.splice(n,1)},this.notify=function(i,n,e){var r;n=n||new o,e=e||this;for(var s=0;s<t.length&&!n.isPropagationStopped()&&!n.isImmediatePropagationStopped();s++)r=t[s].call(e,n,i);return r}},EventData:o,EventHandler:function(){var t=[];this.subscribe=function(i,n){return t.push({event:i,handler:n}),i.subscribe(n),this},this.unsubscribe=function(i,n){for(var o=t.length;o–;)if(t[o].event===i&&t[o].handler===n)return t.splice(o,1),void i.unsubscribe(n);return this},this.unsubscribeAll=function(){for(var i=t.length;i–;)t[i].event.unsubscribe(t[i].handler);return t=[],this}},Range:function(t,i,n,o){void 0===n&&void 0===o&&(n=t,o=i),this.fromRow=Math.min(t,n),this.fromCell=Math.min(i,o),this.toRow=Math.max(t,n),this.toCell=Math.max(i,o),this.isSingleRow=function(){return this.fromRow==this.toRow},this.isSingleCell=function(){return this.fromRow==this.toRow&&this.fromCell==this.toCell},this.contains=function(t,i){return t>=this.fromRow&&t<=this.toRow&&i>=this.fromCell&&i<=this.toCell},this.toString=function(){return this.isSingleCell()?"("+this.fromRow+":"+this.fromCell+")":"("+this.fromRow+":"+this.fromCell+" - "+this.toRow+":"+this.toCell+")"}},NonDataRow:e,Group:r,GroupTotals:s,EditorLock:l,GlobalEditorLock:new l,keyCode:{BACKSPACE:8,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,ESC:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38,C:67,V:86},preClickClassName:"slick-edit-preclick"}},n”, ” 429: function _(e,t,o){var l=e(426),c=e(428);t.exports={CheckboxSelectColumn:function(e){var t,o=g(),n=new c.EventHandler,i={},r=!1,d=l.extend(!0,{},{columnId:"_checkbox_selector",cssClass:null,hideSelectAllCheckbox:!1,toolTip:"Select/Deselect All",width:30,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0},e);function a(){t.updateColumnHeader(d.columnId,"","")}function s(){l("#filter-checkbox-selectall-container").hide()}function u(e,c){var n,a,s=t.getSelectedRows(),u={};for(a=0;a<s.length;a++)u[n=s[a]]=!0,u[n]!==i[n]&&(t.invalidateRow(n),delete i[n]);for(a in i)t.invalidateRow(a);(i=u,t.render(),r=s.length&&s.length==t.getDataLength(),d.hideInColumnTitleRow||d.hideSelectAllCheckbox||(r?t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’ checked=’checked’><label for=’header-selector"+o+"’></label>",d.toolTip):t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",d.toolTip)),d.hideInFilterHeaderRow)||l("#header-filter-selector"+o).prop("checked",r)}function h(e,o){32==e.which&&t.getColumns()[o.cell].id===d.columnId&&(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit()||p(o.row),e.preventDefault(),e.stopImmediatePropagation())}function f(e,o){if(t.getColumns()[o.cell].id===d.columnId&&l(e.target).is(":checkbox")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();p(o.row),e.stopPropagation(),e.stopImmediatePropagation()}}function p(e){i[e]?t.setSelectedRows(l.grep(t.getSelectedRows(),(function(t){return t!=e}))):t.setSelectedRows(t.getSelectedRows().concat(e)),t.setActiveCell(e,function(){if(null===m){m=0;for(var e=t.getColumns(),o=0;o<e.length;o++)e[o].id==d.columnId&&(m=o)}return m}()),t.focus()}function b(e,o){if(o.column.id==d.columnId&&l(e.target).is(":checkbox")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();if(l(e.target).is(":checked")){for(var c=[],n=0;n<t.getDataLength();n++)c.push(n);t.setSelectedRows(c)}else t.setSelectedRows([]);e.stopPropagation(),e.stopImmediatePropagation()}}var m=null;function g(){return Math.round(1e7*Math.random())}function k(e,t,o,l,c){var n=g()+e;return c?i[e]?"<input id=’selector"+n+"’ type=’checkbox’ checked=’checked’><label for=’selector"+n+"’></label>":"<input id=’selector"+n+"’ type=’checkbox’><label for=’selector"+n+"’></label>":null}l.extend(this,{init:function(e){t=e,n.subscribe(t.onSelectedRowsChanged,u).subscribe(t.onClick,f).subscribe(t.onKeyDown,h),d.hideInFilterHeaderRow||function(e){e.onHeaderRowCellRendered.subscribe((function(e,t){"sel"===t.column.field&&(l(t.node).empty(),l("<span id=’filter-checkbox-selectall-container’><input id=’header-filter-selector"+o+"’ type=’checkbox’><label for=’header-filter-selector"+o+"’></label></span>").appendTo(t.node).on("click",(function(e){b(e,t)})))}))}(e),d.hideInColumnTitleRow||n.subscribe(t.onHeaderClick,b)},destroy:function(){n.unsubscribeAll()},deSelectRows:function(e){var o,c=e.length,n=[];for(o=0;o<c;o++)i[e[o]]&&(n[n.length]=e[o]);t.setSelectedRows(l.grep(t.getSelectedRows(),(function(e){return n.indexOf(e)<0})))},selectRows:function(e){var o,l=e.length,c=[];for(o=0;o<l;o++)i[e[o]]||(c[c.length]=e[o]);t.setSelectedRows(t.getSelectedRows().concat(c))},getColumnDefinition:function(){return{id:d.columnId,name:d.hideSelectAllCheckbox||d.hideInColumnTitleRow?"":"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",toolTip:d.toolTip,field:"sel",width:d.width,resizable:!1,sortable:!1,cssClass:d.cssClass,hideSelectAllCheckbox:d.hideSelectAllCheckbox,formatter:k}},getOptions:function(){return d},setOptions:function(e){if((d=l.extend(!0,{},d,e)).hideSelectAllCheckbox)a(),s();else if(d.hideInColumnTitleRow?a():(r?t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’ checked=’checked’><label for=’header-selector"+o+"’></label>",d.toolTip):t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",d.toolTip),n.subscribe(t.onHeaderClick,b)),d.hideInFilterHeaderRow)s();else{var c=l("#filter-checkbox-selectall-container");c.show(),c.find(‘input[type="checkbox"]’).prop("checked",r)}}})}}},n”, ” 430: function _(e,t,o){var l=e(426),n=e(428),a=n.keyCode;t.exports={CellExternalCopyManager:function(e){var t,o,r=this,i=e||{},s=i.copiedCellStyleLayerKey||"copy-manager",u=i.copiedCellStyle||"copied",c=0,d=i.bodyElement||document.body,f=i.onCopyInit||null,h=i.onCopySuccess||null;function C(e){if(i.headerColumnValueExtractor){var t=i.headerColumnValueExtractor(e);if(t)return t}return e.name}function m(e,o,n){if(i.dataItemColumnValueExtractor){var a=i.dataItemColumnValueExtractor(e,o);if(a)return a}var r="";if(o.editor){var s={container:l("<p>"),column:o,position:{top:0,left:0},grid:t,event:n},u=new o.editor(s);u.loadValue(e),r=u.serializeValue(),u.destroy()}else r=e[o.field];return r}function g(e,o,n){if(i.dataItemColumnValueSetter)return i.dataItemColumnValueSetter(e,o,n);if(o.editor){var a={container:l("body"),column:o,position:{top:0,left:0},grid:t},r=new o.editor(a);r.loadValue(e),r.applyValue(e,n),r.destroy()}else e[o.field]=n}function p(e){var t=document.createElement("textarea");return t.style.position="absolute",t.style.left="-1000px",t.style.top=document.body.scrollTop+"px",t.value=e,d.appendChild(t),t.select(),t}function y(e,l){var n;if(!t.getEditorLock().isActive()||t.getOptions().autoEdit){if(e.which==a.ESC&&o&&(e.preventDefault(),w(),r.onCopyCancelled.notify({ranges:o}),o=null),(e.which===a.C||e.which===a.INSERT)&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&(f&&f.call(),0!=(n=t.getSelectionModel().getSelectedRanges()).length)){o=n,v(n),r.onCopyCells.notify({ranges:n});for(var s=t.getColumns(),u="",c=0;c<n.length;c++){for(var y=n[c],D=[],S=y.fromRow;S<y.toRow+1;S++){var R=[],x=t.getDataItem(S);if(""==D&&i.includeHeaderWhenCopying){for(var V=[],E=y.fromCell;E<y.toCell+1;E++)s[E].name.length>0&&V.push(C(s[E]));D.push(V.join("\t"))}for(E=y.fromCell;E<y.toCell+1;E++)R.push(m(x,s[E],e));D.push(R.join("\t"))}u+=D.join("\r\n")+"\r\n"}if(window.clipboardData)return window.clipboardData.setData("Text",u),!0;var b=document.activeElement;if((M=p(u)).focus(),setTimeout((function(){d.removeChild(M),b?b.focus():console.log("Not element to restore focus to after copy?")}),100),h){var I=0;I=1===n.length?n[0].toRow+1-n[0].fromRow:n.length,h.call(this,I)}return!1}if(!i.readOnlyMode&&(e.which===a.V&&(e.ctrlKey||e.metaKey)&&!e.shiftKey||e.which===a.INSERT&&e.shiftKey&&!e.ctrlKey)){var M=p("");return setTimeout((function(){!function(e,t){var o=e.getColumns(),l=t.value.split(/[\n\f\r]/);""==l[l.length-1]&&l.pop();var n=[],a=0;d.removeChild(t);for(var s=0;s<l.length;s++)""!=l[s]?n[a++]=l[s].split("\t"):n[s]=[""];var u=e.getActiveCell(),c=e.getSelectionModel().getSelectedRanges(),f=c&&c.length?c[0]:null,h=null,C=null;if(f)h=f.fromRow,C=f.fromCell;else{if(!u)return;h=u.row,C=u.cell}var m=!1,p=n.length,y=n.length?n[0].length:0;1==n.length&&1==n[0].length&&f&&(m=!0,p=f.toRow-f.fromRow+1,y=f.toCell-f.fromCell+1);var w=e.getData().length-h,D=0;if(w<p&&i.newRowCreator){var S=e.getData();for(D=1;D<=p-w;D++)S.push({});e.setData(S),e.render()}var R=h+p>e.getDataLength();if(i.newRowCreator&&R){var x=h+p-e.getDataLength();i.newRowCreator(x)}var V={isClipboardCommand:!0,clippedRange:n,oldValues:[],cellExternalCopyManager:r,_options:i,setDataItemValueForColumn:g,markCopySelection:v,oneCellToMultiple:m,activeRow:h,activeCell:C,destH:p,destW:y,maxDestY:e.getDataLength(),maxDestX:e.getColumns().length,h:0,w:0,execute:function(){this.h=0;for(var t=0;t<this.destH;t++){this.oldValues[t]=[],this.w=0,this.h++;for(var l=0;l<this.destW;l++){this.w++;var a=h+t,r=C+l;if(a<this.maxDestY&&r<this.maxDestX){e.getCellNode(a,r);var i=e.getDataItem(a);this.oldValues[t][l]=i[o[r].field],m?this.setDataItemValueForColumn(i,o[r],n[0][0]):this.setDataItemValueForColumn(i,o[r],n[t]?n[t][l]:""),e.updateCell(a,r),e.onCellChange.notify({row:a,cell:r,item:i,grid:e})}}}var s={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};this.markCopySelection([s]),e.getSelectionModel().setSelectedRanges([s]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[s]})},undo:function(){for(var t=0;t<this.destH;t++)for(var l=0;l<this.destW;l++){var n=h+t,a=C+l;if(n<this.maxDestY&&a<this.maxDestX){e.getCellNode(n,a);var r=e.getDataItem(n);m?this.setDataItemValueForColumn(r,o[a],this.oldValues[0][0]):this.setDataItemValueForColumn(r,o[a],this.oldValues[t][l]),e.updateCell(n,a),e.onCellChange.notify({row:n,cell:a,item:r,grid:e})}}var i={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};if(this.markCopySelection([i]),e.getSelectionModel().setSelectedRanges([i]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[i]}),D>1){for(var s=e.getData();D>1;D–)s.splice(s.length-1,1);e.setData(s),e.render()}}};i.clipboardCommandHandler?i.clipboardCommandHandler(V):V.execute()}(t,M)}),100),!1}}}function v(e){w();for(var o=t.getColumns(),l={},n=0;n<e.length;n++)for(var a=e[n].fromRow;a<=e[n].toRow;a++){l[a]={};for(var i=e[n].fromCell;i<=e[n].toCell&&i<o.length;i++)l[a][o[i].id]=u}t.setCellCssStyles(s,l),clearTimeout(c),c=setTimeout((function(){r.clearCopySelection()}),2e3)}function w(){t.removeCellCssStyles(s)}l.extend(this,{init:function(e){(t=e).onKeyDown.subscribe(y);var o=e.getSelectionModel();if(!o)throw new Error("Selection model is mandatory for this plugin. Please set a selection model on the grid before adding this plugin: grid.setSelectionModel(new Slick.CellSelectionModel())");o.onSelectedRangesChanged.subscribe((function(e,o){t.focus()}))},destroy:function(){t.onKeyDown.unsubscribe(y)},clearCopySelection:w,handleKeyDown:y,onCopyCells:new n.Event,onCopyCancelled:new n.Event,onPasteCells:new n.Event,setIncludeHeaderWhenCopying:function(e){i.includeHeaderWhenCopying=e}})}}},n”, ” 431: function _(r,t,o){var _=r(1);_.__exportStar(r(428),t.exports),_.__exportStar(r(432),t.exports),_.__exportStar(r(435),t.exports),_.__exportStar(r(436),t.exports),_.__exportStar(r(437),t.exports),_.__exportStar(r(438),t.exports),_.__exportStar(r(439),t.exports)},n”, ” 432: function _(require,module,exports){n”, ” /n”, ” * @licensen”, ” * (c) 2009-2016 Michael Leibmann”, ” * michael{dot}leibman{at}gmail{dot}comn”, ” * http://github.com/mleibman/slickgridn”, ” n”, ” * Distributed under MIT license.n”, ” * All rights reserved.n”, ” *n”, ” * SlickGrid v2.3n”, ” *n”, ” * NOTES:n”, ” * Cell/row DOM manipulations are done directly bypassing jQuery’s DOM manipulation methods.n”, ” * This increases the speed dramatically, but can only be done safely because there are no event handlersn”, ” * or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()n”, ” * and do proper cleanup.n”, ” */n”, ” var $=require(426),Slick=require(428),scrollbarDimensions,maxSupportedCssHeight;function SlickGrid(container,data,columns,options){$.fn.drag||require(433),$.fn.drop||require(434);var defaults={alwaysShowVerticalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,autoHeight:!1,editorLock:Slick.GlobalEditorLock,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,showPreHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",selectedCellCssClass:"selected",multiSelect:!0,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,showCellSelection:!0,viewportClass:null,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1},columnDefaults={name:"",resizable:!0,sortable:!1,minWidth:30,rerenderOnResize:!1,headerCssClass:null,defaultSortAsc:!0,focusable:!0,selectable:!0},th,h,ph,n,cj,page=0,offset=0,vScrollDir=1,initialized=!1,$container,uid="slickgrid_"+Math.round(1e6*Math.random()),self=this,$focusSink,$focusSink2,$headerScroller,$headers,$headerRow,$headerRowScroller,$headerRowSpacer,$footerRow,$footerRowScroller,$footerRowSpacer,$preHeaderPanel,$preHeaderPanelScroller,$preHeaderPanelSpacer,$topPanelScroller,$topPanel,$viewport,$canvas,$style,$boundAncestors,stylesheet,columnCssRulesL,columnCssRulesR,viewportH,viewportW,canvasWidth,viewportHasHScroll,viewportHasVScroll,headerColumnWidthDiff=0,headerColumnHeightDiff=0,cellWidthDiff=0,cellHeightDiff=0,jQueryNewWidthBehaviour=!1,absoluteColumnMinWidth,tabbingDirection=1,activePosX,activeRow,activeCell,activeCellNode=null,currentEditor=null,serializedEditorValue,editController,rowsCache={},renderedRows=0,numVisibleRows,prevScrollTop=0,scrollTop=0,lastRenderedScrollTop=0,lastRenderedScrollLeft=0,prevScrollLeft=0,scrollLeft=0,selectionModel,selectedRows=[],plugins=[],cellCssClasses={},columnsById={},sortColumns=[],columnPosLeft=[],columnPosRight=[],pagingActive=!1,pagingIsLastPage=!1,scrollThrottle=ActionThrottle(render,50),h_editorLoader=null,h_render=null,h_postrender=null,h_postrenderCleanup=null,postProcessedRows={},postProcessToRow=null,postProcessFromRow=null,postProcessedCleanupQueue=[],postProcessgroupId=0,counter_rows_rendered=0,counter_rows_removed=0,rowNodeFromLastMouseWheelEvent,zombieRowNodeFromLastMouseWheelEvent,zombieRowCacheFromLastMouseWheelEvent,zombieRowPostProcessedFromLastMouseWheelEvent,cssShow={position:"absolute",visibility:"hidden",display:"block"},$hiddenParents,oldProps=[],columnResizeDragging=!1;function init(){if(($container=container instanceof $?container:$(container)).length<1)throw new Error("SlickGrid requires a valid container, "+container+" does not exist in the DOM.");cacheCssForHiddenInit(),maxSupportedCssHeight=maxSupportedCssHeight||getMaxSupportedCssHeight(),options=$.extend({},defaults,options),validateAndEnforceOptions(),columnDefaults.width=options.defaultColumnWidth,columnsById={};for(var e=0;e<columns.length;e++){var o=columns[e]=$.extend({},columnDefaults,columns[e]);columnsById[o.id]=e,o.minWidth&&o.width<o.minWidth&&(o.width=o.minWidth),o.maxWidth&&o.width>o.maxWidth&&(o.width=o.maxWidth)}if(options.enableColumnReorder&&!$.fn.sortable)throw new Error("SlickGrid’s ‘enableColumnReorder = true’ option requires jquery-ui.sortable module to be loaded");editController={commitCurrentEdit,cancelCurrentEdit},$container.empty().css("overflow","hidden").css("outline",0).addClass(uid).addClass("ui-widget"),/relative|absolute|fixed/.test($container.css("position"))||$container.css("position","relative"),$focusSink=$("<div tabIndex=’0’ hideFocus style=’position:fixed;width:0;height:0;top:0;left:0;outline:0;’></div>").appendTo($container),options.createPreHeaderPanel&&($preHeaderPanelScroller=$("<div class=’slick-preheader-panel ui-state-default’ style=’overflow:hidden;position:relative;’ />").appendTo($container),$preHeaderPanel=$("<div />").appendTo($preHeaderPanelScroller),$preHeaderPanelSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").appendTo($preHeaderPanelScroller),options.showPreHeaderPanel||$preHeaderPanelScroller.hide()),$headerScroller=$("<div class=’slick-header ui-state-default’ />").appendTo($container),$headers=$("<div class=’slick-header-columns’ style=’left:-1000px’ />").appendTo($headerScroller),$headerRowScroller=$("<div class=’slick-headerrow ui-state-default’ />").appendTo($container),$headerRow=$("<div class=’slick-headerrow-columns’ />").appendTo($headerRowScroller),$headerRowSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").appendTo($headerRowScroller),$topPanelScroller=$("<div class=’slick-top-panel-scroller ui-state-default’ />").appendTo($container),$topPanel=$("<div class=’slick-top-panel’ style=’width:10000px’ />").appendTo($topPanelScroller),options.showTopPanel||$topPanelScroller.hide(),options.showHeaderRow||$headerRowScroller.hide(),($viewport=$("<div class=’slick-viewport’ style=’width:100%;overflow:auto;outline:0;position:relative;;’>").appendTo($container)).css("overflow-y",options.alwaysShowVerticalScroll?"scroll":options.autoHeight?"hidden":"auto"),$viewport.css("overflow-x",options.forceFitColumns?"hidden":"auto"),options.viewportClass&&$viewport.toggleClass(options.viewportClass,!0),$canvas=$("<div class=’grid-canvas’ />").appendTo($viewport),scrollbarDimensions=scrollbarDimensions||measureScrollbar(),$preHeaderPanelSpacer&&$preHeaderPanelSpacer.css("width",getCanvasWidth()+scrollbarDimensions.width+"px"),$headers.width(getHeadersWidth()),$headerRowSpacer.css("width",getCanvasWidth()+scrollbarDimensions.width+"px"),options.createFooterRow&&($footerRowScroller=$("<div class=’slick-footerrow ui-state-default’ />").appendTo($container),$footerRow=$("<div class=’slick-footerrow-columns’ />").appendTo($footerRowScroller),$footerRowSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").css("width",getCanvasWidth()+scrollbarDimensions.width+"px").appendTo($footerRowScroller),options.showFooterRow||$footerRowScroller.hide()),$focusSink2=$focusSink.clone().appendTo($container),options.explicitInitialization||finishInitialization()}function finishInitialization(){initialized||(initialized=!0,viewportW=parseFloat($.css($container[0],"width",!0)),measureCellPaddingAndBorder(),disableSelection($headers),options.enableTextSelectionOnCells||$viewport.on("selectstart.ui",(function(e){return $(e.target).is("input,textarea")})),updateColumnCaches(),createColumnHeaders(),setupColumnSort(),createCssRules(),resizeCanvas(),bindAncestorScrollEvents(),$container.on("resize.slickgrid",resizeCanvas),$viewport.on("scroll",handleScroll),$headerScroller.on("contextmenu",handleHeaderContextMenu).on("click",handleHeaderClick).on("mouseenter",".slick-header-column",handleHeaderMouseEnter).on("mouseleave",".slick-header-column",handleHeaderMouseLeave),$headerRowScroller.on("scroll",handleHeaderRowScroll),options.createFooterRow&&$footerRowScroller.on("scroll",handleFooterRowScroll),options.createPreHeaderPanel&&$preHeaderPanelScroller.on("scroll",handlePreHeaderPanelScroll),$focusSink.add($focusSink2).on("keydown",handleKeyDown),$canvas.on("keydown",handleKeyDown).on("click",handleClick).on("dblclick",handleDblClick).on("contextmenu",handleContextMenu).on("draginit",handleDragInit).on("dragstart",{distance:3},handleDragStart).on("drag",handleDrag).on("dragend",handleDragEnd).on("mouseenter",".slick-cell",handleMouseEnter).on("mouseleave",".slick-cell",handleMouseLeave),navigator.userAgent.toLowerCase().match(/webkit/)&&navigator.userAgent.toLowerCase().match(/macintosh/)&&$canvas.on("mousewheel",handleMouseWheel),restoreCssFromHiddenInit())}function cacheCssForHiddenInit(){($hiddenParents=$container.parents().addBack().not(":visible")).each((function(){var e={};for(var o in cssShow)e[o]=this.style[o],this.style[o]=cssShow[o];oldProps.push(e)}))}function restoreCssFromHiddenInit(){$hiddenParents.each((function(e){var o=oldProps[e];for(var t in cssShow)this.style[t]=o[t]}))}function registerPlugin(e){plugins.unshift(e),e.init(self)}function unregisterPlugin(e){for(var o=plugins.length;o>=0;o–)if(plugins[o]===e){plugins[o].destroy&&plugins[o].destroy(),plugins.splice(o,1);break}}function setSelectionModel(e){selectionModel&&(selectionModel.onSelectedRangesChanged.unsubscribe(handleSelectedRangesChanged),selectionModel.destroy&&selectionModel.destroy()),(selectionModel=e)&&(selectionModel.init(self),selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged))}function getSelectionModel(){return selectionModel}function getCanvasNode(){return $canvas[0]}function measureScrollbar(){var e=$(‘<div class="’+$viewport.className+’" style="position:absolute; top:-10000px; left:-10000px; overflow:auto; width:100px; height:100px;"></div>’).appendTo($viewport),o=$(‘<div style="width:200px; height:200px; overflow:auto;"></div>’).appendTo(e),t={width:e[0].offsetWidth-e[0].clientWidth,height:e[0].offsetHeight-e[0].clientHeight};return o.remove(),e.remove(),t}function getColumnTotalWidth(e){for(var o=0,t=0,l=columns.length;t<l;t++){o+=columns[t].width}return e&&(o+=scrollbarDimensions.width),o}function getHeadersWidth(){var e=getColumnTotalWidth(!options.autoHeight);return Math.max(e,viewportW)+1e3}function getCanvasWidth(){for(var e=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,o=0,t=columns.length;t–;)o+=columns[t].width;return options.fullWidthRows?Math.max(o,e):o}function updateCanvasWidth(e){var o=canvasWidth;(canvasWidth=getCanvasWidth())!=o&&($canvas.width(canvasWidth),$headerRow.width(canvasWidth),options.createFooterRow&&$footerRow.width(canvasWidth),options.createPreHeaderPanel&&$preHeaderPanel.width(canvasWidth),$headers.width(getHeadersWidth()),viewportHasHScroll=canvasWidth>viewportW-scrollbarDimensions.width);var t=canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0);$headerRowSpacer.width(t),options.createFooterRow&&$footerRowSpacer.width(t),options.createPreHeaderPanel&&$preHeaderPanelSpacer.width(t),(canvasWidth!=o||e)&&applyColumnWidths()}function disableSelection(e){e&&e.jquery&&e.attr("unselectable","on").css("MozUserSelect","none").on("selectstart.ui",(function(){return!1}))}function getMaxSupportedCssHeight(){for(var e=1e6,o=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,t=$("<div style=’display:none’ />").appendTo(document.body);;){var l=2*e;if(t.css("height",l),l>o||t.height()!==l)break;e=l}return t.remove(),e}function getUID(){return uid}function getHeaderColumnWidthDiff(){return headerColumnWidthDiff}function getScrollbarDimensions(){return scrollbarDimensions}function bindAncestorScrollEvents(){for(var e=$canvas[0];(e=e.parentNode)!=document.body&&null!=e;)if(e==$viewport[0]||e.scrollWidth!=e.clientWidth||e.scrollHeight!=e.clientHeight){var o=$(e);$boundAncestors=$boundAncestors?$boundAncestors.add(o):o,o.on("scroll."+uid,handleActiveCellPositionChange)}}function unbindAncestorScrollEvents(){$boundAncestors&&($boundAncestors.off("scroll."+uid),$boundAncestors=null)}function updateColumnHeader(e,o,t){if(initialized){var l=getColumnIndex(e);if(null!=l){var n=columns[l],r=$headers.children().eq(l);r&&(void 0!==o&&(columns[l].name=o),void 0!==t&&(columns[l].toolTip=t),trigger(self.onBeforeHeaderCellDestroy,{node:r[0],column:n,grid:self}),r.attr("title",t||"").children().eq(0).html(o),trigger(self.onHeaderCellRendered,{node:r[0],column:n,grid:self}))}}}function getHeader(){return $headers[0]}function getHeaderColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$headers.children().eq(o);return t&&t[0]}function getHeaderRow(){return $headerRow[0]}function getFooterRow(){return $footerRow[0]}function getPreHeaderPanel(){return $preHeaderPanel[0]}function getHeaderRowColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$headerRow.children().eq(o);return t&&t[0]}function getFooterRowColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$footerRow.children().eq(o);return t&&t[0]}function createColumnHeaders(){function e(){$(this).addClass("ui-state-hover")}function o(){$(this).removeClass("ui-state-hover")}$headers.find(".slick-header-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeHeaderCellDestroy,{node:this,column:e,grid:self})})),$headers.empty(),$headers.width(getHeadersWidth()),$headerRow.find(".slick-headerrow-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeHeaderRowCellDestroy,{node:this,column:e,grid:self})})),$headerRow.empty(),options.createFooterRow&&($footerRow.find(".slick-footerrow-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeFooterRowCellDestroy,{node:this,column:e})})),$footerRow.empty());for(var t=0;t<columns.length;t++){var l=columns[t],n=$("<div class=’ui-state-default slick-header-column’ />").html("<span class=’slick-column-name’>"+l.name+"</span>").width(l.width-headerColumnWidthDiff).attr("id",""+uid+l.id).attr("title",l.toolTip||"").data("column",l).addClass(l.headerCssClass||"").appendTo($headers);if((options.enableColumnReorder||l.sortable)&&n.on("mouseenter",e).on("mouseleave",o),l.sortable&&(n.addClass("slick-header-sortable"),n.append("<span class=’slick-sort-indicator"+(options.numberedMultiColumnSort&&!options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":"")+"’ />"),options.numberedMultiColumnSort&&options.sortColNumberInSeparateSpan&&n.append("<span class=’slick-sort-indicator-numbered’ />")),trigger(self.onHeaderCellRendered,{node:n[0],column:l,grid:self}),options.showHeaderRow){var r=$("<div class=’ui-state-default slick-headerrow-column l"+t+" r"+t+"’></div>").data("column",l).appendTo($headerRow);trigger(self.onHeaderRowCellRendered,{node:r[0],column:l,grid:self})}if(options.createFooterRow&&options.showFooterRow){var i=$("<div class=’ui-state-default slick-footerrow-column l"+t+" r"+t+"’></div>").data("column",l).appendTo($footerRow);trigger(self.onFooterRowCellRendered,{node:i[0],column:l})}}setSortColumns(sortColumns),setupColumnResize(),options.enableColumnReorder&&("function"==typeof options.enableColumnReorder?options.enableColumnReorder(self,$headers,headerColumnWidthDiff,setColumns,setupColumnResize,columns,getColumnIndex,uid,trigger):setupColumnReorder())}function setupColumnSort(){$headers.click((function(e){if(!columnResizeDragging&&(e.metaKey=e.metaKey||e.ctrlKey,!$(e.target).hasClass("slick-resizable-handle"))){var o=$(e.target).closest(".slick-header-column");if(o.length){var t=o.data("column");if(t.sortable){if(!getEditorLock().commitCurrentEdit())return;for(var l=null,n=0;n<sortColumns.length;n++)if(sortColumns[n].columnId==t.id){(l=sortColumns[n]).sortAsc=!l.sortAsc;break}var r=!!l;options.tristateMultiColumnSort?(l||(l={columnId:t.id,sortAsc:t.defaultSortAsc}),r&&l.sortAsc&&(sortColumns.splice(n,1),l=null),options.multiColumnSort||(sortColumns=[]),!l||r&&options.multiColumnSort||sortColumns.push(l)):e.metaKey&&options.multiColumnSort?l&&sortColumns.splice(n,1):((e.shiftKey||e.metaKey)&&options.multiColumnSort||(sortColumns=[]),l?0==sortColumns.length&&sortColumns.push(l):(l={columnId:t.id,sortAsc:t.defaultSortAsc},sortColumns.push(l))),setSortColumns(sortColumns),options.multiColumnSort?trigger(self.onSort,{multiColumnSort:!0,sortCols:$.map(sortColumns,(function(e){return{sortCol:columns[getColumnIndex(e.columnId)],sortAsc:e.sortAsc}}))},e):trigger(self.onSort,{multiColumnSort:!1,sortCol:sortColumns.length>0?t:null,sortAsc:!(sortColumns.length>0)||sortColumns[0].sortAsc},e)}}}}))}function setupColumnReorder(){$headers.filter(":ui-sortable").sortable("destroy"),$headers.sortable({containment:"parent",distance:3,axis:"x",cursor:"default",tolerance:"intersection",helper:"clone",placeholder:"slick-sortable-placeholder ui-state-default slick-header-column",start:function(e,o){o.placeholder.width(o.helper.outerWidth()-headerColumnWidthDiff),$(o.helper).addClass("slick-header-column-active")},beforeStop:function(e,o){$(o.helper).removeClass("slick-header-column-active")},stop:function(e){if(getEditorLock().commitCurrentEdit()){for(var o=$headers.sortable("toArray"),t=[],l=0;l<o.length;l++)t.push(columns[getColumnIndex(o[l].replace(uid,""))]);setColumns(t),trigger(self.onColumnsReordered,{}),e.stopPropagation(),setupColumnResize()}else $(this).sortable("cancel")}})}function setupColumnResize(){var e,o,t,l,n,r,i,s;(l=$headers.children()).find(".slick-resizable-handle").remove(),l.each((function(e,o){e>=columns.length||columns[e].resizable&&(void 0===i&&(i=e),s=e)})),void 0!==i&&l.each((function(a,c){a>=columns.length||a<i||options.forceFitColumns&&a>=s||($(c),$("<div class=’slick-resizable-handle’ />").appendTo(c).on("dragstart",(function(i,s){if(!getEditorLock().commitCurrentEdit())return!1;t=i.pageX,$(this).parent().addClass("slick-header-column-active");var c=null,d=null;if(l.each((function(e,o){e>=columns.length||(columns[e].previousWidth=$(o).outerWidth())})),options.forceFitColumns)for(c=0,d=0,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(null!==d&&(o.maxWidth?d+=o.maxWidth-o.previousWidth:d=null),c+=o.previousWidth-Math.max(o.minWidth||0,absoluteColumnMinWidth));var u=0,h=0;for(e=0;e<=a;e++)(o=columns[e]).resizable&&(null!==h&&(o.maxWidth?h+=o.maxWidth-o.previousWidth:h=null),u+=o.previousWidth-Math.max(o.minWidth||0,absoluteColumnMinWidth));null===c&&(c=1e5),null===u&&(u=1e5),null===d&&(d=1e5),null===h&&(h=1e5),r=t+Math.min(c,h),n=t-Math.min(u,d)})).on("drag",(function(l,i){columnResizeDragging=!0;var s,c,d=Math.min(r,Math.max(n,l.pageX))-t;if(d<0){for(c=d,e=a;e>=0;e–)(o=columns[e]).resizable&&(s=Math.max(o.minWidth||0,absoluteColumnMinWidth),c&&o.previousWidth+c<s?(c+=o.previousWidth-s,o.width=s):(o.width=o.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-d,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(c&&o.maxWidth&&o.maxWidth-o.previousWidth<c?(c-=o.maxWidth-o.previousWidth,o.width=o.maxWidth):(o.width=o.previousWidth+c,c=0))}else{for(c=d,e=a;e>=0;e–)(o=columns[e]).resizable&&(c&&o.maxWidth&&o.maxWidth-o.previousWidth<c?(c-=o.maxWidth-o.previousWidth,o.width=o.maxWidth):(o.width=o.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-d,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(s=Math.max(o.minWidth||0,absoluteColumnMinWidth),c&&o.previousWidth+c<s?(c+=o.previousWidth-s,o.width=s):(o.width=o.previousWidth+c,c=0))}applyColumnHeaderWidths(),options.syncColumnCellResize&&applyColumnWidths()})).on("dragend",(function(t,n){var r;for($(this).parent().removeClass("slick-header-column-active"),e=0;e<columns.length;e++)o=columns[e],r=$(l[e]).outerWidth(),o.previousWidth!==r&&o.rerenderOnResize&&invalidateAllRows();updateCanvasWidth(!0),render(),trigger(self.onColumnsResized,{}),setTimeout((function(){columnResizeDragging=!1}),300)})))}))}function getVBoxDelta(e){var o=0;return $.each(["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],(function(t,l){o+=parseFloat(e.css(l))||0})),o}function measureCellPaddingAndBorder(){var e,o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=$.fn.jquery.split(".");jQueryNewWidthBehaviour=1==l[0]&&l[1]>=8||l[0]>=2,e=$("<div class=’ui-state-default slick-header-column’ style=’visibility:hidden’>-</div>").appendTo($headers),headerColumnWidthDiff=headerColumnHeightDiff=0,"border-box"!=e.css("box-sizing")&&"border-box"!=e.css("-moz-box-sizing")&&"border-box"!=e.css("-webkit-box-sizing")&&($.each(o,(function(o,t){headerColumnWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){headerColumnHeightDiff+=parseFloat(e.css(t))||0}))),e.remove();var n=$("<div class=’slick-row’ />").appendTo($canvas);e=$("<div class=’slick-cell’ id=’’ style=’visibility:hidden’>-</div>").appendTo(n),cellWidthDiff=cellHeightDiff=0,"border-box"!=e.css("box-sizing")&&"border-box"!=e.css("-moz-box-sizing")&&"border-box"!=e.css("-webkit-box-sizing")&&($.each(o,(function(o,t){cellWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){cellHeightDiff+=parseFloat(e.css(t))||0}))),n.remove(),absoluteColumnMinWidth=Math.max(headerColumnWidthDiff,cellWidthDiff)}function createCssRules(){$style=$("<style type=’text/css’ rel=’stylesheet’ />").appendTo($("head"));for(var e=options.rowHeight-cellHeightDiff,o=["."+uid+" .slick-header-column { left: 1000px; }","."+uid+" .slick-top-panel { height:"+options.topPanelHeight+"px; }","."+uid+" .slick-preheader-panel { height:"+options.preHeaderPanelHeight+"px; }","."+uid+" .slick-headerrow-columns { height:"+options.headerRowHeight+"px; }","."+uid+" .slick-footerrow-columns { height:"+options.footerRowHeight+"px; }","."+uid+" .slick-cell { height:"+e+"px; }","."+uid+" .slick-row { height:"+options.rowHeight+"px; }"],t=0;t<columns.length;t++)o.push("."+uid+" .l"+t+" { }"),o.push("."+uid+" .r"+t+" { }");$style[0].styleSheet?$style[0].styleSheet.cssText=o.join(" "):$style[0].appendChild(document.createTextNode(o.join(" ")))}function getColumnCssRules(e){var o;if(!stylesheet){var t=document.styleSheets;for(o=0;o<t.length;o++)if((t[o].ownerNode||t[o].owningElement)==$style[0]){stylesheet=t[o];break}if(!stylesheet)throw new Error("Cannot find stylesheet.");columnCssRulesL=[],columnCssRulesR=[];var l,n,r=stylesheet.cssRules||stylesheet.rules;for(o=0;o<r.length;o++){var i=r[o].selectorText;(l=/\.l\d+/.exec(i))?(n=parseInt(l[0].substr(2,l[0].length-2),10),columnCssRulesL[n]=r[o]):(l=/\.r\d+/.exec(i))&&(n=parseInt(l[0].substr(2,l[0].length-2),10),columnCssRulesR[n]=r[o])}}return{left:columnCssRulesL[e],right:columnCssRulesR[e]}}function removeCssRules(){$style.remove(),stylesheet=null}function destroy(){getEditorLock().cancelCurrentEdit(),trigger(self.onBeforeDestroy,{});for(var e=plugins.length;e–;)unregisterPlugin(plugins[e]);options.enableColumnReorder&&$headers.filter(":ui-sortable").sortable("destroy"),unbindAncestorScrollEvents(),$container.off(".slickgrid"),removeCssRules(),$canvas.off("draginit dragstart dragend drag"),$container.empty().removeClass(uid)}function trigger(e,o,t){return t=t||new Slick.EventData,(o=o||{}).grid=self,e.notify(o,t,self)}function getEditorLock(){return options.editorLock}function getEditController(){return editController}function getColumnIndex(e){return columnsById[e]}function autosizeColumns(){var e,o,t,l=[],n=0,r=0,i=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;for(e=0;e<columns.length;e++)o=columns[e],l.push(o.width),r+=o.width,o.resizable&&(n+=o.width-Math.max(o.minWidth,absoluteColumnMinWidth));for(t=r;r>i&&n;){var s=(r-i)/n;for(e=0;e<columns.length&&r>i;e++){o=columns[e];var a=l[e];if(!(!o.resizable||a<=o.minWidth||a<=absoluteColumnMinWidth)){var c=Math.max(o.minWidth,absoluteColumnMinWidth),d=Math.floor(s*(a-c))||1;r-=d=Math.min(d,a-c),n-=d,l[e]-=d}}if(t<=r)break;t=r}for(t=r;r<i;){var u=i/r;for(e=0;e<columns.length&&r<i;e++){o=columns[e];var h,p=l[e];r+=h=!o.resizable||o.maxWidth<=p?0:Math.min(Math.floor(u*p)-p,o.maxWidth-p||1e6)||1,l[e]+=r<=i?h:0}if(t>=r)break;t=r}var g=!1;for(e=0;e<columns.length;e++)columns[e].rerenderOnResize&&columns[e].width!=l[e]&&(g=!0),columns[e].width=l[e];applyColumnHeaderWidths(),updateCanvasWidth(!0),trigger(self.onAutosizeColumns,{columns}),g&&(invalidateAllRows(),render())}function applyColumnHeaderWidths(){if(initialized){for(var e,o=0,t=$headers.children(),l=columns.length;o<l;o++)e=$(t[o]),jQueryNewWidthBehaviour?e.outerWidth()!==columns[o].width&&e.outerWidth(columns[o].width):e.width()!==columns[o].width-headerColumnWidthDiff&&e.width(columns[o].width-headerColumnWidthDiff);updateColumnCaches()}}function applyColumnWidths(){for(var e,o,t=0,l=0;l<columns.length;l++)e=columns[l].width,(o=getColumnCssRules(l)).left.style.left=t+"px",o.right.style.right=canvasWidth-t-e+"px",t+=columns[l].width}function setSortColumn(e,o){setSortColumns([{columnId:e,sortAsc:o}])}function setSortColumns(e){sortColumns=e;var o=options.numberedMultiColumnSort&&sortColumns.length>1,t=$headers.children();t.removeClass("slick-header-column-sorted").find(".slick-sort-indicator").removeClass("slick-sort-indicator-asc slick-sort-indicator-desc"),t.find(".slick-sort-indicator-numbered").text(""),$.each(sortColumns,(function(e,l){null==l.sortAsc&&(l.sortAsc=!0);var n=getColumnIndex(l.columnId);null!=n&&(t.eq(n).addClass("slick-header-column-sorted").find(".slick-sort-indicator").addClass(l.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),o&&t.eq(n).find(".slick-sort-indicator-numbered").text(e+1))}))}function getSortColumns(){return sortColumns}function handleSelectedRangesChanged(e,o){selectedRows=[];for(var t={},l=0;l<o.length;l++)for(var n=o[l].fromRow;n<=o[l].toRow;n++){t[n]||(selectedRows.push(n),t[n]={});for(var r=o[l].fromCell;r<=o[l].toCell;r++)canCellBeSelected(n,r)&&(t[n][columns[r].id]=options.selectedCellCssClass)}setCellCssStyles(options.selectedCellCssClass,t),trigger(self.onSelectedRowsChanged,{rows:getSelectedRows()},e)}function getColumns(){return columns}function updateColumnCaches(){columnPosLeft=[],columnPosRight=[];for(var e=0,o=0,t=columns.length;o<t;o++)columnPosLeft[o]=e,columnPosRight[o]=e+columns[o].width,e+=columns[o].width}function setColumns(e){columns=e,columnsById={};for(var o=0;o<columns.length;o++){var t=columns[o]=$.extend({},columnDefaults,columns[o]);columnsById[t.id]=o,t.minWidth&&t.width<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&t.width>t.maxWidth&&(t.width=t.maxWidth)}updateColumnCaches(),initialized&&(invalidateAllRows(),createColumnHeaders(),removeCssRules(),createCssRules(),resizeCanvas(),applyColumnWidths(),handleScroll())}function getOptions(){return options}function setOptions(e,o){getEditorLock().commitCurrentEdit()&&(makeActiveCellNormal(),options.enableAddRow!==e.enableAddRow&&invalidateRow(getDataLength()),options=$.extend(options,e),validateAndEnforceOptions(),$viewport.css("overflow-y",options.autoHeight?"hidden":"auto"),o||render())}function validateAndEnforceOptions(){options.autoHeight&&(options.leaveSpaceForNewRows=!1)}function setData(e,o){data=e,invalidateAllRows(),updateRowCount(),o&&scrollTo(0)}function getData(){return data}function getDataLength(){return data.getLength?data.getLength():data.length}function getDataLengthIncludingAddNew(){return getDataLength()+(options.enableAddRow&&(!pagingActive||pagingIsLastPage)?1:0)}function getDataItem(e){return data.getItem?data.getItem(e):data[e]}function getTopPanel(){return $topPanel[0]}function setTopPanelVisibility(e){options.showTopPanel!=e&&(options.showTopPanel=e,e?$topPanelScroller.slideDown("fast",resizeCanvas):$topPanelScroller.slideUp("fast",resizeCanvas))}function setHeaderRowVisibility(e){options.showHeaderRow!=e&&(options.showHeaderRow=e,e?$headerRowScroller.slideDown("fast",resizeCanvas):$headerRowScroller.slideUp("fast",resizeCanvas))}function setFooterRowVisibility(e){options.showFooterRow!=e&&(options.showFooterRow=e,e?$footerRowScroller.slideDown("fast",resizeCanvas):$footerRowScroller.slideUp("fast",resizeCanvas))}function setPreHeaderPanelVisibility(e){options.showPreHeaderPanel!=e&&(options.showPreHeaderPanel=e,e?$preHeaderPanelScroller.slideDown("fast",resizeCanvas):$preHeaderPanelScroller.slideUp("fast",resizeCanvas))}function getContainerNode(){return $container.get(0)}function getRowTop(e){return options.rowHeight*e-offset}function getRowFromPosition(e){return Math.floor((e+offset)/options.rowHeight)}function scrollTo(e){e=Math.max(e,0),e=Math.min(e,th-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0));var o=offset;page=Math.min(n-1,Math.floor(e/ph));var t=e-(offset=Math.round(page*cj));offset!=o&&(cleanupRows(getVisibleRange(t)),updateRowPositions());prevScrollTop!=t&&(vScrollDir=prevScrollTop+o<t+offset?1:-1,$viewport[0].scrollTop=lastRenderedScrollTop=scrollTop=prevScrollTop=t,trigger(self.onViewportChanged,{}))}function defaultFormatter(e,o,t,l,n,r){return null==t?"":(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function getFormatter(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e),l=t&&t.columns&&(t.columns[o.id]||t.columns[getColumnIndex(o.id)]);return l&&l.formatter||t&&t.formatter||o.formatter||options.formatterFactory&&options.formatterFactory.getFormatter(o)||options.defaultFormatter}function getEditor(e,o){var t=columns[o],l=data.getItemMetadata&&data.getItemMetadata(e),n=l&&l.columns;return n&&n[t.id]&&void 0!==n[t.id].editor?n[t.id].editor:n&&n[o]&&void 0!==n[o].editor?n[o].editor:t.editor||options.editorFactory&&options.editorFactory.getEditor(t)}function getDataItemValueForColumn(e,o){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(e,o):e[o.field]}function appendRowHtml(e,o,t,l){var n=getDataItem(o),r="slick-row"+(o<l&&!n?" loading":"")+(o===activeRow&&options.showCellSelection?" active":"")+(o%2==1?" odd":" even");n||(r+=" "+options.addNewRowCssClass);var i,s,a=data.getItemMetadata&&data.getItemMetadata(o);a&&a.cssClasses&&(r+=" "+a.cssClasses),e.push("<div class=’ui-widget-content "+r+"’ style=’top:"+getRowTop(o)+"px’>");for(var c=0,d=columns.length;c<d;c++){if(s=columns[c],i=1,a&&a.columns){var u=a.columns[s.id]||a.columns[c];""===(i=u&&u.colspan||1)&&(i=d-c)}if(columnPosRight[Math.min(d-1,c+i-1)]>t.leftPx){if(columnPosLeft[c]>t.rightPx)break;appendCellHtml(e,o,c,i,n)}i>1&&(c+=i-1)}e.push("</div>")}function appendCellHtml(e,o,t,l,n){var r=columns[t],i="slick-cell l"+t+" r"+Math.min(columns.length-1,t+l-1)+(r.cssClass?" "+r.cssClass:"");for(var s in o===activeRow&&t===activeCell&&options.showCellSelection&&(i+=" active"),cellCssClasses)cellCssClasses[s][o]&&cellCssClasses[s][o][r.id]&&(i+=" "+cellCssClasses[s][o][r.id]);var a=null,c="";n&&(a=getDataItemValueForColumn(n,r),null==(c=getFormatter(o,r)(o,t,a,r,n,self))&&(c=""));var d=trigger(self.onBeforeAppendCell,{row:o,cell:t,value:a,dataContext:n})||"";d+=c&&c.addClasses?(d?" ":"")+c.addClasses:"",e.push("<div class=’"+i+(d?" "+d:"")+"’>"),n&&e.push("[object Object]"!==Object.prototype.toString.call(c)?c:c.text),e.push("</div>"),rowsCache[o].cellRenderQueue.push(t),rowsCache[o].cellColSpans[t]=l}function cleanupRows(e){for(var o in rowsCache)(o=parseInt(o,10))!==activeRow&&(o<e.top||o>e.bottom)&&removeRowFromCache(o);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function invalidate(){updateRowCount(),invalidateAllRows(),render()}function invalidateAllRows(){for(var e in currentEditor&&makeActiveCellNormal(),rowsCache)removeRowFromCache(e);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function queuePostProcessedRowForCleanup(e,o,t){for(var l in postProcessgroupId++,o)o.hasOwnProperty(l)&&postProcessedCleanupQueue.push({actionType:"C",groupId:postProcessgroupId,node:e.cellNodesByColumnIdx[0|l],columnIdx:0|l,rowIdx:t});postProcessedCleanupQueue.push({actionType:"R",groupId:postProcessgroupId,node:e.rowNode}),$(e.rowNode).detach()}function queuePostProcessedCellForCleanup(e,o,t){postProcessedCleanupQueue.push({actionType:"C",groupId:postProcessgroupId,node:e,columnIdx:o,rowIdx:t}),$(e).detach()}function removeRowFromCache(e){var o=rowsCache[e];o&&(o.rowNode&&(rowNodeFromLastMouseWheelEvent===o.rowNode?(o.rowNode.style.display="none",zombieRowNodeFromLastMouseWheelEvent=rowNodeFromLastMouseWheelEvent,zombieRowCacheFromLastMouseWheelEvent=o,zombieRowPostProcessedFromLastMouseWheelEvent=postProcessedRows[e]):options.enableAsyncPostRenderCleanup&&postProcessedRows[e]?queuePostProcessedRowForCleanup(o,postProcessedRows[e],e):$canvas[0].removeChild(o.rowNode)),delete rowsCache[e],delete postProcessedRows[e],renderedRows–,counter_rows_removed++)}function invalidateRows(e){var o,t;if(e&&e.length){for(vScrollDir=0,t=e.length,o=0;o<t;o++)currentEditor&&activeRow===e[o]&&makeActiveCellNormal(),rowsCache[e[o]]&&removeRowFromCache(e[o]);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}}function invalidateRow(e){(e||0===e)&&invalidateRows([e])}function applyFormatResultToCellNode(e,o,t){null==e&&(e=""),"[object Object]"===Object.prototype.toString.call(e)?(o.innerHTML=e.text,e.removeClasses&&!t&&$(o).removeClass(e.removeClasses),e.addClasses&&$(o).addClass(e.addClasses)):o.innerHTML=e}function updateCell(e,o){var t=getCellNode(e,o);if(t){var l=columns[o],n=getDataItem(e);if(currentEditor&&activeRow===e&&activeCell===o)currentEditor.loadValue(n);else applyFormatResultToCellNode(n?getFormatter(e,l)(e,o,getDataItemValueForColumn(n,l),l,n,self):"",t),invalidatePostProcessingResults(e)}}function updateRow(e){var o=rowsCache[e];if(o){ensureCellNodesInRowsCache(e);var t=getDataItem(e);for(var l in o.cellNodesByColumnIdx)if(o.cellNodesByColumnIdx.hasOwnProperty(l)){var n=columns[l|=0],r=o.cellNodesByColumnIdx[l];e===activeRow&&l===activeCell&¤tEditor?currentEditor.loadValue(t):t?applyFormatResultToCellNode(getFormatter(e,n)(e,l,getDataItemValueForColumn(t,n),n,t,self),r):r.innerHTML=""}invalidatePostProcessingResults(e)}}function getViewportHeight(){return parseFloat($.css($container[0],"height",!0))-parseFloat($.css($container[0],"paddingTop",!0))-parseFloat($.css($container[0],"paddingBottom",!0))-parseFloat($.css($headerScroller[0],"height"))-getVBoxDelta($headerScroller)-(options.showTopPanel?options.topPanelHeight+getVBoxDelta($topPanelScroller):0)-(options.showHeaderRow?options.headerRowHeight+getVBoxDelta($headerRowScroller):0)-(options.createFooterRow&&options.showFooterRow?options.footerRowHeight+getVBoxDelta($footerRowScroller):0)-(options.createPreHeaderPanel&&options.showPreHeaderPanel?options.preHeaderPanelHeight+getVBoxDelta($preHeaderPanelScroller):0)}function resizeCanvas(){initialized&&(viewportH=options.autoHeight?options.rowHeight*getDataLengthIncludingAddNew():getViewportHeight(),numVisibleRows=Math.ceil(viewportH/options.rowHeight),viewportW=parseFloat($.css($container[0],"width",!0)),options.autoHeight||$viewport.height(viewportH),scrollbarDimensions&&scrollbarDimensions.width||(scrollbarDimensions=measureScrollbar()),options.forceFitColumns&&autosizeColumns(),updateRowCount(),handleScroll(),lastRenderedScrollLeft=-1,render())}function updatePagingStatusFromView(e){pagingActive=0!==e.pageSize,pagingIsLastPage=e.pageNum==e.totalPages-1}function updateRowCount(){if(initialized){var e=getDataLength(),o=getDataLengthIncludingAddNew()+(options.leaveSpaceForNewRows?numVisibleRows-1:0),t=viewportHasVScroll;viewportHasVScroll=options.alwaysShowVerticalScroll||!options.autoHeight&&o*options.rowHeight>viewportH,viewportHasHScroll=canvasWidth>viewportW-scrollbarDimensions.width,makeActiveCellNormal();var l=e-1;for(var r in rowsCache)r>l&&removeRowFromCache(r);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup(),activeCellNode&&activeRow>l&&resetActiveCell();var i=h;(th=Math.max(options.rowHeight*o,viewportH-scrollbarDimensions.height))<maxSupportedCssHeight?(h=ph=th,n=1,cj=0):(ph=(h=maxSupportedCssHeight)/100,n=Math.floor(th/ph),cj=(th-h)/(n-1)),h!==i&&($canvas.css("height",h),scrollTop=$viewport[0].scrollTop);var s=scrollTop+offset<=th-viewportH;0==th||0==scrollTop?page=offset=0:scrollTo(s?scrollTop+offset:th-viewportH),h!=i&&options.autoHeight&&resizeCanvas(),options.forceFitColumns&&t!=viewportHasVScroll&&autosizeColumns(),updateCanvasWidth(!1)}}function getVisibleRange(e,o){return null==e&&(e=scrollTop),null==o&&(o=scrollLeft),{top:getRowFromPosition(e),bottom:getRowFromPosition(e+viewportH)+1,leftPx:o,rightPx:o+viewportW}}function getRenderedRange(e,o){var t=getVisibleRange(e,o),l=Math.round(viewportH/options.rowHeight),n=options.minRowBuffer;return-1==vScrollDir?(t.top-=l,t.bottom+=n):1==vScrollDir?(t.top-=n,t.bottom+=l):(t.top-=n,t.bottom+=n),t.top=Math.max(0,t.top),t.bottom=Math.min(getDataLengthIncludingAddNew()-1,t.bottom),t.leftPx-=viewportW,t.rightPx+=viewportW,t.leftPx=Math.max(0,t.leftPx),t.rightPx=Math.min(canvasWidth,t.rightPx),t}function ensureCellNodesInRowsCache(e){var o=rowsCache[e];if(o&&o.cellRenderQueue.length)for(var t=o.rowNode.lastChild;o.cellRenderQueue.length;){var l=o.cellRenderQueue.pop();o.cellNodesByColumnIdx[l]=t,t=t.previousSibling}}function cleanUpCells(e,o){var t,l,n=rowsCache[o],r=[];for(var i in n.cellNodesByColumnIdx)if(n.cellNodesByColumnIdx.hasOwnProperty(i)){i|=0;var s=n.cellColSpans[i];(columnPosLeft[i]>e.rightPx||columnPosRight[Math.min(columns.length-1,i+s-1)]<e.leftPx)&&(o==activeRow&&i==activeCell||r.push(i))}for(postProcessgroupId++;null!=(t=r.pop());)l=n.cellNodesByColumnIdx[t],options.enableAsyncPostRenderCleanup&&postProcessedRows[o]&&postProcessedRows[o][t]?queuePostProcessedCellForCleanup(l,t,o):n.rowNode.removeChild(l),delete n.cellColSpans[t],delete n.cellNodesByColumnIdx[t],postProcessedRows[o]&&delete postProcessedRows[o][t]}function cleanUpAndRenderCells(e){for(var o,t,l,n=[],r=[],i=e.top,s=e.bottom;i<=s;i++)if(o=rowsCache[i]){ensureCellNodesInRowsCache(i),cleanUpCells(e,i),t=0;var a=data.getItemMetadata&&data.getItemMetadata(i);a=a&&a.columns;for(var c=getDataItem(i),d=0,u=columns.length;d<u&&!(columnPosLeft[d]>e.rightPx);d++)if(null==(l=o.cellColSpans[d])){if(l=1,a){var h=a[columns[d].id]||a[d];""===(l=h&&h.colspan||1)&&(l=u-d)}columnPosRight[Math.min(u-1,d+l-1)]>e.leftPx&&(appendCellHtml(n,i,d,l,c),t++),d+=l>1?l-1:0}else d+=l>1?l-1:0;t&&(t,r.push(i))}if(n.length){var p,g,m=document.createElement("div");for(m.innerHTML=n.join("");null!=(p=r.pop());){var v;for(o=rowsCache[p];null!=(v=o.cellRenderQueue.pop());)g=m.lastChild,o.rowNode.appendChild(g),o.cellNodesByColumnIdx[v]=g}}}function renderRows(e){for(var o=$canvas[0],t=[],l=[],n=!1,r=getDataLength(),i=e.top,s=e.bottom;i<=s;i++)rowsCache[i]||(renderedRows++,l.push(i),rowsCache[i]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},appendRowHtml(t,i,e,r),activeCellNode&&activeRow===i&&(n=!0),counter_rows_rendered++);if(l.length){var a=document.createElement("div");a.innerHTML=t.join("");for(i=0,s=l.length;i<s;i++)rowsCache[l[i]].rowNode=o.appendChild(a.firstChild);n&&(activeCellNode=getCellNode(activeRow,activeCell))}}function startPostProcessing(){options.enableAsyncPostRender&&(clearTimeout(h_postrender),h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}function startPostProcessingCleanup(){options.enableAsyncPostRenderCleanup&&(clearTimeout(h_postrenderCleanup),h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay))}function invalidatePostProcessingResults(e){for(var o in postProcessedRows[e])postProcessedRows[e].hasOwnProperty(o)&&(postProcessedRows[e][o]="C");postProcessFromRow=Math.min(postProcessFromRow,e),postProcessToRow=Math.max(postProcessToRow,e),startPostProcessing()}function updateRowPositions(){for(var e in rowsCache)rowsCache[e].rowNode.style.top=getRowTop(e)+"px"}function render(){if(initialized){scrollThrottle.dequeue();var e=getVisibleRange(),o=getRenderedRange();cleanupRows(o),lastRenderedScrollLeft!=scrollLeft&&cleanUpAndRenderCells(o),renderRows(o),postProcessFromRow=e.top,postProcessToRow=Math.min(getDataLengthIncludingAddNew()-1,e.bottom),startPostProcessing(),lastRenderedScrollTop=scrollTop,lastRenderedScrollLeft=scrollLeft,h_render=null,trigger(self.onRendered,{startRow:e.top,endRow:e.bottom,grid:self})}}function handleHeaderScroll(){handleElementScroll($headerScroller[0])}function handleHeaderRowScroll(){handleElementScroll($headerRowScroller[0])}function handleFooterRowScroll(){handleElementScroll($footerRowScroller[0])}function handlePreHeaderPanelScroll(){handleElementScroll($preHeaderPanelScroller[0])}function handleElementScroll(e){var o=e.scrollLeft;o!=$viewport[0].scrollLeft&&($viewport[0].scrollLeft=o)}function handleScroll(){scrollTop=$viewport[0].scrollTop,scrollLeft=$viewport[0].scrollLeft;var e=Math.abs(scrollTop-prevScrollTop),o=Math.abs(scrollLeft-prevScrollLeft);if(o&&(prevScrollLeft=scrollLeft,$headerScroller[0].scrollLeft=scrollLeft,$topPanelScroller[0].scrollLeft=scrollLeft,$headerRowScroller[0].scrollLeft=scrollLeft,options.createFooterRow&&($footerRowScroller[0].scrollLeft=scrollLeft),options.createPreHeaderPanel&&($preHeaderPanelScroller[0].scrollLeft=scrollLeft)),e)if(vScrollDir=prevScrollTop<scrollTop?1:-1,prevScrollTop=scrollTop,e<viewportH)scrollTo(scrollTop+offset);else{var t=offset;page=h==viewportH?0:Math.min(n-1,Math.floor(scrollTop*((th-viewportH)/(h-viewportH))*(1/ph))),t!=(offset=Math.round(page*cj))&&invalidateAllRows()}if(o||e){var l=Math.abs(lastRenderedScrollLeft-scrollLeft),r=Math.abs(lastRenderedScrollTop-scrollTop);(l>20||r>20)&&(options.forceSyncScrolling||r<viewportH&&l<viewportW?render():scrollThrottle.enqueue(),trigger(self.onViewportChanged,{}))}trigger(self.onScroll,{scrollLeft,scrollTop})}function ActionThrottle(e,o){var t=!1,l=!1;function n(){l=!1}function r(){t=!0,setTimeout(i,o),e()}function i(){l?(n(),r()):t=!1}return{enqueue:function(){t?l=!0:r()},dequeue:n}}function asyncPostProcessRows(){for(var e=getDataLength();postProcessFromRow<=postProcessToRow;){var o=vScrollDir>=0?postProcessFromRow++:postProcessToRow–,t=rowsCache[o];if(t&&!(o>=e)){for(var l in postProcessedRows[o]||(postProcessedRows[o]={}),ensureCellNodesInRowsCache(o),t.cellNodesByColumnIdx)if(t.cellNodesByColumnIdx.hasOwnProperty(l)){var n=columns[l|=0],r=postProcessedRows[o][l];if(n.asyncPostRender&&"R"!==r){var i=t.cellNodesByColumnIdx[l];i&&n.asyncPostRender(i,o,getDataItem(o),n,"C"===r),postProcessedRows[o][l]="R"}}return void(h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}}}function asyncPostProcessCleanupRows(){if(postProcessedCleanupQueue.length>0){for(var e=postProcessedCleanupQueue[0].groupId;postProcessedCleanupQueue.length>0&&postProcessedCleanupQueue[0].groupId==e;){var o=postProcessedCleanupQueue.shift();if("R"==o.actionType&&$(o.node).remove(),"C"==o.actionType){var t=columns[o.columnIdx];t.asyncPostRenderCleanup&&o.node&&t.asyncPostRenderCleanup(o.node,o.rowIdx,t)}}h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay)}}function updateCellCssStylesOnRenderedRows(e,o){var t,l,n,r;for(var i in rowsCache){if(r=o&&o[i],n=e&&e[i],r)for(l in r)n&&r[l]==n[l]||(t=getCellNode(i,getColumnIndex(l)))&&$(t).removeClass(r[l]);if(n)for(l in n)r&&r[l]==n[l]||(t=getCellNode(i,getColumnIndex(l)))&&$(t).addClass(n[l])}}function addCellCssStyles(e,o){if(cellCssClasses[e])throw new Error("addCellCssStyles: cell CSS hash with key ‘"+e+"’ already exists.");cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,null),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function removeCellCssStyles(e){cellCssClasses[e]&&(updateCellCssStylesOnRenderedRows(null,cellCssClasses[e]),delete cellCssClasses[e],trigger(self.onCellCssStylesChanged,{key:e,hash:null,grid:self}))}function setCellCssStyles(e,o){var t=cellCssClasses[e];cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,t),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function getCellCssStyles(e){return cellCssClasses[e]}function flashCell(e,o,t){if(t=t||100,rowsCache[e]){var l=$(getCellNode(e,o)),n=function(e){e&&setTimeout((function(){l.queue((function(){l.toggleClass(options.cellFlashingCssClass).dequeue(),n(e-1)}))}),t)};n(4)}}function handleMouseWheel(e){var o=$(e.target).closest(".slick-row")[0];o!=rowNodeFromLastMouseWheelEvent&&(zombieRowNodeFromLastMouseWheelEvent&&zombieRowNodeFromLastMouseWheelEvent!=o&&(options.enableAsyncPostRenderCleanup&&zombieRowPostProcessedFromLastMouseWheelEvent?queuePostProcessedRowForCleanup(zombieRowCacheFromLastMouseWheelEvent,zombieRowPostProcessedFromLastMouseWheelEvent):$canvas[0].removeChild(zombieRowNodeFromLastMouseWheelEvent),zombieRowNodeFromLastMouseWheelEvent=null,zombieRowCacheFromLastMouseWheelEvent=null,zombieRowPostProcessedFromLastMouseWheelEvent=null,options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()),rowNodeFromLastMouseWheelEvent=o)}function handleDragInit(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var l=trigger(self.onDragInit,o,e);return!!e.isImmediatePropagationStopped()&&l}function handleDragStart(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var l=trigger(self.onDragStart,o,e);return!!e.isImmediatePropagationStopped()&&l}function handleDrag(e,o){return trigger(self.onDrag,o,e)}function handleDragEnd(e,o){trigger(self.onDragEnd,o,e)}function handleKeyDown(e){trigger(self.onKeyDown,{row:activeRow,cell:activeCell},e);var o=e.isImmediatePropagationStopped(),t=Slick.keyCode;if(!o&&!e.shiftKey&&!e.altKey){if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;e.which==t.HOME?o=e.ctrlKey?navigateTop():navigateRowStart():e.which==t.END&&(o=e.ctrlKey?navigateBottom():navigateRowEnd())}if(!o)if(e.shiftKey||e.altKey||e.ctrlKey)e.which!=t.TAB||!e.shiftKey||e.ctrlKey||e.altKey||(o=navigatePrev());else{if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which==t.ESCAPE){if(!getEditorLock().isActive())return;cancelEditAndSetFocus()}else e.which==t.PAGE_DOWN?(navigatePageDown(),o=!0):e.which==t.PAGE_UP?(navigatePageUp(),o=!0):e.which==t.LEFT?o=navigateLeft():e.which==t.RIGHT?o=navigateRight():e.which==t.UP?o=navigateUp():e.which==t.DOWN?o=navigateDown():e.which==t.TAB?o=navigateNext():e.which==t.ENTER&&(options.editable&&(currentEditor?activeRow===getDataLength()?navigateDown():commitEditAndSetFocus():getEditorLock().commitCurrentEdit()&&makeActiveCellEditable(void 0,void 0,e)),o=!0)}if(o){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch(e){}}}function handleClick(e){currentEditor||(e.target!=document.activeElement||$(e.target).hasClass("slick-cell"))&&setFocus();var o=getCellFromEvent(e);if(o&&(null===currentEditor||activeRow!=o.row||activeCell!=o.cell)&&(trigger(self.onClick,{row:o.row,cell:o.cell},e),!e.isImmediatePropagationStopped()&&canCellBeActive(o.row,o.cell)&&(!getEditorLock().isActive()||getEditorLock().commitCurrentEdit()))){scrollRowIntoView(o.row,!1);var t=e.target&&e.target.className===Slick.preClickClassName,l=columns[o.cell],n=!!(options.editable&&l&&l.editor&&options.suppressActiveCellChangeOnEdit);setActiveCellInternal(getCellNode(o.row,o.cell),null,t,n,e)}}function handleContextMenu(e){var o=$(e.target).closest(".slick-cell",$canvas);0!==o.length&&(activeCellNode===o[0]&&null!==currentEditor||trigger(self.onContextMenu,{},e))}function handleDblClick(e){var o=getCellFromEvent(e);!o||null!==currentEditor&&activeRow==o.row&&activeCell==o.cell||(trigger(self.onDblClick,{row:o.row,cell:o.cell},e),e.isImmediatePropagationStopped()||options.editable&&gotoCell(o.row,o.cell,!0,e))}function handleHeaderMouseEnter(e){trigger(self.onHeaderMouseEnter,{column:$(this).data("column"),grid:self},e)}function handleHeaderMouseLeave(e){trigger(self.onHeaderMouseLeave,{column:$(this).data("column"),grid:self},e)}function handleHeaderContextMenu(e){var o=$(e.target).closest(".slick-header-column",".slick-header-columns"),t=o&&o.data("column");trigger(self.onHeaderContextMenu,{column:t},e)}function handleHeaderClick(e){if(!columnResizeDragging){var o=$(e.target).closest(".slick-header-column",".slick-header-columns"),t=o&&o.data("column");t&&trigger(self.onHeaderClick,{column:t},e)}}function handleMouseEnter(e){trigger(self.onMouseEnter,{},e)}function handleMouseLeave(e){trigger(self.onMouseLeave,{},e)}function cellExists(e,o){return!(e<0||e>=getDataLength()||o<0||o>=columns.length)}function getCellFromPoint(e,o){for(var t=getRowFromPosition(o),l=0,n=0,r=0;r<columns.length&&n<e;r++)n+=columns[r].width,l++;return l<0&&(l=0),{row:t,cell:l-1}}function getCellFromNode(e){var o=/l\d+/.exec(e.className);if(!o)throw new Error("getCellFromNode: cannot get cell - "+e.className);return parseInt(o[0].substr(1,o[0].length-1),10)}function getRowFromNode(e){for(var o in rowsCache)if(rowsCache[o].rowNode===e)return 0|o;return null}function getCellFromEvent(e){var o=$(e.target).closest(".slick-cell",$canvas);if(!o.length)return null;var t=getRowFromNode(o[0].parentNode),l=getCellFromNode(o[0]);return null==t||null==l?null:{row:t,cell:l}}function getCellNodeBox(e,o){if(!cellExists(e,o))return null;for(var t=getRowTop(e),l=t+options.rowHeight-1,n=0,r=0;r<o;r++)n+=columns[r].width;return{top:t,left:n,bottom:l,right:n+columns[o].width}}function resetActiveCell(){setActiveCellInternal(null,!1)}function setFocus(){-1==tabbingDirection?$focusSink[0].focus():$focusSink2[0].focus()}function scrollCellIntoView(e,o,t){scrollRowIntoView(e,t);var l=getColspan(e,o);internalScrollColumnIntoView(columnPosLeft[o],columnPosRight[o+(l>1?l-1:0)])}function internalScrollColumnIntoView(e,o){var t=scrollLeft+viewportW;e<scrollLeft?($viewport.scrollLeft(e),handleScroll(),render()):o>t&&($viewport.scrollLeft(Math.min(e,o-$viewport[0].clientWidth)),handleScroll(),render())}function scrollColumnIntoView(e){internalScrollColumnIntoView(columnPosLeft[e],columnPosRight[e])}function setActiveCellInternal(e,o,t,l,n){null!==activeCellNode&&(makeActiveCellNormal(),$(activeCellNode).removeClass("active"),rowsCache[activeRow]&&$(rowsCache[activeRow].rowNode).removeClass("active"));null!=(activeCellNode=e)?(activeRow=getRowFromNode(activeCellNode.parentNode),activeCell=activePosX=getCellFromNode(activeCellNode),null==o&&(o=activeRow==getDataLength()||options.autoEdit),options.showCellSelection&&($(activeCellNode).addClass("active"),$(rowsCache[activeRow].rowNode).addClass("active")),options.editable&&o&&isCellPotentiallyEditable(activeRow,activeCell)&&(clearTimeout(h_editorLoader),options.asyncEditorLoading?h_editorLoader=setTimeout((function(){makeActiveCellEditable(void 0,t,n)}),options.asyncEditorLoadDelay):makeActiveCellEditable(void 0,t,n))):activeRow=activeCell=null,l||trigger(self.onActiveCellChanged,getActiveCell())}function clearTextSelection(){if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}else if(window.getSelection){var e=window.getSelection();e&&e.removeAllRanges&&e.removeAllRanges()}}function isCellPotentiallyEditable(e,o){var t=getDataLength();return!(e<t&&!getDataItem(e))&&(!(columns[o].cannotTriggerInsert&&e>=t)&&!!getEditor(e,o))}function makeActiveCellNormal(){if(currentEditor){if(trigger(self.onBeforeCellEditorDestroy,{editor:currentEditor}),currentEditor.destroy(),currentEditor=null,activeCellNode){var e=getDataItem(activeRow);if($(activeCellNode).removeClass("editable invalid"),e){var o=columns[activeCell];applyFormatResultToCellNode(getFormatter(activeRow,o)(activeRow,activeCell,getDataItemValueForColumn(e,o),o,e,self),activeCellNode),invalidatePostProcessingResults(activeRow)}}navigator.userAgent.toLowerCase().match(/msie/)&&clearTextSelection(),getEditorLock().deactivate(editController)}}function makeActiveCellEditable(e,o,t){if(activeCellNode){if(!options.editable)throw new Error("Grid : makeActiveCellEditable : should never get called when options.editable is false");if(clearTimeout(h_editorLoader),isCellPotentiallyEditable(activeRow,activeCell)){var l=columns[activeCell],n=getDataItem(activeRow);if(!1!==trigger(self.onBeforeEditCell,{row:activeRow,cell:activeCell,item:n,column:l})){getEditorLock().activate(editController),$(activeCellNode).addClass("editable");var r=e||getEditor(activeRow,activeCell);e||r.suppressClearOnEdit||(activeCellNode.innerHTML=""),currentEditor=new r({grid:self,gridPosition:absBox($container[0]),position:absBox(activeCellNode),container:activeCellNode,column:l,item:n||{},event:t,commitChanges:commitEditAndSetFocus,cancelChanges:cancelEditAndSetFocus}),n&&(currentEditor.loadValue(n),o&¤tEditor.preClick&¤tEditor.preClick()),serializedEditorValue=currentEditor.serializeValue(),currentEditor.position&&handleActiveCellPositionChange()}else setFocus()}}}function commitEditAndSetFocus(){getEditorLock().commitCurrentEdit()&&(setFocus(),options.autoEdit&&navigateDown())}function cancelEditAndSetFocus(){getEditorLock().cancelCurrentEdit()&&setFocus()}function absBox(e){var o={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:$(e).outerWidth(),height:$(e).outerHeight(),visible:!0};o.bottom=o.top+o.height,o.right=o.left+o.width;for(var t=e.offsetParent;(e=e.parentNode)!=document.body&&null!=e;)o.visible&&e.scrollHeight!=e.offsetHeight&&"visible"!=$(e).css("overflowY")&&(o.visible=o.bottom>e.scrollTop&&o.top<e.scrollTop+e.clientHeight),o.visible&&e.scrollWidth!=e.offsetWidth&&"visible"!=$(e).css("overflowX")&&(o.visible=o.right>e.scrollLeft&&o.left<e.scrollLeft+e.clientWidth),o.left-=e.scrollLeft,o.top-=e.scrollTop,e===t&&(o.left+=e.offsetLeft,o.top+=e.offsetTop,t=e.offsetParent),o.bottom=o.top+o.height,o.right=o.left+o.width;return o}function getActiveCellPosition(){return absBox(activeCellNode)}function getGridPosition(){return absBox($container[0])}function handleActiveCellPositionChange(){if(activeCellNode&&(trigger(self.onActiveCellPositionChanged,{}),currentEditor)){var e=getActiveCellPosition();currentEditor.show&¤tEditor.hide&&(e.visible?currentEditor.show():currentEditor.hide()),currentEditor.position&¤tEditor.position(e)}}function getCellEditor(){return currentEditor}function getActiveCell(){return activeCellNode?{row:activeRow,cell:activeCell}:null}function getActiveCellNode(){return activeCellNode}function scrollRowIntoView(e,o){var t=e*options.rowHeight,l=(e+1)*options.rowHeight-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0);(e+1)*options.rowHeight>scrollTop+viewportH+offset?(scrollTo(o?t:l),render()):e*options.rowHeight<scrollTop+offset&&(scrollTo(o?l:t),render())}function scrollRowToTop(e){scrollTo(e*options.rowHeight),render()}function scrollPage(e){var o=e*numVisibleRows;if(scrollTo((getRowFromPosition(scrollTop)+o)*options.rowHeight),render(),options.enableCellNavigation&&null!=activeRow){var t=activeRow+o,l=getDataLengthIncludingAddNew();t>=l&&(t=l-1),t<0&&(t=0);for(var n=0,r=null,i=activePosX;n<=activePosX;)canCellBeActive(t,n)&&(r=n),n+=getColspan(t,n);null!==r?(setActiveCellInternal(getCellNode(t,r)),activePosX=i):resetActiveCell()}}function navigatePageDown(){scrollPage(1)}function navigatePageUp(){scrollPage(-1)}function navigateTop(){navigateToRow(0)}function navigateBottom(){navigateToRow(getDataLength()-1)}function navigateToRow(e){var o=getDataLength();if(!o)return!0;if(e<0?e=0:e>=o&&(e=o-1),scrollCellIntoView(e,0,!0),options.enableCellNavigation&&null!=activeRow){for(var t=0,l=null,n=activePosX;t<=activePosX;)canCellBeActive(e,t)&&(l=t),t+=getColspan(e,t);null!==l?(setActiveCellInternal(getCellNode(e,l)),activePosX=n):resetActiveCell()}return!0}function getColspan(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e);if(!t||!t.columns)return 1;var l=t.columns[columns[o].id]||t.columns[o],n=l&&l.colspan;return n=""===n?columns.length-o:n||1}function findFirstFocusableCell(e){for(var o=0;o<columns.length;){if(canCellBeActive(e,o))return o;o+=getColspan(e,o)}return null}function findLastFocusableCell(e){for(var o=0,t=null;o<columns.length;)canCellBeActive(e,o)&&(t=o),o+=getColspan(e,o);return t}function gotoRight(e,o,t){if(o>=columns.length)return null;do{o+=getColspan(e,o)}while(o<columns.length&&!canCellBeActive(e,o));return o<columns.length?{row:e,cell:o,posX:o}:null}function gotoLeft(e,o,t){if(o<=0)return null;var l=findFirstFocusableCell(e);if(null===l||l>=o)return null;for(var n,r={row:e,cell:l,posX:l};;){if(!(n=gotoRight(r.row,r.cell,r.posX)))return null;if(n.cell>=o)return r;r=n}}function gotoDown(e,o,t){for(var l,n=getDataLengthIncludingAddNew();;){if(++e>=n)return null;for(l=o=0;o<=t;)l=o,o+=getColspan(e,o);if(canCellBeActive(e,l))return{row:e,cell:l,posX:t}}}function gotoUp(e,o,t){for(var l;;){if(–e<0)return null;for(l=o=0;o<=t;)l=o,o+=getColspan(e,o);if(canCellBeActive(e,l))return{row:e,cell:l,posX:t}}}function gotoNext(e,o,t){if(null==e&&null==o&&canCellBeActive(e=o=t=0,o))return{row:e,cell:o,posX:o};var l=gotoRight(e,o,t);if(l)return l;var n=null,r=getDataLengthIncludingAddNew();for(e===r-1&&e–;++e<r;)if(null!==(n=findFirstFocusableCell(e)))return{row:e,cell:n,posX:n};return null}function gotoPrev(e,o,t){if(null==e&&null==o&&canCellBeActive(e=getDataLengthIncludingAddNew()-1,o=t=columns.length-1))return{row:e,cell:o,posX:o};for(var l,n;!l&&!(l=gotoLeft(e,o,t));){if(–e<0)return null;o=0,null!==(n=findLastFocusableCell(e))&&(l={row:e,cell:n,posX:n})}return l}function gotoRowStart(e,o,t){var l=findFirstFocusableCell(e);return null===l?null:{row:e,cell:l,posX:l}}function gotoRowEnd(e,o,t){var l=findLastFocusableCell(e);return null===l?null:{row:e,cell:l,posX:l}}function navigateRight(){return navigate("right")}function navigateLeft(){return navigate("left")}function navigateDown(){return navigate("down")}function navigateUp(){return navigate("up")}function navigateNext(){return navigate("next")}function navigatePrev(){return navigate("prev")}function navigateRowStart(){return navigate("home")}function navigateRowEnd(){return navigate("end")}function navigate(e){if(!options.enableCellNavigation)return!1;if(!activeCellNode&&"prev"!=e&&"next"!=e)return!1;if(!getEditorLock().commitCurrentEdit())return!0;setFocus();tabbingDirection={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1}[e];var o=(0,{up:gotoUp,down:gotoDown,left:gotoLeft,right:gotoRight,prev:gotoPrev,next:gotoNext,home:gotoRowStart,end:gotoRowEnd}[e])(activeRow,activeCell,activePosX);if(o){var t=o.row==getDataLength();return scrollCellIntoView(o.row,o.cell,!t&&options.emulatePagingWhenScrolling),setActiveCellInternal(getCellNode(o.row,o.cell)),activePosX=o.posX,!0}return setActiveCellInternal(getCellNode(activeRow,activeCell)),!1}function getCellNode(e,o){return rowsCache[e]?(ensureCellNodesInRowsCache(e),rowsCache[e].cellNodesByColumnIdx[o]):null}function setActiveCell(e,o,t,l,n){initialized&&(e>getDataLength()||e<0||o>=columns.length||o<0||options.enableCellNavigation&&(scrollCellIntoView(e,o,!1),setActiveCellInternal(getCellNode(e,o),t,l,n)))}function canCellBeActive(e,o){if(!options.enableCellNavigation||e>=getDataLengthIncludingAddNew()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.focusable)return!!t.focusable;var l=t&&t.columns;return l&&l[columns[o].id]&&void 0!==l[columns[o].id].focusable?!!l[columns[o].id].focusable:l&&l[o]&&void 0!==l[o].focusable?!!l[o].focusable:!!columns[o].focusable}function canCellBeSelected(e,o){if(e>=getDataLength()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.selectable)return!!t.selectable;var l=t&&t.columns&&(t.columns[columns[o].id]||t.columns[o]);return l&&void 0!==l.selectable?!!l.selectable:!!columns[o].selectable}function gotoCell(e,o,t,l){initialized&&(canCellBeActive(e,o)&&getEditorLock().commitCurrentEdit()&&(scrollCellIntoView(e,o,!1),setActiveCellInternal(getCellNode(e,o),t||e===getDataLength()||options.autoEdit,null,options.editable,l),currentEditor||setFocus()))}function commitCurrentEdit(){var e=getDataItem(activeRow),o=columns[activeCell];if(currentEditor){if(currentEditor.isValueChanged()){var t=currentEditor.validate();if(t.valid){if(activeRow<getDataLength()){var l={row:activeRow,cell:activeCell,editor:currentEditor,serializedValue:currentEditor.serializeValue(),prevSerializedValue:serializedEditorValue,execute:function(){this.editor.applyValue(e,this.serializedValue),updateRow(this.row),trigger(self.onCellChange,{row:this.row,cell:this.cell,item:e})},undo:function(){this.editor.applyValue(e,this.prevSerializedValue),updateRow(this.row),trigger(self.onCellChange,{row:this.row,cell:this.cell,item:e})}};options.editCommandHandler?(makeActiveCellNormal(),options.editCommandHandler(e,o,l)):(l.execute(),makeActiveCellNormal())}else{var n={};currentEditor.applyValue(n,currentEditor.serializeValue()),makeActiveCellNormal(),trigger(self.onAddNewRow,{item:n,column:o})}return!getEditorLock().isActive()}return $(activeCellNode).removeClass("invalid"),$(activeCellNode).width(),$(activeCellNode).addClass("invalid"),trigger(self.onValidationError,{editor:currentEditor,cellNode:activeCellNode,validationResults:t,row:activeRow,cell:activeCell,column:o}),currentEditor.focus(),!1}makeActiveCellNormal()}return!0}function cancelCurrentEdit(){return makeActiveCellNormal(),!0}function rowsToRanges(e){for(var o=[],t=columns.length-1,l=0;l<e.length;l++)o.push(new Slick.Range(e[l],0,e[l],t));return o}function getSelectedRows(){if(!selectionModel)throw new Error("Selection model is not set");return selectedRows}function setSelectedRows(e){if(!selectionModel)throw new Error("Selection model is not set");self&&self.getEditorLock&&!self.getEditorLock().isActive()&&selectionModel.setSelectedRanges(rowsToRanges(e))}this.debug=function(){var e="";e+="\ncounter_rows_rendered: "+counter_rows_rendered,e+="\ncounter_rows_removed: "+counter_rows_removed,e+="\nrenderedRows: "+renderedRows,e+="\nnumVisibleRows: "+numVisibleRows,e+="\nmaxSupportedCssHeight: "+maxSupportedCssHeight,e+="\nn(umber of pages): "+n,e+="\n(current) page: "+page,e+="\npage height (ph): "+ph,e+="\nvScrollDir: "+vScrollDir,alert(e)},this.eval=function(expr){return eval(expr)},$.extend(this,{slickGridVersion:"2.3.23",onScroll:new Slick.Event,onSort:new Slick.Event,onHeaderMouseEnter:new Slick.Event,onHeaderMouseLeave:new Slick.Event,onHeaderContextMenu:new Slick.Event,onHeaderClick:new Slick.Event,onHeaderCellRendered:new Slick.Event,onBeforeHeaderCellDestroy:new Slick.Event,onHeaderRowCellRendered:new Slick.Event,onFooterRowCellRendered:new Slick.Event,onBeforeHeaderRowCellDestroy:new Slick.Event,onBeforeFooterRowCellDestroy:new Slick.Event,onMouseEnter:new Slick.Event,onMouseLeave:new Slick.Event,onClick:new Slick.Event,onDblClick:new Slick.Event,onContextMenu:new Slick.Event,onKeyDown:new Slick.Event,onAddNewRow:new Slick.Event,onBeforeAppendCell:new Slick.Event,onValidationError:new Slick.Event,onViewportChanged:new Slick.Event,onColumnsReordered:new Slick.Event,onColumnsResized:new Slick.Event,onCellChange:new Slick.Event,onBeforeEditCell:new Slick.Event,onBeforeCellEditorDestroy:new Slick.Event,onBeforeDestroy:new Slick.Event,onActiveCellChanged:new Slick.Event,onActiveCellPositionChanged:new Slick.Event,onDragInit:new Slick.Event,onDragStart:new Slick.Event,onDrag:new Slick.Event,onDragEnd:new Slick.Event,onSelectedRowsChanged:new Slick.Event,onCellCssStylesChanged:new Slick.Event,onAutosizeColumns:new Slick.Event,onRendered:new Slick.Event,registerPlugin,unregisterPlugin,getColumns,setColumns,getColumnIndex,updateColumnHeader,setSortColumn,setSortColumns,getSortColumns,autosizeColumns,getOptions,setOptions,getData,getDataLength,getDataItem,setData,getSelectionModel,setSelectionModel,getSelectedRows,setSelectedRows,getContainerNode,updatePagingStatusFromView,render,invalidate,invalidateRow,invalidateRows,invalidateAllRows,updateCell,updateRow,getViewport:getVisibleRange,getRenderedRange,resizeCanvas,updateRowCount,scrollRowIntoView,scrollRowToTop,scrollCellIntoView,scrollColumnIntoView,getCanvasNode,getUID,getHeaderColumnWidthDiff,getScrollbarDimensions,getHeadersWidth,getCanvasWidth,focus:setFocus,scrollTo,getCellFromPoint,getCellFromEvent,getActiveCell,setActiveCell,getActiveCellNode,getActiveCellPosition,resetActiveCell,editActiveCell:makeActiveCellEditable,getCellEditor,getCellNode,getCellNodeBox,canCellBeSelected,canCellBeActive,navigatePrev,navigateNext,navigateUp,navigateDown,navigateLeft,navigateRight,navigatePageUp,navigatePageDown,navigateTop,navigateBottom,navigateRowStart,navigateRowEnd,gotoCell,getTopPanel,setTopPanelVisibility,getPreHeaderPanel,setPreHeaderPanelVisibility,getHeader,getHeaderColumn,setHeaderRowVisibility,getHeaderRow,getHeaderRowColumn,setFooterRowVisibility,getFooterRow,getFooterRowColumn,getGridPosition,flashCell,addCellCssStyles,setCellCssStyles,removeCellCssStyles,getCellCssStyles,init:finishInitialization,destroy,getEditorLock,getEditController}),init()}module.exports={Grid:SlickGrid}},n”, ” 433: function _(t,e,a){n”, ” /!n”, ” * jquery.event.drag - v 2.3.0n”, ” * Copyright (c) 2010 Three Dub Media - http://threedubmedia.comn”, ” * Open Source MIT License - http://threedubmedia.com/code/licensen”, ” */n”, ” var n=t(426);n.fn.drag=function(t,e,a){var r="string"==typeof t?t:"",o=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==r.indexOf("drag")&&(r="drag"+r),a=(t==o?e:a)||{},o?this.on(r,a,o):this.trigger(r)};var r=n.event,o=r.special,i=o.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(t){var e=n.data(this,i.datakey),a=t.data||{};e.related+=1,n.each(i.defaults,(function(t,n){void 0!==a[t]&&(e[t]=a[t])}))},remove:function(){n.data(this,i.datakey).related-=1},setup:function(){if(!n.data(this,i.datakey)){var t=n.extend({related:0},i.defaults);n.data(this,i.datakey,t),r.add(this,"touchstart mousedown",i.init,t),this.attachEvent&&this.attachEvent("ondragstart",i.dontstart)}},teardown:function(){(n.data(this,i.datakey)||{}).related||(n.removeData(this,i.datakey),r.remove(this,"touchstart mousedown",i.init),i.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",i.dontstart))},init:function(t){if(!i.touched){var e,a=t.data;if(!(0!=t.which&&a.which>0&&t.which!=a.which)&&!n(t.target).is(a.not)&&(!a.handle||n(t.target).closest(a.handle,t.currentTarget).length)&&(i.touched="touchstart"==t.type?this:null,a.propagates=1,a.mousedown=this,a.interactions=[i.interaction(this,a)],a.target=t.target,a.pageX=t.pageX,a.pageY=t.pageY,a.dragging=null,e=i.hijack(t,"draginit",a),a.propagates))return(e=i.flatten(e))&&e.length&&(a.interactions=[],n.each(e,(function(){a.interactions.push(i.interaction(this,a))}))),a.propagates=a.interactions.length,!1!==a.drop&&o.drop&&o.drop.handler(t,a),i.textselect(!1),i.touched?r.add(i.touched,"touchmove touchend",i.handler,a):r.add(document,"mousemove mouseup",i.handler,a),!(!i.touched||a.live)&&void 0}},interaction:function(t,e){var a=t&&t.ownerDocument&&n(t)[e.relative?"position":"offset"]()||{top:0,left:0};return{drag:t,callback:new i.callback,droppable:[],offset:a}},handler:function(t){var e=t.data;switch(t.type){case!e.dragging&&"touchmove":t.preventDefault();case!e.dragging&&"mousemove":if(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2)<Math.pow(e.distance,2))break;t.target=e.target,i.hijack(t,"dragstart",e),e.propagates&&(e.dragging=!0);case"touchmove":t.preventDefault();case"mousemove":if(e.dragging){if(i.hijack(t,"drag",e),e.propagates){!1!==e.drop&&o.drop&&o.drop.handler(t,e);break}t.type="mouseup"}case"touchend":case"mouseup":default:i.touched?r.remove(i.touched,"touchmove touchend",i.handler):r.remove(document,"mousemove mouseup",i.handler),e.dragging&&(!1!==e.drop&&o.drop&&o.drop.handler(t,e),i.hijack(t,"dragend",e)),i.textselect(!0),!1===e.click&&e.dragging&&n.data(e.mousedown,"suppress.click",(new Date).getTime()+5),e.dragging=i.touched=!1}},hijack:function(t,e,a,o,d){if(a){var s,c,l,p={event:t.originalEvent,type:t.type},u=e.indexOf("drop")?"drag":"drop",g=o||0,h=isNaN(o)?a.interactions.length:o;t.type=e;var f=function(){};t.originalEvent=new n.Event(p.event,{preventDefault:f,stopPropagation:f,stopImmediatePropagation:f}),a.results=[];do{if(c=a.interactions[g]){if("dragend"!==e&&c.cancelled)continue;l=i.properties(t,a,c),c.results=[],n(d||c[u]||a.droppable).each((function(o,d){if(l.target=d,t.isPropagationStopped=function(){return!1},!1===(s=d?r.dispatch.call(d,t,l):null)?("drag"==u&&(c.cancelled=!0,a.propagates-=1),"drop"==e&&(c[u][o]=null)):"dropinit"==e&&c.droppable.push(i.element(s)||d),"dragstart"==e&&(c.proxy=n(i.element(s)||c.drag)[0]),c.results.push(s),delete t.result,"dropinit"!==e)return s})),a.results[g]=i.flatten(c.results),"dropinit"==e&&(c.droppable=i.flatten(c.droppable)),"dragstart"!=e||c.cancelled||l.update()}}while(++g<h);return t.type=p.type,t.originalEvent=p.event,i.flatten(a.results)}},properties:function(t,e,a){var n=a.callback;return n.drag=a.drag,n.proxy=a.proxy||a.drag,n.startX=e.pageX,n.startY=e.pageY,n.deltaX=t.pageX-e.pageX,n.deltaY=t.pageY-e.pageY,n.originalX=a.offset.left,n.originalY=a.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=i.flatten((a.drop||[]).slice()),n.available=i.flatten((a.droppable||[]).slice()),n},element:function(t){if(t&&(t.jquery||1==t.nodeType))return t},flatten:function(t){return n.map(t,(function(t){return t&&t.jquery?n.makeArray(t):t&&t.length?i.flatten(t):t}))},textselect:function(t){n(document)[t?"off":"on"]("selectstart",i.dontstart).css("MozUserSelect",t?"":"none"),document.unselectable=t?"off":"on"},dontstart:function(){return!1},callback:function(){}};i.callback.prototype={update:function(){o.drop&&this.available.length&&n.each(this.available,(function(t){o.drop.locate(this,t)}))}};var d=r.dispatch;r.dispatch=function(t){if(!(n.data(this,"suppress."+t.type)-(new Date).getTime()>0))return d.apply(this,arguments);n.removeData(this,"suppress."+t.type)},o.draginit=o.dragstart=o.dragend=i},n”, ” 434: function _(t,e,a){n”, ” /!n”, ” * jquery.event.drop - v 2.3.0n”, ” * Copyright (c) 2010 Three Dub Media - http://threedubmedia.comn”, ” * Open Source MIT License - http://threedubmedia.com/code/licensen”, ” /n”, ” var n=t(426);n.fn.drop=function(t,e,a){var i="string"==typeof t?t:"",o=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==i.indexOf("drop")&&(i="drop"+i),a=(t==o?e:a)||{},o?this.on(i,a,o):this.trigger(i)},n.drop=function(t){t=t||{},o.multi=!0===t.multi?1/0:!1===t.multi?1:isNaN(t.multi)?o.multi:t.multi,o.delay=t.delay||o.delay,o.tolerance=n.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:o.tolerance,o.mode=t.mode||o.mode||"intersect"};var i=n.event.special,o=n.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(t){n.data(this,o.datakey).related+=1},remove:function(){n.data(this,o.datakey).related-=1},setup:function(){if(!n.data(this,o.datakey)){n.data(this,o.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),o.targets.push(this)}},teardown:function(){if(!(n.data(this,o.datakey)||{}).related){n.removeData(this,o.datakey);var t=this;o.targets=n.grep(o.targets,(function(e){return e!==t}))}},handler:function(t,e){var a;if(e)switch(t.type){case"mousedown":case"touchstart":a=n(o.targets),"string"==typeof e.drop&&(a=a.filter(e.drop)),a.each((function(){var t=n.data(this,o.datakey);t.active=[],t.anyactive=0,t.winner=0})),e.droppable=a,i.drag.hijack(t,"dropinit",e);break;case"mousemove":case"touchmove":o.event=t,o.timer||o.tolerate(e);break;case"mouseup":case"touchend":o.timer=clearTimeout(o.timer),e.propagates&&(i.drag.hijack(t,"drop",e),i.drag.hijack(t,"dropend",e))}},locate:function(t,e){var a=n.data(t,o.datakey),i=n(t),r=i.offset()||{},d=i.outerHeight(),l=i.outerWidth(),c={elem:t,width:l,height:d,top:r.top,left:r.left,right:r.left+l,bottom:r.top+d};return a&&(a.location=c,a.index=e,a.elem=t),c},contains:function(t,e){return(e[0]||e.left)>=t.left&&(e[0]||e.right)<=t.right&&(e[1]||e.top)>=t.top&&(e[1]||e.bottom)<=t.bottom},modes:{intersect:function(t,e,a){return this.contains(a,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,a){return Math.max(0,Math.min(a.bottom,e.bottom)-Math.max(a.top,e.top))*Math.max(0,Math.min(a.right,e.right)-Math.max(a.left,e.left))},fit:function(t,e,a){return this.contains(a,e)?1:0},middle:function(t,e,a){return this.contains(a,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(t){var e,a,r,d,l,c,s,u,p=0,h=t.interactions.length,m=[o.event.pageX,o.event.pageY],f=o.tolerance||o.modes[o.mode];do{if(u=t.interactions[p]){if(!u)return;u.drop=[],l=[],c=u.droppable.length,f&&(r=o.locate(u.proxy)),e=0;do{if(s=u.droppable[e]){if(!(a=(d=n.data(s,o.datakey)).location))continue;d.winner=f?f.call(o,o.event,r,a):o.contains(a,m)?1:0,l.push(d)}}while(++e<c);l.sort(o.sort),e=0;do{(d=l[e])&&(d.winner&&u.drop.length<o.multi?(d.active[p]||d.anyactive||(!1!==i.drag.hijack(o.event,"dropstart",t,p,d.elem)[0]?(d.active[p]=1,d.anyactive+=1):d.winner=0),d.winner&&u.drop.push(d.elem)):d.active[p]&&1==d.anyactive&&(i.drag.hijack(o.event,"dropend",t,p,d.elem),d.active[p]=0,d.anyactive-=1))}while(++e<c)}}while(++p<h);o.last&&m[0]==o.last.pageX&&m[1]==o.last.pageY?delete o.timer:o.timer=setTimeout((function(){o.tolerate(t)}),o.delay),o.last=o.event}};i.dropinit=i.dropstart=i.dropend=o},n”, ” 435: function _(t,e,n){var r=t(426),i=t(428);var o={Avg:function(t){this.field_=t,this.init=function(){this.count_=0,this.nonNullCount_=0,this.sum_=0},this.accumulate=function(t){var e=t[this.field_];this.count_++,null==e||""===e||isNaN(e)||(this.nonNullCount_++,this.sum_+=parseFloat(e))},this.storeResult=function(t){t.avg||(t.avg={}),0!=this.nonNullCount_&&(t.avg[this.field_]=this.sum_/this.nonNullCount_)}},Min:function(t){this.field_=t,this.init=function(){this.min_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(null==this.min_||e<this.min_)&&(this.min_=e)},this.storeResult=function(t){t.min||(t.min={}),t.min[this.field_]=this.min_}},Max:function(t){this.field_=t,this.init=function(){this.max_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(null==this.max_||e>this.max_)&&(this.max_=e)},this.storeResult=function(t){t.max||(t.max={}),t.max[this.field_]=this.max_}},Sum:function(t){this.field_=t,this.init=function(){this.sum_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(this.sum_+=parseFloat(e))},this.storeResult=function(t){t.sum||(t.sum={}),t.sum[this.field_]=this.sum_}}};e.exports={DataView:function(t){var e,n,o,a,l,s=this,u="id",g=[],c=[],f={},p=null,h=null,d=null,m=!1,v=!0,_={},w={},$=[],y=[],I={getter:null,formatter:null,comparer:function(t,e){return t.value===e.value?0:t.value>e.value?1:-1},predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1},C=[],R=[],x=[],b=0,M=0,F=0,A=new i.Event,S=new i.Event,N=new i.Event;function E(t){for(var e,n=t=t||0,r=g.length;n<r;n++){if(void 0===(e=g[n][u]))throw new Error("Each data element must implement a unique ‘id’ property");f[e]=n}}function T(){var t=b?Math.max(1,Math.ceil(F/b)):1;return{pageSize:b,pageNum:M,totalRows:F,totalPages:t,dataView:s}}function G(t,r){v=r,n=t,e=null,!1===r&&g.reverse(),g.sort(t),!1===r&&g.reverse(),f={},E(),Z()}function D(t,r){v=r,e=t,n=null;var i=Object.prototype.toString;Object.prototype.toString="function"==typeof t?t:function(){return this[t]},!1===r&&g.reverse(),g.sort(),Object.prototype.toString=i,!1===r&&g.reverse(),f={},E(),Z()}function P(e){t.groupItemMetadataProvider||(t.groupItemMetadataProvider=new i.Data.GroupItemMetadataProvider),R=[],x=[],C=(e=e||[])instanceof Array?e:[e];for(var n=0;n<C.length;n++){var o=C[n]=r.extend(!0,{},I,C[n]);o.getterIsAFn="function"==typeof o.getter,o.compiledAccumulators=[];for(var a=o.aggregators.length;a–;)o.compiledAccumulators[a]=W(o.aggregators[a]);x[n]={}}Z()}function j(){if(!p){p={};for(var t=0,e=c.length;t<e;t++)p[c[t][u]]=t}}function z(t){return g[f[t]]}function B(t,e){if(void 0===f[t]||t!==e[u])throw new Error("Invalid or non-matching id");g[f[t]]=e,d||(d={}),d[t]=!0,Z()}function V(t,e){g.splice(t,0,e),E(t),Z()}function O(t){var e=f[t];if(void 0===e)throw new Error("Invalid id");delete f[t],g.splice(e,1),E(e),Z()}function q(t){if(!n)throw new Error("sortedAddItem() requires a sort comparer, use sort()");V(function(t){var e=0,r=g.length;for(;e<r;){var i=e+r>>>1;-1===n(g[i],t)?e=i+1:r=i}return e}(t),t)}function K(t,e){if(null==t)for(var n=0;n<C.length;n++)x[n]={},C[n].collapsed=e;else x[t]={},C[t].collapsed=e;Z()}function U(t,e,n){x[t][e]=C[t].collapsed^n,Z()}function L(t){var e,n=t.group,r=C[n.level],i=n.level==C.length,o=r.aggregators.length;if(!i&&r.aggregateChildGroups)for(var a=n.groups.length;a–;)n.groups[a].totals.initialized||L(n.groups[a].totals);for(;o–;)(e=r.aggregators[o]).init(),!i&&r.aggregateChildGroups?r.compiledAccumulators[o].call(e,n.groups):r.compiledAccumulators[o].call(e,n.rows),e.storeResult(t);t.initialized=!0}function k(t){var e=C[t.level],n=new i.GroupTotals;n.group=t,t.totals=n,e.lazyTotalsCalculation||L(n)}function H(t){var e=t.toString().match(/^function[^(]\(([^)]*)\)\s*{([\s\S]*)}$/);return{params:e[1].split(","),body:e[2]}}function W(t){var e=H(t.accumulate),n=new Function("_items","for (var "+e.params[0]+", _i=0, _il=_items.length; _i<_il; _i++) {"+e.params[0]+" = _items[_i]; "+e.body+"}");return n.displayName=n.name="compiledAccumulatorLoop",n}function J(t,e){for(var n=[],r=0,i=0,o=t.length;i<o;i++)h(t[i],e)&&(n[r++]=t[i]);return n}function Q(t,e,n){for(var r,i=[],o=0,a=0,l=t.length;a<l;a++)r=t[a],n[a]?i[o++]=r:h(r,e)&&(i[o++]=r,n[a]=!0);return i}function X(e){if(h){var n=t.inlineFilters?a:J,r=t.inlineFilters?l:Q;_.isFilterNarrowing?$=n($,o):_.isFilterExpanding?$=r(e,o,y):_.isFilterUnchanged||($=n(e,o))}else $=b?e:e.concat();var i;return b?($.length<=M*b&&(M=0===$.length?0:Math.floor(($.length-1)/b)),i=$.slice(b*M,b*M+b)):i=$,{totalRows:$.length,rows:i}}function Y(t){p=null,_.isFilterNarrowing==w.isFilterNarrowing&&_.isFilterExpanding==w.isFilterExpanding||(y=[]);var e=X(t);F=e.totalRows;var n=e.rows;R=[],C.length&&(R=function t(e,n){for(var r,o,a,l=[],s={},u=n?n.level+1:0,g=C[u],c=0,f=g.predefinedValues.length;c<f;c++)(r=s[o=g.predefinedValues[c]])||((r=new i.Group).value=o,r.level=u,r.groupingKey=(n?n.groupingKey+":|:\":\"\")+o,l[l.length]=r,s[o]=r);for(c=0,f=e.length;c<f;c++)a=e[c],(r=s[o=g.getterIsAFn?g.getter(a):a[g.getter]])||((r=new i.Group).value=o,r.level=u,r.groupingKey=(n?n.groupingKey+\":|:":"")+o,l[l.length]=r,s[o]=r),r.rows[r.count++]=a;if(u<C.length-1)for(c=0;c<l.length;c++)(r=l[c]).groups=t(r.rows,r);return l.sort(C[u].comparer),l}(n)).length&&(!function t(e,n){for(var r,i=C[n=n||0],o=i.collapsed,a=x[n],l=e.length;l–;)(r=e[l]).collapsed&&!i.aggregateCollapsed||(r.groups&&t(r.groups,n+1),i.aggregators.length&&(i.aggregateEmpty||r.rows.length||r.groups&&r.groups.length)&&k(r),r.collapsed=o^a[r.groupingKey],r.title=i.formatter?i.formatter(r):r.value)}(R),n=function t(e,n){for(var r,i,o=C[n=n||0],a=[],l=0,s=0,u=e.length;s<u;s++){if(i=e[s],a[l++]=i,!i.collapsed)for(var g=0,c=(r=i.groups?t(i.groups,n+1):i.rows).length;g<c;g++)a[l++]=r[g];i.totals&&o.displayTotalsRow&&(!i.collapsed||o.aggregateCollapsed)&&(a[l++]=i.totals)}return a}(R));var r=function(t,e){var n,r,i,o=[],a=0,l=e.length;_&&_.ignoreDiffsBefore&&(a=Math.max(0,Math.min(e.length,_.ignoreDiffsBefore))),_&&_.ignoreDiffsAfter&&(l=Math.min(e.length,Math.max(0,_.ignoreDiffsAfter)));for(var s=a,g=t.length;s<l;s++)s>=g?o[o.length]=s:(n=e[s],r=t[s],(C.length&&(i=n.__nonDataRow||r.__nonDataRow)&&n.__group!==r.__group||n.__group&&!n.equals(r)||i&&(n.__groupTotals||r.__groupTotals)||n[u]!=r[u]||d&&d[n[u]])&&(o[o.length]=s));return o}(c,n);return c=n,r}function Z(){if(!m){var t=c.length,e=F,n=Y(g);b&&F<M*b&&(M=Math.max(0,Math.ceil(F/b)-1),n=Y(g)),d=null,w=_,_={},e!==F&&N.notify(T(),null,s),t!==c.length&&A.notify({previous:t,current:c.length,dataView:s},null,s),n.length>0&&S.notify({rows:n,dataView:s},null,s)}}t=r.extend(!0,{},{groupItemMetadataProvider:null,inlineFilters:!1},t),r.extend(this,{beginUpdate:function(){m=!0},endUpdate:function(){m=!1,Z()},setPagingOptions:function(t){null!=t.pageSize&&(b=t.pageSize,M=b?Math.min(M,Math.max(0,Math.ceil(F/b)-1)):0),null!=t.pageNum&&(M=Math.min(t.pageNum,Math.max(0,Math.ceil(F/b)-1))),N.notify(T(),null,s),Z()},getPagingInfo:T,getItems:function(){return g},setItems:function(t,e){void 0!==e&&(u=e),g=$=t,f={},E(),function(){for(var t,e=0,n=g.length;e<n;e++)if(void 0===(t=g[e][u])||f[t]!==e)throw new Error("Each data element must implement a unique ‘id’ property")}(),Z()},setFilter:function(e){h=e,t.inlineFilters&&(a=function(){var t=H(h),e="{ _retval[_idx++] = $item$; continue _coreloop; }$1",n=t.body.replace(/return false\s*([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return!1([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return true\s*([;}]|\}|$)/gi,e).replace(/return!0([;}]|\}|$)/gi,e).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),r=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");r=(r=(r=r.replace(/\$filter\$/gi,n)).replace(/\$item\$/gi,t.params[0])).replace(/\$args\$/gi,t.params[1]);var i=new Function("_items,_args",r);return i.displayName=i.name="compiledFilter",i}(),l=function(){var t=H(h),e="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",n=t.body.replace(/return false\s*([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return!1([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return true\s*([;}]|\}|$)/gi,e).replace(/return!0([;}]|\}|$)/gi,e).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),r=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");r=(r=(r=r.replace(/\$filter\$/gi,n)).replace(/\$item\$/gi,t.params[0])).replace(/\$args\$/gi,t.params[1]);var i=new Function("_items,_args,_cache",r);return i.displayName=i.name="compiledFilterWithCaching",i}()),Z()},getFilter:function(){return h},getFilteredItems:function(){return $},sort:G,fastSort:D,reSort:function(){n?G(n,v):e&&D(e,v)},setGrouping:P,getGrouping:function(){return C},groupBy:function(t,e,n){P(null!=t?{getter:t,formatter:e,comparer:n}:[])},setAggregators:function(t,e){if(!C.length)throw new Error("At least one grouping must be specified before calling setAggregators().");C[0].aggregators=t,C[0].aggregateCollapsed=e,P(C)},collapseAllGroups:function(t){K(t,!0)},expandAllGroups:function(t){K(t,!1)},collapseGroup:function(t){var e=Array.prototype.slice.call(arguments),n=e[0];1==e.length&&-1!=n.indexOf(":|:\")?U(n.split(\":|:").length-1,n,!0):U(e.length-1,e.join(":|:\"),!0)},expandGroup:function(t){var e=Array.prototype.slice.call(arguments),n=e[0];1==e.length&&-1!=n.indexOf(\":|:")?U(n.split(":|:\").length-1,n,!1):U(e.length-1,e.join(\":|:"),!1)},getGroups:function(){return R},getIdxById:function(t){return f[t]},getRowByItem:function(t){return j(),p[t[u]]},getRowById:function(t){return j(),p[t]},getItemById:z,getItemByIdx:function(t){return g[t]},mapItemsToRows:function(t){var e=[];j();for(var n=0,r=t.length;n<r;n++){var i=p[t[n][u]];null!=i&&(e[e.length]=i)}return e},mapRowsToIds:function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]<c.length&&(e[e.length]=c[t[n]][u]);return e},mapIdsToRows:function(t){var e=[];j();for(var n=0,r=t.length;n<r;n++){var i=p[t[n]];null!=i&&(e[e.length]=i)}return e},setRefreshHints:function(t){_=t},setFilterArgs:function(t){o=t},refresh:Z,updateItem:B,insertItem:V,addItem:function(t){g.push(t),E(g.length-1),Z()},deleteItem:O,sortedAddItem:q,sortedUpdateItem:function(t,e){if(void 0===f[t]||t!==e[u])throw new Error("Invalid or non-matching id "+f[t]);if(!n)throw new Error("sortedUpdateItem() requires a sort comparer, use sort()");var r=z(t);0!==n(r,e)?(O(t),q(e)):B(t,e)},syncGridSelection:function(t,e,n){var o,a=this,l=a.mapRowsToIds(t.getSelectedRows()),s=new i.Event;function u(e){l.join(",")!=e.join(",")&&(l=e,s.notify({grid:t,ids:l,dataView:a},new i.EventData,a))}function g(){if(l.length>0){o=!0;var n=a.mapIdsToRows(l);e||u(a.mapRowsToIds(n)),t.setSelectedRows(n),o=!1}}return t.onSelectedRowsChanged.subscribe((function(e,i){if(!o){var s=a.mapRowsToIds(t.getSelectedRows());if(n&&t.getOptions().multiSelect)u(r.grep(l,(function(t){return void 0===a.getRowById(t)})).concat(s));else u(s)}})),this.onRowsChanged.subscribe(g),this.onRowCountChanged.subscribe(g),s},syncGridCellCssStyles:function(t,e){var n,r;function i(t){for(var e in n={},t){var r=c[e][u];n[r]=t[e]}}function o(){if(n){r=!0,j();var i={};for(var o in n){var a=p[o];null!=a&&(i[a]=n[o])}t.setCellCssStyles(e,i),r=!1}}i(t.getCellCssStyles(e)),t.onCellCssStylesChanged.subscribe((function(n,a){r||e==a.key&&(a.hash?i(a.hash):(t.onCellCssStylesChanged.unsubscribe(styleChanged),s.onRowsChanged.unsubscribe(o),s.onRowCountChanged.unsubscribe(o)))})),this.onRowsChanged.subscribe(o),this.onRowCountChanged.subscribe(o)},getLength:function(){return c.length},getItem:function(t){var e=c[t];if(e&&e.__group&&e.totals&&!e.totals.initialized){var n=C[e.level];n.displayTotalsRow||(L(e.totals),e.title=n.formatter?n.formatter(e):e.value)}else e&&e.__groupTotals&&!e.initialized&&L(e);return e},getItemMetadata:function(e){var n=c[e];return void 0===n?null:n.__group?t.groupItemMetadataProvider.getGroupRowMetadata(n):n.__groupTotals?t.groupItemMetadataProvider.getTotalsRowMetadata(n):null},onRowCountChanged:A,onRowsChanged:S,onPagingInfoChanged:N})},Aggregators:o,Data:{Aggregators:o}}},n”, ” 436: function _(e,t,i){var n=e(426),o=e(428);function l(e){var t,i;function o(){var t=e.column.editorFixedDecimalPlaces;return void 0===t&&(t=l.DefaultDecimalPlaces),t||0===t?t:null}this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field];var l=o();null!==l&&(i||0===i)&&i.toFixed&&(i=i.toFixed(l)),t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){var e=parseFloat(t.val());l.AllowEmptyValue?e||0===e||(e=""):e=e||0;var i=o();return null!==i&&(e||0===e)&&e.toFixed&&(e=parseFloat(e.toFixed(i))),e},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(isNaN(t.val()))return{valid:!1,msg:"Please enter a valid number"};if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()}function a(e){var t=this.selectionStart,i=this.value.length;(e.keyCode===n.ui.keyCode.LEFT&&t>0||e.keyCode===n.ui.keyCode.RIGHT&&t<i-1)&&e.stopImmediatePropagation()}function s(e){e.keyCode!==n.ui.keyCode.LEFT&&e.keyCode!==n.ui.keyCode.RIGHT||e.stopImmediatePropagation()}l.DefaultDecimalPlaces=null,l.AllowEmptyValue=!1,t.exports={Editors:{Text:function(e){var t,i;this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.getValue=function(){return t.val()},this.setValue=function(e){t.val(e)},this.loadValue=function(n){i=n[e.column.field]||"",t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},Integer:function(e){var t,i;this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field],t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return parseInt(t.val(),10)||0},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(isNaN(t.val()))return{valid:!1,msg:"Please enter a valid integer"};if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},Float:l,Date:function(e){var t,i,o=!1;this.init=function(){(t=n("<INPUT type=text class=’editor-text’ />")).appendTo(e.container),t.focus().select(),t.datepicker({showOn:"button",buttonImageOnly:!0,beforeShow:function(){o=!0},onClose:function(){o=!1}}),t.width(t.width()-18)},this.destroy=function(){n.datepicker.dpDiv.stop(!0,!0),t.datepicker("hide"),t.datepicker("destroy"),t.remove()},this.show=function(){o&&n.datepicker.dpDiv.stop(!0,!0).show()},this.hide=function(){o&&n.datepicker.dpDiv.stop(!0,!0).hide()},this.position=function(e){o&&n.datepicker.dpDiv.css("top",e.top+30).css("left",e.left)},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field],t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},YesNoSelect:function(e){var t,i;this.init=function(){(t=n("<SELECT tabIndex=’0’ class=’editor-yesno’><OPTION value=’yes’>Yes</OPTION><OPTION value=’no’>No</OPTION></SELECT>")).appendTo(e.container),t.focus()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){t.val((i=n[e.column.field])?"yes":"no"),t.select()},this.serializeValue=function(){return"yes"==t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return t.val()!=i},this.validate=function(){return{valid:!0,msg:null}},this.init()},Checkbox:function(e){var t,i;this.init=function(){(t=n("<INPUT type=checkbox value=’true’ class=’editor-checkbox’ hideFocus>")).appendTo(e.container),t.focus()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){(i=!!n[e.column.field])?t.prop("checked",!0):t.prop("checked",!1)},this.preClick=function(){t.prop("checked",!t.prop("checked"))},this.serializeValue=function(){return t.prop("checked")},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return this.serializeValue()!==i},this.validate=function(){return{valid:!0,msg:null}},this.init()},PercentComplete:function(e){var t,i,o;this.init=function(){(t=n("<INPUT type=text class=’editor-percentcomplete’ />")).width(n(e.container).innerWidth()-25),t.appendTo(e.container),(i=n("<div class=’editor-percentcomplete-picker’ />").appendTo(e.container)).append("<div class=’editor-percentcomplete-helper’><div class=’editor-percentcomplete-wrapper’><div class=’editor-percentcomplete-slider’ /><div class=’editor-percentcomplete-buttons’ /></div></div>"),i.find(".editor-percentcomplete-buttons").append("<button val=0>Not started</button><br/><button val=50>In Progress</button><br/><button val=100>Complete</button>"),t.focus().select(),i.find(".editor-percentcomplete-slider").slider({orientation:"vertical",range:"min",value:o,slide:function(e,i){t.val(i.value)}}),i.find(".editor-percentcomplete-buttons button").on("click",(function(e){t.val(n(this).attr("val")),i.find(".editor-percentcomplete-slider").slider("value",n(this).attr("val"))}))},this.destroy=function(){t.remove(),i.remove()},this.focus=function(){t.focus()},this.loadValue=function(i){t.val(o=i[e.column.field]),t.select()},this.serializeValue=function(){return parseInt(t.val(),10)||0},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==o)&&(parseInt(t.val(),10)||0)!=o},this.validate=function(){return isNaN(parseInt(t.val(),10))?{valid:!1,msg:"Please enter a valid positive number"}:{valid:!0,msg:null}},this.init()},LongText:function(e){var t,i,l,a=this;this.init=function(){var o=n("body");e.grid.getOptions().editorCellNavOnLRKeys;i=n("<DIV style=’z-index:10000;position:absolute;background:white;padding:5px;border:3px solid gray; -moz-border-radius:10px; border-radius:10px;’/>").appendTo(o),t=n("<TEXTAREA hidefocus rows=5 style=’background:white;width:250px;height:80px;border:0;outline:0’>").appendTo(i),n("<DIV style=’text-align:right’><BUTTON>Save</BUTTON><BUTTON>Cancel</BUTTON></DIV>").appendTo(i),i.find("button:first").on("click",this.save),i.find("button:last").on("click",this.cancel),t.on("keydown",this.handleKeyDown),a.position(e.position),t.focus().select()},this.handleKeyDown=function(t){if(t.which==o.keyCode.ENTER&&t.ctrlKey)a.save();else if(t.which==o.keyCode.ESCAPE)t.preventDefault(),a.cancel();else if(t.which==o.keyCode.TAB&&t.shiftKey)t.preventDefault(),e.grid.navigatePrev();else if(t.which==o.keyCode.TAB)t.preventDefault(),e.grid.navigateNext();else if((t.which==n.ui.keyCode.LEFT||t.which==n.ui.keyCode.RIGHT)&&e.grid.getOptions().editorCellNavOnLRKeys){var i=this.selectionStart,l=this.value.length;t.keyCode===n.ui.keyCode.LEFT&&0===i&&e.grid.navigatePrev(),t.keyCode===n.ui.keyCode.RIGHT&&i>=l-1&&e.grid.navigateNext()}},this.save=function(){e.commitChanges()},this.cancel=function(){t.val(l),e.cancelChanges()},this.hide=function(){i.hide()},this.show=function(){i.show()},this.position=function(e){i.css("top",e.top-5).css("left",e.left-5)},this.destroy=function(){i.remove()},this.focus=function(){t.focus()},this.loadValue=function(i){t.val(l=i[e.column.field]),t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==l)&&t.val()!=l},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()}}}},n”, ” 437: function _(e,n,r){e(428);n.exports={Formatters:{PercentComplete:function(e,n,r,t,c){return null==r||""===r?"-":r<50?"<span style=’color:red;font-weight:bold;’>"+r+"%</span>":"<span style=’color:green’>"+r+"%</span>"},PercentCompleteBar:function(e,n,r,t,c){return null==r||""===r?"":"<span class=’percent-complete-bar’ style=’background:"+(r<30?"red":r<70?"silver":"green")+";width:"+r+"%’></span>"},YesNo:function(e,n,r,t,c){return r?"Yes":"No"},Checkmark:function(e,n,r,t,c){return r?"<img src=’../images/tick.png’>":""},Checkbox:function(e,n,r,t,c){return’<img class="slick-edit-preclick" src="../images/’+(r?"CheckboxY":"CheckboxN")+’.png">’}}}},n”, ” 438: function _(t,o,r){var e=t(426),n=t(428);o.exports={RemoteModel:function(){var t={length:0},o="",r=null,a=1,l=null,i=null,s=new n.Event,u=new n.Event;function f(){for(var o in t)delete t[o];t.length=0}function c(n,f){if(i){i.abort();for(var c=i.fromPage;c<=i.toPage;c++)t[50*c]=void 0}n<0&&(n=0),t.length>0&&(f=Math.min(f,t.length-1));for(var d=Math.floor(n/50),v=Math.floor(f/50);void 0!==t[50*d]&&d<v;)d++;for(;void 0!==t[50*v]&&d<v;)v–;if(d>v||d==v&&void 0!==t[50*d])u.notify({from:n,to:f});else{var m="http://octopart.com/api/v3/parts/search?apikey=68b25f31&include[]=short_description&show[]=uid&show[]=manufacturer&show[]=mpn&show[]=brand&show[]=octopart_url&show[]=short_description&q="+o+"&start="+50*d+"&limit="+(50*(v-d)+50);null!=r&&(m+="&sortby="+r+(a>0?"+asc":"+desc")),null!=l&&clearTimeout(l),l=setTimeout((function(){for(var o=d;o<=v;o++)t[50*o]=null;s.notify({from:n,to:f}),(i=e.jsonp({url:m,callbackParameter:"callback",cache:!0,success:h,error:function(){!function(t,o){alert("error loading pages "+t+" to "+o)}(d,v)}})).fromPage=d,i.toPage=v}),50)}}function h(o){var r=o.request.start,e=r+o.results.length;t.length=Math.min(parseInt(o.hits),1e3);for(var n=0;n<o.results.length;n++){var a=o.results[n].item;t[r+n]=a,t[r+n].index=r+n}i=null,u.notify({from:r,to:e})}return{data:t,clear:f,isDataLoaded:function(o,r){for(var e=o;e<=r;e++)if(null==t[e]||null==t[e])return!1;return!0},ensureData:c,reloadData:function(o,r){for(var e=o;e<=r;e++)delete t[e];c(o,r)},setSort:function(t,o){r=t,a=o,f()},setSearch:function(t){o=t,f()},onDataLoading:s,onDataLoaded:u}}}},n”, ” 439: function _(e,s,t){var a=e(426),o=e(428);s.exports={GroupItemMetadataProvider:function(e){var s,t={checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:function(s,t,a,o,l,c){if(!e.enableExpandCollapse)return l.title;var r=15*l.level+"px";return(e.checkboxSelect?’<span class="’+e.checkboxSelectCssClass+" "+(l.selectChecked?"checked":"unchecked")+’"></span>’:"")+"<span class=’"+e.toggleCssClass+" "+(l.collapsed?e.toggleCollapsedCssClass:e.toggleExpandedCssClass)+"’ style=’margin-left:"+r+"’></span><span class=’"+e.groupTitleCssClass+"’ level=’"+l.level+"’>"+l.title+"</span>"},totalsFormatter:function(e,s,t,a,o,l){return a.groupTotalsFormatter&&a.groupTotalsFormatter(o,a,l)||""}};function l(t,l){var c=a(t.target),r=this.getDataItem(l.row);if(r&&r instanceof o.Group&&c.hasClass(e.toggleCssClass)){var n=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:n.top,ignoreDiffsAfter:n.bottom+1}),r.collapsed?this.getData().expandGroup(r.groupingKey):this.getData().collapseGroup(r.groupingKey),t.stopImmediatePropagation(),t.preventDefault()}if(r&&r instanceof o.Group&&c.hasClass(e.checkboxSelectCssClass)){r.selectChecked=!r.selectChecked,c.removeClass(r.selectChecked?"unchecked":"checked"),c.addClass(r.selectChecked?"checked":"unchecked");var i=s.getData().mapItemsToRows(r.rows);(r.selectChecked?e.checkboxSelectPlugin.selectRows:e.checkboxSelectPlugin.deSelectRows)(i)}}function c(t,a){if(e.enableExpandCollapse&&t.which==o.keyCode.SPACE){var l=this.getActiveCell();if(l){var c=this.getDataItem(l.row);if(c&&c instanceof o.Group){var r=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:r.top,ignoreDiffsAfter:r.bottom+1}),c.collapsed?this.getData().expandGroup(c.groupingKey):this.getData().collapseGroup(c.groupingKey),t.stopImmediatePropagation(),t.preventDefault()}}}}return e=a.extend(!0,{},t,e),{init:function(e){(s=e).onClick.subscribe(l),s.onKeyDown.subscribe(c)},destroy:function(){s&&(s.onClick.unsubscribe(l),s.onKeyDown.unsubscribe(c))},getGroupRowMetadata:function(s){return{selectable:!1,focusable:e.groupFocusable,cssClasses:e.groupCssClass,columns:{0:{colspan:"",formatter:e.groupFormatter,editor:null}}}},getTotalsRowMetadata:function(s){return{selectable:!1,focusable:e.totalsFocusable,cssClasses:e.totalsCssClass,formatter:e.totalsFormatter,editor:null}}}}}},n”, ” 440: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),n=e(441),c=e(95),a=s.__importStar(e(19));class o extends n.Widget{constructor(e){super(e)}static init_TableWidget(){this.define({source:[a.Instance],view:[a.Instance,()=>new c.CDSView]})}initialize(){super.initialize(),null==this.view.source&&(this.view.source=this.source,this.view.compute_indices())}}t.TableWidget=o,o.__name__="TableWidget",o.init_TableWidget()},n”, ” 441: function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=i(1),n=i(247),r=o.__importStar(i(19));class _ extends n.HTMLBoxView{_width_policy(){return"horizontal"==this.model.orientation?super._width_policy():"fixed"}_height_policy(){return"horizontal"==this.model.orientation?"fixed":super._height_policy()}box_sizing(){const i=super.box_sizing();return"horizontal"==this.model.orientation?null==i.width&&(i.width=this.model.default_size):null==i.height&&(i.height=this.model.default_size),i}}t.WidgetView=_,_.__name__="WidgetView";class s extends n.HTMLBox{constructor(i){super(i)}static init_Widget(){this.define({orientation:[r.Orientation,"horizontal"],default_size:[r.Number,300]}),this.override({margin:[5,5,5,5]})}}t.Widget=s,s.__name__="Widget",s.init_Widget()},n”, ” 442: function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0});const l=n(1);n(67),n(443),l.__importStar(n(66)).styles.append(‘.bk-root .bk-data-table {\n box-sizing: content-box;\n font-size: 11px;\n}\n.bk-root .bk-data-table input[type="checkbox"] {\n margin-left: 4px;\n margin-right: 4px;\n}\n.bk-root .bk-cell-special-defaults {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n}\n.bk-root .bk-cell-select {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n}\n.bk-root .bk-cell-index {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n text-align: right;\n color: gray;\n}\n.bk-root .bk-header-index .slick-column-name {\n float: right;\n}\n.bk-root .slick-row.selected .bk-cell-index {\n background-color: transparent;\n}\n.bk-root .slick-cell {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .slick-cell.active {\n border-style: dashed;\n}\n.bk-root .slick-cell.editable {\n padding-left: 0;\n padding-right: 0;\n}\n.bk-root .bk-cell-editor input,\n.bk-root .bk-cell-editor select {\n width: 100%;\n height: 100%;\n border: 0;\n margin: 0;\n padding: 0;\n outline: 0;\n background: transparent;\n vertical-align: baseline;\n}\n.bk-root .bk-cell-editor input {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .bk-cell-editor-completion {\n font-size: 11px;\n}\n’),t.bk_data_table="bk-data-table",t.bk_cell_index="bk-cell-index",t.bk_header_index="bk-header-index",t.bk_cell_editor="bk-cell-editor",t.bk_cell_select="bk-cell-select"},n”, ” 443: function _(A,n,o){Object.defineProperty(o,"__esModule",{value:!0});const e=A(1);A(67),e.__importStar(A(66)).styles.append(‘.bk-root {\n /\nIMPORTANT:\nIn order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.\nNo built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS\nclasses should alter those!\n*/\n /\nIMPORTANT:\nIn order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.\nNo built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS\nclasses should alter those!\n/\n /* Menu button /\n / Menu /\n / Menu items /\n / Disabled /\n}\n.bk-root .slick-header.ui-state-default,\n.bk-root .slick-headerrow.ui-state-default,\n.bk-root .slick-footerrow.ui-state-default,\n.bk-root .slick-top-panel-scroller.ui-state-default {\n width: 100%;\n overflow: auto;\n position: relative;\n border-left: 0px !important;\n}\n.bk-root .slick-header.ui-state-default {\n overflow: inherit;\n}\n.bk-root .slick-header::-webkit-scrollbar,\n.bk-root .slick-headerrow::-webkit-scrollbar,\n.bk-root .slick-footerrow::-webkit-scrollbar {\n display: none;\n}\n.bk-root .slick-header-columns,\n.bk-root .slick-headerrow-columns,\n.bk-root .slick-footerrow-columns {\n position: relative;\n white-space: nowrap;\n cursor: default;\n overflow: hidden;\n}\n.bk-root .slick-header-column.ui-state-default {\n position: relative;\n display: inline-block;\n box-sizing: content-box !important;\n / this here only for Firefox! /\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n height: 16px;\n line-height: 16px;\n margin: 0;\n padding: 4px;\n border-right: 1px solid silver;\n border-left: 0px !important;\n border-top: 0px !important;\n border-bottom: 0px !important;\n float: left;\n}\n.bk-root .slick-headerrow-column.ui-state-default,\n.bk-root .slick-footerrow-column.ui-state-default {\n padding: 4px;\n}\n.bk-root .slick-header-column-sorted {\n font-style: italic;\n}\n.bk-root .slick-sort-indicator {\n display: inline-block;\n width: 8px;\n height: 5px;\n margin-left: 4px;\n margin-top: 6px;\n float: left;\n}\n.bk-root .slick-sort-indicator-numbered {\n display: inline-block;\n width: 8px;\n height: 5px;\n margin-left: 4px;\n margin-top: 0;\n line-height: 20px;\n float: left;\n font-family: Arial;\n font-style: normal;\n font-weight: bold;\n color: #6190CD;\n}\n.bk-root .slick-sort-indicator-desc {\n background: url(images/sort-desc.gif);\n}\n.bk-root .slick-sort-indicator-asc {\n background: url(images/sort-asc.gif);\n}\n.bk-root .slick-resizable-handle {\n position: absolute;\n font-size: 0.1px;\n display: block;\n cursor: col-resize;\n width: 9px;\n right: -5px;\n top: 0;\n height: 100%;\n z-index: 1;\n}\n.bk-root .slick-sortable-placeholder {\n background: silver;\n}\n.bk-root .grid-canvas {\n position: relative;\n outline: 0;\n}\n.bk-root .slick-row.ui-widget-content,\n.bk-root .slick-row.ui-state-active {\n position: absolute;\n border: 0px;\n width: 100%;\n}\n.bk-root .slick-cell,\n.bk-root .slick-headerrow-column,\n.bk-root .slick-footerrow-column {\n position: absolute;\n border: 1px solid transparent;\n border-right: 1px dotted silver;\n border-bottom-color: silver;\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n vertical-align: middle;\n z-index: 1;\n padding: 1px 2px 2px 1px;\n margin: 0;\n white-space: nowrap;\n cursor: default;\n}\n.bk-root .slick-cell,\n.bk-root .slick-headerrow-column {\n border-bottom-color: silver;\n}\n.bk-root .slick-footerrow-column {\n border-top-color: silver;\n}\n.bk-root .slick-group-toggle {\n display: inline-block;\n}\n.bk-root .slick-cell.highlighted {\n background: lightskyblue;\n background: rgba(0, 0, 255, 0.2);\n -webkit-transition: all 0.5s;\n -moz-transition: all 0.5s;\n -o-transition: all 0.5s;\n transition: all 0.5s;\n}\n.bk-root .slick-cell.flashing {\n border: 1px solid red !important;\n}\n.bk-root .slick-cell.editable {\n z-index: 11;\n overflow: visible;\n background: white;\n border-color: black;\n border-style: solid;\n}\n.bk-root .slick-cell:focus {\n outline: none;\n}\n.bk-root .slick-reorder-proxy {\n display: inline-block;\n background: blue;\n opacity: 0.15;\n cursor: move;\n}\n.bk-root .slick-reorder-guide {\n display: inline-block;\n height: 2px;\n background: blue;\n opacity: 0.7;\n}\n.bk-root .slick-selection {\n z-index: 10;\n position: absolute;\n border: 2px dashed black;\n}\n.bk-root .slick-header-columns {\n background: url(\’images/header-columns-bg.gif\’) repeat-x center bottom;\n border-bottom: 1px solid silver;\n}\n.bk-root .slick-header-column {\n background: url(\’images/header-columns-bg.gif\’) repeat-x center bottom;\n border-right: 1px solid silver;\n}\n.bk-root .slick-header-column:hover,\n.bk-root .slick-header-column-active {\n background: white url(\’images/header-columns-over-bg.gif\’) repeat-x center bottom;\n}\n.bk-root .slick-headerrow {\n background: #fafafa;\n}\n.bk-root .slick-headerrow-column {\n background: #fafafa;\n border-bottom: 0;\n height: 100%;\n}\n.bk-root .slick-row.ui-state-active {\n background: #F5F7D7;\n}\n.bk-root .slick-row {\n position: absolute;\n background: white;\n border: 0px;\n line-height: 20px;\n}\n.bk-root .slick-row.selected {\n z-index: 10;\n background: #DFE8F6;\n}\n.bk-root .slick-cell {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .slick-group {\n border-bottom: 2px solid silver;\n}\n.bk-root .slick-group-toggle {\n width: 9px;\n height: 9px;\n margin-right: 5px;\n}\n.bk-root .slick-group-toggle.expanded {\n background: url(images/collapse.gif) no-repeat center center;\n}\n.bk-root .slick-group-toggle.collapsed {\n background: url(images/expand.gif) no-repeat center center;\n}\n.bk-root .slick-group-totals {\n color: gray;\n background: white;\n}\n.bk-root .slick-group-select-checkbox {\n width: 13px;\n height: 13px;\n margin: 3px 10px 0 0;\n display: inline-block;\n}\n.bk-root .slick-group-select-checkbox.checked {\n background: url(images/GrpCheckboxY.png) no-repeat center center;\n}\n.bk-root .slick-group-select-checkbox.unchecked {\n background: url(images/GrpCheckboxN.png) no-repeat center center;\n}\n.bk-root .slick-cell.selected {\n background-color: beige;\n}\n.bk-root .slick-cell.active {\n border-color: gray;\n border-style: solid;\n}\n.bk-root .slick-sortable-placeholder {\n background: silver !important;\n}\n.bk-root .slick-row.odd {\n background: #fafafa;\n}\n.bk-root .slick-row.ui-state-active {\n background: #F5F7D7;\n}\n.bk-root .slick-row.loading {\n opacity: 0.5;\n}\n.bk-root .slick-cell.invalid {\n border-color: red;\n -moz-animation-duration: 0.2s;\n -webkit-animation-duration: 0.2s;\n -moz-animation-name: slickgrid-invalid-hilite;\n -webkit-animation-name: slickgrid-invalid-hilite;\n}\n@-moz-keyframes slickgrid-invalid-hilite {\n from {\n box-shadow: 0 0 6px red;\n }\n to {\n box-shadow: none;\n }\n}\n@-webkit-keyframes slickgrid-invalid-hilite {\n from {\n box-shadow: 0 0 6px red;\n }\n to {\n box-shadow: none;\n }\n}\n.bk-root .slick-column-name,\n.bk-root .slick-sort-indicator {\n /*\n * This makes all "float:right" elements after it that spill over to the next line\n * display way below the lower boundary of the column thus hiding them.\n /\n display: inline-block;\n float: left;\n margin-bottom: 100px;\n}\n.bk-root .slick-header-button {\n display: inline-block;\n float: right;\n vertical-align: top;\n margin: 1px;\n /*\n * This makes all "float:right" elements after it that spill over to the next line\n * display way below the lower boundary of the column thus hiding them.\n /\n margin-bottom: 100px;\n height: 15px;\n width: 15px;\n background-repeat: no-repeat;\n background-position: center center;\n cursor: pointer;\n}\n.bk-root .slick-header-button-hidden {\n width: 0;\n -webkit-transition: 0.2s width;\n -ms-transition: 0.2s width;\n transition: 0.2s width;\n}\n.bk-root .slick-header-column:hover > .slick-header-button {\n width: 15px;\n}\n.bk-root .slick-header-menubutton {\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 14px;\n background-repeat: no-repeat;\n background-position: left center;\n background-image: url(../images/down.gif);\n cursor: pointer;\n display: none;\n border-left: thin ridge silver;\n}\n.bk-root .slick-header-column:hover > .slick-header-menubutton,\n.bk-root .slick-header-column-active .slick-header-menubutton {\n display: inline-block;\n}\n.bk-root .slick-header-menu {\n position: absolute;\n display: inline-block;\n margin: 0;\n padding: 2px;\n cursor: default;\n}\n.bk-root .slick-header-menuitem {\n list-style: none;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n.bk-root .slick-header-menuicon {\n display: inline-block;\n width: 16px;\n height: 16px;\n vertical-align: middle;\n margin-right: 4px;\n background-repeat: no-repeat;\n background-position: center center;\n}\n.bk-root .slick-header-menucontent {\n display: inline-block;\n vertical-align: middle;\n}\n.bk-root .slick-header-menuitem-disabled {\n color: silver;\n}\n.bk-root .slick-columnpicker {\n border: 1px solid #718BB7;\n background: #f0f0f0;\n padding: 6px;\n -moz-box-shadow: 2px 2px 2px silver;\n -webkit-box-shadow: 2px 2px 2px silver;\n box-shadow: 2px 2px 2px silver;\n min-width: 150px;\n cursor: default;\n position: absolute;\n z-index: 20;\n overflow: auto;\n resize: both;\n}\n.bk-root .slick-columnpicker > .close {\n float: right;\n}\n.bk-root .slick-columnpicker .title {\n font-size: 16px;\n width: 60%;\n border-bottom: solid 1px #d6d6d6;\n margin-bottom: 10px;\n}\n.bk-root .slick-columnpicker li {\n list-style: none;\n margin: 0;\n padding: 0;\n background: none;\n}\n.bk-root .slick-columnpicker input {\n margin: 4px;\n}\n.bk-root .slick-columnpicker li a {\n display: block;\n padding: 4px;\n font-weight: bold;\n}\n.bk-root .slick-columnpicker li a:hover {\n background: white;\n}\n.bk-root .slick-pager {\n width: 100%;\n height: 26px;\n border: 1px solid gray;\n border-top: 0;\n background: url(\’../images/header-columns-bg.gif\’) repeat-x center bottom;\n vertical-align: middle;\n}\n.bk-root .slick-pager .slick-pager-status {\n display: inline-block;\n padding: 6px;\n}\n.bk-root .slick-pager .ui-icon-container {\n display: inline-block;\n margin: 2px;\n border-color: gray;\n}\n.bk-root .slick-pager .slick-pager-nav {\n display: inline-block;\n float: left;\n padding: 2px;\n}\n.bk-root .slick-pager .slick-pager-settings {\n display: block;\n float: right;\n padding: 2px;\n}\n.bk-root .slick-pager .slick-pager-settings * {\n vertical-align: middle;\n}\n.bk-root .slick-pager .slick-pager-settings a {\n padding: 2px;\n text-decoration: underline;\n cursor: pointer;\n}\n.bk-root .slick-header-columns {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n.bk-root .slick-header-column {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n.bk-root .slick-header-column:hover,\n.bk-root .slick-header-column-active {\n background-image: url("data:image/gif;base64,R0lGODlhAgAWAIcAAKrM9tno++vz/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABYAAAgUAAUIHEiwoIAACBMqXMhwIQAAAQEAOw==");\n}\n.bk-root .slick-group-toggle.expanded {\n background-image: url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIMwADCBxIUIDBgwIEChgwwECBAgQUFjBAkaJCABgxGlB4AGHCAAIQiBypEEECkScJqgwQEAA7");\n}\n.bk-root .slick-group-toggle.collapsed {\n background-image: url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIOAADCBxIUIDBgwIEChgwAECBAgQUFjAAQIABAwoBaNSIMYCAAwIqGlSIAEHFkiQTIBCgkqDLAAEBADs=");\n}\n.bk-root .slick-group-select-checkbox.checked {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAAEcSURBVChTjdI9S8NQFAbg/raQXVwCRRFE7GK7OXTwD+ikk066VF3a0ja0hQTyQdJrwNq0zrYSQRLEXMSWSlCIb8glqRcFD+9yz3nugXwU4n9XQqMoGjj36uBJsTwuaNo3EwBG4Yy7pe7Gv8YcvhJCGFVsjxsjxujj6OTSGlHv+U2WZUZbPWKOv1ZjT5a7pbIoiptbO5b73mwrjHa1B27l8VlTEIS1damlTnEE+EEN9/P8WrfH81qdAIGeXvTTmzltdCy46sEhxpKUINReZR9NnqZbr9puugxV3NjWh/k74WmmEdWhmUNy2jNmWRc6fZTVADCqao52u+DGWTACYNT3fRxwtatPufTNR4yCIGAUn5hS+vJHhWGY/ANx/A3tvdv+1tZmuwAAAABJRU5ErkJggg==");\n}\n.bk-root .slick-group-select-checkbox.unchecked {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAACXSURBVChT1dIxC4MwEAXg/v8/VOhQVDBNakV0KA6pxS4JhWRSIYPEJxwdDi1de7wleR+3JIf486w0hKCKRpSvvOhZcCmvNQBRuKqdah03U7UjNNH81rOaBYDo8SQaPX8JANFEaLaGBeAPaaY61rGksiN6TmR5H1j9CSoAosYYHLA7vTxYMvVEZa0liif23r93xjm3/oEYF8PiDn/I2FHCAAAAAElFTkSuQmCC");\n}\n.bk-root .slick-sort-indicator-desc {\n background-image: url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgeAAUAGEgQgIAACBEKLHgwYcKFBh1KFNhQosOKEgMCADs=");\n}\n.bk-root .slick-sort-indicator-asc {\n background-image: url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgbAAMIDABgoEGDABIeRJhQ4cKGEA8KmEiRosGAADs=");\n}\n.bk-root .slick-header-menubutton {\n background-image: url("data:image/gif;base64,R0lGODlhDgAOAIABADtKYwAAACH5BAEAAAEALAAAAAAOAA4AAAISjI+py+0PHZgUsGobhTn6DxoFADs=");\n}\n.bk-root .slick-pager {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n’)},n”, ” 444: function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),o=i.__importDefault(t(157)),a=i.__importStar(t(159)),n=t(445),s=i.__importStar(t(19)),c=t(66),l=t(8),m=t(69);class _ extends m.Model{constructor(t){super(t)}doFormat(t,e,r,i,o){return null==r?"":(r+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}}r.CellFormatter=_,_.__name__="CellFormatter";class u extends _{constructor(t){super(t)}static init_StringFormatter(){this.define({font_style:[s.FontStyle,"normal"],text_align:[s.TextAlign,"left"],text_color:[s.Color]})}doFormat(t,e,r,i,o){const{font_style:a,text_align:n,text_color:s}=this,l=c.div({},null==r?"":`${r}`);switch(a){case"bold":l.style.fontWeight="bold";break;case"italic":l.style.fontStyle="italic"}return null!=n&&(l.style.textAlign=n),null!=s&&(l.style.color=s),l.outerHTML}}r.StringFormatter=u,u.__name__="StringFormatter",u.init_StringFormatter();class F extends u{constructor(t){super(t)}static init_ScientificFormatter(){this.define({precision:[s.Number,10],power_limit_high:[s.Number,5],power_limit_low:[s.Number,-3]})}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}doFormat(t,e,r,i,o){const a=r<=this.scientific_limit_low||r>=this.scientific_limit_high;let n=this.precision;return n<1&&(n=1),r=a?r.toExponential(n):r.toFixed(n).replace(/(\.[0-9]?)0+$/,"$1").replace(/\.$/,""),super.doFormat(t,e,r,i,o)}}r.ScientificFormatter=F,F.__name__="ScientificFormatter",F.init_ScientificFormatter();class d extends u{constructor(t){super(t)}static init_NumberFormatter(){this.define({format:[s.String,"0,0"],language:[s.String,"en"],rounding:[s.RoundingFunction,"round"]})}doFormat(t,e,r,i,o){const{format:n,language:s}=this,c=(()=>{switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}})();return r=a.format(r,n,s,c),super.doFormat(t,e,r,i,o)}}r.NumberFormatter=d,d.__name__="NumberFormatter",d.init_NumberFormatter();class g extends _{constructor(t){super(t)}static init_BooleanFormatter(){this.define({icon:[s.String,"check"]})}doFormat(t,e,r,i,o){return r?c.i({class:this.icon}).outerHTML:""}}r.BooleanFormatter=g,g.__name__="BooleanFormatter",g.init_BooleanFormatter();class p extends _{constructor(t){super(t)}static init_DateFormatter(){this.define({format:[s.String,"ISO-8601"]})}getFormat(){switch(this.format){case"ATOM":case"W3C":case"RFC-3339":case"ISO-8601":return"%Y-%m-%d";case"COOKIE":return"%a, %d %b %Y";case"RFC-850":return"%A, %d-%b-%y";case"RFC-1123":case"RFC-2822":return"%a, %e %b %Y";case"RSS":case"RFC-822":case"RFC-1036":return"%a, %e %b %y";case"TIMESTAMP":return;default:return this.format}}doFormat(t,e,r,i,a){r=l.isString(r)?parseInt(r,10):r;const n=o.default(r,this.getFormat());return super.doFormat(t,e,n,i,a)}}r.DateFormatter=p,p.__name__="DateFormatter",p.init_DateFormatter();class h extends _{constructor(t){super(t)}static init_HTMLTemplateFormatter(){this.define({template:[s.String,"<%= value %>"]})}doFormat(t,e,r,i,o){const{template:a}=this;if(null==r)return"";return n._.template(a)(Object.assign(Object.assign({},o),{value:r}))}}r.HTMLTemplateFormatter=h,h.__name__="HTMLTemplateFormatter",h.init_HTMLTemplateFormatter()},n”, ” 445: function _(e,n,t){var f=e(446),i=f.template;function o(e,n,t){return i(e,n,t)}o._=f,n.exports=o,"function"==typeof define&&define.amd?define((function(){return o})):"undefined"==typeof window&&"undefined"==typeof navigator||(window.UnderscoreTemplate=o)},n”, ” 446: function _(r,e,n){n”, ” // (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn”, ” // Underscore may be freely distributed under the MIT license.n”, ” var t={},a=Array.prototype,u=Object.prototype,c=a.slice,o=u.toString,l=u.hasOwnProperty,i=a.forEach,f=Object.keys,s=Array.isArray,p=function(){},_=p.each=p.forEach=function(r,e,n){if(null!=r)if(i&&r.forEach===i)r.forEach(e,n);else if(r.length===+r.length){for(var a=0,u=r.length;a<u;a++)if(e.call(n,r[a],a,r)===t)return}else{var c=p.keys(r);for(a=0,u=c.length;a<u;a++)if(e.call(n,r[c[a]],c[a],r)===t)return}};p.keys=f||function(r){if(r!==Object(r))throw new TypeError("Invalid object");var e=[];for(var n in r)p.has(r,n)&&e.push(n);return e},p.defaults=function(r){return _(c.call(arguments,1),(function(e){if(e)for(var n in e)void 0===r[n]&&(r[n]=e[n])})),r},p.isArray=s||function(r){return"[object Array]"===o.call(r)},p.has=function(r,e){if(!p.isArray(e))return null!=r&&l.call(r,e);for(var n=e.length,t=0;t<n;t++){var a=e[t];if(null==r||!l.call(r,a))return!1;r=r[a]}return!!n};var h={escape:{"&":"&","<":"<",">":">",’"’:""","’":"'"}},v={escape:new RegExp("["+p.keys(h.escape).join("")+"]","g")};p.each(["escape"],(function(r){p[r]=function(e){return null==e?"":(""+e).replace(v[r],(function(e){return h[r][e]}))}})),p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,y={"’":"’","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},j=/\\|’|\\r|\n|\t|\u2028|\u2029/g;p.template=function(r,e,n){var t;n=p.defaults({},n,p.templateSettings);var a=new RegExp([(n.escape||g).source,(n.interpolate||g).source,(n.evaluate||g).source].join("|\")+\"|$\",\"g\"),u=0,c=\"__p+='\";r.replace(a,(function(e,n,t,a,o){return c+=r.slice(u,o).replace(j,(function(r){return\"\\\\\"+y[r]})),n&&(c+=\"'+\\n((__t=(\"+n+\"))==null?'':_.escape(__t))+\\n'\"),t&&(c+=\"'+\\n((__t=(\"+t+\"))==null?'':__t)+\\n'\"),a&&(c+=\"';\\n\"+a+\"\\n__p+='\"),u=o+e.length,e})),c+=\"';\\n\",n.variable||(c=\"with(obj||{}){\\n\"+c+\"}\\n\"),c=\"var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\\n\"+c+\"return __p;\\n\";try{t=new Function(n.variable||"obj","_",c)}catch(r){throw r.source=c,r}if(e)return t(e,p);var o=function(r){return t.call(this,r,p)};return o.source="function("+(n.variable||"obj")+"){\n"+c+"}",o},e.exports=p},n”, ” 447: function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(1),o=t(444),n=t(423),a=r.__importStar(t(19)),l=t(26),s=t(69);class d extends s.Model{constructor(t){super(t)}static init_TableColumn(){this.define({field:[a.String],title:[a.String],width:[a.Number,300],formatter:[a.Instance,()=>new o.StringFormatter],editor:[a.Instance,()=>new n.StringEditor],sortable:[a.Boolean,!0],default_sort:[a.Sort,"ascending"]})}toColumn(){return{id:l.uniqueId(),field:this.field,name:this.title,width:this.width,formatter:null!=this.formatter?this.formatter.doFormat.bind(this.formatter):void 0,model:this.editor,editor:this.editor.default_view,sortable:this.sortable,defaultSortAsc:"ascending"==this.default_sort}}}i.TableColumn=d,d.__name__="TableColumn",d.init_TableColumn()},n”, ” 448: function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const r=t(1),a=t(431),{Avg:i,Min:o,Max:g,Sum:n}=a.Data.Aggregators,u=r.__importStar(t(19)),c=t(69);class _ extends c.Model{constructor(t){super(t)}static init_RowAggregator(){this.define({field_:[u.String,""]})}}s.RowAggregator=_,_.__name__="RowAggregator",_.init_RowAggregator();const l=new i;class m extends _{constructor(){super(…arguments),this.key="avg",this.init=l.init,this.accumulate=l.accumulate,this.storeResult=l.storeResult}}s.AvgAggregator=m,m.__name__="AvgAggregator";const h=new o;class A extends _{constructor(){super(…arguments),this.key="min",this.init=h.init,this.accumulate=h.accumulate,this.storeResult=h.storeResult}}s.MinAggregator=A,A.__name__="MinAggregator";const R=new g;class d extends _{constructor(){super(…arguments),this.key="max",this.init=R.init,this.accumulate=R.accumulate,this.storeResult=R.storeResult}}s.MaxAggregator=d,d.__name__="MaxAggregator";const x=new n;class w extends _{constructor(){super(…arguments),this.key="sum",this.init=x.init,this.accumulate=x.accumulate,this.storeResult=x.storeResult}}s.SumAggregator=w,w.__name__="SumAggregator"},n”, ” 449: function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t(1).__importStar(t(19)),r=t(66),i=t(431),a=t(424),n=t(69);function l(t,e,s,o,i){const{collapsed:a,level:n,title:l}=i,u=r.span({class:slick-group-toggle ${a?"collapsed":"expanded"},style:{"margin-left":${15*n}px}}),g=r.span({class:"slick-group-title",level:n},l);return`${u.outerHTML}${g.outerHTML}`}function u(t,e){const s=this.getDataItem(e.row);s instanceof i.Group&&t.target.classList.contains("slick-group-toggle")&&(s.collapsed?this.getData().expandGroup(s.groupingKey):this.getData().collapseGroup(s.groupingKey),t.stopImmediatePropagation(),t.preventDefault(),this.invalidate(),this.render())}class g extends n.Model{constructor(t){super(t)}static init_GroupingInfo(){this.define({getter:[o.String,""],aggregators:[o.Array,[]],collapsed:[o.Boolean,!1]})}get comparer(){return(t,e)=>t.value===e.value?0:t.value>e.value?1:-1}}s.GroupingInfo=g,g.__name__="GroupingInfo",g.init_GroupingInfo();class c extends a.TableDataProvider{constructor(t,e,s,o){super(t,e),this.columns=s,this.groupingInfos=[],this.groupingDelimiter=":|:\",this.target=o}setGrouping(t){this.groupingInfos=t,this.toggledGroupsByLevel=t.map(()=>({})),this.refresh()}extractGroups(t,e){const s=[],o=new Map,r=e?e.level+1:0,{comparer:a,getter:n}=this.groupingInfos[r];return t.forEach(t=>{const a=this.source.data[n][t];let l=o.get(a);if(!l){const t=e?`${e.groupingKey}${this.groupingDelimiter}${a}`:`${a}`;l=Object.assign(new i.Group,{value:a,level:r,groupingKey:t}),s.push(l),o.set(a,l)}l.rows.push(t)}),r<this.groupingInfos.length-1&&s.forEach(t=>{t.groups=this.extractGroups(t.rows,t)}),s.sort(a),s}calculateTotals(t,e){const s={avg:{},max:{},min:{},sum:{}},{source:{data:o}}=this,r=Object.keys(o),i=t.rows.map(t=>r.reduce((e,s)=>Object.assign(Object.assign({},e),{[s]:o[s][t]}),{}));return e.forEach(t=>{t.init(),i.forEach(e=>t.accumulate(e)),t.storeResult(s)}),s}addTotals(t,e=0){const{aggregators:s,collapsed:o}=this.groupingInfos[e],r=this.toggledGroupsByLevel[e];t.forEach(t=>{t.groups&&this.addTotals(t.groups,e+1),s.length&&t.rows.length&&(t.totals=this.calculateTotals(t,s)),t.collapsed=o!==r[t.groupingKey],t.title=t.value?`${t.value}`:\"\"})}flattenedGroupedRows(t,e=0){const s=[];return t.forEach(t=>{if(s.push(t),!t.collapsed){const o=t.groups?this.flattenedGroupedRows(t.groups,e+1):t.rows;s.push(...o)}}),s}refresh(){const t=this.extractGroups(this.view.indices),e=this.source.data[this.columns[0].field];t.length&&(this.addTotals(t),this.rows=this.flattenedGroupedRows(t),this.target.data={row_indices:this.rows.map(t=>t instanceof i.Group?t.rows:t),labels:this.rows.map(t=>t instanceof i.Group?t.title:e[t])})}getLength(){return this.rows.length}getItem(t){const e=this.rows[t],{source:{data:s}}=this;return e instanceof i.Group?e:Object.keys(s).reduce((t,o)=>Object.assign(Object.assign({},t),{[o]:s[o][e]}),{[a.DTINDEX_NAME]:e})}getItemMetadata(t){const e=this.rows[t],s=this.columns.slice(1),o=e instanceof i.Group?this.groupingInfos[e.level].aggregators:[];return e instanceof i.Group?{selectable:!1,focusable:!1,cssClasses:\"slick-group\",columns:[{formatter:l},...s.map((function(t){const{field:e,formatter:s}=t,r=o.find(({field_:t})=>t===e);if(r){const{key:t}=r;return{formatter:(o,r,i,a,n)=>s?s(o,r,n.totals[t][e],a,n):\"\"}}return{}}))]}:{}}collapseGroup(t){const e=t.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[e][t]=!this.groupingInfos[e].collapsed,this.refresh()}expandGroup(t){const e=t.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed,this.refresh()}}s.DataCubeProvider=c,c.__name__=\"DataCubeProvider\";class p extends a.DataTableView{render(){const t={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:!1,forceFitColumns:this.model.fit_columns,multiColumnSort:!1,editable:this.model.editable,autoEdit:!1,rowHeight:this.model.row_height},e=this.model.columns.map(t=>t.toColumn());var s,o;e[0].formatter=(s=e[0].formatter,o=this.model.grouping.length,(t,e,i,a,n)=>{const l=r.span({class:\"slick-group-toggle\",style:{\"margin-left\":`${15*(o||0)}px`}}),u=s?s(t,e,i,a,n):`${i}`;return`${l.outerHTML}${u&&u.replace(/^<div/,\"<span\").replace(/div>$/,\"span>\")}`}),delete e[0].editor,this.data=new c(this.model.source,this.model.view,e,this.model.target),this.data.setGrouping(this.model.grouping),this.el.style.width=`${this.model.width}px`,this.grid=new i.Grid(this.el,this.data,e,t),this.grid.onClick.subscribe(u)}}s.DataCubeView=p,p.__name__=\"DataCubeView\";class h extends a.DataTable{constructor(t){super(t)}static init_DataCube(){this.prototype.default_view=p,this.define({grouping:[o.Array,[]],target:[o.Instance]})}}s.DataCube=h,h.__name__=\"DataCube\",h.init_DataCube()},\n", " }, 421, {\"models/widgets/tables/main\":421,\"models/widgets/tables/index\":422,\"models/widgets/tables/cell_editors\":423,\"models/widgets/tables/data_table\":424,\"models/widgets/tables/table_widget\":440,\"models/widgets/widget\":441,\"styles/widgets/tables\":442,\"styles/widgets/slickgrid\":443,\"models/widgets/tables/cell_formatters\":444,\"models/widgets/tables/table_column\":447,\"models/widgets/tables/row_aggregators\":448,\"models/widgets/tables/data_cube\":449}, {});\n", " })\n", "\n", "\n", " /* END bokeh-tables.min.js */\n", " },\n", " \n", " function(Bokeh) {\n", " /* BEGIN bokeh-gl.min.js */\n", " /*!\n", " * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors\n", " * All rights reserved.\n", " * \n", " * Redistribution and use in source and binary forms, with or without modification,\n", " * are permitted provided that the following conditions are met:\n", " * \n", " * Redistributions of source code must retain the above copyright notice,\n", " * this list of conditions and the following disclaimer.\n", " * \n", " * Redistributions in binary form must reproduce the above copyright notice,\n", " * this list of conditions and the following disclaimer in the documentation\n", " * and/or other materials provided with the distribution.\n", " * \n", " * Neither the name of Anaconda nor the names of any contributors\n", " * may be used to endorse or promote products derived from this software\n", " * without specific prior written permission.\n", " * \n", " * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n", " * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n", " * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n", " * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n", " * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n", " * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n", " * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n", " * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n", " * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n", " * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\n", " * THE POSSIBILITY OF SUCH DAMAGE.\n", " */\n", " (function(root, factory) {\n", " factory(root[\"Bokeh\"], \"2.0.2\");\n", " })(this, function(Bokeh, version) {\n", " var define;\n", " return (function(modules, entry, aliases, externals) {\n", " const bokeh = typeof Bokeh !== \"undefined\" && (version != null ? Bokeh[version] : Bokeh);\n", " if (bokeh != null) {\n", " return bokeh.register_plugin(modules, entry, aliases);\n", " } else {\n", " throw new Error(\"Cannot find Bokeh \" + version + \". You have to load it prior to loading plugins.\");\n", " }\n", " })\n", " ({\n", " 357: function _(e,n,o){Object.defineProperty(o,\"__esModule\",{value:!0}),e(358)},\n", " 358: function _(e,t,_){Object.defineProperty(_,\"__esModule\",{value:!0});const o=e(1);\n", " /*\n", " Copyright notice: many of the awesome techniques and GLSL code contained in\n", " this module are based on work by Nicolas Rougier as part of the Glumpy and\n", " Vispy projects. The algorithms are published in\n", " http://jcgt.org/published/0003/04/01/ and http://jcgt.org/published/0002/02/08/\n", " \n", " This module contains all gl-specific code to add gl support for the glyphs.\n", " By implementing it separetely, the GL functionality can be spun off in a\n", " separate library.\n", " Other locations where we work with GL, or prepare for GL-rendering:\n", " - canvas.ts\n", " - plot.ts\n", " - glyph.ts\n", " - glyph_renderer.ts\n", " */o.__exportStar(e(359),_),o.__exportStar(e(364),_)},\n", " 359: function _(t,e,s){Object.defineProperty(s,\"__esModule\",{value:!0});const i=t(360),a=t(361),n=t(362),_=t(363),o=t(21);class h{constructor(t){this._atlas={},this._index=0,this._width=256,this._height=256,this.tex=new i.Texture2D(t),this.tex.set_wrapping(t.REPEAT,t.REPEAT),this.tex.set_interpolation(t.NEAREST,t.NEAREST),this.tex.set_size([this._height,this._width],t.RGBA),this.tex.set_data([0,0],[this._height,this._width],new Uint8Array(this._height*this._width*4)),this.get_atlas_data([1])}get_atlas_data(t){const e=t.join(\"-\");if(void 0===this._atlas[e]){const[s,i]=this.make_pattern(t);this.tex.set_data([this._index,0],[1,this._width],new Uint8Array(s.map(t=>t+10))),this._atlas[e]=[this._index/this._height,i],this._index+=1}return this._atlas[e]}make_pattern(t){t.length>1&&t.length%2&&(t=t.concat(t));let e=0;for(const s of t)e+=s;const s=[];let i=0;for(let e=0,a=t.length+2;e<a;e+=2){const a=Math.max(1e-4,t[e%t.length]),n=Math.max(1e-4,t[(e+1)%t.length]);s.push(i,i+a),i+=a+n}const a=this._width,n=new Float32Array(4*a);for(let t=0,i=a;t<i;t++){let i,_,o;const h=e*t/(a-1);let r=0,l=1e16;for(let t=0,e=s.length;t<e;t++){const e=Math.abs(s[t]-h);e<l&&(r=t,l=e)}r%2==0?(o=h<=s[r]?1:0,_=s[r],i=s[r+1]):(o=h>s[r]?-1:0,_=s[r-1],i=s[r]),n[4*t+0]=s[r],n[4*t+1]=o,n[4*t+2]=_,n[4*t+3]=i}return[n,e]}}h.__name__=\"DashAtlas\";const r={miter:0,round:1,bevel:2},l={\"\":0,none:0,\".\":0,round:1,\")\":1,\"(\":1,o:1,\"triangle in\":2,\"<\":2,\"triangle out\":3,\">\":3,square:4,\"[\":4,\"]\":4,\"=\":4,butt:5,\"|":5};class g extends a.BaseGLGlyph{init(){const{gl:t}=this;this._scale_aspect=0;const e=n.vertex_shader,s=_.fragment_shader;this.prog=new i.Program(t),this.prog.set_shaders(e,s),this.index_buffer=new i.IndexBuffer(t),this.vbo_position=new i.VertexBuffer(t),this.vbo_tangents=new i.VertexBuffer(t),this.vbo_segment=new i.VertexBuffer(t),this.vbo_angles=new i.VertexBuffer(t),this.vbo_texcoord=new i.VertexBuffer(t),this.dash_atlas=new h(t)}draw(t,e,s){const i=e.glglyph;if(i.data_changed){if(!isFinite(s.dx)||!isFinite(s.dy))return;i._baked_offset=[s.dx,s.dy],i._set_data(),i.data_changed=!1}this.visuals_changed&&(this._set_visuals(),this.visuals_changed=!1);let{sx:a,sy:n}=s;const _=Math.sqrt(a*a+n*n);a/=_,n/=_,Math.abs(this._scale_aspect-n/a)>Math.abs(.001*this._scale_aspect)&&(i._update_scale(a,n),this._scale_aspect=n/a),this.prog.set_attribute("a_position","vec2",i.vbo_position),this.prog.set_attribute("a_tangents","vec4",i.vbo_tangents),this.prog.set_attribute("a_segment","vec2",i.vbo_segment),this.prog.set_attribute("a_angles","vec2",i.vbo_angles),this.prog.set_attribute("a_texcoord","vec2",i.vbo_texcoord),this.prog.set_uniform("u_length","float",[i.cumsum]),this.prog.set_texture("u_dash_atlas",this.dash_atlas.tex);const o=i._baked_offset;if(this.prog.set_uniform("u_pixel_ratio","float",[s.pixel_ratio]),this.prog.set_uniform("u_canvas_size","vec2",[s.width,s.height]),this.prog.set_uniform("u_offset","vec2",[s.dx-o[0],s.dy-o[1]]),this.prog.set_uniform("u_scale_aspect","vec2",[a,n]),this.prog.set_uniform("u_scale_length","float",[_]),this.I_triangles=i.I_triangles,this.I_triangles.length<65535)this.index_buffer.set_size(2*this.I_triangles.length),this.index_buffer.set_data(0,new Uint16Array(this.I_triangles)),this.prog.draw(this.gl.TRIANGLES,this.index_buffer);else{t=Array.from(this.I_triangles);const e=this.I_triangles.length,s=64008,a=[];for(let t=0,i=Math.ceil(e/s);t<i;t++)a.push([]);for(let e=0,i=t.length;e<i;e++){const i=t[e]%s;a[Math.floor(t[e]/s)].push(i)}for(let t=0,e=a.length;t<e;t++){const e=new Uint16Array(a[t]),n=t*s*4;0!==e.length&&(this.prog.set_attribute("a_position","vec2",i.vbo_position,0,2*n),this.prog.set_attribute("a_tangents","vec4",i.vbo_tangents,0,4*n),this.prog.set_attribute("a_segment","vec2",i.vbo_segment,0,2*n),this.prog.set_attribute("a_angles","vec2",i.vbo_angles,0,2*n),this.prog.set_attribute("a_texcoord","vec2",i.vbo_texcoord,0,2*n),this.index_buffer.set_size(2*e.length),this.index_buffer.set_data(0,e),this.prog.draw(this.gl.TRIANGLES,this.index_buffer))}}}_set_data(){this._bake(),this.vbo_position.set_size(4*this.V_position.length),this.vbo_position.set_data(0,this.V_position),this.vbo_tangents.set_size(4*this.V_tangents.length),this.vbo_tangents.set_data(0,this.V_tangents),this.vbo_angles.set_size(4*this.V_angles.length),this.vbo_angles.set_data(0,this.V_angles),this.vbo_texcoord.set_size(4*this.V_texcoord.length),this.vbo_texcoord.set_data(0,this.V_texcoord)}_set_visuals(){const t=o.color2rgba(this.glyph.visuals.line.line_color.value(),this.glyph.visuals.line.line_alpha.value()),e=l[this.glyph.visuals.line.line_cap.value()],s=r[this.glyph.visuals.line.line_join.value()];this.prog.set_uniform("u_color","vec4",t),this.prog.set_uniform("u_linewidth","float",[this.glyph.visuals.line.line_width.value()]),this.prog.set_uniform("u_antialias","float",[.9]),this.prog.set_uniform("u_linecaps","vec2",[e,e]),this.prog.set_uniform("u_linejoin","float",[s]),this.prog.set_uniform("u_miter_limit","float",[10]);const i=this.glyph.visuals.line.line_dash.value();let a=0,n=1;i.length&&([a,n]=this.dash_atlas.get_atlas_data(i)),this.prog.set_uniform("u_dash_index","float",[a]),this.prog.set_uniform("u_dash_phase","float",[this.glyph.visuals.line.line_dash_offset.value()]),this.prog.set_uniform("u_dash_period","float",[n]),this.prog.set_uniform("u_dash_caps","vec2",[e,e]),this.prog.set_uniform("u_closed","float",[0])}_bake(){let t,e,s,i,a,n,_,o;const h=this.nvertices,r=new Float64Array(this.glyph._x),l=new Float64Array(this.glyph._y),g=_=new Float32Array(2*h),f=new Float32Array(2*h),u=o=new Float32Array(4*h);for(let t=0,e=h;t<e;t++)g[2*t+0]=r[t]+this._baked_offset[0],g[2*t+1]=l[t]+this._baked_offset[1];this.tangents=e=new Float32Array(2*h-2);for(let t=0,s=h-1;t<s;t++)e[2*t+0]=_[2*(t+1)+0]-_[2*t+0],e[2*t+1]=_[2*(t+1)+1]-_[2*t+1];for(let t=0,s=h-1;t<s;t++)u[4*(t+1)+0]=e[2*t+0],u[4*(t+1)+1]=e[2*t+1],u[4*t+2]=e[2*t+0],u[4*t+3]=e[2*t+1];u[0]=e[0],u[1]=e[1],u[4*(h-1)+2]=e[2*(h-2)+0],u[4*(h-1)+3]=e[2*(h-2)+1];const c=new Float32Array(h);for(let t=0,e=h;t<e;t++)c[t]=Math.atan2(o[4*t+0]*o[4*t+3]-o[4*t+1]*o[4*t+2],o[4*t+0]*o[4*t+2]+o[4*t+1]*o[4*t+3]);for(let t=0,e=h-1;t<e;t++)f[2*t+0]=c[t],f[2*t+1]=c[t+1];const d=4*h-4;this.V_position=i=new Float32Array(2*d),this.V_angles=s=new Float32Array(2*d),this.V_tangents=a=new Float32Array(4*d),this.V_texcoord=n=new Float32Array(2*d);for(let t=0,e=h;t<e;t++)for(let e=0;e<4;e++){for(let a=0;a<2;a++)i[2*(4*t+e-2)+a]=g[2*t+a],s[2*(4*t+e)+a]=f[2*t+a];for(let s=0;s<4;s++)a[4*(4*t+e-2)+s]=u[4*t+s]}for(let t=0,e=h;t<e;t++)n[2*(4*t+0)+0]=-1,n[2*(4*t+1)+0]=-1,n[2*(4*t+2)+0]=1,n[2*(4*t+3)+0]=1,n[2*(4*t+0)+1]=-1,n[2*(4*t+1)+1]=1,n[2*(4*t+2)+1]=-1,n[2*(4*t+3)+1]=1;const p=6*(h-1);this.I_triangles=t=new Uint32Array(p);for(let e=0,s=h;e<s;e++)t[6*e+0]=0+4*e,t[6*e+1]=1+4*e,t[6*e+2]=3+4*e,t[6*e+3]=2+4*e,t[6*e+4]=0+4*e,t[6*e+5]=3+4*e}_update_scale(t,e){let s;const i=this.nvertices,a=4*i-4,n=this.tangents,_=new Float32Array(i-1),o=new Float32Array(2*i);this.V_segment=s=new Float32Array(2*a);for(let s=0,a=i-1;s<a;s++)_[s]=Math.sqrt((n[2*s+0]*t)**2+(n[2*s+1]*e)**2);let h=0;for(let t=0,e=i-1;t<e;t++)h+=_[t],o[2*(t+1)+0]=h,o[2*t+1]=h;for(let t=0,e=i;t<e;t++)for(let e=0;e<4;e++)for(let i=0;i<2;i++)s[2*(4*t+e)+i]=o[2*t+i];this.cumsum=h,this.vbo_segment.set_size(4*this.V_segment.length),this.vbo_segment.set_data(0,this.V_segment)}}s.LineGLGlyph=g,g.__name__="LineGLGlyph"},n”, ” 360: function _(t,e,r){var n,o,i,a,s,l,h,u,c,_=function(t,e){return Array.isArray(t)&&Array.isArray(e)?t.concat(e):t+e},f=function(t,e){if(null==e);else{if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(p(t,e[r]))return!0;return!1}if(e.constructor===Object){for(var n in e)if(t==n)return!0;return!1}if(e.constructor==String)return e.indexOf(t)>=0}var o=Error("Not a container: "+e);throw o.name="TypeError",o},p=function t(e,r){if(null==e||null==r);else{if(Array.isArray(e)&&Array.isArray(r)){for(var n=0,o=e.length==r.length;o&&n<e.length;)o=t(e[n],r[n]),n+=1;return o}if(e.constructor===Object&&r.constructor===Object){var i=Object.keys(e),a=Object.keys(r);i.sort(),a.sort();var s;for(n=0,o=t(i,a);o&&n<i.length;)o=t(e[s=i[n]],r[s]),n+=1;return o}}return e==r},d=function(t,e){if(void 0===t||"undefined"!=typeof window&&window===t||"undefined"!=typeof global&&global===t)throw"Class constructor is called as a function.";for(var r in t)void 0!==Object[r]||"function"!=typeof t[r]||t[r].nobind||(t[r]=t[r].bind(t));t.__init__&&t.__init__.apply(t,e)},y=function(t,e){if(("number"==typeof t)+("number"==typeof e)===1){if(t.constructor===String)return A.call(t,e);if(e.constructor===String)return A.call(e,t);if(Array.isArray(e)){var r=t;t=e,e=r}if(Array.isArray(t)){for(var n=[],o=0;o<e;o++)n=n.concat(t);return n}}return t*e},g=function(t){return null===t||"object"!=typeof t?t:void 0!==t.length?!!t.length&&t:void 0!==t.byteLength?!!t.byteLength&&t:t.constructor!==Object||!!Object.getOwnPropertyNames(t).length&&t},v=function(t){if(!Array.isArray(this))return this.append.apply(this,arguments);this.push(t)},m=function(t,e){return this.constructor!==Object?this.get.apply(this,arguments):void 0!==this[t]?this[t]:void 0!==e?e:null},x=function(){return"function"==typeof this.keys?this.keys.apply(this,arguments):Object.keys(this)},b=function(t){if(this.constructor!==String)return this.lstrip.apply(this,arguments);t=void 0===t?" \t\r\n":t;for(var e=0;e<this.length;e++)if(t.indexOf(this[e])<0)return this.slice(e);return""},E=function(t){if(!Array.isArray(this))return this.remove.apply(this,arguments);for(var e=0;e<this.length;e++)if(p(this[e],t))return void this.splice(e,1);var r=Error(t);throw r.name="ValueError",r},A=function(t){if(this.repeat)return this.repeat(t);if(t<1)return"";for(var e="",r=this.valueOf();t>1;)1&t&&(e+=r),t>>=1,r+=r;return e+r},w=function(t){return this.constructor!==String?this.startswith.apply(this,arguments):0==this.indexOf(t)};c=window.console,u=function(t,e){var r,n,o,i,a,s,l;for(e=void 0===e?"periodic check":e,i=[];n=t.getError(),!(p(n,t.NO_ERROR)||g(i)&&p(n,i[i.length-1]));)v.call(i,n);if(i.length){for(a="","object"!=typeof(s=i)||Array.isArray(s)||(s=Object.keys(s)),l=0;l<s.length;l+=1)r=s[l],a=_(a,r);throw(o=new Error("RuntimeError:OpenGL got errors ("+e+"): "+a)).name="RuntimeError",o}return null},(o=function(){d(this,arguments)}).prototype._base_class=Object,o.prototype._class_name="GlooObject",o.prototype.__init__=function(t){if(this._gl=t,this.handle=null,this._create(),null===this.handle)throw"AssertionError: this.handle !== null";return null},o.prototype._create=function(){var t;throw(t=new Error("NotImplementedError:")).name="NotImplementedError",t},((a=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,a.prototype._class_name="Program",a.prototype.UTYPEMAP={float:"uniform1fv",vec2:"uniform2fv",vec3:"uniform3fv",vec4:"uniform4fv",int:"uniform1iv",ivec2:"uniform2iv",ivec3:"uniform3iv",ivec4:"uniform4iv",bool:"uniform1iv",bvec2:"uniform2iv",bvec3:"uniform3iv",bvec4:"uniform4iv",mat2:"uniformMatrix2fv",mat3:"uniformMatrix3fv",mat4:"uniformMatrix4fv",sampler1D:"uniform1i",sampler2D:"uniform1i",sampler3D:"uniform1i"},a.prototype.ATYPEMAP={float:"vertexAttrib1f",vec2:"vertexAttrib2f",vec3:"vertexAttrib3f",vec4:"vertexAttrib4f"},a.prototype.ATYPEINFO={float:[1,5126],vec2:[2,5126],vec3:[3,5126],vec4:[4,5126]},a.prototype._create=function(){return this.handle=this._gl.createProgram(),this.locations={},this._unset_variables=[],this._validated=!1,this._samplers={},this._attributes={},this._known_invalid=[],null},a.prototype.delete=function(){return this._gl.deleteProgram(this.handle),null},a.prototype.activate=function(){return this._gl.useProgram(this.handle),null},a.prototype.deactivate=function(){return this._gl.useProgram(0),null},a.prototype.set_shaders=function(t,e){var r,n,o,i,a,s,l,h,u,c,f,p,d;for(s=this._gl,this._linked=!1,f=[[t,d=s.createShader(s.VERTEX_SHADER),"vertex"],[e,a=s.createShader(s.FRAGMENT_SHADER),"fragment"]],h=0;h<2;h+=1)if(r=(c=f[h])[0],l=c[1],p=c[2],s.shaderSource(l,r),s.compileShader(l),u=s.getShaderParameter(l,s.COMPILE_STATUS),!g(u))throw i=s.getShaderInfoLog(l),(o=new Error("RuntimeError:"+_("errors in "+p+" shader:\n",i))).name="RuntimeError",o;if(s.attachShader(this.handle,d),s.attachShader(this.handle,a),s.linkProgram(this.handle),!g(s.getProgramParameter(this.handle,s.LINK_STATUS)))throw(n=new Error("RuntimeError:Program link error:\n"+s.getProgramInfoLog(this.handle))).name="RuntimeError",n;return this._unset_variables=this._get_active_attributes_and_uniforms(),s.detachShader(this.handle,d),s.detachShader(this.handle,a),s.deleteShader(d),s.deleteShader(a),this._known_invalid=[],this._linked=!0,null},a.prototype._get_active_attributes_and_uniforms=function(){var t,e,r,n,o,i,a,s,l,h,u,c,f,p,d,y,m,x;for(s=this._gl,this.locations={},p=new window.RegExp("(\\w+)\\s*(\\[(\\d+)\\])\\s*"),o=s.getProgramParameter(this.handle,s.ACTIVE_UNIFORMS),e=s.getProgramParameter(this.handle,s.ACTIVE_ATTRIBUTES),x=[],"object"!=typeof(y=[[t=[],e,s.getActiveAttrib,s.getAttribLocation],[x,o,s.getActiveUniform,s.getUniformLocation]])||Array.isArray(y)||(y=Object.keys(y)),m=0;m<y.length;m+=1)for(r=(d=y[m])[0],n=d[1],i=d[2],a=d[3],l=0;l<n;l+=1){if(c=(f=(h=i.call(s,this.handle,l)).name).match(p),g(c))for(f=c[1],u=0;u<h.size;u+=1)v.call(r,[f+"["+u+"]",h.type]);else v.call(r,[f,h.type]);this.locations[f]=a.call(s,this.handle,f)}return _(function(){var e,r,n,o=[];for("object"!=typeof(r=t)||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n++)e=r[n],o.push(e[0]);return o}.apply(this),function(){var t,e,r,n=[];for("object"!=typeof(e=x)||Array.isArray(e)||(e=Object.keys(e)),r=0;r<e.length;r++)t=e[r],n.push(t[0]);return n}.apply(this))},a.prototype.set_texture=function(t,e){var r,n,o;if(!g(this._linked))throw(r=new Error("RuntimeError:Cannot set uniform when program has no code")).name="RuntimeError",r;return n=m.call(this.locations,t,-1),g(n<0)?(f(t,this._known_invalid)||(v.call(this._known_invalid,t),c.log("Variable "+t+" is not an active texture")),null):(f(t,this._unset_variables)&&E.call(this._unset_variables,t),this.activate(),o=x.call(this._samplers).length,f(t,this._samplers)&&(o=this._samplers[t][this._samplers[t].length-1]),this._samplers[t]=[e._target,e.handle,o],this._gl.uniform1i(n,o),null)},a.prototype.set_uniform=function(t,e,r){var n,o,i,a,s,l,h;if(!g(this._linked))throw(i=new Error("RuntimeError:Cannot set uniform when program has no code")).name="RuntimeError",i;if(s=m.call(this.locations,t,-1),g(s<0))return f(t,this._known_invalid)||(v.call(this._known_invalid,t),c.log("Variable "+t+" is not an active uniform")),null;if(f(t,this._unset_variables)&&E.call(this._unset_variables,t),o=1,w.call(e,"mat")||(n=m.call({int:"float",bool:"float"},e,b.call(e,"ib")),o=Math.floor(r.length/this.ATYPEINFO[n][0])),g(o>1))for(l=0;l<o;l+=1)f(t+"["+l+"]",this._unset_variables)&&f(h=t+"["+l+"]",this._unset_variables)&&E.call(this._unset_variables,h);return a=this.UTYPEMAP[e],this.activate(),w.call(e,"mat")?this._gl[a](s,!1,r):this._gl[a](s,r),null},a.prototype.set_attribute=function(t,e,r,n,o){var i,a,s,l,u,_;if(n=void 0===n?0:n,o=void 0===o?0:o,!g(this._linked))throw(a=new Error("RuntimeError:Cannot set attribute when program has no code")).name="RuntimeError",a;return u=r instanceof h,l=m.call(this.locations,t,-1),g(l<0)?(f(t,this._known_invalid)||(v.call(this._known_invalid,t),g(u)&&g(o>0)||c.log("Variable "+t+" is not an active attribute")),null):(f(t,this._unset_variables)&&E.call(this._unset_variables,t),this.activate(),g(u)?(s="vertexAttribPointer",i=[(_=this.ATYPEINFO[e])[0],_[1],this._gl.FALSE,n,o],this._attributes[t]=[r.handle,l,s,i]):(s=this.ATYPEMAP[e],this._attributes[t]=[0,l,s,r]),null)},a.prototype._pre_draw=function(){var t,e,r,n,o,i,a,s,l,h,u,c;for(c in this.activate(),a=this._samplers)a.hasOwnProperty(c)&&(l=(i=c=a[c])[0],s=i[1],h=i[2],this._gl.activeTexture(_(this._gl.TEXTURE0,h)),this._gl.bindTexture(l,s));for(c in o=this._attributes)o.hasOwnProperty(c)&&(u=(n=c=o[c])[0],e=n[1],r=n[2],t=n[3],g(u)?(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,u),this._gl.enableVertexAttribArray(e),this._gl[r].apply(this._gl,[].concat([e],t))):(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,null),this._gl.disableVertexAttribArray(e),this._gl[r].apply(this._gl,[].concat([e],t))));return g(this._validated)||(this._validated=!0,this._validate()),null},a.prototype._validate=function(){var t;if(this._unset_variables.length&&c.log("Program has unset variables: "+this._unset_variables),this._gl.validateProgram(this.handle),!g(this._gl.getProgramParameter(this.handle,this._gl.VALIDATE_STATUS)))throw c.log(this._gl.getProgramInfoLog(this.handle)),(t=new Error("RuntimeError:Program validation error")).name="RuntimeError",t;return null},a.prototype.draw=function(t,e){var r,n,o,a,s;if(!g(this._linked))throw(n=new Error("RuntimeError:Cannot draw program if code has not been set")).name="RuntimeError",n;return u(this._gl,"before draw"),g(e instanceof i)?(this._pre_draw(),e.activate(),r=e._buffer_size/2,a=this._gl.UNSIGNED_SHORT,this._gl.drawElements(t,r,a,0),e.deactivate()):(o=(s=e)[0],r=s[1],g(r)&&(this._pre_draw(),this._gl.drawArrays(t,o,r))),u(this._gl,"after draw"),null},((n=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,n.prototype._class_name="Buffer",n.prototype._target=null,n.prototype._usage=35048,n.prototype._create=function(){return this.handle=this._gl.createBuffer(),this._buffer_size=0,null},n.prototype.delete=function(){return this._gl.deleteBuffer(this.handle),null},n.prototype.activate=function(){return this._gl.bindBuffer(this._target,this.handle),null},n.prototype.deactivate=function(){return this._gl.bindBuffer(this._target,null),null},n.prototype.set_size=function(t){return p(t,this._buffer_size)||(this.activate(),this._gl.bufferData(this._target,t,this._usage),this._buffer_size=t),null},n.prototype.set_data=function(t,e){return this.activate(),this._gl.bufferSubData(this._target,t,e),null},(h=function(){d(this,arguments)}).prototype=Object.create(n.prototype),h.prototype._base_class=n.prototype,h.prototype._class_name="VertexBuffer",h.prototype._target=34962,(i=function(){d(this,arguments)}).prototype=Object.create(n.prototype),i.prototype._base_class=n.prototype,i.prototype._class_name="IndexBuffer",i.prototype._target=34963,((s=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,s.prototype._class_name="Texture2D",s.prototype._target=3553,s.prototype._types={Int8Array:5120,Uint8Array:5121,Int16Array:5122,Uint16Array:5123,Int32Array:5124,Uint32Array:5125,Float32Array:5126},s.prototype._create=function(){return this.handle=this._gl.createTexture(),this._shape_format=null,null},s.prototype.delete=function(){return this._gl.deleteTexture(this.handle),null},s.prototype.activate=function(){return this._gl.bindTexture(this._target,this.handle),null},s.prototype.deactivate=function(){return this._gl.bindTexture(this._target,0),null},s.prototype._get_alignment=function(t){var e,r,n;for("object"!=typeof(r=[4,8,2,1])||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n+=1)if(e=r[n],p(t%e,0))return e;return null},s.prototype.set_wrapping=function(t,e){return this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_S,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_T,e),null},s.prototype.set_interpolation=function(t,e){return this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_MIN_FILTER,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_MAG_FILTER,e),null},s.prototype.set_size=function(t,e){var r,n,o;return r=(n=t)[0],o=n[1],p([r,o,e],this._shape_format)||(this._shape_format=[r,o,e],this.activate(),this._gl.texImage2D(this._target,0,e,o,r,0,e,this._gl.UNSIGNED_BYTE,null)),this.u_shape=[r,o],null},s.prototype.set_data=function(t,e,r){var n,o,i,a,s,l,h,u,c,_;if(p(e.length,2)&&(e=[e[0],e[1],1]),this.activate(),i=this._shape_format[2],s=(l=e)[0],u=l[1],l[2],_=(h=t)[0],c=h[1],null===(a=m.call(this._types,r.constructor.name,null)))throw(o=new Error("ValueError:Type "+r.constructor.name+" not allowed for texture")).name="ValueError",o;return n=this._get_alignment(y(e[e.length-2],e[e.length-1])),p(n,4)||this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,n),this._gl.texSubImage2D(this._target,0,c,_,u,s,i,a,r),p(n,4)||this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,4),null},((l=function(){d(this,arguments)}).prototype=Object.create(s.prototype))._base_class=s.prototype,l.prototype._class_name="Texture3DLike",l.prototype.GLSL_SAMPLE_NEAREST="\n vec4 sample3D(sampler2D tex, vec3 texcoord, vec3 shape, vec2 tiles) {\n shape.xyz = shape.zyx; // silly row-major convention\n float nrows = tiles.y, ncols = tiles.x;\n // Don’t let adjacent frames be interpolated into this one\n texcoord.x = min(texcoord.x * shape.x, shape.x - 0.5);\n texcoord.x = max(0.5, texcoord.x) / shape.x;\n texcoord.y = min(texcoord.y * shape.y, shape.y - 0.5);\n texcoord.y = max(0.5, texcoord.y) / shape.y;\n\n float zindex = floor(texcoord.z * shape.z);\n\n // Do a lookup in the 2D texture\n float u = (mod(zindex, ncols) + texcoord.x) / ncols;\n float v = (floor(zindex / ncols) + texcoord.y) / nrows;\n\n return texture2D(tex, vec2(u,v));\n }\n ",l.prototype.GLSL_SAMPLE_LINEAR="\n vec4 sample3D(sampler2D tex, vec3 texcoord, vec3 shape, vec2 tiles) {\n shape.xyz = shape.zyx; // silly row-major convention\n float nrows = tiles.y, ncols = tiles.x;\n // Don’t let adjacent frames be interpolated into this one\n texcoord.x = min(texcoord.x * shape.x, shape.x - 0.5);\n texcoord.x = max(0.5, texcoord.x) / shape.x;\n texcoord.y = min(texcoord.y * shape.y, shape.y - 0.5);\n texcoord.y = max(0.5, texcoord.y) / shape.y;\n\n float z = texcoord.z * shape.z;\n float zindex1 = floor(z);\n float u1 = (mod(zindex1, ncols) + texcoord.x) / ncols;\n float v1 = (floor(zindex1 / ncols) + texcoord.y) / nrows;\n\n float zindex2 = zindex1 + 1.0;\n float u2 = (mod(zindex2, ncols) + texcoord.x) / ncols;\n float v2 = (floor(zindex2 / ncols) + texcoord.y) / nrows;\n\n vec4 s1 = texture2D(tex, vec2(u1, v1));\n vec4 s2 = texture2D(tex, vec2(u2, v2));\n\n return s1 * (zindex2 - z) + s2 * (z - zindex1);\n }\n ",l.prototype._get_tile_info=function(t){var e,r,n,o;if(r=this._gl.getParameter(this._gl.MAX_TEXTURE_SIZE),o=Math.floor(r/t[1]),o=Math.min(o,t[0]),n=window.Math.ceil(t[0]/o),g(y(n,t[2])>r))throw(e=new Error("RuntimeError:Cannot fit 3D data with shape "+t+" onto simulated 2D texture.")).name="RuntimeError",e;return[o,n]},l.prototype.set_size=function(t,e){var r,n,o,i;return n=(i=this._get_tile_info(t))[0],r=i[1],o=[y(t[1],n),y(t[2],r)],l.prototype._base_class.set_size.call(this,o,e),this.u_shape=[t[0],t[1],t[2]],this.u_tiles=[r,n],null},l.prototype.set_data=function(t,e,r){var n,o,i,a,s,h,u,c,_,f,d,v;if(p(e.length,3)&&(e=[e[0],e[1],e[2],1]),!function(t){for(var e=0;e<t.length;e++)if(!g(t[e]))return!1;return!0}(function(){var e,r,n,o=[];for("object"!=typeof(r=t)||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n++)e=r[n],o.push(p(e,0));return o}.apply(this)))throw(i=new Error("ValueError:Texture3DLike does not support nonzero offset (for now)")).name="ValueError",i;if(s=(c=this._get_tile_info(e))[0],a=c[1],u=[y(e[1],s),y(e[2],a),e[3]],p(a,1))l.prototype._base_class.set_data.call(this,[0,0],u,r);else for(v=new(0,r.constructor)(y(y(u[0],u[1]),u[2])),l.prototype._base_class.set_data.call(this,[0,0],u,v),d=0;d<e[0];d+=1)h=(_=[Math.floor(d/a),d%a])[0],n=_[1],o=Math.floor(r.length/e[0]),f=r.slice(y(d,o),y(d+1,o)),l.prototype._base_class.set_data.call(this,[y(h,e[1]),y(n,e[2])],e.slice(1),f);return null},e.exports={Buffer:n,GlooObject:o,IndexBuffer:i,Program:a,Texture2D:s,Texture3DLike:l,VertexBuffer:h,check_error:u,console:c}},n”, ” 361: function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const r=e(21),s=e(70);class i{constructor(e,t){this.gl=e,this.glyph=t,this.nvertices=0,this.size_changed=!1,this.data_changed=!1,this.visuals_changed=!1,this.init()}set_data_changed(e){e!=this.nvertices&&(this.nvertices=e,this.size_changed=!0),this.data_changed=!0}set_visuals_changed(){this.visuals_changed=!0}render(e,t,a){if(0==t.length)return!0;const[r,i,n]=[0,1,2];let l=1,h=1,[c,o]=this.glyph.renderer.map_to_screen([r*l,i*l,n*l],[r*h,i*h,n*h]);if(isNaN(c[0]+c[1]+c[2]+o[0]+o[1]+o[2]))return s.logger.warn(WebGL backend (${this.glyph.model.type}): falling back to canvas rendering),!1;if(l=100/Math.min(Math.max(Math.abs(c[1]-c[0]),1e-12),1e12),h=100/Math.min(Math.max(Math.abs(o[1]-o[0]),1e-12),1e12),[c,o]=this.glyph.renderer.map_to_screen([r*l,i*l,n*l],[r*h,i*h,n*h]),Math.abs(c[1]-c[0]-(c[2]-c[1]))>1e-6||Math.abs(o[1]-o[0]-(o[2]-o[1]))>1e-6)return s.logger.warn(WebGL backend (${this.glyph.model.type}): falling back to canvas rendering),!1;const[_,u]=[(c[1]-c[0])/l,(o[1]-o[0])/h],{width:d,height:g}=this.glyph.renderer.plot_view.canvas_view.webgl.canvas,f={pixel_ratio:this.glyph.renderer.plot_view.canvas.pixel_ratio,width:d,height:g,dx:c[0]/_,dy:o[0]/u,sx:_,sy:u};return this.draw(t,a,f),!0}}function n(e,t){const a=new Float32Array(e);for(let r=0,s=e;r<s;r++)a[r]=t;return a}function l(e,t){return void 0!==e[t].spec.value}a.BaseGLGlyph=i,i.__name__="BaseGLGlyph",a.line_width=function(e){return e<2&&(e=Math.sqrt(2*e)),e},a.fill_array_with_float=n,a.fill_array_with_vec=function(e,t,a){const r=new Float32Array(e*t);for(let s=0;s<e;s++)for(let e=0;e<t;e++)r[s*t+e]=a[e];return r},a.visual_prop_is_singular=l,a.attach_float=function(e,t,a,r,s,i){if(s.doit)if(l(s,i))t.used=!1,e.set_attribute(a,"float",s[i].value());else{t.used=!0;const n=new Float32Array(s.cache[i+"_array"]);t.set_size(4*r),t.set_data(0,n),e.set_attribute(a,"float",t)}else t.used=!1,e.set_attribute(a,"float",[0])},a.attach_color=function(e,t,a,s,i,h){let c;const o=h+"_color",_=h+"_alpha";if(i.doit)if(l(i,o)&&l(i,_))t.used=!1,c=r.color2rgba(i[o].value(),i[_].value()),e.set_attribute(a,"vec4",c);else{let h,u;t.used=!0,u=l(i,o)?(()=>{const e=[];for(let t=0,a=s;t<a;t++)e.push(i[o].value());return e})():i.cache[o+"_array"],h=l(i,_)?n(s,i[_].value()):i.cache[_+"_array"];const d=new Float32Array(4*s);for(let e=0,t=s;e<t;e++){c=r.color2rgba(u[e],h[e]);for(let t=0,a=4;t<a;t++)d[4*e+t]=c[t]}t.set_size(4*s*4),t.set_data(0,d),e.set_attribute(a,"vec4",t)}else t.used=!1,e.set_attribute(a,"vec4",[0,0,0,0])}},n”, ” 362: function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.vertex_shader="\nprecision mediump float;\n\nconst float PI = 3.14159265358979323846264;\nconst float THETA = 15.0 * 3.14159265358979323846264/180.0;\n\nuniform float u_pixel_ratio;\nuniform vec2 u_canvas_size, u_offset;\nuniform vec2 u_scale_aspect;\nuniform float u_scale_length;\n\nuniform vec4 u_color;\nuniform float u_antialias;\nuniform float u_length;\nuniform float u_linewidth;\nuniform float u_dash_index;\nuniform float u_closed;\n\nattribute vec2 a_position;\nattribute vec4 a_tangents;\nattribute vec2 a_segment;\nattribute vec2 a_angles;\nattribute vec2 a_texcoord;\n\nvarying vec4 v_color;\nvarying vec2 v_segment;\nvarying vec2 v_angles;\nvarying vec2 v_texcoord;\nvarying vec2 v_miter;\nvarying float v_length;\nvarying float v_linewidth;\n\nfloat cross(in vec2 v1, in vec2 v2)\n{\n return v1.x*v2.y - v1.y*v2.x;\n}\n\nfloat signed_distance(in vec2 v1, in vec2 v2, in vec2 v3)\n{\n return cross(v2-v1,v1-v3) / length(v2-v1);\n}\n\nvoid rotate( in vec2 v, in float alpha, out vec2 result )\n{\n float c = cos(alpha);\n float s = sin(alpha);\n result = vec2( c*v.x - s*v.y,\n s*v.x + c*v.y );\n}\n\nvoid main()\n{\n bool closed = (u_closed > 0.0);\n\n // Attributes and uniforms to varyings\n v_color = u_color;\n v_linewidth = u_linewidth;\n v_segment = a_segment * u_scale_length;\n v_length = u_length * u_scale_length;\n\n // Scale to map to pixel coordinates. The original algorithm from the paper\n // assumed isotropic scale. We obviously do not have this.\n vec2 abs_scale_aspect = abs(u_scale_aspect);\n vec2 abs_scale = u_scale_length * abs_scale_aspect;\n\n // Correct angles for aspect ratio\n vec2 av;\n av = vec2(1.0, tan(a_angles.x)) / abs_scale_aspect;\n v_angles.x = atan(av.y, av.x);\n av = vec2(1.0, tan(a_angles.y)) / abs_scale_aspect;\n v_angles.y = atan(av.y, av.x);\n\n // Thickness below 1 pixel are represented using a 1 pixel thickness\n // and a modified alpha\n v_color.a = min(v_linewidth, v_color.a);\n v_linewidth = max(v_linewidth, 1.0);\n\n // If color is fully transparent we just will discard the fragment anyway\n if( v_color.a <= 0.0 ) {\n gl_Position = vec4(0.0,0.0,0.0,1.0);\n return;\n }\n\n // This is the actual half width of the line\n float w = ceil(u_antialias+v_linewidth)/2.0;\n\n vec2 position = (a_position + u_offset) * abs_scale;\n\n vec2 t1 = normalize(a_tangents.xy * abs_scale_aspect); // note the scaling for aspect ratio here\n vec2 t2 = normalize(a_tangents.zw * abs_scale_aspect);\n float u = a_texcoord.x;\n float v = a_texcoord.y;\n vec2 o1 = vec2( +t1.y, -t1.x);\n vec2 o2 = vec2( +t2.y, -t2.x);\n\n // This is a join\n // —————————————————————-\n if( t1 != t2 ) {\n float angle = atan (t1.x*t2.y-t1.y*t2.x, t1.x*t2.x+t1.y*t2.y); // Angle needs recalculation for some reason\n vec2 t = normalize(t1+t2);\n vec2 o = vec2( + t.y, - t.x);\n\n if ( u_dash_index > 0.0 )\n {\n // Broken angle\n // —————————————————————-\n if( (abs(angle) > THETA) ) {\n position += v * w * o / cos(angle/2.0);\n float s = sign(angle);\n if( angle < 0.0 ) {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n if( v == 1.0 ) {\n position -= 2.0 * w * t1 / sin(angle);\n u -= 2.0 * w / sin(angle);\n }\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n if( v == 1.0 ) {\n position += 2.0 * w * t2 / sin(angle);\n u += 2.0*w / sin(angle);\n }\n }\n } else {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n if( v == -1.0 ) {\n position += 2.0 * w * t1 / sin(angle);\n u += 2.0 * w / sin(angle);\n }\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n if( v == -1.0 ) {\n position -= 2.0 * w * t2 / sin(angle);\n u -= 2.0*w / sin(angle);\n }\n }\n }\n // Continuous angle\n // ————————————————————\n } else {\n position += v * w * o / cos(angle/2.0);\n if( u == +1.0 ) u = v_segment.y;\n else u = v_segment.x;\n }\n }\n\n // Solid line\n // ——————————————————————–\n else\n {\n position.xy += v * w * o / cos(angle/2.0);\n if( angle < 0.0 ) {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n }\n } else {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n }\n }\n }\n\n // This is a line start or end (t1 == t2)\n // ————————————————————————\n } else {\n position += v * w * o1;\n if( u == -1.0 ) {\n u = v_segment.x - w;\n position -= w * t1;\n } else {\n u = v_segment.y + w;\n position += w * t2;\n }\n }\n\n // Miter distance\n // ————————————————————————\n vec2 t;\n vec2 curr = a_position * abs_scale;\n if( a_texcoord.x < 0.0 ) {\n vec2 next = curr + t2*(v_segment.y-v_segment.x);\n\n rotate( t1, +v_angles.x/2.0, t);\n v_miter.x = signed_distance(curr, curr+t, position);\n\n rotate( t2, +v_angles.y/2.0, t);\n v_miter.y = signed_distance(next, next+t, position);\n } else {\n vec2 prev = curr - t1*(v_segment.y-v_segment.x);\n\n rotate( t1, -v_angles.x/2.0,t);\n v_miter.x = signed_distance(prev, prev+t, position);\n\n rotate( t2, -v_angles.y/2.0,t);\n v_miter.y = signed_distance(curr, curr+t, position);\n }\n\n if (!closed && v_segment.x <= 0.0) {\n v_miter.x = 1e10;\n }\n if (!closed && v_segment.y >= v_length)\n {\n v_miter.y = 1e10;\n }\n\n v_texcoord = vec2( u, v*w );\n\n // Calculate position in device coordinates. Note that we\n // already scaled with abs scale above.\n vec2 normpos = position * sign(u_scale_aspect);\n normpos += 0.5; // make up for Bokeh’s offset\n normpos /= u_canvas_size / u_pixel_ratio; // in 0..1\n gl_Position = vec4(normpos*2.0-1.0, 0.0, 1.0);\n gl_Position.y = -1.0;\n}\n"},n”, ” 363: function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.fragment_shader="\nprecision mediump float;\n\nconst float PI = 3.14159265358979323846264;\nconst float THETA = 15.0 * 3.14159265358979323846264/180.0;\n\nuniform sampler2D u_dash_atlas;\n\nuniform vec2 u_linecaps;\nuniform float u_miter_limit;\nuniform float u_linejoin;\nuniform float u_antialias;\nuniform float u_dash_phase;\nuniform float u_dash_period;\nuniform float u_dash_index;\nuniform vec2 u_dash_caps;\nuniform float u_closed;\n\nvarying vec4 v_color;\nvarying vec2 v_segment;\nvarying vec2 v_angles;\nvarying vec2 v_texcoord;\nvarying vec2 v_miter;\nvarying float v_length;\nvarying float v_linewidth;\n\n// Compute distance to cap —————————————————-\nfloat cap( int type, float dx, float dy, float t, float linewidth )\n{\n float d = 0.0;\n dx = abs(dx);\n dy = abs(dy);\n if (type == 0) discard; // None\n else if (type == 1) d = sqrt(dx*dx+dy*dy); // Round\n else if (type == 3) d = (dx+abs(dy)); // Triangle in\n else if (type == 2) d = max(abs(dy),(t+dx-abs(dy))); // Triangle out\n else if (type == 4) d = max(dx,dy); // Square\n else if (type == 5) d = max(dx+t,dy); // Butt\n return d;\n}\n\n// Compute distance to join ————————————————-\nfloat join( in int type, in float d, in vec2 segment, in vec2 texcoord, in vec2 miter,\n in float linewidth )\n{\n // texcoord.x is distance from start\n // texcoord.y is distance from centerline\n // segment.x and y indicate the limits (as for texcoord.x) for this segment\n\n float dx = texcoord.x;\n\n // Round join\n if( type == 1 ) {\n if (dx < segment.x) {\n d = max(d,length( texcoord - vec2(segment.x,0.0)));\n //d = length( texcoord - vec2(segment.x,0.0));\n } else if (dx > segment.y) {\n d = max(d,length( texcoord - vec2(segment.y,0.0)));\n //d = length( texcoord - vec2(segment.y,0.0));\n }\n }\n // Bevel join\n else if ( type == 2 ) {\n if (dx < segment.x) {\n vec2 x = texcoord - vec2(segment.x,0.0);\n d = max(d, max(abs(x.x), abs(x.y)));\n\n } else if (dx > segment.y) {\n vec2 x = texcoord - vec2(segment.y,0.0);\n d = max(d, max(abs(x.x), abs(x.y)));\n }\n / Original code for bevel which does not work for us\n if( (dx < segment.x) || (dx > segment.y) )\n d = max(d, min(abs(x.x),abs(x.y)));\n /\n }\n\n return d;\n}\n\nvoid main()\n{\n // If color is fully transparent we just discard the fragment\n if( v_color.a <= 0.0 ) {\n discard;\n }\n\n // Test if dash pattern is the solid one (0)\n bool solid = (u_dash_index == 0.0);\n\n // Test if path is closed\n bool closed = (u_closed > 0.0);\n\n vec4 color = v_color;\n float dx = v_texcoord.x;\n float dy = v_texcoord.y;\n float t = v_linewidth/2.0-u_antialias;\n float width = 1.0; //v_linewidth; original code had dashes scale with line width, we do not\n float d = 0.0;\n\n vec2 linecaps = u_linecaps;\n vec2 dash_caps = u_dash_caps;\n float line_start = 0.0;\n float line_stop = v_length;\n\n // Apply miter limit; fragments too far into the miter are simply discarded\n if( (dx < v_segment.x) || (dx > v_segment.y) ) {\n float into_miter = max(v_segment.x - dx, dx - v_segment.y);\n if (into_miter > u_miter_limit*v_linewidth/2.0)\n discard;\n }\n\n // Solid line ————————————————————–\n if( solid ) {\n d = abs(dy);\n if( (!closed) && (dx < line_start) ) {\n d = cap( int(u_linecaps.x), abs(dx), abs(dy), t, v_linewidth );\n }\n else if( (!closed) && (dx > line_stop) ) {\n d = cap( int(u_linecaps.y), abs(dx)-line_stop, abs(dy), t, v_linewidth );\n }\n else {\n d = join( int(u_linejoin), abs(dy), v_segment, v_texcoord, v_miter, v_linewidth );\n }\n\n // Dash line ————————————————————–\n } else {\n float segment_start = v_segment.x;\n float segment_stop = v_segment.y;\n float segment_center= (segment_start+segment_stop)/2.0;\n float freq = u_dash_period*width;\n float u = mod( dx + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n float dash_center= tex.x * width;\n float dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n float dash_start = dx - u + _start;\n float dash_stop = dx - u + _stop;\n\n // Compute extents of the first dash (the one relative to v_segment.x)\n // Note: this could be computed in the vertex shader\n if( (dash_stop < segment_start) && (dash_caps.x != 5.0) ) {\n float u = mod(segment_start + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n dash_center= tex.x * width;\n //dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n dash_start = segment_start - u + _start;\n dash_stop = segment_start - u + _stop;\n }\n\n // Compute extents of the last dash (the one relatives to v_segment.y)\n // Note: This could be computed in the vertex shader\n else if( (dash_start > segment_stop) && (dash_caps.y != 5.0) ) {\n float u = mod(segment_stop + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n dash_center= tex.x * width;\n //dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n dash_start = segment_stop - u + _start;\n dash_stop = segment_stop - u + _stop;\n }\n\n // This test if the we are dealing with a discontinuous angle\n bool discontinuous = ((dx < segment_center) && abs(v_angles.x) > THETA) ||\n ((dx >= segment_center) && abs(v_angles.y) > THETA);\n //if( dx < line_start) discontinuous = false;\n //if( dx > line_stop) discontinuous = false;\n\n float d_join = join( int(u_linejoin), abs(dy),\n v_segment, v_texcoord, v_miter, v_linewidth );\n\n // When path is closed, we do not have room for linecaps, so we make room\n // by shortening the total length\n if (closed) {\n line_start += v_linewidth/2.0;\n line_stop -= v_linewidth/2.0;\n }\n\n // We also need to take antialias area into account\n //line_start += u_antialias;\n //line_stop -= u_antialias;\n\n // Check is dash stop is before line start\n if( dash_stop <= line_start ) {\n discard;\n }\n // Check is dash start is beyond line stop\n if( dash_start >= line_stop ) {\n discard;\n }\n\n // Check if current dash start is beyond segment stop\n if( discontinuous ) {\n // Dash start is beyond segment, we discard\n if( (dash_start > segment_stop) ) {\n discard;\n //gl_FragColor = vec4(1.0,0.0,0.0,.25); return;\n }\n\n // Dash stop is before segment, we discard\n if( (dash_stop < segment_start) ) {\n discard; //gl_FragColor = vec4(0.0,1.0,0.0,.25); return;\n }\n\n // Special case for round caps (nicer with this)\n if( dash_caps.x == 1.0 ) {\n if( (u > _stop) && (dash_stop > segment_stop ) && (abs(v_angles.y) < PI/2.0)) {\n discard;\n }\n }\n\n // Special case for round caps (nicer with this)\n if( dash_caps.y == 1.0 ) {\n if( (u < _start) && (dash_start < segment_start ) && (abs(v_angles.x) < PI/2.0)) {\n discard;\n }\n }\n\n // Special case for triangle caps (in & out) and square\n // We make sure the cap stop at crossing frontier\n if( (dash_caps.x != 1.0) && (dash_caps.x != 5.0) ) {\n if( (dash_start < segment_start ) && (abs(v_angles.x) < PI/2.0) ) {\n float a = v_angles.x/2.0;\n float x = (segment_start-dx)*cos(a) - dy*sin(a);\n float y = (segment_start-dx)*sin(a) + dy*cos(a);\n if( x > 0.0 ) discard;\n // We transform the cap into square to avoid holes\n dash_caps.x = 4.0;\n }\n }\n\n // Special case for triangle caps (in & out) and square\n // We make sure the cap stop at crossing frontier\n if( (dash_caps.y != 1.0) && (dash_caps.y != 5.0) ) {\n if( (dash_stop > segment_stop ) && (abs(v_angles.y) < PI/2.0) ) {\n float a = v_angles.y/2.0;\n float x = (dx-segment_stop)*cos(a) - dy*sin(a);\n float y = (dx-segment_stop)*sin(a) + dy*cos(a);\n if( x > 0.0 ) discard;\n // We transform the caps into square to avoid holes\n dash_caps.y = 4.0;\n }\n }\n }\n\n // Line cap at start\n if( (dx < line_start) && (dash_start < line_start) && (dash_stop > line_start) ) {\n d = cap( int(linecaps.x), dx-line_start, dy, t, v_linewidth);\n }\n // Line cap at stop\n else if( (dx > line_stop) && (dash_stop > line_stop) && (dash_start < line_stop) ) {\n d = cap( int(linecaps.y), dx-line_stop, dy, t, v_linewidth);\n }\n // Dash cap left - dash_type = -1, 0 or 1, but there may be roundoff errors\n else if( dash_type < -0.5 ) {\n d = cap( int(dash_caps.y), abs(u-dash_center), dy, t, v_linewidth);\n if( (dx > line_start) && (dx < line_stop) )\n d = max(d,d_join);\n }\n // Dash cap right\n else if( dash_type > 0.5 ) {\n d = cap( int(dash_caps.x), abs(dash_center-u), dy, t, v_linewidth);\n if( (dx > line_start) && (dx < line_stop) )\n d = max(d,d_join);\n }\n // Dash body (plain)\n else {// if( dash_type > -0.5 && dash_type < 0.5) {\n d = abs(dy);\n }\n\n // Line join\n if( (dx > line_start) && (dx < line_stop)) {\n if( (dx <= segment_start) && (dash_start <= segment_start)\n && (dash_stop >= segment_start) ) {\n d = d_join;\n // Antialias at outer border\n float angle = PI/2.+v_angles.x;\n float f = abs( (segment_start - dx)*cos(angle) - dy*sin(angle));\n d = max(f,d);\n }\n else if( (dx > segment_stop) && (dash_start <= segment_stop)\n && (dash_stop >= segment_stop) ) {\n d = d_join;\n // Antialias at outer border\n float angle = PI/2.+v_angles.y;\n float f = abs((dx - segment_stop)*cos(angle) - dy*sin(angle));\n d = max(f,d);\n }\n else if( dx < (segment_start - v_linewidth/2.)) {\n discard;\n }\n else if( dx > (segment_stop + v_linewidth/2.)) {\n discard;\n }\n }\n else if( dx < (segment_start - v_linewidth/2.)) {\n discard;\n }\n else if( dx > (segment_stop + v_linewidth/2.)) {\n discard;\n }\n }\n\n // Distance to border ——————————————————\n d = d - t;\n if( d < 0.0 ) {\n gl_FragColor = color;\n } else {\n d /= u_antialias;\n gl_FragColor = vec4(color.rgb, exp(-d*d)*color.a);\n }\n}\n"},n”, ” 364: function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),a=t(360),r=t(361),o=t(365),_=t(366),h=t(212),l=t(12),n=t(70);class g extends r.BaseGLGlyph{init(){const{gl:t}=this,s=o.vertex_shader,e=_.fragment_shader(this._marker_code);this.prog=new a.Program(t),this.prog.set_shaders(s,e),this.vbo_x=new a.VertexBuffer(t),this.prog.set_attribute("a_x","float",this.vbo_x),this.vbo_y=new a.VertexBuffer(t),this.prog.set_attribute("a_y","float",this.vbo_y),this.vbo_s=new a.VertexBuffer(t),this.prog.set_attribute("a_size","float",this.vbo_s),this.vbo_a=new a.VertexBuffer(t),this.prog.set_attribute("a_angle","float",this.vbo_a),this.vbo_linewidth=new a.VertexBuffer(t),this.vbo_fg_color=new a.VertexBuffer(t),this.vbo_bg_color=new a.VertexBuffer(t),this.index_buffer=new a.IndexBuffer(t)}draw(t,s,e){const i=s.glglyph,{nvertices:a}=i;if(i.data_changed){if(!isFinite(e.dx)||!isFinite(e.dy))return;i._baked_offset=[e.dx,e.dy],i._set_data(a),i.data_changed=!1}else this.glyph instanceof h.CircleView&&null!=this.glyph._radius&&(null==this.last_trans||e.sx!=this.last_trans.sx||e.sy!=this.last_trans.sy)&&(this.last_trans=e,this.vbo_s.set_data(0,new Float32Array(l.map(this.glyph.sradius,t=>2*t))));this.visuals_changed&&(this._set_visuals(a),this.visuals_changed=!1);const r=i._baked_offset;if(this.prog.set_uniform("u_pixel_ratio","float",[e.pixel_ratio]),this.prog.set_uniform("u_canvas_size","vec2",[e.width,e.height]),this.prog.set_uniform("u_offset","vec2",[e.dx-r[0],e.dy-r[1]]),this.prog.set_uniform("u_scale","vec2",[e.sx,e.sy]),this.prog.set_attribute("a_x","float",i.vbo_x),this.prog.set_attribute("a_y","float",i.vbo_y),this.prog.set_attribute("a_size","float",i.vbo_s),this.prog.set_attribute("a_angle","float",i.vbo_a),0!=t.length)if(t.length===a)this.prog.draw(this.gl.POINTS,[0,a]);else if(a<65535){const s=window.navigator.userAgent;s.indexOf("MSIE ")+s.indexOf("Trident/")+s.indexOf("Edge/")>0&&n.logger.warn("WebGL warning: IE is known to produce 1px sprites whith selections."),this.index_buffer.set_size(2*t.length),this.index_buffer.set_data(0,new Uint16Array(t)),this.prog.draw(this.gl.POINTS,this.index_buffer)}else{const s=64e3,e=[];for(let t=0,i=Math.ceil(a/s);t<i;t++)e.push([]);for(let i=0,a=t.length;i<a;i++){const a=t[i]%s;e[Math.floor(t[i]/s)].push(a)}for(let t=0,a=e.length;t<a;t++){const a=new Uint16Array(e[t]),r=t*s*4;0!==a.length&&(this.prog.set_attribute("a_x","float",i.vbo_x,0,r),this.prog.set_attribute("a_y","float",i.vbo_y,0,r),this.prog.set_attribute("a_size","float",i.vbo_s,0,r),this.prog.set_attribute("a_angle","float",i.vbo_a,0,r),this.vbo_linewidth.used&&this.prog.set_attribute("a_linewidth","float",this.vbo_linewidth,0,r),this.vbo_fg_color.used&&this.prog.set_attribute("a_fg_color","vec4",this.vbo_fg_color,0,4*r),this.vbo_bg_color.used&&this.prog.set_attribute("a_bg_color","vec4",this.vbo_bg_color,0,4*r),this.index_buffer.set_size(2*a.length),this.index_buffer.set_data(0,a),this.prog.draw(this.gl.POINTS,this.index_buffer))}}}_set_data(t){const s=4*t;this.vbo_x.set_size(s),this.vbo_y.set_size(s),this.vbo_a.set_size(s),this.vbo_s.set_size(s);const e=new Float64Array(this.glyph._x),i=new Float64Array(this.glyph._y);for(let s=0,a=t;s<a;s++)e[s]+=this._baked_offset[0],i[s]+=this._baked_offset[1];this.vbo_x.set_data(0,new Float32Array(e)),this.vbo_y.set_data(0,new Float32Array(i)),null!=this.glyph._angle&&this.vbo_a.set_data(0,new Float32Array(this.glyph._angle)),this.glyph instanceof h.CircleView&&null!=this.glyph._radius?this.vbo_s.set_data(0,new Float32Array(l.map(this.glyph.sradius,t=>2*t))):this.vbo_s.set_data(0,new Float32Array(this.glyph._size))}_set_visuals(t){r.attach_float(this.prog,this.vbo_linewidth,"a_linewidth",t,this.glyph.visuals.line,"line_width"),r.attach_color(this.prog,this.vbo_fg_color,"a_fg_color",t,this.glyph.visuals.line,"line"),r.attach_color(this.prog,this.vbo_bg_color,"a_bg_color",t,this.glyph.visuals.fill,"fill"),this.prog.set_uniform("u_antialias","float",[.8])}}function f(t){return class extends g{get _marker_code(){return t}}}e.MarkerGLGlyph=g,g.__name__="MarkerGLGlyph";const d=i.__importStar(t(366));e.CircleGLGlyph=f(d.circle),e.SquareGLGlyph=f(d.square),e.DiamondGLGlyph=f(d.diamond),e.TriangleGLGlyph=f(d.triangle),e.InvertedTriangleGLGlyph=f(d.invertedtriangle),e.HexGLGlyph=f(d.hex),e.CrossGLGlyph=f(d.cross),e.CircleCrossGLGlyph=f(d.circlecross),e.SquareCrossGLGlyph=f(d.squarecross),e.DiamondCrossGLGlyph=f(d.diamondcross),e.XGLGlyph=f(d.x),e.CircleXGLGlyph=f(d.circlex),e.SquareXGLGlyph=f(d.squarex),e.AsteriskGLGlyph=f(d.asterisk)},n”, ” 365: function _(n,i,a){Object.defineProperty(a,"__esModule",{value:!0}),a.vertex_shader="\nprecision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\n//\nuniform float u_pixel_ratio;\nuniform vec2 u_canvas_size;\nuniform vec2 u_offset;\nuniform vec2 u_scale;\nuniform float u_antialias;\n//\nattribute float a_x;\nattribute float a_y;\nattribute float a_size;\nattribute float a_angle; // in radians\nattribute float a_linewidth;\nattribute vec4 a_fg_color;\nattribute vec4 a_bg_color;\n//\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec4 v_fg_color;\nvarying vec4 v_bg_color;\nvarying vec2 v_rotation;\n\nvoid main (void)\n{\n v_size = a_size * u_pixel_ratio;\n v_linewidth = a_linewidth * u_pixel_ratio;\n v_fg_color = a_fg_color;\n v_bg_color = a_bg_color;\n v_rotation = vec2(cos(-a_angle), sin(-a_angle));\n // Calculate position - the -0.5 is to correct for canvas origin\n vec2 pos = (vec2(a_x, a_y) + u_offset) * u_scale; // in pixels\n pos += 0.5; // make up for Bokeh’s offset\n pos /= u_canvas_size / u_pixel_ratio; // in 0..1\n gl_Position = vec4(pos*2.0-1.0, 0.0, 1.0);\n gl_Position.y *= -1.0;\n gl_PointSize = SQRT_2 * v_size + 2.0 * (v_linewidth + 1.5*u_antialias);\n}\n"},n”, ” 366: function _(a,n,s){Object.defineProperty(s,"__esModule",{value:!0}),s.fragment_shader=a=>`\nprecision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\nconst float PI = 3.14159265358979323846264;\n//\nuniform float u_antialias;\n//\nvarying vec4 v_fg_color;\nvarying vec4 v_bg_color;\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec2 v_rotation;\n\n${a}\n\nvec4 outline(float distance, float linewidth, float antialias, vec4 fg_color, vec4 bg_color)\n{\n vec4 frag_color;\n float t = linewidth/2.0 - antialias;\n float signed_distance = distance;\n float border_distance = abs(signed_distance) - t;\n float alpha = border_distance/antialias;\n alpha = exp(-alpha*alpha);\n\n // If fg alpha is zero, it probably means no outline. To avoid a dark outline\n // shining through due to aa, we set the fg color to the bg color. Avoid if (i.e. branching).\n float select = float(bool(fg_color.a));\n fg_color.rgb = select * fg_color.rgb + (1.0 - select) * bg_color.rgb;\n // Similarly, if we want a transparent bg\n select = float(bool(bg_color.a));\n bg_color.rgb = select * bg_color.rgb + (1.0 - select) * fg_color.rgb;\n\n if( border_distance < 0.0)\n frag_color = fg_color;\n else if( signed_distance < 0.0 ) {\n frag_color = mix(bg_color, fg_color, sqrt(alpha));\n } else {\n if( abs(signed_distance) < (linewidth/2.0 + antialias) ) {\n frag_color = vec4(fg_color.rgb, fg_color.a * alpha);\n } else {\n discard;\n }\n }\n return frag_color;\n}\n\nvoid main()\n{\n vec2 P = gl_PointCoord.xy - vec2(0.5, 0.5);\n P = vec2(v_rotation.x*P.x - v_rotation.y*P.y,\n v_rotation.y*P.x + v_rotation.x*P.y);\n float point_size = SQRT_2*v_size + 2.0 * (v_linewidth + 1.5*u_antialias);\n float distance = marker(P*point_size, v_size);\n gl_FragColor = outline(distance, v_linewidth, u_antialias, v_fg_color, v_bg_color);\n //gl_FragColor.rgb *= gl_FragColor.a; // pre-multiply alpha\n}\n`,s.circle="\nfloat marker(vec2 P, float size)\n{\n return length(P) - size/2.0;\n}\n",s.square="\nfloat marker(vec2 P, float size)\n{\n return max(abs(P.x), abs(P.y)) - size/2.0;\n}\n",s.diamond="\nfloat marker(vec2 P, float size)\n{\n float x = SQRT_2 / 2.0 * (P.x * 1.5 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.5 + P.y);\n float r1 = max(abs(x), abs(y)) - size / (2.0 * SQRT_2);\n return r1 / SQRT_2;\n}\n",s.hex="\nfloat marker(vec2 P, float size)\n{\n vec2 q = abs(P);\n return max(q.y * 0.57735 + q.x - 1.0 * size/2.0, q.y - 0.866 * size/2.0);\n}\n",s.triangle="\nfloat marker(vec2 P, float size)\n{\n P.y -= size * 0.3;\n float x = SQRT_2 / 2.0 * (P.x * 1.7 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.7 + P.y);\n float r1 = max(abs(x), abs(y)) - size / 1.6;\n float r2 = P.y;\n return max(r1 / SQRT_2, r2); // Intersect diamond with rectangle\n}\n",s.invertedtriangle="\nfloat marker(vec2 P, float size)\n{\n P.y += size * 0.3;\n float x = SQRT_2 / 2.0 * (P.x * 1.7 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.7 + P.y);\n float r1 = max(abs(x), abs(y)) - size / 1.6;\n float r2 = - P.y;\n return max(r1 / SQRT_2, r2); // Intersect diamond with rectangle\n}\n",s.cross=’\nfloat marker(vec2 P, float size)\n{\n float square = max(abs(P.x), abs(P.y)) - size / 2.5; // 2.5 is a tweak\n float cross = min(abs(P.x), abs(P.y)) - size / 100.0; // bit of "width" for aa\n return max(square, cross);\n}\n’,s.circlecross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float circle = length(P) - size/2.0;\n float c1 = max(circle, s1);\n float c2 = max(circle, s2);\n float c3 = max(circle, s3);\n float c4 = max(circle, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.squarecross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float square = max(abs(P.x), abs(P.y)) - size/2.0;\n float c1 = max(square, s1);\n float c2 = max(square, s2);\n float c3 = max(square, s3);\n float c4 = max(square, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.diamondcross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float x = SQRT_2 / 2.0 * (P.x * 1.5 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.5 + P.y);\n float diamond = max(abs(x), abs(y)) - size / (2.0 * SQRT_2);\n diamond /= SQRT_2;\n float c1 = max(diamond, s1);\n float c2 = max(diamond, s2);\n float c3 = max(diamond, s3);\n float c4 = max(diamond, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.x=’\nfloat marker(vec2 P, float size)\n{\n float circle = length(P) - size / 1.6;\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n return max(circle, X);\n}\n’,s.circlex=’\nfloat marker(vec2 P, float size)\n{\n float x = P.x - P.y;\n float y = P.x + P.y;\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(x - qs), abs(y - qs)) - qs;\n float s2 = max(abs(x + qs), abs(y - qs)) - qs;\n float s3 = max(abs(x - qs), abs(y + qs)) - qs;\n float s4 = max(abs(x + qs), abs(y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float circle = length(P) - size/2.0;\n float c1 = max(circle, s1);\n float c2 = max(circle, s2);\n float c3 = max(circle, s3);\n float c4 = max(circle, s4);\n // Union\n float almost = min(min(min(c1, c2), c3), c4);\n // In this case, the X is also outside of the main shape\n float Xmask = length(P) - size / 1.6; // a circle\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n return min(max(X, Xmask), almost);\n}\n’,s.squarex="\nfloat marker(vec2 P, float size)\n{\n float x = P.x - P.y;\n float y = P.x + P.y;\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(x - qs), abs(y - qs)) - qs;\n float s2 = max(abs(x + qs), abs(y - qs)) - qs;\n float s3 = max(abs(x - qs), abs(y + qs)) - qs;\n float s4 = max(abs(x + qs), abs(y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float square = max(abs(P.x), abs(P.y)) - size/2.0;\n float c1 = max(square, s1);\n float c2 = max(square, s2);\n float c3 = max(square, s3);\n float c4 = max(square, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.asterisk=’\nfloat marker(vec2 P, float size)\n{\n // Masks\n float diamond = max(abs(SQRT_2 / 2.0 * (P.x - P.y)), abs(SQRT_2 / 2.0 * (P.x + P.y))) - size / (2.0 * SQRT_2);\n float square = max(abs(P.x), abs(P.y)) - size / (2.0 * SQRT_2);\n // Shapes\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n float cross = min(abs(P.x), abs(P.y)) - size / 100.0; // bit of "width" for aa\n // Result is union of masked shapes\n return min(max(X, diamond), max(cross, square));\n}\n’},n”, ” }, 357, {"models/glyphs/webgl/main":357,"models/glyphs/webgl/index":358,"models/glyphs/webgl/line":359,"models/glyphs/webgl/base":361,"models/glyphs/webgl/line.vert":362,"models/glyphs/webgl/line.frag":363,"models/glyphs/webgl/markers":364,"models/glyphs/webgl/markers.vert":365,"models/glyphs/webgl/markers.frag":366}, {});n”, ” })n”, “n”, “n”, ” / END bokeh-gl.min.js /n”, ” },n”, ” n”, ” function(Bokeh) {n”, ” Bokeh.set_log_level("info");n”, ” },n”, ” n”, ” function(Bokeh) {n”, ” / BEGIN panel.min.js /n”, ” /!n”, ” * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn”, ” * All rights reserved.n”, ” * n”, ” * Redistribution and use in source and binary forms, with or without modification,n”, ” * are permitted provided that the following conditions are met:n”, ” * n”, ” * Redistributions of source code must retain the above copyright notice,n”, ” * this list of conditions and the following disclaimer.n”, ” * n”, ” * Redistributions in binary form must reproduce the above copyright notice,n”, ” * this list of conditions and the following disclaimer in the documentationn”, ” * and/or other materials provided with the distribution.n”, ” * n”, ” * Neither the name of Anaconda nor the names of any contributorsn”, ” * may be used to endorse or promote products derived from this softwaren”, ” * without specific prior written permission.n”, ” * n”, ” * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n”, ” * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn”, ” * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn”, ” * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn”, ” * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn”, ” * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn”, ” * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn”, ” * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn”, ” * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n”, ” * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn”, ” * THE POSSIBILITY OF SUCH DAMAGE.n”, ” /n”, ” (function(root, factory) {n”, ” factory(root["Bokeh"]);n”, ” })(this, function(Bokeh) {n”, ” var define;n”, ” return (function(modules, entry, aliases, externals) {n”, ” if (Bokeh != null) {n”, ” return Bokeh.register_plugin(modules, entry, aliases, externals);n”, ” } else {n”, ” throw new Error("Cannot find Bokeh. You have to load it prior to loading plugins.");n”, ” }n”, ” })n”, ” ({n”, ” "4e90918c0a": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e("tslib").__importStar(e("22ae8fda70"));o.Panel=s,e("@bokehjs/base").register_models(s)},n”, ” "22ae8fda70": function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});const o=a("tslib");var t=a("3343056bd8");r.AcePlot=t.AcePlot;var d=a("66d52165db");r.Audio=d.Audio;var l=a("71a9759436");r.CommManager=l.CommManager;var b=a("f6b9b1d914");r.DeckGLPlot=b.DeckGLPlot;var v=a("ae707e931d");r.HTML=v.HTML;var c=a("9ba5b8422a");r.JSON=c.JSON;var P=a("a94e371ba4");r.FileDownload=P.FileDownload;var f=a("7b859fb3cf");r.KaTeX=f.KaTeX;var i=a("0c21036737");r.MathJax=i.MathJax;var n=a("000f20fdd3");r.Player=n.Player;var s=a("2363c12dd6");r.PlotlyPlot=s.PlotlyPlot;var M=a("76307e5afa");r.Progress=M.Progress;var S=a("38b2bc9574");r.State=S.State;var g=a("90d1f929bd");r.VegaPlot=g.VegaPlot;var m=a("b0c3e9e9c2");r.Video=m.Video;var V=a("3c7145a2fa");r.VideoStream=V.VideoStream,o.__exportStar(a("ecfbb965eb"),r)},n”, ” "3343056bd8": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),n=e("@bokehjs/core/dom"),a=e("ba20932521");class d extends a.PanelHTMLBoxView{initialize(){super.initialize(),this._ace=window.ace,this._container=n.div({id:"_"+Math.random().toString(36).substr(2,9),style:{width:"100%",height:"100%"}})}connect_signals(){super.connect_signals(),this.connect(this.model.properties.code.change,()=>this._update_code_from_model()),this.connect(this.model.properties.theme.change,()=>this._update_theme()),this.connect(this.model.properties.language.change,()=>this._update_language()),this.connect(this.model.properties.annotations.change,()=>this._add_annotations()),this.connect(this.model.properties.readonly.change,()=>{this._editor.setReadOnly(this.model.readonly)})}render(){super.render(),this._container!==this.el.childNodes[0]&&this.el.appendChild(this._container),this._container.textContent=this.model.code,this._editor=this._ace.edit(this._container.id),this._editor.setTheme("ace/theme/"+`${this.model.theme}`),this._editor.session.setMode("ace/mode/"+`${this.model.language}`),this._editor.setReadOnly(this.model.readonly),this._langTools=this._ace.require("ace/ext/language_tools"),this._editor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,fontFamily:"monospace"}),this._editor.on("change",()=>this._update_code_from_editor())}_update_code_from_model(){this._editor&&this._editor.getValue()!=this.model.code&&this._editor.setValue(this.model.code)}_update_code_from_editor(){this._editor.getValue()!=this.model.code&&(this.model.code=this._editor.getValue())}_update_theme(){this._editor.setTheme("ace/theme/"+`${this.model.theme}`)}_update_language(){this._editor.session.setMode("ace/mode/"+`${this.model.language}`)}_add_annotations(){this._editor.session.setAnnotations(this.model.annotations)}after_layout(){super.after_layout(),this._editor.resize()}}o.AcePlotView=d,d.__name__="AcePlotView";class h extends s.HTMLBox{constructor(e){super(e)}static init_AcePlot(){this.prototype.default_view=d,this.define({code:[i.String],language:[i.String,"python"],theme:[i.String,"chrome"],annotations:[i.Array,[]],readonly:[i.Boolean,!1]}),this.override({height:300,width:300})}}o.AcePlot=h,h.__name__="AcePlot",h.__module__="panel.models.ace",h.init_AcePlot()},n”, ” "ba20932521": function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e("@bokehjs/core/layout/layoutable"),h=e("@bokehjs/core/layout/types"),o=e("@bokehjs/core/dom"),_=e("@bokehjs/models/widgets/markup"),n=e("@bokehjs/models/layouts/html_box");function a(e,i){let t=null!=i.width?"fixed":"fit",s=null!=i.height?"fixed":"fit";const{sizing_mode:h}=i;if(null!=h)if("fixed"==h)t=s="fixed";else if("stretch_both"==h)t=s="max";else if("stretch_width"==h)t="max";else if("stretch_height"==h)s="max";else switch(h){case"scale_width":t="max",s="min";break;case"scale_height":t="min",s="max";break;case"scale_both":t="max",s="max";break;default:throw new Error("unreachable")}"fixed"==t&&i.width?e.style.width=i.width+"px":"max"==t&&(e.style.width="100%"),"fixed"==s&&i.height?e.style.height=i.height+"px":"max"==s&&(e.style.height="100%")}t.set_size=a;class d extends s.Layoutable{constructor(e,i,t){super(),this.el=e,this.sizing_mode=i,this.changed=t,this._cache={},this._cache_count={}}_measure(e){const i=[e.width,e.height,this.sizing_mode].toString(),t=this.changed&&"fixed"!=this.sizing_mode&&null!=this.sizing_mode?1:0;if(i in this._cache&&this._cache_count[i]>=t)return this._cache_count[i]=this._cache_count[i]+1,this._cache[i];const s=new h.Sizeable(e).bounded_to(this.sizing.size),_=o.sized(this.el,s,()=>{const e=new h.Sizeable(o.content_size(this.el)),{border:i,padding:t}=o.extents(this.el);return e.grow_by(i).grow_by(t).map(Math.ceil)});return this._cache[i]=_,this._cache_count[i]=0,_}}t.CachedVariadicBox=d,d.__name__="CachedVariadicBox";class l extends _.MarkupView{_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new d(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}render(){super.render(),a(this.markup_el,this.model)}}t.PanelMarkupView=l,l.__name__="PanelMarkupView";class c extends n.HTMLBoxView{_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new d(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}render(){super.render(),a(this.el,this.model)}}t.PanelHTMLBoxView=c,c.__name__="PanelHTMLBoxView"},n”, ” "66d52165db": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),l=e("ba20932521");class d extends l.PanelHTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,()=>this.set_loop()),this.connect(this.model.properties.paused.change,()=>this.set_paused()),this.connect(this.model.properties.time.change,()=>this.set_time()),this.connect(this.model.properties.value.change,()=>this.set_value()),this.connect(this.model.properties.volume.change,()=>this.set_volume())}render(){super.render(),this.audioEl=document.createElement("audio"),this.audioEl.controls=!0,this.audioEl.src=this.model.value,this.audioEl.currentTime=this.model.time,this.audioEl.loop=this.model.loop,null!=this.model.volume?this.audioEl.volume=this.model.volume/100:this.model.volume=100*this.audioEl.volume,this.audioEl.onpause=()=>this.model.paused=!0,this.audioEl.onplay=()=>this.model.paused=!1,this.audioEl.ontimeupdate=()=>this.update_time(this),this.audioEl.onvolumechange=()=>this.update_volume(this),this.el.appendChild(this.audioEl),this.model.paused||this.audioEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.audioEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.audioEl.volume)}set_loop(){this.audioEl.loop=this.model.loop}set_paused(){!this.audioEl.paused&&this.model.paused&&this.audioEl.pause(),this.audioEl.paused&&!this.model.paused&&this.audioEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.audioEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.audioEl.currentTime=this.model.time)}set_value(){this.audioEl.src=this.model.value}}i.AudioView=d,d.__name__="AudioView";class u extends s.HTMLBox{constructor(e){super(e)}static init_Audio(){this.prototype.default_view=d,this.define({loop:[o.Boolean,!1],paused:[o.Boolean,!0],time:[o.Number,0],throttle:[o.Number,250],value:[o.Any,""],volume:[o.Number,null]})}}i.Audio=u,u.__name__="Audio",u.__module__="panel.models.widgets",u.init_Audio()},n”, ” "71a9759436": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),i=e("@bokehjs/document"),s=e("@bokehjs/core/view"),c=e("@bokehjs/model"),_=e("@bokehjs/protocol/message"),l=e("@bokehjs/protocol/receiver");class r extends s.View{renderTo(){}}n.CommManagerView=r,r.__name__="CommManagerView";class a extends c.Model{constructor(e){super(e),this._document_listener=e=>this._document_changed(e),this._receiver=new l.Receiver,this._event_buffer=[],this._blocked=!1,this._timeout=Date.now(),null!=window.PyViz&&window.PyViz.comm_manager?(this.ns=window.PyViz,this.ns.comm_manager.register_target(this.plot_id,this.comm_id,e=>this.msg_handler(e)),this._client_comm=this.ns.comm_manager.get_client_comm(this.plot_id,this.client_comm_id,e=>this.on_ack(e))):console.log("Could not find comm manager on window.PyViz, ensure the extension is loaded.")}_doc_attached(){super._doc_attached(),null!=this.document&&this.document.on_change(this._document_listener)}_document_changed(e){e.setter_id!==this.id&&(e instanceof i.ModelChangedEvent&&!(e.attr in e.model.serializable_attributes())||(this._event_buffer.unshift(e),(!this._blocked||Date.now()>this._timeout)&&(setTimeout(()=>this.process_events(),this.debounce),this._blocked=!0,this._timeout=Date.now()+this.timeout)))}process_events(){if(null==this.document||null==this._client_comm)return;const e=_.Message.create("PATCH-DOC",{},this.document.create_json_patch(this._event_buffer));this._client_comm.send(e),this._event_buffer=[]}on_ack(e){const t=e.metadata;this._event_buffer.length?(this.process_events(),this._blocked=!0,this._timeout=Date.now()+this.timeout):this._blocked=!1,this._event_buffer=[],"Ready"==t.msg_type&&t.content?console.log("Python callback returned following output:",t.content):"Error"==t.msg_type&&console.log("Python failed with the following traceback:",t.traceback)}msg_handler(e){const t=e.metadata,n=e.buffers,o=e.content.data,i=this.plot_id;if("Ready"==t.msg_type)t.content?console.log("Python callback returned following output:",t.content):"Error"==t.msg_type&&console.log("Python failed with the following traceback:",t.traceback);else if(null!=i){let e=null;if(i in this.ns.plot_index&&null!=this.ns.plot_index[i]?e=this.ns.plot_index[i]:void 0!==window.Bokeh&&i in window.Bokeh.index&&(e=window.Bokeh.index[i]),null==e)return;null!=n&&n.length>0?this._receiver.consume(n[0].buffer):this._receiver.consume(o);const t=this._receiver.message;null!=t&&Object.keys(t.content).length>0&&null!=this.document&&this.document.apply_json_patch(t.content,t.buffers,this.id)}}static init_CommManager(){this.prototype.default_view=r,this.define({plot_id:[o.String,null],comm_id:[o.String,null],client_comm_id:[o.String,null],timeout:[o.Number,5e3],debounce:[o.Number,50]})}}n.CommManager=a,a.__name__="CommManager",a.__module__="panel.models.comm_manager",a.init_CommManager()},n”, ” "f6b9b1d914": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e("tslib"),a=e("@bokehjs/core/dom"),s=i.__importStar(e("@bokehjs/core/properties")),n=e("@bokehjs/models/layouts/html_box"),c=e("ba20932521"),r=e("064eac2866"),d=i.__importDefault(e("093eb75864")),l=window.deck,_=window.mapboxgl,h=window.loaders;function p(){const e={},t=Object.keys(l).filter(e=>e.charAt(0)===e.charAt(0).toUpperCase());for(const o of t)e[o]=l[o];return e}class u extends c.PanelHTMLBoxView{connect_signals(){super.connect_signals();const{data:e,mapbox_api_key:t,tooltip:o,layers:i,initialViewState:a,data_sources:s}=this.model.properties;this.on_change([t,o],()=>this.render()),this.on_change([e,a],()=>this.updateDeck()),this.on_change([i],()=>this._update_layers()),this.on_change([s],()=>this._connect_sources(!0)),this._layer_map={},this._connected=[],this._connect_sources()}_update_layers(){this._layer_map={},this._update_data(!0)}_connect_sources(e=!1){for(const e of this.model.data_sources)this._connected.indexOf(e)<0&&(this.connect(e.properties.data.change,()=>this._update_data(!0)),this._connected.push(e));this._update_data(e)}initialize(){if(super.initialize(),l.JSONConverter){const{CSVLoader:e,Tile3DLoader:t}=h;h.registerLoaders([t,e]);const o={classes:p(),enumerations:{COORDINATE_SYSTEM:l.COORDINATE_SYSTEM,GL:d.default},constants:{Tile3DLoader:t}};this.jsonConverter=new l.JSONConverter({configuration:o})}}_update_data(e=!0){let t=0;for(const e of this.model.layers){let o;if(t+=1,t-1 in this._layer_map)o=this.model.data_sources[this._layer_map[t-1]];else{if("number"!=typeof e.data)continue;this._layer_map[t-1]=e.data,o=this.model.data_sources[e.data]}const i=[],a=o.columns();for(let e=0;e<o.data[a[0]].length;e++){const t={};for(const i of a){const a=o._shapes[i];void 0!==a&&a.length>1&&"number"==typeof a[0]?t[i]=o.data[i].slice(e*a[1],e*a[1]+a[1]):t[i]=o.data[i][e]}i.push(t)}e.data=i}e&&this.updateDeck()}_on_click_event(e){const t={coordinate:e.coordinate,lngLat:e.lngLat,index:e.index};this.model.clickState=t}_on_hover_event(e){const t={coordinate:e.coordinate,lngLat:e.lngLat,index:e.index};this.model.hoverState=t}_on_viewState_event(e){this.model.viewState=e.viewState}getData(){return Object.assign(Object.assign({},this.model.data),{layers:this.model.layers,initialViewState:this.model.initialViewState,onViewStateChange:e=>this._on_viewState_event(e),onClick:e=>this._on_click_event(e),onHover:e=>this._on_hover_event(e)})}updateDeck(){if(!this.deckGL)return void this.render();const e=this.getData();if(l.updateDeck)l.updateDeck(e,this.deckGL);else{const t=this.jsonConverter.convert(e);this.deckGL.setProps(t)}}createDeck({mapboxApiKey:e,container:t,jsonInput:o,tooltip:i}){let a;try{const s=this.jsonConverter.convert(o),n=r.makeTooltip(i);a=new l.DeckGL(Object.assign(Object.assign({},s),{map:_,mapboxApiAccessToken:e,container:t,getTooltip:n}))}catch(e){console.error(e)}return a}render(){super.render();const e=a.div({class:"deckgl"});c.set_size(e,this.model);const t=this.model.mapbox_api_key,o=this.model.tooltip,i=this.getData();l.createDeck?this.deckGL=l.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}):this.deckGL=this.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}),this.el.appendChild(e)}}o.DeckGLPlotView=u,u.__name__="DeckGLPlotView";class m extends n.HTMLBox{constructor(e){super(e)}static init_DeckGLPlot(){this.prototype.default_view=u,this.define({data:[s.Any],data_sources:[s.Array,[]],clickState:[s.Any],hoverState:[s.Any],initialViewState:[s.Any],layers:[s.Array,[]],mapbox_api_key:[s.String],tooltip:[s.Any],viewState:[s.Any]}),this.override({height:400,width:600})}}o.DeckGLPlot=m,m.__name__="DeckGLPlot",m.__module__="panel.models.deckgl",m.init_DeckGLPlot()},n”, ” "064eac2866": function _(e,t,n){n”, ” /n”, ” This file was adapted from https://github.com/uber/deck.gl/ the LICENSEn”, ” below is preserved to comply with the original license.n”, ” n”, ” Copyright (c) 2015 - 2017 Uber Technologies, Inc.n”, ” n”, ” Permission is hereby granted, free of charge, to any person obtaining a copyn”, ” of this software and associated documentation files (the "Software"), to dealn”, ” in the Software without restriction, including without limitation the rightsn”, ” to use, copy, modify, merge, publish, distribute, sublicense, and/or selln”, ” copies of the Software, and to permit persons to whom the Software isn”, ” furnished to do so, subject to the following conditions:n”, ” n”, ” The above copyright notice and this permission notice shall be included inn”, ” all copies or substantial portions of the Software.n”, ” n”, ” THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORn”, ” IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,n”, ” FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEn”, ” AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERn”, ” LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,n”, ” OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INn”, ” THE SOFTWARE.n”, ” /n”, ” let i,l;Object.defineProperty(n,"__esModule",{value:!0});const o={fontFamily:’"Helvetica Neue", Helvetica, Arial, sans-serif’,display:"flex",flex:"wrap",maxWidth:"500px",flexDirection:"column",zIndex:2};function r(){return document.createElement("div")}function s(e){if(!e.picked)return null;if(e.object===i)return l;const t={html:a(e.object),style:o};return l=t,i=e.object,t}n.getTooltipDefault=s;const c=new Set(["position","index"]);function a(e){const t=r();for(const n in e){if(c.has(n))continue;const i=r();i.className="header",i.textContent=n;const l=r();l.className="value",l.textContent=u(e[n]);const o=r();f(o,i,l),o.appendChild(i),o.appendChild(l),t.appendChild(o)}return t.innerHTML}function f(e,t,n){Object.assign(t.style,{fontWeight:700,marginRight:"10px",flex:"1 1 0%"}),Object.assign(n.style,{flex:"none",maxWidth:"250px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Object.assign(e.style,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"stretch"})}function u(e){let t;if(Array.isArray(e)&&e.length>4)t=`Array<${e.length}>`;else if("string"==typeof e)t=e;else if("number"==typeof e)t=String(e);else try{t=JSON.stringify(e)}catch(e){t="<Non-Serializable Object>"}return t.length>50&&(t=t.slice(0,50)),t}function p(e,t){let n=e;for(const e in t)n=n.replace(`{${e}}`,t[e]);return n}n.tabularize=a,n.toText=u,n.substituteIn=p,n.makeTooltip=function(e){return e?e.html||e.text?t=>{if(!t.picked)return null;const n={style:e.style||o};return e.html?n.html=p(e.html,t.object):n.text=p(e.text,t.object),n}:s:null}},n”, ” "093eb75864": function _(E,_,R){_.exports={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,FUNC_ADD:32774,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,BLEND_COLOR:32773,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,VENDOR:7936,RENDERER:7937,VERSION:7938,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,BROWSER_DEFAULT_WEBGL:37444,STATIC_DRAW:35044,STREAM_DRAW:35040,DYNAMIC_DRAW:35048,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,CULL_FACE:2884,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,BLEND:3042,DEPTH_TEST:2929,DITHER:3024,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,SCISSOR_TEST:3089,STENCIL_TEST:2960,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CONTEXT_LOST_WEBGL:37442,CW:2304,CCW:2305,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,COMPILE_STATUS:35713,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_ATTRIBUTES:35721,ACTIVE_UNIFORMS:35718,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,ALWAYS:519,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,GEQUAL:518,NOTEQUAL:517,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,TEXTURE_WIDTH:4096,TEXTURE_HEIGHT:4097,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,MAX_3D_TEXTURE_SIZE:32883,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,MAX_TEXTURE_LOD_BIAS:34045,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,RASTERIZER_DISCARD:35977,VERTEX_ARRAY_BINDING:34229,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,MAX_ELEMENT_INDEX:36203,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,RGB9_E5:35901,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2UI:36975,TEXTURE_IMMUTABLE_FORMAT:37167,TEXTURE_IMMUTABLE_LEVELS:33503,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,UNSIGNED_INT_24_8:34042,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,INT_2_10_10_10_REV:36255,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,MAX_SAMPLES:36183,SAMPLER_BINDING:35097,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,UNSIGNED_NORMALIZED:35863,SIGNED_NORMALIZED:36764,VERTEX_ATTRIB_ARRAY_INTEGER:35069,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,DEPTH24_STENCIL8:35056,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,COLOR:6144,DEPTH:6145,STENCIL:6146,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,INVALID_INDEX:4294967295,TIMEOUT_IGNORED:-1,MAX_CLIENT_WAIT_TIMEOUT_WEBGL:37447,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},n”, ” "ae707e931d": function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("@bokehjs/models/widgets/markup"),a=e("ba20932521");class s extends a.PanelMarkupView{render(){var e;super.render();const t=(e=this.model.text,(new DOMParser).parseFromString(e,"text/html").documentElement.textContent)||this.model.text;t?(this.markup_el.innerHTML=t,Array.from(this.markup_el.querySelectorAll("script")).forEach(e=>{const t=document.createElement("script");Array.from(e.attributes).forEach(e=>t.setAttribute(e.name,e.value)),t.appendChild(document.createTextNode(e.innerHTML)),e.parentNode&&e.parentNode.replaceChild(t,e)})):this.markup_el.innerHTML=""}}r.HTMLView=s,s.__name__="HTMLView";class o extends n.Markup{constructor(e){super(e)}static init_HTML(){this.prototype.default_view=s}}r.HTML=o,o.__name__="HTML",o.__module__="panel.models.markup",o.init_HTML()},n”, ” "9ba5b8422a": function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const s=e("tslib"),i=s.__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/widgets/markup"),n=s.__importDefault(e("18bba7b7e1")),a=e("ba20932521");class d extends a.PanelMarkupView{render(){super.render();const e=this.model.text.replace(/(\r\n|\n|\r)/gm,"").replace("’",’"’);let t;try{t=window.JSON.parse(e)}catch(e){return void(this.markup_el.innerHTML="<b>Invalid JSON:</b> "+e.toString())}const r={hoverPreviewEnabled:this.model.hover_preview,theme:this.model.theme},s=new n.default(t,this.model.depth,r).render();let i="border-radius: 5px; padding: 10px;";"dark"==this.model.theme?s.style.cssText="background-color: rgb(30, 30, 30);"+i:s.style.cssText=i,this.markup_el.append(s)}}r.JSONView=d,d.__name__="JSONView";const l=["dark","light"];class p extends o.Markup{constructor(e){super(e)}static init_JSON(){this.prototype.default_view=d,this.define({depth:[i.Number,1],hover_preview:[i.Boolean,!1],theme:[i.Enum(l),"dark"]})}}r.JSON=p,p.__name__="JSON",p.__module__="panel.models.markup",p.init_JSON()},n”, ” "18bba7b7e1": function _(t,e,r){function n(t){return null===t?"null":typeof t}function o(t){return!!t&&"object"==typeof t}function i(t){if(void 0===t)return"";if(null===t)return"Object";if("object"==typeof t&&!t.constructor)return"Object";var e=/function ([^(])/.exec(t.constructor.toString());return e&&e.length>1?e[1]:""}function s(t,e,r){return"null"===t||"undefined"===t?t:("string"!==t&&"stringifiable"!==t||(r=’"’+r.replace(/"/g,’\\"’)+’"’),"function"===t?e.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":r)}function a(t){var e="";return o(t)?(e=i(t),Array.isArray(t)&&(e+="["+t.length+"]")):e=s(n(t),t,t),e}function f(t){return"json-formatter-"+t}function m(t,e,r){var n=document.createElement(t);return e&&n.classList.add(f(e)),void 0!==r&&(r instanceof Node?n.appendChild(r):n.appendChild(document.createTextNode(String(r)))),n}Object.defineProperty(r,"__esModule",{value:!0}),function(t){if("undefined"!=typeof window){var e=document.createElement("style");e.setAttribute("media","screen"),e.innerHTML=t,document.head.appendChild(e)}}(‘.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n’);var l=/(^\d{1,4}[\.|\\/|-]\\d{1,2}[\\.|\\/|-]\\d{1,4})(\\s*(?:0?[1-9]:[0-5]|1(?=[012])\\d:[0-5])\\d\\s*[ap]m)?$/,d=/\\d{2}:\\d{2}:\\d{2} GMT-\\d{4}/,c=/\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/,p=window.requestAnimationFrame||function(t){return t(),0},j={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null},h=function(){function t(t,e,r,n){void 0===e&&(e=1),void 0===r&&(r=j),this.json=t,this.open=e,this.config=r,this.key=n,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=j.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=j.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=j.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=j.useToJSON),\"\"===this.key&&(this.key='\"\"')}return Object.defineProperty(t.prototype,\"isOpen\",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(t){this._isOpen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isDate\",{get:function(){return this.json instanceof Date||"string"===this.type&&(l.test(this.json)||c.test(this.json)||d.test(this.json))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUrl",{get:function(){return"string"===this.type&&0===this.json.indexOf("http")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isArray",{get:function(){return Array.isArray(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isObject",{get:function(){return o(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyObject",{get:function(){return!this.keys.length&&!this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useToJSON",{get:function(){return this.config.useToJSON&&"stringifiable"===this.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasKey",{get:function(){return void 0!==this.key},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"constructorName",{get:function(){return i(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":n(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keys",{get:function(){if(this.isObject){var t=Object.keys(this.json);return!this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return[]},enumerable:!0,configurable:!0}),t.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(f("open")))},t.prototype.openAtDepth=function(t){void 0===t&&(t=1),t<0||(this.open=t,this.isOpen=0!==t,this.element&&(this.removeChildren(!1),0===t?this.element.classList.remove(f("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(f("open")))))},t.prototype.getInlinepreview=function(){var t=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?"Array["+this.json.length+"]":"["+this.json.map(a).join(", ")+"]";var e=this.keys,r=e.slice(0,this.config.hoverPreviewFieldCount).map((function(e){return e+":"+a(t.json[e])})),n=e.length>=this.config.hoverPreviewFieldCount?"…":"";return"{"+r.join(", ")+n+"}"},t.prototype.render=function(){this.element=m("div","row");var t=this.isObject?m("a","toggler-link"):m("span");if(this.isObject&&!this.useToJSON&&t.appendChild(m("span","toggler")),this.hasKey&&t.appendChild(m("span","key",this.key+":")),this.isObject&&!this.useToJSON){var e=m("span","value"),r=m("span"),n=m("span","constructor-name",this.constructorName);if(r.appendChild(n),this.isArray){var o=m("span");o.appendChild(m("span","bracket","[")),o.appendChild(m("span","number",this.json.length)),o.appendChild(m("span","bracket","]")),r.appendChild(o)}e.appendChild(r),t.appendChild(e)}else{(e=this.isUrl?m("a"):m("span")).classList.add(f(this.type)),this.isDate&&e.classList.add(f("date")),this.isUrl&&(e.classList.add(f("url")),e.setAttribute("href",this.json));var i=s(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(i)),t.appendChild(e)}if(this.isObject&&this.config.hoverPreviewEnabled){var a=m("span","preview-text");a.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(a)}var l=m("div","children");return this.isObject&&l.classList.add(f("object")),this.isArray&&l.classList.add(f("array")),this.isEmpty&&l.classList.add(f("empty")),this.config&&this.config.theme&&this.element.classList.add(f(this.config.theme)),this.isOpen&&this.element.classList.add(f("open")),this.element.appendChild(t),this.element.appendChild(l),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&t.addEventListener("click",this.toggleOpen.bind(this)),this.element},t.prototype.appendChildren=function(e){var r=this;void 0===e&&(e=!1);var n=this.element.querySelector("div."+f("children"));if(n&&!this.isEmpty)if(e){var o=0,i=function(){var e=r.keys[o],s=new t(r.json[e],r.open-1,r.config,e);n.appendChild(s.render()),(o+=1)<r.keys.length&&(o>10?i():p(i))};p(i)}else this.keys.forEach((function(e){var o=new t(r.json[e],r.open-1,r.config,e);n.appendChild(o.render())}))},t.prototype.removeChildren=function(t){void 0===t&&(t=!1);var e=this.element.querySelector("div."+f("children"));if(t){var r=0,n=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?n():p(n))};p(n)}else e&&(e.innerHTML="")},t}();r.default=h},n”, ” "a94e371ba4": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e("tslib"),n=e("@bokehjs/models/widgets/input_widget"),s=e("@bokehjs/styles/buttons"),o=l.__importStar(e("@bokehjs/core/properties"));class a extends n.InputWidgetView{constructor(){super(…arguments),this._initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.button_type.change,()=>this.render()),this.connect(this.model.properties.data.change,()=>this.render()),this.connect(this.model.properties.filename.change,()=>this.render()),this.connect(this.model.properties.label.change,()=>this._update_label())}render(){if(super.render(),this.anchor_el=document.createElement("a"),this.anchor_el.classList.add(s.bk_btn),this.anchor_el.classList.add(s.bk_btn_type(this.model.button_type)),this.anchor_el.textContent=this.model.label,null===this.model.data||null===this.model.filename)return this.anchor_el.addEventListener("click",()=>this.click()),this.group_el.appendChild(this.anchor_el),void(this._initialized=!0);const e=function(e){const t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(t.length),n=new Uint8Array(l);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new Blob([l],{type:i})}(this.model.data),t=URL.createObjectURL(e);this.anchor_el.href=t,this.anchor_el.download=this.model.filename,this.group_el.appendChild(this.anchor_el),this.model.auto&&this._initialized&&this.anchor_el.click(),this._initialized=!0}_update_label(){this.anchor_el.textContent=this.model.label}click(){this.model.clicks=this.model.clicks+1}}i.FileDownloadView=a,a.__name__="FileDownloadView";class r extends n.InputWidget{constructor(e){super(e)}static init_FileDownload(){this.prototype.default_view=a,this.define({auto:[o.Boolean,!1],clicks:[o.Number,0],data:[o.String,null],label:[o.String,"Download"],filename:[o.String,null],button_type:[o.ButtonType,"default"]}),this.override({title:""})}}i.FileDownload=r,r.__name__="FileDownload",r.__module__="panel.models.widgets",r.init_FileDownload()},n”, ” "7b859fb3cf": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const a=e("@bokehjs/models/widgets/markup"),n=e("ba20932521");class r extends n.PanelMarkupView{render(){super.render(),this.markup_el.innerHTML=this.model.text,window.renderMathInElement&&window.renderMathInElement(this.el,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1}]})}}i.KaTeXView=r,r.__name__="KaTeXView";class s extends a.Markup{constructor(e){super(e)}static init_KaTeX(){this.prototype.default_view=r}}i.KaTeX=s,s.__name__="KaTeX",s.__module__="panel.models.katex",s.init_KaTeX()},n”, ” "0c21036737": function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e("@bokehjs/models/widgets/markup"),s=e("ba20932521");class _ extends s.PanelMarkupView{initialize(){super.initialize(),this._hub=window.MathJax.Hub,this._hub.Config({tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}})}render(){super.render(),this._hub&&(this.markup_el.innerHTML=this.model.text,this._hub.Queue(["Typeset",this._hub,this.markup_el]))}}a.MathJaxView=_,_.__name__="MathJaxView";class h extends i.Markup{constructor(e){super(e)}static init_MathJax(){this.prototype.default_view=_}}a.MathJax=h,h.__name__="MathJax",h.__module__="panel.models.mathjax",h.init_MathJax()},n”, ” "000f20fdd3": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),n=e("@bokehjs/core/dom"),l=e("@bokehjs/models/widgets/widget");class a extends l.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.value.change,()=>this.render()),this.connect(this.model.properties.loop_policy.change,()=>this.set_loop_state(this.model.loop_policy))}get_height(){return 250}render(){if(null!=this.sliderEl)return this.sliderEl.style.width="{this.model.width}px",this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),void(this.sliderEl.value=String(this.model.value));super.render(),this.sliderEl=document.createElement("input"),this.sliderEl.setAttribute("type","range"),this.sliderEl.style.width=this.model.width+"px",this.sliderEl.value=String(this.model.value),this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),this.sliderEl.onchange=e=>this.set_frame(parseInt(e.target.value));const e=n.div();e.style.cssText="margin: 0 auto; display: table; padding: 5px";const t="text-align: center; min-width: 40px; margin: 2px",i=document.createElement("button");i.style.cssText="text-align: center; min-width: 20px",i.appendChild(document.createTextNode("–")),i.onclick=()=>this.slower(),e.appendChild(i);const s=document.createElement("button");s.style.cssText=t,s.appendChild(document.createTextNode("❚◀◀")),s.onclick=()=>this.first_frame(),e.appendChild(s);const l=document.createElement("button");l.style.cssText=t,l.appendChild(document.createTextNode("❚◀")),l.onclick=()=>this.previous_frame(),e.appendChild(l);const a=document.createElement("button");a.style.cssText=t,a.appendChild(document.createTextNode("◀")),a.onclick=()=>this.reverse_animation(),e.appendChild(a);const o=document.createElement("button");o.style.cssText=t,o.appendChild(document.createTextNode("❚❚")),o.onclick=()=>this.pause_animation(),e.appendChild(o);const r=document.createElement("button");r.style.cssText=t,r.appendChild(document.createTextNode("▶")),r.onclick=()=>this.play_animation(),e.appendChild(r);const d=document.createElement("button");d.style.cssText=t,d.appendChild(document.createTextNode("▶❚")),d.onclick=()=>this.next_frame(),e.appendChild(d);const h=document.createElement("button");h.style.cssText=t,h.appendChild(document.createTextNode("▶▶❚")),h.onclick=()=>this.last_frame(),e.appendChild(h);const c=document.createElement("button");c.style.cssText="text-align: center; min-width: 20px",c.appendChild(document.createTextNode("+")),c.onclick=()=>this.faster(),e.appendChild(c),this.loop_state=document.createElement("form"),this.loop_state.style.cssText="margin: 0 auto; display: table";const m=document.createElement("input");m.type="radio",m.value="once",m.name="state";const p=document.createElement("label");p.innerHTML="Once",p.style.cssText="padding: 0 10px 0 5px; user-select:none;";const u=document.createElement("input");u.setAttribute("type","radio"),u.setAttribute("value","loop"),u.setAttribute("name","state");const _=document.createElement("label");_.innerHTML="Loop",_.style.cssText="padding: 0 10px 0 5px; user-select:none;";const v=document.createElement("input");v.setAttribute("type","radio"),v.setAttribute("value","reflect"),v.setAttribute("name","state");const x=document.createElement("label");x.innerHTML="Reflect",x.style.cssText="padding: 0 10px 0 5px; user-select:none;","once"==this.model.loop_policy?m.checked=!0:"loop"==this.model.loop_policy?u.checked=!0:v.checked=!0,this.loop_state.appendChild(m),this.loop_state.appendChild(p),this.loop_state.appendChild(u),this.loop_state.appendChild(_),this.loop_state.appendChild(v),this.loop_state.appendChild(x),this.el.appendChild(this.sliderEl),this.el.appendChild(e),this.el.appendChild(this.loop_state)}set_frame(e){this.model.value!=e&&(this.model.value=e),this.sliderEl.value!=String(e)&&(this.sliderEl.value=String(e))}get_loop_state(){for(var e=this.loop_state.state,t=0;t<e.length;t++){var i=e[t];if(i.checked)return i.value}return"once"}set_loop_state(e){for(var t=this.loop_state.state,i=0;i<t.length;i++){var s=t[i];s.value==e&&(s.checked=!0)}}next_frame(){this.set_frame(Math.min(this.model.end,this.model.value+this.model.step))}previous_frame(){this.set_frame(Math.max(this.model.start,this.model.value-this.model.step))}first_frame(){this.set_frame(this.model.start)}last_frame(){this.set_frame(this.model.end)}slower(){this.model.interval=Math.round(this.model.interval/.7),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}faster(){this.model.interval=Math.round(.7*this.model.interval),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}anim_step_forward(){if(this.model.value<this.model.end)this.next_frame();else{var e=this.get_loop_state();"loop"==e?this.first_frame():"reflect"==e?(this.last_frame(),this.reverse_animation()):(this.pause_animation(),this.last_frame())}}anim_step_reverse(){if(this.model.value>this.model.start)this.previous_frame();else{var e=this.get_loop_state();"loop"==e?this.last_frame():"reflect"==e?(this.first_frame(),this.play_animation()):(this.pause_animation(),this.first_frame())}}pause_animation(){this.model.direction=0,this.timer&&(clearInterval(this.timer),this.timer=null)}play_animation(){this.pause_animation(),this.model.direction=1,this.timer||(this.timer=setInterval(()=>this.anim_step_forward(),this.model.interval))}reverse_animation(){this.pause_animation(),this.model.direction=-1,this.timer||(this.timer=setInterval(()=>this.anim_step_reverse(),this.model.interval))}}i.PlayerView=a,a.__name__="PlayerView";class o extends l.Widget{constructor(e){super(e)}static init_Player(){this.prototype.default_view=a,this.define({direction:[s.Number,0],interval:[s.Number,500],start:[s.Number],end:[s.Number],step:[s.Number,1],loop_policy:[s.Any,"once"],value:[s.Any,0]}),this.override({width:400})}}i.Player=o,o.__name__="Player",o.__module__="panel.models.widgets",o.init_Player()},n”, ” "2363c12dd6": function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t("tslib").__importStar(t("@bokehjs/core/properties")),l=t("@bokehjs/core/util/object"),r=t("@bokehjs/core/util/eq"),s=t("@bokehjs/models/layouts/html_box"),n=t("99a25e6992"),a=t("990b5dd5c7"),p=t("ba20932521"),h=window.Plotly,_=(t,e,o)=>{let i=Array.isArray(e)?[]:{};if("click"===o||"hover"===o||"selected"===o){const o=[];if(null==e)return null;const l=t.data;for(let t=0;t<e.points.length;t++){const i=e.points[t];let r={};for(let t in i){const e=i[t];!i.hasOwnProperty(t)||Array.isArray(e)||a.isPlainObject(e)||(r[t]=e)}null!=i&&(i.hasOwnProperty("curveNumber")&&i.hasOwnProperty("pointNumber")&&l[i.curveNumber].hasOwnProperty("customdata")&&(r.customdata=l[i.curveNumber].customdata[i.pointNumber]),i.hasOwnProperty("pointNumbers")&&(r.pointNumbers=i.pointNumbers)),o[t]=r}i.points=o}else if("relayout"===o||"restyle"===o)for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return e.hasOwnProperty("range")&&(i.range=e.range),e.hasOwnProperty("lassoPoints")&&(i.lassoPoints=e.lassoPoints),i};class u extends p.PanelHTMLBoxView{constructor(){super(…arguments),this._settingViewport=!1,this._plotInitialized=!1,this._reacting=!1,this._relayouting=!1,this._end_relayouting=n.debounce(()=>{this._relayouting=!1},2e3,!1)}connect_signals(){super.connect_signals(),this.connect(this.model.properties.viewport_update_policy.change,this._updateSetViewportFunction),this.connect(this.model.properties.viewport_update_throttle.change,this._updateSetViewportFunction),this.connect(this.model.properties._render_count.change,this.plot),this.connect(this.model.properties.viewport.change,this._updateViewportFromProperty)}render(){super.render(),window.Plotly&&this.plot()}plot(){if(!window.Plotly)return;const t=[];for(let e=0;e<this.model.data.length;e++)t.push(this._get_trace(e,!1));let e=a.deepCopy(this.model.layout);if(this._relayouting){const t=this.el.layout;Object.keys(t).reduce((t,o)=>{"axis"===o.slice(1,5)&&"range"in t&&(e[o].range=t.range)},{})}this._reacting=!0,h.react(this.el,t,e,this.model.config).then(()=>{this._updateSetViewportFunction(),this._updateViewportProperty(),this._plotInitialized||(this.el.on("plotly_relayout",t=>{!0!==t._update_from_property&&(this.model.relayout_data=_(this.el,t,"relayout"),this._updateViewportProperty(),this._end_relayouting())}),this.el.on("plotly_relayouting",()=>{"mouseup"!==this.model.viewport_update_policy&&(this._relayouting=!0,this._updateViewportProperty())}),this.el.on("plotly_restyle",t=>{this.model.restyle_data=_(this.el,t,"restyle"),this._updateViewportProperty()}),this.el.on("plotly_click",t=>{this.model.click_data=_(this.el,t,"click")}),this.el.on("plotly_hover",t=>{this.model.hover_data=_(this.el,t,"hover")}),this.el.on("plotly_selected",t=>{this.model.selected_data=_(this.el,t,"selected")}),this.el.on("plotly_clickannotation",t=>{delete t.event,delete t.fullAnnotation,this.model.clickannotation_data=t}),this.el.on("plotly_deselect",()=>{this.model.selected_data=null}),this.el.on("plotly_unhover",()=>{this.model.hover_data=null})),this._plotInitialized=!0,this._reacting=!1})}_get_trace(t,e){const o=l.clone(this.model.data[t]),i=this.model.data_sources[t];for(const t of i.columns()){const l=i._shapes[t][0];let s=i.get_array(t)[0];if(l.length>1){const t=[];for(let e=0;e<l[0];e++)t.push(s.slice(e*l[1],(e+1)*l[1]));s=t}let n=t.split("."),a=n[n.length-1];var r=o;for(let t of n.slice(0,-1))r=r[t];e&&1==n.length?r[a]=[s]:r[a]=s}return o}_updateViewportFromProperty(){if(!h||this._settingViewport||this._reacting||!this.model.viewport)return;const t=this.el._fullLayout;Object.keys(this.model.viewport).reduce((e,o)=>{if(r.isEqual(a.get(t,o),e))return!0;{let t=a.deepCopy(this.model.viewport);return t._update_from_property=!0,h.relayout(this.el,t),!1}},{})}_updateViewportProperty(){const t=this.el._fullLayout;let e={};for(let o in t){if(!t.hasOwnProperty(o))continue;let i=o.slice(0,5);"xaxis"!==i&&"yaxis"!==i||(e[o+".range"]=a.deepCopy(t[o].range))}r.isEqual(e,this.model.viewport)||this._setViewport(e)}_updateSetViewportFunction(){"continuous"===this.model.viewport_update_policy||"mouseup"===this.model.viewport_update_policy?this._setViewport=t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)}:this._setViewport=a.throttle(t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)},this.model.viewport_update_throttle)}}o.PlotlyPlotView=u,u.__name__="PlotlyPlotView";class d extends s.HTMLBox{constructor(t){super(t)}static init_PlotlyPlot(){this.prototype.default_view=u,this.define({data:[i.Array,[]],layout:[i.Any,{}],config:[i.Any,{}],data_sources:[i.Array,[]],relayout_data:[i.Any,{}],restyle_data:[i.Array,[]],click_data:[i.Any,{}],hover_data:[i.Any,{}],clickannotation_data:[i.Any,{}],selected_data:[i.Any,{}],viewport:[i.Any,{}],viewport_update_policy:[i.String,"mouseup"],viewport_update_throttle:[i.Number,200],_render_count:[i.Number,0]})}}o.PlotlyPlot=d,d.__name__="PlotlyPlot",d.__module__="panel.models.plotly",d.init_PlotlyPlot()},n”, ” "99a25e6992": function _(n,l,u){function t(n,l,u){var t,e,o,a,r;function i(){var c=Date.now()-a;c<l&&c>=0?t=setTimeout(i,l-c):(t=null,u||(r=n.apply(o,e),o=e=null))}null==l&&(l=100);var c=function(){o=this,e=arguments,a=Date.now();var c=u&&!t;return t||(t=setTimeout(i,l)),c&&(r=n.apply(o,e),o=e=null),r};return c.clear=function(){t&&(clearTimeout(t),t=null)},c.flush=function(){t&&(r=n.apply(o,e),o=e=null,clearTimeout(t),t=null)},c}t.debounce=t,l.exports=t},n”, ” "990b5dd5c7": function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.get=(t,e,n)=>{const r=n=>String.prototype.split.call(e,n).filter(Boolean).reduce((t,e)=>null!=t?t[e]:t,t),o=r(/[,[\]]+?/)||r(/[,[\].]+?/);return void 0===o||o===t?n:o},n.throttle=function(t,e){var n=0;return function(){var r=Number(new Date);r-n>=e&&(t(),n=r)}},n.deepCopy=function t(e){var n;if(null==e||"object"!=typeof e)return e;if(e instanceof Array){n=[];for(var r=0,o=e.length;r<o;r++)n[r]=t(e[r]);return n}if(e instanceof Object){const n={};for(const r in e){const o=r;e.hasOwnProperty(o)&&(n[o]=t(e[o]))}return n}throw new Error("Unable to copy obj! Its type isn’t supported.")},n.isPlainObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},n”, ” "76307e5afa": function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/layouts/html_box"),r=e("ba20932521");class l extends o.HTMLBoxView{connect_signals(){super.connect_signals();const e=()=>{this.render(),this.root.compute_layout()};this.connect(this.model.properties.height.change,e),this.connect(this.model.properties.width.change,e),this.connect(this.model.properties.height_policy.change,e),this.connect(this.model.properties.width_policy.change,e),this.connect(this.model.properties.sizing_mode.change,e),this.connect(this.model.properties.active.change,()=>this.setCSS()),this.connect(this.model.properties.bar_color.change,()=>this.setCSS()),this.connect(this.model.properties.css_classes.change,()=>this.setCSS()),this.connect(this.model.properties.value.change,()=>this.setValue()),this.connect(this.model.properties.max.change,()=>this.setMax())}render(){super.render();const e=Object.assign(Object.assign({},this.model.style),{display:"inline-block"});this.progressEl=document.createElement("progress"),this.setValue(),this.setMax(),r.set_size(this.progressEl,this.model),this.setCSS();for(const s in e)this.progressEl.style.setProperty(s,e[s]);this.el.appendChild(this.progressEl)}setCSS(){let e=this.model.css_classes.join(" ")+" "+this.model.bar_color;this.model.active&&(e+=" active"),this.progressEl.className=e}setValue(){null!=this.model.value&&(this.progressEl.value=this.model.value)}setMax(){null!=this.model.max&&(this.progressEl.max=this.model.max)}_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new r.CachedVariadicBox(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}}t.ProgressView=l,l.__name__="ProgressView";class h extends o.HTMLBox{constructor(e){super(e)}static init_Progress(){this.prototype.default_view=l,this.define({active:[i.Boolean,!0],bar_color:[i.String,"primary"],style:[i.Any,{}],max:[i.Number,100],value:[i.Number,null]})}}t.Progress=h,h.__name__="Progress",h.__module__="panel.models.widgets",h.init_Progress()},n”, ” "38b2bc9574": function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),a=e("@bokehjs/core/view"),o=e("@bokehjs/core/util/array"),c=e("@bokehjs/model"),n=e("@bokehjs/protocol/receiver");class r extends a.View{renderTo(){}}s.StateView=r,r.__name__="StateView";class _ extends c.Model{constructor(e){super(e),this._receiver=new n.Receiver,this._cache={}}apply_state(e){this._receiver.consume(e.header),this._receiver.consume(e.metadata),this._receiver.consume(e.content),this._receiver.message&&this.document&&this.document.apply_json_patch(this._receiver.message.content)}_receive_json(e,t){const s=JSON.parse(e);this._cache[t]=s;let i=this.state;for(const e of this.values)i=i[e];i===t?this.apply_state(s):this._cache[i]&&this.apply_state(this._cache[i])}set_state(e,t){let s=o.copy(this.values);s[this.widgets[e.id]]=t;let i=this.state;for(const e of s)i=i[e];var a,c,n;this.values=s,this.json?this._cache[i]?this.apply_state(this._cache[i]):(a=i,c=e=>this._receive_json(e,i),(n=new XMLHttpRequest).overrideMimeType("application/json"),n.open("GET",a,!0),n.onreadystatechange=function(){4==n.readyState&&200==n.status&&c(n.responseText)},n.send(null)):this.apply_state(i)}static init_State(){this.prototype.default_view=r,this.define({json:[i.Boolean,!1],state:[i.Any,{}],widgets:[i.Any,{}],values:[i.Any,[]]})}}s.State=_,_.__name__="State",_.__module__="panel.models.state",_.init_State()},n”, ” "90d1f929bd": function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t("tslib").__importStar(t("@bokehjs/core/properties")),a=t("@bokehjs/core/util/types"),n=t("@bokehjs/models/layouts/html_box");class c extends n.HTMLBoxView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,this._plot),this.connect(this.model.properties.data_sources.change,()=>this._connect_sources()),this._connected=[],this._connect_sources()}_connect_sources(){for(const t in this.model.data_sources){const e=this.model.data_sources[t];this._connected.indexOf(t)<0&&(this.connect(e.properties.data.change,this._plot),this._connected.push(t))}}_fetch_datasets(){const t={};for(const e in this.model.data_sources){const s=this.model.data_sources[e],o=[],a=s.columns();for(let t=0;t<s.data[a[0]].length;t++){const e={};for(const o of a)e[o]=s.data[o][t];o.push(e)}t[e]=o}return t}render(){super.render(),this._plot()}_plot(){const t=this.model.data;if(null!=t&&window.vegaEmbed){if(this.model.data_sources&&Object.keys(this.model.data_sources).length>0){const e=this._fetch_datasets();if("data"in e&&(t.data.values=e.data,delete e.data),null!=t.data){const s=a.isArray(t.data)?t.data:[t.data];for(const t of s)t.name in e&&(t.values=e[t.name],delete e[t.name])}this.model.data.datasets=e}window.vegaEmbed(this.el,this.model.data,{actions:!1})}}}s.VegaPlotView=c,c.__name__="VegaPlotView";class d extends n.HTMLBox{constructor(t){super(t)}static init_VegaPlot(){this.prototype.default_view=c,this.define({data:[o.Any],data_sources:[o.Any]})}}s.VegaPlot=d,d.__name__="VegaPlot",d.__module__="panel.models.vega",d.init_VegaPlot()},n”, ” "b0c3e9e9c2": function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),l=e("ba20932521");class d extends l.PanelHTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,()=>this.set_loop()),this.connect(this.model.properties.paused.change,()=>this.set_paused()),this.connect(this.model.properties.time.change,()=>this.set_time()),this.connect(this.model.properties.value.change,()=>this.set_value()),this.connect(this.model.properties.volume.change,()=>this.set_volume())}render(){super.render(),this.videoEl=document.createElement("video"),this.model.sizing_mode&&"fixed"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit="fill",this.videoEl.style.minWidth="100%",this.videoEl.style.minHeight="100%",this.videoEl.controls=!0,this.videoEl.src=this.model.value,this.videoEl.currentTime=this.model.time,this.videoEl.loop=this.model.loop,null!=this.model.volume?this.videoEl.volume=this.model.volume/100:this.model.volume=100*this.videoEl.volume,this.videoEl.onpause=()=>this.model.paused=!0,this.videoEl.onplay=()=>this.model.paused=!1,this.videoEl.ontimeupdate=()=>this.update_time(this),this.videoEl.onvolumechange=()=>this.update_volume(this),this.el.appendChild(this.videoEl),this.model.paused||this.videoEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.videoEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.videoEl.volume)}set_loop(){this.videoEl.loop=this.model.loop}set_paused(){!this.videoEl.paused&&this.model.paused&&this.videoEl.pause(),this.videoEl.paused&&!this.model.paused&&this.videoEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.videoEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.videoEl.currentTime=this.model.time)}set_value(){this.videoEl.src=this.model.value}}t.VideoView=d,d.__name__="VideoView";class h extends s.HTMLBox{constructor(e){super(e)}static init_Video(){this.prototype.default_view=d,this.define({loop:[o.Boolean,!1],paused:[o.Boolean,!0],time:[o.Number,0],throttle:[o.Number,250],value:[o.Any,""],volume:[o.Number,null]})}}t.Video=h,h.__name__="Video",h.__module__="panel.models.widgets",h.init_Video()},n”, ” "3c7145a2fa": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/layouts/html_box"),h=e("ba20932521");class a extends h.PanelHTMLBoxView{constructor(){super(…arguments),this.constraints={audio:!1,video:!0}}initialize(){super.initialize(),null!==this.model.timeout&&this.set_timeout()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.timeout.change,()=>this.set_timeout()),this.connect(this.model.properties.snapshot.change,()=>this.snapshot()),this.connect(this.model.properties.paused.change,()=>this.pause())}pause(){this.model.paused&&(null!=this.timer&&(clearInterval(this.timer),this.timer=null),this.videoEl.pause()),this.set_timeout()}set_timeout(){this.timer&&(clearInterval(this.timer),this.timer=null),this.model.timeout>0&&(this.timer=setInterval(()=>this.snapshot(),this.model.timeout))}snapshot(){this.canvasEl.width=this.videoEl.videoWidth,this.canvasEl.height=this.videoEl.videoHeight;const e=this.canvasEl.getContext("2d");e&&e.drawImage(this.videoEl,0,0,this.canvasEl.width,this.canvasEl.height),this.model.value=this.canvasEl.toDataURL("image/"+this.model.format,.95)}remove(){super.remove(),this.timer&&(clearInterval(this.timer),this.timer=null)}render(){super.render(),this.videoEl||(this.videoEl=document.createElement("video"),this.model.sizing_mode&&"fixed"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit="fill",this.videoEl.style.minWidth="100%",this.videoEl.style.minHeight="100%",this.canvasEl=document.createElement("canvas"),this.el.appendChild(this.videoEl),navigator.mediaDevices.getUserMedia&&navigator.mediaDevices.getUserMedia(this.constraints).then(e=>{this.videoEl.srcObject=e,this.model.paused||this.videoEl.play()}).catch(console.error))}}i.VideoStreamView=a,a.__name__="VideoStreamView";class l extends o.HTMLBox{constructor(e){super(e)}static init_VideoStream(){this.prototype.default_view=a,this.define({format:[s.String,"png"],paused:[s.Boolean,!1],snapshot:[s.Boolean,!1],timeout:[s.Number,0],value:[s.Any]}),this.override({height:240,width:320})}}i.VideoStream=l,l.__name__="VideoStream",l.__module__="panel.models.widgets",l.init_VideoStream()},n”, ” "ecfbb965eb": function _(e,o,l){Object.defineProperty(l,"__esModule",{value:!0});var V=e("5b5e56e89a");l.VTKPlot=V.VTKPlot;var t=e("729dd26c71");l.VTKVolumePlot=t.VTKVolumePlot;var K=e("e23461e5d7");l.VTKAxes=K.VTKAxes},n”, ” "5b5e56e89a": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),i=e("@bokehjs/core/dom"),a=e("c704c63c0a"),o=e("ba07c3d566");class r extends a.AbstractVTKView{constructor(){super(…arguments),this._axes_initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.axes.change,()=>{this._delete_axes(),this.model.axes&&this._set_axes(),this._vtk_renwin.getRenderWindow().render()}),this.el.addEventListener("mouseenter",()=>{const e=this._vtk_renwin.getInteractor();this.model.enable_keybindings&&(document.querySelector("body").addEventListener("keypress",e.handleKeyPress),document.querySelector("body").addEventListener("keydown",e.handleKeyDown),document.querySelector("body").addEventListener("keyup",e.handleKeyUp))}),this.el.addEventListener("mouseleave",()=>{const e=this._vtk_renwin.getInteractor();document.querySelector("body").removeEventListener("keypress",e.handleKeyPress),document.querySelector("body").removeEventListener("keydown",e.handleKeyDown),document.querySelector("body").removeEventListener("keyup",e.handleKeyUp)})}render(){super.render(),this._axes=null,this._axes_initialized=!1,this._plot()}after_layout(){this._axes_initialized||(this._render_axes_canvas(),this._axes_initialized=!0)}_render_axes_canvas(){const e=this._vtk_container.getElementsByTagName("canvas");if(1!=e.length)throw Error("Error at initialization of the 3D scene, container should have one and only one canvas");e[0].classList.add("scene3d-canvas");const t=i.canvas({style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}});t.classList.add("axes-canvas"),this._vtk_container.appendChild(t),this._vtk_renwin.setResizeCallback(()=>{const e=this._vtk_container.getBoundingClientRect(),n=Math.floor(e.width*window.devicePixelRatio),s=Math.floor(e.height*window.devicePixelRatio);t.setAttribute("width",n.toFixed()),t.setAttribute("height",s.toFixed())})}_delete_axes(){if(null==this._axes)return;Object.keys(this._axes).forEach(e=>this._vtk_renwin.getRenderer().removeActor(this._axes[e]));const e=this._vtk_renwin.getContainer().getElementsByClassName("axes-canvas")[0],t=e.getContext("2d");t&&t.clearRect(0,0,e.clientWidth*window.devicePixelRatio,e.clientHeight*window.devicePixelRatio),this._axes=null}_set_axes(){if(this.model.axes){const e=this._vtk_renwin.getContainer().getElementsByClassName("axes-canvas")[0],{psActor:t,axesActor:n,gridActor:s}=this.model.axes.create_axes(e);this._axes={psActor:t,axesActor:n,gridActor:s},this._vtk_renwin.getRenderer().addActor(t),this._vtk_renwin.getRenderer().addActor(n),this._vtk_renwin.getRenderer().addActor(s)}}_plot(){if(!this.model.data)return void this._vtk_renwin.getRenderWindow().render();const e=o.vtkns.DataAccessHelper.get("zip",{zipContent:atob(this.model.data),callback:t=>{const n=o.vtkns.HttpSceneLoader.newInstance({renderer:this._vtk_renwin.getRenderer(),dataAccessHelper:e}),s=o.vtk.macro.debounce(()=>{null==this._axes&&this.model.axes&&this._set_axes(),this.model.properties.camera.change.emit()},100);n.setUrl("index.json"),n.onReady(s)}})}}n.VTKPlotView=r,r.__name__="VTKPlotView";class d extends a.AbstractVTKPlot{constructor(e){super(e),this.outline=o.vtkns.OutlineFilter.newInstance();const t=o.vtkns.Mapper.newInstance();t.setInputConnection(this.outline.getOutputPort()),this.outline_actor=o.vtkns.Actor.newInstance(),this.outline_actor.setMapper(t)}static init_VTKPlot(){this.prototype.default_view=r,this.define({data:[s.String],axes:[s.Instance],enable_keybindings:[s.Boolean,!1]})}}n.VTKPlot=d,d.__name__="VTKPlot",d.init_VTKPlot()},n”, ” "c704c63c0a": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e("tslib").__importStar(e("@bokehjs/core/properties")),r=e("@bokehjs/core/dom"),s=e("@bokehjs/core/util/object"),a=e("@bokehjs/models/layouts/html_box"),o=e("ba20932521"),_=e("ba07c3d566");class d extends o.PanelHTMLBoxView{constructor(){super(…arguments),this._setting_camera=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,()=>{this.invalidate_render()}),this.connect(this.model.properties.orientation_widget.change,()=>{this._orientation_widget_visibility(this.model.orientation_widget)}),this.connect(this.model.properties.camera.change,()=>this._set_camera_state())}_orientation_widget_visibility(e){this._orientationWidget.setEnabled(e),e?this._widgetManager.enablePicking():this._widgetManager.disablePicking(),this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderWindow().render()}_create_orientation_widget(){const e=_.vtkns.AxesActor.newInstance(),t=_.vtkns.OrientationMarkerWidget.newInstance({actor:e,interactor:this._vtk_renwin.getInteractor()});t.setEnabled(!0),t.setViewportCorner(_.vtkns.OrientationMarkerWidget.Corners.BOTTOM_RIGHT),t.setViewportSize(.15),t.setMinPixelSize(100),t.setMaxPixelSize(300),this._orientationWidget=t;const i=_.vtkns.WidgetManager.newInstance();i.setRenderer(t.getRenderer());const n=_.vtkns.InteractiveOrientationWidget.newInstance();n.placeWidget(e.getBounds()),n.setBounds(e.getBounds()),n.setPlaceFactor(1);const r=i.addWidget(n);this._widgetManager=i,r.onOrientationChange(({direction:e})=>{const t=this._vtk_renwin.getRenderer().getActiveCamera(),i=t.getFocalPoint(),n=t.getPosition(),r=t.getViewUp(),s=Math.sqrt(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)+Math.pow(n[2]-i[2],2));t.setPosition(i[0]+e[0]*s,i[1]+e[1]*s,i[2]+e[2]*s),e[0]&&t.setViewUp(_.majorAxis(r,1,2)),e[1]&&t.setViewUp(_.majorAxis(r,0,2)),e[2]&&t.setViewUp(_.majorAxis(r,0,1)),this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_renwin.getRenderWindow().render()}),this._orientation_widget_visibility(this.model.orientation_widget)}_get_camera_state(){if(!this._setting_camera){this._setting_camera=!0;const e=s.clone(this._vtk_renwin.getRenderer().getActiveCamera().get());delete e.classHierarchy,delete e.vtkObject,delete e.vtkCamera,delete e.viewPlaneNormal,this.model.camera=e,this._setting_camera=!1}}_set_camera_state(){if(!this._setting_camera){this._setting_camera=!0;try{this.model.camera&&this._vtk_renwin.getRenderer().getActiveCamera().set(this.model.camera)}finally{this._setting_camera=!1}this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_renwin.getRenderWindow().render()}}render(){super.render(),this._orientationWidget=null,this._vtk_container=r.div(),o.set_size(this._vtk_container,this.model),this.el.appendChild(this._vtk_container),this._vtk_renwin=_.vtkns.FullScreenRenderWindow.newInstance({rootContainer:this.el,container:this._vtk_container}),this._remove_default_key_binding(),this._create_orientation_widget(),this._vtk_renwin.getRenderer().getActiveCamera().onModified(()=>this._get_camera_state()),this._set_camera_state(),this.model.renderer_el=this._vtk_renwin}after_layout(){super.after_layout(),this._vtk_renwin.resize()}_remove_default_key_binding(){const e=this._vtk_renwin.getInteractor();document.querySelector("body").removeEventListener("keypress",e.handleKeyPress),document.querySelector("body").removeEventListener("keydown",e.handleKeyDown),document.querySelector("body").removeEventListener("keyup",e.handleKeyUp)}}i.AbstractVTKView=d,d.__name__="AbstractVTKView";class c extends a.HTMLBox{constructor(e){super(e)}getActors(){return this.renderer_el.getRenderer().getActors()}static init_AbstractVTKPlot(){this.define({orientation_widget:[n.Boolean,!1],camera:[n.Instance]}),this.override({height:300,width:300})}}i.AbstractVTKPlot=c,c.__name__="AbstractVTKPlot",c.__module__="panel.models.vtk",c.init_AbstractVTKPlot()},n”, ” "ba07c3d566": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@bokehjs/core/util/serialization"),a=e("@bokehjs/core/util/array");function o(e){const t=Math.min(Math.max(Math.round(e),0),255).toString(16);return 2==t.length?t:"0"+t}function i(e,t,n){return"#"+o(e)+o(t)+o(n)}function s(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,a=e.length;r<a;r++)n[r]=e.charCodeAt(r);return t}n.vtk=window.vtk,n.vtkns={},n.vtk&&(n.vtkns.DataArray=n.vtk.Common.Core.vtkDataArray,n.vtkns.ImageData=n.vtk.Common.DataModel.vtkImageData,n.vtkns.OutlineFilter=n.vtk.Filters.General.vtkOutlineFilter,n.vtkns.CubeSource=n.vtk.Filters.Sources.vtkCubeSource,n.vtkns.LineSource=n.vtk.Filters.Sources.vtkLineSource,n.vtkns.PlaneSource=n.vtk.Filters.Sources.vtkPlaneSource,n.vtkns.PointSource=n.vtk.Filters.Sources.vtkPointSource,n.vtkns.OrientationMarkerWidget=n.vtk.Interaction.Widgets.vtkOrientationMarkerWidget,n.vtkns.DataAccessHelper=n.vtk.IO.Core.DataAccessHelper,n.vtkns.HttpSceneLoader=n.vtk.IO.Core.vtkHttpSceneLoader,n.vtkns.ImageSlice=n.vtk.Rendering.Core.vtkImageSlice,n.vtkns.Actor=n.vtk.Rendering.Core.vtkActor,n.vtkns.AxesActor=n.vtk.Rendering.Core.vtkAxesActor,n.vtkns.Mapper=n.vtk.Rendering.Core.vtkMapper,n.vtkns.ImageMapper=n.vtk.Rendering.Core.vtkImageMapper,n.vtkns.SphereMapper=n.vtk.Rendering.Core.vtkSphereMapper,n.vtkns.WidgetManager=n.vtk.Widgets.Core.vtkWidgetManager,n.vtkns.InteractiveOrientationWidget=n.vtk.Widgets.Widgets3D.vtkInteractiveOrientationWidget,n.vtkns.PixelSpaceCallbackMapper=n.vtk.Rendering.Core.vtkPixelSpaceCallbackMapper,n.vtkns.FullScreenRenderWindow=n.vtk.Rendering.Misc.vtkFullScreenRenderWindow,n.vtkns.VolumeController=n.vtk.Interaction.UI.vtkVolumeController,n.vtkns.Volume=n.vtk.Rendering.Core.vtkVolume,n.vtkns.VolumeMapper=n.vtk.Rendering.Core.vtkVolumeMapper,n.vtkns.ColorTransferFunction=n.vtk.Rendering.Core.vtkColorTransferFunction,n.vtkns.PiecewiseFunction=n.vtk.Common.DataModel.vtkPiecewiseFunction,n.vtkns.BoundingBox=n.vtk.Common.DataModel.vtkBoundingBox),n.hexToRGB=function(e){return[parseInt(e.slice(1,3),16)/255,parseInt(e.slice(3,5),16)/255,parseInt(e.slice(5,7),16)/255]},n.rgbToHex=i,n.vtkLutToMapper=function(e){const{scale:t,nodes:r}=e.get("scale","nodes");if(t!==n.vtkns.ColorTransferFunction.Scale.LINEAR)throw"Error transfer function scale not handle";const o=r.map(e=>e.x),s=Math.min(…o),k=Math.max(…o),v=a.linspace(s,k,255),c=[0,0,0];return{low:s,high:k,palette:v.map(t=>(e.getColor(t,c),i(255*c[0],255*c[1],255*c[2])))}},n.data2VTKImageData=function(e){const t=n.vtkns.ImageData.newInstance({spacing:e.spacing});t.setDimensions(e.dims),t.setOrigin(null!=e.origin?e.origin:e.dims.map(e=>e/2));const a=n.vtkns.DataArray.newInstance({name:"scalars",numberOfComponents:1,values:new r.ARRAY_TYPES[e.dtype](s(atob(e.buffer)))});return t.getPointData().setScalars(a),t},n.majorAxis=function(e,t,n){const r=[0,0,0],a=Math.abs(e[t])>Math.abs(e[n])?t:n,o=e[a]>0?1:-1;return r[a]=o,r},n.cartesian_product=function(…e){return e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[].concat(e,t))))}},n”, ” "729dd26c71": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),r=e("c704c63c0a"),n=e("ba07c3d566");class o extends r.AbstractVTKView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.colormap.change,()=>{this.colormap_slector.value=this.model.colormap;const e=new Event("change");this.colormap_slector.dispatchEvent(e)}),this.connect(this.model.properties.shadow.change,()=>{this.shadow_selector.value=this.model.shadow?"1":"0";const e=new Event("change");this.shadow_selector.dispatchEvent(e)}),this.connect(this.model.properties.sampling.change,()=>{this.sampling_slider.value=this.model.sampling.toFixed(2);const e=new Event("input");this.sampling_slider.dispatchEvent(e)}),this.connect(this.model.properties.edge_gradient.change,()=>{this.edge_gradient_slider.value=this.model.edge_gradient.toFixed(2);const e=new Event("input");this.edge_gradient_slider.dispatchEvent(e)}),this.connect(this.model.properties.rescale.change,()=>{this._controllerWidget.setRescaleColorMap(this.model.rescale),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.ambient.change,()=>{this.volume.getProperty().setAmbient(this.model.ambient),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.diffuse.change,()=>{this.volume.getProperty().setDiffuse(this.model.diffuse),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.specular.change,()=>{this.volume.getProperty().setSpecular(this.model.specular),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.specular_power.change,()=>{this.volume.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.display_volume.change,()=>{this._set_volume_visibility(this.model.display_volume),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.display_slices.change,()=>{this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_i.change,()=>{this.image_actor_i.getMapper().setISlice(this.model.slice_i),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_j.change,()=>{this.image_actor_j.getMapper().setJSlice(this.model.slice_j),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_k.change,()=>{this.image_actor_k.getMapper().setKSlice(this.model.slice_k),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.render_background.change,()=>{this._vtk_renwin.getRenderer().setBackground(…n.hexToRGB(this.model.render_background)),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.interpolation.change,()=>{this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderWindow().render()})}get volume(){return this._controllerWidget.getActor()}get image_actor_i(){return this._vtk_renwin.getRenderer().getActors()[0]}get image_actor_j(){return this._vtk_renwin.getRenderer().getActors()[1]}get image_actor_k(){return this._vtk_renwin.getRenderer().getActors()[2]}get shadow_selector(){return this.el.querySelector(".js-shadow")}get edge_gradient_slider(){return this.el.querySelector(".js-edge")}get sampling_slider(){return this.el.querySelector(".js-spacing")}get colormap_slector(){return this.el.querySelector(".js-color-preset")}_set_interpolation(e){"fast_linear"==e?(this.volume.getProperty().setInterpolationTypeToFastLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):"linear"==e?(this.volume.getProperty().setInterpolationTypeToLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):(this.volume.getProperty().setInterpolationTypeToNearest(),this.image_actor_i.getProperty().setInterpolationTypeToNearest())}render(){super.render(),this._controllerWidget=n.vtkns.VolumeController.newInstance({size:[400,150],rescaleColorMap:this.model.rescale}),this._vtk_image_data=n.data2VTKImageData(this.model.data),this._controllerWidget.setContainer(this.el),this._vtk_renwin.getRenderWindow().getInteractor(),this._vtk_renwin.getRenderWindow().getInteractor().setDesiredUpdateRate(45),this._plot_volume(),this._connect_controls(),this._plot_slices(),this._set_volume_visibility(this.model.display_volume),this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderer().setBackground(…n.hexToRGB(this.model.render_background)),this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderer().resetCamera()}_connect_controls(){this.colormap_slector.addEventListener("change",()=>{this.model.colormap=this.colormap_slector.value}),this.model.colormap?this.model.properties.colormap.change.emit():this.model.colormap=this.colormap_slector.value,this.shadow_selector.addEventListener("change",()=>{this.model.shadow=!!Number(this.shadow_selector.value)}),(this.model.shadow=!!Number(this.shadow_selector.value))&&this.model.properties.shadow.change.emit(),this.sampling_slider.addEventListener("input",()=>{const e=Number(this.sampling_slider.value);Math.abs(this.model.sampling-e)>=.005&&(this.model.sampling=e)}),Math.abs(this.model.sampling-Number(this.shadow_selector.value))>=.005&&this.model.properties.sampling.change.emit(),this.edge_gradient_slider.addEventListener("input",()=>{const e=Number(this.edge_gradient_slider.value);Math.abs(this.model.edge_gradient-e)>=.005&&(this.model.edge_gradient=e)}),Math.abs(this.model.edge_gradient-Number(this.edge_gradient_slider.value))>=.005&&this.model.properties.edge_gradient.change.emit()}_plot_volume(){const e=this._vtk_image_data,t=n.vtkns.Volume.newInstance(),i=n.vtkns.VolumeMapper.newInstance();t.setMapper(i),i.setInputData(e);const s=(e.getPointData().getScalars()||e.getPointData().getArrays()[0]).getRange(),r=n.vtkns.ColorTransferFunction.newInstance();r.onModified(()=>this.model.mapper=n.vtkLutToMapper(r));const o=n.vtkns.PiecewiseFunction.newInstance(),a=.7*Math.sqrt(e.getSpacing().map(e=>e*e).reduce((e,t)=>e+t,0));i.setSampleDistance(a),t.getProperty().setRGBTransferFunction(0,r),t.getProperty().setScalarOpacity(0,o),t.getProperty().setInterpolationTypeToFastLinear(),t.getProperty().setScalarOpacityUnitDistance(0,n.vtkns.BoundingBox.getDiagonalLength(e.getBounds())/Math.max(…e.getDimensions())),t.getProperty().setGradientOpacityMinimumValue(0,0),t.getProperty().setGradientOpacityMaximumValue(0,.05*(s[1]-s[0])),t.getProperty().setShade(this.model.shadow),t.getProperty().setUseGradientOpacity(0,!0),t.getProperty().setGradientOpacityMinimumOpacity(0,0),t.getProperty().setGradientOpacityMaximumOpacity(0,1),t.getProperty().setAmbient(this.model.ambient),t.getProperty().setDiffuse(this.model.diffuse),t.getProperty().setSpecular(this.model.specular),t.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderer().addVolume(t),this._controllerWidget.setupContent(this._vtk_renwin.getRenderWindow(),t,!0)}_plot_slices(){const e=this._vtk_image_data,t=n.vtkns.ImageSlice.newInstance(),i=n.vtkns.ImageSlice.newInstance(),s=n.vtkns.ImageSlice.newInstance(),r=n.vtkns.ImageMapper.newInstance(),o=n.vtkns.ImageMapper.newInstance(),a=n.vtkns.ImageMapper.newInstance();r.setInputData(e),r.setISlice(this.model.slice_i),t.setMapper(r),o.setInputData(e),o.setJSlice(this.model.slice_j),i.setMapper(o),a.setInputData(e),a.setKSlice(this.model.slice_k),s.setMapper(a);const l=n.vtkns.PiecewiseFunction.newInstance();l.removeAllPoints(),l.addPoint(0,1);const c=this.volume.getProperty().getRGBTransferFunction(0),d=t.getProperty();i.setProperty(d),s.setProperty(d),d.setRGBTransferFunction(c),d.setScalarOpacity(l);const h=this._vtk_renwin.getRenderer();h.addActor(t),h.addActor(i),h.addActor(s)}_set_volume_visibility(e){this.volume.setVisibility(e)}_set_slices_visibility(e){this._vtk_renwin.getRenderer().getActors().map(t=>t.setVisibility(e))}}i.VTKVolumePlotView=o,o.__name__="VTKVolumePlotView";class a extends r.AbstractVTKPlot{constructor(e){super(e)}static init_VTKVolumePlot(){this.prototype.default_view=o,this.define({data:[s.Instance],shadow:[s.Boolean,!0],sampling:[s.Number,.4],edge_gradient:[s.Number,.2],colormap:[s.String],rescale:[s.Boolean,!1],ambient:[s.Number,.2],diffuse:[s.Number,.7],specular:[s.Number,.3],specular_power:[s.Number,8],slice_i:[s.Int,0],slice_j:[s.Int,0],slice_k:[s.Int,0],display_volume:[s.Boolean,!0],display_slices:[s.Boolean,!1],render_background:[s.String,"#52576e"],interpolation:[s.Any,"fast_linear"],mapper:[s.Instance]})}}i.VTKVolumePlot=a,a.__name__="VTKVolumePlot",a.init_VTKVolumePlot()},n”, ” "e23461e5d7": function _(t,s,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t("tslib"),n=t("2f3fd5db07"),a=t("@bokehjs/model"),c=e.__importStar(t("@bokehjs/core/properties")),r=t("ba07c3d566");class h extends a.Model{constructor(t){super(t)}static init_VTKAxes(){this.define({origin:[c.Array],xticker:[c.Instance],yticker:[c.Instance],zticker:[c.Instance],digits:[c.Number,1],show_grid:[c.Boolean,!0],grid_opacity:[c.Number,.1],axes_opacity:[c.Number,1],fontsize:[c.Number,12]})}get xticks(){return this.xticker.ticks}get yticks(){return this.yticker.ticks}get zticks(){return this.zticker.ticks}get xlabels(){return this.xticker.labels?this.xticker.labels:this.xticks.map(t=>t.toFixed(this.digits))}get ylabels(){return this.yticker.labels?this.yticker.labels:this.yticks.map(t=>t.toFixed(this.digits))}get zlabels(){return this.zticker.labels?this.zticker.labels:this.zticks.map(t=>t.toFixed(this.digits))}_make_grid_lines(t,s,i){const e=[];for(let n=0;n<t-1;n++)for(let t=0;t<s-1;t++){const a=n*s+t+i,c=[5,a,n*s+t+1+i,(n+1)*s+t+1+i,(n+1)*s+t+i,a];e.push(c)}return e}_create_grid_axes(){const t=[];t.push(r.cartesian_product(this.xticks,this.yticks,[this.origin[2]])),t.push(r.cartesian_product([this.origin[0]],this.yticks,this.zticks)),t.push(r.cartesian_product(this.xticks,[this.origin[1]],this.zticks));const s=[];let i=0;s.push(this._make_grid_lines(this.xticks.length,this.yticks.length,i)),i+=this.xticks.length*this.yticks.length,s.push(this._make_grid_lines(this.yticks.length,this.zticks.length,i)),i+=this.yticks.length*this.zticks.length,s.push(this._make_grid_lines(this.xticks.length,this.zticks.length,i));const e=r.vtk({vtkClass:"vtkPolyData",points:{vtkClass:"vtkPoints",dataType:"Float32Array",numberOfComponents:3,values:t.flat(2)},lines:{vtkClass:"vtkCellArray",dataType:"Uint32Array",values:s.flat(2)}}),n=r.vtkns.Mapper.newInstance(),a=r.vtkns.Actor.newInstance();return n.setInputData(e),a.setMapper(n),a.getProperty().setOpacity(this.grid_opacity),a.setVisibility(this.show_grid),a}create_axes(t){const s=[this.xticks,this.yticks,this.zticks].map((t,s)=>{let i=null;switch(s){case 0:i=r.cartesian_product(t,[this.origin[1]],[this.origin[2]]);break;case 1:i=r.cartesian_product([this.origin[0]],t,[this.origin[2]]);break;case 2:i=r.cartesian_product([this.origin[0]],[this.origin[1]],t)}return i}).flat(2),i=r.vtk({vtkClass:"vtkPolyData",points:{vtkClass:"vtkPoints",dataType:"Float32Array",numberOfComponents:3,values:s},lines:{vtkClass:"vtkCellArray",dataType:"Uint32Array",values:[2,0,this.xticks.length-1,2,this.xticks.length,this.xticks.length+this.yticks.length-1,2,this.xticks.length+this.yticks.length,this.xticks.length+this.yticks.length+this.zticks.length-1]}}),e=r.vtkns.PixelSpaceCallbackMapper.newInstance();e.setInputData(i),e.setUseZValues(!0),e.setCallback((s,i,a)=>{const c=t.getContext("2d");if(c){const r={height:t.clientHeight*window.devicePixelRatio,width:t.clientWidth*window.devicePixelRatio},h=e.getInputData().getPoints(),l=i.getViewMatrix();n.mat4.transpose(l,l);const o=i.getProjectionMatrix(a,-1,1);n.mat4.transpose(o,o),c.clearRect(0,0,r.width,r.height),s.forEach((t,s)=>{const i=h.getPoint(s),e=n.vec3.fromValues(i[0],i[1],i[2]);if(n.vec3.transformMat4(e,e,l),e[2]+=.05,n.vec3.transformMat4(e,e,o),e[2]-.001<t[3]){let i;c.font="30px serif",c.textAlign="center",c.textBaseline="alphabetic",c.fillText(".",t[0],r.height-t[1]+2),c.font=`${this.fontsize*window.devicePixelRatio}px serif`,c.textAlign="right",c.textBaseline="top",i=s<this.xticks.length?this.xlabels[s]:s>=this.xticks.length&&s<this.xticks.length+this.yticks.length?this.ylabels[s-this.xticks.length]:this.zlabels[s-(this.xticks.length+this.yticks.length)],c.fillText(${i},t[0],r.height-t[1])}})}});const a=r.vtkns.Actor.newInstance();a.setMapper(e);const c=r.vtkns.Mapper.newInstance();c.setInputData(i);const h=r.vtkns.Actor.newInstance();return h.setMapper(c),h.getProperty().setOpacity(this.axes_opacity),{psActor:a,axesActor:h,gridActor:this._create_grid_axes()}}}i.VTKAxes=h,h.__name__="VTKAxes",h.__module__="panel.models.vtk",h.init_VTKAxes()},n”, ” "2f3fd5db07": function _(t,c,a){Object.defineProperty(a,"__esModule",{value:!0});const o=t("tslib"),r=o.__importStar(t("68ca94c15c"));a.glMatrix=r;const _=o.__importStar(t("7c0b8e6048"));a.mat2=_;const e=o.__importStar(t("dc03f0a621"));a.mat2d=e;const i=o.__importStar(t("0285c50a7e"));a.mat3=i;const m=o.__importStar(t("a427635f32"));a.mat4=m;const n=o.__importStar(t("eb06fc032a"));a.quat=n;const s=o.__importStar(t("277615c682"));a.quat2=s;const p=o.__importStar(t("c56d9ff837"));a.vec2=p;const S=o.__importStar(t("2c5eb22089"));a.vec3=S;const f=o.__importStar(t("c1aa33d719"));a.vec4=f},n”, ” "68ca94c15c": function _(t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EPSILON=1e-6,r.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,r.RANDOM=Math.random,r.setMatrixArrayType=function(t){r.ARRAY_TYPE=t};var n=Math.PI/180;r.toRadian=function(t){return t*n},r.equals=function(t,a){return Math.abs(t-a)<=r.EPSILON*Math.max(1,Math.abs(t),Math.abs(a))},Math.hypot||(Math.hypot=function(){for(var t=0,a=arguments.length;a–;)t+=arguments[a]*arguments[a];return Math.sqrt(t)})},n”, ” "7c0b8e6048": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1],f=r[2],s=r[3];return t[0]=a*c+e*i,t[1]=u*c+o*i,t[2]=a*f+e*s,t[3]=u*f+o*s,t}function e(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}r.create=function(){var t=new a.ARRAY_TYPE(4);return a.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},r.clone=function(t){var n=new a.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},r.fromValues=function(t,n,r,u){var e=new a.ARRAY_TYPE(4);return e[0]=t,e[1]=n,e[2]=r,e[3]=u,e},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.transpose=function(t,n){if(t===n){var r=n[1];t[1]=n[2],t[2]=r}else t[0]=n[0],t[1]=n[2],t[2]=n[1],t[3]=n[3];return t},r.invert=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*e-u*a;return o?(o=1/o,t[0]=e*o,t[1]=-a*o,t[2]=-u*o,t[3]=r*o,t):null},r.adjoint=function(t,n){var r=n[0];return t[0]=n[3],t[1]=-n[1],t[2]=-n[2],t[3]=r,t},r.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},r.multiply=u,r.rotate=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=Math.sin(r),i=Math.cos(r);return t[0]=a*i+e*c,t[1]=u*i+o*c,t[2]=a*-c+e*i,t[3]=u*-c+o*i,t},r.scale=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1];return t[0]=a*c,t[1]=u*c,t[2]=e*i,t[3]=o*i,t},r.fromRotation=function(t,n){var r=Math.sin(n),a=Math.cos(n);return t[0]=a,t[1]=r,t[2]=-r,t[3]=a,t},r.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t},r.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},r.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},r.LDU=function(t,n,r,a){return t[2]=a[2]/a[0],r[0]=a[0],r[1]=a[1],r[3]=a[3]-t[2]*r[1],[t,n,r]},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=e,r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=t[3],c=n[0],i=n[1],f=n[2],s=n[3];return Math.abs(r-c)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(u-i)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(i))&&Math.abs(e-f)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(f))&&Math.abs(o-s)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(s))},r.multiplyScalar=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.multiplyScalarAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.mul=u,r.sub=e},n”, ” "dc03f0a621": function _(t,n,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function u(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1],h=a[2],M=a[3],b=a[4],l=a[5];return t[0]=r*s+e*f,t[1]=u*s+o*f,t[2]=r*h+e*M,t[3]=u*h+o*M,t[4]=r*b+e*l+c,t[5]=u*b+o*l+i,t}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t}a.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},a.clone=function(t){var n=new r.ARRAY_TYPE(6);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n},a.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t},a.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},a.fromValues=function(t,n,a,u,e,o){var c=new r.ARRAY_TYPE(6);return c[0]=t,c[1]=n,c[2]=a,c[3]=u,c[4]=e,c[5]=o,c},a.set=function(t,n,a,r,u,e,o){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=e,t[5]=o,t},a.invert=function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],c=n[5],i=a*e-r*u;return i?(i=1/i,t[0]=e*i,t[1]=-r*i,t[2]=-u*i,t[3]=a*i,t[4]=(u*c-e*o)*i,t[5]=(r*o-a*c)*i,t):null},a.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},a.multiply=u,a.rotate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=Math.sin(a),f=Math.cos(a);return t[0]=r*f+e*s,t[1]=u*f+o*s,t[2]=r*-s+e*f,t[3]=u*-s+o*f,t[4]=c,t[5]=i,t},a.scale=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1];return t[0]=r*s,t[1]=u*s,t[2]=e*f,t[3]=o*f,t[4]=c,t[5]=i,t},a.translate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1];return t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=r*s+e*f+c,t[5]=u*s+o*f+i,t},a.fromRotation=function(t,n){var a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=-a,t[3]=r,t[4]=0,t[5]=0,t},a.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t[4]=0,t[5]=0,t},a.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=n[0],t[5]=n[1],t},a.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},a.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},a.add=function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t},a.subtract=e,a.multiplyScalar=function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t},a.multiplyScalarAndAdd=function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t},a.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]},a.equals=function(t,n){var a=t[0],u=t[1],e=t[2],o=t[3],c=t[4],i=t[5],s=n[0],f=n[1],h=n[2],M=n[3],b=n[4],l=n[5];return Math.abs(a-s)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(u-f)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(f))&&Math.abs(e-h)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(c-b)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))},a.mul=u,a.sub=e},n”, ” "0285c50a7e": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function u(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1],l=n[2],m=n[3],v=n[4],E=n[5],P=n[6],S=n[7],d=n[8];return t[0]=f*r+b*e+l*s,t[1]=f*u+b*i+l*M,t[2]=f*o+b*c+l*h,t[3]=m*r+v*e+E*s,t[4]=m*u+v*i+E*M,t[5]=m*o+v*c+E*h,t[6]=P*r+S*e+d*s,t[7]=P*u+S*i+d*M,t[8]=P*o+S*c+d*h,t}function o(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t}n.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},n.fromMat4=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[4],t[4]=a[5],t[5]=a[6],t[6]=a[8],t[7]=a[9],t[8]=a[10],t},n.clone=function(t){var a=new r.ARRAY_TYPE(9);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromValues=function(t,a,n,u,o,e,i,c,s){var M=new r.ARRAY_TYPE(9);return M[0]=t,M[1]=a,M[2]=n,M[3]=u,M[4]=o,M[5]=e,M[6]=i,M[7]=c,M[8]=s,M},n.set=function(t,a,n,r,u,o,e,i,c,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=u,t[4]=o,t[5]=e,t[6]=i,t[7]=c,t[8]=s,t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],u=a[5];t[1]=a[3],t[2]=a[6],t[3]=n,t[5]=a[7],t[6]=r,t[7]=u}else t[0]=a[0],t[1]=a[3],t[2]=a[6],t[3]=a[1],t[4]=a[4],t[5]=a[7],t[6]=a[2],t[7]=a[5],t[8]=a[8];return t},n.invert=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=M*e-i*s,f=-M*o+i*c,b=s*o-e*c,l=n*h+r*f+u*b;return l?(l=1/l,t[0]=h*l,t[1]=(-M*r+u*s)*l,t[2]=(i*r-u*e)*l,t[3]=f*l,t[4]=(M*n-u*c)*l,t[5]=(-i*n+u*o)*l,t[6]=b*l,t[7]=(-s*n+r*c)*l,t[8]=(e*n-r*o)*l,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8];return t[0]=e*M-i*s,t[1]=u*s-r*M,t[2]=r*i-u*e,t[3]=i*c-o*M,t[4]=n*M-u*c,t[5]=u*o-n*i,t[6]=o*s-e*c,t[7]=r*c-n*s,t[8]=n*e-r*o,t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],u=t[3],o=t[4],e=t[5],i=t[6],c=t[7],s=t[8];return a*(s*o-e*c)+n*(-s*u+e*i)+r*(c*u-o*i)},n.multiply=u,n.translate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1];return t[0]=r,t[1]=u,t[2]=o,t[3]=e,t[4]=i,t[5]=c,t[6]=f*r+b*e+s,t[7]=f*u+b*i+M,t[8]=f*o+b*c+h,t},n.rotate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=Math.sin(n),b=Math.cos(n);return t[0]=b*r+f*e,t[1]=b*u+f*i,t[2]=b*o+f*c,t[3]=b*e-f*r,t[4]=b*i-f*u,t[5]=b*c-f*o,t[6]=s,t[7]=M,t[8]=h,t},n.scale=function(t,a,n){var r=n[0],u=n[1];return t[0]=r*a[0],t[1]=r*a[1],t[2]=r*a[2],t[3]=u*a[3],t[4]=u*a[4],t[5]=u*a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=a[0],t[7]=a[1],t[8]=1,t},n.fromRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=a[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromMat2d=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=0,t[3]=a[2],t[4]=a[3],t[5]=0,t[6]=a[4],t[7]=a[5],t[8]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=n+n,i=r+r,c=u+u,s=n*e,M=r*e,h=r*i,f=u*e,b=u*i,l=u*c,m=o*e,v=o*i,E=o*c;return t[0]=1-h-l,t[3]=M-E,t[6]=f+v,t[1]=M+E,t[4]=1-s-l,t[7]=b-m,t[2]=f-v,t[5]=b+m,t[8]=1-s-h,t},n.normalFromMat4=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=a[9],f=a[10],b=a[11],l=a[12],m=a[13],v=a[14],E=a[15],P=n*i-r*e,S=n*c-u*e,d=n*s-o*e,A=r*c-u*i,x=r*s-o*i,O=u*s-o*c,p=M*m-h*l,I=M*v-f*l,L=M*E-b*l,N=h*v-f*m,R=h*E-b*m,_=f*E-b*v,y=P*_-S*R+d*N+A*L-x*I+O*p;return y?(y=1/y,t[0]=(i*_-c*R+s*N)*y,t[1]=(c*L-e*_-s*I)*y,t[2]=(e*R-i*L+s*p)*y,t[3]=(u*R-r*_-o*N)*y,t[4]=(n*_-u*L+o*I)*y,t[5]=(r*L-n*R-o*p)*y,t[6]=(m*O-v*x+E*A)*y,t[7]=(v*d-l*O-E*S)*y,t[8]=(l*x-m*d+E*P)*y,t):null},n.projection=function(t,a,n){return t[0]=2/a,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},n.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t},n.subtract=o,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]},n.equals=function(t,a){var n=t[0],u=t[1],o=t[2],e=t[3],i=t[4],c=t[5],s=t[6],M=t[7],h=t[8],f=a[0],b=a[1],l=a[2],m=a[3],v=a[4],E=a[5],P=a[6],S=a[7],d=a[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(u-b)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(e-m)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(m))&&Math.abs(i-v)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(c-E)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(s-P)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(P))&&Math.abs(M-S)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(S))&&Math.abs(h-d)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(d))},n.mul=u,n.sub=o},n”, ” "a427635f32": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function o(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],e=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],v=a[12],m=a[13],P=a[14],E=a[15],S=n[0],I=n[1],O=n[2],p=n[3];return t[0]=S*r+I*M+O*c+p*v,t[1]=S*h+I*e+O*f+p*m,t[2]=S*o+I*s+O*b+p*P,t[3]=S*u+I*i+O*l+p*E,S=n[4],I=n[5],O=n[6],p=n[7],t[4]=S*r+I*M+O*c+p*v,t[5]=S*h+I*e+O*f+p*m,t[6]=S*o+I*s+O*b+p*P,t[7]=S*u+I*i+O*l+p*E,S=n[8],I=n[9],O=n[10],p=n[11],t[8]=S*r+I*M+O*c+p*v,t[9]=S*h+I*e+O*f+p*m,t[10]=S*o+I*s+O*b+p*P,t[11]=S*u+I*i+O*l+p*E,S=n[12],I=n[13],O=n[14],p=n[15],t[12]=S*r+I*M+O*c+p*v,t[13]=S*h+I*e+O*f+p*m,t[14]=S*o+I*s+O*b+p*P,t[15]=S*u+I*i+O*l+p*E,t}function u(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=r+r,e=h+h,s=o+o,i=r*M,c=r*e,f=r*s,b=h*e,l=h*s,v=o*s,m=u*M,P=u*e,E=u*s;return t[0]=1-(b+v),t[1]=c+E,t[2]=f-P,t[3]=0,t[4]=c-E,t[5]=1-(i+v),t[6]=l+m,t[7]=0,t[8]=f+P,t[9]=l-m,t[10]=1-(i+b),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function M(t,a){var n=a[0],r=a[1],h=a[2],o=a[4],u=a[5],M=a[6],e=a[8],s=a[9],i=a[10];return t[0]=Math.hypot(n,r,h),t[1]=Math.hypot(o,u,M),t[2]=Math.hypot(e,s,i),t}function e(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t[9]=a[9]-n[9],t[10]=a[10]-n[10],t[11]=a[11]-n[11],t[12]=a[12]-n[12],t[13]=a[13]-n[13],t[14]=a[14]-n[14],t[15]=a[15]-n[15],t}n.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},n.clone=function(t){var a=new r.ARRAY_TYPE(16);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.fromValues=function(t,a,n,h,o,u,M,e,s,i,c,f,b,l,v,m){var P=new r.ARRAY_TYPE(16);return P[0]=t,P[1]=a,P[2]=n,P[3]=h,P[4]=o,P[5]=u,P[6]=M,P[7]=e,P[8]=s,P[9]=i,P[10]=c,P[11]=f,P[12]=b,P[13]=l,P[14]=v,P[15]=m,P},n.set=function(t,a,n,r,h,o,u,M,e,s,i,c,f,b,l,v,m){return t[0]=a,t[1]=n,t[2]=r,t[3]=h,t[4]=o,t[5]=u,t[6]=M,t[7]=e,t[8]=s,t[9]=i,t[10]=c,t[11]=f,t[12]=b,t[13]=l,t[14]=v,t[15]=m,t},n.identity=h,n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],h=a[3],o=a[6],u=a[7],M=a[11];t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=n,t[6]=a[9],t[7]=a[13],t[8]=r,t[9]=o,t[11]=a[14],t[12]=h,t[13]=u,t[14]=M}else t[0]=a[0],t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=a[1],t[5]=a[5],t[6]=a[9],t[7]=a[13],t[8]=a[2],t[9]=a[6],t[10]=a[10],t[11]=a[14],t[12]=a[3],t[13]=a[7],t[14]=a[11],t[15]=a[15];return t},n.invert=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],e=a[6],s=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],v=a[13],m=a[14],P=a[15],E=n*M-r*u,S=n*e-h*u,I=n*s-o*u,O=r*e-h*M,p=r*s-o*M,L=h*s-o*e,N=i*v-c*l,R=i*m-f*l,x=i*P-b*l,y=c*m-f*v,A=c*P-b*v,Y=f*P-b*m,d=E*Y-S*A+I*y+O*x-p*R+L*N;return d?(d=1/d,t[0]=(M*Y-e*A+s*y)*d,t[1]=(h*A-r*Y-o*y)*d,t[2]=(v*L-m*p+P*O)*d,t[3]=(f*p-c*L-b*O)*d,t[4]=(e*x-u*Y-s*R)*d,t[5]=(n*Y-h*x+o*R)*d,t[6]=(m*I-l*L-P*S)*d,t[7]=(i*L-f*I+b*S)*d,t[8]=(u*A-M*x+s*N)*d,t[9]=(r*x-n*A-o*N)*d,t[10]=(l*p-v*I+P*E)*d,t[11]=(c*I-i*p-b*E)*d,t[12]=(M*R-u*y-e*N)*d,t[13]=(n*y-r*R+h*N)*d,t[14]=(v*S-l*O-m*E)*d,t[15]=(i*O-c*S+f*E)*d,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],e=a[6],s=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],v=a[13],m=a[14],P=a[15];return t[0]=M*(f*P-b*m)-c*(e*P-s*m)+v*(e*b-s*f),t[1]=-(r*(f*P-b*m)-c*(h*P-o*m)+v*(h*b-o*f)),t[2]=r*(e*P-s*m)-M*(h*P-o*m)+v*(h*s-o*e),t[3]=-(r*(e*b-s*f)-M*(h*b-o*f)+c*(h*s-o*e)),t[4]=-(u*(f*P-b*m)-i*(e*P-s*m)+l*(e*b-s*f)),t[5]=n*(f*P-b*m)-i*(h*P-o*m)+l*(h*b-o*f),t[6]=-(n*(e*P-s*m)-u*(h*P-o*m)+l*(h*s-o*e)),t[7]=n*(e*b-s*f)-u*(h*b-o*f)+i*(h*s-o*e),t[8]=u*(c*P-b*v)-i*(M*P-s*v)+l*(M*b-s*c),t[9]=-(n*(c*P-b*v)-i*(r*P-o*v)+l*(r*b-o*c)),t[10]=n*(M*P-s*v)-u*(r*P-o*v)+l*(r*s-o*M),t[11]=-(n*(M*b-s*c)-u*(r*b-o*c)+i*(r*s-o*M)),t[12]=-(u*(c*m-f*v)-i*(M*m-e*v)+l*(M*f-e*c)),t[13]=n*(c*m-f*v)-i*(r*m-h*v)+l*(r*f-h*c),t[14]=-(n*(M*m-e*v)-u*(r*m-h*v)+l*(r*e-h*M)),t[15]=n*(M*f-e*c)-u*(r*f-h*c)+i*(r*e-h*M),t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],h=t[3],o=t[4],u=t[5],M=t[6],e=t[7],s=t[8],i=t[9],c=t[10],f=t[11],b=t[12],l=t[13],v=t[14],m=t[15];return(a*u-n*o)*(c*m-f*v)-(a*M-r*o)*(i*m-f*l)+(a*e-h*o)*(i*v-c*l)+(n*M-r*u)*(s*m-f*b)-(n*e-h*u)*(s*v-c*b)+(r*e-h*M)*(s*l-i*b)},n.multiply=o,n.translate=function(t,a,n){var r,h,o,u,M,e,s,i,c,f,b,l,v=n[0],m=n[1],P=n[2];return a===t?(t[12]=a[0]*v+a[4]*m+a[8]*P+a[12],t[13]=a[1]*v+a[5]*m+a[9]*P+a[13],t[14]=a[2]*v+a[6]*m+a[10]*P+a[14],t[15]=a[3]*v+a[7]*m+a[11]*P+a[15]):(r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],e=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],t[0]=r,t[1]=h,t[2]=o,t[3]=u,t[4]=M,t[5]=e,t[6]=s,t[7]=i,t[8]=c,t[9]=f,t[10]=b,t[11]=l,t[12]=r*v+M*m+c*P+a[12],t[13]=h*v+e*m+f*P+a[13],t[14]=o*v+s*m+b*P+a[14],t[15]=u*v+i*m+l*P+a[15]),t},n.scale=function(t,a,n){var r=n[0],h=n[1],o=n[2];return t[0]=a[0]*r,t[1]=a[1]*r,t[2]=a[2]*r,t[3]=a[3]*r,t[4]=a[4]*h,t[5]=a[5]*h,t[6]=a[6]*h,t[7]=a[7]*h,t[8]=a[8]*o,t[9]=a[9]*o,t[10]=a[10]*o,t[11]=a[11]*o,t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.rotate=function(t,a,n,h){var o,u,M,e,s,i,c,f,b,l,v,m,P,E,S,I,O,p,L,N,R,x,y,A,Y=h[0],d=h[1],g=h[2],T=Math.hypot(Y,d,g);return T<r.EPSILON?null:(Y*=T=1/T,d*=T,g*=T,o=Math.sin(n),M=1-(u=Math.cos(n)),e=a[0],s=a[1],i=a[2],c=a[3],f=a[4],b=a[5],l=a[6],v=a[7],m=a[8],P=a[9],E=a[10],S=a[11],I=Y*Y*M+u,O=d*Y*M+g*o,p=g*Y*M-d*o,L=Y*d*M-g*o,N=d*d*M+u,R=g*d*M+Y*o,x=Y*g*M+d*o,y=d*g*M-Y*o,A=g*g*M+u,t[0]=e*I+f*O+m*p,t[1]=s*I+b*O+P*p,t[2]=i*I+l*O+E*p,t[3]=c*I+v*O+S*p,t[4]=e*L+f*N+m*R,t[5]=s*L+b*N+P*R,t[6]=i*L+l*N+E*R,t[7]=c*L+v*N+S*R,t[8]=e*x+f*y+m*A,t[9]=s*x+b*y+P*A,t[10]=i*x+l*y+E*A,t[11]=c*x+v*y+S*A,a!==t&&(t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t)},n.rotateX=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[4],u=a[5],M=a[6],e=a[7],s=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[4]=o*h+s*r,t[5]=u*h+i*r,t[6]=M*h+c*r,t[7]=e*h+f*r,t[8]=s*h-o*r,t[9]=i*h-u*r,t[10]=c*h-M*r,t[11]=f*h-e*r,t},n.rotateY=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],e=a[3],s=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h-s*r,t[1]=u*h-i*r,t[2]=M*h-c*r,t[3]=e*h-f*r,t[8]=o*r+s*h,t[9]=u*r+i*h,t[10]=M*r+c*h,t[11]=e*r+f*h,t},n.rotateZ=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],e=a[3],s=a[4],i=a[5],c=a[6],f=a[7];return a!==t&&(t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h+s*r,t[1]=u*h+i*r,t[2]=M*h+c*r,t[3]=e*h+f*r,t[4]=s*h-o*r,t[5]=i*h-u*r,t[6]=c*h-M*r,t[7]=f*h-e*r,t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotation=function(t,a,n){var h,o,u,M=n[0],e=n[1],s=n[2],i=Math.hypot(M,e,s);return i<r.EPSILON?null:(M*=i=1/i,e*=i,s*=i,h=Math.sin(a),u=1-(o=Math.cos(a)),t[0]=M*M*u+o,t[1]=e*M*u+s*h,t[2]=s*M*u-e*h,t[3]=0,t[4]=M*e*u-s*h,t[5]=e*e*u+o,t[6]=s*e*u+M*h,t[7]=0,t[8]=M*s*u+e*h,t[9]=e*s*u-M*h,t[10]=s*s*u+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},n.fromXRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromYRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromZRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotationTranslation=u,n.fromQuat2=function(t,a){var n=new r.ARRAY_TYPE(3),h=-a[0],o=-a[1],M=-a[2],e=a[3],s=a[4],i=a[5],c=a[6],f=a[7],b=h*h+o*o+M*M+e*e;return b>0?(n[0]=2*(s*e+f*h+i*M-c*o)/b,n[1]=2*(i*e+f*o+c*h-s*M)/b,n[2]=2*(c*e+f*M+s*o-i*h)/b):(n[0]=2*(s*e+f*h+i*M-c*o),n[1]=2*(i*e+f*o+c*h-s*M),n[2]=2*(c*e+f*M+s*o-i*h)),u(t,a,n),t},n.getTranslation=function(t,a){return t[0]=a[12],t[1]=a[13],t[2]=a[14],t},n.getScaling=M,n.getRotation=function(t,a){var n=new r.ARRAY_TYPE(3);M(n,a);var h=1/n[0],o=1/n[1],u=1/n[2],e=a[0]*h,s=a[1]*o,i=a[2]*u,c=a[4]*h,f=a[5]*o,b=a[6]*u,l=a[8]*h,v=a[9]*o,m=a[10]*u,P=e+f+m,E=0;return P>0?(E=2*Math.sqrt(P+1),t[3]=.25*E,t[0]=(b-v)/E,t[1]=(l-i)/E,t[2]=(s-c)/E):e>f&&e>m?(E=2*Math.sqrt(1+e-f-m),t[3]=(b-v)/E,t[0]=.25*E,t[1]=(s+c)/E,t[2]=(l+i)/E):f>m?(E=2*Math.sqrt(1+f-e-m),t[3]=(l-i)/E,t[0]=(s+c)/E,t[1]=.25*E,t[2]=(b+v)/E):(E=2*Math.sqrt(1+m-e-f),t[3]=(s-c)/E,t[0]=(l+i)/E,t[1]=(b+v)/E,t[2]=.25*E),t},n.fromRotationTranslationScale=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=a[3],e=h+h,s=o+o,i=u+u,c=h*e,f=h*s,b=h*i,l=o*s,v=o*i,m=u*i,P=M*e,E=M*s,S=M*i,I=r[0],O=r[1],p=r[2];return t[0]=(1-(l+m))*I,t[1]=(f+S)*I,t[2]=(b-E)*I,t[3]=0,t[4]=(f-S)*O,t[5]=(1-(c+m))*O,t[6]=(v+P)*O,t[7]=0,t[8]=(b+E)*p,t[9]=(v-P)*p,t[10]=(1-(c+l))*p,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},n.fromRotationTranslationScaleOrigin=function(t,a,n,r,h){var o=a[0],u=a[1],M=a[2],e=a[3],s=o+o,i=u+u,c=M+M,f=o*s,b=o*i,l=o*c,v=u*i,m=u*c,P=M*c,E=e*s,S=e*i,I=e*c,O=r[0],p=r[1],L=r[2],N=h[0],R=h[1],x=h[2],y=(1-(v+P))*O,A=(b+I)*O,Y=(l-S)*O,d=(b-I)*p,g=(1-(f+P))*p,T=(m+E)*p,_=(l+S)*L,q=(m-E)*L,w=(1-(f+v))*L;return t[0]=y,t[1]=A,t[2]=Y,t[3]=0,t[4]=d,t[5]=g,t[6]=T,t[7]=0,t[8]=_,t[9]=q,t[10]=w,t[11]=0,t[12]=n[0]+N-(y*N+d*R+_*x),t[13]=n[1]+R-(A*N+g*R+q*x),t[14]=n[2]+x-(Y*N+T*R+w*x),t[15]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=n+n,M=r+r,e=h+h,s=n*u,i=r*u,c=r*M,f=h*u,b=h*M,l=h*e,v=o*u,m=o*M,P=o*e;return t[0]=1-c-l,t[1]=i+P,t[2]=f-m,t[3]=0,t[4]=i-P,t[5]=1-s-l,t[6]=b+v,t[7]=0,t[8]=f+m,t[9]=b-v,t[10]=1-s-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.frustum=function(t,a,n,r,h,o,u){var M=1/(n-a),e=1/(h-r),s=1/(o-u);return t[0]=2*o*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*e,t[6]=0,t[7]=0,t[8]=(n+a)*M,t[9]=(h+r)*e,t[10]=(u+o)*s,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*o*2*s,t[15]=0,t},n.perspective=function(t,a,n,r,h){var o,u=1/Math.tan(a/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=h&&h!==1/0?(o=1/(r-h),t[10]=(h+r)*o,t[14]=2*h*r*o):(t[10]=-1,t[14]=-2*r),t},n.perspectiveFromFieldOfView=function(t,a,n,r){var h=Math.tan(a.upDegrees*Math.PI/180),o=Math.tan(a.downDegrees*Math.PI/180),u=Math.tan(a.leftDegrees*Math.PI/180),M=Math.tan(a.rightDegrees*Math.PI/180),e=2/(u+M),s=2/(h+o);return t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=-(u-M)*e*.5,t[9]=(h-o)*s*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},n.ortho=function(t,a,n,r,h,o,u){var M=1/(a-n),e=1/(r-h),s=1/(o-u);return t[0]=-2*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*s,t[11]=0,t[12]=(a+n)*M,t[13]=(h+r)*e,t[14]=(u+o)*s,t[15]=1,t},n.lookAt=function(t,a,n,o){var u,M,e,s,i,c,f,b,l,v,m=a[0],P=a[1],E=a[2],S=o[0],I=o[1],O=o[2],p=n[0],L=n[1],N=n[2];return Math.abs(m-p)<r.EPSILON&&Math.abs(P-L)<r.EPSILON&&Math.abs(E-N)<r.EPSILON?h(t):(f=m-p,b=P-L,l=E-N,u=I*(l*=v=1/Math.hypot(f,b,l))-O*(b*=v),M=O*(f*=v)-S*l,e=S*b-I*f,(v=Math.hypot(u,M,e))?(u*=v=1/v,M*=v,e*=v):(u=0,M=0,e=0),s=b*e-l*M,i=l*u-f*e,c=f*M-b*u,(v=Math.hypot(s,i,c))?(s*=v=1/v,i*=v,c*=v):(s=0,i=0,c=0),t[0]=u,t[1]=s,t[2]=f,t[3]=0,t[4]=M,t[5]=i,t[6]=b,t[7]=0,t[8]=e,t[9]=c,t[10]=l,t[11]=0,t[12]=-(u*m+M*P+e*E),t[13]=-(s*m+i*P+c*E),t[14]=-(f*m+b*P+l*E),t[15]=1,t)},n.targetTo=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=r[0],e=r[1],s=r[2],i=h-n[0],c=o-n[1],f=u-n[2],b=i*i+c*c+f*f;b>0&&(i*=b=1/Math.sqrt(b),c*=b,f*=b);var l=e*f-s*c,v=s*i-M*f,m=M*c-e*i;return(b=l*l+v*v+m*m)>0&&(l*=b=1/Math.sqrt(b),v*=b,m*=b),t[0]=l,t[1]=v,t[2]=m,t[3]=0,t[4]=c*m-f*v,t[5]=f*l-i*m,t[6]=i*v-c*l,t[7]=0,t[8]=i,t[9]=c,t[10]=f,t[11]=0,t[12]=h,t[13]=o,t[14]=u,t[15]=1,t},n.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t[9]=a[9]+n[9],t[10]=a[10]+n[10],t[11]=a[11]+n[11],t[12]=a[12]+n[12],t[13]=a[13]+n[13],t[14]=a[14]+n[14],t[15]=a[15]+n[15],t},n.subtract=e,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t[9]=a[9]*n,t[10]=a[10]*n,t[11]=a[11]*n,t[12]=a[12]*n,t[13]=a[13]*n,t[14]=a[14]*n,t[15]=a[15]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t[9]=a[9]+n[9]*r,t[10]=a[10]+n[10]*r,t[11]=a[11]+n[11]*r,t[12]=a[12]+n[12]*r,t[13]=a[13]+n[13]*r,t[14]=a[14]+n[14]*r,t[15]=a[15]+n[15]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]&&t[9]===a[9]&&t[10]===a[10]&&t[11]===a[11]&&t[12]===a[12]&&t[13]===a[13]&&t[14]===a[14]&&t[15]===a[15]},n.equals=function(t,a){var n=t[0],h=t[1],o=t[2],u=t[3],M=t[4],e=t[5],s=t[6],i=t[7],c=t[8],f=t[9],b=t[10],l=t[11],v=t[12],m=t[13],P=t[14],E=t[15],S=a[0],I=a[1],O=a[2],p=a[3],L=a[4],N=a[5],R=a[6],x=a[7],y=a[8],A=a[9],Y=a[10],d=a[11],g=a[12],T=a[13],_=a[14],q=a[15];return Math.abs(n-S)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(S))&&Math.abs(h-I)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(o-O)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(u-p)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(p))&&Math.abs(M-L)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(L))&&Math.abs(e-N)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(N))&&Math.abs(s-R)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(c-y)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(b-Y)<=r.EPSILON*Math.max(1,Math.abs(b),Math.abs(Y))&&Math.abs(l-d)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(d))&&Math.abs(v-g)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(g))&&Math.abs(m-T)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(P-_)<=r.EPSILON*Math.max(1,Math.abs(P),Math.abs(_))&&Math.abs(E-q)<=r.EPSILON*Math.max(1,Math.abs(E),Math.abs(q))},n.mul=o,n.sub=e},n”, ” "eb06fc032a": function _(t,r,a){Object.defineProperty(a,"__esModule",{value:!0});const n=t("tslib"),e=n.__importStar(t("68ca94c15c")),o=n.__importStar(t("0285c50a7e")),s=n.__importStar(t("2c5eb22089")),u=n.__importStar(t("c1aa33d719"));function c(){var t=new e.ARRAY_TYPE(4);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function i(t,r,a){a*=.5;var n=Math.sin(a);return t[0]=n*r[0],t[1]=n*r[1],t[2]=n*r[2],t[3]=Math.cos(a),t}function h(t,r,a){var n=r[0],e=r[1],o=r[2],s=r[3],u=a[0],c=a[1],i=a[2],h=a[3];return t[0]=n*h+s*u+e*i-o*c,t[1]=e*h+s*c+o*u-n*i,t[2]=o*h+s*i+n*c-e*u,t[3]=s*h-n*u-e*c-o*i,t}function M(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=Math.exp(o),c=s>0?u*Math.sin(s)/s:0;return t[0]=a*c,t[1]=n*c,t[2]=e*c,t[3]=u*Math.cos(s),t}function l(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=s>0?Math.atan2(s,o)/s:0;return t[0]=a*u,t[1]=n*u,t[2]=e*u,t[3]=.5*Math.log(a*a+n*n+e*e+o*o),t}function f(t,r,a,n){var o,s,u,c,i,h=r[0],M=r[1],l=r[2],f=r[3],v=a[0],m=a[1],q=a[2],d=a[3];return(s=h*v+M*m+l*q+f*d)<0&&(s=-s,v=-v,m=-m,q=-q,d=-d),1-s>e.EPSILON?(o=Math.acos(s),u=Math.sin(o),c=Math.sin((1-n)*o)/u,i=Math.sin(n*o)/u):(c=1-n,i=n),t[0]=c*h+i*v,t[1]=c*M+i*m,t[2]=c*l+i*q,t[3]=c*f+i*d,t}function v(t,r){var a,n=r[0]+r[4]+r[8];if(n>0)a=Math.sqrt(n+1),t[3]=.5*a,a=.5/a,t[0]=(r[5]-r[7])*a,t[1]=(r[6]-r[2])*a,t[2]=(r[1]-r[3])*a;else{var e=0;r[4]>r[0]&&(e=1),r[8]>r[3*e+e]&&(e=2);var o=(e+1)%3,s=(e+2)%3;a=Math.sqrt(r[3*e+e]-r[3*o+o]-r[3*s+s]+1),t[e]=.5*a,a=.5/a,t[3]=(r[3*o+s]-r[3*s+o])*a,t[o]=(r[3*o+e]+r[3*e+o])*a,t[s]=(r[3*s+e]+r[3*e+s])*a}return t}var m,q,d,p,A,g;a.create=c,a.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},a.setAxisAngle=i,a.getAxisAngle=function(t,r){var a=2*Math.acos(r[3]),n=Math.sin(a/2);return n>e.EPSILON?(t[0]=r[0]/n,t[1]=r[1]/n,t[2]=r[2]/n):(t[0]=1,t[1]=0,t[2]=0),a},a.getAngle=function(t,r){var n=a.dot(t,r);return Math.acos(2*n*n-1)},a.multiply=h,a.rotateX=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+s*u,t[1]=e*c+o*u,t[2]=o*c-e*u,t[3]=s*c-n*u,t},a.rotateY=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c-o*u,t[1]=e*c+s*u,t[2]=o*c+n*u,t[3]=s*c-e*u,t},a.rotateZ=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+e*u,t[1]=e*c-n*u,t[2]=o*c+s*u,t[3]=s*c-o*u,t},a.calculateW=function(t,r){var a=r[0],n=r[1],e=r[2];return t[0]=a,t[1]=n,t[2]=e,t[3]=Math.sqrt(Math.abs(1-a*a-n*n-e*e)),t},a.exp=M,a.ln=l,a.pow=function(t,r,n){return l(t,r),a.scale(t,t,n),M(t,t),t},a.slerp=f,a.random=function(t){var r=e.RANDOM(),a=e.RANDOM(),n=e.RANDOM(),o=Math.sqrt(1-r),s=Math.sqrt(r);return t[0]=o*Math.sin(2*Math.PI*a),t[1]=o*Math.cos(2*Math.PI*a),t[2]=s*Math.sin(2*Math.PI*n),t[3]=s*Math.cos(2*Math.PI*n),t},a.invert=function(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=a*a+n*n+e*e+o*o,u=s?1/s:0;return t[0]=-a*u,t[1]=-n*u,t[2]=-e*u,t[3]=o*u,t},a.conjugate=function(t,r){return t[0]=-r[0],t[1]=-r[1],t[2]=-r[2],t[3]=r[3],t},a.fromMat3=v,a.fromEuler=function(t,r,a,n){var e=.5*Math.PI/180;r*=e,a*=e,n*=e;var o=Math.sin(r),s=Math.cos(r),u=Math.sin(a),c=Math.cos(a),i=Math.sin(n),h=Math.cos(n);return t[0]=o*c*h-s*u*i,t[1]=s*u*h+o*c*i,t[2]=s*c*i-o*u*h,t[3]=s*c*h+o*u*i,t},a.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},a.clone=u.clone,a.fromValues=u.fromValues,a.copy=u.copy,a.set=u.set,a.add=u.add,a.mul=h,a.scale=u.scale,a.dot=u.dot,a.lerp=u.lerp,a.length=u.length,a.len=a.length,a.squaredLength=u.squaredLength,a.sqrLen=a.squaredLength,a.normalize=u.normalize,a.exactEquals=u.exactEquals,a.equals=u.equals,a.rotationTo=(m=s.create(),q=s.fromValues(1,0,0),d=s.fromValues(0,1,0),function(t,r,n){var e=s.dot(r,n);return e<-.999999?(s.cross(m,q,r),s.len(m)<1e-6&&s.cross(m,d,r),s.normalize(m,m),i(t,m,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(s.cross(m,r,n),t[0]=m[0],t[1]=m[1],t[2]=m[2],t[3]=1+e,a.normalize(t,t))}),a.sqlerp=(p=c(),A=c(),function(t,r,a,n,e,o){return f(p,r,e,o),f(A,a,n,o),f(t,p,A,2*o*(1-o)),t}),a.setAxes=(g=o.create(),function(t,r,n,e){return g[0]=n[0],g[3]=n[1],g[6]=n[2],g[1]=e[0],g[4]=e[1],g[7]=e[2],g[2]=-r[0],g[5]=-r[1],g[8]=-r[2],a.normalize(t,v(t,g))})},n”, ” "2c5eb22089": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(){var t=new a.ARRAY_TYPE(3);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function e(t){var n=t[0],r=t[1],a=t[2];return Math.hypot(n,r,a)}function o(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function i(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function c(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return Math.hypot(r,a,u)}function M(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return r*r+a*a+u*u}function s(t){var n=t[0],r=t[1],a=t[2];return n*n+r*r+a*a}function f(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}var l;r.create=u,r.clone=function(t){var n=new a.ARRAY_TYPE(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n},r.length=e,r.fromValues=function(t,n,r){var u=new a.ARRAY_TYPE(3);return u[0]=t,u[1]=n,u[2]=r,u},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},r.set=function(t,n,r,a){return t[0]=n,t[1]=r,t[2]=a,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t},r.subtract=o,r.multiply=i,r.divide=c,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t},r.distance=h,r.squaredDistance=M,r.squaredLength=s,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=r*r+a*a+u*u;return e>0&&(e=1/Math.sqrt(e)),t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t},r.dot=f,r.cross=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2];return t[0]=u*c-e*i,t[1]=e*o-a*c,t[2]=a*i-u*o,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t},r.hermite=function(t,n,r,a,u,e){var o=e*e,i=o*(2*e-3)+1,c=o*(e-2)+e,h=o*(e-1),M=o*(3-2*e);return t[0]=n[0]*i+r[0]*c+a[0]*h+u[0]*M,t[1]=n[1]*i+r[1]*c+a[1]*h+u[1]*M,t[2]=n[2]*i+r[2]*c+a[2]*h+u[2]*M,t},r.bezier=function(t,n,r,a,u,e){var o=1-e,i=o*o,c=e*e,h=i*o,M=3*e*i,s=3*c*o,f=c*e;return t[0]=n[0]*h+r[0]*M+a[0]*s+u[0]*f,t[1]=n[1]*h+r[1]*M+a[1]*s+u[1]*f,t[2]=n[2]*h+r[2]*M+a[2]*s+u[2]*f,t},r.random=function(t,n){n=n||1;var r=2*a.RANDOM()*Math.PI,u=2*a.RANDOM()-1,e=Math.sqrt(1-u*u)*n;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t[2]=u*n,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[3]*a+r[7]*u+r[11]*e+r[15];return o=o||1,t[0]=(r[0]*a+r[4]*u+r[8]*e+r[12])/o,t[1]=(r[1]*a+r[5]*u+r[9]*e+r[13])/o,t[2]=(r[2]*a+r[6]*u+r[10]*e+r[14])/o,t},r.transformMat3=function(t,n,r){var a=n[0],u=n[1],e=n[2];return t[0]=a*r[0]+u*r[3]+e*r[6],t[1]=a*r[1]+u*r[4]+e*r[7],t[2]=a*r[2]+u*r[5]+e*r[8],t},r.transformQuat=function(t,n,r){var a=r[0],u=r[1],e=r[2],o=r[3],i=n[0],c=n[1],h=n[2],M=u*h-e*c,s=e*i-a*h,f=a*c-u*i,l=u*f-e*s,v=e*M-a*f,m=a*s-u*M,d=2*o;return M*=d,s*=d,f*=d,l*=2,v*=2,m*=2,t[0]=i+M+l,t[1]=c+s+v,t[2]=h+f+m,t},r.rotateX=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0],e[1]=u[1]*Math.cos(a)-u[2]*Math.sin(a),e[2]=u[1]*Math.sin(a)+u[2]*Math.cos(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateY=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[2]*Math.sin(a)+u[0]*Math.cos(a),e[1]=u[1],e[2]=u[2]*Math.cos(a)-u[0]*Math.sin(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateZ=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0]*Math.cos(a)-u[1]*Math.sin(a),e[1]=u[0]*Math.sin(a)+u[1]*Math.cos(a),e[2]=u[2],t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.angle=function(t,n){var r=t[0],a=t[1],u=t[2],e=n[0],o=n[1],i=n[2],c=Math.sqrt(r*r+a*a+u*u)*Math.sqrt(e*e+o*o+i*i),h=c&&f(t,n)/c;return Math.acos(Math.min(Math.max(h,-1),1))},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},r.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=n[0],i=n[1],c=n[2];return Math.abs(r-o)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(u-i)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(i))&&Math.abs(e-c)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(c))},r.sub=o,r.mul=i,r.div=c,r.dist=h,r.sqrDist=M,r.len=e,r.sqrLen=s,r.forEach=(l=u(),function(t,n,r,a,u,e){var o,i;for(n||(n=3),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)l[0]=t[o],l[1]=t[o+1],l[2]=t[o+2],u(l,l,e),t[o]=l[0],t[o+1]=l[1],t[o+2]=l[2];return t})},n”, ” "c1aa33d719": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(){var t=new a.ARRAY_TYPE(4);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function e(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function o(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function i(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function c(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return Math.hypot(r,a,u,e)}function h(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return r*r+a*a+u*u+e*e}function M(t){var n=t[0],r=t[1],a=t[2],u=t[3];return Math.hypot(n,r,a,u)}function f(t){var n=t[0],r=t[1],a=t[2],u=t[3];return n*n+r*r+a*a+u*u}var s;r.create=u,r.clone=function(t){var n=new a.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.fromValues=function(t,n,r,u){var e=new a.ARRAY_TYPE(4);return e[0]=t,e[1]=n,e[2]=r,e[3]=u,e},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=e,r.multiply=o,r.divide=i,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.distance=c,r.squaredDistance=h,r.length=M,r.squaredLength=f,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*r+a*a+u*u+e*e;return o>0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=a*o,t[2]=u*o,t[3]=e*o,t},r.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},r.cross=function(t,n,r,a){var u=r[0]*a[1]-r[1]*a[0],e=r[0]*a[2]-r[2]*a[0],o=r[0]*a[3]-r[3]*a[0],i=r[1]*a[2]-r[2]*a[1],c=r[1]*a[3]-r[3]*a[1],h=r[2]*a[3]-r[3]*a[2],M=n[0],f=n[1],s=n[2],l=n[3];return t[0]=f*h-s*c+l*i,t[1]=-M*h+s*o-l*e,t[2]=M*c-f*o+l*u,t[3]=-M*i+f*e-s*u,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2],i=n[3];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t[3]=i+a*(r[3]-i),t},r.random=function(t,n){var r,u,e,o,i,c;n=n||1;do{i=(r=2*a.RANDOM()-1)*r+(u=2*a.RANDOM()-1)*u}while(i>=1);do{c=(e=2*a.RANDOM()-1)*e+(o=2*a.RANDOM()-1)*o}while(c>=1);var h=Math.sqrt((1-i)/c);return t[0]=n*r,t[1]=n*u,t[2]=n*e*h,t[3]=n*o*h,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3];return t[0]=r[0]*a+r[4]*u+r[8]*e+r[12]*o,t[1]=r[1]*a+r[5]*u+r[9]*e+r[13]*o,t[2]=r[2]*a+r[6]*u+r[10]*e+r[14]*o,t[3]=r[3]*a+r[7]*u+r[11]*e+r[15]*o,t},r.transformQuat=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2],h=r[3],M=h*a+i*e-c*u,f=h*u+c*a-o*e,s=h*e+o*u-i*a,l=-o*a-i*u-c*e;return t[0]=M*h+l*-o+f*-c-s*-i,t[1]=f*h+l*-i+s*-o-M*-c,t[2]=s*h+l*-c+M*-i-f*-o,t[3]=n[3],t},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},r.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=t[3],i=n[0],c=n[1],h=n[2],M=n[3];return Math.abs(r-i)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(u-c)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(e-h)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))},r.sub=e,r.mul=o,r.div=i,r.dist=c,r.sqrDist=h,r.len=M,r.sqrLen=f,r.forEach=(s=u(),function(t,n,r,a,u,e){var o,i;for(n||(n=4),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)s[0]=t[o],s[1]=t[o+1],s[2]=t[o+2],s[3]=t[o+3],u(s,s,e),t[o]=s[0],t[o+1]=s[1],t[o+2]=s[2],t[o+3]=s[3];return t})},n”, ” "277615c682": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib"),e=r.__importStar(t("68ca94c15c")),u=r.__importStar(t("eb06fc032a")),o=r.__importStar(t("a427635f32"));function i(t,a,n){var r=.5*n[0],e=.5*n[1],u=.5*n[2],o=a[0],i=a[1],s=a[2],c=a[3];return t[0]=o,t[1]=i,t[2]=s,t[3]=c,t[4]=r*c+e*s-u*i,t[5]=e*c+u*o-r*s,t[6]=u*c+r*i-e*o,t[7]=-r*o-e*i-u*s,t}function s(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t}function c(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[4],s=n[5],c=n[6],h=n[7],f=a[4],M=a[5],l=a[6],b=a[7],v=n[0],m=n[1],R=n[2],P=n[3];return t[0]=r*P+o*v+e*R-u*m,t[1]=e*P+o*m+u*v-r*R,t[2]=u*P+o*R+r*m-e*v,t[3]=o*P-r*v-e*m-u*R,t[4]=r*h+o*i+e*c-u*s+f*P+b*v+M*R-l*m,t[5]=e*h+o*s+u*i-r*c+M*P+b*m+l*v-f*R,t[6]=u*h+o*c+r*s-e*i+l*P+b*R+f*m-M*v,t[7]=o*h-r*i-e*s-u*c+b*P-f*v-M*m-l*R,t}n.create=function(){var t=new e.ARRAY_TYPE(8);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},n.clone=function(t){var a=new e.ARRAY_TYPE(8);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a},n.fromValues=function(t,a,n,r,u,o,i,s){var c=new e.ARRAY_TYPE(8);return c[0]=t,c[1]=a,c[2]=n,c[3]=r,c[4]=u,c[5]=o,c[6]=i,c[7]=s,c},n.fromRotationTranslationValues=function(t,a,n,r,u,o,i){var s=new e.ARRAY_TYPE(8);s[0]=t,s[1]=a,s[2]=n,s[3]=r;var c=.5*u,h=.5*o,f=.5*i;return s[4]=c*r+h*n-f*a,s[5]=h*r+f*t-c*n,s[6]=f*r+c*a-h*t,s[7]=-c*t-h*a-f*n,s},n.fromRotationTranslation=i,n.fromTranslation=function(t,a){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*a[0],t[5]=.5*a[1],t[6]=.5*a[2],t[7]=0,t},n.fromRotation=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.fromMat4=function(t,a){var n=u.create();o.getRotation(n,a);var r=new e.ARRAY_TYPE(3);return o.getTranslation(r,a),i(t,n,r),t},n.copy=s,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.set=function(t,a,n,r,e,u,o,i,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=e,t[4]=u,t[5]=o,t[6]=i,t[7]=s,t},n.getReal=u.copy,n.getDual=function(t,a){return t[0]=a[4],t[1]=a[5],t[2]=a[6],t[3]=a[7],t},n.setReal=u.copy,n.setDual=function(t,a){return t[4]=a[0],t[5]=a[1],t[6]=a[2],t[7]=a[3],t},n.getTranslation=function(t,a){var n=a[4],r=a[5],e=a[6],u=a[7],o=-a[0],i=-a[1],s=-a[2],c=a[3];return t[0]=2*(n*c+u*o+r*s-e*i),t[1]=2*(r*c+u*i+e*o-n*s),t[2]=2*(e*c+u*s+n*i-r*o),t},n.translate=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=.5*n[0],s=.5*n[1],c=.5*n[2],h=a[4],f=a[5],M=a[6],l=a[7];return t[0]=r,t[1]=e,t[2]=u,t[3]=o,t[4]=o*i+e*c-u*s+h,t[5]=o*s+u*i-r*c+f,t[6]=o*c+r*s-e*i+M,t[7]=-r*i-e*s-u*c+l,t},n.rotateX=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateX(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateY=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateY(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateZ=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateZ(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateByQuatAppend=function(t,a,n){var r=n[0],e=n[1],u=n[2],o=n[3],i=a[0],s=a[1],c=a[2],h=a[3];return t[0]=i*o+h*r+s*u-c*e,t[1]=s*o+h*e+c*r-i*u,t[2]=c*o+h*u+i*e-s*r,t[3]=h*o-i*r-s*e-c*u,i=a[4],s=a[5],c=a[6],h=a[7],t[4]=i*o+h*r+s*u-c*e,t[5]=s*o+h*e+c*r-i*u,t[6]=c*o+h*u+i*e-s*r,t[7]=h*o-i*r-s*e-c*u,t},n.rotateByQuatPrepend=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[0],s=n[1],c=n[2],h=n[3];return t[0]=r*h+o*i+e*c-u*s,t[1]=e*h+o*s+u*i-r*c,t[2]=u*h+o*c+r*s-e*i,t[3]=o*h-r*i-e*s-u*c,i=n[4],s=n[5],c=n[6],h=n[7],t[4]=r*h+o*i+e*c-u*s,t[5]=e*h+o*s+u*i-r*c,t[6]=u*h+o*c+r*s-e*i,t[7]=o*h-r*i-e*s-u*c,t},n.rotateAroundAxis=function(t,a,n,r){if(Math.abs(r)<e.EPSILON)return s(t,a);var u=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),i=o*n[0]/u,c=o*n[1]/u,h=o*n[2]/u,f=Math.cos(r),M=a[0],l=a[1],b=a[2],v=a[3];t[0]=M*f+v*i+l*h-b*c,t[1]=l*f+v*c+b*i-M*h,t[2]=b*f+v*h+M*c-l*i,t[3]=v*f-M*i-l*c-b*h;var m=a[4],R=a[5],P=a[6],d=a[7];return t[4]=m*f+d*i+R*h-P*c,t[5]=R*f+d*c+P*i-m*h,t[6]=P*f+d*h+m*c-R*i,t[7]=d*f-m*i-R*c-P*h,t},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t},n.multiply=c,n.mul=c,n.scale=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t},n.dot=u.dot,n.lerp=function(t,a,r,e){var u=1-e;return n.dot(a,r)<0&&(e=-e),t[0]=a[0]*u+r[0]*e,t[1]=a[1]*u+r[1]*e,t[2]=a[2]*u+r[2]*e,t[3]=a[3]*u+r[3]*e,t[4]=a[4]*u+r[4]*e,t[5]=a[5]*u+r[5]*e,t[6]=a[6]*u+r[6]*e,t[7]=a[7]*u+r[7]*e,t},n.invert=function(t,a){var r=n.squaredLength(a);return t[0]=-a[0]/r,t[1]=-a[1]/r,t[2]=-a[2]/r,t[3]=a[3]/r,t[4]=-a[4]/r,t[5]=-a[5]/r,t[6]=-a[6]/r,t[7]=a[7]/r,t},n.conjugate=function(t,a){return t[0]=-a[0],t[1]=-a[1],t[2]=-a[2],t[3]=a[3],t[4]=-a[4],t[5]=-a[5],t[6]=-a[6],t[7]=a[7],t},n.length=u.length,n.len=n.length,n.squaredLength=u.squaredLength,n.sqrLen=n.squaredLength,n.normalize=function(t,a){var r=n.squaredLength(a);if(r>0){r=Math.sqrt(r);var e=a[0]/r,u=a[1]/r,o=a[2]/r,i=a[3]/r,s=a[4],c=a[5],h=a[6],f=a[7],M=e*s+u*c+o*h+i*f;t[0]=e,t[1]=u,t[2]=o,t[3]=i,t[4]=(s-e*M)/r,t[5]=(c-u*M)/r,t[6]=(h-o*M)/r,t[7]=(f-i*M)/r}return t},n.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]},n.equals=function(t,a){var n=t[0],r=t[1],u=t[2],o=t[3],i=t[4],s=t[5],c=t[6],h=t[7],f=a[0],M=a[1],l=a[2],b=a[3],v=a[4],m=a[5],R=a[6],P=a[7];return Math.abs(n-f)<=e.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-M)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(u-l)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(o-b)<=e.EPSILON*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(i-v)<=e.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(s-m)<=e.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-R)<=e.EPSILON*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(h-P)<=e.EPSILON*Math.max(1,Math.abs(h),Math.abs(P))}},n”, ” "c56d9ff837": function _(n,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=n("tslib").__importStar(n("68ca94c15c"));function u(){var n=new a.ARRAY_TYPE(2);return a.ARRAY_TYPE!=Float32Array&&(n[0]=0,n[1]=0),n}function e(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n}function o(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n}function c(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n}function i(n,t){var r=t[0]-n[0],a=t[1]-n[1];return Math.hypot(r,a)}function f(n,t){var r=t[0]-n[0],a=t[1]-n[1];return r*r+a*a}function s(n){var t=n[0],r=n[1];return Math.hypot(t,r)}function h(n){var t=n[0],r=n[1];return t*t+r*r}var M;r.create=u,r.clone=function(n){var t=new a.ARRAY_TYPE(2);return t[0]=n[0],t[1]=n[1],t},r.fromValues=function(n,t){var r=new a.ARRAY_TYPE(2);return r[0]=n,r[1]=t,r},r.copy=function(n,t){return n[0]=t[0],n[1]=t[1],n},r.set=function(n,t,r){return n[0]=t,n[1]=r,n},r.add=function(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n},r.subtract=e,r.multiply=o,r.divide=c,r.ceil=function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n},r.floor=function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n},r.min=function(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n},r.max=function(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n},r.round=function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n},r.scale=function(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n},r.scaleAndAdd=function(n,t,r,a){return n[0]=t[0]+r[0]*a,n[1]=t[1]+r[1]*a,n},r.distance=i,r.squaredDistance=f,r.length=s,r.squaredLength=h,r.negate=function(n,t){return n[0]=-t[0],n[1]=-t[1],n},r.inverse=function(n,t){return n[0]=1/t[0],n[1]=1/t[1],n},r.normalize=function(n,t){var r=t[0],a=t[1],u=r*r+a*a;return u>0&&(u=1/Math.sqrt(u)),n[0]=t[0]*u,n[1]=t[1]*u,n},r.dot=function(n,t){return n[0]*t[0]+n[1]*t[1]},r.cross=function(n,t,r){var a=t[0]*r[1]-t[1]*r[0];return n[0]=n[1]=0,n[2]=a,n},r.lerp=function(n,t,r,a){var u=t[0],e=t[1];return n[0]=u+a*(r[0]-u),n[1]=e+a*(r[1]-e),n},r.random=function(n,t){t=t||1;var r=2*a.RANDOM()*Math.PI;return n[0]=Math.cos(r)*t,n[1]=Math.sin(r)*t,n},r.transformMat2=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u,n[1]=r[1]*a+r[3]*u,n},r.transformMat2d=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u+r[4],n[1]=r[1]*a+r[3]*u+r[5],n},r.transformMat3=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[3]*u+r[6],n[1]=r[1]*a+r[4]*u+r[7],n},r.transformMat4=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[4]*u+r[12],n[1]=r[1]*a+r[5]*u+r[13],n},r.rotate=function(n,t,r,a){var u=t[0]-r[0],e=t[1]-r[1],o=Math.sin(a),c=Math.cos(a);return n[0]=u*c-e*o+r[0],n[1]=u*o+e*c+r[1],n},r.angle=function(n,t){var r=n[0],a=n[1],u=t[0],e=t[1],o=Math.sqrt(r*r+a*a)*Math.sqrt(u*u+e*e),c=o&&(r*u+a*e)/o;return Math.acos(Math.min(Math.max(c,-1),1))},r.zero=function(n){return n[0]=0,n[1]=0,n},r.str=function(n){return"vec2("+n[0]+", "+n[1]+")"},r.exactEquals=function(n,t){return n[0]===t[0]&&n[1]===t[1]},r.equals=function(n,t){var r=n[0],u=n[1],e=t[0],o=t[1];return Math.abs(r-e)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(u-o)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(o))},r.len=s,r.sub=e,r.mul=o,r.div=c,r.dist=i,r.sqrDist=f,r.sqrLen=h,r.forEach=(M=u(),function(n,t,r,a,u,e){var o,c;for(t||(t=2),r||(r=0),c=a?Math.min(a*t+r,n.length):n.length,o=r;o<c;o+=t)M[0]=n[o],M[1]=n[o+1],u(M,M,e),n[o]=M[0],n[o+1]=M[1];return n})},n”, ” }, "4e90918c0a", {"index":"4e90918c0a","models/index":"22ae8fda70","models/ace":"3343056bd8","models/layout":"ba20932521","models/audio":"66d52165db","models/comm_manager":"71a9759436","models/deckgl":"f6b9b1d914","models/tooltips":"064eac2866","models/html":"ae707e931d","models/json":"9ba5b8422a","models/file_download":"a94e371ba4","models/katex":"7b859fb3cf","models/mathjax":"0c21036737","models/player":"000f20fdd3","models/plotly":"2363c12dd6","models/util":"990b5dd5c7","models/progress":"76307e5afa","models/state":"38b2bc9574","models/vega":"90d1f929bd","models/video":"b0c3e9e9c2","models/videostream":"3c7145a2fa","models/vtk/index":"ecfbb965eb","models/vtk/vtk":"5b5e56e89a","models/vtk/vtk_layout":"c704c63c0a","models/vtk/vtk_utils":"ba07c3d566","models/vtk/vtkvolume":"729dd26c71","models/vtk/vtkaxes":"e23461e5d7"}, {});n”, ” })n”, “n”, “n”, ” /* END panel.min.js */n”, ” },n”, ” function(Bokeh) {} // ensure no trailing comma for IEn”, ” ];n”, “n”, ” function run_inline_js() {n”, ” if ((root.Bokeh !== undefined) || (force === true)) {n”, ” for (var i = 0; i < inline_js.length; i++) {n”, ” inline_js[i].call(root, root.Bokeh);n”, ” }} else if (Date.now() < root._bokeh_timeout) {n”, ” setTimeout(run_inline_js, 100);n”, ” } else if (!root._bokeh_failed_load) {n”, ” console.log("Bokeh: BokehJS failed to load within specified timeout.");n”, ” root._bokeh_failed_load = true;n”, ” }n”, ” }n”, “n”, ” if (root._bokeh_is_loading === 0) {n”, ” console.debug("Bokeh: BokehJS loaded, going straight to plotting");n”, ” run_inline_js();n”, ” } else {n”, ” load_libs(css_urls, js_urls, function() {n”, ” console.debug("Bokeh: BokehJS plotting callback run at", now());n”, ” run_inline_js();n”, ” });n”, ” }n”, “}(window));”
], “application/vnd.holoviews_load.v0+json”: “n(function(root) {n function now() {n return new Date();n }nn var force = true;nn if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) {n root._bokeh_onload_callbacks = [];n root._bokeh_is_loading = undefined;n }nn if (typeof (root._bokeh_timeout) === "undefined" || force === true) {n root._bokeh_timeout = Date.now() + 5000;n root._bokeh_failed_load = false;n }nn function run_callbacks() {n try {n root._bokeh_onload_callbacks.forEach(function(callback) {n if (callback != null)n callback();n });n } finally {n delete root._bokeh_onload_callbacksn }n console.debug("Bokeh: all callbacks have finished");n }nn function load_libs(css_urls, js_urls, callback) {n if (css_urls == null) css_urls = [];n if (js_urls == null) js_urls = [];nn root._bokeh_onload_callbacks.push(callback);n if (root._bokeh_is_loading > 0) {n console.debug("Bokeh: BokehJS is being loaded, scheduling callback at", now());n return null;n }n if (js_urls == null || js_urls.length === 0) {n run_callbacks();n return null;n }n console.debug("Bokeh: BokehJS not loaded, scheduling load and callback at", now());n root._bokeh_is_loading = css_urls.length + js_urls.length;nn function on_load() {n root._bokeh_is_loading–;n if (root._bokeh_is_loading === 0) {n console.debug("Bokeh: all BokehJS libraries/stylesheets loaded");n run_callbacks()n }n }nn function on_error() {n console.error("failed to load " + url);n }nn for (var i = 0; i < css_urls.length; i++) {n var url = css_urls[i];n const element = document.createElement("link");n element.onload = on_load;n element.onerror = on_error;n element.rel = "stylesheet";n element.type = "text/css";n element.href = url;n console.debug("Bokeh: injecting link tag for BokehJS stylesheet: ", url);n document.body.appendChild(element);n }nn if (window.requirejs) {n require([], function() {n run_callbacks();n })n } else {n var skip = [];n for (var i = 0; i < js_urls.length; i++) {n var url = js_urls[i];n if (skip.indexOf(url) >= 0) { on_load(); continue; }n var element = document.createElement(‘script’);n element.onload = on_load;n element.onerror = on_error;n element.async = false;n element.src = url;n console.debug("Bokeh: injecting script tag for BokehJS library: ", url);n document.head.appendChild(element);n }n }n };nn function inject_raw_css(css) {n const element = document.createElement("style");n element.appendChild(document.createTextNode(css));n document.body.appendChild(element);n }nn var js_urls = [];n var css_urls = [];nn var inline_js = [n function(Bokeh) {n inject_raw_css(".widget-box {\n\tmin-height: 20px;\n\tbackground-color: #f5f5f5;\n\tborder: 1px solid #e3e3e3 !important;\n\tborder-radius: 4px;\n\t-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\tbox-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\toverflow-x: hidden;\n\toverflow-y: hidden;\n}\n\n.scrollable {\n overflow: scroll;\n}\n\nprogress {\n\tappearance: none;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\n\tborder: none;\n\theight: 20px;\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n\tcolor: royalblue;\n\tposition: relative;\n\tmargin: 0 0 1.5em;\n}\n\nprogress[value]::-webkit-progress-bar {\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n}\n\nprogress[value]::-webkit-progress-value {\n\tposition: relative;\n\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress.active:not([value])::before {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress[value]::-moz-progress-bar {\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress:not([value])::-moz-progress-bar {\n\tborder-radius:3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n\n}\n\nprogress.active:not([value])::-moz-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.active:not([value])::-webkit-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.primary[value]::-webkit-progress-value { background-color: #007bff; }\nprogress.primary:not([value])::before { background-color: #007bff; }\nprogress.primary:not([value])::-webkit-progress-bar { background-color: #007bff; }\nprogress.primary::-moz-progress-bar { background-color: #007bff; }\n\nprogress.secondary[value]::-webkit-progress-value { background-color: #6c757d; }\nprogress.secondary:not([value])::before { background-color: #6c757d; }\nprogress.secondary:not([value])::-webkit-progress-bar { background-color: #6c757d; }\nprogress.secondary::-moz-progress-bar { background-color: #6c757d; }\n\nprogress.success[value]::-webkit-progress-value { background-color: #28a745; }\nprogress.success:not([value])::before { background-color: #28a745; }\nprogress.success:not([value])::-webkit-progress-bar { background-color: #28a745; }\nprogress.success::-moz-progress-bar { background-color: #28a745; }\n\nprogress.danger[value]::-webkit-progress-value { background-color: #dc3545; }\nprogress.danger:not([value])::before { background-color: #dc3545; }\nprogress.danger:not([value])::-webkit-progress-bar { background-color: #dc3545; }\nprogress.danger::-moz-progress-bar { background-color: #dc3545; }\n\nprogress.warning[value]::-webkit-progress-value { background-color: #ffc107; }\nprogress.warning:not([value])::before { background-color: #ffc107; }\nprogress.warning:not([value])::-webkit-progress-bar { background-color: #ffc107; }\nprogress.warning::-moz-progress-bar { background-color: #ffc107; }\n\nprogress.info[value]::-webkit-progress-value { background-color: #17a2b8; }\nprogress.info:not([value])::before { background-color: #17a2b8; }\nprogress.info:not([value])::-webkit-progress-bar { background-color: #17a2b8; }\nprogress.info::-moz-progress-bar { background-color: #17a2b8; }\n\nprogress.light[value]::-webkit-progress-value { background-color: #f8f9fa; }\nprogress.light:not([value])::before { background-color: #f8f9fa; }\nprogress.light:not([value])::-webkit-progress-bar { background-color: #f8f9fa; }\nprogress.light::-moz-progress-bar { background-color: #f8f9fa; }\n\nprogress.dark[value]::-webkit-progress-value { background-color: #343a40; }\nprogress.dark:not([value])::-webkit-progress-bar { background-color: #343a40; }\nprogress.dark:not([value])::before { background-color: #343a40; }\nprogress.dark::-moz-progress-bar { background-color: #343a40; }\n\nprogress:not([value])::-webkit-progress-bar {\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\nprogress:not([value])::before {\n\tcontent:\" \";\n\tposition:absolute;\n\theight: 20px;\n\ttop:0;\n\tleft:0;\n\tright:0;\n\tbottom:0;\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\n\n@keyframes stripes {\n from {background-position: 0%}\n to {background-position: 100%}\n}");n },n function(Bokeh) {n inject_raw_css(".codehilite .hll { background-color: #ffffcc }\n.codehilite { background: #f8f8f8; }\n.codehilite .c { color: #408080; font-style: italic } /* Comment /\n.codehilite .err { border: 1px solid #FF0000 } / Error /\n.codehilite .k { color: #008000; font-weight: bold } / Keyword /\n.codehilite .o { color: #666666 } / Operator /\n.codehilite .ch { color: #408080; font-style: italic } / Comment.Hashbang /\n.codehilite .cm { color: #408080; font-style: italic } / Comment.Multiline /\n.codehilite .cp { color: #BC7A00 } / Comment.Preproc /\n.codehilite .cpf { color: #408080; font-style: italic } / Comment.PreprocFile /\n.codehilite .c1 { color: #408080; font-style: italic } / Comment.Single /\n.codehilite .cs { color: #408080; font-style: italic } / Comment.Special /\n.codehilite .gd { color: #A00000 } / Generic.Deleted /\n.codehilite .ge { font-style: italic } / Generic.Emph /\n.codehilite .gr { color: #FF0000 } / Generic.Error /\n.codehilite .gh { color: #000080; font-weight: bold } / Generic.Heading /\n.codehilite .gi { color: #00A000 } / Generic.Inserted /\n.codehilite .go { color: #888888 } / Generic.Output /\n.codehilite .gp { color: #000080; font-weight: bold } / Generic.Prompt /\n.codehilite .gs { font-weight: bold } / Generic.Strong /\n.codehilite .gu { color: #800080; font-weight: bold } / Generic.Subheading /\n.codehilite .gt { color: #0044DD } / Generic.Traceback /\n.codehilite .kc { color: #008000; font-weight: bold } / Keyword.Constant /\n.codehilite .kd { color: #008000; font-weight: bold } / Keyword.Declaration /\n.codehilite .kn { color: #008000; font-weight: bold } / Keyword.Namespace /\n.codehilite .kp { color: #008000 } / Keyword.Pseudo /\n.codehilite .kr { color: #008000; font-weight: bold } / Keyword.Reserved /\n.codehilite .kt { color: #B00040 } / Keyword.Type /\n.codehilite .m { color: #666666 } / Literal.Number /\n.codehilite .s { color: #BA2121 } / Literal.String /\n.codehilite .na { color: #7D9029 } / Name.Attribute /\n.codehilite .nb { color: #008000 } / Name.Builtin /\n.codehilite .nc { color: #0000FF; font-weight: bold } / Name.Class /\n.codehilite .no { color: #880000 } / Name.Constant /\n.codehilite .nd { color: #AA22FF } / Name.Decorator /\n.codehilite .ni { color: #999999; font-weight: bold } / Name.Entity /\n.codehilite .ne { color: #D2413A; font-weight: bold } / Name.Exception /\n.codehilite .nf { color: #0000FF } / Name.Function /\n.codehilite .nl { color: #A0A000 } / Name.Label /\n.codehilite .nn { color: #0000FF; font-weight: bold } / Name.Namespace /\n.codehilite .nt { color: #008000; font-weight: bold } / Name.Tag /\n.codehilite .nv { color: #19177C } / Name.Variable /\n.codehilite .ow { color: #AA22FF; font-weight: bold } / Operator.Word /\n.codehilite .w { color: #bbbbbb } / Text.Whitespace /\n.codehilite .mb { color: #666666 } / Literal.Number.Bin /\n.codehilite .mf { color: #666666 } / Literal.Number.Float /\n.codehilite .mh { color: #666666 } / Literal.Number.Hex /\n.codehilite .mi { color: #666666 } / Literal.Number.Integer /\n.codehilite .mo { color: #666666 } / Literal.Number.Oct /\n.codehilite .sa { color: #BA2121 } / Literal.String.Affix /\n.codehilite .sb { color: #BA2121 } / Literal.String.Backtick /\n.codehilite .sc { color: #BA2121 } / Literal.String.Char /\n.codehilite .dl { color: #BA2121 } / Literal.String.Delimiter /\n.codehilite .sd { color: #BA2121; font-style: italic } / Literal.String.Doc /\n.codehilite .s2 { color: #BA2121 } / Literal.String.Double /\n.codehilite .se { color: #BB6622; font-weight: bold } / Literal.String.Escape /\n.codehilite .sh { color: #BA2121 } / Literal.String.Heredoc /\n.codehilite .si { color: #BB6688; font-weight: bold } / Literal.String.Interpol /\n.codehilite .sx { color: #008000 } / Literal.String.Other /\n.codehilite .sr { color: #BB6688 } / Literal.String.Regex /\n.codehilite .s1 { color: #BA2121 } / Literal.String.Single /\n.codehilite .ss { color: #19177C } / Literal.String.Symbol /\n.codehilite .bp { color: #008000 } / Name.Builtin.Pseudo /\n.codehilite .fm { color: #0000FF } / Name.Function.Magic /\n.codehilite .vc { color: #19177C } / Name.Variable.Class /\n.codehilite .vg { color: #19177C } / Name.Variable.Global /\n.codehilite .vi { color: #19177C } / Name.Variable.Instance /\n.codehilite .vm { color: #19177C } / Name.Variable.Magic /\n.codehilite .il { color: #666666 } / Literal.Number.Integer.Long /\n\n.markdown h1 { margin-block-start: 0.34em }\n.markdown h2 { margin-block-start: 0.42em }\n.markdown h3 { margin-block-start: 0.5em }\n.markdown h4 { margin-block-start: 0.67em }\n.markdown h5 { margin-block-start: 0.84em }\n.markdown h6 { margin-block-start: 1.17em }\n.markdown ul { padding-inline-start: 2em }\n.markdown ol { padding-inline-start: 2em }\n.markdown strong { font-weight: 600 }\n.markdown a { color: -webkit-link }\n.markdown a { color: -moz-hyperlinkText }\n");n },n function(Bokeh) {n inject_raw_css(".json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n");n },n function(Bokeh) {n inject_raw_css("table.panel-df {\n margin-left: auto;\n margin-right: auto;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n color: black;\n font-size: 12px;\n table-layout: fixed;\n width: 100%;\n}\n\n.panel-df tr, th, td {\n text-align: right;\n vertical-align: middle;\n padding: 0.5em 0.5em !important;\n line-height: normal;\n white-space: normal;\n max-width: none;\n border: none;\n}\n\n.panel-df tbody {\n display: table-row-group;\n vertical-align: middle;\n border-color: inherit;\n}\n\n.panel-df tbody tr:nth-child(odd) {\n background: #f5f5f5;\n}\n\n.panel-df thead {\n border-bottom: 1px solid black;\n vertical-align: bottom;\n}\n\n.panel-df tr:hover {\n background: lightblue !important;\n cursor: pointer;\n}\n");n },n function(Bokeh) {n / BEGIN bokeh.min.js /n /!n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn * All rights reserved.n * n * Redistribution and use in source and binary forms, with or without modification,n * are permitted provided that the following conditions are met:n * n * Redistributions of source code must retain the above copyright notice,n * this list of conditions and the following disclaimer.n * n * Redistributions in binary form must reproduce the above copyright notice,n * this list of conditions and the following disclaimer in the documentationn * and/or other materials provided with the distribution.n * n * Neither the name of Anaconda nor the names of any contributorsn * may be used to endorse or promote products derived from this softwaren * without specific prior written permission.n * n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn * THE POSSIBILITY OF SUCH DAMAGE.n /n (function(root, factory) {n const bokeh = factory();n if (root.Bokeh === undefined) {n root.Bokeh = bokeh;n }n const Bokeh = root.Bokeh;n Bokeh[bokeh.version] = bokeh;n })(this, function() {n var define;n var parent_require = typeof require === "function" && requiren return (function(modules, entry, aliases, externals) {n if (aliases === undefined) aliases = {};n if (externals === undefined) externals = {};nn var cache = {};nn var normalize = function(name) {n if (typeof name === "number")n return name;nn if (name === "bokehjs")n return entry;nn var prefix = "@bokehjs/"n if (name.slice(0, prefix.length) === prefix)n name = name.slice(prefix.length)nn var alias = aliases[name]n if (alias != null)n return alias;nn var trailing = name.length > 0 && name[name.lenght-1] === "/";n var index = aliases[name + (trailing ? "" : "/") + "index"];n if (index != null)n return index;nn return name;n }nn var require = function(name) {n var mod = cache[name];n if (!mod) {n var id = normalize(name);nn mod = cache[id];n if (!mod) {n if (!modules[id]) {n if (externals[id] === false || (externals[id] == true && parent_require)) {n try {n mod = {exports: externals[id] ? parent_require(id) : {}};n cache[id] = cache[name] = mod;n return mod.exports;n } catch (e) {}n }nn var err = new Error("Cannot find module ‘" + name + "’");n err.code = ‘MODULE_NOT_FOUND’;n throw err;n }nn mod = {exports: {}};n cache[id] = cache[name] = mod;n modules[id].call(mod.exports, require, mod, mod.exports);n } elsen cache[name] = mod;n }nn return mod.exports;n }nn var main = require(entry);n main.require = require;nn if (typeof Proxy !== "undefined") {n // allow Bokeh.loader["@bokehjs/module/name"] syntaxn main.loader = new Proxy({}, {n get: function(_obj, module) {n return require(module);n }n });n }nn main.register_plugin = function(plugin_modules, plugin_entry, plugin_aliases, plugin_externals) {n if (plugin_aliases === undefined) plugin_aliases = {};n if (plugin_externals === undefined) plugin_externals = {};nn for (var name in plugin_modules) {n modules[name] = plugin_modules[name];n }nn for (var name in plugin_aliases) {n aliases[name] = plugin_aliases[name];n }nn for (var name in plugin_externals) {n externals[name] = plugin_externals[name];n }nn var plugin = require(plugin_entry);nn for (var name in plugin) {n main[name] = plugin[name];n }nn return plugin;n }nn return main;n })n ([n function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0}),e(1).__exportStar(e(2),_)},n function _(t,e,n){n /! *************************************************************************n Copyright (c) Microsoft Corporation. All rights reserved.n Licensed under the Apache License, Version 2.0 (the "License"); you may not usen this file except in compliance with the License. You may obtain a copy of then License at http://www.apache.org/licenses/LICENSE-2.0n n THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYn KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDn WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,n MERCHANTABLITY OR NON-INFRINGEMENT.n n See the Apache Version 2.0 License for specific language governing permissionsn and limitations under the License.n ************************************************************************* /n Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(void 0===e||e– >0)&&!(r=a.next()).done;)i.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function i(t){return this instanceof i?(this.v=t,this):new i(t)}n.__extends=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.__assign=function(){return n.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.__assign.apply(this,arguments)},n.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},n.__decorate=function(t,e,n,r){var o,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u–)(o=t[u])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i},n.__param=function(t,e){return function(n,r){e(n,r,t)}},n.__metadata=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(o,a){function i(t){try{c(r.next(t))}catch(t){a(t)}}function u(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((r=r.apply(t,e||[])).next())}))},n.__generator=function(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},n.__exportStar=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},n.__values=o,n.__read=a,n.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t},n.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var a=arguments[e],i=0,u=a.length;i<u;i++,o++)r[o]=a[i];return r},n.__await=i,n.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),a=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||c(t,e)}))})}function c(t,e){try{(n=o[t](e)).value instanceof i?Promise.resolve(n.value.v).then(f,l):s(a[0][2],n)}catch(t){s(a[0][3],t)}var n}function f(t){c("next",t)}function l(t){c("throw",t)}function s(t,e){t(e),a.shift(),a.length&&c(a[0][0],a[0][1])}},n.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:i(t[r](e)),done:"return"===r}:o?o(e):e}:o}},n.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=o(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}},n.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},n.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},n.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},n.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},n.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},n function _(e,r,t){var l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r};Object.defineProperty(t,"__esModule",{value:!0});var o=e(3);t.version=o.version;var s=e(4);t.index=s.index,t.embed=l(e(4)),t.protocol=l(e(354)),t._testing=l(e(355));var n=e(70);t.logger=n.logger,t.set_log_level=n.set_log_level;var a=e(23);t.settings=a.settings;var i=e(7);t.Models=i.Models;var v=e(5);t.documents=v.documents;var _=e(356);t.safely=_.safely},n function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.version="2.0.2"},n function _(e,o,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(5),s=e(70),d=e(26),r=e(8),_=e(17),c=e(345),i=e(347),a=e(346);var u=e(345);n.add_document_standalone=u.add_document_standalone,n.index=u.index;var l=e(347);n.add_document_from_session=l.add_document_from_session;var m=e(352);n.embed_items_notebook=m.embed_items_notebook,n.kernels=m.kernels;var f=e(346);async function g(e,o,n,_){r.isString(e)&&(e=JSON.parse(d.unescape(e)));const u={};for(const o in e){const n=e[o];u[o]=t.Document.from_json(n)}const l=[];for(const e of o){const o=a._resolve_element(e),t=a._resolve_root_elements(e);if(null!=e.docid)l.push(await c.add_document_standalone(u[e.docid],o,t,e.use_for_title));else{if(null==e.token)throw new Error("Error rendering Bokeh items: either ‘docid’ or ‘token’ was expected.");{const d=i._get_ws_url(n,_);s.logger.debug(`embed: computed ws url: ${d}`);try{l.push(await i.add_document_from_session(d,e.token,o,t,e.use_for_title)),console.log("Bokeh items were rendered successfully")}catch(e){console.log("Error rendering Bokeh items:",e)}}}}return l}n.BOKEH_ROOT=f.BOKEH_ROOT,n.embed_item=async function(e,o){const n={},t=d.uuid4();n[t]=e.doc,null==o&&(o=e.target_id);const s=document.getElementById(o);null!=s&&s.classList.add(a.BOKEH_ROOT);const r={roots:{[e.root_id]:o},root_ids:[e.root_id],docid:t},[c]=await _.defer(()=>g(n,[r]));return c},n.embed_items=async function(e,o,n,t){return await _.defer(()=>g(e,o,n,t))}},n function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const o=e(1);o.__exportStar(e(6),_),o.__exportStar(e(103),_)},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(7),n=e(3),i=e(70),r=e(281),_=e(13),l=e(14),a=e(25),c=e(100),d=e(15),h=e(9),f=e(24),u=e(16),m=e(8),g=e(244),v=e(73),p=e(69),w=e(103);class b{constructor(e){this.document=e,this.session=null,this.subscribed_models=new Set}send_event(e){const t=new w.MessageSentEvent(this.document,"bokeh_event",e.to_json());this.document._trigger_on_change(t)}trigger(e){for(const t of this.subscribed_models){if(null!=e.origin&&e.origin.id!==t)continue;const s=this.document._all_models[t];null!=s&&s instanceof p.Model&&s._process_event(e)}}}s.EventManager=b,b.__name__="EventManager",s.documents=[],s.DEFAULT_TITLE="Bokeh Application";class y{constructor(){s.documents.push(this),this._init_timestamp=Date.now(),this._title=s.DEFAULT_TITLE,this._roots=[],this._all_models={},this._all_models_by_name=new d.MultiDict,this._all_models_freeze_count=0,this._callbacks=[],this._message_callbacks=new Map,this.event_manager=new b(this),this.idle=new l.Signal0(this,"idle"),this._idle_roots=new WeakMap,this._interactive_timestamp=null,this._interactive_plot=null}get layoutables(){return this._roots.filter(e=>e instanceof g.LayoutDOM)}get is_idle(){for(const e of this.layoutables)if(!this._idle_roots.has(e))return!1;return!0}notify_idle(e){this._idle_roots.set(e,!0),this.is_idle&&(i.logger.info(`document idle at ${Date.now()-this._init_timestamp} ms`),this.idle.emit())}clear(){this._push_all_models_freeze();try{for(;this._roots.length>0;)this.remove_root(this._roots[0])}finally{this._pop_all_models_freeze()}}interactive_start(e){null==this._interactive_plot&&(this._interactive_plot=e,this._interactive_plot.trigger_event(new r.LODStart)),this._interactive_timestamp=Date.now()}interactive_stop(e){null!=this._interactive_plot&&this._interactive_plot.id===e.id&&this._interactive_plot.trigger_event(new r.LODEnd),this._interactive_plot=null,this._interactive_timestamp=null}interactive_duration(){return null==this._interactive_timestamp?-1:Date.now()-this._interactive_timestamp}destructively_move(e){if(e===this)throw new Error("Attempted to overwrite a document with itself");e.clear();const t=h.copy(this._roots);this.clear();for(const e of t)if(null!=e.document)throw new Error(`Somehow we didn’t detach ${e}`);if(0!==Object.keys(this._all_models).length)throw new Error(`this._all_models still had stuff in it: ${this._all_models}`);for(const s of t)e.add_root(s);e.set_title(this._title)}_push_all_models_freeze(){this._all_models_freeze_count+=1}_pop_all_models_freeze(){this._all_models_freeze_count-=1,0===this._all_models_freeze_count&&this._recompute_all_models()}_invalidate_all_models(){i.logger.debug("invalidating document models"),0===this._all_models_freeze_count&&this._recompute_all_models()}_recompute_all_models(){let e=new d.Set;for(const t of this._roots)e=e.union(t.references());const t=new d.Set(f.values(this._all_models)),s=t.diff(e),o=e.diff(t),n={};for(const t of e.values)n[t.id]=t;for(const e of s.values)e.detach_document(),e instanceof p.Model&&null!=e.name&&this._all_models_by_name.remove_value(e.name,e);for(const e of o.values)e.attach_document(this),e instanceof p.Model&&null!=e.name&&this._all_models_by_name.add_value(e.name,e);this._all_models=n}roots(){return this._roots}add_root(e,t){if(i.logger.debug(`Adding root: ${e}`),!h.includes(this._roots,e)){this._push_all_models_freeze();try{this._roots.push(e)}finally{this._pop_all_models_freeze()}this._trigger_on_change(new w.RootAddedEvent(this,e,t))}}remove_root(e,t){const s=this._roots.indexOf(e);if(!(s<0)){this._push_all_models_freeze();try{this._roots.splice(s,1)}finally{this._pop_all_models_freeze()}this._trigger_on_change(new w.RootRemovedEvent(this,e,t))}}title(){return this._title}set_title(e,t){e!==this._title&&(this._title=e,this._trigger_on_change(new w.TitleChangedEvent(this,e,t)))}get_model_by_id(e){return e in this._all_models?this._all_models[e]:null}get_model_by_name(e){return this._all_models_by_name.get_one(e,`Multiple models are named ‘${e}’`)}on_message(e,t){const s=this._message_callbacks.get(e);null==s?this._message_callbacks.set(e,new Set([t])):s.add(t)}remove_on_message(e,t){var s;null===(s=this._message_callbacks.get(e))||void 0===s||s.delete(t)}_trigger_on_message(e,t){const s=this._message_callbacks.get(e);if(null!=s)for(const e of s)e(t)}on_change(e){h.includes(this._callbacks,e)||this._callbacks.push(e)}remove_on_change(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}_trigger_on_change(e){for(const t of this._callbacks)t(e)}_notify_change(e,t,s,o,n){"name"===t&&(this._all_models_by_name.remove_value(s,e),null!=o&&this._all_models_by_name.add_value(o,e));const i=null!=n?n.setter_id:void 0,r=null!=n?n.hint:void 0;this._trigger_on_change(new w.ModelChangedEvent(this,e,t,s,o,i,r))}static _references_json(e,t=!0){const s=[];for(const o of e){const e=o.struct();e.attributes=o.attributes_as_json(t),delete e.attributes.id,s.push(e)}return s}static _instantiate_object(e,t,s){const n=Object.assign(Object.assign({},s),{id:e,__deferred__:!0});return new(o.Models(t))(n)}static _instantiate_references_json(e,t){const s={};for(const o of e){const e=o.id,n=o.type,i=o.attributes||{};let r;e in t?r=t[e]:(r=y._instantiate_object(e,n,i),null!=o.subtype&&r.set_subtype(o.subtype)),s[r.id]=r}return s}static _resolve_refs(e,t,s){function o(e){if(a.is_ref(e)){if(e.id in t)return t[e.id];if(e.id in s)return s[e.id];throw new Error(`reference ${JSON.stringify(e)} isn’t known (not in Document?)`)}return m.isArray(e)?function(e){const t=[];for(const s of e)t.push(o(s));return t}(e):m.isPlainObject(e)?function(e){const t={};for(const s in e){const n=e[s];t[s]=o(n)}return t}(e):e}return o(e)}static _initialize_references_json(e,t,s){const o={};for(const n of e){const e=n.id,i=n.attributes,r=!(e in t),_=r?s[e]:t[e],l=y._resolve_refs(i,t,s);o[_.id]=[_,l,r]}function n(e,t){const s={};function o(n){if(n instanceof _.HasProps){if(!(n.id in s)&&n.id in e){s[n.id]=!0;const[,i,r]=e[n.id];for(const e in i){o(i[e])}t(n,i,r)}}else if(m.isArray(n))for(const e of n)o(e);else if(m.isPlainObject(n))for(const e in n){o(n[e])}}for(const t in e){const[s,,]=e[t];o(s)}}n(o,(function(e,t,s){s&&e.setv(t,{silent:!0})})),n(o,(function(e,t,s){s&&e.finalize()}))}static _event_for_attribute_change(e,t,s,o,n){if(o.get_model_by_id(e.id).attribute_is_serializable(t)){const i={kind:"ModelChanged",model:{id:e.id},attr:t,new:s};return _.HasProps._json_record_references(o,s,n,!0),i}return null}static _events_to_sync_objects(e,t,s,o){const n=Object.keys(e.attributes),r=Object.keys(t.attributes),_=h.difference(n,r),l=h.difference(r,n),a=h.intersection(n,r),c=[];for(const e of _)i.logger.warn(`Server sent key ${e} but we don’t seem to have it in our JSON`);for(const n of l){const i=t.attributes[n];c.push(y._event_for_attribute_change(e,n,i,s,o))}for(const n of a){const i=e.attributes[n],r=t.attributes[n];null==i&&null==r||(null==i||null==r?c.push(y._event_for_attribute_change(e,n,r,s,o)):u.isEqual(i,r)||c.push(y._event_for_attribute_change(e,n,r,s,o)))}return c.filter(e=>null!=e)}static _compute_patch_since_json(e,t){const s=t.to_json(!1);function o(e){const t={};for(const s of e.roots.references)t[s.id]=s;return t}const n=o(e),i={},r=[];for(const t of e.roots.root_ids)i[t]=n[t],r.push(t);const _=o(s),l={},a=[];for(const e of s.roots.root_ids)l[e]=_[e],a.push(e);if(r.sort(),a.sort(),h.difference(r,a).length>0||h.difference(a,r).length>0)throw new Error("Not implemented: computing add/remove of document roots");const c={};let d=[];for(const e in t._all_models)if(e in n){const s=y._events_to_sync_objects(n[e],_[e],t,c);d=d.concat(s)}return{references:y._references_json(f.values(c),!1),events:d}}to_json_string(e=!0){return JSON.stringify(this.to_json(e))}to_json(e=!0){const t=this._roots.map(e=>e.id),s=f.values(this._all_models);return{version:n.version,title:this._title,roots:{root_ids:t,references:y._references_json(s,e)}}}static from_json_string(e){const t=JSON.parse(e);return y.from_json(t)}static from_json(e){i.logger.debug("Creating Document from JSON");const t=e.version,s=-1!==t.indexOf("+")||-1!==t.indexOf("-"),o=`Library versions: JS (${n.version}) / Python (${t})`;s||n.version.replace(/-(dev|rc)\./,"$1")==t?i.logger.debug(o):(i.logger.warn("JS/Python version mismatch"),i.logger.warn(o));const r=e.roots,_=r.root_ids,l=r.references,a=y._instantiate_references_json(l,{});y._initialize_references_json(l,{},a);const c=new y;for(const e of _)c.add_root(a[e]);return c.set_title(e.title),c}replace_with_json(e){y.from_json(e).destructively_move(this)}create_json_patch_string(e){return JSON.stringify(this.create_json_patch(e))}create_json_patch(e){const t={},s=[];for(const o of e){if(o.document!==this)throw i.logger.warn("Cannot create a patch using events from a different document, event had ",o.document," we are ",this),new Error("Cannot create a patch using events from a different document");s.push(o.json(t))}return{events:s,references:y._references_json(f.values(t))}}apply_json_patch(e,t=[],s){const o=e.references,n=e.events,r=y._instantiate_references_json(o,this._all_models);for(const e of n)switch(e.kind){case"RootAdded":case"RootRemoved":case"ModelChanged":{const t=e.model.id;if(t in this._all_models)r[t]=this._all_models[t];else if(!(t in r))throw i.logger.warn("Got an event for unknown model ",e.model),new Error("event model wasn’t known");break}}const _={},l={};for(const e in r){const t=r[e];e in this._all_models?_[e]=t:l[e]=t}y._initialize_references_json(o,_,l);for(const e of n)switch(e.kind){case"MessageSent":{const{msg_type:s,msg_data:o}=e;let n;if(void 0===o){if(1!=t.length)throw new Error("expected exactly one buffer");{const[[,e]]=t;n=e}}else n=y._resolve_refs(o,_,l);this._trigger_on_message(s,n);break}case"ModelChanged":{const o=e.model.id;if(!(o in this._all_models))throw new Error(`Cannot apply patch to ${o} which is not in the document`);const n=this._all_models[o],i=e.attr;if("data"===i&&"ColumnDataSource"===n.type){const[o,i]=c.decode_column_data(e.new,t);n.setv({_shapes:i,data:o},{setter_id:s})}else{const t=y._resolve_refs(e.new,_,l);n.setv({[i]:t},{setter_id:s})}break}case"ColumnDataChanged":{const o=e.column_source.id;if(!(o in this._all_models))throw new Error(`Cannot stream to ${o} which is not in the document`);const n=this._all_models[o],[i,r]=c.decode_column_data(e.new,t);if(null!=e.cols){for(const e in n.data)e in i||(i[e]=n.data[e]);for(const e in n._shapes)e in r||(r[e]=n._shapes[e])}n.setv({_shapes:r,data:i},{setter_id:s,check_eq:!1});break}case"ColumnsStreamed":{const t=e.column_source.id;if(!(t in this._all_models))throw new Error(`Cannot stream to ${t} which is not in the document`);const o=this._all_models[t];if(!(o instanceof v.ColumnDataSource))throw new Error("Cannot stream to non-ColumnDataSource");const n=e.data,i=e.rollover;o.stream(n,i,s);break}case"ColumnsPatched":{const t=e.column_source.id;if(!(t in this._all_models))throw new Error(`Cannot patch ${t} which is not in the document`);const o=this._all_models[t];if(!(o instanceof v.ColumnDataSource))throw new Error("Cannot patch non-ColumnDataSource");const n=e.patches;o.patch(n,s);break}case"RootAdded":{const t=r[e.model.id];this.add_root(t,s);break}case"RootRemoved":{const t=r[e.model.id];this.remove_root(t,s);break}case"TitleChanged":this.set_title(e.title,s);break;default:throw new Error("Unknown patch event "+JSON.stringify(e))}}}s.Document=y,y.__name__="Document"},n function _(e,r,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(1),t=e(8),d=e(13);s.overrides={};const i=new Map;s.Models=e=>{const r=s.overrides[e]||i.get(e);if(null==r)throw new Error(`Model ‘${e}’ does not exist. This could be due to a widget or a custom model not being registered before first usage.`);return r},s.Models.register=(e,r)=>{s.overrides[e]=r},s.Models.unregister=e=>{delete s.overrides[e]},s.Models.register_models=(e,r=!1,s)=>{var o;if(null!=e)for(const l in e){const n=e[l];if(o=n,t.isObject(o)&&o.prototype instanceof d.HasProps){const e=n.__qualified__;r||!i.has(e)?i.set(e,n):null!=s?s(e):console.warn(`Model ‘${e}’ was already registered`)}}},s.register_models=s.Models.register_models,s.Models.registered_names=()=>Array.from(i.keys());const l=o.__importStar(e(27));s.register_models(l)},n function _(n,t,r){Object.defineProperty(r,"__esModule",{value:!0});n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n const e=n(9),o=Object.prototype.toString;function i(n){return"[object Number]"===o.call(n)}function u(n){const t=typeof n;return"function"===t||"object"===t&&!!n}r.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===o.call(n)},r.isNumber=i,r.isInteger=function(n){return i(n)&&isFinite(n)&&Math.floor(n)===n},r.isString=function(n){return"[object String]"===o.call(n)},r.isStrictNaN=function(n){return i(n)&&n!==+n},r.isFunction=function(n){return"[object Function]"===o.call(n)},r.isArray=function(n){return Array.isArray(n)},r.isArrayOf=function(n,t){return e.every(n,t)},r.isArrayableOf=function(n,t){for(let r=0,e=n.length;r<e;r++)if(!t(n[r]))return!1;return!0},r.isTypedArray=function(n){return null!=n&&n.buffer instanceof ArrayBuffer},r.isObject=u,r.isPlainObject=function(n){return u(n)&&(null==n.constructor||n.constructor===Object)}},n function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n const r=n(10),o=n(11),i=n(12);e.map=i.map,e.reduce=i.reduce,e.min=i.min,e.min_by=i.min_by,e.max=i.max,e.max_by=i.max_by,e.sum=i.sum,e.cumsum=i.cumsum,e.every=i.every,e.some=i.some,e.find=i.find,e.find_last=i.find_last,e.find_index=i.find_index,e.find_last_index=i.find_last_index,e.sorted_index=i.sorted_index;const u=Array.prototype.slice;function c(n){return u.call(n)}function f(n){return[].concat(…n)}function s(n,t){return-1!==n.indexOf(t)}function l(n,t,e=1){o.assert(e>0,"’step’ must be a positive number"),null==t&&(t=n,n=0);const{max:r,ceil:i,abs:u}=Math,c=n<=t?e:-e,f=r(i(u(t-n)/e),0),s=Array(f);for(let t=0;t<f;t++,n+=c)s[t]=n;return s}function a(n){const t=[];for(const e of n)s(t,e)||t.push(e);return t}e.head=function(n){return n[0]},e.tail=function(n){return n[n.length-1]},e.last=function(n){return n[n.length-1]},e.copy=c,e.concat=f,e.includes=s,e.contains=s,e.nth=function(n,t){return n[t>=0?t:n.length+t]},e.zip=function(…n){if(0==n.length)return[];const t=i.min(n.map(n=>n.length)),e=n.length,r=new Array(t);for(let o=0;o<t;o++){r[o]=new Array(e);for(let t=0;t<e;t++)r[o][t]=n[t][o]}return r},e.unzip=function(n){const t=n.length,e=i.min(n.map(n=>n.length)),r=Array(e);for(let n=0;n<e;n++)r[n]=new Array(t);for(let o=0;o<t;o++)for(let t=0;t<e;t++)r[t][o]=n[o][t];return r},e.range=l,e.linspace=function(n,t,e=100){const r=(t-n)/(e-1),o=new Array(e);for(let t=0;t<e;t++)o[t]=n+r*t;return o},e.transpose=function(n){const t=n.length,e=n[0].length,r=[];for(let o=0;o<e;o++){r[o]=[];for(let e=0;e<t;e++)r[o][e]=n[e][o]}return r},e.argmin=function(n){return i.min_by(l(n.length),t=>n[t])},e.argmax=function(n){return i.max_by(l(n.length),t=>n[t])},e.sort_by=function(n,t){const e=n.map((n,e)=>({value:n,index:e,key:t(n)}));return e.sort((n,t)=>{const e=n.key,r=t.key;if(e!==r){if(e>r||void 0===e)return 1;if(e<r||void 0===r)return-1}return n.index-t.index}),e.map(n=>n.value)},e.uniq=a,e.uniq_by=function(n,t){const e=[],r=[];for(const o of n){const n=t(o);s(r,n)||(r.push(n),e.push(o))}return e},e.union=function(…n){return a(f(n))},e.intersection=function(n,…t){const e=[];n:for(const r of n)if(!s(e,r)){for(const n of t)if(!s(n,r))continue n;e.push(r)}return e},e.difference=function(n,…t){const e=f(t);return n.filter(n=>!s(e,n))},e.remove_at=function(n,t){const e=c(n);return e.splice(t,1),e},e.remove_by=function(n,t){for(let e=0;e<n.length;)t(n[e])?n.splice(e,1):e++},e.shuffle=function(n){const t=n.length,e=new Array(t);for(let o=0;o<t;o++){const t=r.randomIn(0,o);t!==o&&(e[o]=e[t]),e[t]=n[o]}return e},e.pairwise=function(n,t){const e=n.length,r=new Array(e-1);for(let o=0;o<e-1;o++)r[o]=t(n[o],n[o+1]);return r},e.reversed=function(n){const t=n.length,e=new Array(t);for(let r=0;r<t;r++)e[t-r-1]=n[r];return e},e.repeat=function(n,t){const e=new Array(t);for(let r=0;r<t;r++)e[r]=n;return e}},n function _(n,t,r){function e(n){if(0==n)return 0;for(;n<=0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;return n}function o(n,t){return e(n-t)}function a(){return Math.random()}Object.defineProperty(r,"__esModule",{value:!0}),r.angle_norm=e,r.angle_dist=o,r.angle_between=function(n,t,r,a){const u=o(t,r);if(0==u)return!1;if(u==2*Math.PI)return!0;const f=e(n),i=o(t,f)<=u&&o(f,r)<=u;return 0==a?i:!i},r.random=a,r.randomIn=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},r.atan2=function(n,t){return Math.atan2(t[1]-n[1],t[0]-n[0])},r.rnorm=function(n,t){let r,e;for(;r=a(),e=a(),e=(2*e-1)*Math.sqrt(1/Math.E*2),!(-4*r*r*Math.log(r)>=e*e););let o=e/r;return o=n+t*o,o},r.clamp=function(n,t,r){return n>r?r:n<t?t:n}},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});class o extends Error{}n.AssertionError=o,o.__name__="AssertionError",n.assert=function(e,r){if(!(!0===e||!1!==e&&e()))throw new o(null!=r?r:"Assertion failed")},n.unreachable=function(){throw new Error("unreachable code")}},n function _(n,t,e){function r(n,t,e,…r){const o=n.length;t<0&&(t+=o),t<0?t=0:t>o&&(t=o),null==e||e>o-t?e=o-t:e<0&&(e=0);const u=o-e+r.length,i=new n.constructor(u);let f=0;for(;f<t;f++)i[f]=n[f];for(const n of r)i[f++]=n;for(let r=t+e;r<o;r++)i[f++]=n[r];return i}function o(n,t){return r(n,t,n.length-t)}function u(n,t,e){const r=n.length;if(void 0===e&&0==r)throw new Error("can’t reduce an empty array without an initial value");let o,u;for(void 0===e?(o=n[0],u=1):(o=e,u=0);u<r;u++)o=t(o,n[u],u,n);return o}function i(n){return function(t,e){const r=t.length;let o=n>0?0:r-1;for(;o>=0&&o<r;o+=n)if(e(t[o]))return o;return-1}}Object.defineProperty(e,"__esModule",{value:!0}),e.splice=r,e.head=o,e.insert=function(n,t,e){return r(n,e,0,t)},e.append=function(n,t){return r(n,n.length,0,t)},e.prepend=function(n,t){return r(n,0,0,t)},e.indexOf=function(n,t){for(let e=0,r=n.length;e<r;e++)if(n[e]===t)return e;return-1},e.map=function(n,t){const e=n.length,r=new n.constructor(e);for(let o=0;o<e;o++)r[o]=t(n[o],o,n);return r},e.filter=function(n,t){const e=n.length,r=new n.constructor(e);let u=0;for(let o=0;o<e;o++){const e=n[o];t(e,o,n)&&(r[u++]=e)}return o(r,u)},e.reduce=u,e.min=function(n){let t,e=1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],t<e&&(e=t);return e},e.min_by=function(n,t){if(0==n.length)throw new Error("min_by() called with an empty array");let e=n[0],r=t(e);for(let o=1,u=n.length;o<u;o++){const u=n[o],i=t(u);i<r&&(e=u,r=i)}return e},e.max=function(n){let t,e=-1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],t>e&&(e=t);return e},e.max_by=function(n,t){if(0==n.length)throw new Error("max_by() called with an empty array");let e=n[0],r=t(e);for(let o=1,u=n.length;o<u;o++){const u=n[o],i=t(u);i>r&&(e=u,r=i)}return e},e.sum=function(n){let t=0;for(let e=0,r=n.length;e<r;e++)t+=n[e];return t},e.cumsum=function(n){const t=new n.constructor(n.length);return u(n,(n,e,r)=>t[r]=n+e,0),t},e.every=function(n,t){for(let e=0,r=n.length;e<r;e++)if(!t(n[e]))return!1;return!0},e.some=function(n,t){for(let e=0,r=n.length;e<r;e++)if(t(n[e]))return!0;return!1},e.index_of=function(n,t){for(let e=0,r=n.length;e<r;e++)if(n[e]===t)return e;return-1},e.find_index=i(1),e.find_last_index=i(-1),e.find=function(n,t){const r=e.find_index(n,t);return-1==r?void 0:n[r]},e.find_last=function(n,t){const r=e.find_last_index(n,t);return-1==r?void 0:n[r]},e.sorted_index=function(n,t){let e=0,r=n.length;for(;e<r;){const o=Math.floor((e+r)/2);n[o]<t?e=o+1:r=o}return e}},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(14),r=i.__importStar(t(18)),o=t(25),c=i.__importStar(t(19)),a=t(26),_=t(9),l=t(24),h=t(8),p=t(16);class u extends(n.Signalable()){constructor(t={}){super(),this._subtype=void 0,this.document=null,this.destroyed=new n.Signal0(this,"destroyed"),this.change=new n.Signal0(this,"change"),this.transformchange=new n.Signal0(this,"transformchange"),this.attributes={},this.properties={},this._set_after_defaults={},this._pending=!1,this._changing=!1;for(const t in this.props){const{type:e,default_value:s}=this.props[t];if(null==e)throw new Error(`undefined property type for ${this.type}.${t}`);this.properties[t]=new e(this,t,s)}null==t.id&&this.setv({id:a.uniqueId()},{silent:!0});const e=t.__deferred__||!1;e&&delete(t=l.clone(t)).__deferred__,this.setv(t,{silent:!0}),e||this.finalize()}set type(t){console.warn("prototype.type = ‘ModelName’ is deprecated, use static __name__ instead"),this.constructor.__name__=t}get type(){return this.constructor.__qualified__}static get __qualified__(){const{__module__:t,__name__:e}=this;return null!=t?`${t}.${e}`:e}static init_HasProps(){this.prototype.props={},this.prototype.mixins=[],this.define({id:[c.Any]})}static _fix_default(t,e){return void 0===t?void 0:h.isFunction(t)?t:h.isObject(t)?h.isArray(t)?()=>_.copy(t):()=>l.clone(t):()=>t}static define(t){for(const e in t){const s=t[e];if(null!=this.prototype.props[e])throw new Error(`attempted to redefine property ‘${this.prototype.type}.${e}’`);if(null!=this.prototype[e])throw new Error(`attempted to redefine attribute ‘${this.prototype.type}.${e}’`);Object.defineProperty(this.prototype,e,{get(){return this.getv(e)},set(t){return this.setv({[e]:t}),this},configurable:!1,enumerable:!0});const[i,n,r]=s,o={type:i,default_value:this._fix_default(n,e),internal:r||!1},c=l.clone(this.prototype.props);c[e]=o,this.prototype.props=c}}static internal(t){const e={};for(const s in t){const i=t[s],[n,r]=i;e[s]=[n,r,!0]}this.define(e)}static mixin(…t){this.define(r.create(t));const e=this.prototype.mixins.concat(t);this.prototype.mixins=e}static mixins(t){this.mixin(…t)}static override(t){for(const e in t){const s=this._fix_default(t[e],e),i=this.prototype.props[e];if(null==i)throw new Error(`attempted to override nonexistent ‘${this.prototype.type}.${e}’`);const n=l.clone(this.prototype.props);n[e]=Object.assign(Object.assign({},i),{default_value:s}),this.prototype.props=n}}toString(){return`${this.type}(${this.id})`}finalize(){for(const t in this.properties){const e=this.properties[t];e.update(),null!=e.spec.transform&&this.connect(e.spec.transform.change,()=>this.transformchange.emit())}this.initialize(),this.connect_signals()}initialize(){}connect_signals(){}disconnect_signals(){n.Signal.disconnectReceiver(this)}destroy(){this.disconnect_signals(),this.destroyed.emit()}clone(){return new this.constructor(this.attributes)}_setv(t,e){const s=e.check_eq,i=e.silent,n=[],r=this._changing;this._changing=!0;const o=this.attributes;for(const e in t){const i=t[e];!1!==s&&p.isEqual(o[e],i)||n.push(e),o[e]=i}if(!i){n.length>0&&(this._pending=!0);for(let t=0;t<n.length;t++)this.properties[n[t]].change.emit()}if(!r){if(!i&&!e.no_change)for(;this._pending;)this._pending=!1,this.change.emit();this._pending=!1,this._changing=!1}}setv(t,e={}){for(const s in t){if(!t.hasOwnProperty(s))continue;const i=s;if(null==this.props[i])throw new Error(`property ${this.type}.${i} wasn’t declared`);null!=e&&e.defaults||(this._set_after_defaults[s]=!0)}if(!l.isEmpty(t)){const s={};for(const e in t)s[e]=this.getv(e);this._setv(t,e);const i=e.silent;if(null==i||!i)for(const i in t)this._tell_document_about_change(i,s[i],this.getv(i),e)}}getv(t){if(null==this.props[t])throw new Error(`property ${this.type}.${t} wasn’t declared`);return this.attributes[t]}ref(){return{id:this.id}}struct(){const t={type:this.type,id:this.id,attributes:{}};return null!=this._subtype&&(t.subtype=this._subtype),t}set_subtype(t){this._subtype=t}attribute_is_serializable(t){const e=this.props[t];if(null==e)throw new Error(`${this.type}.attribute_is_serializable(‘${t}’): ${t} wasn’t declared`);return!e.internal}serializable_attributes(){const t={};for(const e in this.attributes){const s=this.attributes[e];this.attribute_is_serializable(e)&&(t[e]=s)}return t}static _value_to_json(t,e,s){if(e instanceof u)return e.ref();if(h.isArray(e)){const t=[];for(let s=0;s<e.length;s++){const i=e[s];t.push(u._value_to_json(s.toString(),i,e))}return t}if(h.isPlainObject(e)){const t={};for(const s in e)e.hasOwnProperty(s)&&(t[s]=u._value_to_json(s,e[s],e));return t}return e}attributes_as_json(t=!0,e=u._value_to_json){const s=this.serializable_attributes(),i={};for(const e in s)if(s.hasOwnProperty(e)){const n=s[e];(t||e in this._set_after_defaults)&&(i[e]=n)}return e("attributes",i,this)}static _json_record_references(t,e,s,i){if(null==e);else if(o.is_ref(e)){if(!(e.id in s)){const n=t.get_model_by_id(e.id);u._value_record_references(n,s,i)}}else if(h.isArray(e))for(const n of e)u._json_record_references(t,n,s,i);else if(h.isPlainObject(e))for(const n in e)if(e.hasOwnProperty(n)){const r=e[n];u._json_record_references(t,r,s,i)}}static _value_record_references(t,e,s){if(null==t);else if(t instanceof u){if(!(t.id in e)&&(e[t.id]=t,s)){const s=t._immediate_references();for(const t of s)u._value_record_references(t,e,!0)}}else if(t.buffer instanceof ArrayBuffer);else if(h.isArray(t))for(const i of t)u._value_record_references(i,e,s);else if(h.isPlainObject(t))for(const i in t)if(t.hasOwnProperty(i)){const n=t[i];u._value_record_references(n,e,s)}}_immediate_references(){const t={},e=this.serializable_attributes();for(const s in e){const i=e[s];u._value_record_references(i,t,!1)}return l.values(t)}references(){const t={};return u._value_record_references(this,t,!0),l.values(t)}_doc_attached(){}attach_document(t){if(null!=this.document&&this.document!=t)throw new Error("models must be owned by only a single document");this.document=t,this._doc_attached()}detach_document(){this.document=null}_tell_document_about_change(t,e,s,i){if(this.attribute_is_serializable(t)&&null!=this.document){const n={};u._value_record_references(s,n,!1);const r={};u._value_record_references(e,r,!1);let o=!1;for(const t in n)if(!(t in r)){o=!0;break}if(!o)for(const t in r)if(!(t in n)){o=!0;break}o&&this.document._invalidate_all_models(),this.document._notify_change(this,t,e,s,i)}}materialize_dataspecs(t){const e={};for(const s in this.properties){const i=this.properties[s];if(!(i instanceof c.VectorSpec))continue;if(i.optional&&null==i.spec.value&&!(s in this._set_after_defaults))continue;const n=i.array(t);e[`_${s}`]=n,null!=i.spec.field&&i.spec.field in t._shapes&&(e[`_${s}_shape`]=t._shapes[i.spec.field]),i instanceof c.DistanceSpec&&(e[`max_${s}`]=_.max(n))}return e}}s.HasProps=u,u.init_HasProps()},n function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const s=n(15),l=n(17),i=n(9);class o{constructor(n,t){this.sender=n,this.name=t}connect(n,t=null){r.has(this.sender)||r.set(this.sender,[]);const e=r.get(this.sender);if(null!=g(e,this,n,t))return!1;const s=t||n;u.has(s)||u.set(s,[]);const l=u.get(s),i={signal:this,slot:n,context:t};return e.push(i),l.push(i),!0}disconnect(n,t=null){const e=r.get(this.sender);if(null==e||0===e.length)return!1;const s=g(e,this,n,t);if(null==s)return!1;const l=t||n,i=u.get(l);return s.signal=null,f(e),f(i),!0}emit(n){const t=r.get(this.sender)||[];for(const{signal:e,slot:s,context:l}of t)e===this&&s.call(l,n,this.sender)}}e.Signal=o,o.__name__="Signal";class c extends o{emit(){super.emit(void 0)}}e.Signal0=c,c.__name__="Signal0",function(n){n.disconnectBetween=function(n,t){const e=r.get(n);if(null==e||0===e.length)return;const s=u.get(t);if(null!=s&&0!==s.length){for(const t of s){if(null==t.signal)return;t.signal.sender===n&&(t.signal=null)}f(e),f(s)}},n.disconnectSender=function(n){const t=r.get(n);if(null!=t&&0!==t.length){for(const n of t){if(null==n.signal)return;const t=n.context||n.slot;n.signal=null,f(u.get(t))}f(t)}},n.disconnectReceiver=function(n){const t=u.get(n);if(null!=t&&0!==t.length){for(const n of t){if(null==n.signal)return;const t=n.signal.sender;n.signal=null,f(r.get(t))}f(t)}},n.disconnectAll=function(n){const t=r.get(n);if(null!=t&&0!==t.length){for(const n of t)n.signal=null;f(t)}const e=u.get(n);if(null!=e&&0!==e.length){for(const n of e)n.signal=null;f(e)}}}(o||(e.Signal=o={})),e.Signalable=function(){return class{connect(n,t){return n.connect(t,this)}disconnect(n,t){return n.disconnect(t,this)}}};const r=new WeakMap,u=new WeakMap;function g(n,t,e,s){return i.find(n,n=>n.signal===t&&n.slot===e&&n.context===s)}const a=new s.Set;function f(n){0===a.size&&l.defer(h),a.add(n)}function h(){a.forEach(n=>{i.remove_by(n,n=>null==n.signal)}),a.clear()}},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(9),n=t(16),r=t(8);class o{constructor(){this._dict={}}_existing(t){return t in this._dict?this._dict[t]:null}add_value(t,s){const e=this._existing(t);null==e?this._dict[t]=s:r.isArray(e)?e.push(s):this._dict[t]=[e,s]}remove_value(t,s){const e=this._existing(t);if(r.isArray(e)){const n=i.difference(e,[s]);n.length>0?this._dict[t]=n:delete this._dict[t]}else n.isEqual(e,s)&&delete this._dict[t]}get_one(t,s){const e=this._existing(t);if(r.isArray(e)){if(1===e.length)return e[0];throw new Error(s)}return e}}e.MultiDict=o,o.__name__="MultiDict";class a{constructor(t){if(null==t)this._values=[];else if(t instanceof a)this._values=i.copy(t._values);else{this._values=[];for(const s of t)this.add(s)}}get values(){return i.copy(this._values).sort()}toString(){return`Set([${this.values.join(",")}])`}get size(){return this._values.length}has(t){return-1!==this._values.indexOf(t)}add(t){this.has(t)||this._values.push(t)}remove(t){const s=this._values.indexOf(t);-1!==s&&this._values.splice(s,1)}toggle(t){const s=this._values.indexOf(t);-1===s?this._values.push(t):this._values.splice(s,1)}clear(){this._values=[]}union(t){return t=new a(t),new a(this._values.concat(t._values))}intersect(t){t=new a(t);const s=new a;for(const e of t._values)this.has(e)&&t.has(e)&&s.add(e);return s}diff(t){t=new a(t);const s=new a;for(const e of this._values)t.has(e)||s.add(e);return s}forEach(t,s){for(const e of this._values)t.call(s||this,e,e,this)}}e.Set=a,a.__name__="Set";class h{constructor(t,s,e){this.nrows=t,this.ncols=s,this._matrix=new Array(t);for(let i=0;i<t;i++){this._matrix[i]=new Array(s);for(let t=0;t<s;t++)this._matrix[i][t]=e(i,t)}}at(t,s){return this._matrix[t][s]}map(t){return new h(this.nrows,this.ncols,(s,e)=>t(this.at(s,e),s,e))}apply(t){const s=h.from(t),{nrows:e,ncols:i}=this;if(e==s.nrows&&i==s.ncols)return new h(e,i,(t,e)=>s.at(t,e)(this.at(t,e),t,e));throw new Error("dimensions don’t match")}to_sparse(){const t=[];for(let s=0;s<this.nrows;s++)for(let e=0;e<this.ncols;e++){const i=this._matrix[s][e];t.push([i,s,e])}return t}static from(t){if(t instanceof h)return t;{const s=t.length,e=i.min(t.map(t=>t.length));return new h(s,e,(s,e)=>t[s][e])}}}e.Matrix=h,h.__name__="Matrix"},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n const r=t(8),o=Object.prototype.toString;n.isEqual=function(t,e){return function t(e,n,c,u){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return e===n;const i=o.call(e);if(i!==o.call(n))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:0==+e?1/+e==1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n}const s="[object Array]"===i;if(!s){if("object"!=typeof e||"object"!=typeof n)return!1;const t=e.constructor,o=n.constructor;if(t!==o&&!(r.isFunction(t)&&t instanceof t&&r.isFunction(o)&&o instanceof o)&&"constructor"in e&&"constructor"in n)return!1}u=u||[];let f=(c=c||[]).length;for(;f–;)if(c[f]===e)return u[f]===n;if(c.push(e),u.push(n),s){if(f=e.length,f!==n.length)return!1;for(;f–;)if(!t(e[f],n[f],c,u))return!1}else{const r=Object.keys(e);let o;if(f=r.length,Object.keys(n).length!==f)return!1;for(;f–;)if(o=r[f],!n.hasOwnProperty(o)||!t(e[o],n[o],c,u))return!1}return c.pop(),u.pop(),!0}(t,e)}},n function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.delay=n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n function(n,e){return setTimeout(n,e)};const u="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate;t.defer=function(n){return new Promise(e=>{u(()=>e(n()))})},t.throttle=function(n,e,t={}){let u,o,i,r=null,l=0;const c=function(){l=!1===t.leading?0:Date.now(),r=null,i=n.apply(u,o),r||(u=o=null)};return function(){const a=Date.now();l||!1!==t.leading||(l=a);const f=e-(a-l);return u=this,o=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),l=a,i=n.apply(u,o),r||(u=o=null)):r||!1===t.trailing||(r=setTimeout(c,f)),i}},t.once=function(n){let e,t=!1;return function(){return t||(t=!0,e=n()),e}}},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const l=e(1).__importStar(e(19)),c=e(24);function o(e,t){const n={};for(const l in e){const c=e[l];n[t+l]=c}return n}const a={line_color:[l.ColorSpec,"black"],line_width:[l.NumberSpec,1],line_alpha:[l.NumberSpec,1],line_join:[l.LineJoin,"bevel"],line_cap:[l.LineCap,"butt"],line_dash:[l.Array,[]],line_dash_offset:[l.Number,0]};n.line=(e="")=>o(a,e);const r={fill_color:[l.ColorSpec,"gray"],fill_alpha:[l.NumberSpec,1]};n.fill=(e="")=>o(r,e);const i={hatch_color:[l.ColorSpec,"black"],hatch_alpha:[l.NumberSpec,1],hatch_scale:[l.NumberSpec,12],hatch_pattern:[l.StringSpec,null],hatch_weight:[l.NumberSpec,1],hatch_extra:[l.Any,{}]};n.hatch=(e="")=>o(i,e);const _={text_font:[l.Font,"helvetica"],text_font_size:[l.FontSizeSpec,"16px"],text_font_style:[l.FontStyle,"normal"],text_color:[l.ColorSpec,"#444444"],text_alpha:[l.NumberSpec,1],text_align:[l.TextAlign,"left"],text_baseline:[l.TextBaseline,"bottom"],text_line_height:[l.Number,1.2]};n.text=(e="")=>o(_,e),n.create=function(e){const t={};for(const l of e){const[e,o]=l.split(":");let a;switch(e){case"line":a=n.line;break;case"fill":a=n.fill;break;case"hatch":a=n.hatch;break;case"text":a=n.text;break;default:throw new Error(`Unknown property mixin kind ‘${e}’`)}c.extend(t,a(o))}return t}},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),s=e(14),a=i.__importStar(e(20)),r=e(9),o=e(12),l=e(21),c=e(8),_=e(23);function u(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}function d(e){return c.isPlainObject(e)&&(void 0===e.value?0:1)+(void 0===e.field?0:1)+(void 0===e.expr?0:1)==1}s.Signal,n.isSpec=d;class p extends(s.Signalable()){constructor(e,t,n){super(),this.obj=e,this.attr=t,this.default_value=n,this.optional=!1,this.change=new s.Signal0(this.obj,"change"),this._init(),this.connect(this.change,()=>this._init())}update(){this._init()}init(){}transform(e){return e}validate(e){if(!this.valid(e))throw new Error(`${this.obj.type}.${this.attr} given invalid value: ${u(e)}`)}valid(e){return!0}value(e=!0){if(void 0===this.spec.value)throw new Error("attempted to retrieve property value for property without value specification");let t=this.transform([this.spec.value])[0];return null!=this.spec.transform&&e&&(t=this.spec.transform.compute(t)),t}_init(){const e=this.obj,t=this.attr;let n=e.getv(t);if(void 0===n){const i=this.default_value;n=null!=this._default_override?this._default_override():void 0!==i?i(e):null,e.setv({[t]:n},{silent:!0,defaults:!0})}c.isArray(n)?this.spec={value:n}:d(n)?this.spec=n:this.spec={value:n},null!=this.spec.value&&this.validate(this.spec.value),this.init()}toString(){return`Prop(${this.obj}.${this.attr}, spec: ${u(this.spec)})`}}n.Property=p,p.__name__="Property";class h extends p{}n.Any=h,h.__name__="Any";class m extends p{valid(e){return c.isArray(e)||e instanceof Float64Array}}n.Array=m,m.__name__="Array";class S extends p{valid(e){return c.isBoolean(e)}}n.Boolean=S,S.__name__="Boolean";class g extends p{valid(e){return c.isString(e)&&l.is_color(e)}}n.Color=g,g.__name__="Color";class v extends p{}n.Instance=v,v.__name__="Instance";class x extends p{valid(e){return c.isNumber(e)}}n.Number=x,x.__name__="Number";class f extends x{valid(e){return c.isNumber(e)&&(0|e)==e}}n.Int=f,f.__name__="Int";class y extends x{}n.Angle=y,y.__name__="Angle";class P extends x{valid(e){return c.isNumber(e)&&0<=e&&e<=1}}n.Percent=P,P.__name__="Percent";class L extends p{valid(e){return c.isString(e)}}n.String=L,L.__name__="String";class T extends L{}n.FontSize=T,T.__name__="FontSize";class A extends L{constructor(){super(…arguments),this._default_override=_.settings.dev?()=>"Bokeh":void 0}}n.Font=A,A.__name__="Font";class b extends p{valid(e){return c.isString(e)&&r.includes(this.enum_values,e)}}function M(e){return class extends b{get enum_values(){return e}}}n.EnumProperty=b,b.__name__="EnumProperty",n.Enum=M;class B extends b{get enum_values(){return a.Direction}transform(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)switch(e[n]){case"clock":t[n]=0;break;case"anticlock":t[n]=1}return t}}n.Direction=B,B.__name__="Direction",n.Anchor=M(a.Anchor),n.AngleUnits=M(a.AngleUnits),n.BoxOrigin=M(a.BoxOrigin),n.ButtonType=M(a.ButtonType),n.CalendarPosition=M(a.CalendarPosition),n.Dimension=M(a.Dimension),n.Dimensions=M(a.Dimensions),n.Distribution=M(a.Distribution),n.FontStyle=M(a.FontStyle),n.HatchPatternType=M(a.HatchPatternType),n.HTTPMethod=M(a.HTTPMethod),n.HexTileOrientation=M(a.HexTileOrientation),n.HoverMode=M(a.HoverMode),n.LatLon=M(a.LatLon),n.LegendClickPolicy=M(a.LegendClickPolicy),n.LegendLocation=M(a.LegendLocation),n.LineCap=M(a.LineCap),n.LineJoin=M(a.LineJoin),n.LinePolicy=M(a.LinePolicy),n.Location=M(a.Location),n.Logo=M(a.Logo),n.MarkerType=M(a.MarkerType),n.MutedPolicy=M(a.MutedPolicy),n.Orientation=M(a.Orientation),n.OutputBackend=M(a.OutputBackend),n.PaddingUnits=M(a.PaddingUnits),n.Place=M(a.Place),n.PointPolicy=M(a.PointPolicy),n.RadiusDimension=M(a.RadiusDimension),n.RenderLevel=M(a.RenderLevel),n.RenderMode=M(a.RenderMode),n.ResetPolicy=M(a.ResetPolicy),n.RoundingFunction=M(a.RoundingFunction),n.Side=M(a.Side),n.SizingMode=M(a.SizingMode),n.Sort=M(a.Sort),n.SpatialUnits=M(a.SpatialUnits),n.StartEnd=M(a.StartEnd),n.StepMode=M(a.StepMode),n.TapBehavior=M(a.TapBehavior),n.TextAlign=M(a.TextAlign),n.TextBaseline=M(a.TextBaseline),n.TextureRepetition=M(a.TextureRepetition),n.TickLabelOrientation=M(a.TickLabelOrientation),n.TooltipAttachment=M(a.TooltipAttachment),n.UpdateMode=M(a.UpdateMode),n.VerticalAlign=M(a.VerticalAlign);class D extends p{}n.ScalarSpec=D,D.__name__="ScalarSpec";class k extends p{array(e){let t;if(null!=this.spec.field){if(t=this.transform(e.get_column(this.spec.field)),null==t)throw new Error(`attempted to retrieve property array for nonexistent field ‘${this.spec.field}’`)}else if(null!=this.spec.expr)t=this.transform(this.spec.expr.v_compute(e));else{let n=e.get_length();null==n&&(n=1);const i=this.value(!1);t=r.repeat(i,n)}return null!=this.spec.transform&&(t=this.spec.transform.v_compute(t)),t}}n.VectorSpec=k,k.__name__="VectorSpec";class C extends k{}n.DataSpec=C,C.__name__="DataSpec";class O extends k{init(){null==this.spec.units&&(this.spec.units=this.default_units);const e=this.spec.units;if(!r.includes(this.valid_units,e))throw new Error(`units must be one of ${this.valid_units.join(", ")}; got: ${e}`)}get units(){return this.spec.units}set units(e){this.spec.units=e}}n.UnitsSpec=O,O.__name__="UnitsSpec";class U extends O{get default_units(){return"rad"}get valid_units(){return a.AngleUnits}transform(e){return"deg"==this.spec.units&&(e=o.map(e,e=>e*Math.PI/180)),e=o.map(e,e=>-e),super.transform(e)}}n.AngleSpec=U,U.__name__="AngleSpec";class w extends C{}n.BooleanSpec=w,w.__name__="BooleanSpec";class R extends C{}n.ColorSpec=R,R.__name__="ColorSpec";class F extends C{}n.CoordinateSpec=F,F.__name__="CoordinateSpec";class N extends C{}n.CoordinateSeqSpec=N,N.__name__="CoordinateSeqSpec";class E extends O{get default_units(){return"data"}get valid_units(){return a.SpatialUnits}}n.DistanceSpec=E,E.__name__="DistanceSpec";class $ extends C{}n.FontSizeSpec=$,$.__name__="FontSizeSpec";class j extends C{}n.MarkerSpec=j,j.__name__="MarkerSpec";class H extends C{}n.NumberSpec=H,H.__name__="NumberSpec";class z extends C{}n.StringSpec=z,z.__name__="StringSpec";class I extends C{}n.NullStringSpec=I,I.__name__="NullStringSpec"},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Align=["start","center","end"],o.Anchor=["top_left","top_center","top_right","center_left","center","center_right","bottom_left","bottom_center","bottom_right"],o.AngleUnits=["deg","rad"],o.BoxOrigin=["corner","center"],o.ButtonType=["default","primary","success","warning","danger"],o.CalendarPosition=["auto","above","below"],o.Dimension=["width","height"],o.Dimensions=["width","height","both"],o.Direction=["clock","anticlock"],o.Distribution=["uniform","normal"],o.FontStyle=["normal","italic","bold","bold italic"],o.HatchPatternType=["blank","dot","ring","horizontal_line","vertical_line","cross","horizontal_dash","vertical_dash","spiral","right_diagonal_line","left_diagonal_line","diagonal_cross","right_diagonal_dash","left_diagonal_dash","horizontal_wave","vertical_wave","criss_cross"," ",".","o","-","|","+",’"’,":","@","/","\\","x",",","`","v",">",""],o.HTTPMethod=["POST","GET"],o.HexTileOrientation=["pointytop","flattop"],o.HoverMode=["mouse","hline","vline"],o.LatLon=["lat","lon"],o.LegendClickPolicy=["none","hide","mute"],o.LegendLocation=o.Anchor,o.LineCap=["butt","round","square"],o.LineJoin=["miter","round","bevel"],o.LinePolicy=["prev","next","nearest","interp","none"],o.Location=["above","below","left","right"],o.Logo=["normal","grey"],o.MarkerType=["asterisk","circle","circle_cross","circle_x","cross","dash","diamond","diamond_cross","hex","inverted_triangle","square","square_cross","square_x","triangle","x"],o.MutedPolicy=["show","ignore"],o.Orientation=["vertical","horizontal"],o.OutputBackend=["canvas","svg","webgl"],o.PaddingUnits=["percent","absolute"],o.Place=["above","below","left","right","center"],o.PointPolicy=["snap_to_data","follow_mouse","none"],o.RadiusDimension=["x","y","max","min"],o.RenderLevel=["image","underlay","glyph","annotation","overlay"],o.RenderMode=["canvas","css"],o.ResetPolicy=["standard","event_only"],o.RoundingFunction=["round","nearest","floor","rounddown","ceil","roundup"],o.Side=["above","below","left","right"],o.SizingMode=["stretch_width","stretch_height","stretch_both","scale_width","scale_height","scale_both","fixed"],o.Sort=["ascending","descending"],o.SpatialUnits=["screen","data"],o.StartEnd=["start","end"],o.StepMode=["after","before","center"],o.TapBehavior=["select","inspect"],o.TextAlign=["left","right","center"],o.TextBaseline=["top","middle","bottom","alphabetic","hanging","ideographic"],o.TextureRepetition=["repeat","repeat_x","repeat_y","no_repeat"],o.TickLabelOrientation=["vertical","horizontal","parallel","normal"],o.TooltipAttachment=["horizontal","vertical","left","right","above","below"],o.UpdateMode=["replace","append"],o.VerticalAlign=["top","middle","bottom"]},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(22),o=e(9);function l(e){const r=Number(e).toString(16);return 1==r.length?`0${r}`:r}function a(e){if(0==(e+="").indexOf("#"))return e;if(n.is_svg_color(e))return n.svg_colors[e];if(0==e.indexOf("rgb")){const r=e.replace(/^rgba?\(|\\s+|\)$/g,"").split(",");let t=r.slice(0,3).map(l).join("");return 4==r.length&&(t+=l(Math.floor(255*parseFloat(r[3])))),`#${t.slice(0,8)}`}return e}function c(e){let r;switch(e.substring(0,4)){case"rgba":r={start:"rgba(",len:4,alpha:!0};break;case"rgb(":r={start:"rgb(",len:3,alpha:!1};break;default:return!1}if(new RegExp(".*?(\\.).*(,)").test(e))throw new Error(color expects integers for rgb in rgb/rgba tuple, received ${e});const t=e.replace(r.start,"").replace(")","").split(",").map(parseFloat);if(t.length!=r.len)throw new Error(color expects rgba ${r.len}-tuple, received ${e});if(r.alpha&&!(0<=t[3]&&t[3]<=1))throw new Error("color expects rgba 4-tuple to have alpha value between 0 and 1");if(o.includes(t.slice(0,3).map(e=>0<=e&&e<=255),!1))throw new Error("color expects rgb to have value between 0 and 255");return!0}t.is_color=function(e){return n.is_svg_color(e.toLowerCase())||"#"==e.substring(0,1)||c(e)},t.rgb2hex=function(e,r,t){return`#${l(255&e)}${l(255&r)}${l(255&t)}`},t.color2hex=a,t.color2rgba=function(e,r=1){if(!e)return[0,0,0,0];let t=a(e);t=t.replace(/ |#/g,\"\"),t.length<=4&&(t=t.replace(/(.)/g,\"$1$1\"));const n=t.match(/../g).map(e=>parseInt(e,16)/255);for(;n.length<3;)n.push(0);return n.length<4&&n.push(r),n.slice(0,4)},t.valid_rgb=c},\n function _(e,F,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.svg_colors={indianred:\"#CD5C5C\",lightcoral:\"#F08080\",salmon:\"#FA8072\",darksalmon:\"#E9967A\",lightsalmon:\"#FFA07A\",crimson:\"#DC143C\",red:\"#FF0000\",firebrick:\"#B22222\",darkred:\"#8B0000\",pink:\"#FFC0CB\",lightpink:\"#FFB6C1\",hotpink:\"#FF69B4\",deeppink:\"#FF1493\",mediumvioletred:\"#C71585\",palevioletred:\"#DB7093\",coral:\"#FF7F50\",tomato:\"#FF6347\",orangered:\"#FF4500\",darkorange:\"#FF8C00\",orange:\"#FFA500\",gold:\"#FFD700\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",lemonchiffon:\"#FFFACD\",lightgoldenrodyellow:\"#FAFAD2\",papayawhip:\"#FFEFD5\",moccasin:\"#FFE4B5\",peachpuff:\"#FFDAB9\",palegoldenrod:\"#EEE8AA\",khaki:\"#F0E68C\",darkkhaki:\"#BDB76B\",lavender:\"#E6E6FA\",thistle:\"#D8BFD8\",plum:\"#DDA0DD\",violet:\"#EE82EE\",orchid:\"#DA70D6\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",mediumorchid:\"#BA55D3\",mediumpurple:\"#9370DB\",blueviolet:\"#8A2BE2\",darkviolet:\"#9400D3\",darkorchid:\"#9932CC\",darkmagenta:\"#8B008B\",purple:\"#800080\",indigo:\"#4B0082\",slateblue:\"#6A5ACD\",darkslateblue:\"#483D8B\",mediumslateblue:\"#7B68EE\",greenyellow:\"#ADFF2F\",chartreuse:\"#7FFF00\",lawngreen:\"#7CFC00\",lime:\"#00FF00\",limegreen:\"#32CD32\",palegreen:\"#98FB98\",lightgreen:\"#90EE90\",mediumspringgreen:\"#00FA9A\",springgreen:\"#00FF7F\",mediumseagreen:\"#3CB371\",seagreen:\"#2E8B57\",forestgreen:\"#228B22\",green:\"#008000\",darkgreen:\"#006400\",yellowgreen:\"#9ACD32\",olivedrab:\"#6B8E23\",olive:\"#808000\",darkolivegreen:\"#556B2F\",mediumaquamarine:\"#66CDAA\",darkseagreen:\"#8FBC8F\",lightseagreen:\"#20B2AA\",darkcyan:\"#008B8B\",teal:\"#008080\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",lightcyan:\"#E0FFFF\",paleturquoise:\"#AFEEEE\",aquamarine:\"#7FFFD4\",turquoise:\"#40E0D0\",mediumturquoise:\"#48D1CC\",darkturquoise:\"#00CED1\",cadetblue:\"#5F9EA0\",steelblue:\"#4682B4\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",lightblue:\"#ADD8E6\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",deepskyblue:\"#00BFFF\",dodgerblue:\"#1E90FF\",cornflowerblue:\"#6495ED\",royalblue:\"#4169E1\",blue:\"#0000FF\",mediumblue:\"#0000CD\",darkblue:\"#00008B\",navy:\"#000080\",midnightblue:\"#191970\",cornsilk:\"#FFF8DC\",blanchedalmond:\"#FFEBCD\",bisque:\"#FFE4C4\",navajowhite:\"#FFDEAD\",wheat:\"#F5DEB3\",burlywood:\"#DEB887\",tan:\"#D2B48C\",rosybrown:\"#BC8F8F\",sandybrown:\"#F4A460\",goldenrod:\"#DAA520\",darkgoldenrod:\"#B8860B\",peru:\"#CD853F\",chocolate:\"#D2691E\",saddlebrown:\"#8B4513\",sienna:\"#A0522D\",brown:\"#A52A2A\",maroon:\"#800000\",white:\"#FFFFFF\",snow:\"#FFFAFA\",honeydew:\"#F0FFF0\",mintcream:\"#F5FFFA\",azure:\"#F0FFFF\",aliceblue:\"#F0F8FF\",ghostwhite:\"#F8F8FF\",whitesmoke:\"#F5F5F5\",seashell:\"#FFF5EE\",beige:\"#F5F5DC\",oldlace:\"#FDF5E6\",floralwhite:\"#FFFAF0\",ivory:\"#FFFFF0\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lavenderblush:\"#FFF0F5\",mistyrose:\"#FFE4E1\",gainsboro:\"#DCDCDC\",lightgray:\"#D3D3D3\",lightgrey:\"#D3D3D3\",silver:\"#C0C0C0\",darkgray:\"#A9A9A9\",darkgrey:\"#A9A9A9\",gray:\"#808080\",grey:\"#808080\",dimgray:\"#696969\",dimgrey:\"#696969\",lightslategray:\"#778899\",lightslategrey:\"#778899\",slategray:\"#708090\",slategrey:\"#708090\",darkslategray:\"#2F4F4F\",darkslategrey:\"#2F4F4F\",black:\"#000000\"},r.is_svg_color=function(e){return e in r.svg_colors}},\n function _(e,t,s){Object.defineProperty(s,\"__esModule\",{value:!0});class n{constructor(){this._dev=!1}set dev(e){this._dev=e}get dev(){return this._dev}}s.Settings=n,n.__name__=\"Settings\",s.settings=new n},\n function _(e,t,n){Object.defineProperty(n,\"__esModule\",{value:!0});const c=e(9);function o(e){return Object.keys(e).length}n.keys=Object.keys,n.extend=Object.assign,n.values=void 0!==Object.values?Object.values:e=>{const t=Object.keys(e),n=t.length,c=new Array(n);for(let o=0;o<n;o++)c[o]=e[t[o]];return c},n.clone=function(e){return Object.assign({},e)},n.merge=function(e,t){const n=Object.create(Object.prototype),o=c.concat([Object.keys(e),Object.keys(t)]);for(const r of o){const o=e.hasOwnProperty(r)?e[r]:[],s=t.hasOwnProperty(r)?t[r]:[];n[r]=c.union(o,s)}return n},n.size=o,n.isEmpty=function(e){return 0===o(e)}},\n function _(e,n,t){Object.defineProperty(t,\"__esModule\",{value:!0});const i=e(8),r=e(24);t.is_ref=function(e){if(i.isPlainObject(e)){const n=r.keys(e);return 1==n.length&&\"id\"==n[0]}return!1}},\n function _(t,e,r){Object.defineProperty(r,\"__esModule\",{value:!0});const n=t(23);function u(){const t=new Array(32);for(let e=0;e<32;e++)t[e]=\"0123456789ABCDEF\".substr(Math.floor(16*Math.random()),1);return t[12]=\"4\",t[16]=\"0123456789ABCDEF\".substr(3&t[16].charCodeAt(0)|8,1),t.join(\"\")}r.startsWith=function(t,e,r=0){return t.substr(r,e.length)==e},r.uuid4=u;let s=1e3;r.uniqueId=function(t){const e=n.settings.dev?`j${s++}`:u();return null!=t?`${t}-${e}`:e},r.escape=function(t){return t.replace(/(?:[&<>\"'`])/g,t=>{switch(t){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return\""\";case\"'\":return\"'\";case\"`\":return\"`\";default:return t}})},r.unescape=function(t){return t.replace(/&(amp|lt|gt|quot|#x27|#x60);/g,(t,e)=>{switch(e){case\"amp\":return\"&\";case\"lt\":return\"<\";case\"gt\":return\">\";case\"quot\":return'\"';case\"#x27\":return\"'\";case\"#x60\":return\"`\";default:return e}})},r.use_strict=function(t){return`'use strict';\\n${t}`}},\n function _(t,_,r){Object.defineProperty(r,\"__esModule\",{value:!0});const e=t(1);e.__exportStar(t(28),r),e.__exportStar(t(147),r),e.__exportStar(t(174),r),e.__exportStar(t(178),r),e.__exportStar(t(193),r),e.__exportStar(t(197),r),e.__exportStar(t(203),r),e.__exportStar(t(207),r),e.__exportStar(t(237),r),e.__exportStar(t(240),r),e.__exportStar(t(242),r),e.__exportStar(t(255),r),e.__exportStar(t(122),r),e.__exportStar(t(261),r),e.__exportStar(t(265),r),e.__exportStar(t(288),r),e.__exportStar(t(289),r),e.__exportStar(t(290),r),e.__exportStar(t(291),r),e.__exportStar(t(292),r),e.__exportStar(t(297),r),e.__exportStar(t(299),r),e.__exportStar(t(309),r),e.__exportStar(t(313),r)},\n function _(a,e,o){Object.defineProperty(o,\"__esModule\",{value:!0});var r=a(29);o.Annotation=r.Annotation;var n=a(71);o.Arrow=n.Arrow;var t=a(72);o.ArrowHead=t.ArrowHead;var v=a(72);o.OpenHead=v.OpenHead;var l=a(72);o.NormalHead=l.NormalHead;var d=a(72);o.TeeHead=d.TeeHead;var i=a(72);o.VeeHead=i.VeeHead;var A=a(104);o.Band=A.Band;var H=a(105);o.BoxAnnotation=H.BoxAnnotation;var T=a(107);o.ColorBar=T.ColorBar;var p=a(132);o.Label=p.Label;var L=a(134);o.LabelSet=L.LabelSet;var b=a(135);o.Legend=b.Legend;var B=a(136);o.LegendItem=B.LegendItem;var S=a(138);o.PolyAnnotation=S.PolyAnnotation;var P=a(139);o.Slope=P.Slope;var g=a(140);o.Span=g.Span;var m=a(133);o.TextAnnotation=m.TextAnnotation;var w=a(141);o.Title=w.Title;var x=a(142);o.ToolbarPanel=x.ToolbarPanel;var s=a(143);o.Tooltip=s.Tooltip;var u=a(146);o.Whisker=u.Whisker},\n function _(t,e,n){Object.defineProperty(n,\"__esModule\",{value:!0});const i=t(1).__importStar(t(30)),s=t(24),o=t(63);class _ extends o.RendererView{get panel(){return this.layout}get_size(){if(this.model.visible){const{width:t,height:e}=this._get_size();return{width:Math.round(t),height:Math.round(e)}}return{width:0,height:0}}connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.visible,()=>this.plot_view.request_layout())}_get_size(){throw new Error(\"not implemented\")}get ctx(){return this.plot_view.canvas_view.ctx}set_data(t){const e=this.model.materialize_dataspecs(t);if(s.extend(this,e),this.plot_model.use_map){const t=this;null!=t._x&&([t._x,t._y]=i.project_xy(t._x,t._y)),null!=t._xs&&([t._xs,t._ys]=i.project_xsys(t._xs,t._ys))}}get needs_clip(){return null==this.layout}serializable_state(){const t=super.serializable_state();return null==this.layout?t:Object.assign(Object.assign({},t),{bbox:this.layout.bbox.box})}}n.AnnotationView=_,_.__name__=\"AnnotationView\";class a extends o.Renderer{constructor(t){super(t)}static init_Annotation(){this.override({level:\"annotation\"})}}n.Annotation=a,a.__name__=\"Annotation\",a.init_Annotation()},\n function _(t,n,e){Object.defineProperty(e,\"__esModule\",{value:!0});const r=t(1),o=r.__importDefault(t(31)),a=r.__importDefault(t(32)),c=new a.default(\"GOOGLE\"),l=new a.default(\"WGS84\");e.wgs84_mercator=o.default(l,c);const u={lon:[-20026376.39,20026376.39],lat:[-20048966.1,20048966.1]},f={lon:[-180,180],lat:[-85.06,85.06]};function s(t,n){const r=Math.min(t.length,n.length),o=new Array(r),a=new Array(r);for(let c=0;c<r;c++){const[r,l]=e.wgs84_mercator.forward([t[c],n[c]]);o[c]=r,a[c]=l}return[o,a]}e.clip_mercator=function(t,n,e){const[r,o]=u[e];return[Math.max(t,r),Math.min(n,o)]},e.in_bounds=function(t,n){const[e,r]=f[n];return e<t&&t<r},e.project_xy=s,e.project_xsys=function(t,n){const e=Math.min(t.length,n.length),r=new Array(e),o=new Array(e);for(let a=0;a<e;a++){const[e,c]=s(t[a],n[a]);r[a]=e,o[a]=c}return[r,o]}},\n function _(e,n,t){Object.defineProperty(t,\"__esModule\",{value:!0});const r=e(1),o=r.__importDefault(e(32)),a=r.__importDefault(e(57));var i=o.default(\"WGS84\");function c(e,n,t){var r,o,i;return Array.isArray(t)?(r=a.default(e,n,t)||{x:NaN,y:NaN},t.length>2?void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name?\"number\"==typeof r.z?[r.x,r.y,r.z].concat(t.splice(3)):[r.x,r.y,t[2]].concat(t.splice(3)):[r.x,r.y].concat(t.splice(2)):[r.x,r.y]):(o=a.default(e,n,t),2===(i=Object.keys(t)).length||i.forEach((function(r){if(void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name){if(\"x\"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=t[r]})),o)}function u(e){return e instanceof o.default?e:e.oProj?e.oProj:o.default(e)}t.default=function(e,n,t){e=u(e);var r,o=!1;return void 0===n?(n=e,e=i,o=!0):(void 0!==n.x||Array.isArray(n))&&(t=n,n=e,e=i,o=!0),n=u(n),t?c(e,n,t):(r={forward:function(t){return c(e,n,t)},inverse:function(t){return c(n,e,t)}},o&&(r.oProj=n),r)}},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1),i=s.__importDefault(e(33)),u=s.__importDefault(e(44)),l=s.__importDefault(e(45)),o=e(53),r=s.__importDefault(e(55)),f=s.__importDefault(e(56)),d=s.__importDefault(e(40));function p(e,t){if(!(this instanceof p))return new p(e);t=t||function(e){if(e)throw e};var a=i.default(e);if("object"==typeof a){var s=p.projections.get(a.projName);if(s){if(a.datumCode&&"none"!==a.datumCode){var l=d.default(r.default,a.datumCode);l&&(a.datum_params=l.towgs84?l.towgs84.split(","):null,a.ellps=l.ellipse,a.datumName=l.datumName?l.datumName:a.datumCode)}a.k0=a.k0||1,a.axis=a.axis||"enu",a.ellps=a.ellps||"wgs84";var m=o.sphere(a.a,a.b,a.rf,a.ellps,a.sphere),n=o.eccentricity(m.a,m.b,m.rf,a.R_A),h=a.datum||f.default(a.datumCode,a.datum_params,m.a,m.b,n.es,n.ep2);u.default(this,a),u.default(this,s),this.a=m.a,this.b=m.b,this.rf=m.rf,this.sphere=m.sphere,this.es=n.es,this.e=n.e,this.ep2=n.ep2,this.datum=h,this.init(),t(null,this)}else t(e)}else t(e)}p.projections=l.default,p.projections.start(),a.default=p},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const u=t(1),n=u.__importDefault(t(34)),f=u.__importDefault(t(41)),i=u.__importDefault(t(36)),a=u.__importDefault(t(40));var o=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var l=["3857","900913","3785","102113"];r.default=function(t){if(!function(t){return"string"==typeof t}(t))return t;if(function(t){return t in n.default}(t))return n.default[t];if(function(t){return o.some((function(e){return t.indexOf(e)>-1}))}(t)){var e=f.default(t);if(function(t){var e=a.default(t,"authority");if(e){var r=a.default(e,"epsg");return r&&l.indexOf(r)>-1}}(e))return n.default["EPSG:3857"];var r=function(t){var e=a.default(t,"extension");if(e)return a.default(e,"proj4")}(e);return r?i.default(r):e}return function(t){return"+"===t[0]}(t)?i.default(t):void 0}},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),n=i.__importDefault(t(35)),f=i.__importDefault(t(36)),a=i.__importDefault(t(41));function l(t){var e=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?l[t]=f.default(arguments[1]):l[t]=a.default(arguments[1]):l[t]=r}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?l.apply(e,t):l(t)}));if("string"==typeof t){if(t in l)return l[t]}else"EPSG"in t?l["EPSG:"+t.EPSG]=t:"ESRI"in t?l["ESRI:"+t.ESRI]=t:"IAU2000"in t?l["IAU2000:"+t.IAU2000]=t:console.log(t);return}}n.default(l),r.default=l},n function _(e,t,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}},n function _(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});const e=t(1),a=t(37),u=e.__importDefault(t(38)),r=e.__importDefault(t(39)),i=e.__importDefault(t(40));o.default=function(t){var n,o,e,f={},l=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,n){var o=n.split("=");return o.push(!0),t[o[0].toLowerCase()]=o[1],t}),{}),c={proj:"projName",datum:"datumCode",rf:function(t){f.rf=parseFloat(t)},lat_0:function(t){f.lat0=t*a.D2R},lat_1:function(t){f.lat1=t*a.D2R},lat_2:function(t){f.lat2=t*a.D2R},lat_ts:function(t){f.lat_ts=t*a.D2R},lon_0:function(t){f.long0=t*a.D2R},lon_1:function(t){f.long1=t*a.D2R},lon_2:function(t){f.long2=t*a.D2R},alpha:function(t){f.alpha=parseFloat(t)*a.D2R},lonc:function(t){f.longc=t*a.D2R},x_0:function(t){f.x0=parseFloat(t)},y_0:function(t){f.y0=parseFloat(t)},k_0:function(t){f.k0=parseFloat(t)},k:function(t){f.k0=parseFloat(t)},a:function(t){f.a=parseFloat(t)},b:function(t){f.b=parseFloat(t)},r_a:function(){f.R_A=!0},zone:function(t){f.zone=parseInt(t,10)},south:function(){f.utmSouth=!0},towgs84:function(t){f.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){f.to_meter=parseFloat(t)},units:function(t){f.units=t;var n=i.default(r.default,t);n&&(f.to_meter=n.to_meter)},from_greenwich:function(t){f.from_greenwich=t*a.D2R},pm:function(t){var n=i.default(u.default,t);f.from_greenwich=(n||parseFloat(t))*a.D2R},nadgrids:function(t){"@null"===t?f.datumCode="none":f.nadgrids=t},axis:function(t){3===t.length&&-1!=="ewnsud".indexOf(t.substr(0,1))&&-1!=="ewnsud".indexOf(t.substr(1,1))&&-1!=="ewnsud".indexOf(t.substr(2,1))&&(f.axis=t)}};for(n in l)o=l[n],n in c?"function"==typeof(e=c[n])?e(o):f[e]=o:f[n]=o;return"string"==typeof f.datumCode&&"WGS84"!==f.datumCode&&(f.datumCode=f.datumCode.toLowerCase()),f}},n function _(P,_,e){Object.defineProperty(e,"__esModule",{value:!0}),e.PJD_3PARAM=1,e.PJD_7PARAM=2,e.PJD_WGS84=4,e.PJD_NODATUM=5,e.SEC_TO_RAD=484813681109536e-20,e.HALF_PI=Math.PI/2,e.SIXTH=.16666666666666666,e.RA4=.04722222222222222,e.RA6=.022156084656084655,e.EPSLN=1e-10,e.D2R=.017453292519943295,e.R2D=57.29577951308232,e.FORTPI=Math.PI/4,e.TWO_PI=2*Math.PI,e.SPI=3.14159265359},n function _(e,o,r){Object.defineProperty(r,"__esModule",{value:!0});var a={};r.default=a,a.greenwich=0,a.lisbon=-9.131906111111,a.paris=2.337229166667,a.bogota=-74.080916666667,a.madrid=-3.687938888889,a.rome=12.452333333333,a.bern=7.439583333333,a.jakarta=106.807719444444,a.ferro=-17.666666666667,a.brussels=4.367975,a.stockholm=18.058277777778,a.athens=23.7163375,a.oslo=10.722916666667},n function _(e,t,f){Object.defineProperty(f,"__esModule",{value:!0}),f.default={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});var o=/[\s_\-\/\(\)]/g;t.default=function(e,r){if(e[r])return e[r];for(var t,a=Object.keys(e),n=r.toLowerCase().replace(o,""),f=-1;++f<a.length;)if((t=a[f]).toLowerCase().replace(o,"")===n)return e[t]}},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const o=e(1);const d=o.__importDefault(e(42)),r=e(43);function n(e){return.017453292519943295*e}a.default=function(e){var t=d.default(e),a=t.shift(),o=t.shift();t.unshift(["name",o]),t.unshift(["type",a]);var l={};return r.sExpr(t,l),function(e){if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",a=0,o=e.AXIS.length;a<o;++a){var d=e.AXIS[a][0].toLowerCase();-1!==d.indexOf("north")?t+="n":-1!==d.indexOf("south")?t+="s":-1!==d.indexOf("east")?t+="e":-1!==d.indexOf("west")&&(t+="w")}2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var r=e.GEOGCS;function l(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(r=e),r&&(r.DATUM?e.datumCode=r.DATUM.name.toLowerCase():e.datumCode=r.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(e.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=r.DATUM.SPHEROID.a,e.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(e.datum_params=r.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",n],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",n],["x0","false_easting",l],["y0","false_northing",l],["long0","central_meridian",n],["lat0","latitude_of_origin",n],["lat0","standard_parallel_1",n],["lat1","standard_parallel_1",n],["lat2","standard_parallel_2",n],["azimuth","Azimuth"],["alpha","azimuth",n],["srsCode","name"]].forEach((function(t){return a=e,d=(o=t)[0],r=o[1],void(!(d in a)&&r in a&&(a[d]=a[r],3===o.length&&(a[d]=o[2](a[d]))));var a,o,d,r})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=n(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(l),l}},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return new a(t).output()};var i=/\s/,s=/[A-Za-z]/,h=/[A-Za-z84]/,o=/[,\]]/,n=/[\d\.E\-\+]/;function a(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}a.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;i.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},a.prototype.afterquote=function(t){if(’"’===t)return this.word+=’"’,void(this.state=4);if(o.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn’t handled \""+t+’" in afterquote yet, index ‘+this.place)},a.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level–,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},a.prototype.number=function(t){if(!n.test(t)){if(o.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn’t handled \""+t+’" in number yet, index ‘+this.place)}this.word+=t},a.prototype.quoted=function(t){’"’!==t?this.word+=t:this.state=5},a.prototype.keyword=function(t){if(h.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=1)}if(!o.test(t))throw new Error("havn’t handled \""+t+’" in keyword yet, index ‘+this.place);this.afterItem(t)}},a.prototype.neutral=function(t){if(s.test(t))return this.word=t,void(this.state=2);if(’"’===t)return this.word="",void(this.state=4);if(n.test(t))return this.word=t,void(this.state=3);if(!o.test(t))throw new Error("havn’t handled \""+t+’" in neutral yet, index ‘+this.place);this.afterItem(t)},a.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error(‘unable to parse string "’+this.text+’". State is ‘+this.state)}},n function _(e,r,a){function s(e,r,a){Array.isArray(r)&&(a.unshift(r),r=null);var s=r?{}:e,n=a.reduce((function(e,r){return c(r,e),e}),s);r&&(e[r]=n)}function c(e,r){if(Array.isArray(e)){var a=e.shift();if("PARAMETER"===a&&(a=e.shift()),1===e.length)return Array.isArray(e[0])?(r[a]={},void c(e[0],r[a])):void(r[a]=e[0]);if(e.length)if("TOWGS84"!==a){if("AXIS"===a)return a in r||(r[a]=[]),void r[a].push(e);var n;switch(Array.isArray(a)||(r[a]={}),a){case"UNIT":case"PRIMEM":case"VERT_DATUM":return r[a]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&c(e[2],r[a]));case"SPHEROID":case"ELLIPSOID":return r[a]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&c(e[3],r[a]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return e[0]=["name",e[0]],void s(r,a,e);default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return c(e,r[a]);return s(r,a,e)}}else r[a]=e;else r[a]=!0}else r[e]=!0}Object.defineProperty(a,"__esModule",{value:!0}),a.sExpr=c},n function _(e,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,n){var r,t;if(e=e||{},!n)return e;for(t in n)void 0!==(r=n[t])&&(e[t]=r);return e}},n function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const a=t(1),n=a.__importDefault(t(46)),r=a.__importDefault(t(52));var u=[n.default,r.default],f={},i=[];function d(t,e){var o=i.length;return t.names?(i[o]=t,t.names.forEach((function(t){f[t.toLowerCase()]=o})),this):(console.log(e),!0)}function c(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==f[e]&&i[f[e]]?i[f[e]]:void 0}function l(){u.forEach(d)}o.add=d,o.get=c,o.start=l,o.default={start:l,add:d,get:c}},n function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const h=t(1),a=h.__importDefault(t(47)),e=h.__importDefault(t(48)),r=h.__importDefault(t(50)),n=h.__importDefault(t(51)),l=t(37);function u(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=a.default(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function o(t){var i,s,h=t.x,a=t.y;if(a*l.R2D>90&&a*l.R2D<-90&&h*l.R2D>180&&h*l.R2D<-180)return null;if(Math.abs(Math.abs(a)-l.HALF_PI)<=l.EPSLN)return null;if(this.sphere)i=this.x0+this.a*this.k0*e.default(h-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(l.FORTPI+.5*a));else{var n=Math.sin(a),u=r.default(this.e,a,n);i=this.x0+this.a*this.k0*e.default(h-this.long0),s=this.y0-this.a*this.k0*Math.log(u)}return t.x=i,t.y=s,t}function f(t){var i,s,h=t.x-this.x0,a=t.y-this.y0;if(this.sphere)s=l.HALF_PI-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var r=Math.exp(-a/(this.a*this.k0));if(-9999===(s=n.default(this.e,r)))return null}return i=e.default(this.long0+h/(this.a*this.k0)),t.x=i,t.y=s,t}s.init=u,s.forward=o,s.inverse=f,s.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],s.default={init:u,forward:o,inverse:f,names:s.names}},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)}},n function _(e,t,u){Object.defineProperty(u,"__esModule",{value:!0});const n=e(1),a=e(37),f=n.__importDefault(e(49));u.default=function(e){return Math.abs(e)<=a.SPI?e:e-f.default(e)*a.TWO_PI}},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e<0?-1:1}},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const a=t(37);n.default=function(t,e,n){var o=t*n,u=.5*t;return o=Math.pow((1-o)/(1+o),u),Math.tan(.5*(a.HALF_PI-e))/o}},n function _(t,a,e){Object.defineProperty(e,"__esModule",{value:!0});const n=t(37);e.default=function(t,a){for(var e,r,o=.5*t,u=n.HALF_PI-2*Math.atan(a),f=0;f<=15;f++)if(e=t*Math.sin(u),u+=r=n.HALF_PI-2*Math.atan(a*Math.pow((1-e)/(1+e),o))-u,Math.abs(r)<=1e-10)return u;return-9999}},n function _(e,n,i){function t(){}function r(e){return e}Object.defineProperty(i,"__esModule",{value:!0}),i.init=t,i.forward=r,i.inverse=r,i.names=["longlat","identity"],i.default={init:t,forward:r,inverse:r,names:i.names}},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=e(1),n=e(37),f=a.__importStar(e(54)),u=a.__importDefault(e(40));r.eccentricity=function(e,t,r,a){var f=e*e,u=t*t,i=(f-u)/f,c=0;return a?(f=(e*=1-i*(n.SIXTH+i*(n.RA4+i*n.RA6)))*e,i=0):c=Math.sqrt(i),{es:i,e:c,ep2:(f-u)/u}},r.sphere=function(e,t,r,a,i){if(!e){var c=u.default(f.default,a);c||(c=f.WGS84),e=c.a,t=c.b,r=c.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<n.EPSLN)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}},n function _(e,a,l){Object.defineProperty(l,"__esModule",{value:!0});var s={};l.default=s,s.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},s.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},s.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},s.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},s.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},s.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},s.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},s.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},s.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},s.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},s.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},s.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},s.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},s.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},s.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},s.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},s.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},s.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},s.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},s.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},s.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},s.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},s.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},s.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},s.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},s.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},s.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},s.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},s.hough={a:6378270,rf:297,ellipseName:"Hough"},s.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},s.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},s.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},s.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},s.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},s.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},s.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},s.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},s.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},s.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},s.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},s.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},l.WGS84=s.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"},s.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},n function _(e,a,s){Object.defineProperty(s,"__esModule",{value:!0});var t={};s.default=t,t.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},t.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},t.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},t.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},t.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},t.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},t.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},t.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},t.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},t.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},t.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},t.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},t.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},t.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},t.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},t.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},t.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},n function _(a,m,_){Object.defineProperty(_,"__esModule",{value:!0});const t=a(37);_.default=function(a,m,_,u,d,p){var r={};return r.datum_type=void 0===a||"none"===a?t.PJD_NODATUM:t.PJD_WGS84,m&&(r.datum_params=m.map(parseFloat),0===r.datum_params[0]&&0===r.datum_params[1]&&0===r.datum_params[2]||(r.datum_type=t.PJD_3PARAM),r.datum_params.length>3&&(0===r.datum_params[3]&&0===r.datum_params[4]&&0===r.datum_params[5]&&0===r.datum_params[6]||(r.datum_type=t.PJD_7PARAM,r.datum_params[3]*=t.SEC_TO_RAD,r.datum_params[4]*=t.SEC_TO_RAD,r.datum_params[5]*=t.SEC_TO_RAD,r.datum_params[6]=r.datum_params[6]/1e6+1))),r.a=_,r.b=u,r.es=d,r.ep2=p,r}},n function _(t,e,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t(1),u=t(37),m=r.__importDefault(t(58)),_=r.__importDefault(t(60)),o=r.__importDefault(t(32)),d=r.__importDefault(t(61)),f=r.__importDefault(t(62));a.default=function t(e,a,r){var n;return Array.isArray(r)&&(r=d.default(r)),f.default(r),e.datum&&a.datum&&function(t,e){return(t.datum.datum_type===u.PJD_3PARAM||t.datum.datum_type===u.PJD_7PARAM)&&"WGS84"!==e.datumCode||(e.datum.datum_type===u.PJD_3PARAM||e.datum.datum_type===u.PJD_7PARAM)&&"WGS84"!==t.datumCode}(e,a)&&(r=t(e,n=new o.default("WGS84"),r),e=n),"enu"!==e.axis&&(r=_.default(e,!1,r)),"longlat"===e.projName?r={x:r.x*u.D2R,y:r.y*u.D2R,z:r.z||0}:(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),r=e.inverse(r)),e.from_greenwich&&(r.x+=e.from_greenwich),r=m.default(e.datum,a.datum,r),a.from_greenwich&&(r={x:r.x-a.from_greenwich,y:r.y,z:r.z||0}),"longlat"===a.projName?r={x:r.x*u.R2D,y:r.y*u.R2D,z:r.z||0}:(r=a.forward(r),a.to_meter&&(r={x:r.x/a.to_meter,y:r.y/a.to_meter,z:r.z||0})),"enu"!==a.axis?_.default(a,!0,r):r}},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const u=e(37),o=e(59);function _(e){return e===u.PJD_3PARAM||e===u.PJD_7PARAM}a.default=function(e,t,a){return o.compareDatums(e,t)||e.datum_type===u.PJD_NODATUM||t.datum_type===u.PJD_NODATUM?a:e.es!==t.es||e.a!==t.a||_(e.datum_type)||_(t.datum_type)?(a=o.geodeticToGeocentric(a,e.es,e.a),_(e.datum_type)&&(a=o.geocentricToWgs84(a,e.datum_type,e.datum_params)),_(t.datum_type)&&(a=o.geocentricFromWgs84(a,t.datum_type,t.datum_params)),o.geocentricToGeodetic(a,t.es,t.a,t.b)):a}},n function _(a,t,r){Object.defineProperty(r,"__esModule",{value:!0});const e=a(37);r.compareDatums=function(a,t){return a.datum_type===t.datum_type&&(!(a.a!==t.a||Math.abs(a.es-t.es)>5e-11)&&(a.datum_type===e.PJD_3PARAM?a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]:a.datum_type!==e.PJD_7PARAM||a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]&&a.datum_params[3]===t.datum_params[3]&&a.datum_params[4]===t.datum_params[4]&&a.datum_params[5]===t.datum_params[5]&&a.datum_params[6]===t.datum_params[6]))},r.geodeticToGeocentric=function(a,t,r){var m,u,s,_,n=a.x,d=a.y,i=a.z?a.z:0;if(d<-e.HALF_PI&&d>-1.001*e.HALF_PI)d=-e.HALF_PI;else if(d>e.HALF_PI&&d<1.001*e.HALF_PI)d=e.HALF_PI;else{if(d<-e.HALF_PI)return{x:-1/0,y:-1/0,z:a.z};if(d>e.HALF_PI)return{x:1/0,y:1/0,z:a.z}}return n>Math.PI&&(n-=2*Math.PI),u=Math.sin(d),_=Math.cos(d),s=u*u,{x:((m=r/Math.sqrt(1-t*s))+i)*_*Math.cos(n),y:(m+i)*_*Math.sin(n),z:(m*(1-t)+i)*u}},r.geocentricToGeodetic=function(a,t,r,m){var u,s,_,n,d,i,p,P,o,y,M,z,c,A,x,f=a.x,h=a.y,I=a.z?a.z:0;if(u=Math.sqrt(f*f+h*h),s=Math.sqrt(f*f+h*h+I*I),u/r<1e-12){if(A=0,s/r<1e-12)return e.HALF_PI,x=-m,{x:a.x,y:a.y,z:a.z}}else A=Math.atan2(h,f);_=I/s,P=(n=u/s)*(1-t)*(d=1/Math.sqrt(1-t*(2-t)*n*n)),o=_*d,c=0;do{c++,i=t*(p=r/Math.sqrt(1-t*o*o))/(p+(x=u*P+I*o-p*(1-t*o*o))),z=(M=_*(d=1/Math.sqrt(1-i*(2-i)*n*n)))*P-(y=n*(1-i)*d)*o,P=y,o=M}while(z*z>1e-24&&c<30);return{x:A,y:Math.atan(M/Math.abs(y)),z:x}},r.geocentricToWgs84=function(a,t,r){if(t===e.PJD_3PARAM)return{x:a.x+r[0],y:a.y+r[1],z:a.z+r[2]};if(t===e.PJD_7PARAM){var m=r[0],u=r[1],s=r[2],_=r[3],n=r[4],d=r[5],i=r[6];return{x:i*(a.x-d*a.y+n*a.z)+m,y:i*(d*a.x+a.y-_*a.z)+u,z:i*(-n*a.x+_*a.y+a.z)+s}}},r.geocentricFromWgs84=function(a,t,r){if(t===e.PJD_3PARAM)return{x:a.x-r[0],y:a.y-r[1],z:a.z-r[2]};if(t===e.PJD_7PARAM){var m=r[0],u=r[1],s=r[2],_=r[3],n=r[4],d=r[5],i=r[6],p=(a.x-m)/i,P=(a.y-u)/i,o=(a.z-s)/i;return{x:p+d*P-n*o,y:-d*p+P+_*o,z:n*p-_*P+o}}}},n function _(e,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,a,r){var c,s,u,i=r.x,n=r.y,t=r.z||0,d={};for(u=0;u<3;u++)if(!a||2!==u||void 0!==r.z)switch(0===u?(c=i,s="x"):1===u?(c=n,s="y"):(c=t,s="z"),e.axis[u]){case"e":d[s]=c;break;case"w":d[s]=-c;break;case"n":d[s]=c;break;case"s":d[s]=-c;break;case"u":void 0!==r[s]&&(d.z=c);break;case"d":void 0!==r[s]&&(d.z=-c);break;default:return null}return d}},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var n={x:e[0],y:e[1]};return e.length>2&&(n.z=e[2]),e.length>3&&(n.m=e[3]),n}},n function _(e,i,n){function t(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){t(e.x),t(e.y)}},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),n=e(64),s=r.__importStar(e(68)),_=r.__importStar(e(19)),l=e(69);class o extends n.DOMView{initialize(){super.initialize(),this.visuals=new s.Visuals(this.model),this._has_finished=!0}get plot_view(){return this.parent}get plot_model(){return this.parent.model}request_render(){this.plot_view.request_render()}map_to_screen(e,t){return this.plot_view.map_to_screen(e,t,this.model.x_range_name,this.model.y_range_name)}get needs_clip(){return!1}notify_finished(){this.plot_view.notify_finished()}get has_webgl(){return!1}}i.RendererView=o,o.__name__="RendererView";class d extends l.Model{constructor(e){super(e)}static init_Renderer(){this.define({level:[_.RenderLevel],visible:[_.Boolean,!0]})}}i.Renderer=d,d.__name__="Renderer",d.init_Renderer()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(65),n=i.__importStar(e(66)),_=e(67);class a extends r.View{initialize(){super.initialize(),this._has_finished=!1,this.el=this._createElement()}remove(){n.removeElement(this.el),super.remove()}css_classes(){return[]}cursor(e,t){return null}render(){}renderTo(e){e.appendChild(this.el),this.render()}has_finished(){return this._has_finished}get _root_element(){return n.parent(this.el,`.${_.bk_root}`)||document.body}get is_idle(){return this.has_finished()}_createElement(){return n.createElement(this.tagName,{class:this.css_classes()})}}s.DOMView=a,a.__name__="DOMView",a.prototype.tagName="div"},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(14),n=t(8),o=t(26);class s{constructor(t){if(this.removed=new r.Signal0(this,"removed"),this._ready=Promise.resolve(void 0),null==t.model)throw new Error("model of a view wasn’t configured");this.model=t.model,this._parent=t.parent,this.id=t.id||o.uniqueId()}get ready(){return this._ready}connect(t,e){return t.connect((t,i)=>{const r=Promise.resolve(e.call(this,t,i));this._ready=this._ready.then(()=>r)},this)}disconnect(t,e){return t.disconnect(e,this)}initialize(){}async lazy_initialize(){}remove(){this._parent=void 0,this.disconnect_signals(),this.removed.emit()}toString(){return`${this.model.type}View(${this.id})`}serializable_state(){return{type:this.model.type}}get parent(){if(void 0!==this._parent)return this._parent;throw new Error("parent of a view wasn’t configured")}get is_root(){return null===this.parent}get root(){return this.is_root?this:this.parent.root}assert_root(){if(!this.is_root)throw new Error(${this.toString()} is not a root layout)}connect_signals(){}disconnect_signals(){r.Signal.disconnectReceiver(this)}on_change(t,e){for(const i of n.isArray(t)?t:[t])this.connect(i.change,e)}}i.View=s,s.__name__="View"},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(8),s=t=>(e={},…n)=>{const s=document.createElement(t);s.classList.add("bk");for(const t in e){let n=e[t];if(null!=n&&(!i.isBoolean(n)||n))if("class"===t&&(i.isString(n)&&(n=n.split(/\s+/)),i.isArray(n)))for(const t of n)null!=t&&s.classList.add(t);else if("style"===t&&i.isPlainObject(n))for(const t in n)s.style[t]=n[t];else if("data"===t&&i.isPlainObject(n))for(const t in n)s.dataset[t]=n[t];else s.setAttribute(t,n)}function o(t){if(t instanceof HTMLElement)s.appendChild(t);else if(i.isString(t))s.appendChild(document.createTextNode(t));else if(null!=t&&!1!==t)throw new Error(expected an HTMLElement, string, false or null, got ${JSON.stringify(t)})}for(const t of n)if(i.isArray(t))for(const e of t)o(e);else o(t);return s};function o(t){const e=t.parentNode;null!=e&&e.removeChild(t)}function l(t,…e){const n=t.firstChild;for(const i of e)t.insertBefore(i,n)}function r(t,e){const n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector).call(t,e)}function c(t){return parseFloat(t)||0}function a(t){const e=getComputedStyle(t);return{border:{top:c(e.borderTopWidth),bottom:c(e.borderBottomWidth),left:c(e.borderLeftWidth),right:c(e.borderRightWidth)},margin:{top:c(e.marginTop),bottom:c(e.marginBottom),left:c(e.marginLeft),right:c(e.marginRight)},padding:{top:c(e.paddingTop),bottom:c(e.paddingBottom),left:c(e.paddingLeft),right:c(e.paddingRight)}}}function h(t){const e=t.getBoundingClientRect();return{width:Math.ceil(e.width),height:Math.ceil(e.height)}}n.createElement=function(t,e,…n){return s(t)(e,…n)},n.div=s("div"),n.span=s("span"),n.canvas=s("canvas"),n.link=s("link"),n.style=s("style"),n.a=s("a"),n.p=s("p"),n.i=s("i"),n.pre=s("pre"),n.button=s("button"),n.label=s("label"),n.input=s("input"),n.select=s("select"),n.option=s("option"),n.optgroup=s("optgroup"),n.textarea=s("textarea"),n.nbsp=function(){return document.createTextNode(" ")},n.append=function(t,…e){for(const n of e)t.appendChild(n)},n.remove=o,n.removeElement=o,n.replaceWith=function(t,e){const n=t.parentNode;null!=n&&n.replaceChild(e,t)},n.prepend=l,n.empty=function(t){let e;for(;e=t.firstChild;)t.removeChild(e)},n.display=function(t){t.style.display=""},n.undisplay=function(t){t.style.display="none"},n.show=function(t){t.style.visibility=""},n.hide=function(t){t.style.visibility="hidden"},n.offset=function(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset-document.documentElement.clientTop,left:e.left+window.pageXOffset-document.documentElement.clientLeft}},n.matches=r,n.parent=function(t,e){let n=t;for(;n=n.parentElement;)if(r(n,e))return n;return null},n.extents=a,n.size=h,n.scroll_size=function(t){return{width:Math.ceil(t.scrollWidth),height:Math.ceil(t.scrollHeight)}},n.outer_size=function(t){const{margin:{left:e,right:n,top:i,bottom:s}}=a(t),{width:o,height:l}=h(t);return{width:Math.ceil(o+e+n),height:Math.ceil(l+i+s)}},n.content_size=function(t){const{left:e,top:n}=t.getBoundingClientRect(),{padding:i}=a(t);let s=0,o=0;for(const l of t.children){const t=l.getBoundingClientRect();s=Math.max(s,Math.ceil(t.left-e-i.left+t.width)),o=Math.max(o,Math.ceil(t.top-n-i.top+t.height))}return{width:s,height:o}},n.position=function(t,e,n){const{style:i}=t;if(i.left=`${e.x}px`,i.top=`${e.y}px`,i.width=`${e.width}px`,i.height=`${e.height}px`,null==n)i.margin="";else{const{top:t,right:e,bottom:s,left:o}=n;i.margin=`${t}px ${e}px ${s}px ${o}px`}},n.children=function(t){return Array.from(t.children)};class d{constructor(t){this.el=t,this.classList=t.classList}get values(){const t=[];for(let e=0;e<this.classList.length;e++){const n=this.classList.item(e);null!=n&&t.push(n)}return t}has(t){return this.classList.contains(t)}add(…t){for(const e of t)this.classList.add(e);return this}remove(…t){for(const e of t)this.classList.remove(e);return this}clear(){for(const t of this.values)"bk"!=t&&this.classList.remove(t);return this}toggle(t,e){return(null!=e?e:!this.has(t))?this.add(t):this.remove(t),this}}var p;function u(t,e,n){const{width:i,height:s,position:o,display:l}=t.style;t.style.position="absolute",t.style.display="",t.style.width=null!=e.width&&e.width!=1/0?`${e.width}px`:"auto",t.style.height=null!=e.height&&e.height!=1/0?`${e.height}px`:"auto";try{return n()}finally{t.style.position=o,t.style.display=l,t.style.width=i,t.style.height=s}}n.ClassList=d,d.__name__="ClassList",n.classes=function(t){return new d(t)},(p=n.Keys||(n.Keys={}))[p.Backspace=8]="Backspace",p[p.Tab=9]="Tab",p[p.Enter=13]="Enter",p[p.Esc=27]="Esc",p[p.PageUp=33]="PageUp",p[p.PageDown=34]="PageDown",p[p.Left=37]="Left",p[p.Up=38]="Up",p[p.Right=39]="Right",p[p.Down=40]="Down",p[p.Delete=46]="Delete",n.undisplayed=function(t,e){const{display:n}=t.style;t.style.display="none";try{return e()}finally{t.style.display=n}},n.unsized=function(t,e){return u(t,{},e)},n.sized=u;class f{constructor(){this.style=n.style({type:"text/css"}),l(document.head,this.style)}append(t){this.style.appendChild(document.createTextNode(t))}}n.StyleSheet=f,f.__name__="StyleSheet",n.styles=new f},n function _(n,o,e){Object.defineProperty(e,"__esModule",{value:!0}),n(1).__importStar(n(66)).styles.append(".bk-root {\n position: relative;\n width: auto;\n height: auto;\n z-index: 0;\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n}\n.bk-root .bk,\n.bk-root .bk:before,\n.bk-root .bk:after {\n box-sizing: inherit;\n margin: 0;\n border: 0;\n padding: 0;\n background-image: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.42857143;\n}\n.bk-root pre.bk {\n font-family: Courier, monospace;\n}\n"),e.bk_root="bk-root"},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1).__importStar(e(18)),l=e(21);function c(e,t,a){e.moveTo(0,a+.5),e.lineTo(t,a+.5),e.stroke()}function i(e,t,a){e.moveTo(a+.5,0),e.lineTo(a+.5,t),e.stroke()}function h(e,t){e.moveTo(0,t),e.lineTo(t,0),e.stroke(),e.moveTo(0,0),e.lineTo(t,t),e.stroke()}function o(e,t,a,s){const l=a,o=l/2,n=o/2,r=function(e){const t=document.createElement("canvas");return t.width=e,t.height=e,t}(a),_=r.getContext("2d");switch(_.strokeStyle=t,_.lineCap="square",_.fillStyle=t,_.lineWidth=s,e){case" ":case"blank":break;case".":case"dot":_.arc(o,o,o/2,0,2*Math.PI,!0),_.fill();break;case"o":case"ring":_.arc(o,o,o/2,0,2*Math.PI,!0),_.stroke();break;case"-":case"horizontal_line":c(_,l,o);break;case"|\":case\"vertical_line\":i(_,l,o);break;case\"+\":case\"cross\":c(_,l,o),i(_,l,o);break;case'\"':case\"horizontal_dash\":c(_,o,o);break;case\":\":case\"vertical_dash\":i(_,o,o);break;case\"@\":case\"spiral\":const e=l/30;_.moveTo(o,o);for(let t=0;t<360;t++){const a=.1*t,s=o+e*a*Math.cos(a),l=o+e*a*Math.sin(a);_.lineTo(s,l)}_.stroke();break;case\"/\":case\"right_diagonal_line\":_.moveTo(.5-n,l),_.lineTo(n+.5,0),_.stroke(),_.moveTo(n+.5,l),_.lineTo(3*n+.5,0),_.stroke(),_.moveTo(3*n+.5,l),_.lineTo(5*n+.5,0),_.stroke(),_.stroke();break;case\"\\\\\":case\"left_diagonal_line\":_.moveTo(n+.5,l),_.lineTo(.5-n,0),_.stroke(),_.moveTo(3*n+.5,l),_.lineTo(n+.5,0),_.stroke(),_.moveTo(5*n+.5,l),_.lineTo(3*n+.5,0),_.stroke(),_.stroke();break;case\"x\":case\"diagonal_cross\":h(_,l);break;case\",\":case\"right_diagonal_dash\":_.moveTo(n+.5,3*n+.5),_.lineTo(3*n+.5,n+.5),_.stroke();break;case\"`\":case\"left_diagonal_dash\":_.moveTo(n+.5,n+.5),_.lineTo(3*n+.5,3*n+.5),_.stroke();break;case\"v\":case\"horizontal_wave\":_.moveTo(0,n),_.lineTo(o,3*n),_.lineTo(l,n),_.stroke();break;case\">\":case\"vertical_wave\":_.moveTo(n,0),_.lineTo(3*n,o),_.lineTo(n,l),_.stroke();break;case\"*\":case\"criss_cross\":h(_,l),c(_,l,o),i(_,l,o)}return r}class n{constructor(e,t=\"\"){this.obj=e,this.prefix=t,this.cache={};for(const a of this.attrs)this[a]=e.properties[t+a]}warm_cache(e){for(const t of this.attrs){const a=this.obj.properties[this.prefix+t];if(void 0!==a.spec.value)this.cache[t]=a.spec.value;else{if(null==e)throw new Error(\"source is required with a vectorized visual property\");this.cache[t+\"_array\"]=a.array(e)}}}cache_select(e,t){const a=this.obj.properties[this.prefix+e];let s;return void 0!==a.spec.value?this.cache[e]=s=a.spec.value:this.cache[e]=s=this.cache[e+\"_array\"][t],s}set_vectorize(e,t){null!=this.all_indices?this._set_vectorize(e,this.all_indices[t]):this._set_vectorize(e,t)}}a.ContextProperties=n,n.__name__=\"ContextProperties\";class r extends n{set_value(e){e.strokeStyle=this.line_color.value(),e.globalAlpha=this.line_alpha.value(),e.lineWidth=this.line_width.value(),e.lineJoin=this.line_join.value(),e.lineCap=this.line_cap.value(),e.setLineDash(this.line_dash.value()),e.setLineDashOffset(this.line_dash_offset.value())}get doit(){return!(null===this.line_color.spec.value||0==this.line_alpha.spec.value||0==this.line_width.spec.value)}_set_vectorize(e,t){this.cache_select(\"line_color\",t),e.strokeStyle!==this.cache.line_color&&(e.strokeStyle=this.cache.line_color),this.cache_select(\"line_alpha\",t),e.globalAlpha!==this.cache.line_alpha&&(e.globalAlpha=this.cache.line_alpha),this.cache_select(\"line_width\",t),e.lineWidth!==this.cache.line_width&&(e.lineWidth=this.cache.line_width),this.cache_select(\"line_join\",t),e.lineJoin!==this.cache.line_join&&(e.lineJoin=this.cache.line_join),this.cache_select(\"line_cap\",t),e.lineCap!==this.cache.line_cap&&(e.lineCap=this.cache.line_cap),this.cache_select(\"line_dash\",t),e.getLineDash()!==this.cache.line_dash&&e.setLineDash(this.cache.line_dash),this.cache_select(\"line_dash_offset\",t),e.getLineDashOffset()!==this.cache.line_dash_offset&&e.setLineDashOffset(this.cache.line_dash_offset)}color_value(){const[e,t,a,s]=l.color2rgba(this.line_color.value(),this.line_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Line=r,r.__name__=\"Line\",r.prototype.attrs=Object.keys(s.line());class _ extends n{set_value(e){e.fillStyle=this.fill_color.value(),e.globalAlpha=this.fill_alpha.value()}get doit(){return!(null===this.fill_color.spec.value||0==this.fill_alpha.spec.value)}_set_vectorize(e,t){this.cache_select(\"fill_color\",t),e.fillStyle!==this.cache.fill_color&&(e.fillStyle=this.cache.fill_color),this.cache_select(\"fill_alpha\",t),e.globalAlpha!==this.cache.fill_alpha&&(e.globalAlpha=this.cache.fill_alpha)}color_value(){const[e,t,a,s]=l.color2rgba(this.fill_color.value(),this.fill_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Fill=_,_.__name__=\"Fill\",_.prototype.attrs=Object.keys(s.fill());class p extends n{cache_select(e,t){let a;if(\"pattern\"==e){this.cache_select(\"hatch_color\",t),this.cache_select(\"hatch_scale\",t),this.cache_select(\"hatch_pattern\",t),this.cache_select(\"hatch_weight\",t);const{hatch_color:e,hatch_scale:a,hatch_pattern:s,hatch_weight:l,hatch_extra:c}=this.cache;if(null!=c&&c.hasOwnProperty(s)){const t=c[s];this.cache.pattern=t.get_pattern(e,a,l)}else this.cache.pattern=t=>{const c=o(s,e,a,l);return t.createPattern(c,\"repeat\")}}else a=super.cache_select(e,t);return a}_try_defer(e){const{hatch_pattern:t,hatch_extra:a}=this.cache;if(null!=a&&a.hasOwnProperty(t)){a[t].onload(e)}}get doit(){return!(null===this.hatch_color.spec.value||0==this.hatch_alpha.spec.value||" "==this.hatch_pattern.spec.value||"blank"==this.hatch_pattern.spec.value||null===this.hatch_pattern.spec.value)}doit2(e,t,a,s){if(!this.doit)return;this.cache_select("pattern",t),null==this.cache.pattern(e)?this._try_defer(s):(this.set_vectorize(e,t),a())}_set_vectorize(e,t){this.cache_select("pattern",t),e.fillStyle=this.cache.pattern(e),this.cache_select("hatch_alpha",t),e.globalAlpha!==this.cache.hatch_alpha&&(e.globalAlpha=this.cache.hatch_alpha)}color_value(){const[e,t,a,s]=l.color2rgba(this.hatch_color.value(),this.hatch_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}}a.Hatch=p,p.__name__="Hatch",p.prototype.attrs=Object.keys(s.hatch());class u extends n{cache_select(e,t){let a;if("font"==e){super.cache_select("text_font_style",t),super.cache_select("text_font_size",t),super.cache_select("text_font",t);const{text_font_style:e,text_font_size:s,text_font:l}=this.cache;this.cache.font=a=`${e} ${s} ${l}`}else a=super.cache_select(e,t);return a}font_value(){const e=this.text_font.value(),t=this.text_font_size.value();return this.text_font_style.value()+" "+t+" "+e}color_value(){const[e,t,a,s]=l.color2rgba(this.text_color.value(),this.text_alpha.value());return`rgba(${255*e},${255*t},${255*a},${s})`}set_value(e){e.font=this.font_value(),e.fillStyle=this.text_color.value(),e.globalAlpha=this.text_alpha.value(),e.textAlign=this.text_align.value(),e.textBaseline=this.text_baseline.value()}get doit(){return!(null===this.text_color.spec.value||0==this.text_alpha.spec.value)}_set_vectorize(e,t){this.cache_select("font",t),e.font!==this.cache.font&&(e.font=this.cache.font),this.cache_select("text_color",t),e.fillStyle!==this.cache.text_color&&(e.fillStyle=this.cache.text_color),this.cache_select("text_alpha",t),e.globalAlpha!==this.cache.text_alpha&&(e.globalAlpha=this.cache.text_alpha),this.cache_select("text_align",t),e.textAlign!==this.cache.text_align&&(e.textAlign=this.cache.text_align),this.cache_select("text_baseline",t),e.textBaseline!==this.cache.text_baseline&&(e.textBaseline=this.cache.text_baseline)}}a.Text=u,u.__name__="Text",u.prototype.attrs=Object.keys(s.text());class f{constructor(e){for(const t of e.mixins){const[a,s=""]=t.split(":");let l;switch(a){case"line":l=r;break;case"fill":l=_;break;case"hatch":l=p;break;case"text":l=u;break;default:throw new Error(unknown visual: ${a})}this[s+a]=new l(e,s)}}warm_cache(e){for(const t in this)if(this.hasOwnProperty(t)){const a=this[t];a instanceof n&&a.warm_cache(e)}}set_all_indices(e){for(const t in this)if(this.hasOwnProperty(t)){const a=this[t];a instanceof n&&(a.all_indices=e)}}}a.Visuals=f,f.__name__="Visuals"},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),c=e(13),r=n.__importStar(e(19)),a=e(8),i=e(24),o=e(70);class _ extends c.HasProps{constructor(e){super(e)}static init_Model(){this.define({tags:[r.Array,[]],name:[r.String],js_property_callbacks:[r.Any,{}],js_event_callbacks:[r.Any,{}],subscribed_events:[r.Array,[]]})}connect_signals(){super.connect_signals(),this._update_property_callbacks(),this.connect(this.properties.js_property_callbacks.change,()=>this._update_property_callbacks()),this.connect(this.properties.js_event_callbacks.change,()=>this._update_event_callbacks()),this.connect(this.properties.subscribed_events.change,()=>this._update_event_callbacks())}_process_event(e){for(const t of this.js_event_callbacks[e.event_name]||[])t.execute(e);null!=this.document&&this.subscribed_events.some(t=>t==e.event_name)&&this.document.event_manager.send_event(e)}trigger_event(e){null!=this.document&&(e.origin=this,this.document.event_manager.trigger(e))}_update_event_callbacks(){null!=this.document?this.document.event_manager.subscribed_models.add(this.id):o.logger.warn("WARNING: Document not defined for updating event callbacks")}_update_property_callbacks(){const e=e=>{const[t,s=null]=e.split(":");return null!=s?this.properties[s][t]:this[t]};for(const t in this._js_callbacks){const s=this._js_callbacks[t],n=e(t);for(const e of s)this.disconnect(n,e)}this._js_callbacks={};for(const t in this.js_property_callbacks){const s=this.js_property_callbacks[t].map(e=>()=>e.execute(this));this._js_callbacks[t]=s;const n=e(t);for(const e of s)this.connect(n,e)}}_doc_attached(){i.isEmpty(this.js_event_callbacks)&&i.isEmpty(this.subscribed_events)||this._update_event_callbacks()}select(e){if(a.isString(e))return this.references().filter(t=>t instanceof _&&t.name===e);if(e.prototype instanceof c.HasProps)return this.references().filter(t=>t instanceof e);throw new Error("invalid selector")}select_one(e){const t=this.select(e);switch(t.length){case 0:return null;case 1:return t[0];default:throw new Error("found more than one object matching given selector")}}}s.Model=_,_.__name__="Model",_.init_Model()},n function _(e,l,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(8),t={};class s{constructor(e,l){this.name=e,this.level=l}}o.LogLevel=s,s.__name__="LogLevel";class g{constructor(e,l=g.INFO){this._name=e,this.set_level(l)}static get levels(){return Object.keys(g.log_levels)}static get(e,l=g.INFO){if(e.length>0){let o=t[e];return null==o&&(t[e]=o=new g(e,l)),o}throw new TypeError("Logger.get() expects a non-empty string name and an optional log-level")}get level(){return this.get_level()}get_level(){return this._log_level}set_level(e){if(e instanceof s)this._log_level=e;else{if(!n.isString(e)||null==g.log_levels[e])throw new Error("Logger.set_level() expects a log-level object or a string name of a log-level");this._log_level=g.log_levels[e]}const l=`[${this._name}]`;for(const e in g.log_levels){g.log_levels[e].level<this._log_level.level||this._log_level.level===g.OFF.level?this[e]=function(){}:this[e]=r(e,l)}}trace(…e){}debug(…e){}info(…e){}warn(…e){}error(…e){}}function r(e,l){return null!=console[e]?console[e].bind(console,l):null!=console.log?console.log.bind(console,l):function(){}}function i(e){const l=o.logger.level;return n.isString(e)&&null==g.log_levels[e]?(console.log([bokeh] unrecognized logging level ‘${e}’ passed to Bokeh.set_log_level(), ignoring),console.log([bokeh] valid log levels are: ${g.levels.join(", ")})):(console.log([bokeh] setting log level to: ‘${n.isString(e)?e:e.level}’),o.logger.set_level(e)),l}o.Logger=g,g.__name__="Logger",g.TRACE=new s("trace",0),g.DEBUG=new s("debug",1),g.INFO=new s("info",2),g.WARN=new s("warn",6),g.ERROR=new s("error",7),g.FATAL=new s("fatal",8),g.OFF=new s("off",9),g.log_levels={trace:g.TRACE,debug:g.DEBUG,info:g.INFO,warn:g.WARN,error:g.ERROR,fatal:g.FATAL,off:g.OFF},o.logger=g.get("bokeh"),o.set_log_level=i,o.with_log_level=function(e,l){const o=i(e);try{l()}finally{i(o)}}},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),a=t(29),n=t(72),r=t(73),o=i.__importStar(t(19)),_=t(10);class l extends a.AnnotationView{initialize(){super.initialize(),null==this.model.source&&(this.model.source=new r.ColumnDataSource),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.set_data(this.model.source)),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source))}set_data(t){super.set_data(t),this.visuals.warm_cache(t),this.plot_view.request_render()}_map_data(){const{frame:t}=this.plot_view;let e,s,i,a;return"data"==this.model.start_units?(e=t.xscales[this.model.x_range_name].v_compute(this._x_start),s=t.yscales[this.model.y_range_name].v_compute(this._y_start)):(e=t.xview.v_compute(this._x_start),s=t.yview.v_compute(this._y_start)),"data"==this.model.end_units?(i=t.xscales[this.model.x_range_name].v_compute(this._x_end),a=t.yscales[this.model.y_range_name].v_compute(this._y_end)):(i=t.xview.v_compute(this._x_end),a=t.yview.v_compute(this._y_end)),[[e,s],[i,a]]}render(){if(!this.model.visible)return;const{ctx:t}=this.plot_view.canvas_view;t.save();const[e,s]=this._map_data();null!=this.model.end&&this._arrow_head(t,"render",this.model.end,e,s),null!=this.model.start&&this._arrow_head(t,"render",this.model.start,s,e),t.beginPath();const{x:i,y:a,width:n,height:r}=this.plot_view.frame.bbox;t.rect(i,a,n,r),null!=this.model.end&&this._arrow_head(t,"clip",this.model.end,e,s),null!=this.model.start&&this._arrow_head(t,"clip",this.model.start,s,e),t.closePath(),t.clip(),this._arrow_body(t,e,s),t.restore()}_arrow_head(t,e,s,i,a){for(let n=0,r=this._x_start.length;n<r;n++){const r=Math.PI/2+_.atan2([i[0][n],i[1][n]],[a[0][n],a[1][n]]);t.save(),t.translate(a[0][n],a[1][n]),t.rotate(r),"render"==e?s.render(t,n):"clip"==e&&s.clip(t,n),t.restore()}}_arrow_body(t,e,s){if(this.visuals.line.doit)for(let i=0,a=this._x_start.length;i<a;i++)this.visuals.line.set_vectorize(t,i),t.beginPath(),t.moveTo(e[0][i],e[1][i]),t.lineTo(s[0][i],s[1][i]),t.stroke()}}s.ArrowView=l,l.__name__="ArrowView";class h extends a.Annotation{constructor(t){super(t)}static init_Arrow(){this.prototype.default_view=l,this.mixins(["line"]),this.define({x_start:[o.NumberSpec],y_start:[o.NumberSpec],start_units:[o.SpatialUnits,"data"],start:[o.Instance,null],x_end:[o.NumberSpec],y_end:[o.NumberSpec],end_units:[o.SpatialUnits,"data"],end:[o.Instance,()=>new n.OpenHead({})],source:[o.Instance],x_range_name:[o.String,"default"],y_range_name:[o.String,"default"]})}}s.Arrow=h,h.__name__="Arrow",h.init_Arrow()},n function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),l=i(29),n=i(68),o=t.__importStar(i(19));class h extends l.Annotation{constructor(i){super(i)}static init_ArrowHead(){this.define({size:[o.Number,25]})}initialize(){super.initialize(),this.visuals=new n.Visuals(this)}}s.ArrowHead=h,h.__name__="ArrowHead",h.init_ArrowHead();class a extends h{constructor(i){super(i)}static init_OpenHead(){this.mixins(["line"])}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(0,0),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.stroke())}}s.OpenHead=a,a.__name__="OpenHead",a.init_OpenHead();class r extends h{constructor(i){super(i)}static init_NormalHead(){this.mixins(["line","fill"]),this.override({fill_color:"black"})}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(i,e),this._normal(i,e),i.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),this._normal(i,e),i.stroke())}_normal(i,e){i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.closePath()}}s.NormalHead=r,r.__name__="NormalHead",r.init_NormalHead();class z extends h{constructor(i){super(i)}static init_VeeHead(){this.mixins(["line","fill"]),this.override({fill_color:"black"})}clip(i,e){this.visuals.line.set_vectorize(i,e),i.moveTo(.5*this.size,this.size),i.lineTo(.5*this.size,-2),i.lineTo(-.5*this.size,-2),i.lineTo(-.5*this.size,this.size),i.lineTo(0,.5*this.size),i.lineTo(.5*this.size,this.size)}render(i,e){this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(i,e),this._vee(i,e),i.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),this._vee(i,e),i.stroke())}_vee(i,e){i.beginPath(),i.moveTo(.5*this.size,this.size),i.lineTo(0,0),i.lineTo(-.5*this.size,this.size),i.lineTo(0,.5*this.size),i.closePath()}}s.VeeHead=z,z.__name__="VeeHead",z.init_VeeHead();class _ extends h{constructor(i){super(i)}static init_TeeHead(){this.mixins(["line"])}render(i,e){this.visuals.line.doit&&(this.visuals.line.set_vectorize(i,e),i.beginPath(),i.moveTo(.5*this.size,0),i.lineTo(-.5*this.size,0),i.stroke())}clip(i,e){}}s.TeeHead=_,_.__name__="TeeHead",_.init_TeeHead()},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const s=t(1),a=t(74),o=t(13),i=s.__importStar(t(19)),r=t(15),l=t(100),u=t(8),c=s.__importStar(t(102)),_=t(24),h=t(103);function d(t,e,n){if(u.isArray(t)){const s=t.concat(e);return null!=n&&s.length>n?s.slice(-n):s}if(u.isTypedArray(t)){const s=t.length+e.length;if(null!=n&&s>n){const a=s-n,o=t.length;let i;t.length<n?(i=new t.constructor(n),i.set(t,0)):i=t;for(let t=a,e=o;t<e;t++)i[t-a]=i[t];for(let t=0,n=e.length;t<n;t++)i[t+(o-a)]=e[t];return i}{const n=new t.constructor(e);return c.concat(t,n)}}throw new Error("unsupported array types")}function m(t,e){let n,s,a;return u.isNumber(t)?(n=t,a=t+1,s=1):(n=null!=t.start?t.start:0,a=null!=t.stop?t.stop:e,s=null!=t.step?t.step:1),[n,a,s]}function f(t,e,n){const s=new r.Set;let a=!1;for(const[o,i]of e){let e,r,l,c;if(u.isArray(o)){const[a]=o;s.add(a),r=n[a],e=t[a],c=i,2===o.length?(r=[1,r[0]],l=[o[0],0,o[1]]):l=o}else u.isNumber(o)?(c=[i],s.add(o)):(c=i,a=!0),l=[0,0,o],r=[1,t.length],e=t;let _=0;const[h,d,f]=m(l[1],r[0]),[p,g,y]=m(l[2],r[1]);for(let t=h;t<d;t+=f)for(let n=p;n<g;n+=y)a&&s.add(n),e[t*r[1]+n]=c[_],_++}return s}n.stream_to_column=d,n.slice=m,n.patch_to_column=f;class p extends a.ColumnarDataSource{constructor(t){super(t)}static init_ColumnDataSource(){this.define({data:[i.Any,{}]})}initialize(){super.initialize(),[this.data,this._shapes]=l.decode_column_data(this.data)}attributes_as_json(t=!0,e=p._value_to_json){const n={},s=this.serializable_attributes();for(const e of _.keys(s)){let a=s[e];"data"===e&&(a=l.encode_column_data(a,this._shapes)),(t||e in this._set_after_defaults)&&(n[e]=a)}return e("attributes",n,this)}static _value_to_json(t,e,n){return u.isPlainObject(e)&&"data"===t?l.encode_column_data(e,n._shapes):o.HasProps._value_to_json(t,e,n)}stream(t,e,n){const{data:s}=this;for(const n in t)s[n]=d(s[n],t[n],e);if(this.setv({data:s},{silent:!0}),this.streaming.emit(),null!=this.document){const s=new h.ColumnsStreamedEvent(this.document,this.ref(),t,e);this.document._notify_change(this,"data",null,null,{setter_id:n,hint:s})}}patch(t,e){const{data:n}=this;let s=new r.Set;for(const e in t){const a=t[e];s=s.union(f(n[e],a,this._shapes[e]))}if(this.setv({data:n},{silent:!0}),this.patching.emit(s.values),null!=this.document){const n=new h.ColumnsPatchedEvent(this.document,this.ref(),t);this.document._notify_change(this,"data",null,null,{setter_id:e,hint:n})}}}n.ColumnDataSource=p,p.__name__="ColumnDataSource",p.init_ColumnDataSource()},n function _(t,n,e){Object.defineProperty(e,"__esModule",{value:!0});const a=t(1),s=t(75),i=t(14),r=t(70),c=t(77),l=a.__importStar(t(19)),o=t(8),u=t(9),h=t(24),g=t(76),_=t(99);class d extends s.DataSource{constructor(t){super(t)}get_array(t){let n=this.data[t];return null==n?this.data[t]=n=[]:o.isArray(n)||(this.data[t]=n=Array.from(n)),n}static init_ColumnarDataSource(){this.define({selection_policy:[l.Instance,()=>new _.UnionRenderers]}),this.internal({selection_manager:[l.Instance,t=>new c.SelectionManager({source:t})],inspected:[l.Instance,()=>new g.Selection],_shapes:[l.Any,{}]})}initialize(){super.initialize(),this._select=new i.Signal0(this,"select"),this.inspect=new i.Signal(this,"inspect"),this.streaming=new i.Signal0(this,"streaming"),this.patching=new i.Signal(this,"patching")}get_column(t){const n=this.data[t];return null!=n?n:null}columns(){return h.keys(this.data)}get_length(t=!0){const n=u.uniq(h.values(this.data).map(t=>t.length));switch(n.length){case 0:return null;case 1:return n[0];default:{const e="data source has columns of inconsistent lengths";if(t)return r.logger.warn(e),n.sort()[0];throw new Error(e)}}}get_indices(){const t=this.get_length();return u.range(0,null!=t?t:1)}clear(){const t={};for(const n of this.columns())t[n]=new this.data[n].constructor(0);this.data=t}}e.ColumnarDataSource=d,d.__name__="ColumnarDataSource",d.init_ColumnarDataSource()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const c=e(1),n=e(69),o=e(76),i=c.__importStar(e(19));class r extends n.Model{constructor(e){super(e)}static init_DataSource(){this.define({selected:[i.Instance,()=>new o.Selection]})}}a.DataSource=r,r.__name__="DataSource",r.init_DataSource()},n function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),n=i(69),l=t.__importStar(i(19)),_=i(9),h=i(24);class c extends n.Model{constructor(i){super(i)}static init_Selection(){this.define({indices:[l.Array,[]],line_indices:[l.Array,[]],multiline_indices:[l.Any,{}]}),this.internal({final:[l.Boolean],selected_glyphs:[l.Array,[]],get_view:[l.Any],image_indices:[l.Array,[]]})}initialize(){super.initialize(),this.get_view=()=>null}get selected_glyph(){return this.selected_glyphs.length>0?this.selected_glyphs[0]:null}add_to_selected_glyphs(i){this.selected_glyphs.push(i)}update(i,e,s){this.final=e,s?this.update_through_union(i):(this.indices=i.indices,this.line_indices=i.line_indices,this.selected_glyphs=i.selected_glyphs,this.get_view=i.get_view,this.multiline_indices=i.multiline_indices,this.image_indices=i.image_indices)}clear(){this.final=!0,this.indices=[],this.line_indices=[],this.multiline_indices={},this.get_view=()=>null,this.selected_glyphs=[]}is_empty(){return 0==this.indices.length&&0==this.line_indices.length&&0==this.image_indices.length}update_through_union(i){this.indices=_.union(i.indices,this.indices),this.selected_glyphs=_.union(i.selected_glyphs,this.selected_glyphs),this.line_indices=_.union(i.line_indices,this.line_indices),this.get_view()||(this.get_view=i.get_view),this.multiline_indices=h.merge(i.multiline_indices,this.multiline_indices)}update_through_intersection(i){this.indices=_.intersection(i.indices,this.indices),this.selected_glyphs=_.union(i.selected_glyphs,this.selected_glyphs),this.line_indices=_.union(i.line_indices,this.line_indices),this.get_view()||(this.get_view=i.get_view),this.multiline_indices=h.merge(i.multiline_indices,this.multiline_indices)}}s.Selection=c,c.__name__="Selection",c.init_Selection()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(13),o=e(76),c=e(78),r=e(97),l=s.__importStar(e(19));class _ extends n.HasProps{constructor(e){super(e),this.inspectors={}}static init_SelectionManager(){this.internal({source:[l.Any]})}select(e,t,i,s=!1){const n=[],o=[];for(const t of e)t instanceof c.GlyphRendererView?n.push(t):t instanceof r.GraphRendererView&&o.push(t);let l=!1;for(const e of o){const n=e.model.selection_policy.hit_test(t,e);l=l||e.model.selection_policy.do_selection(n,e.model,i,s)}if(n.length>0){const e=this.source.selection_policy.hit_test(t,n);l=l||this.source.selection_policy.do_selection(e,this.source,i,s)}return l}inspect(e,t){let i=!1;if(e instanceof c.GlyphRendererView){const s=e.hit_test(t);if(null!=s){i=!s.is_empty();const n=this.get_or_create_inspector(e.model);n.update(s,!0,!1),this.source.setv({inspected:n},{silent:!0}),this.source.inspect.emit([e,{geometry:t}])}}else if(e instanceof r.GraphRendererView){const s=e.model.inspection_policy.hit_test(t,e);i=i||e.model.inspection_policy.do_inspection(s,t,e,!1,!1)}return i}clear(e){this.source.selected.clear(),null!=e&&this.get_or_create_inspector(e.model).clear()}get_or_create_inspector(e){return null==this.inspectors[e.id]&&(this.inspectors[e.id]=new o.Selection),this.inspectors[e.id]}}i.SelectionManager=_,_.__name__="SelectionManager",_.init_SelectionManager()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=e(79),n=e(80),h=e(91),o=e(92),a=e(94),r=e(95),_=e(70),d=s.__importStar(e(19)),c=e(12),g=e(9),p=e(24),y=e(96),u=e(88),m={fill:{},line:{}},v={fill:{fill_alpha:.3,fill_color:"grey"},line:{line_alpha:.3,line_color:"grey"}},f={fill:{fill_alpha:.2},line:{}};class w extends l.DataRendererView{async lazy_initialize(){await super.lazy_initialize();const e=this.model.glyph,t=g.includes(e.mixins,"fill"),i=g.includes(e.mixins,"line"),s=p.clone(e.attributes);function l(l){const n=p.clone(s);return t&&p.extend(n,l.fill),i&&p.extend(n,l.line),new e.constructor(n)}delete s.id,this.glyph=await this.build_glyph_view(e);let{selection_glyph:n}=this.model;null==n?n=l({fill:{},line:{}}):"auto"===n&&(n=l(m)),this.selection_glyph=await this.build_glyph_view(n);let{nonselection_glyph:h}=this.model;null==h?h=l({fill:{},line:{}}):"auto"===h&&(h=l(f)),this.nonselection_glyph=await this.build_glyph_view(h);const{hover_glyph:o}=this.model;null!=o&&(this.hover_glyph=await this.build_glyph_view(o));const{muted_glyph:a}=this.model;null!=a&&(this.muted_glyph=await this.build_glyph_view(a));const r=l(v);this.decimated_glyph=await this.build_glyph_view(r),this.xscale=this.plot_view.frame.xscales[this.model.x_range_name],this.yscale=this.plot_view.frame.yscales[this.model.y_range_name],this.set_data(!1)}async build_glyph_view(e){return y.build_view(e,{parent:this})}remove(){var e,t;this.glyph.remove(),this.selection_glyph.remove(),this.nonselection_glyph.remove(),null===(e=this.hover_glyph)||void 0===e||e.remove(),null===(t=this.muted_glyph)||void 0===t||t.remove(),this.decimated_glyph.remove(),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render()),this.connect(this.model.glyph.change,()=>this.set_data()),this.connect(this.model.data_source.change,()=>this.set_data()),this.connect(this.model.data_source.streaming,()=>this.set_data()),this.connect(this.model.data_source.patching,e=>this.set_data(!0,e)),this.connect(this.model.data_source.selected.change,()=>this.request_render()),this.connect(this.model.data_source._select,()=>this.request_render()),null!=this.hover_glyph&&this.connect(this.model.data_source.inspect,()=>this.request_render()),this.connect(this.model.properties.view.change,()=>this.set_data()),this.connect(this.model.view.change,()=>this.set_data()),this.connect(this.model.properties.visible.change,()=>this.plot_view.update_dataranges());const{x_ranges:e,y_ranges:t}=this.plot_view.frame;for(const t in e){const i=e[t];i instanceof u.FactorRange&&this.connect(i.change,()=>this.set_data())}for(const e in t){const i=t[e];i instanceof u.FactorRange&&this.connect(i.change,()=>this.set_data())}this.connect(this.model.glyph.transformchange,()=>this.set_data())}have_selection_glyphs(){return null!=this.selection_glyph&&null!=this.nonselection_glyph}set_data(e=!0,t=null){const i=Date.now(),s=this.model.data_source;this.all_indices=this.model.view.indices,this.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0}),this.glyph.set_data(s,this.all_indices,t),this.glyph.set_visuals(s),this.decimated_glyph.set_visuals(s),this.have_selection_glyphs()&&(this.selection_glyph.set_visuals(s),this.nonselection_glyph.set_visuals(s)),null!=this.hover_glyph&&this.hover_glyph.set_visuals(s),null!=this.muted_glyph&&this.muted_glyph.set_visuals(s);const{lod_factor:l}=this.plot_model;this.decimated=[];for(let e=0,t=Math.floor(this.all_indices.length/l);e<t;e++)this.decimated.push(e*l);const n=Date.now()-i;_.logger.debug(${this.glyph.model.type} GlyphRenderer (${this.model.id}): set_data finished in ${n}ms),this.set_data_timestamp=Date.now(),e&&this.request_render()}get has_webgl(){return this.glyph.has_webgl}render(){if(!this.model.visible)return;const e=Date.now(),t=this.has_webgl;this.glyph.map_data();const i=Date.now()-e,s=Date.now();let l=this.glyph.mask_data(this.all_indices);l.length===this.all_indices.length&&(l=g.range(0,this.all_indices.length));const r=Date.now()-s,{ctx:d}=this.plot_view.canvas_view;d.save();const{selected:p}=this.model.data_source;let y;y=!p||p.is_empty()?[]:this.glyph instanceof n.LineView&&p.selected_glyph===this.glyph.model?this.model.view.convert_indices_from_subset(l):p.indices;const{inspected:u}=this.model.data_source,m=new Set((()=>!u||u.is_empty()?[]:u.selected_glyph?this.model.view.convert_indices_from_subset(l):u.indices.length>0?u.indices:c.map(Object.keys(u.multiline_indices),e=>parseInt(e)))()),v=c.filter(l,e=>m.has(this.all_indices[e])),{lod_threshold:f}=this.plot_model;let w,b,x;null!=this.model.document&&this.model.document.interactive_duration()>0&&!t&&null!=f&&this.all_indices.length>f?(l=this.decimated,w=this.decimated_glyph,b=this.decimated_glyph,x=this.selection_glyph):(w=this.model.muted&&null!=this.muted_glyph?this.muted_glyph:this.glyph,b=this.nonselection_glyph,x=this.selection_glyph),null!=this.hover_glyph&&v.length&&(l=g.difference(l,v));let D,R=null;if(y.length&&this.have_selection_glyphs()){const e=Date.now(),t={};for(const e of y)t[e]=!0;const i=new Array,s=new Array;if(this.glyph instanceof n.LineView)for(const e of this.all_indices)null!=t[e]?i.push(e):s.push(e);else for(const e of l)null!=t[this.all_indices[e]]?i.push(e):s.push(e);R=Date.now()-e,D=Date.now(),b.render(d,s,this.glyph),x.render(d,i,this.glyph),null!=this.hover_glyph&&(this.glyph instanceof n.LineView?this.hover_glyph.render(d,this.model.view.convert_indices_from_subset(v),this.glyph):this.hover_glyph.render(d,v,this.glyph))}else if(D=Date.now(),this.glyph instanceof n.LineView)this.hover_glyph&&v.length?this.hover_glyph.render(d,this.model.view.convert_indices_from_subset(v),this.glyph):w.render(d,this.all_indices,this.glyph);else if(this.glyph instanceof h.PatchView||this.glyph instanceof o.HAreaView||this.glyph instanceof a.VAreaView)if(0==u.selected_glyphs.length||null==this.hover_glyph)w.render(d,this.all_indices,this.glyph);else for(const e of u.selected_glyphs)e.id==this.glyph.model.id&&this.hover_glyph.render(d,this.all_indices,this.glyph);else w.render(d,l,this.glyph),this.hover_glyph&&v.length&&this.hover_glyph.render(d,v,this.glyph);const V=Date.now()-D;this.last_dtrender=V;const $=Date.now()-e;_.logger.debug(${this.glyph.model.type} GlyphRenderer (${this.model.id}): render finished in ${$}ms),_.logger.trace(` - map_data finished in : ${i}ms`),_.logger.trace(` - mask_data finished in : ${r}ms`),null!=R&&_.logger.trace(` - selection mask finished in : ${R}ms`),_.logger.trace(` - glyph renders finished in : ${V}ms`),d.restore()}draw_legend(e,t,i,s,l,n,h,o){null==o&&(o=this.model.get_reference_point(n,h)),this.glyph.draw_legend_for_index(e,{x0:t,x1:i,y0:s,y1:l},o)}hit_test(e){if(!this.model.visible)return null;const t=this.glyph.hit_test(e);return null==t?null:this.model.view.convert_selection_from_subset(t)}}i.GlyphRendererView=w,w.__name__="GlyphRendererView";class b extends l.DataRenderer{constructor(e){super(e)}static init_GlyphRenderer(){this.prototype.default_view=w,this.define({data_source:[d.Instance],view:[d.Instance,()=>new r.CDSView],glyph:[d.Instance],hover_glyph:[d.Instance],nonselection_glyph:[d.Any,"auto"],selection_glyph:[d.Any,"auto"],muted_glyph:[d.Instance],muted:[d.Boolean,!1]})}initialize(){super.initialize(),null==this.view.source&&(this.view.source=this.data_source,this.view.compute_indices())}get_reference_point(e,t){let i=0;if(null!=e){const s=this.data_source.get_column(e);if(null!=s){const e=c.indexOf(s,t);-1!=e&&(i=e)}}return i}get_selection_manager(){return this.data_source.selection_manager}}i.GlyphRenderer=b,b.__name__="GlyphRenderer",b.init_GlyphRenderer()},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),a=e(63),_=t.__importStar(e(19));class i extends a.RendererView{}n.DataRendererView=i,i.__name__="DataRendererView";class d extends a.Renderer{constructor(e){super(e)}static init_DataRenderer(){this.define({x_range_name:[_.String,"default"],y_range_name:[_.String,"default"]}),this.override({level:"glyph"})}}n.DataRenderer=d,d.__name__="DataRenderer",d.init_DataRenderer()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(81),_=e(90),l=s.__importStar(e(87));class r extends n.XYGlyphView{_render(e,t,{sx:i,sy:s}){let n=!1,_=null;this.visuals.line.set_value(e);for(const l of t){if(n){if(!isFinite(i[l]+s[l])){e.stroke(),e.beginPath(),n=!1,_=l;continue}null!=_&&l-_>1&&(e.stroke(),n=!1)}n?e.lineTo(i[l],s[l]):(e.beginPath(),e.moveTo(i[l],s[l]),n=!0),_=l}n&&e.stroke()}_hit_point(e){const t=l.create_empty_hit_test_result(),i={x:e.sx,y:e.sy};let s=9999;const n=Math.max(2,this.visuals.line.line_width.value()/2);for(let e=0,_=this.sx.length-1;e<_;e++){const _={x:this.sx[e],y:this.sy[e]},r={x:this.sx[e+1],y:this.sy[e+1]},h=l.dist_to_segment(i,_,r);h<n&&h<s&&(s=h,t.add_to_selected_glyphs(this.model),t.get_view=()=>this,t.line_indices=[e])}return t}_hit_span(e){const{sx:t,sy:i}=e,s=l.create_empty_hit_test_result();let n,_;"v"==e.direction?(n=this.renderer.yscale.invert(i),_=this._y):(n=this.renderer.xscale.invert(t),_=this._x);for(let e=0,t=_.length-1;e<t;e++)(_[e]<=n&&n<=_[e+1]||_[e+1]<=n&&n<=_[e])&&(s.add_to_selected_glyphs(this.model),s.get_view=()=>this,s.line_indices.push(e));return s}get_interpolation_hit(e,t){const[i,s,n,l]=[this._x[e],this._y[e],this._x[e+1],this._y[e+1]];return _.line_interpolation(this.renderer,t,i,s,n,l)}draw_legend_for_index(e,t,i){_.generic_line_legend(this.visuals,e,t,i)}}i.LineView=r,r.__name__="LineView";class h extends n.XYGlyph{constructor(e){super(e)}static init_Line(){this.prototype.default_view=r,this.mixins(["line"])}}i.Line=h,h.__name__="Line",h.init_Line()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(82),n=e(86);class _ extends n.GlyphView{_index_data(){const e=[];for(let t=0,s=this._x.length;t<s;t++){const s=this._x[t],i=this._y[t];!isNaN(s+i)&&isFinite(s+i)&&e.push({x0:s,y0:i,x1:s,y1:i,i:t})}return new i.SpatialIndex(e)}scenterx(e){return this.sx[e]}scentery(e){return this.sy[e]}}s.XYGlyphView=_,_.__name__="XYGlyphView";class h extends n.Glyph{constructor(e){super(e)}static init_XYGlyph(){this.coords([["x","y"]])}}s.XYGlyph=h,h.__name__="XYGlyph",h.init_XYGlyph()},n function _(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=n(1).__importDefault(n(83)),s=n(85);class r{constructor(n){if(this.points=n,this.index=null,n.length>0){this.index=new e.default(n.length);for(const t of n){const{x0:n,y0:i,x1:e,y1:s}=t;this.index.add(n,i,e,s)}this.index.finish()}}_normalize(n){let{x0:t,y0:i,x1:e,y1:s}=n;return t>e&&([t,e]=[e,t]),i>s&&([i,s]=[s,i]),{x0:t,y0:i,x1:e,y1:s}}get bbox(){if(null==this.index)return s.empty();{const{minX:n,minY:t,maxX:i,maxY:e}=this.index;return{x0:n,y0:t,x1:i,y1:e}}}search(n){if(null==this.index)return[];{const{x0:t,y0:i,x1:e,y1:s}=this._normalize(n);return this.index.search(t,i,e,s).map(n=>this.points[n])}}indices(n){return this.search(n).map(({i:n})=>n)}}i.SpatialIndex=r,r.__name__="SpatialIndex"},n function _(t,s,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1).__importDefault(t(84)),h=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class n{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[s,i]=new Uint8Array(t,0,2);if(251!==s)throw new Error("Data does not appear to be in a Flatbush format.");if(i>>4!=3)throw new Error(Got v${i>>4} data when expected v3.);const[e]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new n(o,e,h[15&i],t)}constructor(t,s=16,i=Float64Array,n){if(void 0===t)throw new Error("Missing required argument: numItems.");if(isNaN(t)||t<=0)throw new Error(Unpexpected numItems value: ${t}.);this.numItems=+t,this.nodeSize=Math.min(Math.max(+s,2),65535);let o=t,r=o;this._levelBounds=[4*o];do{o=Math.ceil(o/this.nodeSize),r+=o,this._levelBounds.push(4*r)}while(1!==o);this.ArrayType=i||Float64Array,this.IndexArrayType=r<16384?Uint16Array:Uint32Array;const a=h.indexOf(this.ArrayType),_=4*r*this.ArrayType.BYTES_PER_ELEMENT;if(a<0)throw new Error(Unexpected typed array class: ${i}.);n&&n instanceof ArrayBuffer?(this.data=n,this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),this._pos=4*r,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new ArrayBuffer(8+_+r*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+a]),new Uint16Array(this.data,2,1)[0]=s,new Uint32Array(this.data,4,1)[0]=t),this._queue=new e.default}add(t,s,i,e){const h=this._pos>>2;return this._indices[h]=h,this._boxes[this._pos++]=t,this._boxes[this._pos++]=s,this._boxes[this._pos++]=i,this._boxes[this._pos++]=e,t<this.minX&&(this.minX=t),s<this.minY&&(this.minY=s),i>this.maxX&&(this.maxX=i),e>this.maxY&&(this.maxY=e),h}finish(){if(this._pos>>2!==this.numItems)throw new Error(Added ${this._pos>>2} items when expected ${this.numItems}.);const t=this.maxX-this.minX,s=this.maxY-this.minY,i=new Uint32Array(this.numItems);for(let e=0;e<this.numItems;e++){let h=4*e;const n=this._boxes[h++],o=this._boxes[h++],r=this._boxes[h++],a=this._boxes[h++],d=Math.floor(65535*((n+r)/2-this.minX)/t),l=Math.floor(65535*((o+a)/2-this.minY)/s);i[e]=_(d,l)}!function t(s,i,e,h,n){if(h>=n)return;const o=s[h+n>>1];let r=h-1,_=n+1;for(;;){do{r++}while(s[r]<o);do{_–}while(s[_]>o);if(r>=_)break;a(s,i,e,r,_)}t(s,i,e,h,_),t(s,i,e,_+1,n)}(i,this._boxes,this._indices,0,this.numItems-1);for(let t=0,s=0;t<this._levelBounds.length-1;t++){const i=this._levelBounds[t];for(;s<i;){let t=1/0,e=1/0,h=-1/0,n=-1/0;const o=s;for(let o=0;o<this.nodeSize&&s<i;o++){const i=this._boxes[s++],o=this._boxes[s++],r=this._boxes[s++],a=this._boxes[s++];i<t&&(t=i),o<e&&(e=o),r>h&&(h=r),a>n&&(n=a)}this._indices[this._pos>>2]=o,this._boxes[this._pos++]=t,this._boxes[this._pos++]=e,this._boxes[this._pos++]=h,this._boxes[this._pos++]=n}}}search(t,s,i,e,h){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let n=this._boxes.length-4,o=this._levelBounds.length-1;const r=[],a=[];for(;void 0!==n;){const _=Math.min(n+4*this.nodeSize,this._levelBounds[o]);for(let d=n;d<_;d+=4){const _=0|this._indices[d>>2];i<this._boxes[d]||(e<this._boxes[d+1]||t>this._boxes[d+2]||s>this._boxes[d+3]||(n<4*this.numItems?(void 0===h||h(_))&&a.push(_):(r.push(_),r.push(o-1))))}o=r.pop(),n=r.pop()}return a}neighbors(t,s,i=1/0,e=1/0,h){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let n=this._boxes.length-4;const a=this._queue,_=[],d=e*e;for(;void 0!==n;){const e=Math.min(n+4*this.nodeSize,r(n,this._levelBounds));for(let i=n;i<e;i+=4){const e=0|this._indices[i>>2],r=o(t,this._boxes[i],this._boxes[i+2]),_=o(s,this._boxes[i+1],this._boxes[i+3]),d=r*r+_*_;n<4*this.numItems?(void 0===h||h(e))&&a.push(-e-1,d):a.push(e,d)}for(;a.length&&a.peek()<0;){if(a.peekValue()>d)return a.clear(),_;if(_.push(-a.pop()-1),_.length===i)return a.clear(),_}n=a.pop()}return a.clear(),_}}function o(t,s,i){return t<s?s-t:t<=i?0:t-i}function r(t,s){let i=0,e=s.length-1;for(;i<e;){const h=i+e>>1;s[h]>t?e=h:i=h+1}return s[i]}function a(t,s,i,e,h){const n=t[e];t[e]=t[h],t[h]=n;const o=4*e,r=4*h,a=s[o],_=s[o+1],d=s[o+2],l=s[o+3];s[o]=s[r],s[o+1]=s[r+1],s[o+2]=s[r+2],s[o+3]=s[r+3],s[r]=a,s[r+1]=_,s[r+2]=d,s[r+3]=l;const u=i[e];i[e]=i[h],i[h]=u}function _(t,s){let i=t^s,e=65535^i,h=65535^(t|s),n=t&(65535^s),o=i|e>>1,r=i>>1^i,a=h>>1^e&n>>1^h,_=i&h>>1^n>>1^n;i=o,e=r,h=a,n=_,o=i&i>>2^e&e>>2,r=i&e>>2^e&(i^e)>>2,a^=i&h>>2^e&n>>2,_^=e&h>>2^(i^e)&n>>2,i=o,e=r,h=a,n=_,o=i&i>>4^e&e>>4,r=i&e>>4^e&(i^e)>>4,a^=i&h>>4^e&n>>4,_^=e&h>>4^(i^e)&n>>4,i=o,e=r,h=a,n=_,a^=i&h>>8^e&n>>8,_^=e&h>>8^(i^e)&n>>8,i=a^a>>1,e=_^_>>1;let d=t^s,l=e|65535^(d|i);return d=16711935&(d|d<<8),d=252645135&(d|d<<4),d=858993459&(d|d<<2),d=1431655765&(d|d<<1),l=16711935&(l|l<<8),l=252645135&(l|l<<4),l=858993459&(l|l<<2),l=1431655765&(l|l<<1),(l<<1|d)>>>0}i.default=n},n function _(s,t,i){Object.defineProperty(i,"__esModule",{value:!0});i.default=class{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(s,t){let i=this.length++;for(this.ids[i]=s,this.values[i]=t;i>0;){const s=i-1>>1,e=this.values[s];if(t>=e)break;this.ids[i]=this.ids[s],this.values[i]=e,i=s}this.ids[i]=s,this.values[i]=t}pop(){if(0===this.length)return;const s=this.ids[0];if(this.length–,this.length>0){const s=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],i=this.length>>1;let e=0;for(;e<i;){let s=1+(e<<1);const i=s+1;let h=this.ids[s],l=this.values[s];const n=this.values[i];if(i<this.length&&n<l&&(s=i,h=this.ids[i],l=n),l>=t)break;this.ids[e]=h,this.values[e]=l,e=s}this.ids[e]=s,this.values[e]=t}return s}peek(){return this.ids[0]}peekValue(){return this.values[0]}}},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const{min:h,max:r}=Math;e.empty=function(){return{x0:1/0,y0:1/0,x1:-1/0,y1:-1/0}},e.positive_x=function(){return{x0:Number.MIN_VALUE,y0:-1/0,x1:1/0,y1:1/0}},e.positive_y=function(){return{x0:-1/0,y0:Number.MIN_VALUE,x1:1/0,y1:1/0}},e.union=function(t,i){return{x0:h(t.x0,i.x0),x1:r(t.x1,i.x1),y0:h(t.y0,i.y0),y1:r(t.y1,i.y1)}};class s{constructor(t){if(null==t)this.x0=0,this.y0=0,this.x1=0,this.y1=0;else if("x0"in t){const{x0:i,y0:e,x1:h,y1:r}=t;if(!(i<=h&&e<=r))throw new Error(invalid bbox {x0: ${i}, y0: ${e}, x1: ${h}, y1: ${r}});this.x0=i,this.y0=e,this.x1=h,this.y1=r}else if("x"in t){const{x:i,y:e,width:h,height:r}=t;if(!(h>=0&&r>=0))throw new Error(invalid bbox {x: ${i}, y: ${e}, width: ${h}, height: ${r}});this.x0=i,this.y0=e,this.x1=i+h,this.y1=e+r}else{let i,e,h,r;if("width"in t)if("left"in t)i=t.left,e=i+t.width;else if("right"in t)e=t.right,i=e-t.width;else{const h=t.width/2;i=t.hcenter-h,e=t.hcenter+h}else i=t.left,e=t.right;if("height"in t)if("top"in t)h=t.top,r=h+t.height;else if("bottom"in t)r=t.bottom,h=r-t.height;else{const i=t.height/2;h=t.vcenter-i,r=t.vcenter+i}else h=t.top,r=t.bottom;if(!(i<=e&&h<=r))throw new Error(invalid bbox {left: ${i}, top: ${h}, right: ${e}, bottom: ${r}});this.x0=i,this.y0=h,this.x1=e,this.y1=r}}toString(){return`BBox({left: ${this.left}, top: ${this.top}, width: ${this.width}, height: ${this.height}})`}get left(){return this.x0}get top(){return this.y0}get right(){return this.x1}get bottom(){return this.y1}get p0(){return[this.x0,this.y0]}get p1(){return[this.x1,this.y1]}get x(){return this.x0}get y(){return this.y0}get width(){return this.x1-this.x0}get height(){return this.y1-this.y0}get rect(){return{x0:this.x0,y0:this.y0,x1:this.x1,y1:this.y1}}get box(){return{x:this.x,y:this.y,width:this.width,height:this.height}}get h_range(){return{start:this.x0,end:this.x1}}get v_range(){return{start:this.y0,end:this.y1}}get ranges(){return[this.h_range,this.v_range]}get aspect(){return this.width/this.height}get hcenter(){return(this.left+this.right)/2}get vcenter(){return(this.top+this.bottom)/2}contains(t,i){return t>=this.x0&&t<=this.x1&&i>=this.y0&&i<=this.y1}clip(t,i){return t<this.x0?t=this.x0:t>this.x1&&(t=this.x1),i<this.y0?i=this.y0:i>this.y1&&(i=this.y1),[t,i]}union(t){return new s({x0:h(this.x0,t.x0),y0:h(this.y0,t.y0),x1:r(this.x1,t.x1),y1:r(this.y1,t.y1)})}equals(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1}get xview(){return{compute:t=>this.left+t,v_compute:t=>{const i=new Float64Array(t.length),e=this.left;for(let h=0;h<t.length;h++)i[h]=e+t[h];return i}}}get yview(){return{compute:t=>this.bottom-t,v_compute:t=>{const i=new Float64Array(t.length),e=this.bottom;for(let h=0;h<t.length;h++)i[h]=e-t[h];return i}}}}e.BBox=s,s.__name__="BBox"},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=i.__importStar(t(87)),r=i.__importStar(t(19)),a=i.__importStar(t(85)),_=i.__importStar(t(30)),l=i.__importStar(t(68)),o=t(65),h=t(69),c=t(70),d=t(12),p=t(24),y=t(8),u=t(80),g=t(88);class m extends o.View{constructor(){super(…arguments),this._nohit_warned=new Set}get renderer(){return this.parent}get has_webgl(){return null!=this.glglyph}initialize(){super.initialize(),this.visuals=new l.Visuals(this.model)}async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e){let s=null;try{s=await Promise.resolve().then(()=>i.__importStar(t(358)))}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t;c.logger.warn("WebGL was requested and is supported, but bokeh-gl(.min).js is not available, falling back to 2D rendering.")}if(null!=s){const t=s[this.model.type+"GLGlyph"];null!=t&&(this.glglyph=new t(e.gl,this))}}}set_visuals(t){this.visuals.warm_cache(t),null!=this.glglyph&&this.glglyph.set_visuals_changed()}render(t,e,s){t.beginPath(),null!=this.glglyph&&this.glglyph.render(t,e,s)||this._render(t,e,s)}has_finished(){return!0}notify_finished(){this.renderer.notify_finished()}_bounds(t){return t}bounds(){return this._bounds(this.index.bbox)}log_bounds(){const t=a.empty(),e=this.index.search(a.positive_x());for(const s of e)s.x0<t.x0&&(t.x0=s.x0),s.x1>t.x1&&(t.x1=s.x1);const s=this.index.search(a.positive_y());for(const e of s)e.y0<t.y0&&(t.y0=e.y0),e.y1>t.y1&&(t.y1=e.y1);return this._bounds(t)}get_anchor_point(t,e,[s,i]){switch(t){case"center":return{x:this.scenterx(e,s,i),y:this.scentery(e,s,i)};default:return null}}sdist(t,e,s,i="edge",n=!1){let r,a;const _=e.length;if("center"==i){const t=d.map(s,t=>t/2);r=new Float64Array(_);for(let s=0;s<_;s++)r[s]=e[s]-t[s];a=new Float64Array(_);for(let s=0;s<_;s++)a[s]=e[s]+t[s]}else{r=e,a=new Float64Array(_);for(let t=0;t<_;t++)a[t]=r[t]+s[t]}const l=t.v_compute(r),o=t.v_compute(a);return n?d.map(l,(t,e)=>Math.ceil(Math.abs(o[e]-l[e]))):d.map(l,(t,e)=>Math.abs(o[e]-l[e]))}draw_legend_for_index(t,e,s){}hit_test(t){switch(t.type){case"point":if(null!=this._hit_point)return this._hit_point(t);break;case"span":if(null!=this._hit_span)return this._hit_span(t);break;case"rect":if(null!=this._hit_rect)return this._hit_rect(t);break;case"poly":if(null!=this._hit_poly)return this._hit_poly(t)}return this._nohit_warned.has(t.type)||(c.logger.debug(‘${t.type}’ selection not available for ${this.model.type}),this._nohit_warned.add(t.type)),null}_hit_rect_against_index(t){const{sx0:e,sx1:s,sy0:i,sy1:r}=t,[a,_]=this.renderer.xscale.r_invert(e,s),[l,o]=this.renderer.yscale.r_invert(i,r),h=n.create_empty_hit_test_result();return h.indices=this.index.indices({x0:a,x1:_,y0:l,y1:o}),h}set_data(t,e,s){let i=this.model.materialize_dataspecs(t);if(this.visuals.set_all_indices(e),e&&!(this instanceof u.LineView)){const t={};for(const s in i){const n=i[s];"_"===s.charAt(0)?t[s]=e.map(t=>n[t]):t[s]=n}i=t}const n=this;if(p.extend(n,i),this.renderer.plot_view.model.use_map&&(null!=n._x&&([n._x,n._y]=_.project_xy(n._x,n._y)),null!=n._xs&&([n._xs,n._ys]=_.project_xsys(n._xs,n._ys)),null!=n._x0&&([n._x0,n._y0]=_.project_xy(n._x0,n._y0)),null!=n._x1&&([n._x1,n._y1]=_.project_xy(n._x1,n._y1))),null!=this.renderer.plot_view.frame.x_ranges){const t=this.renderer.plot_view.frame.x_ranges[this.model.x_range_name],e=this.renderer.plot_view.frame.y_ranges[this.model.y_range_name];for(let[s,i]of this.model._coords)s=`_${s}`,i=`_${i}`,null!=n._xs?(t instanceof g.FactorRange&&(n[s]=d.map(n[s],e=>t.v_synthetic(e))),e instanceof g.FactorRange&&(n[i]=d.map(n[i],t=>e.v_synthetic(t)))):(t instanceof g.FactorRange&&(n[s]=t.v_synthetic(n[s])),e instanceof g.FactorRange&&(n[i]=e.v_synthetic(n[i])))}null!=this.glglyph&&this.glglyph.set_data_changed(n._x.length),this._set_data(s),this.index_data()}_set_data(t){}index_data(){this.index=this._index_data()}mask_data(t){return null!=this.glglyph||null==this._mask_data?t:this._mask_data()}map_data(){const t=this;for(let[e,s]of this.model._coords){const i=`s${e}`,n=`s${s}`;if(e=`_${e}`,s=`_${s}`,null!=t[e]&&(y.isArray(t[e][0])||y.isTypedArray(t[e][0]))){const r=t[e].length;t[i]=new Array(r),t[n]=new Array(r);for(let a=0;a<r;a++){const[r,_]=this.map_to_screen(t[e][a],t[s][a]);t[i][a]=r,t[n][a]=_}}else[t[i],t[n]]=this.map_to_screen(t[e],t[s])}this._map_data()}_map_data(){}map_to_screen(t,e){return this.renderer.plot_view.map_to_screen(t,e,this.model.x_range_name,this.model.y_range_name)}}s.GlyphView=m,m.__name__="GlyphView";class x extends h.Model{constructor(t){super(t)}static init_Glyph(){this.prototype._coords=[],this.internal({x_range_name:[r.String,"default"],y_range_name:[r.String,"default"]})}static coords(t){const e=this.prototype._coords.concat(t);this.prototype._coords=e;const s={};for(const[e,i]of t)s[e]=[r.CoordinateSpec],s[i]=[r.CoordinateSpec];this.define(s)}}s.Glyph=x,x.__name__="Glyph",x.init_Glyph()},n function _(t,n,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(9),r=t(76);function s(t){return t*t}function o(t,n){return s(t.x-n.x)+s(t.y-n.y)}function c(t,n,e){const i=o(n,e);if(0==i)return o(t,n);const r=((t.x-n.x)*(e.x-n.x)+(t.y-n.y)*(e.y-n.y))/i;return o(t,r<0?n:r>1?e:{x:n.x+r*(e.x-n.x),y:n.y+r*(e.y-n.y)})}e.point_in_poly=function(t,n,e,i){let r=!1,s=e[e.length-1],o=i[i.length-1];for(let c=0;c<e.length;c++){const u=e[c],_=i[c];o<n!=_<n&&s+(n-o)/(_-o)*(u-s)<t&&(r=!r),s=u,o=_}return r},e.point_in_ellipse=function(t,n,e,i,r,s,o){return((Math.cos(e)/r)**2+(Math.sin(e)/i)**2)*(t-s)**2+2*Math.cos(e)*Math.sin(e)*((1/r)**2-(1/i)**2)*(t-s)*(n-o)+((Math.cos(e)/i)**2+(Math.sin(e)/r)**2)*(n-o)**2<=1},e.create_empty_hit_test_result=function(){return new r.Selection},e.create_hit_test_result_from_hits=function(t){const n=new r.Selection;return n.indices=i.sort_by(t,([t,n])=>n).map(([t,n])=>t),n},e.dist_2_pts=o,e.dist_to_segment_squared=c,e.dist_to_segment=function(t,n,e){return Math.sqrt(c(t,n,e))},e.check_2_segments_intersect=function(t,n,e,i,r,s,o,c){const u=(c-s)*(e-t)-(o-r)*(i-n);if(0==u)return{hit:!1,x:null,y:null};{let _=n-s,l=t-r;const h=(e-t)*_-(i-n)*l;return _=((o-r)*_-(c-s)*l)/u,l=h/u,{hit:_>0&&_<1&&l>0&&l<1,x:t+_*(e-t),y:n+_*(i-n)}}}},n function _(t,n,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(89),r=s.__importStar(t(19)),a=t(12),o=t(9),p=t(8),h=t(11);function g(t,n,i=0){const s={};for(let e=0;e<t.length;e++){const r=t[e];if(r in s)throw new Error(duplicate factor or subfactor: ${r});s[r]={value:.5+e*(1+n)+i}}return[s,(t.length-1)*n]}function c(t,n,i,s=0){const e={},r={},a=[];for(const[n,i]of t)n in r||(r[n]=[],a.push(n)),r[n].push(i);let p=s,h=0;for(const t of a){const s=r[t].length,[a,c]=g(r[t],i,p);h+=c;const u=o.sum(r[t].map(t=>a[t].value));e[t]={value:u/s,mapping:a},p+=s+n+c}return[e,a,(a.length-1)*n+h]}function u(t,n,i,s,e=0){const r={},a={},p=[];for(const[n,i,s]of t)n in a||(a[n]=[],p.push(n)),a[n].push([i,s]);const h=[];let g=e,u=0;for(const t of p){const e=a[t].length,[p,l,_]=c(a[t],i,s,g);for(const n of l)h.push([t,n]);u+=_;const d=o.sum(a[t].map(([t])=>p[t].value));r[t]={value:d/e,mapping:p},g+=e+n+_}return[r,p,h,(p.length-1)*n+u]}i.map_one_level=g,i.map_two_levels=c,i.map_three_levels=u;class l extends e.Range{constructor(t){super(t)}static init_FactorRange(){this.define({factors:[r.Array,[]],factor_padding:[r.Number,0],subgroup_padding:[r.Number,.8],group_padding:[r.Number,1.4],range_padding:[r.Number,0],range_padding_units:[r.PaddingUnits,"percent"],start:[r.Number],end:[r.Number]}),this.internal({levels:[r.Number],mids:[r.Array,null],tops:[r.Array,null],tops_groups:[r.Array]})}get min(){return this.start}get max(){return this.end}initialize(){super.initialize(),this._init(!0)}connect_signals(){super.connect_signals(),this.connect(this.properties.factors.change,()=>this.reset()),this.connect(this.properties.factor_padding.change,()=>this.reset()),this.connect(this.properties.group_padding.change,()=>this.reset()),this.connect(this.properties.subgroup_padding.change,()=>this.reset()),this.connect(this.properties.range_padding.change,()=>this.reset()),this.connect(this.properties.range_padding_units.change,()=>this.reset())}reset(){this._init(!1),this.change.emit()}_lookup(t){if(1==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])?n[t[0]].value:NaN}if(2==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])&&n[t[0]].mapping.hasOwnProperty(t[1])?n[t[0]].mapping[t[1]].value:NaN}if(3==t.length){const n=this._mapping;return n.hasOwnProperty(t[0])&&n[t[0]].mapping.hasOwnProperty(t[1])&&n[t[0]].mapping[t[1]].mapping.hasOwnProperty(t[2])?n[t[0]].mapping[t[1]].mapping[t[2]].value:NaN}h.unreachable()}synthetic(t){if(p.isNumber(t))return t;if(p.isString(t))return this._lookup([t]);let n=0;const i=t[t.length-1];return p.isNumber(i)&&(n=i,t=t.slice(0,-1)),this._lookup(t)+n}v_synthetic(t){return a.map(t,t=>this.synthetic(t))}_init(t){let n,i;this.tops=null,this.mids=null,o.every(this.factors,p.isString)?(n=1,[this._mapping,i]=g(this.factors,this.factor_padding)):o.every(this.factors,t=>p.isArray(t)&&2==t.length&&p.isString(t[0])&&p.isString(t[1]))?(n=2,[this._mapping,this.tops,i]=c(this.factors,this.group_padding,this.factor_padding)):o.every(this.factors,t=>p.isArray(t)&&3==t.length&&p.isString(t[0])&&p.isString(t[1])&&p.isString(t[2]))?(n=3,[this._mapping,this.tops,this.mids,i]=u(this.factors,this.group_padding,this.subgroup_padding,this.factor_padding)):h.unreachable();let s=0,e=this.factors.length+i;if("percent"==this.range_padding_units){const t=(e-s)*this.range_padding/2;s-=t,e+=t}else s-=this.range_padding,e+=this.range_padding;this.setv({start:s,end:e,levels:n},{silent:t}),"auto"==this.bounds&&this.setv({bounds:[s,e]},{silent:!0})}}i.FactorRange=l,l.__name__="FactorRange",l.init_FactorRange()},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),a=e(69),r=i.__importStar(e(19));class s extends a.Model{constructor(e){super(e),this.have_updated_interactively=!1}static init_Range(){this.define({bounds:[r.Any],min_interval:[r.Any],max_interval:[r.Any]}),this.internal({plots:[r.Array,[]]})}get is_reversed(){return this.start>this.end}}n.Range=s,s.__name__="Range",s.init_Range()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1).__importStar(e(87));i.generic_line_legend=function(e,t,{x0:i,x1:n,y0:c,y1:o},r){t.save(),t.beginPath(),t.moveTo(i,(c+o)/2),t.lineTo(n,(c+o)/2),e.line.doit&&(e.line.set_vectorize(t,r),t.stroke()),t.restore()},i.generic_area_legend=function(e,t,{x0:i,x1:n,y0:c,y1:o},r){const l=.1*Math.abs(n-i),a=.1*Math.abs(o-c),s=i+l,_=n-l,h=c+a,v=o-a;e.fill.doit&&(e.fill.set_vectorize(t,r),t.fillRect(s,h,_-s,v-h)),null!=e.hatch&&e.hatch.doit&&(e.hatch.set_vectorize(t,r),t.fillRect(s,h,_-s,v-h)),e.line&&e.line.doit&&(t.beginPath(),t.rect(s,h,_-s,v-h),e.line.set_vectorize(t,r),t.stroke())},i.line_interpolation=function(e,t,i,c,o,r){const{sx:l,sy:a}=t;let s,_,h,v;"point"==t.type?([h,v]=e.yscale.r_invert(a-1,a+1),[s,_]=e.xscale.r_invert(l-1,l+1)):"v"==t.direction?([h,v]=e.yscale.r_invert(a,a),[s,_]=[Math.min(i-1,o-1),Math.max(i+1,o+1)]):([s,_]=e.xscale.r_invert(l,l),[h,v]=[Math.min(c-1,r-1),Math.max(c+1,r+1)]);const{x,y}=n.check_2_segments_intersect(s,h,_,v,i,c,o,r);return[x,y]}},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=e(81),_=e(90),n=s.__importStar(e(87));class a extends l.XYGlyphView{_inner_loop(e,t,i,s,l){for(const _ of t)0!=_?isNaN(i[_]+s[_])?(e.closePath(),l.apply(e),e.beginPath()):e.lineTo(i[_],s[_]):(e.beginPath(),e.moveTo(i[_],s[_]));e.closePath(),l.call(e)}_render(e,t,{sx:i,sy:s}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner_loop(e,t,i,s,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner_loop(e,t,i,s,e.fill),()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_value(e),this._inner_loop(e,t,i,s,e.stroke))}draw_legend_for_index(e,t,i){_.generic_area_legend(this.visuals,e,t,i)}_hit_point(e){const t=n.create_empty_hit_test_result();return n.point_in_poly(e.sx,e.sy,this.sx,this.sy)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}}i.PatchView=a,a.__name__="PatchView";class o extends l.XYGlyph{constructor(e){super(e)}static init_Patch(){this.prototype.default_view=a,this.mixins(["line","fill","hatch"])}}i.Patch=o,o.__name__="Patch",o.init_Patch()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(93),n=e(82),_=i.__importStar(e(87)),a=i.__importStar(e(19));class h extends r.AreaView{_index_data(){const e=[];for(let t=0,s=this._x1.length;t<s;t++){const s=this._x1[t],i=this._x2[t],r=this._y[t];!isNaN(s+i+r)&&isFinite(s+i+r)&&e.push({x0:Math.min(s,i),y0:r,x1:Math.max(s,i),y1:r,i:t})}return new n.SpatialIndex(e)}_inner(e,t,s,i,r){e.beginPath();for(let s=0,r=t.length;s<r;s++)e.lineTo(t[s],i[s]);for(let t=s.length-1;t>=0;t–)e.lineTo(s[t],i[t]);e.closePath(),r.call(e)}_render(e,t,{sx1:s,sx2:i,sy:r}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner(e,s,i,r,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner(e,s,i,r,e.fill),()=>this.renderer.request_render())}_hit_point(e){const t=_.create_empty_hit_test_result(),s=this.sy.length,i=new Float64Array(2*s),r=new Float64Array(2*s);for(let e=0,t=s;e<t;e++)i[e]=this.sx1[e],r[e]=this.sy[e],i[s+e]=this.sx2[s-e-1],r[s+e]=this.sy[s-e-1];return _.point_in_poly(e.sx,e.sy,i,r)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}scenterx(e){return(this.sx1[e]+this.sx2[e])/2}scentery(e){return this.sy[e]}_map_data(){this.sx1=this.renderer.xscale.v_compute(this._x1),this.sx2=this.renderer.xscale.v_compute(this._x2),this.sy=this.renderer.yscale.v_compute(this._y)}}s.HAreaView=h,h.__name__="HAreaView";class l extends r.Area{constructor(e){super(e)}static init_HArea(){this.prototype.default_view=h,this.define({x1:[a.CoordinateSpec],x2:[a.CoordinateSpec],y:[a.CoordinateSpec]})}}s.HArea=l,l.__name__="HArea",l.init_HArea()},n function _(e,i,_){Object.defineProperty(_,"__esModule",{value:!0});const a=e(86),n=e(90);class s extends a.GlyphView{draw_legend_for_index(e,i,_){n.generic_area_legend(this.visuals,e,i,_)}}_.AreaView=s,s.__name__="AreaView";class r extends a.Glyph{constructor(e){super(e)}static init_Area(){this.mixins(["fill","hatch"])}}_.Area=r,r.__name__="Area",r.init_Area()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(93),n=e(82),_=i.__importStar(e(87)),a=i.__importStar(e(19));class h extends r.AreaView{_index_data(){const e=[];for(let t=0,s=this._x.length;t<s;t++){const s=this._x[t],i=this._y1[t],r=this._y2[t];!isNaN(s+i+r)&&isFinite(s+i+r)&&e.push({x0:s,y0:Math.min(i,r),x1:s,y1:Math.max(i,r),i:t})}return new n.SpatialIndex(e)}_inner(e,t,s,i,r){e.beginPath();for(let i=0,r=s.length;i<r;i++)e.lineTo(t[i],s[i]);for(let s=i.length-1;s>=0;s–)e.lineTo(t[s],i[s]);e.closePath(),r.call(e)}_render(e,t,{sx:s,sy1:i,sy2:r}){this.visuals.fill.doit&&(this.visuals.fill.set_value(e),this._inner(e,s,i,r,e.fill)),this.visuals.hatch.doit2(e,0,()=>this._inner(e,s,i,r,e.fill),()=>this.renderer.request_render())}scenterx(e){return this.sx[e]}scentery(e){return(this.sy1[e]+this.sy2[e])/2}_hit_point(e){const t=_.create_empty_hit_test_result(),s=this.sx.length,i=new Float64Array(2*s),r=new Float64Array(2*s);for(let e=0,t=s;e<t;e++)i[e]=this.sx[e],r[e]=this.sy1[e],i[s+e]=this.sx[s-e-1],r[s+e]=this.sy2[s-e-1];return _.point_in_poly(e.sx,e.sy,i,r)&&(t.add_to_selected_glyphs(this.model),t.get_view=()=>this),t}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sy1=this.renderer.yscale.v_compute(this._y1),this.sy2=this.renderer.yscale.v_compute(this._y2)}}s.VAreaView=h,h.__name__="VAreaView";class l extends r.Area{constructor(e){super(e)}static init_VArea(){this.prototype.default_view=h,this.define({x:[a.CoordinateSpec],y1:[a.CoordinateSpec],y2:[a.CoordinateSpec]})}}s.VArea=l,l.__name__="VArea",l.init_VArea()},n function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),n=i(69),c=t.__importStar(i(19)),o=i(76),r=i(9),_=i(74);class h extends n.Model{constructor(i){super(i)}static init_CDSView(){this.define({filters:[c.Array,[]],source:[c.Instance]}),this.internal({indices:[c.Array,[]],indices_map:[c.Any,{}]})}initialize(){super.initialize(),this.compute_indices()}connect_signals(){super.connect_signals(),this.connect(this.properties.filters.change,()=>{this.compute_indices(),this.change.emit()});const i=()=>{const i=()=>this.compute_indices();null!=this.source&&(this.connect(this.source.change,i),this.source instanceof _.ColumnarDataSource&&(this.connect(this.source.streaming,i),this.connect(this.source.patching,i)))};let e=null!=this.source;e?i():this.connect(this.properties.source.change,()=>{e||(i(),e=!0)})}compute_indices(){const i=this.filters.map(i=>i.compute_indices(this.source)).filter(i=>null!=i);i.length>0?this.indices=r.intersection.apply(this,i):this.source instanceof _.ColumnarDataSource&&(this.indices=this.source.get_indices()),this.indices_map_to_subset()}indices_map_to_subset(){this.indices_map={};for(let i=0;i<this.indices.length;i++)this.indices_map[this.indices[i]]=i}convert_selection_from_subset(i){const e=new o.Selection;e.update_through_union(i);const s=i.indices.map(i=>this.indices[i]);return e.indices=s,e.image_indices=i.image_indices,e}convert_selection_to_subset(i){const e=new o.Selection;e.update_through_union(i);const s=i.indices.map(i=>this.indices_map[i]);return e.indices=s,e.image_indices=i.image_indices,e}convert_indices_from_subset(i){return i.map(i=>this.indices[i])}}s.CDSView=h,h.__name__="CDSView",h.init_CDSView()},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(9);async function o(e,n,t){const i=new e(Object.assign(Object.assign({},t),{model:n}));return i.initialize(),await i.lazy_initialize(),i}t.build_view=async function(e,n={parent:null},t=(e=>e.default_view)){const i=await o(t(e),e,n);return i.connect_signals(),i},t.build_views=async function(e,n,t={parent:null},c=(e=>e.default_view)){const s=i.difference(Object.keys(e),n.map(e=>e.id));for(const n of s)e[n].remove(),delete e[n];const a=[],l=n.filter(n=>null==e[n.id]);for(const n of l){const i=await o(c(n),n,t);e[n.id]=i,a.push(i)}for(const e of a)e.connect_signals();return a},t.remove_views=function(e){for(const n in e)e[n].remove(),delete e[n]}},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(1),r=e(79),a=e(98),i=s.__importStar(e(19)),d=e(96);class _ extends r.DataRendererView{initialize(){super.initialize(),this.xscale=this.plot_view.frame.xscales.default,this.yscale=this.plot_view.frame.yscales.default,this._renderer_views={}}async lazy_initialize(){[this.node_view,this.edge_view]=await d.build_views(this._renderer_views,[this.model.node_renderer,this.model.edge_renderer],{parent:this.parent}),this.set_data()}connect_signals(){super.connect_signals(),this.connect(this.model.layout_provider.change,()=>this.set_data()),this.connect(this.model.node_renderer.data_source._select,()=>this.set_data()),this.connect(this.model.node_renderer.data_source.inspect,()=>this.set_data()),this.connect(this.model.node_renderer.data_source.change,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source._select,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source.inspect,()=>this.set_data()),this.connect(this.model.edge_renderer.data_source.change,()=>this.set_data());const{x_ranges:e,y_ranges:t}=this.plot_view.frame;for(const t in e){const n=e[t];this.connect(n.change,()=>this.set_data())}for(const e in t){const n=t[e];this.connect(n.change,()=>this.set_data())}}set_data(e=!0){this.node_view.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0}),this.edge_view.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0});const t=this.node_view.glyph;[t._x,t._y]=this.model.layout_provider.get_node_coordinates(this.model.node_renderer.data_source);const n=this.edge_view.glyph;[n._xs,n._ys]=this.model.layout_provider.get_edge_coordinates(this.model.edge_renderer.data_source),t.index_data(),n.index_data(),e&&this.request_render()}render(){this.edge_view.render(),this.node_view.render()}}n.GraphRendererView=_,_.__name__="GraphRendererView";class o extends r.DataRenderer{constructor(e){super(e)}static init_GraphRenderer(){this.prototype.default_view=_,this.define({layout_provider:[i.Instance],node_renderer:[i.Instance],edge_renderer:[i.Instance],selection_policy:[i.Instance,()=>new a.NodesOnly],inspection_policy:[i.Instance,()=>new a.NodesOnly]})}get_selection_manager(){return this.node_renderer.data_source.selection_manager}}n.GraphRenderer=o,o.__name__="GraphRenderer",o.init_GraphRenderer()},n function _(e,t,d){Object.defineProperty(d,"__esModule",{value:!0});const n=e(69),s=e(12),o=e(9),_=e(87);class i extends n.Model{constructor(e){super(e)}_hit_test_nodes(e,t){if(!t.model.visible)return null;const d=t.node_view.glyph.hit_test(e);return null==d?null:t.node_view.model.view.convert_selection_from_subset(d)}_hit_test_edges(e,t){if(!t.model.visible)return null;const d=t.edge_view.glyph.hit_test(e);return null==d?null:t.edge_view.model.view.convert_selection_from_subset(d)}}d.GraphHitTestPolicy=i,i.__name__="GraphHitTestPolicy";class r extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_nodes(e,t)}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;return s.update(e,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.model.get_selection_manager().get_or_create_inspector(d.node_view.model);return o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view,{geometry:t}]),!o.is_empty()}}d.NodesOnly=r,r.__name__="NodesOnly";class c extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_nodes(e,t)}get_linked_edges(e,t,d){let n=[];"selection"==d?n=e.selected.indices.map(t=>e.data.index[t]):"inspection"==d&&(n=e.inspected.indices.map(t=>e.data.index[t]));const s=[];for(let e=0;e<t.data.start.length;e++)(o.contains(n,t.data.start[e])||o.contains(n,t.data.end[e]))&&s.push(e);const i=_.create_empty_hit_test_result();for(const e of s)i.multiline_indices[e]=[0];return i.indices=s,i}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;s.update(e,d,n);const o=t.edge_renderer.data_source.selected,_=this.get_linked_edges(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.update(_,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model);o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0});const _=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model),i=this.get_linked_edges(d.node_view.model.data_source,d.edge_view.model.data_source,"inspection");return _.update(i,n,s),d.edge_view.model.data_source.setv({inspected:_},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view,{geometry:t}]),!o.is_empty()}}d.NodesAndLinkedEdges=c,c.__name__="NodesAndLinkedEdges";class a extends i{constructor(e){super(e)}hit_test(e,t){return this._hit_test_edges(e,t)}get_linked_nodes(e,t,d){let n=[];"selection"==d?n=t.selected.indices:"inspection"==d&&(n=t.inspected.indices);const i=[];for(const e of n)i.push(t.data.start[e]),i.push(t.data.end[e]);const r=o.uniq(i).map(t=>s.indexOf(e.data.index,t)),c=_.create_empty_hit_test_result();return c.indices=r,c}do_selection(e,t,d,n){if(null==e)return!1;const s=t.edge_renderer.data_source.selected;s.update(e,d,n);const o=t.node_renderer.data_source.selected,_=this.get_linked_nodes(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.update(_,d,n),t.edge_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model);o.update(e,n,s),d.edge_view.model.data_source.setv({inspected:o},{silent:!0});const _=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model),i=this.get_linked_nodes(d.node_view.model.data_source,d.edge_view.model.data_source,"inspection");return _.update(i,n,s),d.node_view.model.data_source.setv({inspected:_},{silent:!0}),d.edge_view.model.data_source.inspect.emit([d.edge_view,{geometry:t}]),!o.is_empty()}}d.EdgesAndLinkedNodes=a,a.__name__="EdgesAndLinkedNodes"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(69);class o extends s.Model{do_selection(e,t,n,s){return null!==e&&(t.selected.update(e,n,s),t._select.emit(),!t.selected.is_empty())}}n.SelectionPolicy=o,o.__name__="SelectionPolicy";class r extends o{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!==t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_intersection(t);return e}return null}}n.IntersectRenderers=r,r.__name__="IntersectRenderers";class c extends o{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!==t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_union(t);return e}return null}}n.UnionRenderers=c,c.__name__="UnionRenderers"},n function _(r,n,t){Object.defineProperty(t,"__esModule",{value:!0});const e=r(8),a=r(101);function o(r){const n=new Uint8Array(r.buffer,r.byteOffset,2*r.length);for(let r=0,t=n.length;r<t;r+=2){const t=n[r];n[r]=n[r+1],n[r+1]=t}}function i(r){const n=new Uint8Array(r.buffer,r.byteOffset,4*r.length);for(let r=0,t=n.length;r<t;r+=4){let t=n[r];n[r]=n[r+3],n[r+3]=t,t=n[r+1],n[r+1]=n[r+2],n[r+2]=t}}function s(r){const n=new Uint8Array(r.buffer,r.byteOffset,8*r.length);for(let r=0,t=n.length;r<t;r+=8){let t=n[r];n[r]=n[r+7],n[r+7]=t,t=n[r+1],n[r+1]=n[r+6],n[r+6]=t,t=n[r+2],n[r+2]=n[r+5],n[r+5]=t,t=n[r+3],n[r+3]=n[r+4],n[r+4]=t}}function c(r,n){const e=r.order!==t.BYTE_ORDER,{shape:a}=r;let c=null;for(const t of n){if(JSON.parse(t[0]).id===r.__buffer__){c=t[1];break}}const f=new t.ARRAY_TYPES[r.dtype](c);return e&&(2===f.BYTES_PER_ELEMENT?o(f):4===f.BYTES_PER_ELEMENT?i(f):8===f.BYTES_PER_ELEMENT&&s(f)),[f,a]}function f(r,n){return e.isObject(r)&&"__ndarray__"in r?A(r):e.isObject(r)&&"__buffer__"in r?c(r,n):e.isArray(r)||e.isTypedArray(r)?[r,[]]:void 0}function u(r){const n=new Uint8Array(r),t=Array.from(n).map(r=>String.fromCharCode(r));return btoa(t.join(""))}function y(r){const n=atob(r),t=n.length,e=new Uint8Array(t);for(let r=0,a=t;r<a;r++)e[r]=n.charCodeAt(r);return e.buffer}function A(r){const n=y(r.__ndarray__),e=r.dtype,a=r.shape;let o;if(!(e in t.ARRAY_TYPES))throw new Error(unknown dtype: ${e});return o=new t.ARRAY_TYPES[e](n),[o,a]}function l(r,n){const e=u(r.buffer),a=function(r){if("name"in r.constructor)return r.constructor.name;switch(!0){case r instanceof Uint8Array:return"Uint8Array";case r instanceof Int8Array:return"Int8Array";case r instanceof Uint16Array:return"Uint16Array";case r instanceof Int16Array:return"Int16Array";case r instanceof Uint32Array:return"Uint32Array";case r instanceof Int32Array:return"Int32Array";case r instanceof Float32Array:return"Float32Array";case r instanceof Float64Array:return"Float64Array";default:throw new Error("unsupported typed array")}}(r);let o;if(!(a in t.DTYPES))throw new Error(unknown array type: ${a});return o=t.DTYPES[a],{__ndarray__:e,shape:n,dtype:o}}function _(r,n){if(0==r.length||!e.isObject(r[0])&&!e.isArray(r[0]))return[r,[]];const t=[],a=[];for(const o of r){const[r,i]=e.isArray(o)?_(o,n):f(o,n);t.push(r),a.push(i)}return[t,a.map(r=>r.filter(r=>0!=r.length))]}function d(r,n){const t=[];for(let a=0,o=r.length;a<o;a++){const o=r[a];if(e.isTypedArray(o)){const r=n[a]?n[a]:void 0;t.push(l(o,r))}else e.isArray(o)?t.push(d(o,n?n[a]:[])):t.push(o)}return t}t.ARRAY_TYPES={uint8:Uint8Array,int8:Int8Array,uint16:Uint16Array,int16:Int16Array,uint32:Uint32Array,int32:Int32Array,float32:Float32Array,float64:Float64Array},t.DTYPES={Uint8Array:"uint8",Int8Array:"int8",Uint16Array:"uint16",Int16Array:"int16",Uint32Array:"uint32",Int32Array:"int32",Float32Array:"float32",Float64Array:"float64"},t.BYTE_ORDER=a.is_little_endian?"little":"big",t.swap16=o,t.swap32=i,t.swap64=s,t.process_buffer=c,t.process_array=f,t.arrayBufferToBase64=u,t.base64ToArrayBuffer=y,t.decode_base64=A,t.encode_base64=l,t.decode_column_data=function(r,n=[]){const t={},a={};for(const o in r){const i=r[o];if(e.isArray(i)){if(0==i.length||!e.isObject(i[0])&&!e.isArray(i[0])){t[o]=i;continue}const[r,s]=_(i,n);t[o]=r,a[o]=s}else{const[r,e]=f(i,n);t[o]=r,a[o]=e}}return[t,a]},t.encode_column_data=function(r,n){const t={};for(const a in r){const o=r[a],i=null!=n?n[a]:void 0;let s;s=e.isTypedArray(o)?l(o,i):e.isArray(o)?d(o,i||[]):o,t[a]=s}return t}},n function _(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.is_ie=(()=>{const e="undefined"!=typeof navigator?navigator.userAgent:"";return e.indexOf("MSIE")>=0||e.indexOf("Trident")>0||e.indexOf("Edge")>0})(),i.is_mobile="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0),i.is_little_endian=(()=>{const e=new ArrayBuffer(4),n=new Uint8Array(e);new Uint32Array(e)[1]=168496141;let i=!0;return 10==n[4]&&11==n[5]&&12==n[6]&&13==n[7]&&(i=!1),i})()},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.concat=function(t,…e){let n=t.length;for(const t of e)n+=t.length;const o=new t.constructor(n);o.set(t,0);let c=t.length;for(const t of e)o.set(t,c),c+=t.length;return o}},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(13);class o{constructor(e){this.document=e}}s.DocumentChangedEvent=o,o.__name__="DocumentChangedEvent";class r extends o{constructor(e,t,s){super(e),this.msg_type=t,this.msg_data=s}json(e){const t=this.msg_data,s=n.HasProps._value_to_json("",t,null);return n.HasProps._value_record_references(t,{},!0),{kind:"MessageSent",msg_type:this.msg_type,msg_data:s}}}s.MessageSentEvent=r,r.__name__="MessageSentEvent";class d extends o{constructor(e,t,s,n,o,r,d){super(e),this.model=t,this.attr=s,this.old=n,this.new_=o,this.setter_id=r,this.hint=d}json(e){if("id"===this.attr)throw new Error("’id’ field should never change, whatever code just set it is wrong");if(null!=this.hint)return this.hint.json(e);const t=this.new_,s=n.HasProps._value_to_json(this.attr,t,this.model),o={};n.HasProps._value_record_references(t,o,!0),this.model.id in o&&this.model!==t&&delete o[this.model.id];for(const t in o)e[t]=o[t];return{kind:"ModelChanged",model:this.model.ref(),attr:this.attr,new:s}}}s.ModelChangedEvent=d,d.__name__="ModelChangedEvent";class i extends o{constructor(e,t,s){super(e),this.column_source=t,this.patches=s}json(e){return{kind:"ColumnsPatched",column_source:this.column_source,patches:this.patches}}}s.ColumnsPatchedEvent=i,i.__name__="ColumnsPatchedEvent";class _ extends o{constructor(e,t,s,n){super(e),this.column_source=t,this.data=s,this.rollover=n}json(e){return{kind:"ColumnsStreamed",column_source:this.column_source,data:this.data,rollover:this.rollover}}}s.ColumnsStreamedEvent=_,_.__name__="ColumnsStreamedEvent";class a extends o{constructor(e,t,s){super(e),this.title=t,this.setter_id=s}json(e){return{kind:"TitleChanged",title:this.title}}}s.TitleChangedEvent=a,a.__name__="TitleChangedEvent";class l extends o{constructor(e,t,s){super(e),this.model=t,this.setter_id=s}json(e){return n.HasProps._value_record_references(this.model,e,!0),{kind:"RootAdded",model:this.model.ref()}}}s.RootAddedEvent=l,l.__name__="RootAddedEvent";class h extends o{constructor(e,t,s){super(e),this.model=t,this.setter_id=s}json(e){return{kind:"RootRemoved",model:this.model.ref()}}}s.RootRemovedEvent=h,h.__name__="RootRemovedEvent"},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),_=e(29),o=e(73),l=i.__importStar(e(19));class a extends _.AnnotationView{initialize(){super.initialize(),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source)),this.connect(this.model.source.change,()=>this.set_data(this.model.source))}set_data(e){super.set_data(e),this.visuals.warm_cache(e),this.plot_view.request_render()}_map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=e.xscales[this.model.x_range_name],i=e.yscales[this.model.y_range_name],_="height"==t?i:s,o="height"==t?s:i,l="height"==t?e.yview:e.xview,a="height"==t?e.xview:e.yview;let n,h,r;n="data"==this.model.properties.lower.units?_.v_compute(this._lower):l.v_compute(this._lower),h="data"==this.model.properties.upper.units?_.v_compute(this._upper):l.v_compute(this._upper),r="data"==this.model.properties.base.units?o.v_compute(this._base):a.v_compute(this._base);const[c,p]="height"==t?[1,0]:[0,1],u=[n,r],d=[h,r];this._lower_sx=u[c],this._lower_sy=u[p],this._upper_sx=d[c],this._upper_sy=d[p]}render(){if(!this.model.visible)return;this._map_data();const{ctx:e}=this.plot_view.canvas_view;e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let t=0,s=this._lower_sx.length;t<s;t++)e.lineTo(this._lower_sx[t],this._lower_sy[t]);for(let t=this._upper_sx.length-1;t>=0;t–)e.lineTo(this._upper_sx[t],this._upper_sy[t]);e.closePath(),this.visuals.fill.doit&&(this.visuals.fill.set_value(e),e.fill()),e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let t=0,s=this._lower_sx.length;t<s;t++)e.lineTo(this._lower_sx[t],this._lower_sy[t]);this.visuals.line.doit&&(this.visuals.line.set_value(e),e.stroke()),e.beginPath(),e.moveTo(this._upper_sx[0],this._upper_sy[0]);for(let t=0,s=this._upper_sx.length;t<s;t++)e.lineTo(this._upper_sx[t],this._upper_sy[t]);this.visuals.line.doit&&(this.visuals.line.set_value(e),e.stroke())}}s.BandView=a,a.__name__="BandView";class n extends _.Annotation{constructor(e){super(e)}static init_Band(){this.prototype.default_view=a,this.mixins(["line","fill"]),this.define({lower:[l.DistanceSpec],upper:[l.DistanceSpec],base:[l.DistanceSpec],dimension:[l.Dimension,"height"],source:[l.Instance,()=>new o.ColumnDataSource],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}}s.Band=n,n.__name__="Band",n.init_Band()},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(1),l=t(29),o=t(14),n=t(66),a=s.__importStar(t(19)),h=t(85),r=t(106);e.EDGE_TOLERANCE=2.5;class d extends l.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),this.el.classList.add(r.bk_shading),n.undisplay(this.el)}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?(this.connect(this.model.change,()=>this.render()),this.connect(this.model.data_update,()=>this.render())):(this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.data_update,()=>this.plot_view.request_render()))}render(){if(this.model.visible||"css"!=this.model.render_mode||n.undisplay(this.el),!this.model.visible)return;if(null==this.model.left&&null==this.model.right&&null==this.model.top&&null==this.model.bottom)return void n.undisplay(this.el);const{frame:t}=this.plot_view,i=t.xscales[this.model.x_range_name],e=t.yscales[this.model.y_range_name],s=(t,i,e,s,l)=>{let o;return o=null!=t?this.model.screen?t:"data"==i?e.compute(t):s.compute(t):l,o};this.sleft=s(this.model.left,this.model.left_units,i,t.xview,t._left.value),this.sright=s(this.model.right,this.model.right_units,i,t.xview,t._right.value),this.stop=s(this.model.top,this.model.top_units,e,t.yview,t._top.value),this.sbottom=s(this.model.bottom,this.model.bottom_units,e,t.yview,t._bottom.value),("css"==this.model.render_mode?this._css_box.bind(this):this._canvas_box.bind(this))(this.sleft,this.sright,this.sbottom,this.stop)}_css_box(t,i,e,s){const l=this.model.properties.line_width.value(),o=Math.floor(i-t)-l,a=Math.floor(e-s)-l;this.el.style.left=`${t}px`,this.el.style.width=`${o}px`,this.el.style.top=`${s}px`,this.el.style.height=`${a}px`,this.visuals.line.doit&&(this.el.style.borderWidth=`${l}px`,this.el.style.borderColor=this.model.properties.line_color.value()),this.visuals.fill.doit&&(this.el.style.backgroundColor=this.model.properties.fill_color.value(),this.el.style.opacity=this.model.properties.fill_alpha.value());const h=this.model.properties.line_dash.value().length<2?"solid":"dashed";this.el.style.borderStyle=h,n.display(this.el)}_canvas_box(t,i,e,s){const{ctx:l}=this.plot_view.canvas_view;l.save(),l.beginPath(),l.rect(t,s,i-t,e-s),this.visuals.fill.doit&&(this.visuals.fill.set_value(l),l.fill()),this.visuals.line.doit&&(this.visuals.line.set_value(l),l.stroke()),l.restore()}interactive_bbox(){const t=this.model.properties.line_width.value()+e.EDGE_TOLERANCE;return new h.BBox({x0:this.sleft-t,y0:this.stop-t,x1:this.sright+t,y1:this.sbottom+t})}interactive_hit(t,i){if(null==this.model.in_cursor)return!1;return this.interactive_bbox().contains(t,i)}cursor(t,i){return Math.abs(t-this.sleft)<3||Math.abs(t-this.sright)<3?this.model.ew_cursor:Math.abs(i-this.sbottom)<3||Math.abs(i-this.stop)<3?this.model.ns_cursor:t>this.sleft&&t<this.sright&&i>this.stop&&i<this.sbottom?this.model.in_cursor:null}}e.BoxAnnotationView=d,d.__name__="BoxAnnotationView";class _ extends l.Annotation{constructor(t){super(t)}static init_BoxAnnotation(){this.prototype.default_view=d,this.mixins(["line","fill"]),this.define({render_mode:[a.RenderMode,"canvas"],x_range_name:[a.String,"default"],y_range_name:[a.String,"default"],top:[a.Number,null],top_units:[a.SpatialUnits,"data"],bottom:[a.Number,null],bottom_units:[a.SpatialUnits,"data"],left:[a.Number,null],left_units:[a.SpatialUnits,"data"],right:[a.Number,null],right_units:[a.SpatialUnits,"data"]}),this.internal({screen:[a.Boolean,!1],ew_cursor:[a.String,null],ns_cursor:[a.String,null],in_cursor:[a.String,null]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}initialize(){super.initialize(),this.data_update=new o.Signal0(this,"data_update")}update({left:t,right:i,top:e,bottom:s}){this.setv({left:t,right:i,top:e,bottom:s,screen:!0},{silent:!0}),this.data_update.emit()}}e.BoxAnnotation=_,_.__name__="BoxAnnotation",_.init_BoxAnnotation()},n function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const a=n(1);n(67),a.__importStar(n(66)).styles.append(".bk-root .bk-shading {\n position: absolute;\n display: block;\n border: 1px dashed green;\n}\n"),t.bk_annotation="bk-annotation",t.bk_shading="bk-shading",t.bk_annotation_child="bk-annotation-child"},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1),s=t(29),a=t(108),l=t(112),r=t(114),n=t(119),_=t(129),h=t(130),m=o.__importStar(t(19)),d=o.__importStar(t(131)),c=t(9),u=t(12),p=t(24),g=t(8),f=t(11);class b extends s.AnnotationView{initialize(){super.initialize(),this._set_canvas_image()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.visible.change,()=>this.plot_view.request_render()),this.connect(this.model.ticker.change,()=>this.plot_view.request_render()),this.connect(this.model.formatter.change,()=>this.plot_view.request_render()),null!=this.model.color_mapper&&this.connect(this.model.color_mapper.change,()=>{this._set_canvas_image(),this.plot_view.request_render()})}_get_size(){if(null==this.model.color_mapper)return{width:0,height:0};{const{width:t,height:e}=this.compute_legend_dimensions();return{width:t,height:e}}}_set_canvas_image(){if(null==this.model.color_mapper)return;let t,e,{palette:i}=this.model.color_mapper;switch("vertical"==this.model.orientation&&(i=c.reversed(i)),this.model.orientation){case"vertical":[t,e]=[1,i.length];break;case"horizontal":[t,e]=[i.length,1]}const o=document.createElement("canvas");o.width=t,o.height=e;const s=o.getContext("2d"),a=s.getImageData(0,0,t,e),l=new r.LinearColorMapper({palette:i}).rgba_mapper.v_compute(c.range(0,i.length));a.data.set(l),s.putImageData(a,0,0),this.image=o}compute_legend_dimensions(){const t=this._computed_image_dimensions(),[e,i]=[t.height,t.width],o=this._get_label_extent(),s=this._title_extent(),a=this._tick_extent(),{padding:l}=this.model;let r,n;switch(this.model.orientation){case"vertical":r=e+s+2*l,n=i+a+o+2*l;break;case"horizontal":r=e+s+a+o+2*l,n=i+2*l}return{width:n,height:r}}compute_legend_location(){const t=this.compute_legend_dimensions(),[e,i]=[t.height,t.width],o=this.model.margin,s=null!=this.panel?this.panel:this.plot_view.frame,[a,l]=s.bbox.ranges,{location:r}=this.model;let n,_;if(g.isString(r))switch(r){case"top_left":n=a.start+o,_=l.start+o;break;case"top_center":n=(a.end+a.start)/2-i/2,_=l.start+o;break;case"top_right":n=a.end-o-i,_=l.start+o;break;case"bottom_right":n=a.end-o-i,_=l.end-o-e;break;case"bottom_center":n=(a.end+a.start)/2-i/2,_=l.end-o-e;break;case"bottom_left":n=a.start+o,_=l.end-o-e;break;case"center_left":n=a.start+o,_=(l.end+l.start)/2-e/2;break;case"center":n=(a.end+a.start)/2-i/2,_=(l.end+l.start)/2-e/2;break;case"center_right":n=a.end-o-i,_=(l.end+l.start)/2-e/2}else if(g.isArray(r)&&2==r.length){const[t,i]=r;n=s.xview.compute(t),_=s.yview.compute(i)-e}else f.unreachable();return{sx:n,sy:_}}render(){if(!this.model.visible||null==this.model.color_mapper)return;const{ctx:t}=this.plot_view.canvas_view;t.save();const{sx:e,sy:i}=this.compute_legend_location();t.translate(e,i),this._draw_bbox(t);const o=this._get_image_offset();if(t.translate(o.x,o.y),this._draw_image(t),null!=this.model.color_mapper.low&&null!=this.model.color_mapper.high){const e=this.tick_info();this._draw_major_ticks(t,e),this._draw_minor_ticks(t,e),this._draw_major_labels(t,e)}this.model.title&&this._draw_title(t),t.restore()}_draw_bbox(t){const e=this.compute_legend_dimensions();t.save(),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(0,0,e.width,e.height)),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.strokeRect(0,0,e.width,e.height)),t.restore()}_draw_image(t){const e=this._computed_image_dimensions();t.save(),t.setImageSmoothingEnabled(!1),t.globalAlpha=this.model.scale_alpha,t.drawImage(this.image,0,0,e.width,e.height),this.visuals.bar_line.doit&&(this.visuals.bar_line.set_value(t),t.strokeRect(0,0,e.width,e.height)),t.restore()}_draw_major_ticks(t,e){if(!this.visuals.major_tick_line.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],[r,n]=e.coords.major,_=this.model.major_tick_in,h=this.model.major_tick_out;t.save(),t.translate(a,l),this.visuals.major_tick_line.set_value(t);for(let e=0,s=r.length;e<s;e++)t.beginPath(),t.moveTo(Math.round(r[e]+i*h),Math.round(n[e]+o*h)),t.lineTo(Math.round(r[e]-i*_),Math.round(n[e]-o*_)),t.stroke();t.restore()}_draw_minor_ticks(t,e){if(!this.visuals.minor_tick_line.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],[r,n]=e.coords.minor,_=this.model.minor_tick_in,h=this.model.minor_tick_out;t.save(),t.translate(a,l),this.visuals.minor_tick_line.set_value(t);for(let e=0,s=r.length;e<s;e++)t.beginPath(),t.moveTo(Math.round(r[e]+i*h),Math.round(n[e]+o*h)),t.lineTo(Math.round(r[e]-i*_),Math.round(n[e]-o*_)),t.stroke();t.restore()}_draw_major_labels(t,e){if(!this.visuals.major_label_text.doit)return;const[i,o]=this._normals(),s=this._computed_image_dimensions(),[a,l]=[s.width*i,s.height*o],r=this.model.label_standoff+this._tick_extent(),[n,_]=[r*i,r*o],[h,m]=e.coords.major,d=e.labels.major;this.visuals.major_label_text.set_value(t),t.save(),t.translate(a+n,l+_);for(let e=0,s=h.length;e<s;e++)t.fillText(d[e],Math.round(h[e]+i*this.model.label_standoff),Math.round(m[e]+o*this.model.label_standoff));t.restore()}_draw_title(t){this.visuals.title_text.doit&&(t.save(),this.visuals.title_text.set_value(t),t.fillText(this.model.title,0,-this.model.title_standoff),t.restore())}_get_label_extent(){const t=this.tick_info().labels.major;let e;if(null==this.model.color_mapper.low||null==this.model.color_mapper.high||p.isEmpty(t))e=0;else{const{ctx:i}=this.plot_view.canvas_view;switch(i.save(),this.visuals.major_label_text.set_value(i),this.model.orientation){case"vertical":e=c.max(t.map(t=>i.measureText(t.toString()).width));break;case"horizontal":e=d.measure_font(this.visuals.major_label_text.font_value()).height}e+=this.model.label_standoff,i.restore()}return e}_get_image_offset(){return{x:this.model.padding,y:this.model.padding+this._title_extent()}}_normals(){return"vertical"==this.model.orientation?[1,0]:[0,1]}_title_extent(){const t=this.model.title_text_font+" "+this.model.title_text_font_size+" "+this.model.title_text_font_style;return this.model.title?d.measure_font(t).height+this.model.title_standoff:0}_tick_extent(){return null!=this.model.color_mapper.low&&null!=this.model.color_mapper.high?c.max([this.model.major_tick_out,this.model.minor_tick_out]):0}_computed_image_dimensions(){const t=this.plot_view.frame._height.value,e=this.plot_view.frame._width.value,i=this._title_extent();let o,s;switch(this.model.orientation){case"vertical":"auto"==this.model.height?null!=this.panel?o=t-2*this.model.padding-i:(o=c.max([25*this.model.color_mapper.palette.length,.3*t]),o=c.min([o,.8*t-2*this.model.padding-i])):o=this.model.height,s="auto"==this.model.width?25:this.model.width;break;case"horizontal":o="auto"==this.model.height?25:this.model.height,"auto"==this.model.width?null!=this.panel?s=e-2*this.model.padding:(s=c.max([25*this.model.color_mapper.palette.length,.3*e]),s=c.min([s,.8*e-2*this.model.padding])):s=this.model.width}return{width:s,height:o}}_tick_coordinate_scale(t){const e={source_range:new h.Range1d({start:this.model.color_mapper.low,end:this.model.color_mapper.high}),target_range:new h.Range1d({start:0,end:t})};switch(this.model.color_mapper.type){case"LinearColorMapper":return new n.LinearScale(e);case"LogColorMapper":return new _.LogScale(e);default:f.unreachable()}}_format_major_labels(t,e){const i=this.model.formatter.doFormat(t,null);for(let t=0,o=e.length;t<o;t++)e[t]in this.model.major_label_overrides&&(i[t]=this.model.major_label_overrides[e[t]]);return i}tick_info(){const t=this._computed_image_dimensions();let e;switch(this.model.orientation){case"vertical":e=t.height;break;case"horizontal":e=t.width}const i=this._tick_coordinate_scale(e),[o,s]=this._normals(),[a,l]=[this.model.color_mapper.low,this.model.color_mapper.high],r=this.model.ticker.get_ticks(a,l,null,null,this.model.ticker.desired_num_ticks),n=r.major,_=r.minor,h=[[],[]],m=[[],[]];for(let t=0,e=n.length;t<e;t++)n[t]<a||n[t]>l||(h[o].push(n[t]),h[s].push(0));for(let t=0,e=_.length;t<e;t++)_[t]<a||_[t]>l||(m[o].push(_[t]),m[s].push(0));const d={major:this._format_major_labels(h[o],n)},c={major:[[],[]],minor:[[],[]]};return c.major[o]=i.v_compute(h[o]),c.minor[o]=i.v_compute(m[o]),c.major[s]=h[s],c.minor[s]=m[s],"vertical"==this.model.orientation&&(c.major[o]=u.map(c.major[o],t=>e-t),c.minor[o]=u.map(c.minor[o],t=>e-t)),{coords:c,labels:d}}}i.ColorBarView=b,b.__name__="ColorBarView";class v extends s.Annotation{constructor(t){super(t)}static init_ColorBar(){this.prototype.default_view=b,this.mixins(["text:major_label_","text:title_","line:major_tick_","line:minor_tick_","line:border_","line:bar_","fill:background_"]),this.define({location:[m.Any,"top_right"],orientation:[m.Orientation,"vertical"],title:[m.String],title_standoff:[m.Number,2],width:[m.Any,"auto"],height:[m.Any,"auto"],scale_alpha:[m.Number,1],ticker:[m.Instance,()=>new a.BasicTicker],formatter:[m.Instance,()=>new l.BasicTickFormatter],major_label_overrides:[m.Any,{}],color_mapper:[m.Instance],label_standoff:[m.Number,5],margin:[m.Number,30],padding:[m.Number,10],major_tick_in:[m.Number,5],major_tick_out:[m.Number,0],minor_tick_in:[m.Number,0],minor_tick_out:[m.Number,0]}),this.override({background_fill_color:"#ffffff",background_fill_alpha:.95,bar_line_color:null,border_line_color:null,major_label_text_align:"center",major_label_text_baseline:"middle",major_label_text_font_size:"11px",major_tick_line_color:"#ffffff",minor_tick_line_color:null,title_text_font_size:"13px",title_text_font_style:"italic"})}}i.ColorBar=v,v.__name__="ColorBar",v.init_ColorBar()},n function _(e,c,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(109);class r extends i.AdaptiveTicker{constructor(e){super(e)}}s.BasicTicker=r,r.__name__="BasicTicker"},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const a=t(1),s=t(110),n=t(9),r=a.__importStar(t(19));class _ extends s.ContinuousTicker{constructor(t){super(t)}static init_AdaptiveTicker(){this.define({base:[r.Number,10],mantissas:[r.Array,[1,2,5]],min_interval:[r.Number,0],max_interval:[r.Number]})}initialize(){super.initialize();const t=n.nth(this.mantissas,-1)/this.base,i=n.nth(this.mantissas,0)*this.base;this.extended_mantissas=[t,…this.mantissas,i],this.base_factor=0===this.get_min_interval()?1:this.get_min_interval()}get_interval(t,i,e){const a=i-t,s=this.get_ideal_interval(t,i,e),r=Math.floor(function(t,i=Math.E){return Math.log(t)/Math.log(i)}(s/this.base_factor,this.base)),_=this.base**r*this.base_factor,h=this.extended_mantissas,m=h.map(t=>Math.abs(e-a/(t*_))),o=h[n.argmin(m)];return c=o*_,l=this.get_min_interval(),u=this.get_max_interval(),Math.max(l,Math.min(u,c));var c,l,u}}e.AdaptiveTicker=_,_.__name__="AdaptiveTicker",_.init_AdaptiveTicker()},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const n=t(1),r=t(111),s=n.__importStar(t(19)),o=t(9),_=t(8);class c extends r.Ticker{constructor(t){super(t)}static init_ContinuousTicker(){this.define({num_minor_ticks:[s.Number,5],desired_num_ticks:[s.Number,6]})}get_ticks(t,i,e,n,r){return this.get_ticks_no_defaults(t,i,n,this.desired_num_ticks)}get_ticks_no_defaults(t,i,e,n){const r=this.get_interval(t,i,n),s=Math.floor(t/r),c=Math.ceil(i/r);let u;u=_.isStrictNaN(s)||_.isStrictNaN(c)?[]:o.range(s,c+1);const a=u.map(t=>t*r).filter(e=>t<=e&&e<=i),l=this.num_minor_ticks,m=[];if(l>0&&a.length>0){const e=r/l,n=o.range(0,l).map(t=>t*e);for(const e of n.slice(1)){const n=a[0]-e;t<=n&&n<=i&&m.push(n)}for(const e of a)for(const r of n){const n=e+r;t<=n&&n<=i&&m.push(n)}}return{major:a,minor:m}}get_min_interval(){return this.min_interval}get_max_interval(){return null!=this.max_interval?this.max_interval:1/0}get_ideal_interval(t,i,e){return(i-t)/e}}e.ContinuousTicker=c,c.__name__="ContinuousTicker",c.init_ContinuousTicker()},n function _(e,c,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(69);class r extends o.Model{constructor(e){super(e)}}n.Ticker=r,r.__name__="Ticker"},n function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=i(1),s=i(113),n=r.__importStar(i(19));class o extends s.TickFormatter{constructor(i){super(i),this.last_precision=3}static init_BasicTickFormatter(){this.define({precision:[n.Any,"auto"],use_scientific:[n.Boolean,!0],power_limit_high:[n.Number,5],power_limit_low:[n.Number,-3]})}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}_need_sci(i){if(!this.use_scientific)return!1;const{scientific_limit_high:t}=this,{scientific_limit_low:e}=this,r=i.length<2?0:Math.abs(i[1]-i[0])/1e4;for(const s of i){const i=Math.abs(s);if(!(i<=r)&&(i>=t||i<=e))return!0}return!1}_format_with_precision(i,t,e){const r=new Array(i.length);if(t)for(let t=0,s=i.length;t<s;t++)r[t]=i[t].toExponential(e);else for(let t=0,s=i.length;t<s;t++)r[t]=i[t].toFixed(e).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");return r}_auto_precision(i,t){const e=new Array(i.length),r=this.last_precision<=15;i:for(let s=this.last_precision;r?s<=15:s>=1;r?s++:s–){if(t){e[0]=i[0].toExponential(s);for(let t=1;t<i.length;t++)if(e[t]==e[t-1])continue i;this.last_precision=s;break}e[0]=i[0].toFixed(s).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");for(let t=1;t<i.length;t++)if(e[t]=i[t].toFixed(s).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,""),e[t]==e[t-1])continue i;this.last_precision=s;break}return this.last_precision}doFormat(i,t){if(0==i.length)return[];const e=this._need_sci(i),r="auto"==this.precision?this._auto_precision(i,e):this.precision;return this._format_with_precision(i,e,r)}}e.BasicTickFormatter=o,o.__name__="BasicTickFormatter",o.init_BasicTickFormatter()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(69);class c extends r.Model{constructor(e){super(e)}}o.TickFormatter=c,c.__name__="TickFormatter"},n function _(o,n,l){Object.defineProperty(l,"__esModule",{value:!0});const e=o(115),t=o(12);class i extends e.ContinuousColorMapper{constructor(o){super(o)}_v_compute(o,n,l,e){const{nan_color:i,low_color:r,high_color:s}=e,c=null!=this.low?this.low:t.min(o),h=null!=this.high?this.high:t.max(o),u=l.length-1,a=1/(h-c),_=1/l.length;for(let e=0,t=o.length;e<t;e++){const t=o[e];if(isNaN(t)){n[e]=i;continue}if(t==h){n[e]=l[u];continue}const p=(t-c)*a,f=Math.floor(p/_);n[e]=f<0?null!=r?r:l[0]:f>u?null!=s?s:l[u]:l[f]}}}l.LinearColorMapper=i,i.__name__="LinearColorMapper"},n function _(o,r,l){Object.defineProperty(l,"__esModule",{value:!0});const i=o(1),t=o(116),e=i.__importStar(o(19));class s extends t.ColorMapper{constructor(o){super(o)}static init_ContinuousColorMapper(){this.define({high:[e.Number],low:[e.Number],high_color:[e.Color],low_color:[e.Color]})}_colors(o){return Object.assign(Object.assign({},super._colors(o)),{low_color:null!=this.low_color?o(this.low_color):void 0,high_color:null!=this.high_color?o(this.high_color):void 0})}}l.ContinuousColorMapper=s,s.__name__="ContinuousColorMapper",s.init_ContinuousColorMapper()},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const n=t(1),o=t(117),_=n.__importStar(t(19)),i=t(8),l=t(21),c=t(101);function a(t){return i.isNumber(t)?t:("#"!=t[0]&&(t=l.color2hex(t)),9!=t.length&&(t+="ff"),parseInt(t.slice(1),16))}function s(t){const e=new Uint32Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=a(t[r]);return e}function p(t){if(c.is_little_endian){const e=new DataView(t.buffer);for(let r=0,n=t.length;r<n;r++)e.setUint32(4*r,t[r])}return new Uint8Array(t.buffer)}r._convert_color=a,r._convert_palette=s,r._uint32_to_rgba=p;class u extends o.Mapper{constructor(t){super(t)}static init_ColorMapper(){this.define({palette:[_.Any],nan_color:[_.Color,"gray"]})}v_compute(t){const e=new Array(t.length);return this._v_compute(t,e,this.palette,this._colors(t=>t)),e}get rgba_mapper(){const t=this,e=s(this.palette),r=this._colors(a);return{v_compute(n){const o=new Uint32Array(n.length);return t._v_compute(n,o,e,r),p(o)}}}_colors(t){return{nan_color:t(this.nan_color)}}}r.ColorMapper=u,u.__name__="ColorMapper",u.init_ColorMapper()},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(118);class s extends o.Transform{constructor(e){super(e)}compute(e){throw new Error("mapping single values is not supported")}}n.Mapper=s,s.__name__="Mapper"},n function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(69);class s extends r.Model{constructor(e){super(e)}}o.Transform=s,s.__name__="Transform"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e(120);class _ extends r.ContinuousScale{constructor(e){super(e)}compute(e){return this._linear_compute(e)}v_compute(e){return this._linear_v_compute(e)}invert(e){return this._linear_invert(e)}v_invert(e){return this._linear_v_invert(e)}}n.LinearScale=_,_.__name__="LinearScale"},n function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});const c=e(121);class s extends c.Scale{constructor(e){super(e)}}o.ContinuousScale=s,s.__name__="ContinuousScale"},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const n=t(1),_=t(122),s=n.__importStar(t(19));class i extends _.Transform{constructor(t){super(t)}static init_Scale(){this.internal({source_range:[s.Any],target_range:[s.Any]})}r_compute(t,e){return this.target_range.is_reversed?[this.compute(e),this.compute(t)]:[this.compute(t),this.compute(e)]}r_invert(t,e){return this.target_range.is_reversed?[this.invert(e),this.invert(t)]:[this.invert(t),this.invert(e)]}_linear_compute(t){const[e,r]=this._linear_compute_state();return e*t+r}_linear_v_compute(t){const[e,r]=this._linear_compute_state(),n=new Float64Array(t.length);for(let _=0;_<t.length;_++)n[_]=e*t[_]+r;return n}_linear_invert(t){const[e,r]=this._linear_compute_state();return(t-r)/e}_linear_v_invert(t){const[e,r]=this._linear_compute_state(),n=new Float64Array(t.length);for(let _=0;_<t.length;_++)n[_]=(t[_]-r)/e;return n}_linear_compute_state(){const t=this.source_range.start,e=this.source_range.end,r=this.target_range.start,n=(this.target_range.end-r)/(e-t);return[n,-n*t+r]}}r.Scale=i,i.__name__="Scale",i.init_Scale()},n function _(r,o,t){Object.defineProperty(t,"__esModule",{value:!0});var e=r(123);t.CustomJSTransform=e.CustomJSTransform;var a=r(124);t.Dodge=a.Dodge;var n=r(125);t.Interpolator=n.Interpolator;var p=r(126);t.Jitter=p.Jitter;var l=r(127);t.LinearInterpolator=l.LinearInterpolator;var v=r(128);t.StepInterpolator=v.StepInterpolator;var s=r(118);t.Transform=s.Transform},n function _(t,r,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),e=t(118),a=n.__importStar(t(19)),o=t(24),u=t(26);class i extends e.Transform{constructor(t){super(t)}static init_CustomJSTransform(){this.define({args:[a.Any,{}],func:[a.String,""],v_func:[a.String,""]})}get names(){return o.keys(this.args)}get values(){return o.values(this.args)}_make_transform(t,r){return new Function(…this.names,t,u.use_strict(r))}get scalar_transform(){return this._make_transform("x",this.func)}get vector_transform(){return this._make_transform("xs",this.v_func)}compute(t){return this.scalar_transform(…this.values,t)}v_compute(t){return this.vector_transform(…this.values,t)}}s.CustomJSTransform=i,i.__name__="CustomJSTransform",i.init_CustomJSTransform()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(1),o=e(118),i=e(88),s=n.__importStar(e(19)),a=e(8);class c extends o.Transform{constructor(e){super(e)}static init_Dodge(){this.define({value:[s.Number,0],range:[s.Instance]})}v_compute(e){let t;if(this.range instanceof i.FactorRange)t=this.range.v_synthetic(e);else{if(!a.isArrayableOf(e,a.isNumber))throw new Error("unexpected");t=e}const r=new Float64Array(t.length);for(let e=0;e<t.length;e++){const n=t[e];r[e]=this._compute(n)}return r}compute(e){if(this.range instanceof i.FactorRange)return this._compute(this.range.synthetic(e));if(a.isNumber(e))return this._compute(e);throw new Error("unexpected")}_compute(e){return e+this.value}}r.Dodge=c,c.__name__="Dodge",c.init_Dodge()},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const s=t(1),o=t(118),n=s.__importStar(t(19)),i=t(9),a=t(8);class h extends o.Transform{constructor(t){super(t),this._sorted_dirty=!0}static init_Interpolator(){this.define({x:[n.Any],y:[n.Any],data:[n.Any],clip:[n.Boolean,!0]})}connect_signals(){super.connect_signals(),this.connect(this.change,()=>this._sorted_dirty=!0)}v_compute(t){const e=new Float64Array(t.length);for(let r=0;r<t.length;r++){const s=t[r];e[r]=this.compute(s)}return e}sort(t=!1){if(!this._sorted_dirty)return;let e,r;if(a.isString(this.x)&&a.isString(this.y)&&null!=this.data){const t=this.data.columns();if(!i.includes(t,this.x))throw new Error("The x parameter does not correspond to a valid column name defined in the data parameter");if(!i.includes(t,this.y))throw new Error("The y parameter does not correspond to a valid column name defined in the data parameter");e=this.data.get_column(this.x),r=this.data.get_column(this.y)}else{if(!a.isArray(this.x)||!a.isArray(this.y))throw new Error("parameters ‘x’ and ‘y’ must be both either string fields or arrays");e=this.x,r=this.y}if(e.length!==r.length)throw new Error("The length for x and y do not match");if(e.length<2)throw new Error("x and y must have at least two elements to support interpolation");const s=[];for(const t in e)s.push({x:e[t],y:r[t]});t?s.sort((t,e)=>t.x>e.x?-1:t.x==e.x?0:1):s.sort((t,e)=>t.x<e.x?-1:t.x==e.x?0:1),this._x_sorted=[],this._y_sorted=[];for(const{x:t,y:e}of s)this._x_sorted.push(t),this._y_sorted.push(e);this._sorted_dirty=!1}}r.Interpolator=h,h.__name__="Interpolator",h.init_Interpolator()},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),n=t(118),s=t(88),o=t(8),u=i.__importStar(t(19)),a=i.__importStar(t(10));class h extends n.Transform{constructor(t){super(t)}static init_Jitter(){this.define({mean:[u.Number,0],width:[u.Number,1],distribution:[u.Distribution,"uniform"],range:[u.Instance]}),this.internal({previous_values:[u.Array]})}v_compute(t){if(null!=this.previous_values&&this.previous_values.length==t.length)return this.previous_values;let e;if(this.range instanceof s.FactorRange)e=this.range.v_synthetic(t);else{if(!o.isArrayableOf(t,o.isNumber))throw new Error("unexpected");e=t}const r=new Float64Array(e.length);for(let t=0;t<e.length;t++){const i=e[t];r[t]=this._compute(i)}return this.previous_values=r,r}compute(t){if(this.range instanceof s.FactorRange)return this._compute(this.range.synthetic(t));if(o.isNumber(t))return this._compute(t);throw new Error("unexpected")}_compute(t){switch(this.distribution){case"uniform":return t+this.mean+(a.random()-.5)*this.width;case"normal":return t+a.rnorm(this.mean,this.width)}}}r.Jitter=h,h.__name__="Jitter",h.init_Jitter()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const _=t(9),r=t(125);class o extends r.Interpolator{constructor(t){super(t)}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}if(t==this._x_sorted[0])return this._y_sorted[0];const s=_.find_last_index(this._x_sorted,s=>s<t),e=this._x_sorted[s],r=this._x_sorted[s+1],o=this._y_sorted[s],i=this._y_sorted[s+1];return o+(t-e)/(r-e)*(i-o)}}e.LinearInterpolator=o,o.__name__="LinearInterpolator"},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const s=t(1),o=t(125),_=s.__importStar(t(19)),i=t(9);class n extends o.Interpolator{constructor(t){super(t)}static init_StepInterpolator(){this.define({mode:[_.StepMode,"after"]})}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}let e;switch(this.mode){case"after":e=i.find_last_index(this._x_sorted,e=>t>=e);break;case"before":e=i.find_index(this._x_sorted,e=>t<=e);break;case"center":{const r=this._x_sorted.map(e=>Math.abs(e-t)),s=i.min(r);e=i.find_index(r,t=>s===t);break}default:throw new Error(unknown mode: ${this.mode})}return-1!=e?this._y_sorted[e]:NaN}}r.StepInterpolator=n,n.__name__="StepInterpolator",n.init_StepInterpolator()},n function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const a=t(120);class s extends a.ContinuousScale{constructor(t){super(t)}compute(t){const[e,o,a,s]=this._compute_state();let n;if(0==a)n=0;else{const r=(Math.log(t)-s)/a;n=isFinite(r)?r*e+o:NaN}return n}v_compute(t){const[e,o,a,s]=this._compute_state(),n=new Float64Array(t.length);if(0==a)for(let e=0;e<t.length;e++)n[e]=0;else for(let r=0;r<t.length;r++){const l=(Math.log(t[r])-s)/a;let c;c=isFinite(l)?l*e+o:NaN,n[r]=c}return n}invert(t){const[e,o,a,s]=this._compute_state(),n=(t-o)/e;return Math.exp(a*n+s)}v_invert(t){const[e,o,a,s]=this._compute_state(),n=new Float64Array(t.length);for(let r=0;r<t.length;r++){const l=(t[r]-o)/e;n[r]=Math.exp(a*l+s)}return n}_get_safe_factor(t,e){let o=t<0?0:t,a=e<0?0:e;if(o==a)if(0==o)[o,a]=[1,10];else{const t=Math.log(o)/Math.log(10);o=10**Math.floor(t),a=Math.ceil(t)!=Math.floor(t)?10**Math.ceil(t):10**(Math.ceil(t)+1)}return[o,a]}_compute_state(){const t=this.source_range.start,e=this.source_range.end,o=this.target_range.start,a=this.target_range.end-o,[s,n]=this._get_safe_factor(t,e);let r,l;return 0==s?(r=Math.log(n),l=0):(r=Math.log(n)-Math.log(s),l=Math.log(s)),[a,o,r,l]}}o.LogScale=s,s.__name__="LogScale"},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(89),r=i.__importStar(t(19));class a extends n.Range{constructor(t){super(t)}static init_Range1d(){this.define({start:[r.Number,0],end:[r.Number,1],reset_start:[r.Number],reset_end:[r.Number]})}_set_auto_bounds(){if("auto"==this.bounds){const t=Math.min(this.reset_start,this.reset_end),e=Math.max(this.reset_start,this.reset_end);this.setv({bounds:[t,e]},{silent:!0})}}initialize(){super.initialize(),null==this.reset_start&&(this.reset_start=this.start),null==this.reset_end&&(this.reset_end=this.end),this._set_auto_bounds()}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}reset(){this._set_auto_bounds(),this.start!=this.reset_start||this.end!=this.reset_end?this.setv({start:this.reset_start,end:this.reset_end}):this.change.emit()}}s.Range1d=a,a.__name__="Range1d",a.init_Range1d()},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const o=t(66),i={};n.measure_font=function(t){if(null!=i[t])return i[t];const e=o.span({style:{font:t}},"Hg"),n=o.div({style:{display:"inline-block",width:"1px",height:"0px"}}),l=o.div({},e,n);document.body.appendChild(l);try{n.style.verticalAlign="baseline";const s=o.offset(n).top-o.offset(e).top;n.style.verticalAlign="bottom";const d=o.offset(n).top-o.offset(e).top,c={height:d,ascent:s,descent:d-s};return i[t]=c,c}finally{document.body.removeChild(l)}};const l={};n.measure_text=function(t,e){const n=l[e];if(null!=n){const e=n[t];if(null!=e)return e}else l[e]={};const i=o.div({style:{display:"inline-block","white-space":"nowrap",font:e}},t);document.body.appendChild(i);try{const{width:n,height:o}=i.getBoundingClientRect();return l[e][t]={width:n,height:o},{width:n,height:o}}finally{document.body.removeChild(i)}}},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),a=e(133),l=e(66),n=s.__importStar(e(19));class o extends a.TextAnnotationView{initialize(){super.initialize(),this.visuals.warm_cache()}_get_size(){const{ctx:e}=this.plot_view.canvas_view;this.visuals.text.set_value(e);const{width:t,ascent:i}=e.measureText(this.model.text);return{width:t,height:i}}render(){if(this.model.visible||"css"!=this.model.render_mode||l.undisplay(this.el),!this.model.visible)return;let e;switch(this.model.angle_units){case"rad":e=-this.model.angle;break;case"deg":e=-this.model.angle*Math.PI/180}const t=null!=this.panel?this.panel:this.plot_view.frame,i=this.plot_view.frame.xscales[this.model.x_range_name],s=this.plot_view.frame.yscales[this.model.y_range_name];let a="data"==this.model.x_units?i.compute(this.model.x):t.xview.compute(this.model.x),n="data"==this.model.y_units?s.compute(this.model.y):t.yview.compute(this.model.y);a+=this.model.x_offset,n-=this.model.y_offset,("canvas"==this.model.render_mode?this._canvas_text.bind(this):this._css_text.bind(this))(this.plot_view.canvas_view.ctx,this.model.text,a,n,e)}}i.LabelView=o,o.__name__="LabelView";class _ extends a.TextAnnotation{constructor(e){super(e)}static init_Label(){this.prototype.default_view=o,this.mixins(["text","line:border_","fill:background_"]),this.define({x:[n.Number],x_units:[n.SpatialUnits,"data"],y:[n.Number],y_units:[n.SpatialUnits,"data"],text:[n.String],angle:[n.Angle,0],angle_units:[n.AngleUnits,"rad"],x_offset:[n.Number,0],y_offset:[n.Number,0],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({background_fill_color:null,border_line_color:null})}}i.Label=_,_.__name__="Label",_.init_Label()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),l=e(29),a=e(66),n=i.__importStar(e(19)),o=e(131),r=e(106),_=e(11);class h extends l.AnnotationView{constructor(){super(…arguments),this.rotate=!0}initialize(){super.initialize(),"css"==this.model.render_mode&&(this.el.classList.add(r.bk_annotation),this.plot_view.canvas_view.add_overlay(this.el))}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?this.connect(this.model.change,()=>this.render()):this.connect(this.model.change,()=>this.plot_view.request_render())}_calculate_text_dimensions(e,t){const{width:s}=e.measureText(t),{height:i}=o.measure_font(this.visuals.text.font_value());return[s,i]}_calculate_bounding_box_dimensions(e,t){const[s,i]=this._calculate_text_dimensions(e,t);let l,a;switch(e.textAlign){case"left":l=0;break;case"center":l=-s/2;break;case"right":l=-s;break;default:_.unreachable()}switch(e.textBaseline){case"top":a=0;break;case"middle":a=-.5*i;break;case"bottom":a=-1*i;break;case"alphabetic":a=-.8*i;break;case"hanging":a=-.17*i;break;case"ideographic":a=-.83*i;break;default:_.unreachable()}return[l,a,s,i]}_canvas_text(e,t,s,i,l){this.visuals.text.set_value(e);const a=this._calculate_bounding_box_dimensions(e,t);e.save(),e.beginPath(),e.translate(s,i),l&&e.rotate(l),e.rect(a[0],a[1],a[2],a[3]),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(e),e.fill()),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(e),e.stroke()),this.visuals.text.doit&&(this.visuals.text.set_value(e),e.fillText(t,0,0)),e.restore()}_css_text(e,t,s,i,l){a.undisplay(this.el),this.visuals.text.set_value(e);const n=this._calculate_bounding_box_dimensions(e,t),o=this.visuals.border_line.line_dash.value().length<2?"solid":"dashed";this.visuals.border_line.set_value(e),this.visuals.background_fill.set_value(e),this.el.style.position="absolute",this.el.style.left=`${s+n[0]}px`,this.el.style.top=`${i+n[1]}px`,this.el.style.color=`${this.visuals.text.text_color.value()}`,this.el.style.opacity=`${this.visuals.text.text_alpha.value()}`,this.el.style.font=`${this.visuals.text.font_value()}`,this.el.style.lineHeight="normal",l&&(this.el.style.transform=`rotate(${l}rad)`),this.visuals.background_fill.doit&&(this.el.style.backgroundColor=`${this.visuals.background_fill.color_value()}`),this.visuals.border_line.doit&&(this.el.style.borderStyle=`${o}`,this.el.style.borderWidth=`${this.visuals.border_line.line_width.value()}px`,this.el.style.borderColor=`${this.visuals.border_line.color_value()}`),this.el.textContent=t,a.display(this.el)}}s.TextAnnotationView=h,h.__name__="TextAnnotationView";class c extends l.Annotation{constructor(e){super(e)}static init_TextAnnotation(){this.define({render_mode:[n.RenderMode,"canvas"]})}}s.TextAnnotation=c,c.__name__="TextAnnotation",c.init_TextAnnotation()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),l=t(133),o=t(73),a=t(66),n=i.__importStar(t(19)),r=t(106);class _ extends l.TextAnnotationView{initialize(){if(super.initialize(),this.set_data(this.model.source),"css"==this.model.render_mode)for(let t=0,e=this._text.length;t<e;t++){const t=a.div({class:r.bk_annotation_child,style:{display:"none"}});this.el.appendChild(t)}}connect_signals(){super.connect_signals(),"css"==this.model.render_mode?(this.connect(this.model.change,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.streaming,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.patching,()=>{this.set_data(this.model.source),this.render()}),this.connect(this.model.source.change,()=>{this.set_data(this.model.source),this.render()})):(this.connect(this.model.change,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.streaming,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.patching,()=>{this.set_data(this.model.source),this.plot_view.request_render()}),this.connect(this.model.source.change,()=>{this.set_data(this.model.source),this.plot_view.request_render()}))}set_data(t){super.set_data(t),this.visuals.warm_cache(t)}_map_data(){const t=this.plot_view.frame.xscales[this.model.x_range_name],e=this.plot_view.frame.yscales[this.model.y_range_name],s=null!=this.panel?this.panel:this.plot_view.frame;return["data"==this.model.x_units?t.v_compute(this._x):s.xview.v_compute(this._x),"data"==this.model.y_units?e.v_compute(this._y):s.yview.v_compute(this._y)]}render(){if(this.model.visible||"css"!=this.model.render_mode||a.undisplay(this.el),!this.model.visible)return;const t="canvas"==this.model.render_mode?this._v_canvas_text.bind(this):this._v_css_text.bind(this),{ctx:e}=this.plot_view.canvas_view,[s,i]=this._map_data();for(let l=0,o=this._text.length;l<o;l++)t(e,l,this._text[l],s[l]+this._x_offset[l],i[l]-this._y_offset[l],this._angle[l])}_get_size(){const{ctx:t}=this.plot_view.canvas_view;this.visuals.text.set_value(t);const{width:e,ascent:s}=t.measureText(this._text[0]);return{width:e,height:s}}_v_canvas_text(t,e,s,i,l,o){this.visuals.text.set_vectorize(t,e);const a=this._calculate_bounding_box_dimensions(t,s);t.save(),t.beginPath(),t.translate(i,l),t.rotate(o),t.rect(a[0],a[1],a[2],a[3]),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_vectorize(t,e),t.fill()),this.visuals.border_line.doit&&(this.visuals.border_line.set_vectorize(t,e),t.stroke()),this.visuals.text.doit&&(this.visuals.text.set_vectorize(t,e),t.fillText(s,0,0)),t.restore()}_v_css_text(t,e,s,i,l,o){const n=this.el.children[e];n.textContent=s,this.visuals.text.set_vectorize(t,e);const r=this._calculate_bounding_box_dimensions(t,s),_=this.visuals.border_line.line_dash.value().length<2?"solid":"dashed";this.visuals.border_line.set_vectorize(t,e),this.visuals.background_fill.set_vectorize(t,e),n.style.position="absolute",n.style.left=`${i+r[0]}px`,n.style.top=`${l+r[1]}px`,n.style.color=`${this.visuals.text.text_color.value()}`,n.style.opacity=`${this.visuals.text.text_alpha.value()}`,n.style.font=`${this.visuals.text.font_value()}`,n.style.lineHeight="normal",o&&(n.style.transform=`rotate(${o}rad)`),this.visuals.background_fill.doit&&(n.style.backgroundColor=`${this.visuals.background_fill.color_value()}`),this.visuals.border_line.doit&&(n.style.borderStyle=`${_}`,n.style.borderWidth=`${this.visuals.border_line.line_width.value()}px`,n.style.borderColor=`${this.visuals.border_line.color_value()}`),a.display(n)}}s.LabelSetView=_,_.__name__="LabelSetView";class h extends l.TextAnnotation{constructor(t){super(t)}static init_LabelSet(){this.prototype.default_view=_,this.mixins(["text","line:border_","fill:background_"]),this.define({x:[n.NumberSpec],y:[n.NumberSpec],x_units:[n.SpatialUnits,"data"],y_units:[n.SpatialUnits,"data"],text:[n.StringSpec,{field:"text"}],angle:[n.AngleSpec,0],x_offset:[n.NumberSpec,{value:0}],y_offset:[n.NumberSpec,{value:0}],source:[n.Instance,()=>new o.ColumnDataSource],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({background_fill_color:null,border_line_color:null})}}s.LabelSet=h,h.__name__="LabelSet",h.init_LabelSet()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),l=t(29),n=s.__importStar(t(19)),h=t(14),a=t(131),_=t(85),o=t(9),r=t(24),d=t(8),c=t(11);class m extends l.AnnotationView{cursor(t,e){return"none"==this.model.click_policy?null:"pointer"}get legend_padding(){return null!=this.visuals.border_line.line_color.value()?this.model.padding:0}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.item_change,()=>this.plot_view.request_render())}compute_legend_bbox(){const t=this.model.get_legend_names(),{glyph_height:e,glyph_width:i}=this.model,{label_height:s,label_width:l}=this.model;this.max_label_height=o.max([a.measure_font(this.visuals.label_text.font_value()).height,s,e]);const{ctx:n}=this.plot_view.canvas_view;n.save(),this.visuals.label_text.set_value(n),this.text_widths={};for(const e of t)this.text_widths[e]=o.max([n.measureText(e).width,l]);this.visuals.title_text.set_value(n),this.title_height=this.model.title?a.measure_font(this.visuals.title_text.font_value()).height+this.model.title_standoff:0,this.title_width=this.model.title?n.measureText(this.model.title).width:0,n.restore();const h=Math.max(o.max(r.values(this.text_widths)),0),m=this.model.margin,{legend_padding:g}=this,b=this.model.spacing,{label_standoff:f}=this.model;let u,x;if("vertical"==this.model.orientation)u=t.length*this.max_label_height+Math.max(t.length-1,0)*b+2*g+this.title_height,x=o.max([h+i+f+2*g,this.title_width+2*g]);else{let e=2*g+Math.max(t.length-1,0)*b;for(const t in this.text_widths){const s=this.text_widths[t];e+=o.max([s,l])+i+f}x=o.max([this.title_width+2*g,e]),u=this.max_label_height+this.title_height+2*g}const p=null!=this.panel?this.panel:this.plot_view.frame,[v,w]=p.bbox.ranges,{location:y}=this.model;let k,N;if(d.isString(y))switch(y){case"top_left":k=v.start+m,N=w.start+m;break;case"top_center":k=(v.end+v.start)/2-x/2,N=w.start+m;break;case"top_right":k=v.end-m-x,N=w.start+m;break;case"bottom_right":k=v.end-m-x,N=w.end-m-u;break;case"bottom_center":k=(v.end+v.start)/2-x/2,N=w.end-m-u;break;case"bottom_left":k=v.start+m,N=w.end-m-u;break;case"center_left":k=v.start+m,N=(w.end+w.start)/2-u/2;break;case"center":k=(v.end+v.start)/2-x/2,N=(w.end+w.start)/2-u/2;break;case"center_right":k=v.end-m-x,N=(w.end+w.start)/2-u/2}else if(d.isArray(y)&&2==y.length){const[t,e]=y;k=p.xview.compute(t),N=p.yview.compute(e)-u}else c.unreachable();return new _.BBox({left:k,top:N,width:x,height:u})}interactive_bbox(){return this.compute_legend_bbox()}interactive_hit(t,e){return this.interactive_bbox().contains(t,e)}on_hit(t,e){let i;const{glyph_width:s}=this.model,{legend_padding:l}=this,n=this.model.spacing,{label_standoff:h}=this.model;let a=i=l;const o=this.compute_legend_bbox(),r="vertical"==this.model.orientation;for(const d of this.model.items){const c=d.get_labels_list_from_label_prop();for(const m of c){const c=o.x+a,g=o.y+i+this.title_height;let b,f;if([b,f]=r?[o.width-2*l,this.max_label_height]:[this.text_widths[m]+s+h,this.max_label_height],new _.BBox({left:c,top:g,width:b,height:f}).contains(t,e)){switch(this.model.click_policy){case"hide":for(const t of d.renderers)t.visible=!t.visible;break;case"mute":for(const t of d.renderers)t.muted=!t.muted}return!0}r?i+=this.max_label_height+n:a+=this.text_widths[m]+s+h+n}}return!1}render(){if(!this.model.visible)return;if(0==this.model.items.length)return;for(const t of this.model.items)t.legend=this.model;const{ctx:t}=this.plot_view.canvas_view,e=this.compute_legend_bbox();t.save(),this._draw_legend_box(t,e),this._draw_legend_items(t,e),this.model.title&&this._draw_title(t,e),t.restore()}_draw_legend_box(t,e){t.beginPath(),t.rect(e.x,e.y,e.width,e.height),this.visuals.background_fill.set_value(t),t.fill(),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.stroke())}_draw_legend_items(t,e){const{glyph_width:i,glyph_height:s}=this.model,{legend_padding:l}=this,n=this.model.spacing,{label_standoff:h}=this.model;let a=l,_=l;const r="vertical"==this.model.orientation;for(const d of this.model.items){const c=d.get_labels_list_from_label_prop(),m=d.get_field_from_label_prop();if(0==c.length)continue;const g=(()=>{switch(this.model.click_policy){case"none":return!0;case"hide":return o.every(d.renderers,t=>t.visible);case"mute":return o.every(d.renderers,t=>!t.muted)}})();for(const o of c){const c=e.x+a,b=e.y+_+this.title_height,f=c+i,u=b+s;r?_+=this.max_label_height+n:a+=this.text_widths[o]+i+h+n,this.visuals.label_text.set_value(t),t.fillText(o,f+h,b+this.max_label_height/2);for(const e of d.renderers){this.plot_view.renderer_views[e.id].draw_legend(t,c,f,b,u,m,o,d.index)}if(!g){let s,n;[s,n]=r?[e.width-2*l,this.max_label_height]:[this.text_widths[o]+i+h,this.max_label_height],t.beginPath(),t.rect(c,b,s,n),this.visuals.inactive_fill.set_value(t),t.fill()}}}}_draw_title(t,e){this.visuals.title_text.doit&&(t.save(),t.translate(e.x0,e.y0+this.title_height),this.visuals.title_text.set_value(t),t.fillText(this.model.title,this.legend_padding,this.legend_padding-this.model.title_standoff),t.restore())}_get_size(){const{width:t,height:e}=this.compute_legend_bbox();return{width:t+2*this.model.margin,height:e+2*this.model.margin}}}i.LegendView=m,m.__name__="LegendView";class g extends l.Annotation{constructor(t){super(t)}initialize(){super.initialize(),this.item_change=new h.Signal0(this,"item_change")}static init_Legend(){this.prototype.default_view=m,this.mixins(["text:label_","text:title_","fill:inactive_","line:border_","fill:background_"]),this.define({orientation:[n.Orientation,"vertical"],location:[n.Any,"top_right"],title:[n.String],title_standoff:[n.Number,5],label_standoff:[n.Number,5],glyph_height:[n.Number,20],glyph_width:[n.Number,20],label_height:[n.Number,20],label_width:[n.Number,20],margin:[n.Number,10],padding:[n.Number,10],spacing:[n.Number,3],items:[n.Array,[]],click_policy:[n.Any,"none"]}),this.override({border_line_color:"#e5e5e5",border_line_alpha:.5,border_line_width:1,background_fill_color:"#ffffff",background_fill_alpha:.95,inactive_fill_color:"white",inactive_fill_alpha:.7,label_text_font_size:"13px",label_text_baseline:"middle",title_text_font_size:"13px",title_text_font_style:"italic"})}get_legend_names(){const t=[];for(const e of this.items){const i=e.get_labels_list_from_label_prop();t.push(…i)}return t}}i.Legend=g,g.__name__="Legend",g.init_Legend()},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),l=e(69),i=e(74),s=e(137),_=t.__importStar(e(19)),o=e(70),a=e(9);class u extends l.Model{constructor(e){super(e)}static init_LegendItem(){this.define({label:[_.StringSpec,null],renderers:[_.Array,[]],index:[_.Number,null]})}_check_data_sources_on_renderers(){if(null!=this.get_field_from_label_prop()){if(this.renderers.length<1)return!1;const e=this.renderers[0].data_source;if(null!=e)for(const r of this.renderers)if(r.data_source!=e)return!1}return!0}_check_field_label_on_data_source(){const e=this.get_field_from_label_prop();if(null!=e){if(this.renderers.length<1)return!1;const r=this.renderers[0].data_source;if(null!=r&&!a.includes(r.columns(),e))return!1}return!0}initialize(){super.initialize(),this.legend=null,this.connect(this.change,()=>{null!=this.legend&&this.legend.item_change.emit()}),this._check_data_sources_on_renderers()||o.logger.error("Non matching data sources on legend item renderers"),this._check_field_label_on_data_source()||o.logger.error(Bad column name on label: ${this.label})}get_field_from_label_prop(){const{label:e}=this;return s.isField(e)?e.field:null}get_labels_list_from_label_prop(){if(s.isValue(this.label)){const{value:e}=this.label;return null!=e?[e]:[]}const e=this.get_field_from_label_prop();if(null!=e){let r;if(!this.renderers[0]||null==this.renderers[0].data_source)return["No source found"];if(r=this.renderers[0].data_source,r instanceof i.ColumnarDataSource){const n=r.get_column(e);return null!=n?a.uniq(Array.from(n)):["Invalid field"]}}return[]}}n.LegendItem=u,u.__name__="LegendItem",u.init_LegendItem()},n function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(8);n.isValue=function(e){return t.isPlainObject(e)&&"value"in e},n.isField=function(e){return t.isPlainObject(e)&&"field"in e}},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1),s=t(29),l=t(14),o=n.__importStar(t(19));class a extends s.AnnotationView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.data_update,()=>this.plot_view.request_render())}render(){if(!this.model.visible)return;const{xs:t,ys:e}=this.model;if(t.length!=e.length)return;if(t.length<3||e.length<3)return;const{frame:i}=this.plot_view,{ctx:n}=this.plot_view.canvas_view;for(let s=0,l=t.length;s<l;s++){let l,o;if("screen"!=this.model.xs_units)throw new Error("not implemented");if(l=this.model.screen?t[s]:i.xview.compute(t[s]),"screen"!=this.model.ys_units)throw new Error("not implemented");o=this.model.screen?e[s]:i.yview.compute(e[s]),0==s?(n.beginPath(),n.moveTo(l,o)):n.lineTo(l,o)}n.closePath(),this.visuals.line.doit&&(this.visuals.line.set_value(n),n.stroke()),this.visuals.fill.doit&&(this.visuals.fill.set_value(n),n.fill())}}i.PolyAnnotationView=a,a.__name__="PolyAnnotationView";class r extends s.Annotation{constructor(t){super(t)}static init_PolyAnnotation(){this.prototype.default_view=a,this.mixins(["line","fill"]),this.define({xs:[o.Array,[]],xs_units:[o.SpatialUnits,"data"],ys:[o.Array,[]],ys_units:[o.SpatialUnits,"data"],x_range_name:[o.String,"default"],y_range_name:[o.String,"default"]}),this.internal({screen:[o.Boolean,!1]}),this.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}initialize(){super.initialize(),this.data_update=new l.Signal0(this,"data_update")}update({xs:t,ys:e}){this.setv({xs:t,ys:e,screen:!0},{silent:!0}),this.data_update.emit()}}i.PolyAnnotation=r,r.__name__="PolyAnnotation",r.init_PolyAnnotation()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(29),l=n.__importStar(e(19));class o extends s.AnnotationView{initialize(){super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_render())}render(){this.model.visible&&this._draw_slope()}_draw_slope(){const e=this.model.gradient,t=this.model.y_intercept;if(null==e||null==t)return;const{frame:i}=this.plot_view,n=i.xscales[this.model.x_range_name],s=i.yscales[this.model.y_range_name],l=i._top.value,o=l+i._height.value,a=(s.invert(l)-t)/e,_=(s.invert(o)-t)/e,r=n.compute(a),c=n.compute(_),{ctx:u}=this.plot_view.canvas_view;u.save(),u.beginPath(),this.visuals.line.set_value(u),u.moveTo(r,l),u.lineTo(c,o),u.stroke(),u.restore()}}i.SlopeView=o,o.__name__="SlopeView";class a extends s.Annotation{constructor(e){super(e)}static init_Slope(){this.prototype.default_view=o,this.mixins(["line"]),this.define({gradient:[l.Number,null],y_intercept:[l.Number,null],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"]}),this.override({line_color:"black"})}}i.Slope=a,a.__name__="Slope",a.init_Slope()},n function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),o=e(29),n=e(66),l=s.__importStar(e(19));class a extends o.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),this.el.style.position="absolute",n.undisplay(this.el)}connect_signals(){super.connect_signals(),this.model.for_hover?this.connect(this.model.properties.computed_location.change,()=>this._draw_span()):"canvas"==this.model.render_mode?(this.connect(this.model.change,()=>this.plot_view.request_render()),this.connect(this.model.properties.location.change,()=>this.plot_view.request_render())):(this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.location.change,()=>this._draw_span()))}render(){this.model.visible||"css"!=this.model.render_mode||n.undisplay(this.el),this.model.visible&&this._draw_span()}_draw_span(){const e=this.model.for_hover?this.model.computed_location:this.model.location;if(null==e)return void n.undisplay(this.el);const{frame:i}=this.plot_view,t=i.xscales[this.model.x_range_name],s=i.yscales[this.model.y_range_name],o=(i,t)=>this.model.for_hover?this.model.computed_location:"data"==this.model.location_units?i.compute(e):t.compute(e);let l,a,h,d;if("width"==this.model.dimension?(h=o(s,i.yview),a=i._left.value,d=i._width.value,l=this.model.properties.line_width.value()):(h=i._top.value,a=o(t,i.xview),d=this.model.properties.line_width.value(),l=i._height.value),"css"==this.model.render_mode)this.el.style.top=`${h}px`,this.el.style.left=`${a}px`,this.el.style.width=`${d}px`,this.el.style.height=`${l}px`,this.el.style.backgroundColor=this.model.properties.line_color.value(),this.el.style.opacity=this.model.properties.line_alpha.value(),n.display(this.el);else if("canvas"==this.model.render_mode){const{ctx:e}=this.plot_view.canvas_view;e.save(),e.beginPath(),this.visuals.line.set_value(e),e.moveTo(a,h),"width"==this.model.dimension?e.lineTo(a+d,h):e.lineTo(a,h+l),e.stroke(),e.restore()}}}t.SpanView=a,a.__name__="SpanView";class h extends o.Annotation{constructor(e){super(e)}static init_Span(){this.prototype.default_view=a,this.mixins(["line"]),this.define({render_mode:[l.RenderMode,"canvas"],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"],location:[l.Number,null],location_units:[l.SpatialUnits,"data"],dimension:[l.Dimension,"width"]}),this.override({line_color:"black"}),this.internal({for_hover:[l.Boolean,!1],computed_location:[l.Number,null]})}}t.Span=h,h.__name__="Span",h.init_Span()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1),a=e(133),s=e(66),n=e(68),o=l.__importStar(e(19));class r extends a.TextAnnotationView{initialize(){super.initialize(),this.visuals.text=new n.Text(this.model)}_get_location(){const e=this.panel,t=this.model.offset;let i,l;switch(e.side){case"above":case"below":switch(this.model.vertical_align){case"top":l=e._top.value+5;break;case"middle":l=e._vcenter.value;break;case"bottom":l=e._bottom.value-5}switch(this.model.align){case"left":i=e._left.value+t;break;case"center":i=e._hcenter.value;break;case"right":i=e._right.value-t}break;case"left":switch(this.model.vertical_align){case"top":i=e._left.value-5;break;case"middle":i=e._hcenter.value;break;case"bottom":i=e._right.value+5}switch(this.model.align){case"left":l=e._bottom.value-t;break;case"center":l=e._vcenter.value;break;case"right":l=e._top.value+t}break;case"right":switch(this.model.vertical_align){case"top":i=e._right.value-5;break;case"middle":i=e._hcenter.value;break;case"bottom":i=e._left.value+5}switch(this.model.align){case"left":l=e._top.value+t;break;case"center":l=e._vcenter.value;break;case"right":l=e._bottom.value-t}}return[i,l]}render(){if(!this.model.visible)return void("css"==this.model.render_mode&&s.undisplay(this.el));const{text:e}=this.model;if(null==e||0==e.length)return;this.model.text_baseline=this.model.vertical_align,this.model.text_align=this.model.align;const[t,i]=this._get_location(),l=this.panel.get_label_angle_heuristic("parallel");("canvas"==this.model.render_mode?this._canvas_text.bind(this):this._css_text.bind(this))(this.plot_view.canvas_view.ctx,e,t,i,l)}_get_size(){const{text:e}=this.model;if(null==e||0==e.length)return{width:0,height:0};{this.visuals.text.set_value(this.ctx);const{width:t,ascent:i}=this.ctx.measureText(e);return{width:t,height:i*this.visuals.text.text_line_height.value()+10}}}}i.TitleView=r,r.__name__="TitleView";class c extends a.TextAnnotation{constructor(e){super(e)}static init_Title(){this.prototype.default_view=r,this.mixins(["line:border_","fill:background_"]),this.define({text:[o.String],text_font:[o.Font,"helvetica"],text_font_size:[o.FontSizeSpec,"13px"],text_font_style:[o.FontStyle,"bold"],text_color:[o.ColorSpec,"#444444"],text_alpha:[o.NumberSpec,1],text_line_height:[o.Number,1],vertical_align:[o.VerticalAlign,"bottom"],align:[o.TextAlign,"left"],offset:[o.Number,0]}),this.override({background_fill_color:null,border_line_color:null}),this.internal({text_align:[o.TextAlign,"left"],text_baseline:[o.TextBaseline,"bottom"]})}}i.Title=c,c.__name__="Title",c.init_Title()},n function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(1),l=e(29),s=e(96),a=e(66),n=o.__importStar(e(19));class r extends l.AnnotationView{constructor(){super(…arguments),this.rotate=!0}initialize(){super.initialize(),this.plot_view.canvas_view.add_event(this.el)}async lazy_initialize(){this._toolbar_view=await s.build_view(this.model.toolbar,{parent:this}),this.plot_view.visibility_callbacks.push(e=>this._toolbar_view.set_visibility(e))}remove(){this._toolbar_view.remove(),super.remove()}render(){super.render(),this.model.visible?(this.el.style.position="absolute",this.el.style.overflow="hidden",a.position(this.el,this.panel.bbox),this._toolbar_view.render(),a.empty(this.el),this.el.appendChild(this._toolbar_view.el),a.display(this.el)):a.undisplay(this.el)}_get_size(){const{tools:e,logo:i}=this.model.toolbar;return{width:30*e.length+(null!=i?25:0),height:30}}}t.ToolbarPanelView=r,r.__name__="ToolbarPanelView";class _ extends l.Annotation{constructor(e){super(e)}static init_ToolbarPanel(){this.prototype.default_view=r,this.define({toolbar:[n.Instance]})}}t.ToolbarPanel=_,_.__name__="ToolbarPanel",_.init_ToolbarPanel()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),l=t(29),o=t(66),a=i.__importStar(t(19)),h=t(144),n=t(145);function c(t,e,s,i,l){switch(t){case"horizontal":return e<i?"right":"left";case"vertical":return s<l?"below":"above";default:return t}}s.compute_side=c;class r extends l.AnnotationView{initialize(){super.initialize(),this.plot_view.canvas_view.add_overlay(this.el),o.undisplay(this.el)}connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,()=>this._draw_tips())}css_classes(){return super.css_classes().concat(h.bk_tooltip)}render(){this.model.visible&&this._draw_tips()}_draw_tips(){const{data:t}=this.model;if(o.empty(this.el),o.undisplay(this.el),this.model.custom?this.el.classList.add(h.bk_tooltip_custom):this.el.classList.remove(h.bk_tooltip_custom),0==t.length)return;const{frame:e}=this.plot_view;for(const[s,i,l]of t){if(this.model.inner_only&&!e.bbox.contains(s,i))continue;const t=o.div({},l);this.el.appendChild(t)}const[s,i]=t[t.length-1],l=c(this.model.attachment,s,i,e._hcenter.value,e._vcenter.value);this.el.classList.remove(n.bk_right),this.el.classList.remove(n.bk_left),this.el.classList.remove(n.bk_above),this.el.classList.remove(n.bk_below);let a;o.display(this.el);let r=0,d=0;switch(l){case"right":this.el.classList.add(n.bk_left),r=s+(this.el.offsetWidth-this.el.clientWidth)+10,a=i-this.el.offsetHeight/2;break;case"left":this.el.classList.add(n.bk_right),d=this.plot_view.layout.bbox.width-s+10,a=i-this.el.offsetHeight/2;break;case"below":this.el.classList.add(n.bk_above),a=i+(this.el.offsetHeight-this.el.clientHeight)+10,r=Math.round(s-this.el.offsetWidth/2);break;case"above":this.el.classList.add(n.bk_below),a=i-this.el.offsetHeight-10,r=Math.round(s-this.el.offsetWidth/2)}this.model.show_arrow&&this.el.classList.add(h.bk_tooltip_arrow),this.el.childNodes.length>0?(this.el.style.top=`${a}px`,this.el.style.left=r?`${r}px`:"auto",this.el.style.right=d?`${d}px`:"auto"):o.undisplay(this.el)}}s.TooltipView=r,r.__name__="TooltipView";class d extends l.Annotation{constructor(t){super(t)}static init_Tooltip(){this.prototype.default_view=r,this.define({attachment:[a.TooltipAttachment,"horizontal"],inner_only:[a.Boolean,!0],show_arrow:[a.Boolean,!0]}),this.override({level:"overlay"}),this.internal({data:[a.Any,[]],custom:[a.Any]})}clear(){this.data=[]}add(t,e,s){this.data=this.data.concat([[t,e,s]])}}s.Tooltip=d,d.__name__="Tooltip",d.init_Tooltip()},n function _(o,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=o(1);o(67),r.__importStar(o(66)).styles.append(‘.bk-root {\n /* Same border color used everywhere /\n / Gray of icons /\n}\n.bk-root .bk-tooltip {\n font-weight: 300;\n font-size: 12px;\n position: absolute;\n padding: 5px;\n border: 1px solid #e5e5e5;\n color: #2f2f2f;\n background-color: white;\n pointer-events: none;\n opacity: 0.95;\n z-index: 100;\n}\n.bk-root .bk-tooltip > div:not(:first-child) {\n / gives space when multiple elements are being hovered over /\n margin-top: 5px;\n border-top: #e5e5e5 1px dashed;\n}\n.bk-root .bk-tooltip.bk-left.bk-tooltip-arrow::before {\n position: absolute;\n margin: -7px 0 0 0;\n top: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 7px 0 7px 0;\n border-color: transparent;\n content: " ";\n display: block;\n left: -10px;\n border-right-width: 10px;\n border-right-color: #909599;\n}\n.bk-root .bk-tooltip.bk-left::before {\n left: -10px;\n border-right-width: 10px;\n border-right-color: #909599;\n}\n.bk-root .bk-tooltip.bk-right.bk-tooltip-arrow::after {\n position: absolute;\n margin: -7px 0 0 0;\n top: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 7px 0 7px 0;\n border-color: transparent;\n content: " ";\n display: block;\n right: -10px;\n border-left-width: 10px;\n border-left-color: #909599;\n}\n.bk-root .bk-tooltip.bk-right::after {\n right: -10px;\n border-left-width: 10px;\n border-left-color: #909599;\n}\n.bk-root .bk-tooltip.bk-above::before {\n position: absolute;\n margin: 0 0 0 -7px;\n left: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 7px 0 7px;\n border-color: transparent;\n content: " ";\n display: block;\n top: -10px;\n border-bottom-width: 10px;\n border-bottom-color: #909599;\n}\n.bk-root .bk-tooltip.bk-below::after {\n position: absolute;\n margin: 0 0 0 -7px;\n left: 50%;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 7px 0 7px;\n border-color: transparent;\n content: " ";\n display: block;\n bottom: -10px;\n border-top-width: 10px;\n border-top-color: #909599;\n}\n.bk-root .bk-tooltip-row-label {\n text-align: right;\n color: #26aae1;\n / blue from toolbar highlighting /\n}\n.bk-root .bk-tooltip-row-value {\n color: default;\n / seems to be necessary for notebook /\n}\n.bk-root .bk-tooltip-color-block {\n width: 12px;\n height: 12px;\n margin-left: 5px;\n margin-right: 5px;\n outline: #dddddd solid 1px;\n display: inline-block;\n}\n’),n.bk_tooltip="bk-tooltip",n.bk_tooltip_arrow="bk-tooltip-arrow",n.bk_tooltip_custom="bk-tooltip-custom",n.bk_tooltip_row_label="bk-tooltip-row-label",n.bk_tooltip_row_value="bk-tooltip-row-value",n.bk_tooltip_color_block="bk-tooltip-color-block"},n function _(e,b,t){Object.defineProperty(t,"__esModule",{value:!0}),e(1).__importStar(e(66)).styles.append(""),t.bk_active="bk-active",t.bk_inline="bk-inline",t.bk_left="bk-left",t.bk_right="bk-right",t.bk_above="bk-above",t.bk_below="bk-below",t.bk_up="bk-up",t.bk_down="bk-down",t.bk_side=function(e){switch(e){case"above":return t.bk_above;case"below":return t.bk_below;case"left":return t.bk_left;case"right":return t.bk_right}}},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(29),o=e(73),a=e(72),n=i.__importStar(e(19));class h extends r.AnnotationView{initialize(){super.initialize(),this.set_data(this.model.source)}connect_signals(){super.connect_signals(),this.connect(this.model.source.streaming,()=>this.set_data(this.model.source)),this.connect(this.model.source.patching,()=>this.set_data(this.model.source)),this.connect(this.model.source.change,()=>this.set_data(this.model.source))}set_data(e){super.set_data(e),this.visuals.warm_cache(e),this.plot_view.request_render()}_map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=e.xscales[this.model.x_range_name],i=e.yscales[this.model.y_range_name],r="height"==t?i:s,o="height"==t?s:i,a="height"==t?e.yview:e.xview,n="height"==t?e.xview:e.yview;let h,_,l;h="data"==this.model.properties.lower.units?r.v_compute(this._lower):a.v_compute(this._lower),_="data"==this.model.properties.upper.units?r.v_compute(this._upper):a.v_compute(this._upper),l="data"==this.model.properties.base.units?o.v_compute(this._base):n.v_compute(this._base);const[d,p]="height"==t?[1,0]:[0,1],c=[h,l],u=[_,l];this._lower_sx=c[d],this._lower_sy=c[p],this._upper_sx=u[d],this._upper_sy=u[p]}render(){if(!this.model.visible)return;this._map_data();const{ctx:e}=this.plot_view.canvas_view;if(this.visuals.line.doit)for(let t=0,s=this._lower_sx.length;t<s;t++)this.visuals.line.set_vectorize(e,t),e.beginPath(),e.moveTo(this._lower_sx[t],this._lower_sy[t]),e.lineTo(this._upper_sx[t],this._upper_sy[t]),e.stroke();const t="height"==this.model.dimension?0:Math.PI/2;if(null!=this.model.lower_head)for(let s=0,i=this._lower_sx.length;s<i;s++)e.save(),e.translate(this._lower_sx[s],this._lower_sy[s]),e.rotate(t+Math.PI),this.model.lower_head.render(e,s),e.restore();if(null!=this.model.upper_head)for(let s=0,i=this._upper_sx.length;s<i;s++)e.save(),e.translate(this._upper_sx[s],this._upper_sy[s]),e.rotate(t),this.model.upper_head.render(e,s),e.restore()}}s.WhiskerView=h,h.__name__="WhiskerView";class _ extends r.Annotation{constructor(e){super(e)}static init_Whisker(){this.prototype.default_view=h,this.mixins(["line"]),this.define({lower:[n.DistanceSpec],lower_head:[n.Instance,()=>new a.TeeHead({level:"underlay",size:10})],upper:[n.DistanceSpec],upper_head:[n.Instance,()=>new a.TeeHead({level:"underlay",size:10})],base:[n.DistanceSpec],dimension:[n.Dimension,"height"],source:[n.Instance,()=>new o.ColumnDataSource],x_range_name:[n.String,"default"],y_range_name:[n.String,"default"]}),this.override({level:"underlay"})}}s.Whisker=_,_.__name__="Whisker",_.init_Whisker()},n function _(i,a,e){Object.defineProperty(e,"__esModule",{value:!0});var r=i(148);e.Axis=r.Axis;var s=i(150);e.CategoricalAxis=s.CategoricalAxis;var x=i(153);e.ContinuousAxis=x.ContinuousAxis;var A=i(154);e.DatetimeAxis=A.DatetimeAxis;var o=i(155);e.LinearAxis=o.LinearAxis;var t=i(168);e.LogAxis=t.LogAxis;var n=i(171);e.MercatorAxis=n.MercatorAxis},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),a=e(149),l=s.__importStar(e(19)),n=e(9),o=e(8),r=e(88),{abs:_,min:h,max:c}=Math;class m extends a.GuideRendererView{constructor(){super(…arguments),this.rotate=!0}get panel(){return this.layout}render(){if(!this.model.visible)return;const e={tick:this._tick_extent(),tick_label:this._tick_label_extents(),axis_label:this._axis_label_extent()},t=this.tick_coords,i=this.plot_view.canvas_view.ctx;i.save(),this._draw_rule(i,e),this._draw_major_ticks(i,e,t),this._draw_minor_ticks(i,e,t),this._draw_major_labels(i,e,t),this._draw_axis_label(i,e,t),null!=this._render&&this._render(i,e,t),i.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.plot_view.request_paint());const e=this.model.properties;this.on_change(e.visible,()=>this.plot_view.request_layout())}get_size(){if(this.model.visible&&null==this.model.fixed_location){const e=this._get_size();return{width:0,height:Math.round(e)}}return{width:0,height:0}}_get_size(){return this._tick_extent()+this._tick_label_extent()+this._axis_label_extent()}get needs_clip(){return null!=this.model.fixed_location}_draw_rule(e,t){if(!this.visuals.axis_line.doit)return;const[i,s]=this.rule_coords,[a,l]=this.plot_view.map_to_screen(i,s,this.model.x_range_name,this.model.y_range_name),[n,o]=this.normals,[r,_]=this.offsets;this.visuals.axis_line.set_value(e),e.beginPath(),e.moveTo(Math.round(a[0]+n*r),Math.round(l[0]+o*_));for(let t=1;t<a.length;t++){const i=Math.round(a[t]+n*r),s=Math.round(l[t]+o*_);e.lineTo(i,s)}e.stroke()}_draw_major_ticks(e,t,i){const s=this.model.major_tick_in,a=this.model.major_tick_out,l=this.visuals.major_tick_line;this._draw_ticks(e,i.major,s,a,l)}_draw_minor_ticks(e,t,i){const s=this.model.minor_tick_in,a=this.model.minor_tick_out,l=this.visuals.minor_tick_line;this._draw_ticks(e,i.minor,s,a,l)}_draw_major_labels(e,t,i){const s=i.major,a=this.compute_labels(s[this.dimension]),l=this.model.major_label_orientation,n=t.tick+this.model.major_label_standoff,o=this.visuals.major_label_text;this._draw_oriented_labels(e,a,s,l,this.panel.side,n,o)}_draw_axis_label(e,t,i){if(null==this.model.axis_label||0==this.model.axis_label.length||null!=this.model.fixed_location)return;let s,a;switch(this.panel.side){case"above":s=this.panel._hcenter.value,a=this.panel._bottom.value;break;case"below":s=this.panel._hcenter.value,a=this.panel._top.value;break;case"left":s=this.panel._right.value,a=this.panel._vcenter.value;break;case"right":s=this.panel._left.value,a=this.panel._vcenter.value;break;default:throw new Error(`unknown side: ${this.panel.side}`)}const l=[[s],[a]],o=t.tick+n.sum(t.tick_label)+this.model.axis_label_standoff,r=this.visuals.axis_label_text;this._draw_oriented_labels(e,[this.model.axis_label],l,"parallel",this.panel.side,o,r,"screen")}_draw_ticks(e,t,i,s,a){if(!a.doit)return;const[l,n]=t,[o,r]=this.plot_view.map_to_screen(l,n,this.model.x_range_name,this.model.y_range_name),[_,h]=this.normals,[c,m]=this.offsets,[d,u]=[_*(c-i),h*(m-i)],[b,x]=[_*(c+s),h*(m+s)];a.set_value(e);for(let t=0;t<o.length;t++){const i=Math.round(o[t]+b),s=Math.round(r[t]+x),a=Math.round(o[t]+d),l=Math.round(r[t]+u);e.beginPath(),e.moveTo(i,s),e.lineTo(a,l),e.stroke()}}_draw_oriented_labels(e,t,i,s,a,l,n,r="data"){if(!n.doit||0==t.length)return;let _,h,c,m;if("screen"==r)[_,h]=i,[c,m]=[0,0];else{const[e,t]=i;[_,h]=this.plot_view.map_to_screen(e,t,this.model.x_range_name,this.model.y_range_name),[c,m]=this.offsets}const[d,u]=this.normals,b=d*(c+l),x=u*(m+l);let p;n.set_value(e),this.panel.apply_label_text_heuristics(e,s),p=o.isString(s)?this.panel.get_label_angle_heuristic(s):-s;for(let i=0;i<_.length;i++){const s=Math.round(_[i]+b),a=Math.round(h[i]+x);e.translate(s,a),e.rotate(p),e.fillText(t[i],0,0),e.rotate(-p),e.translate(-s,-a)}}_axis_label_extent(){if(null==this.model.axis_label||""==this.model.axis_label)return 0;const e=this.model.axis_label_standoff,t=this.visuals.axis_label_text;return this._oriented_labels_extent([this.model.axis_label],"parallel",this.panel.side,e,t)}_tick_extent(){return this.model.major_tick_out}_tick_label_extent(){return n.sum(this._tick_label_extents())}_tick_label_extents(){const e=this.tick_coords.major,t=this.compute_labels(e[this.dimension]),i=this.model.major_label_orientation,s=this.model.major_label_standoff,a=this.visuals.major_label_text;return[this._oriented_labels_extent(t,i,this.panel.side,s,a)]}_oriented_labels_extent(e,t,i,s,a){if(0==e.length)return 0;const l=this.plot_view.canvas_view.ctx;let n,r;a.set_value(l),o.isString(t)?(n=1,r=this.panel.get_label_angle_heuristic(t)):(n=2,r=-t),r=Math.abs(r);const _=Math.cos(r),h=Math.sin(r);let c=0;for(let t=0;t<e.length;t++){const s=1.1*l.measureText(e[t]).width,a=.9*l.measureText(e[t]).ascent;let o;o="above"==i||"below"==i?s*h+a/n*_:s*_+a/n*h,o>c&&(c=o)}return c>0&&(c+=s),c}get normals(){return this.panel.normals}get dimension(){return this.panel.dimension}compute_labels(e){const t=this.model.formatter.doFormat(e,this);for(let i=0;i<e.length;i++)e[i]in this.model.major_label_overrides&&(t[i]=this.model.major_label_overrides[e[i]]);return t}get offsets(){if(null!=this.model.fixed_location)return[0,0];const{frame:e}=this.plot_view;let[t,i]=[0,0];switch(this.panel.side){case"below":i=_(this.panel._top.value-e._bottom.value);break;case"above":i=_(this.panel._bottom.value-e._top.value);break;case"right":t=_(this.panel._left.value-e._right.value);break;case"left":t=_(this.panel._right.value-e._left.value)}return[t,i]}get ranges(){const e=this.dimension,t=(e+1)%2,{frame:i}=this.plot_view,s=[i.x_ranges[this.model.x_range_name],i.y_ranges[this.model.y_range_name]];return[s[e],s[t]]}get computed_bounds(){const[e]=this.ranges,t=this.model.bounds,i=[e.min,e.max];if("auto"==t)return[e.min,e.max];if(o.isArray(t)){let e,s;const[a,l]=t,[n,o]=i;return _(a-l)>_(n-o)?(e=c(h(a,l),n),s=h(c(a,l),o)):(e=h(a,l),s=c(a,l)),[e,s]}throw new Error(`user bounds ‘${t}’ not understood`)}get rule_coords(){const e=this.dimension,t=(e+1)%2,[i]=this.ranges,[s,a]=this.computed_bounds,l=[new Array(2),new Array(2)];return l[e][0]=Math.max(s,i.min),l[e][1]=Math.min(a,i.max),l[e][0]>l[e][1]&&(l[e][0]=l[e][1]=NaN),l[t][0]=this.loc,l[t][1]=this.loc,l}get tick_coords(){const e=this.dimension,t=(e+1)%2,[i]=this.ranges,[s,a]=this.computed_bounds,l=this.model.ticker.get_ticks(s,a,i,this.loc,{}),n=l.major,o=l.minor,r=[[],[]],_=[[],[]],[h,c]=[i.min,i.max];for(let i=0;i<n.length;i++)n[i]<h||n[i]>c||(r[e].push(n[i]),r[t].push(this.loc));for(let i=0;i<o.length;i++)o[i]<h||o[i]>c||(_[e].push(o[i]),_[t].push(this.loc));return{major:r,minor:_}}get loc(){const{fixed_location:e}=this.model;if(null!=e){if(o.isNumber(e))return e;const[,t]=this.ranges;if(t instanceof r.FactorRange)return t.synthetic(e);throw new Error("unexpected")}const[,t]=this.ranges;switch(this.panel.side){case"left":case"below":return t.start;case"right":case"above":return t.end}}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.layout.bbox.box})}}i.AxisView=m,m.__name__="AxisView";class d extends a.GuideRenderer{constructor(e){super(e)}static init_Axis(){this.prototype.default_view=m,this.mixins(["line:axis_","line:major_tick_","line:minor_tick_","text:major_label_","text:axis_label_"]),this.define({bounds:[l.Any,"auto"],ticker:[l.Instance],formatter:[l.Instance],x_range_name:[l.String,"default"],y_range_name:[l.String,"default"],axis_label:[l.String,""],axis_label_standoff:[l.Int,5],major_label_standoff:[l.Int,5],major_label_orientation:[l.Any,"horizontal"],major_label_overrides:[l.Any,{}],major_tick_in:[l.Number,2],major_tick_out:[l.Number,6],minor_tick_in:[l.Number,0],minor_tick_out:[l.Number,4],fixed_location:[l.Any,null]}),this.override({axis_line_color:"black",major_tick_line_color:"black",minor_tick_line_color:"black",major_label_text_font_size:"11px",major_label_text_align:"center",major_label_text_baseline:"alphabetic",axis_label_text_font_size:"13px",axis_label_text_font_style:"italic"})}}i.Axis=d,d.__name__="Axis",d.init_Axis()},n function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});const n=e(63);class i extends n.RendererView{}d.GuideRendererView=i,i.__name__="GuideRendererView";class t extends n.Renderer{constructor(e){super(e)}static init_GuideRenderer(){this.override({level:"overlay"})}}d.GuideRenderer=t,t.__name__="GuideRenderer",t.init_GuideRenderer()},n function _(t,s,o){Object.defineProperty(o,"__esModule",{value:!0});const e=t(1),i=t(148),r=t(151),a=t(152),l=e.__importStar(t(19));class _ extends i.AxisView{_render(t,s,o){this._draw_group_separators(t,s,o)}_draw_group_separators(t,s,o){const[e]=this.ranges,[i,r]=this.computed_bounds;if(!e.tops||e.tops.length<2||!this.visuals.separator_line.doit)return;const a=this.dimension,l=(a+1)%2,_=[[],[]];let n=0;for(let t=0;t<e.tops.length-1;t++){let s,o;for(let i=n;i<e.factors.length;i++)if(e.factors[i][0]==e.tops[t+1]){[s,o]=[e.factors[i-1],e.factors[i]],n=i;break}const h=(e.synthetic(s)+e.synthetic(o))/2;h>i&&h<r&&(_[a].push(h),_[l].push(this.loc))}const h=this._tick_label_extent();this._draw_ticks(t,_,-3,h-6,this.visuals.separator_line)}_draw_major_labels(t,s,o){const e=this._get_factor_info();let i=s.tick+this.model.major_label_standoff;for(let o=0;o<e.length;o++){const[r,a,l,_]=e[o];this._draw_oriented_labels(t,r,a,l,this.panel.side,i,_),i+=s.tick_label[o]}}_tick_label_extents(){const t=this._get_factor_info(),s=[];for(const[o,,e,i]of t){const t=this._oriented_labels_extent(o,e,this.panel.side,this.model.major_label_standoff,i);s.push(t)}return s}_get_factor_info(){const[t]=this.ranges,[s,o]=this.computed_bounds,e=this.loc,i=this.model.ticker.get_ticks(s,o,t,e,{}),r=this.tick_coords,a=[];if(1==t.levels){const t=i.major,s=this.model.formatter.doFormat(t,this);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text])}else if(2==t.levels){const t=i.major.map(t=>t[1]),s=this.model.formatter.doFormat(t,this);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([i.tops,r.tops,this.model.group_label_orientation,this.visuals.group_text])}else if(3==t.levels){const t=i.major.map(t=>t[2]),s=this.model.formatter.doFormat(t,this),o=i.mids.map(t=>t[1]);a.push([s,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([o,r.mids,this.model.subgroup_label_orientation,this.visuals.subgroup_text]),a.push([i.tops,r.tops,this.model.group_label_orientation,this.visuals.group_text])}return a}get tick_coords(){const t=this.dimension,s=(t+1)%2,[o]=this.ranges,[e,i]=this.computed_bounds,r=this.model.ticker.get_ticks(e,i,o,this.loc,{}),a={major:[[],[]],mids:[[],[]],tops:[[],[]],minor:[[],[]]};return a.major[t]=r.major,a.major[s]=r.major.map(t=>this.loc),3==o.levels&&(a.mids[t]=r.mids,a.mids[s]=r.mids.map(t=>this.loc)),o.levels>1&&(a.tops[t]=r.tops,a.tops[s]=r.tops.map(t=>this.loc)),a}}o.CategoricalAxisView=_,_.__name__="CategoricalAxisView";class n extends i.Axis{constructor(t){super(t)}static init_CategoricalAxis(){this.prototype.default_view=_,this.mixins(["line:separator_","text:group_","text:subgroup_"]),this.define({group_label_orientation:[l.Any,"parallel"],subgroup_label_orientation:[l.Any,"parallel"]}),this.override({ticker:()=>new r.CategoricalTicker,formatter:()=>new a.CategoricalTickFormatter,separator_line_color:"lightgrey",separator_line_width:2,group_text_font_style:"bold",group_text_font_size:"11px",group_text_color:"grey",subgroup_text_font_style:"bold",subgroup_text_font_size:"11px"})}}o.CategoricalAxis=n,n.__name__="CategoricalAxis",n.init_CategoricalAxis()},n function _(t,c,e){Object.defineProperty(e,"__esModule",{value:!0});const o=t(111);class s extends o.Ticker{constructor(t){super(t)}get_ticks(t,c,e,o,s){return{major:this._collect(e.factors,e,t,c),minor:[],tops:this._collect(e.tops||[],e,t,c),mids:this._collect(e.mids||[],e,t,c)}}_collect(t,c,e,o){const s=[];for(const r of t){const t=c.synthetic(r);t>e&&t<o&&s.push(r)}return s}}e.CategoricalTicker=s,s.__name__="CategoricalTicker"},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(113),c=e(9);class a extends o.TickFormatter{constructor(e){super(e)}doFormat(e,t){return c.copy(e)}}r.CategoricalTickFormatter=a,a.__name__="CategoricalTickFormatter"},n function _(s,e,n){Object.defineProperty(n,"__esModule",{value:!0});const o=s(148);class t extends o.Axis{constructor(s){super(s)}}n.ContinuousAxis=t,t.__name__="ContinuousAxis"},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(155),a=e(156),r=e(161);class n extends s.LinearAxisView{}i.DatetimeAxisView=n,n.__name__="DatetimeAxisView";class _ extends s.LinearAxis{constructor(e){super(e)}static init_DatetimeAxis(){this.prototype.default_view=n,this.override({ticker:()=>new r.DatetimeTicker,formatter:()=>new a.DatetimeTickFormatter})}}i.DatetimeAxis=_,_.__name__="DatetimeAxis",_.init_DatetimeAxis()},n function _(e,i,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(148),n=e(153),r=e(112),a=e(108);class _ extends t.AxisView{}s.LinearAxisView=_,_.__name__="LinearAxisView";class c extends n.ContinuousAxis{constructor(e){super(e)}static init_LinearAxis(){this.prototype.default_view=_,this.override({ticker:()=>new a.BasicTicker,formatter:()=>new r.BasicTickFormatter})}}s.LinearAxis=c,c.__name__="LinearAxis",c.init_LinearAxis()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const r=t(1),i=r.__importDefault(t(157)),n=t(113),o=t(70),a=r.__importStar(t(19)),c=t(158),m=t(9),u=t(8);function h(t){return i.default(t,"%Y %m %d %H %M %S").split(/\s+/).map(t=>parseInt(t,10))}function d(t,s){if(u.isFunction(s))return s(t);{const e=c.sprintf("$1%06d",function(t){return Math.round(t/1e3%1*1e6)}(t));return-1==(s=s.replace(/((^|[^%])(%%))%f/,e)).indexOf("%")?s:i.default(t,s)}}const l=["microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"];class _ extends n.TickFormatter{constructor(t){super(t),this.strip_leading_zeros=!0}static init_DatetimeTickFormatter(){this.define({microseconds:[a.Array,["%fus"]],milliseconds:[a.Array,["%3Nms","%S.%3Ns"]],seconds:[a.Array,["%Ss"]],minsec:[a.Array,[":%M:%S"]],minutes:[a.Array,[":%M","%Mm"]],hourmin:[a.Array,["%H:%M"]],hours:[a.Array,["%Hh","%H:%M"]],days:[a.Array,["%m/%d","%a%d"]],months:[a.Array,["%m/%Y","%b %Y"]],years:[a.Array,["%Y"]]})}initialize(){super.initialize(),this._update_width_formats()}_update_width_formats(){const t=+i.default(new Date),s=function(s){const e=s.map(s=>d(t,s).length),r=m.sort_by(m.zip(e,s),([t])=>t);return m.unzip(r)};this._width_formats={microseconds:s(this.microseconds),milliseconds:s(this.milliseconds),seconds:s(this.seconds),minsec:s(this.minsec),minutes:s(this.minutes),hourmin:s(this.hourmin),hours:s(this.hours),days:s(this.days),months:s(this.months),years:s(this.years)}}_get_resolution_str(t,s){const e=1.1*t;switch(!1){case!(e<.001):return"microseconds";case!(e<1):return"milliseconds";case!(e<60):return s>=60?"minsec":"seconds";case!(e<3600):return s>=3600?"hourmin":"minutes";case!(e<86400):return"hours";case!(e<2678400):return"days";case!(e<31536e3):return"months";default:return"years"}}doFormat(t,s){if(0==t.length)return[];const e=Math.abs(t[t.length-1]-t[0])/1e3,r=e/(t.length-1),i=this._get_resolution_str(r,e),[,[n]]=this._width_formats[i],a=[],c=l.indexOf(i),m={};for(const t of l)m[t]=0;m.seconds=5,m.minsec=4,m.minutes=4,m.hourmin=3,m.hours=3;for(const s of t){let t,e;try{e=h(s),t=d(s,n)}catch(t){o.logger.warn(unable to format tick for timestamp value ${s}),o.logger.warn(` - ${t}`),a.push("ERR");continue}let r=!1,u=c;for(;0==e[m[l[u]]];){let n;if(u+=1,u==l.length)break;if(("minsec"==i||"hourmin"==i)&&!r){if("minsec"==i&&0==e[4]&&0!=e[5]||"hourmin"==i&&0==e[3]&&0!=e[4]){n=this._width_formats[l[c-1]][1][0],t=d(s,n);break}r=!0}n=this._width_formats[l[u]][1][0],t=d(s,n)}if(this.strip_leading_zeros){let s=t.replace(/^0+/g,"");s!=t&&isNaN(parseInt(s))&&(s=`0${s}`),a.push(s)}else a.push(t)}return a}}e.DatetimeTickFormatter=_,_.__name__="DatetimeTickFormatter",_.init_DatetimeTickFormatter()},n function _(e,t,n){!function(e){"object"==typeof t&&t.exports?t.exports=e():"function"==typeof define?define(e):this.tz=e()}((function(){function e(e,t,n){var r,o=t.day[1];do{r=new Date(Date.UTC(n,t.month,Math.abs(o++)))}while(t.day[0]<7&&r.getUTCDay()!=t.day[0]);return(r={clock:t.clock,sort:r.getTime(),rule:t,save:6e4*t.save,offset:e.offset})[r.clock]=r.sort+6e4*t.time,r.posix?r.wallclock=r[r.clock]+(e.offset+t.saved):r.posix=r[r.clock]-(e.offset+t.saved),r}function t(t,n,r){var o,a,u,i,l,s,c,f=t[t.zone],h=[],T=new Date(r).getUTCFullYear(),g=1;for(o=1,a=f.length;o<a&&!(f[o][n]<=r);o++);if((u=f[o]).rules){for(s=t[u.rules],c=T+1;c>=T-g;–c)for(o=0,a=s.length;o<a;o++)s[o].from<=c&&c<=s[o].to?h.push(e(u,s[o],c)):s[o].to<c&&1==g&&(g=c-s[o].to);for(h.sort((function(e,t){return e.sort-t.sort})),o=0,a=h.length;o<a;o++)r>=h[o][n]&&h[o][h[o].clock]>u[h[o].clock]&&(i=h[o])}return i&&((l=/^(.*)\/(.*)$/.exec(u.format))?i.abbrev=l[i.save?2:1]:i.abbrev=u.format.replace(/%s/,i.rule.letter)),i||u}function n(e,n){return"UTC"==e.zone?n:(e.entry=t(e,"posix",n),n+e.entry.offset+e.entry.save)}function r(e,n){return"UTC"==e.zone?n:(e.entry=r=t(e,"wallclock",n),0<(o=n-r.wallclock)&&o<r.save?null:n-r.offset-r.save);var r,o}function o(e,t,o){var a,i=+(o[1]+1),s=o[2]*i,c=u.indexOf(o[3].toLowerCase());if(c>9)t+=s*l[c-10];else{if(a=new Date(n(e,t)),c<7)for(;s;)a.setUTCDate(a.getUTCDate()+i),a.getUTCDay()==c&&(s-=i);else 7==c?a.setUTCFullYear(a.getUTCFullYear()+s):8==c?a.setUTCMonth(a.getUTCMonth()+s):a.setUTCDate(a.getUTCDate()+s);null==(t=r(e,a.getTime()))&&(t=r(e,a.getTime()+864e5*i)-864e5*i)}return t}var a={clock:function(){return+new Date},zone:"UTC",entry:{abbrev:"UTC",offset:0,save:0},UTC:1,z:function(e,t,n,r){var o,a,u=this.entry.offset+this.entry.save,i=Math.abs(u/1e3),l=[],s=3600;for(o=0;o<3;o++)l.push(("0"+Math.floor(i/s)).slice(-2)),i%=s,s/=60;return"^"!=n||u?("^"==n&&(r=3),3==r?(a=(a=l.join(":")).replace(/:00$/,""),"^"!=n&&(a=a.replace(/:00$/,""))):r?(a=l.slice(0,r+1).join(":"),"^"==n&&(a=a.replace(/:00$/,""))):a=l.slice(0,2).join(""),a=(a=(u<0?"-":"+")+a).replace(/([-+])(0)/,{_:" $1","-":"$1"}[n]||"$1$2")):"Z"},"%":function(e){return"%"},n:function(e){return"\n"},t:function(e){return"\t"},U:function(e){return s(e,0)},W:function(e){return s(e,1)},V:function(e){return c(e)[0]},G:function(e){return c(e)[1]},g:function(e){return c(e)[1]%100},j:function(e){return Math.floor((e.getTime()-Date.UTC(e.getUTCFullYear(),0))/864e5)+1},s:function(e){return Math.floor(e.getTime()/1e3)},C:function(e){return Math.floor(e.getUTCFullYear()/100)},N:function(e){return e.getTime()%1e3*1e6},m:function(e){return e.getUTCMonth()+1},Y:function(e){return e.getUTCFullYear()},y:function(e){return e.getUTCFullYear()%100},H:function(e){return e.getUTCHours()},M:function(e){return e.getUTCMinutes()},S:function(e){return e.getUTCSeconds()},e:function(e){return e.getUTCDate()},d:function(e){return e.getUTCDate()},u:function(e){return e.getUTCDay()||7},w:function(e){return e.getUTCDay()},l:function(e){return e.getUTCHours()%12||12},I:function(e){return e.getUTCHours()%12||12},k:function(e){return e.getUTCHours()},Z:function(e){return this.entry.abbrev},a:function(e){return this[this.locale].day.abbrev[e.getUTCDay()]},A:function(e){return this[this.locale].day.full[e.getUTCDay()]},h:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},b:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},B:function(e){return this[this.locale].month.full[e.getUTCMonth()]},P:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)].toLowerCase()},p:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)]},R:function(e,t){return this.convert([t,"%H:%M"])},T:function(e,t){return this.convert([t,"%H:%M:%S"])},D:function(e,t){return this.convert([t,"%m/%d/%y"])},F:function(e,t){return this.convert([t,"%Y-%m-%d"])},x:function(e,t){return this.convert([t,this[this.locale].date])},r:function(e,t){return this.convert([t,this[this.locale].time12||"%I:%M:%S"])},X:function(e,t){return this.convert([t,this[this.locale].time24])},c:function(e,t){return this.convert([t,this[this.locale].dateTime])},convert:function(e){if(!e.length)return"1.0.23";var t,a,u,l,s,c=Object.create(this),f=[];for(t=0;t<e.length;t++)if(l=e[t],Array.isArray(l))t||isNaN(l[1])?l.splice.apply(e,[t–,1].concat(l)):s=l;else if(isNaN(l)){if("string"==(u=typeof l))~l.indexOf("%")?c.format=l:t||""!=l?!t&&(u=/^(\d{4})-(\d{2})-(\d{2})(?:[T\s](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|(([+-])(\d{2}(:\d{2}){0,2})))?)?$/.exec(l))?((s=[]).push.apply(s,u.slice(1,8)),u[9]?(s.push(u[10]+1),s.push.apply(s,u[11].split(/:/))):u[8]&&s.push(1)):/^\w{2,3}_\w{2}$/.test(l)?c.locale=l:(u=i.exec(l))?f.push(u):c.zone=l:s=l;else if("function"==u){if(u=l.call(c))return u}else if(/^\w{2,3}_\w{2}$/.test(l.name))c[l.name]=l;else if(l.zones){for(u in l.zones)c[u]=l.zones[u];for(u in l.rules)c[u]=l.rules[u]}}else t||(s=l);if(c[c.locale]||delete c.locale,c[c.zone]||delete c.zone,null!=s){if(""==s)s=c.clock();else if(Array.isArray(s)){for(u=[],a=!s[7],t=0;t<11;t++)u[t]=+(s[t]||0);–u[1],s=Date.UTC.apply(Date.UTC,u)+-u[7]*(36e5*u[8]+6e4*u[9]+1e3*u[10])}else s=Math.floor(s);if(!isNaN(s)){if(a&&(s=r(c,s)),null==s)return s;for(t=0,a=f.length;t<a;t++)s=o(c,s,f[t]);return c.format?(u=new Date(n(c,s)),c.format.replace(/%([-0_^]?)(:{0,3})(\d*)(.)/g,(function(e,t,n,r,o){var a,i,l="0";if(a=c[o]){for(e=String(a.call(c,u,s,t,n.length)),"_"==(t||a.style)&&(l=" "),i="-"==t?0:a.pad||0;e.length<i;)e=l+e;for(i="-"==t?0:r||a.pad;e.length<i;)e=l+e;"N"==o&&i<e.length&&(e=e.slice(0,i)),"^"==t&&(e=e.toUpperCase())}return e}))):s}}return function(){return c.convert(arguments)}},locale:"en_US",en_US:{date:"%m/%d/%Y",time24:"%I:%M:%S %p",time12:"%I:%M:%S %p",dateTime:"%a %d %b %Y %I:%M:%S %p %Z",meridiem:["AM","PM"],month:{abbrev:"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|\"),full:\"January|February|March|April|May|June|July|August|September|October|November|December\".split(\"|")},day:{abbrev:"Sun|Mon|Tue|Wed|Thu|Fri|Sat".split("|\"),full:\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday\".split(\"|")}}},u="Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond",i=new RegExp("^\\s*([+-])(\\d+)\\s+("+u+")s?\\s*$","i"),l=[36e5,6e4,1e3,1];function s(e,t){var n,r,o;return r=new Date(Date.UTC(e.getUTCFullYear(),0)),n=Math.floor((e.getTime()-r.getTime())/864e5),r.getUTCDay()==t?o=0:8==(o=7-r.getUTCDay()+t)&&(o=1),n>=o?Math.floor((n-o)/7)+1:0}function c(e){var t,n,r;return n=e.getUTCFullYear(),t=new Date(Date.UTC(n,0)).getUTCDay(),(r=s(e,1)+(t>1&&t<=4?1:0))?53!=r||4==t||3==t&&29==new Date(n,1,29).getDate()?[r,e.getUTCFullYear()]:[1,e.getUTCFullYear()+1]:(n=e.getUTCFullYear()-1,[r=4==(t=new Date(Date.UTC(n,0)).getUTCDay())||3==t&&29==new Date(n,1,29).getDate()?53:52,e.getUTCFullYear()-1])}return u=u.toLowerCase().split("|\"),\"delmHMSUWVgCIky\".replace(/./g,(function(e){a[e].pad=2})),a.N.pad=9,a.j.pad=3,a.k.style=\"_\",a.l.style=\"_\",a.e.style=\"_\",function(){return a.convert(arguments)}}))},\n function _(r,n,e){Object.defineProperty(e,\"__esModule\",{value:!0});const t=r(1),i=t.__importStar(r(159)),u=r(160),a=t.__importDefault(r(157)),f=r(26),o=r(8);function l(r,...n){return u.sprintf(r,...n)}function s(r,n,e){if(o.isNumber(r)){return l((()=>{switch(!1){case Math.floor(r)!=r:return\"%d\";case!(Math.abs(r)>.1&&Math.abs(r)<1e3):return\"%0.3f\";default:return\"%0.3e\"}})(),r)}return`${r}`}function c(r,n,t){if(null==n)return s;if(null!=t&&r in t){const n=t[r];if(o.isString(n)){if(n in e.DEFAULT_FORMATTERS)return e.DEFAULT_FORMATTERS[n];throw new Error(`Unknown tooltip field formatter type '${n}'`)}return function(r,e,t){return n.format(r,e,t)}}return e.DEFAULT_FORMATTERS.numeral}function m(r,n,e,t){if(\"$\"==r[0]){return function(r,n){if(r in n)return n[r];throw new Error(`Unknown special variable '$${r}'`)}(r.substring(1),t)}return function(r,n,e){const t=n.get_column(r);if(null==t)return null;if(o.isNumber(e))return t[e];const i=t[e.index];if(o.isTypedArray(i)||o.isArray(i)){if(o.isArray(i[0])){return i[e.dim2][e.dim1]}return i[e.flat_index]}return i}(r.substring(1).replace(/[{}]/g,\"\"),n,e)}e.DEFAULT_FORMATTERS={numeral:(r,n,e)=>i.format(r,n),datetime:(r,n,e)=>a.default(r,n),printf:(r,n,e)=>l(n,r)},e.sprintf=l,e.basic_formatter=s,e.get_formatter=c,e.get_value=m,e.replace_placeholders=function(r,n,e,t,i={}){return r=(r=r.replace(/@\\$name/g,r=>`@{${i.name}}`)).replace(/((?:\\$\\w+)|(?:@\\w+)|(?:@{(?:[^{}]+)}))(?:{([^{}]+)})?/g,(r,u,a)=>{const o=m(u,n,e,i);if(null==o)return`${f.escape(\"???\")}`;if(\"safe\"==a)return`${o}`;const l=c(u,a,t);return`${f.escape(l(o,a,i))}`})}},\n function _(e,n,t){\n /*!\n * numbro.js\n * version : 1.6.2\n * author : Företagsplatsen AB\n * license : MIT\n * http://www.foretagsplatsen.se\n */\n var r,i={},a=i,o=\"en-US\",l=null,u=\"0,0\";void 0!==n&&n.exports;function c(e){this._value=e}function s(e){var n,t=\"\";for(n=0;n<e;n++)t+=\"0\";return t}function f(e,n,t,r){var i,a,o=Math.pow(10,n);return a=e.toFixed(0).search(\"e\")>-1?function(e,n){var t,r,i,a;return t=(a=e.toString()).split(\"e\")[0],i=a.split(\"e\")[1],a=t.split(\".\")[0]+(r=t.split(\".\")[1]||"")+s(i-r.length),n>0&&(a+="."+s(n)),a}(e,n):(t(e*o)/o).toFixed(n),r&&(i=new RegExp("0{1,"+r+"}$"),a=a.replace(i,"")),a}function d(e,n,t){return n.indexOf("$")>-1?function(e,n,t){var r,a,l=n,u=l.indexOf("$"),c=l.indexOf("("),s=l.indexOf("+"),f=l.indexOf("-"),d="",p="";-1===l.indexOf("$")?"infix"===i[o].currency.position?(p=i[o].currency.symbol,i[o].currency.spaceSeparated&&(p=" "+p+" ")):i[o].currency.spaceSeparated&&(d=" "):l.indexOf(" $")>-1?(d=" ",l=l.replace(" $","")):l.indexOf("$ ")>-1?(d=" ",l=l.replace("$ ","")):l=l.replace("$","");if(a=h(e,l,t,p),-1===n.indexOf("$"))switch(i[o].currency.position){case"postfix":a.indexOf(")")>-1?((a=a.split("")).splice(-1,0,d+i[o].currency.symbol),a=a.join("")):a=a+d+i[o].currency.symbol;break;case"infix":break;case"prefix":a.indexOf("(")>-1||a.indexOf("-")>-1?(a=a.split(""),r=Math.max(c,f)+1,a.splice(r,0,i[o].currency.symbol+d),a=a.join("")):a=i[o].currency.symbol+d+a;break;default:throw Error(‘Currency position should be among ["prefix", "infix", "postfix"]’)}else u<=1?a.indexOf("(")>-1||a.indexOf("+")>-1||a.indexOf("-")>-1?(a=a.split(""),r=1,(u<c||u<s||u<f)&&(r=0),a.splice(r,0,i[o].currency.symbol+d),a=a.join("")):a=i[o].currency.symbol+d+a:a.indexOf(")")>-1?((a=a.split("")).splice(-1,0,d+i[o].currency.symbol),a=a.join("")):a=a+d+i[o].currency.symbol;return a}(e,n,t):n.indexOf("%")>-1?function(e,n,t){var r,i="";e*=100,n.indexOf(" %")>-1?(i=" ",n=n.replace(" %","")):n=n.replace("%","");(r=h(e,n,t)).indexOf(")")>-1?((r=r.split("")).splice(-1,0,i+"%"),r=r.join("")):r=r+i+"%";return r}(e,n,t):n.indexOf(":")>-1?function(e){var n=Math.floor(e/60/60),t=Math.floor((e-60*n*60)/60),r=Math.round(e-60*n*60-60*t);return n+":"+(t<10?"0"+t:t)+":"+(r<10?"0"+r:r)}(e):h(e,n,t)}function h(e,n,t,r){var a,u,c,s,d,h,p,m,x,g,O,b,w,y,M,v,$,B=!1,E=!1,F=!1,k="",U=!1,N=!1,S=!1,j=!1,D=!1,C="",L="",T=Math.abs(e),K=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],G=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],I="",P=!1,R=!1;if(0===e&&null!==l)return l;if(!isFinite(e))return""+e;if(0===n.indexOf("{")){var W=n.indexOf("}");if(-1===W)throw Error(‘Format should also contain a "}"’);b=n.slice(1,W),n=n.slice(W+1)}else b="";if(n.indexOf("}")===n.length-1){var Y=n.indexOf("{");if(-1===Y)throw Error(‘Format should also contain a "{"’);w=n.slice(Y+1,-1),n=n.slice(0,Y+1)}else w="";if(v=null===($=-1===n.indexOf(".")?n.match(/([0-9]+).*/):n.match(/([0-9]+)\..*/))?-1:$[1].length,-1!==n.indexOf("-")&&(P=!0),n.indexOf("(")>-1?(B=!0,n=n.slice(1,-1)):n.indexOf("+")>-1&&(E=!0,n=n.replace(/\+/g,"")),n.indexOf("a")>-1){if(g=n.split(".")[0].match(/[0-9]+/g)||["0"],g=parseInt(g[0],10),U=n.indexOf("aK")>=0,N=n.indexOf("aM")>=0,S=n.indexOf("aB")>=0,j=n.indexOf("aT")>=0,D=U||N||S||j,n.indexOf(" a")>-1?(k=" ",n=n.replace(" a","")):n=n.replace("a",""),p=0===(p=(d=Math.floor(Math.log(T)/Math.LN10)+1)%3)?3:p,g&&0!==T&&(h=Math.floor(Math.log(T)/Math.LN10)+1-g,m=3*~~((Math.min(g,d)-p)/3),T/=Math.pow(10,m),-1===n.indexOf(".")&&g>3))for(n+="[.]",M=(M=0===h?0:3*~~(h/3)-h)<0?M+3:M,a=0;a<M;a++)n+="0";Math.floor(Math.log(Math.abs(e))/Math.LN10)+1!==g&&(T>=Math.pow(10,12)&&!D||j?(k+=i[o].abbreviations.trillion,e/=Math.pow(10,12)):T<Math.pow(10,12)&&T>=Math.pow(10,9)&&!D||S?(k+=i[o].abbreviations.billion,e/=Math.pow(10,9)):T<Math.pow(10,9)&&T>=Math.pow(10,6)&&!D||N?(k+=i[o].abbreviations.million,e/=Math.pow(10,6)):(T<Math.pow(10,6)&&T>=Math.pow(10,3)&&!D||U)&&(k+=i[o].abbreviations.thousand,e/=Math.pow(10,3)))}if(n.indexOf("b")>-1)for(n.indexOf(" b")>-1?(C=" ",n=n.replace(" b","")):n=n.replace("b",""),s=0;s<=K.length;s++)if(u=Math.pow(1024,s),c=Math.pow(1024,s+1),e>=u&&e<c){C+=K[s],u>0&&(e/=u);break}if(n.indexOf("d")>-1)for(n.indexOf(" d")>-1?(C=" ",n=n.replace(" d","")):n=n.replace("d",""),s=0;s<=G.length;s++)if(u=Math.pow(1e3,s),c=Math.pow(1e3,s+1),e>=u&&e<c){C+=G[s],u>0&&(e/=u);break}if(n.indexOf("o")>-1&&(n.indexOf(" o")>-1?(L=" ",n=n.replace(" o","")):n=n.replace("o",""),i[o].ordinal&&(L+=i[o].ordinal(e))),n.indexOf("[.]")>-1&&(F=!0,n=n.replace("[.]",".")),x=e.toString().split(".")[0],O=n.split(".")[1],y=n.indexOf(","),O){if(x=(I=-1!==O.indexOf("")?f(e,e.toString().split(".")[1].length,t):O.indexOf("[")>-1?f(e,(O=(O=O.replace("]","")).split("["))[0].length+O[1].length,t,O[1].length):f(e,O.length,t)).split(".")[0],I.split(".")[1].length)I=(r?k+r:i[o].delimiters.decimal)+I.split(".")[1];else I="";F&&0===Number(I.slice(1))&&(I="")}else x=f(e,null,t);return x.indexOf("-")>-1&&(x=x.slice(1),R=!0),x.length<v&&(x=new Array(v-x.length+1).join("0")+x),y>-1&&(x=x.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i[o].delimiters.thousands)),0===n.indexOf(".")&&(x=""),b+(n.indexOf("(")<n.indexOf("-")?(B&&R?"(":"")+(P&&R||!B&&R?"-":""):(P&&R||!B&&R?"-":"")+(B&&R?"(":""))+(!R&&E&&0!==e?"+":"")+x+I+(L||"")+(k&&!r?k:"")+(C||"")+(B&&R?")":"")+w}function p(e,n){i[e]=n}function m(e){o=e;var n=i[e].defaults;n&&n.format&&r.defaultFormat(n.format),n&&n.currencyFormat&&r.defaultCurrencyFormat(n.currencyFormat)}(r=function(e){return r.isNumbro(e)?e=e.value():0===e||void 0===e?e=0:Number(e)||(e=r.fn.unformat(e)),new c(Number(e))}).version="1.6.2",r.isNumbro=function(e){return e instanceof c},r.setLanguage=function(e,n){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var t=e,r=e.split("-")[0],i=null;a[t]||(Object.keys(a).forEach((function(e){i||e.split("-")[0]!==r||(i=e)})),t=i||n||"en-US"),m(t)},r.setCulture=function(e,n){var t=e,r=e.split("-")[1],a=null;i[t]||(r&&Object.keys(i).forEach((function(e){a||e.split("-")[1]!==r||(a=e)})),t=a||n||"en-US"),m(t)},r.language=function(e,n){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!e)return o;if(e&&!n){if(!a[e])throw new Error("Unknown language : "+e);m(e)}return!n&&a[e]||p(e,n),r},r.culture=function(e,n){if(!e)return o;if(e&&!n){if(!i[e])throw new Error("Unknown culture : "+e);m(e)}return!n&&i[e]||p(e,n),r},r.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return a[o];if(!a[e])throw new Error("Unknown language : "+e);return a[e]},r.cultureData=function(e){if(!e)return i[o];if(!i[e])throw new Error("Unknown culture : "+e);return i[e]},r.culture("en-US",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var n=e%10;return 1==~~(e%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}}),r.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),a},r.cultures=function(){return i},r.zeroFormat=function(e){l="string"==typeof e?e:null},r.defaultFormat=function(e){u="string"==typeof e?e:"0.0"},r.defaultCurrencyFormat=function(e){"string"==typeof e?e:"0$"},r.validate=function(e,n){var t,i,a,o,l,u,c,s;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;if(""===e)return!1;try{c=r.cultureData(n)}catch(e){c=r.cultureData(r.culture())}return a=c.currency.symbol,l=c.abbreviations,t=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(s=e.match(/^[^\d]+/))||(e=e.substr(1),s[0]===a))&&((null===(s=e.match(/[^\d]+$/))||(e=e.slice(0,-1),s[0]===l.thousand||s[0]===l.million||s[0]===l.billion||s[0]===l.trillion))&&(u=new RegExp(i+"{2}"),!e.match(/[^\d.,]/g)&&(!((o=e.split(t)).length>2)&&(o.length<2?!!o[0].match(/^\d+.\d$/)&&!o[0].match(u):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))))},n.exports={format:function(e,n,t,i){return null!=t&&t!==r.culture()&&r.setCulture(t),d(Number(e),null!=n?n:u,null==i?Math.round:i)}}},n function _(e,n,t){!function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|’[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(e){return i(a(e),arguments)}function r(e,t){return n.apply(null,[e].concat(t||[]))}function i(t,r){var i,s,a,o,p,c,l,u,f,d=1,g=t.length,y="";for(s=0;s<g;s++)if("string"==typeof t[s])y+=t[s];else if("object"==typeof t[s]){if((o=t[s]).keys)for(i=r[d],a=0;a<o.keys.length;a++){if(null==i)throw new Error(n(‘[sprintf] Cannot access property "%s" of undefined value "%s"’,o.keys[a],o.keys[a-1]));i=i[o.keys[a]]}else i=o.param_no?r[o.param_no]:r[d++];if(e.not_type.test(o.type)&&e.not_primitive.test(o.type)&&i instanceof Function&&(i=i()),e.numeric_arg.test(o.type)&&"number"!=typeof i&&isNaN(i))throw new TypeError(n("[sprintf] expecting number but found %T",i));switch(e.number.test(o.type)&&(u=i>=0),o.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,o.width?parseInt(o.width):0);break;case"e":i=o.precision?parseFloat(i).toExponential(o.precision):parseFloat(i).toExponential();break;case"f":i=o.precision?parseFloat(i).toFixed(o.precision):parseFloat(i);break;case"g":i=o.precision?String(Number(i.toPrecision(o.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}e.json.test(o.type)?y+=i:(!e.number.test(o.type)||u&&!o.sign?f="":(f=u?"+":"-",i=i.toString().replace(e.sign,"")),c=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",l=o.width-(f+i).length,p=o.width&&l>0?c.repeat(l):"",y+=o.align?f+i+p:"0"===c?f+p+i:p+f+i)}return y}var s=Object.create(null);function a(n){if(s[n])return s[n];for(var t,r=n,i=[],a=0;r;){if(null!==(t=e.text.exec(r)))i.push(t[0]);else if(null!==(t=e.modulo.exec(r)))i.push("%");else{if(null===(t=e.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var o=[],p=t[2],c=[];if(null===(c=e.key.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(p=p.substring(c[0].length));)if(null!==(c=e.key_access.exec(p)))o.push(c[1]);else{if(null===(c=e.index_access.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}t[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return s[n]=i}void 0!==t&&(t.sprintf=n,t.vsprintf=r),"undefined"!=typeof window&&(window.sprintf=n,window.vsprintf=r,"function"==typeof define&&define.amd&&define((function(){return{sprintf:n,vsprintf:r}})))}()},n function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(9),a=e(109),s=e(162),r=e(163),c=e(166),_=e(167),m=e(165);class k extends s.CompositeTicker{constructor(e){super(e)}static init_DatetimeTicker(){this.override({num_minor_ticks:0,tickers:()=>[new a.AdaptiveTicker({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*m.ONE_MILLI,num_minor_ticks:0}),new a.AdaptiveTicker({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:m.ONE_SECOND,max_interval:30*m.ONE_MINUTE,num_minor_ticks:0}),new a.AdaptiveTicker({mantissas:[1,2,4,6,8,12],base:24,min_interval:m.ONE_HOUR,max_interval:12*m.ONE_HOUR,num_minor_ticks:0}),new r.DaysTicker({days:t.range(1,32)}),new r.DaysTicker({days:t.range(1,31,3)}),new r.DaysTicker({days:[1,8,15,22]}),new r.DaysTicker({days:[1,15]}),new c.MonthsTicker({months:t.range(0,12,1)}),new c.MonthsTicker({months:t.range(0,12,2)}),new c.MonthsTicker({months:t.range(0,12,4)}),new c.MonthsTicker({months:t.range(0,12,6)}),new _.YearsTicker({})]})}}n.DatetimeTicker=k,k.__name__="DatetimeTicker",k.init_DatetimeTicker()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(1),s=t(110),n=r.__importStar(t(19)),_=t(9),a=t(24);class c extends s.ContinuousTicker{constructor(t){super(t)}static init_CompositeTicker(){this.define({tickers:[n.Array,[]]})}get min_intervals(){return this.tickers.map(t=>t.get_min_interval())}get max_intervals(){return this.tickers.map(t=>t.get_max_interval())}get min_interval(){return this.min_intervals[0]}get max_interval(){return this.max_intervals[0]}get_best_ticker(t,e,i){const r=e-t,s=this.get_ideal_interval(t,e,i),n=[_.sorted_index(this.min_intervals,s)-1,_.sorted_index(this.max_intervals,s)],c=[this.min_intervals[n[0]],this.max_intervals[n[1]]].map(t=>Math.abs(i-r/t));let l;if(a.isEmpty(c.filter(t=>!isNaN(t))))l=this.tickers[0];else{const t=n[_.argmin(c)];l=this.tickers[t]}return l}get_interval(t,e,i){return this.get_best_ticker(t,e,i).get_interval(t,e,i)}get_ticks_no_defaults(t,e,i,r){return this.get_best_ticker(t,e,r).get_ticks_no_defaults(t,e,i,r)}}i.CompositeTicker=c,c.__name__="CompositeTicker",c.init_CompositeTicker()},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),s=t(164),a=t(165),o=i.__importStar(t(19)),r=t(9);class _ extends s.SingleIntervalTicker{constructor(t){super(t)}static init_DaysTicker(){this.define({days:[o.Array,[]]}),this.override({num_minor_ticks:0})}initialize(){super.initialize();const t=this.days;t.length>1?this.interval=(t[1]-t[0])*a.ONE_DAY:this.interval=31*a.ONE_DAY}get_ticks_no_defaults(t,e,n,i){const s=function(t,e){const n=a.last_month_no_later_than(new Date(t)),i=a.last_month_no_later_than(new Date(e));i.setUTCMonth(i.getUTCMonth()+1);const s=[],o=n;for(;s.push(a.copy_date(o)),o.setUTCMonth(o.getUTCMonth()+1),!(o>i););return s}(t,e),o=this.days,_=this.interval;return{major:r.concat(s.map(t=>((t,e)=>{const n=t.getUTCMonth(),i=[];for(const s of o){const o=a.copy_date(t);o.setUTCDate(s),new Date(o.getTime()+e/2).getUTCMonth()==n&&i.push(o)}return i})(t,_))).map(t=>t.getTime()).filter(n=>t<=n&&n<=e),minor:[]}}}n.DaysTicker=_,_.__name__="DaysTicker",_.init_DaysTicker()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),r=e(110),l=n.__importStar(e(19));class a extends r.ContinuousTicker{constructor(e){super(e)}static init_SingleIntervalTicker(){this.define({interval:[l.Number]})}get_interval(e,t,i){return this.interval}get min_interval(){return this.interval}get max_interval(){return this.interval}}i.SingleIntervalTicker=a,a.__name__="SingleIntervalTicker",a.init_SingleIntervalTicker()},n function _(t,e,n){function _(t){return new Date(t.getTime())}function O(t){const e=_(t);return e.setUTCDate(1),e.setUTCHours(0),e.setUTCMinutes(0),e.setUTCSeconds(0),e.setUTCMilliseconds(0),e}Object.defineProperty(n,"__esModule",{value:!0}),n.ONE_MILLI=1,n.ONE_SECOND=1e3,n.ONE_MINUTE=60*n.ONE_SECOND,n.ONE_HOUR=60*n.ONE_MINUTE,n.ONE_DAY=24*n.ONE_HOUR,n.ONE_MONTH=30*n.ONE_DAY,n.ONE_YEAR=365*n.ONE_DAY,n.copy_date=_,n.last_month_no_later_than=O,n.last_year_no_later_than=function(t){const e=O(t);return e.setUTCMonth(0),e}},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),i=t(164),s=t(165),a=r.__importStar(t(19)),o=t(9);class _ extends i.SingleIntervalTicker{constructor(t){super(t)}static init_MonthsTicker(){this.define({months:[a.Array,[]]})}initialize(){super.initialize();const t=this.months;t.length>1?this.interval=(t[1]-t[0])*s.ONE_MONTH:this.interval=12*s.ONE_MONTH}get_ticks_no_defaults(t,e,n,r){const i=function(t,e){const n=s.last_year_no_later_than(new Date(t)),r=s.last_year_no_later_than(new Date(e));r.setUTCFullYear(r.getUTCFullYear()+1);const i=[],a=n;for(;i.push(s.copy_date(a)),a.setUTCFullYear(a.getUTCFullYear()+1),!(a>r););return i}(t,e),a=this.months;return{major:o.concat(i.map(t=>a.map(e=>{const n=s.copy_date(t);return n.setUTCMonth(e),n}))).map(t=>t.getTime()).filter(n=>t<=n&&n<=e),minor:[]}}}n.MonthsTicker=_,_.__name__="MonthsTicker",_.init_MonthsTicker()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(108),r=e(164),n=e(165);class _ extends r.SingleIntervalTicker{constructor(e){super(e)}initialize(){super.initialize(),this.interval=n.ONE_YEAR,this.basic_ticker=new i.BasicTicker({num_minor_ticks:0})}get_ticks_no_defaults(e,t,a,i){const r=n.last_year_no_later_than(new Date(e)).getUTCFullYear(),_=n.last_year_no_later_than(new Date(t)).getUTCFullYear();return{major:this.basic_ticker.get_ticks_no_defaults(r,_,a,i).major.map(e=>Date.UTC(e,0,1)).filter(a=>e<=a&&a<=t),minor:[]}}}a.YearsTicker=_,_.__name__="YearsTicker"},n function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(148),o=e(153),n=e(169),r=e(170);class _ extends s.AxisView{}t.LogAxisView=_,_.__name__="LogAxisView";class c extends o.ContinuousAxis{constructor(e){super(e)}static init_LogAxis(){this.prototype.default_view=_,this.override({ticker:()=>new r.LogTicker,formatter:()=>new n.LogTickFormatter})}}t.LogAxis=c,c.__name__="LogAxis",c.init_LogAxis()},n function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),o=t(113),a=t(112),n=i.__importStar(t(19));class c extends o.TickFormatter{constructor(t){super(t)}static init_LogTickFormatter(){this.define({ticker:[n.Instance,null]})}initialize(){super.initialize(),this.basic_formatter=new a.BasicTickFormatter}doFormat(t,e){if(0==t.length)return[];const r=null!=this.ticker?this.ticker.base:10;let i=!1;const o=new Array(t.length);for(let e=0,a=t.length;e<a;e++)if(o[e]=`${r}^${Math.round(Math.log(t[e])/Math.log(r))}`,e>0&&o[e]==o[e-1]){i=!0;break}return i?this.basic_formatter.doFormat(t,e):o}}r.LogTickFormatter=c,c.__name__="LogTickFormatter",c.init_LogTickFormatter()},n function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(109),s=t(9);class n extends i.AdaptiveTicker{constructor(t){super(t)}static init_LogTicker(){this.override({mantissas:[1,5]})}get_ticks_no_defaults(t,o,e,i){const n=this.num_minor_ticks,r=[],c=this.base,a=Math.log(t)/Math.log(c),f=Math.log(o)/Math.log(c),l=f-a;let h;if(isFinite(l))if(l<2){const e=this.get_interval(t,o,i),c=Math.floor(t/e),a=Math.ceil(o/e);if(h=s.range(c,a+1).filter(t=>0!=t).map(t=>t*e).filter(e=>t<=e&&e<=o),n>0&&h.length>0){const t=e/n,o=s.range(0,n).map(o=>o*t);for(const t of o.slice(1))r.push(h[0]-t);for(const t of h)for(const e of o)r.push(t+e)}}else{const t=Math.ceil(.999999*a),o=Math.floor(1.000001*f),e=Math.ceil((o-t)/9);if(h=s.range(t-1,o+1,e).map(t=>c**t),n>0&&h.length>0){const t=c**e/n,o=s.range(1,n+1).map(o=>o*t);for(const t of o)r.push(h[0]/t);r.push(h[0]);for(const t of h)for(const e of o)r.push(t*e)}}else h=[];return{major:h.filter(e=>t<=e&&e<=o),minor:r.filter(e=>t<=e&&e<=o)}}}e.LogTicker=n,n.__name__="LogTicker",n.init_LogTicker()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(148),s=e(155),o=e(172),a=e(173);class c extends i.AxisView{}r.MercatorAxisView=c,c.__name__="MercatorAxisView";class n extends s.LinearAxis{constructor(e){super(e)}static init_MercatorAxis(){this.prototype.default_view=c,this.override({ticker:()=>new a.MercatorTicker({dimension:"lat"}),formatter:()=>new o.MercatorTickFormatter({dimension:"lat"})})}}r.MercatorAxis=n,n.__name__="MercatorAxis",n.init_MercatorAxis()},n function _(r,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=r(1),n=r(112),i=o.__importStar(r(19)),c=r(30);class s extends n.BasicTickFormatter{constructor(r){super(r)}static init_MercatorTickFormatter(){this.define({dimension:[i.LatLon]})}doFormat(r,t){if(null==this.dimension)throw new Error("MercatorTickFormatter.dimension not configured");if(0==r.length)return[];const e=r.length,o=new Array(e);if("lon"==this.dimension)for(let n=0;n<e;n++){const[e]=c.wgs84_mercator.inverse([r[n],t.loc]);o[n]=e}else for(let n=0;n<e;n++){const[,e]=c.wgs84_mercator.inverse([t.loc,r[n]]);o[n]=e}return super.doFormat(o,t)}}e.MercatorTickFormatter=s,s.__name__="MercatorTickFormatter",s.init_MercatorTickFormatter()},n function _(r,o,e){Object.defineProperty(e,"__esModule",{value:!0});const n=r(1),s=r(108),i=n.__importStar(r(19)),t=r(30);class c extends s.BasicTicker{constructor(r){super(r)}static init_MercatorTicker(){this.define({dimension:[i.LatLon]})}get_ticks_no_defaults(r,o,e,n){if(null==this.dimension)throw new Error("MercatorTicker.dimension not configured");let s,i,c;[r,o]=t.clip_mercator(r,o,this.dimension),"lon"===this.dimension?([s,c]=t.wgs84_mercator.inverse([r,e]),[i,c]=t.wgs84_mercator.inverse([o,e])):([c,s]=t.wgs84_mercator.inverse([e,r]),[c,i]=t.wgs84_mercator.inverse([e,o]));const a=super.get_ticks_no_defaults(s,i,e,n),_=[],f=[];if("lon"===this.dimension){for(const r of a.major)if(t.in_bounds(r,"lon")){const[o]=t.wgs84_mercator.forward([r,c]);_.push(o)}for(const r of a.minor)if(t.in_bounds(r,"lon")){const[o]=t.wgs84_mercator.forward([r,c]);f.push(o)}}else{for(const r of a.major)if(t.in_bounds(r,"lat")){const[,o]=t.wgs84_mercator.forward([c,r]);_.push(o)}for(const r of a.minor)if(t.in_bounds(r,"lat")){const[,o]=t.wgs84_mercator.forward([c,r]);f.push(o)}}return{major:_,minor:f}}}e.MercatorTicker=c,c.__name__="MercatorTicker",c.init_MercatorTicker()},n function _(e,n,o){Object.defineProperty(o,"__esModule",{value:!0});var t=e(175);o.CustomJS=t.CustomJS;var u=e(177);o.OpenURL=u.OpenURL},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),u=t(176),c=n.__importStar(t(19)),r=t(24),a=t(26);class i extends u.Callback{constructor(t){super(t)}static init_CustomJS(){this.define({args:[c.Any,{}],code:[c.String,""]})}get names(){return r.keys(this.args)}get values(){return r.values(this.args)}get func(){const t=a.use_strict(this.code);return new Function(…this.names,"cb_obj","cb_data",t)}execute(t,e={}){return this.func.apply(t,this.values.concat(t,e))}}s.CustomJS=i,i.__name__="CustomJS",i.init_CustomJS()},n function _(e,c,l){Object.defineProperty(l,"__esModule",{value:!0});const a=e(69);class n extends a.Model{constructor(e){super(e)}}l.Callback=n,n.__name__="Callback"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(1),s=e(176),i=e(158),c=o.__importStar(e(19));class r extends s.Callback{constructor(e){super(e)}static init_OpenURL(){this.define({url:[c.String,"http://"],same_tab:[c.Boolean,!1]})}execute(e,{source:t}){const n=e=>{const n=i.replace_placeholders(this.url,t,e);this.same_tab?window.location.href=n:window.open(n)},{selected:o}=t;for(const e of o.indices)n(e);for(const e of o.line_indices)n(e)}}n.OpenURL=r,r.__name__="OpenURL",r.init_OpenURL()},n function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=a(179);r.Canvas=n.Canvas;var s=a(183);r.CartesianFrame=s.CartesianFrame},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const a=e(1),i=e(13),n=e(64),l=e(70),o=a.__importStar(e(19)),c=e(66),d=e(85),h=e(180),_=e(181),r=(()=>{const e=document.createElement("canvas"),t=e.getContext("webgl",{premultipliedAlpha:!0});return null!=t?{canvas:e,gl:t}:void l.logger.trace("WebGL is not supported")})(),v=a.__importDefault(e(182));class p extends n.DOMView{get ctx(){return this._ctx}initialize(){super.initialize();const e={position:"absolute",top:"0",left:"0",width:"100%",height:"100%"};switch(this.model.output_backend){case"webgl":this.webgl=r;case"canvas":{this.canvas_el=c.canvas({class:_.bk_canvas,style:e});const t=this.canvas_el.getContext("2d");if(null==t)throw new Error("unable to obtain 2D rendering context");this._ctx=t;break}case"svg":{const e=new v.default;this._ctx=e,this.canvas_el=e.getSvg();break}}this.underlays_el=c.div({class:_.bk_canvas_underlays,style:e}),this.overlays_el=c.div({class:_.bk_canvas_overlays,style:e}),this.events_el=c.div({class:_.bk_canvas_events,style:e}),c.append(this.el,this.underlays_el,this.canvas_el,this.overlays_el,this.events_el),h.fixup_ctx(this._ctx),l.logger.debug("CanvasView initialized")}add_underlay(e){this.underlays_el.appendChild(e)}add_overlay(e){this.overlays_el.appendChild(e)}add_event(e){this.events_el.appendChild(e)}prepare_canvas(e,t){this.bbox=new d.BBox({left:0,top:0,width:e,height:t}),this.el.style.width=`${e}px`,this.el.style.height=`${t}px`;const{use_hidpi:s,output_backend:a}=this.model,i=s&&"svg"!=a?devicePixelRatio:1;this.model.pixel_ratio=i,this.canvas_el.style.width=`${e}px`,this.canvas_el.style.height=`${t}px`,this.canvas_el.setAttribute("width",`${e*i}`),this.canvas_el.setAttribute("height",`${t*i}`),l.logger.debug(Rendering CanvasView with width: ${e}, height: ${t}, pixel ratio: ${i})}save(e){if(this.canvas_el instanceof HTMLCanvasElement){const t=this.canvas_el;if(null!=t.msToBlob){const s=t.msToBlob();window.navigator.msSaveBlob(s,e)}else{const s=document.createElement("a");s.href=t.toDataURL("image/png"),s.download=e+".png",s.target="_blank",s.dispatchEvent(new MouseEvent("click"))}}else{const t=this._ctx.getSerializedSvg(!0),s=new Blob([t],{type:"text/plain"}),a=document.createElement("a");a.download=e+".svg",a.innerHTML="Download svg",a.href=window.URL.createObjectURL(s),a.onclick=e=>document.body.removeChild(e.target),a.style.display="none",document.body.appendChild(a),a.click()}}}s.CanvasView=p,p.__name__="CanvasView";class u extends i.HasProps{constructor(e){super(e)}static init_Canvas(){this.prototype.default_view=p,this.internal({use_hidpi:[o.Boolean,!0],pixel_ratio:[o.Number,1],output_backend:[o.OutputBackend,"canvas"]})}}s.Canvas=u,u.__name__="Canvas",u.init_Canvas()},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fixup_ctx=function(e){!function(e){e.setLineDash||(e.setLineDash=t=>{e.mozDash=t,e.webkitLineDash=t}),e.getLineDash||(e.getLineDash=()=>e.mozDash)}(e),function(e){e.setLineDashOffset=t=>{e.lineDashOffset=t,e.mozDashOffset=t,e.webkitLineDashOffset=t},e.getLineDashOffset=()=>e.mozDashOffset}(e),function(e){e.setImageSmoothingEnabled=t=>{e.imageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.oImageSmoothingEnabled=t,e.webkitImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t},e.getImageSmoothingEnabled=()=>{const t=e.imageSmoothingEnabled;return null==t||t}}(e),function(e){e.measureText&&null==e.html5MeasureText&&(e.html5MeasureText=e.measureText,e.measureText=t=>{const n=e.html5MeasureText(t);return n.ascent=1.6*e.html5MeasureText("m").width,n})}(e),function(e){e.ellipse||(e.ellipse=function(t,n,a,o,s,i,m,h=!1){const l=.551784;e.translate(t,n),e.rotate(s);let u=a,r=o;h&&(u=-a,r=-o),e.moveTo(-u,0),e.bezierCurveTo(-u,r*l,-u*l,r,0,r),e.bezierCurveTo(u*l,r,u,r*l,u,0),e.bezierCurveTo(u,-r*l,u*l,-r,0,-r),e.bezierCurveTo(-u*l,-r,-u,-r*l,-u,0),e.rotate(-s),e.translate(-t,-n)})}(e)}},n function _(a,e,n){Object.defineProperty(n,"__esModule",{value:!0}),a(67),n.bk_canvas="bk-canvas",n.bk_canvas_underlays="bk-canvas-underlays",n.bk_canvas_overlays="bk-canvas-overlays",n.bk_canvas_events="bk-canvas-events"},n function _(t,e,r){var i,n,s,a,o;function h(t,e){var r,i=Object.keys(e);for(r=0;r<i.length;r++)t=t.replace(new RegExp("\\{"+i[r]+"\\}","gi"),e[i[r]]);return t}function l(t){var e,r,i;if(!t)throw new Error("cannot create a random attribute name for an undefined object");e="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",r="";do{for(r="",i=0;i<12;i++)r+=e[Math.floor(Math.random()*e.length)]}while(t[r]);return r}function c(t){var e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}n /!!n * Canvas 2 Svg v1.0.21n * A low level canvas to SVG converter. Uses a mock canvas context to build an SVG document.n *n * Licensed under the MIT license:n * http://www.opensource.org/licenses/mit-license.phpn *n * Author:n * Kerry Liun *n * Copyright (c) 2014 Gliffy Inc.n */n Object.defineProperty(r,"__esModule",{value:!0}),o=function(t,e){var r,i,n,s={};for(t=t.split(","),e=e||10,r=0;r<t.length;r+=2)i="&"+t[r+1]+";",n=parseInt(t[r],e),s[i]="&#"+n+";";return s["\\xa0"]=" ",s}("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),i={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}},(s=function(t,e){this.__root=t,this.__ctx=e}).prototype.addColorStop=function(t,e){var r,i=this.__ctx.__createElement("stop");i.setAttribute("offset",t),-1!==e.indexOf("rgba")?(r=/rgba\(\s*(\d+)\s,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e),i.setAttribute("stop-color",h("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),i.setAttribute("stop-opacity",r[4])):i.setAttribute("stop-color",e),this.__root.appendChild(i)},a=function(t,e){this.__root=t,this.__ctx=e},(n=function(t){var e,r={width:500,height:500,enableMirroring:!1};if(arguments.length>1?((e=r).width=arguments[0],e.height=arguments[1]):e=t||r,!(this instanceof n))return new n(e);this.width=e.width||r.width,this.height=e.height||r.height,this.enableMirroring=void 0!==e.enableMirroring?e.enableMirroring:r.enableMirroring,this.canvas=this,this.__document=e.document||document,e.ctx?this.__ctx=e.ctx:(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d")),this.__setDefaultStyles(),this.__stack=[this.__getStyleState()],this.__groupStack=[],this.__root=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__root.setAttribute("version",1.1),this.__root.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__root.setAttribute("width",this.width),this.__root.setAttribute("height",this.height),this.__ids={},this.__defs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__root.appendChild(this.__defs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__root.appendChild(this.__currentElement)}).prototype.__createElement=function(t,e,r){void 0===e&&(e={});var i,n,s=this.__document.createElementNS("http://www.w3.org/2000/svg",t),a=Object.keys(e);for(r&&(s.setAttribute("fill","none"),s.setAttribute("stroke","none")),i=0;i<a.length;i++)n=a[i],s.setAttribute(n,e[n]);return s},n.prototype.__setDefaultStyles=function(){var t,e,r=Object.keys(i);for(t=0;t<r.length;t++)this[e=r[t]]=i[e].canvas},n.prototype.__applyStyleState=function(t){var e,r,i=Object.keys(t);for(e=0;e<i.length;e++)this[r=i[e]]=t[r]},n.prototype.__getStyleState=function(){var t,e,r={},n=Object.keys(i);for(t=0;t<n.length;t++)r[e=n[t]]=this[e];return r},n.prototype.__applyStyleToCurrentElement=function(t){var e=this.__currentElement,r=this.__currentElementsToStyle;r&&(e.setAttribute(t,""),e=r.element,r.children.forEach((function(e){e.setAttribute(t,"")})));var n,o,l,c,p,_=Object.keys(i);for(n=0;n<_.length;n++)if(o=i[_[n]],l=this[_[n]],o.apply)if(l instanceof a){if(l.__ctx)for(;l.__ctx.__defs.childNodes.length;)c=l.__ctx.__defs.childNodes[0].getAttribute("id"),this.__ids[c]=c,this.__defs.appendChild(l.__ctx.__defs.childNodes[0]);e.setAttribute(o.apply,h("url(#{id})",{id:l.__root.getAttribute("id")}))}else if(l instanceof s)e.setAttribute(o.apply,h("url(#{id})",{id:l.__root.getAttribute("id")}));else if(-1!==o.apply.indexOf(t)&&o.svg!==l)if("stroke"!==o.svgAttr&&"fill"!==o.svgAttr||-1===l.indexOf("rgba")){var u=o.svgAttr;if("globalAlpha"===_[n]&&(u=t+"-"+o.svgAttr,e.getAttribute(u)))continue;e.setAttribute(u,l)}else{p=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(l),e.setAttribute(o.svgAttr,h("rgb({r},{g},{b})",{r:p[1],g:p[2],b:p[3]}));var d=p[4],g=this.globalAlpha;null!=g&&(d*=g),e.setAttribute(o.svgAttr+"-opacity",d)}},n.prototype.__closestGroupOrSvg=function(t){return"g"===(t=t||this.__currentElement).nodeName||"svg"===t.nodeName?t:this.__closestGroupOrSvg(t.parentNode)},n.prototype.getSerializedSvg=function(t){var e,r,i,n,s,a=(new XMLSerializer).serializeToString(this.__root);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(a)&&(a=a.replace(‘xmlns="http://www.w3.org/2000/svg’,’xmlns:xlink="http://www.w3.org/1999/xlink’)),t)for(e=Object.keys(o),r=0;r<e.length;r++)i=e[r],n=o[i],(s=new RegExp(i,"gi")).test(a)&&(a=a.replace(s,n));return a},n.prototype.getSvg=function(){return this.__root},n.prototype.save=function(){var t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__stack.push(this.__getStyleState())},n.prototype.restore=function(){this.__currentElement=this.__groupStack.pop(),this.__currentElementsToStyle=null,this.__currentElement||(this.__currentElement=this.__root.childNodes[1]);var t=this.__stack.pop();this.__applyStyleState(t)},n.prototype.__addTransform=function(t){var e=this.__closestGroupOrSvg();if(e.childNodes.length>0){"path"===this.__currentElement.nodeName&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());var r=this.__createElement("g");e.appendChild(r),this.__currentElement=r}var i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=t,this.__currentElement.setAttribute("transform",i)},n.prototype.scale=function(t,e){void 0===e&&(e=t),this.__addTransform(h("scale({x},{y})",{x:t,y:e}))},n.prototype.rotate=function(t){var e=180*t/Math.PI;this.__addTransform(h("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))},n.prototype.translate=function(t,e){this.__addTransform(h("translate({x},{y})",{x:t,y:e}))},n.prototype.transform=function(t,e,r,i,n,s){this.__addTransform(h("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:r,d:i,e:n,f:s}))},n.prototype.beginPath=function(){var t;this.__currentDefaultPath="",this.__currentPosition={},t=this.__createElement("path",{},!0),this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t},n.prototype.__applyCurrentDefaultPath=function(){var t=this.__currentElement;"path"===t.nodeName?t.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",t.nodeName)},n.prototype.__addPathCommand=function(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t},n.prototype.moveTo=function(t,e){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(h("M {x} {y}",{x:t,y:e}))},n.prototype.closePath=function(){this.__currentDefaultPath&&this.__addPathCommand("Z")},n.prototype.lineTo=function(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(h("L {x} {y}",{x:t,y:e})):this.__addPathCommand(h("M {x} {y}",{x:t,y:e}))},n.prototype.bezierCurveTo=function(t,e,r,i,n,s){this.__currentPosition={x:n,y:s},this.__addPathCommand(h("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:r,cp2y:i,x:n,y:s}))},n.prototype.quadraticCurveTo=function(t,e,r,i){this.__currentPosition={x:r,y:i},this.__addPathCommand(h("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:r,y:i}))};var p=function(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]};n.prototype.arcTo=function(t,e,r,i,n){var s=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(void 0!==s&&void 0!==a){if(n<0)throw new Error("IndexSizeError: The radius provided ("+n+") is negative.");if(s===t&&a===e||t===r&&e===i||0===n)this.lineTo(t,e);else{var o=p([s-t,a-e]),h=p([r-t,i-e]);if(o[0]*h[1]!=o[1]*h[0]){var l=o[0]*h[0]+o[1]*h[1],c=Math.acos(Math.abs(l)),_=p([o[0]+h[0],o[1]+h[1]]),u=n/Math.sin(c/2),d=t+u*_[0],g=e+u*_[1],m=[-o[1],o[0]],f=[h[1],-h[0]],y=function(t){var e=t[0];return t[1]>=0?Math.acos(e):-Math.acos(e)},v=y(m),b=y(f);this.lineTo(d+m[0]*n,g+m[1]*n),this.arc(d,g,n,v,b)}else this.lineTo(t,e)}}},n.prototype.stroke=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")},n.prototype.fill=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")},n.prototype.rect=function(t,e,r,i){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()},n.prototype.fillRect=function(t,e,r,i){var n;n=this.__createElement("rect",{x:t,y:e,width:r,height:i},!0),this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("fill")},n.prototype.strokeRect=function(t,e,r,i){var n;n=this.__createElement("rect",{x:t,y:e,width:r,height:i},!0),this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("stroke")},n.prototype.__clearCanvas=function(){for(var t=this.__closestGroupOrSvg().getAttribute("transform"),e=this.__root.childNodes[1],r=e.childNodes,i=r.length-1;i>=0;i–)r[i]&&e.removeChild(r[i]);this.__currentElement=e,this.__groupStack=[],t&&this.__addTransform(t)},n.prototype.clearRect=function(t,e,r,i){if(0!==t||0!==e||r!==this.width||i!==this.height){var n,s=this.__closestGroupOrSvg();n=this.__createElement("rect",{x:t,y:e,width:r,height:i,fill:"#FFFFFF"},!0),s.appendChild(n)}else this.__clearCanvas()},n.prototype.createLinearGradient=function(t,e,r,i){var n=this.__createElement("linearGradient",{id:l(this.__ids),x1:t+"px",x2:r+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(n),new s(n,this)},n.prototype.createRadialGradient=function(t,e,r,i,n,a){var o=this.__createElement("radialGradient",{id:l(this.__ids),cx:i+"px",cy:n+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(o),new s(o,this)},n.prototype.__parseFont=function(){var t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\’\"\sa-z0-9]+?)\s*$/i.exec(this.font),e={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return"underline"===this.__fontUnderline&&(e.decoration="underline"),this.__fontHref&&(e.href=this.__fontHref),e},n.prototype.__wrapTextLink=function(t,e){if(t.href){var r=this.__createElement("a");return r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),r.appendChild(e),r}return e},n.prototype.__applyText=function(t,e,r,i){var n,s,a=this.__parseFont(),o=this.__closestGroupOrSvg(),h=this.__createElement("text",{"font-family":a.family,"font-size":a.size,"font-style":a.style,"font-weight":a.weight,"text-decoration":a.decoration,x:e,y:r,"text-anchor":(n=this.textAlign,s={left:"start",right:"end",center:"middle",start:"start",end:"end"},s[n]||s.start),"dominant-baseline":c(this.textBaseline)},!0);h.appendChild(this.__document.createTextNode(t)),this.__currentElement=h,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(a,h))},n.prototype.fillText=function(t,e,r){this.__applyText(t,e,r,"fill")},n.prototype.strokeText=function(t,e,r){this.__applyText(t,e,r,"stroke")},n.prototype.measureText=function(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)},n.prototype.arc=function(t,e,r,i,n,s){if(i!==n){(i%=2*Math.PI)===(n%=2*Math.PI)&&(n=(n+2*Math.PI-.001*(s?-1:1))%(2*Math.PI));var a=t+r*Math.cos(n),o=e+r*Math.sin(n),l=t+r*Math.cos(i),c=e+r*Math.sin(i),p=s?0:1,_=0,u=n-i;u<0&&(u+=2*Math.PI),_=s?u>Math.PI?0:1:u>Math.PI?1:0,this.lineTo(l,c),this.__addPathCommand(h("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:r,ry:r,xAxisRotation:0,largeArcFlag:_,sweepFlag:p,endX:a,endY:o})),this.__currentPosition={x:a,y:o}}},n.prototype.clip=function(){var t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),r=l(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",r),e.appendChild(this.__currentElement),this.__defs.appendChild(e),t.setAttribute("clip-path",h("url(#{id})",{id:r})),t.appendChild(i),this.__currentElement=i},n.prototype.drawImage=function(){var t,e,r,i,s,a,o,h,l,c,p,_,u,d,g=Array.prototype.slice.call(arguments),m=g[0],f=0,y=0;if(3===g.length)t=g[1],e=g[2],r=s=m.width,i=a=m.height;else if(5===g.length)t=g[1],e=g[2],r=g[3],i=g[4],s=m.width,a=m.height;else{if(9!==g.length)throw new Error("Inavlid number of arguments passed to drawImage: "+arguments.length);f=g[1],y=g[2],s=g[3],a=g[4],t=g[5],e=g[6],r=g[7],i=g[8]}o=this.__closestGroupOrSvg(),this.__currentElement;var v="translate("+t+", "+e+")";if(m instanceof n){if((h=m.getSvg().cloneNode(!0)).childNodes&&h.childNodes.length>1){for(l=h.childNodes[0];l.childNodes.length;)d=l.childNodes[0].getAttribute("id"),this.__ids[d]=d,this.__defs.appendChild(l.childNodes[0]);if(c=h.childNodes[1]){var b,x=c.getAttribute("transform");b=x?x+" "+v:v,c.setAttribute("transform",b),o.appendChild(c)}}}else"IMG"===m.nodeName?((p=this.__createElement("image")).setAttribute("width",r),p.setAttribute("height",i),p.setAttribute("preserveAspectRatio","none"),(f||y||s!==m.width||a!==m.height)&&((_=this.__document.createElement("canvas")).width=r,_.height=i,(u=_.getContext("2d")).drawImage(m,f,y,s,a,0,0,r,i),m=_),p.setAttribute("transform",v),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===m.nodeName?m.toDataURL():m.getAttribute("src")),o.appendChild(p)):"CANVAS"===m.nodeName&&((p=this.__createElement("image")).setAttribute("width",r),p.setAttribute("height",i),p.setAttribute("preserveAspectRatio","none"),(_=this.__document.createElement("canvas")).width=r,_.height=i,(u=_.getContext("2d")).imageSmoothingEnabled=!1,u.mozImageSmoothingEnabled=!1,u.oImageSmoothingEnabled=!1,u.webkitImageSmoothingEnabled=!1,u.drawImage(m,f,y,s,a,0,0,r,i),m=_,p.setAttribute("transform",v),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m.toDataURL()),o.appendChild(p))},n.prototype.createPattern=function(t,e){var r,i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),s=l(this.__ids);return i.setAttribute("id",s),i.setAttribute("width",t.width),i.setAttribute("height",t.height),"CANVAS"===t.nodeName||"IMG"===t.nodeName?((r=this.__document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("width",t.width),r.setAttribute("height",t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===t.nodeName?t.toDataURL():t.getAttribute("src")),i.appendChild(r),this.__defs.appendChild(i)):t instanceof n&&(i.appendChild(t.__root.childNodes[1]),this.__defs.appendChild(i)),new a(i,this)},n.prototype.setLineDash=function(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null},n.prototype.drawFocusRing=function(){},n.prototype.createImageData=function(){},n.prototype.getImageData=function(){},n.prototype.putImageData=function(){},n.prototype.globalCompositeOperation=function(){},n.prototype.setTransform=function(){},r.default=n},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const a=e(184),_=e(120),n=e(129),r=e(130),i=e(185),g=e(88),c=e(187);class h extends c.LayoutItem{constructor(e,t,s,a,_={},n={}){super(),this.x_scale=e,this.y_scale=t,this.x_range=s,this.y_range=a,this.extra_x_ranges=_,this.extra_y_ranges=n,this._configure_scales()}map_to_screen(e,t,s="default",a="default"){return[this.xscales[s].v_compute(e),this.yscales[a].v_compute(t)]}_get_ranges(e,t){return Object.assign(Object.assign({},t),{default:e})}_get_scales(e,t,s){const c={};for(const h in t){const o=t[h];if((o instanceof i.DataRange1d||o instanceof r.Range1d)&&!(e instanceof _.ContinuousScale))throw new Error(Range ${o.type} is incompatible is Scale ${e.type});if(o instanceof g.FactorRange&&!(e instanceof a.CategoricalScale))throw new Error(Range ${o.type} is incompatible is Scale ${e.type});e instanceof n.LogScale&&o instanceof i.DataRange1d&&(o.scale_hint="log");const l=e.clone();l.setv({source_range:o,target_range:s}),c[h]=l}return c}_configure_frame_ranges(){this._h_target=new r.Range1d({start:this._left.value,end:this._right.value}),this._v_target=new r.Range1d({start:this._bottom.value,end:this._top.value})}_configure_scales(){this._configure_frame_ranges(),this._x_ranges=this._get_ranges(this.x_range,this.extra_x_ranges),this._y_ranges=this._get_ranges(this.y_range,this.extra_y_ranges),this._xscales=this._get_scales(this.x_scale,this._x_ranges,this._h_target),this._yscales=this._get_scales(this.y_scale,this._y_ranges,this._v_target)}_update_scales(){this._configure_frame_ranges();for(const e in this._xscales){this._xscales[e].target_range=this._h_target}for(const e in this._yscales){this._yscales[e].target_range=this._v_target}}_set_geometry(e,t){super._set_geometry(e,t),this._update_scales()}get x_ranges(){return this._x_ranges}get y_ranges(){return this._y_ranges}get xscales(){return this._xscales}get yscales(){return this._yscales}}s.CartesianFrame=h,h.__name__="CartesianFrame"},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(121);class _ extends n.Scale{constructor(e){super(e)}compute(e){return super._linear_compute(this.source_range.synthetic(e))}v_compute(e){return super._linear_v_compute(this.source_range.v_synthetic(e))}invert(e){return this._linear_invert(e)}v_invert(e){return this._linear_v_invert(e)}}t.CategoricalScale=_,_.__name__="CategoricalScale"},n function _(t,i,n){Object.defineProperty(n,"__esModule",{value:!0});const e=t(1),a=t(186),s=t(78),l=t(70),_=e.__importStar(t(19)),o=e.__importStar(t(85)),r=t(9);class d extends a.DataRange{constructor(t){super(t),this._plot_bounds={},this.have_updated_interactively=!1}static init_DataRange1d(){this.define({start:[_.Number],end:[_.Number],range_padding:[_.Number,.1],range_padding_units:[_.PaddingUnits,"percent"],flipped:[_.Boolean,!1],follow:[_.StartEnd],follow_interval:[_.Number],default_span:[_.Number,2],only_visible:[_.Boolean,!1]}),this.internal({scale_hint:[_.String,"auto"]})}initialize(){super.initialize(),this._initial_start=this.start,this._initial_end=this.end,this._initial_range_padding=this.range_padding,this._initial_range_padding_units=this.range_padding_units,this._initial_follow=this.follow,this._initial_follow_interval=this.follow_interval,this._initial_default_span=this.default_span}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}computed_renderers(){const t=this.names;let i=this.renderers;if(0==i.length)for(const t of this.plots){const n=t.renderers.filter(t=>t instanceof s.GlyphRenderer);i=i.concat(n)}t.length>0&&(i=i.filter(i=>r.includes(t,i.name))),l.logger.debug(computed ${i.length} renderers for DataRange1d ${this.id});for(const t of i)l.logger.trace(` - ${t.type} ${t.id}`);return i}_compute_plot_bounds(t,i){let n=o.empty();for(const e of t)null==i[e.id]||!e.visible&&this.only_visible||(n=o.union(n,i[e.id]));return n}adjust_bounds_for_aspect(t,i){const n=o.empty();let e=t.x1-t.x0;e<=0&&(e=1);let a=t.y1-t.y0;a<=0&&(a=1);const s=.5*(t.x1+t.x0),l=.5*(t.y1+t.y0);return e<i*a?e=i*a:a=e/i,n.x1=s+.5*e,n.x0=s-.5*e,n.y1=l+.5*a,n.y0=l-.5*a,n}_compute_min_max(t,i){let n,e,a=o.empty();for(const i in t){const n=t[i];a=o.union(a,n)}return[n,e]=0==i?[a.x0,a.x1]:[a.y0,a.y1],[n,e]}_compute_range(t,i){const n=this.range_padding;let e,a;if(null!=this._initial_start&&(t=this._initial_start),null!=this._initial_end&&(i=this._initial_end),"log"==this.scale_hint){let s,_;if((isNaN(t)||!isFinite(t)||t<=0)&&(t=isNaN(i)||!isFinite(i)||i<=0?.1:i/100,l.logger.warn(could not determine minimum data value for log axis, DataRange1d using value ${t})),(isNaN(i)||!isFinite(i)||i<=0)&&(i=isNaN(t)||!isFinite(t)||t<=0?10:100*t,l.logger.warn(could not determine maximum data value for log axis, DataRange1d using value ${i})),i==t)_=this.default_span+.001,s=Math.log(t)/Math.log(10);else{let e,a;"percent"==this.range_padding_units?(e=Math.log(t)/Math.log(10),a=Math.log(i)/Math.log(10),_=(a-e)*(1+n)):(e=Math.log(t-n)/Math.log(10),a=Math.log(i+n)/Math.log(10),_=a-e),s=(e+a)/2}e=10**(s-_/2),a=10**(s+_/2)}else{let s;s=i==t?this.default_span:"percent"==this.range_padding_units?(i-t)*(1+n):i-t+2*n;const l=(i+t)/2;e=l-s/2,a=l+s/2}let s=1;this.flipped&&([e,a]=[a,e],s=-1);const _=this.follow_interval;return null!=_&&Math.abs(e-a)>_&&("start"==this.follow?a=e+s*_:"end"==this.follow&&(e=a-s*_)),[e,a]}update(t,i,n,e){if(this.have_updated_interactively)return;const a=this.computed_renderers();let s=this._compute_plot_bounds(a,t);null!=e&&(s=this.adjust_bounds_for_aspect(s,e)),this._plot_bounds[n]=s;const[l,_]=this._compute_min_max(this._plot_bounds,i);let[o,r]=this._compute_range(l,_);null!=this._initial_start&&("log"==this.scale_hint?this._initial_start>0&&(o=this._initial_start):o=this._initial_start),null!=this._initial_end&&("log"==this.scale_hint?this._initial_end>0&&(r=this._initial_end):r=this._initial_end);const[d,h]=[this.start,this.end];if(o!=d||r!=h){const t={};o!=d&&(t.start=o),r!=h&&(t.end=r),this.setv(t)}"auto"==this.bounds&&this.setv({bounds:[o,r]},{silent:!0}),this.change.emit()}reset(){this.have_updated_interactively=!1,this.setv({range_padding:this._initial_range_padding,range_padding_units:this._initial_range_padding_units,follow:this._initial_follow,follow_interval:this._initial_follow_interval,default_span:this._initial_default_span},{silent:!0}),this.change.emit()}}n.DataRange1d=d,d.__name__="DataRange1d",d.init_DataRange1d()},n function _(e,a,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),r=e(89),s=n.__importStar(e(19));class _ extends r.Range{constructor(e){super(e)}static init_DataRange(){this.define({names:[s.Array,[]],renderers:[s.Array,[]]})}}t.DataRange=_,_.__name__="DataRange",_.init_DataRange()},n function _(a,o,t){Object.defineProperty(t,"__esModule",{value:!0});var e=a(188);t.Sizeable=e.Sizeable;var r=a(189);t.Layoutable=r.Layoutable,t.LayoutItem=r.LayoutItem;var n=a(190);t.HStack=n.HStack,t.VStack=n.VStack,t.AnchorLayout=n.AnchorLayout;var u=a(191);t.Grid=u.Grid,t.Row=u.Row,t.Column=u.Column;var c=a(192);t.ContentBox=c.ContentBox,t.VariadicBox=c.VariadicBox},n function _(h,t,i){Object.defineProperty(i,"__esModule",{value:!0});const{min:e,max:w}=Math;class d{constructor(h={}){this.width=null!=h.width?h.width:0,this.height=null!=h.height?h.height:0}bounded_to({width:h,height:t}){return new d({width:this.width==1/0&&null!=h?h:this.width,height:this.height==1/0&&null!=t?t:this.height})}expanded_to({width:h,height:t}){return new d({width:h!=1/0?w(this.width,h):this.width,height:t!=1/0?w(this.height,t):this.height})}expand_to({width:h,height:t}){this.width=w(this.width,h),this.height=w(this.height,t)}narrowed_to({width:h,height:t}){return new d({width:e(this.width,h),height:e(this.height,t)})}narrow_to({width:h,height:t}){this.width=e(this.width,h),this.height=e(this.height,t)}grow_by({left:h,right:t,top:i,bottom:e}){const w=this.width+h+t,s=this.height+i+e;return new d({width:w,height:s})}shrink_by({left:h,right:t,top:i,bottom:e}){const s=w(this.width-h-t,0),n=w(this.height-i-e,0);return new d({width:s,height:n})}map(h,t){return new d({width:h(this.width),height:(null!=t?t:h)(this.height)})}}i.Sizeable=d,d.__name__="Sizeable"},n function _(i,t,h){Object.defineProperty(h,"__esModule",{value:!0});const e=i(188),s=i(85),{min:n,max:g,round:a}=Math;class r{constructor(){this._bbox=new s.BBox,this._inner_bbox=new s.BBox;const i=this;this._top={get value(){return i.bbox.top}},this._left={get value(){return i.bbox.left}},this._width={get value(){return i.bbox.width}},this._height={get value(){return i.bbox.height}},this._right={get value(){return i.bbox.right}},this._bottom={get value(){return i.bbox.bottom}},this._hcenter={get value(){return i.bbox.hcenter}},this._vcenter={get value(){return i.bbox.vcenter}}}get bbox(){return this._bbox}get inner_bbox(){return this._inner_bbox}get sizing(){return this._sizing}set_sizing(i){const t=i.width_policy||"fit",h=i.width,e=null!=i.min_width?i.min_width:0,s=null!=i.max_width?i.max_width:1/0,n=i.height_policy||"fit",g=i.height,a=null!=i.min_height?i.min_height:0,r=null!=i.max_height?i.max_height:1/0,l=i.aspect,_=i.margin||{top:0,right:0,bottom:0,left:0},d=!1!==i.visible,o=i.halign||"start",u=i.valign||"start";this._sizing={width_policy:t,min_width:e,width:h,max_width:s,height_policy:n,min_height:a,height:g,max_height:r,aspect:l,margin:_,visible:d,halign:o,valign:u,size:{width:h,height:g},min_size:{width:e,height:a},max_size:{width:s,height:r}},this._init()}_init(){}_set_geometry(i,t){this._bbox=i,this._inner_bbox=t}set_geometry(i,t){this._set_geometry(i,t||i)}is_width_expanding(){return"max"==this.sizing.width_policy}is_height_expanding(){return"max"==this.sizing.height_policy}apply_aspect(i,{width:t,height:h}){const{aspect:e}=this.sizing;if(null!=e){const{width_policy:s,height_policy:n}=this.sizing,g=(i,t)=>{const h={max:4,fit:3,min:2,fixed:1};return h[i]>h[t]};if("fixed"!=s&&"fixed"!=n)if(s==n){const s=t,n=a(t/e),g=a(h*e),r=h;Math.abs(i.width-s)+Math.abs(i.height-n)<=Math.abs(i.width-g)+Math.abs(i.height-r)?(t=s,h=n):(t=g,h=r)}else g(s,n)?h=a(t/e):t=a(h*e);else"fixed"==s?h=a(t/e):"fixed"==n&&(t=a(h*e))}return{width:t,height:h}}measure(i){if(!this.sizing.visible)return{width:0,height:0};const t=i=>"fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:i,h=i=>"fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:i,s=new e.Sizeable(i).shrink_by(this.sizing.margin).map(t,h),n=this._measure(s),g=this.clip_size(n),a=t(g.width),r=h(g.height),l=this.apply_aspect(s,{width:a,height:r});return Object.assign(Object.assign({},n),l)}compute(i={}){const t=this.measure({width:null!=i.width&&this.is_width_expanding()?i.width:1/0,height:null!=i.height&&this.is_height_expanding()?i.height:1/0}),{width:h,height:e}=t,n=new s.BBox({left:0,top:0,width:h,height:e});let g=void 0;if(null!=t.inner){const{left:i,top:n,right:a,bottom:r}=t.inner;g=new s.BBox({left:i,top:n,right:h-a,bottom:e-r})}this.set_geometry(n,g)}get xview(){return this.bbox.xview}get yview(){return this.bbox.yview}clip_width(i){return g(this.sizing.min_width,n(i,this.sizing.max_width))}clip_height(i){return g(this.sizing.min_height,n(i,this.sizing.max_height))}clip_size({width:i,height:t}){return{width:this.clip_width(i),height:this.clip_height(t)}}}h.Layoutable=r,r.__name__="Layoutable";class l extends r{_measure(i){const{width_policy:t,height_policy:h}=this.sizing;let e,s;if(i.width==1/0)e=null!=this.sizing.width?this.sizing.width:0;else switch(t){case"fixed":e=null!=this.sizing.width?this.sizing.width:0;break;case"min":e=null!=this.sizing.width?n(i.width,this.sizing.width):0;break;case"fit":e=null!=this.sizing.width?n(i.width,this.sizing.width):i.width;break;case"max":e=null!=this.sizing.width?g(i.width,this.sizing.width):i.width}if(i.height==1/0)s=null!=this.sizing.height?this.sizing.height:0;else switch(h){case"fixed":s=null!=this.sizing.height?this.sizing.height:0;break;case"min":s=null!=this.sizing.height?n(i.height,this.sizing.height):0;break;case"fit":s=null!=this.sizing.height?n(i.height,this.sizing.height):i.height;break;case"max":s=null!=this.sizing.height?g(i.height,this.sizing.height):i.height}return{width:e,height:s}}}h.LayoutItem=l,l.__name__="LayoutItem";class _ extends r{_measure(i){const t=this._content_size(),h=i.bounded_to(this.sizing.size).bounded_to(t);return{width:(()=>{switch(this.sizing.width_policy){case"fixed":return null!=this.sizing.width?this.sizing.width:t.width;case"min":return t.width;case"fit":return h.width;case"max":return Math.max(t.width,h.width)}})(),height:(()=>{switch(this.sizing.height_policy){case"fixed":return null!=this.sizing.height?this.sizing.height:t.height;case"min":return t.height;case"fit":return h.height;case"max":return Math.max(t.height,h.height)}})()}}}h.ContentLayoutable=_,_.__name__="ContentLayoutable"},n function _(t,e,h){Object.defineProperty(h,"__esModule",{value:!0});const o=t(189),r=t(85);class i extends o.Layoutable{constructor(){super(…arguments),this.children=[]}}h.Stack=i,i.__name__="Stack";class s extends i{_measure(t){let e=0,h=0;for(const t of this.children){const o=t.measure({width:0,height:0});e+=o.width,h=Math.max(h,o.height)}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);const{top:h,bottom:o}=t;let{left:i}=t;for(const t of this.children){const{width:e}=t.measure({width:0,height:0});t.set_geometry(new r.BBox({left:i,width:e,top:h,bottom:o})),i+=e}}}h.HStack=s,s.__name__="HStack";class n extends i{_measure(t){let e=0,h=0;for(const t of this.children){const o=t.measure({width:0,height:0});e=Math.max(e,o.width),h+=o.height}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);const{left:h,right:o}=t;let{top:i}=t;for(const t of this.children){const{height:e}=t.measure({width:0,height:0});t.set_geometry(new r.BBox({top:i,height:e,left:h,right:o})),i+=e}}}h.VStack=n,n.__name__="VStack";class c extends o.Layoutable{constructor(){super(…arguments),this.children=[]}_measure(t){let e=0,h=0;for(const{layout:o}of this.children){const r=o.measure(t);e=Math.max(e,r.width),h=Math.max(h,r.height)}return{width:e,height:h}}_set_geometry(t,e){super._set_geometry(t,e);for(const{layout:e,anchor:h,margin:o}of this.children){const{left:i,right:s,top:n,bottom:c,hcenter:a,vcenter:_}=t,{width:g,height:d}=e.measure(t);let m;switch(h){case"top_left":m=new r.BBox({left:i+o,top:n+o,width:g,height:d});break;case"top_center":m=new r.BBox({hcenter:a,top:n+o,width:g,height:d});break;case"top_right":m=new r.BBox({right:s-o,top:n+o,width:g,height:d});break;case"bottom_right":m=new r.BBox({right:s-o,bottom:c-o,width:g,height:d});break;case"bottom_center":m=new r.BBox({hcenter:a,bottom:c-o,width:g,height:d});break;case"bottom_left":m=new r.BBox({left:i+o,bottom:c-o,width:g,height:d});break;case"center_left":m=new r.BBox({left:i+o,vcenter:_,width:g,height:d});break;case"center":m=new r.BBox({hcenter:a,vcenter:_,width:g,height:d});break;case"center_right":m=new r.BBox({right:s-o,vcenter:_,width:g,height:d})}e.set_geometry(m)}}}h.AnchorLayout=c,c.__name__="AnchorLayout"},n function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const e=t(188),o=t(189),n=t(8),r=t(85),h=t(9),{max:l,round:c}=Math;class a{constructor(t){this.def=t,this._map=new Map}get(t){let i=this._map.get(t);return void 0===i&&(i=this.def(),this._map.set(t,i)),i}apply(t,i){const s=this.get(t);this._map.set(t,i(s))}}a.__name__="DefaultMap";class g{constructor(){this._items=[],this._nrows=0,this._ncols=0}get nrows(){return this._nrows}get ncols(){return this._ncols}add(t,i){const{r1:s,c1:e}=t;this._nrows=l(this._nrows,s+1),this._ncols=l(this._ncols,e+1),this._items.push({span:t,data:i})}at(t,i){return this._items.filter(({span:s})=>s.r0<=t&&t<=s.r1&&s.c0<=i&&i<=s.c1).map(({data:t})=>t)}row(t){return this._items.filter(({span:i})=>i.r0<=t&&t<=i.r1).map(({data:t})=>t)}col(t){return this._items.filter(({span:i})=>i.c0<=t&&t<=i.c1).map(({data:t})=>t)}foreach(t){for(const{span:i,data:s}of this._items)t(i,s)}map(t){const i=new g;for(const{span:s,data:e}of this._items)i.add(s,t(s,e));return i}}g.__name__="Container";class p extends o.Layoutable{constructor(t=[]){super(),this.items=t,this.rows="auto",this.cols="auto",this.spacing=0,this.absolute=!1}is_width_expanding(){if(super.is_width_expanding())return!0;if("fixed"==this.sizing.width_policy)return!1;const{cols:t}=this._state;return h.some(t,t=>"max"==t.policy)}is_height_expanding(){if(super.is_height_expanding())return!0;if("fixed"==this.sizing.height_policy)return!1;const{rows:t}=this._state;return h.some(t,t=>"max"==t.policy)}_init(){super._init();const t=new g;for(const{layout:i,row:s,col:e,row_span:o,col_span:n}of this.items)if(i.sizing.visible){const r=s,h=e,l=s+(null!=o?o:1)-1,c=e+(null!=n?n:1)-1;t.add({r0:r,c0:h,r1:l,c1:c},i)}const{nrows:i,ncols:s}=t,e=new Array(i);for(let s=0;s<i;s++){const i=(()=>{const t=n.isPlainObject(this.rows)?this.rows[s]||this.rows[""]:this.rows;return null==t?{policy:"auto"}:n.isNumber(t)?{policy:"fixed",height:t}:n.isString(t)?{policy:t}:t})(),o=i.align||"auto";if("fixed"==i.policy)e[s]={policy:"fixed",height:i.height,align:o};else if("min"==i.policy)e[s]={policy:"min",align:o};else if("fit"==i.policy||"max"==i.policy)e[s]={policy:i.policy,flex:i.flex||1,align:o};else{if("auto"!=i.policy)throw new Error("unrechable");h.some(t.row(s),t=>t.is_height_expanding())?e[s]={policy:"max",flex:1,align:o}:e[s]={policy:"min",align:o}}}const o=new Array(s);for(let i=0;i<s;i++){const s=(()=>{const t=n.isPlainObject(this.cols)?this.cols[i]||this.cols[""]:this.cols;return null==t?{policy:"auto"}:n.isNumber(t)?{policy:"fixed",width:t}:n.isString(t)?{policy:t}:t})(),e=s.align||"auto";if("fixed"==s.policy)o[i]={policy:"fixed",width:s.width,align:e};else if("min"==s.policy)o[i]={policy:"min",align:e};else if("fit"==s.policy||"max"==s.policy)o[i]={policy:s.policy,flex:s.flex||1,align:e};else{if("auto"!=s.policy)throw new Error("unrechable");h.some(t.col(i),t=>t.is_width_expanding())?o[i]={policy:"max",flex:1,align:e}:o[i]={policy:"min",align:e}}}const[r,l]=n.isNumber(this.spacing)?[this.spacing,this.spacing]:this.spacing;this._state={items:t,nrows:i,ncols:s,rows:e,cols:o,rspacing:r,cspacing:l}}_measure_totals(t,i){const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state;return{height:h.sum(t)+(s-1)*o,width:h.sum(i)+(e-1)*n}}_measure_cells(t){const{items:i,nrows:s,ncols:o,rows:n,cols:r,rspacing:h,cspacing:a}=this._state,p=new Array(s);for(let t=0;t<s;t++){const i=n[t];p[t]="fixed"==i.policy?i.height:0}const _=new Array(o);for(let t=0;t<o;t++){const i=r[t];_[t]="fixed"==i.policy?i.width:0}const f=new g;return i.foreach((i,s)=>{const{r0:o,c0:g,r1:d,c1:w}=i,u=(d-o)*h,m=(w-g)*a;let y=0;for(let i=o;i<=d;i++)y+=t(i,g).height;y+=u;let x=0;for(let i=g;i<=w;i++)x+=t(o,i).width;x+=m;const b=s.measure({width:x,height:y});f.add(i,{layout:s,size_hint:b});const z=new e.Sizeable(b).grow_by(s.sizing.margin);z.height-=u,z.width-=m;const j=[];for(let t=o;t<=d;t++){const i=n[t];"fixed"==i.policy?z.height-=i.height:j.push(t)}if(z.height>0){const t=c(z.height/j.length);for(const i of j)p[i]=l(p[i],t)}const O=[];for(let t=g;t<=w;t++){const i=r[t];"fixed"==i.policy?z.width-=i.width:O.push(t)}if(z.width>0){const t=c(z.width/O.length);for(const i of O)_[i]=l(_[i],t)}}),{size:this._measure_totals(p,_),row_heights:p,col_widths:_,size_hints:f}}_measure_grid(t){const{nrows:i,ncols:s,rows:e,cols:o,rspacing:n,cspacing:r}=this._state,h=this._measure_cells((t,i)=>{const s=e[t],n=o[i];return{width:"fixed"==n.policy?n.width:1/0,height:"fixed"==s.policy?s.height:1/0}});let a;a="fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:t.height!=1/0&&this.is_height_expanding()?t.height:h.size.height;let g,p=0;for(let t=0;t<i;t++){const i=e[t];"fit"==i.policy||"max"==i.policy?p+=i.flex:a-=h.row_heights[t]}if(a-=(i-1)*n,0!=p&&a>0)for(let t=0;t<i;t++){const i=e[t];if("fit"==i.policy||"max"==i.policy){const s=c(a*(i.flex/p));a-=s,h.row_heights[t]=s,p-=i.flex}}else if(a<0){let t=0;for(let s=0;s<i;s++){"fixed"!=e[s].policy&&t++}let s=-a;for(let o=0;o<i;o++){if("fixed"!=e[o].policy){const i=h.row_heights[o],e=c(s/t);h.row_heights[o]=l(i-e,0),s-=e>i?i:e,t–}}}g="fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:t.width!=1/0&&this.is_width_expanding()?t.width:h.size.width;let _=0;for(let t=0;t<s;t++){const i=o[t];"fit"==i.policy||"max"==i.policy?_+=i.flex:g-=h.col_widths[t]}if(g-=(s-1)*r,0!=_&&g>0)for(let t=0;t<s;t++){const i=o[t];if("fit"==i.policy||"max"==i.policy){const s=c(g*(i.flex/_));g-=s,h.col_widths[t]=s,_-=i.flex}}else if(g<0){let t=0;for(let i=0;i<s;i++){"fixed"!=o[i].policy&&t++}let i=-g;for(let e=0;e<s;e++){if("fixed"!=o[e].policy){const s=h.col_widths[e],o=c(i/t);h.col_widths[e]=l(s-o,0),i-=o>s?s:o,t–}}}const{row_heights:f,col_widths:d,size_hints:w}=this._measure_cells((t,i)=>({width:h.col_widths[i],height:h.row_heights[t]}));return{size:this._measure_totals(f,d),row_heights:f,col_widths:d,size_hints:w}}_measure(t){const{size:i}=this._measure_grid(t);return i}_set_geometry(t,i){super._set_geometry(t,i);const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state,{row_heights:h,col_widths:g,size_hints:p}=this._measure_grid(t),_=this._state.rows.map((t,i)=>Object.assign(Object.assign({},t),{top:0,height:h[i],get bottom(){return this.top+this.height}})),f=this._state.cols.map((t,i)=>Object.assign(Object.assign({},t),{left:0,width:g[i],get right(){return this.left+this.width}})),d=p.map((t,i)=>Object.assign(Object.assign({},i),{outer:new r.BBox,inner:new r.BBox}));for(let i=0,e=this.absolute?t.top:0;i<s;i++){const t=_[i];t.top=e,e+=t.height+o}for(let i=0,s=this.absolute?t.left:0;i<e;i++){const t=f[i];t.left=s,s+=t.width+n}d.foreach(({r0:t,c0:i,r1:s,c1:e},h)=>{const{layout:l,size_hint:a}=h,{sizing:g}=l,{width:p,height:d}=a,w=function(t,i){let s=(i-t)*n;for(let e=t;e<=i;e++)s+=f[e].width;return s}(i,e),u=function(t,i){let s=(i-t)*o;for(let e=t;e<=i;e++)s+=_[e].height;return s}(t,s),m=i==e&&"auto"!=f[i].align?f[i].align:g.halign,y=t==s&&"auto"!=_[t].align?_[t].align:g.valign;let x=f[i].left;"start"==m?x+=g.margin.left:"center"==m?x+=c((w-p)/2):"end"==m&&(x+=w-g.margin.right-p);let b=_[t].top;"start"==y?b+=g.margin.top:"center"==y?b+=c((u-d)/2):"end"==y&&(b+=u-g.margin.bottom-d),h.outer=new r.BBox({left:x,top:b,width:p,height:d})});const w=_.map(()=>({start:new a(()=>0),end:new a(()=>0)})),u=f.map(()=>({start:new a(()=>0),end:new a(()=>0)}));d.foreach(({r0:t,c0:i,r1:s,c1:e},{size_hint:o,outer:n})=>{const{inner:r}=o;null!=r&&(w[t].start.apply(n.top,t=>l(t,r.top)),w[s].end.apply(_[s].bottom-n.bottom,t=>l(t,r.bottom)),u[i].start.apply(n.left,t=>l(t,r.left)),u[e].end.apply(f[e].right-n.right,t=>l(t,r.right)))}),d.foreach(({r0:t,c0:i,r1:s,c1:e},o)=>{const{size_hint:n,outer:h}=o;function l({left:t,right:i,top:s,bottom:e}){const o=h.width-t-i,n=h.height-s-e;return new r.BBox({left:t,top:s,width:o,height:n})}if(null!=n.inner){let r=l(n.inner);if(!1!==n.align){const o=w[t].start.get(h.top),n=w[s].end.get(_[s].bottom-h.bottom),c=u[i].start.get(h.left),a=u[e].end.get(f[e].right-h.right);try{r=l({top:o,bottom:n,left:c,right:a})}catch(t){}}o.inner=r}else o.inner=h}),d.foreach((t,{layout:i,outer:s,inner:e})=>{i.set_geometry(s,e)})}}s.Grid=p,p.__name__="Grid";class _ extends p{constructor(t){super(),this.items=t.map((t,i)=>({layout:t,row:0,col:i})),this.rows="fit"}}s.Row=_,_.__name__="Row";class f extends p{constructor(t){super(),this.items=t.map((t,i)=>({layout:t,row:i,col:0})),this.cols="fit"}}s.Column=f,f.__name__="Column"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e(189),i=e(188),o=e(66);class r extends s.ContentLayoutable{constructor(e){super(),this.content_size=o.unsized(e,()=>new i.Sizeable(o.size(e)))}_content_size(){return this.content_size}}n.ContentBox=r,r.__name__="ContentBox";class a extends s.Layoutable{constructor(e){super(),this.el=e}_measure(e){const t=new i.Sizeable(e).bounded_to(this.sizing.size);return o.sized(this.el,t,()=>{const e=new i.Sizeable(o.content_size(this.el)),{border:t,padding:n}=o.extents(this.el);return e.grow_by(t).grow_by(n).map(Math.ceil)})}}n.VariadicBox=a,a.__name__="VariadicBox"},n function _(e,r,u){Object.defineProperty(u,"__esModule",{value:!0});var a=e(194);u.Expression=a.Expression;var n=e(195);u.Stack=n.Stack;var o=e(196);u.CumSum=o.CumSum},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(69);class n extends s.Model{constructor(e){super(e),this._connected={},this._result={}}initialize(){super.initialize(),this._connected={},this._result={}}v_compute(e){null==this._connected[e.id]&&(this.connect(e.change,()=>delete this._result[e.id]),this.connect(e.patching,()=>delete this._result[e.id]),this.connect(e.streaming,()=>delete this._result[e.id]),this._connected[e.id]=!0);let t=this._result[e.id];return null==t&&(this._result[e.id]=t=this._v_compute(e)),t}}i.Expression=n,n.__name__="Expression"},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),o=t(194),r=i.__importStar(t(19));class s extends o.Expression{constructor(t){super(t)}static init_Stack(){this.define({fields:[r.Array,[]]})}_v_compute(t){var e;const n=null!==(e=t.get_length())&&void 0!==e?e:0,i=new Float64Array(n);for(const e of this.fields){const o=t.data[e];if(null!=o)for(let t=0,e=Math.min(n,o.length);t<e;t++)i[t]+=o[t]}return i}}n.Stack=s,s.__name__="Stack",s.init_Stack()},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),u=e(194),o=i.__importStar(e(19));class r extends u.Expression{constructor(e){super(e)}static init_CumSum(){this.define({field:[o.String],include_zero:[o.Boolean,!1]})}_v_compute(e){const t=new Float64Array(e.get_length()||0),n=e.data[this.field],i=this.include_zero?1:0;t[0]=this.include_zero?0:n[0];for(let e=1;e<t.length;e++)t[e]=t[e-1]+n[e-i];return t}}n.CumSum=r,r.__name__="CumSum",r.init_CumSum()},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});var l=e(198);t.BooleanFilter=l.BooleanFilter;var i=e(200);t.CustomJSFilter=i.CustomJSFilter;var o=e(199);t.Filter=o.Filter;var F=e(201);t.GroupFilter=F.GroupFilter;var a=e(202);t.IndexFilter=a.IndexFilter},n function _(e,o,l){Object.defineProperty(l,"__esModule",{value:!0});const n=e(1),t=e(199),i=n.__importStar(e(19)),r=e(70),a=e(9),s=e(8);class g extends t.Filter{constructor(e){super(e)}static init_BooleanFilter(){this.define({booleans:[i.Array,null]})}compute_indices(e){const o=this.booleans;return null!=o&&o.length>0?a.every(o,s.isBoolean)?(o.length!==e.get_length()&&r.logger.warn(BooleanFilter ${this.id}: length of booleans doesn’t match data source),a.range(0,o.length).filter(e=>!0===o[e])):(r.logger.warn(BooleanFilter ${this.id}: booleans should be array of booleans, defaulting to no filtering),null):(null!=o&&0==o.length?r.logger.warn(BooleanFilter ${this.id}: booleans is empty, defaulting to no filtering):r.logger.warn(BooleanFilter ${this.id}: booleans was not set, defaulting to no filtering),null)}}l.BooleanFilter=g,g.__name__="BooleanFilter",g.init_BooleanFilter()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1),l=e(69),n=i.__importStar(e(19)),o=e(8),s=e(9),a=e(70);class f extends l.Model{constructor(e){super(e)}static init_Filter(){this.define({filter:[n.Array,null]})}compute_indices(e){const t=this.filter;return null!=t?o.isArrayOf(t,o.isBoolean)?s.range(0,t.length).filter(e=>!0===t[e]):o.isArrayOf(t,o.isInteger)?t:(a.logger.warn(Filter ${this.id}: filter should either be array of only booleans or only integers, defaulting to no filtering),null):(a.logger.warn(Filter ${this.id}: filter was not set to be an array, defaulting to no filtering),null)}}r.Filter=f,f.__name__="Filter",f.init_Filter()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),r=t(199),n=i.__importStar(t(19)),u=t(24),c=t(26);class o extends r.Filter{constructor(t){super(t)}static init_CustomJSFilter(){this.define({args:[n.Any,{}],code:[n.String,""]})}get names(){return u.keys(this.args)}get values(){return u.values(this.args)}get func(){const t=c.use_strict(this.code);return new Function(…this.names,"source",t)}compute_indices(t){return this.filter=this.func(…this.values,t),super.compute_indices(t)}}s.CustomJSFilter=o,o.__name__="CustomJSFilter",o.init_CustomJSFilter()},n function _(t,n,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1),r=t(199),o=e.__importStar(t(19)),u=t(70),l=t(9);class s extends r.Filter{constructor(t){super(t),this.indices=null}static init_GroupFilter(){this.define({column_name:[o.String],group:[o.String]})}compute_indices(t){const n=t.get_column(this.column_name);return null==n?(u.logger.warn("group filter: groupby column not found in data source"),null):(this.indices=l.range(0,t.get_length()||0).filter(t=>n[t]===this.group),0===this.indices.length&&u.logger.warn(group filter: group ‘${this.group}’ did not match any values in column ‘${this.column_name}’),this.indices)}}i.GroupFilter=s,s.__name__="GroupFilter",s.init_GroupFilter()},n function _(e,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(1),r=e(199),s=t.__importStar(e(19)),l=e(70),d=e(8),o=e(9);class c extends r.Filter{constructor(e){super(e)}static init_IndexFilter(){this.define({indices:[s.Array,null]})}compute_indices(e){return null!=this.indices?o.every(this.indices,d.isInteger)?this.indices:(l.logger.warn(IndexFilter ${this.id}: indices should be array of integers, defaulting to no filtering),null):(l.logger.warn(IndexFilter ${this.id}: indices was not set, defaulting to no filtering),null)}}n.IndexFilter=c,c.__name__="IndexFilter",c.init_IndexFilter()},n function _(r,t,a){Object.defineProperty(a,"__esModule",{value:!0});var e=r(112);a.BasicTickFormatter=e.BasicTickFormatter;var c=r(152);a.CategoricalTickFormatter=c.CategoricalTickFormatter;var i=r(156);a.DatetimeTickFormatter=i.DatetimeTickFormatter;var o=r(204);a.FuncTickFormatter=o.FuncTickFormatter;var m=r(169);a.LogTickFormatter=m.LogTickFormatter;var F=r(172);a.MercatorTickFormatter=F.MercatorTickFormatter;var k=r(205);a.NumeralTickFormatter=k.NumeralTickFormatter;var T=r(206);a.PrintfTickFormatter=T.PrintfTickFormatter;var v=r(113);a.TickFormatter=v.TickFormatter},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),s=t(113),i=r.__importStar(t(19)),c=t(24),a=t(26);class u extends s.TickFormatter{constructor(t){super(t)}static init_FuncTickFormatter(){this.define({args:[i.Any,{}],code:[i.String,""]})}get names(){return c.keys(this.args)}get values(){return c.values(this.args)}_make_func(){const t=a.use_strict(this.code);return new Function("tick","index","ticks",…this.names,t)}doFormat(t,e){const n=this._make_func().bind({});return t.map((t,e,r)=>n(t,e,r,…this.values))}}n.FuncTickFormatter=u,u.__name__="FuncTickFormatter",u.init_FuncTickFormatter()},n function _(r,t,n){Object.defineProperty(n,"__esModule",{value:!0});const e=r(1),o=e.__importStar(r(159)),a=r(113),i=e.__importStar(r(19));class u extends a.TickFormatter{constructor(r){super(r)}static init_NumeralTickFormatter(){this.define({format:[i.String,"0,0"],language:[i.String,"en"],rounding:[i.RoundingFunction,"round"]})}get _rounding_fn(){switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}doFormat(r,t){const{format:n,language:e,_rounding_fn:a}=this;return r.map(r=>o.format(r,n,e,a))}}n.NumeralTickFormatter=u,u.__name__="NumeralTickFormatter",u.init_NumeralTickFormatter()},n function _(t,r,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t(1),n=t(113),o=t(158),a=e.__importStar(t(19));class c extends n.TickFormatter{constructor(t){super(t)}static init_PrintfTickFormatter(){this.define({format:[a.String,"%s"]})}doFormat(t,r){return t.map(t=>o.sprintf(this.format,t))}}i.PrintfTickFormatter=c,c.__name__="PrintfTickFormatter",c.init_PrintfTickFormatter()},n function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var v=a(208);r.AnnularWedge=v.AnnularWedge;var l=a(209);r.Annulus=l.Annulus;var t=a(210);r.Arc=t.Arc;var i=a(211);r.Bezier=i.Bezier;var n=a(212);r.Circle=n.Circle;var u=a(213);r.CenterRotatable=u.CenterRotatable;var c=a(214);r.Ellipse=c.Ellipse;var g=a(215);r.EllipseOval=g.EllipseOval;var A=a(86);r.Glyph=A.Glyph;var p=a(92);r.HArea=p.HArea;var s=a(216);r.HBar=s.HBar;var d=a(218);r.HexTile=d.HexTile;var R=a(219);r.Image=R.Image;var o=a(221);r.ImageRGBA=o.ImageRGBA;var y=a(222);r.ImageURL=y.ImageURL;var h=a(80);r.Line=h.Line;var m=a(224);r.MultiLine=m.MultiLine;var B=a(225);r.MultiPolygons=B.MultiPolygons;var P=a(226);r.Oval=P.Oval;var G=a(91);r.Patch=G.Patch;var H=a(227);r.Patches=H.Patches;var I=a(228);r.Quad=I.Quad;var L=a(229);r.Quadratic=L.Quadratic;var M=a(230);r.Ray=M.Ray;var O=a(231);r.Rect=O.Rect;var x=a(232);r.Segment=x.Segment;var C=a(233);r.Step=C.Step;var E=a(234);r.Text=E.Text;var Q=a(94);r.VArea=Q.VArea;var S=a(235);r.VBar=S.VBar;var T=a(236);r.Wedge=T.Wedge;var V=a(81);r.XYGlyph=V.XYGlyph},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(81),n=e(90),a=i.__importStar(e(87)),_=i.__importStar(e(19)),o=e(10);class h extends r.XYGlyphView{_map_data(){"data"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this._inner_radius):this.sinner_radius=this._inner_radius,"data"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this._outer_radius):this.souter_radius=this._outer_radius,this._angle=new Float32Array(this._start_angle.length);for(let e=0,t=this._start_angle.length;e<t;e++)this._angle[e]=this._end_angle[e]-this._start_angle[e]}_render(e,t,{sx:s,sy:i,_start_angle:r,_angle:n,sinner_radius:a,souter_radius:_}){const o=this.model.properties.direction.value();for(const h of t)isNaN(s[h]+i[h]+a[h]+_[h]+r[h]+n[h])||(e.translate(s[h],i[h]),e.rotate(r[h]),e.moveTo(_[h],0),e.beginPath(),e.arc(0,0,_[h],0,n[h],o),e.rotate(n[h]),e.lineTo(a[h],0),e.arc(0,0,a[h],0,-n[h],!o),e.closePath(),e.rotate(-n[h]-r[h]),e.translate(-s[h],-i[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,h),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,h),e.stroke()))}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(s);let n,_,h,u;if("data"==this.model.properties.outer_radius.units)n=i-this.max_outer_radius,h=i+this.max_outer_radius,_=r-this.max_outer_radius,u=r+this.max_outer_radius;else{const e=t-this.max_outer_radius,i=t+this.max_outer_radius;[n,h]=this.renderer.xscale.r_invert(e,i);const r=s-this.max_outer_radius,a=s+this.max_outer_radius;[_,u]=this.renderer.yscale.r_invert(r,a)}const l=[];for(const e of this.index.indices({x0:n,x1:h,y0:_,y1:u})){const t=this.souter_radius[e]**2,s=this.sinner_radius[e]**2,[n,a]=this.renderer.xscale.r_compute(i,this._x[e]),[_,o]=this.renderer.yscale.r_compute(r,this._y[e]),h=(n-a)**2+(_-o)**2;h<=t&&h>=s&&l.push([e,h])}const d=this.model.properties.direction.value(),c=[];for(const[e,i]of l){const r=Math.atan2(s-this.sy[e],t-this.sx[e]);o.angle_between(-r,-this._start_angle[e],-this._end_angle[e],d)&&c.push([e,i])}return a.create_hit_test_result_from_hits(c)}draw_legend_for_index(e,t,s){n.generic_area_legend(this.visuals,e,t,s)}_scenterxy(e){const t=(this.sinner_radius[e]+this.souter_radius[e])/2,s=(this._start_angle[e]+this._end_angle[e])/2;return{x:this.sx[e]+t*Math.cos(s),y:this.sy[e]+t*Math.sin(s)}}scenterx(e){return this._scenterxy(e).x}scentery(e){return this._scenterxy(e).y}}s.AnnularWedgeView=h,h.__name__="AnnularWedgeView";class u extends r.XYGlyph{constructor(e){super(e)}static init_AnnularWedge(){this.prototype.default_view=h,this.mixins(["line","fill"]),this.define({direction:[_.Direction,"anticlock"],inner_radius:[_.DistanceSpec],outer_radius:[_.DistanceSpec],start_angle:[_.AngleSpec],end_angle:[_.AngleSpec]})}}s.AnnularWedge=u,u.__name__="AnnularWedge",u.init_AnnularWedge()},n function _(s,i,t){Object.defineProperty(t,"__esModule",{value:!0});const e=s(1),r=s(81),a=e.__importStar(s(87)),n=e.__importStar(s(19)),_=s(101);class u extends r.XYGlyphView{_map_data(){"data"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this._inner_radius):this.sinner_radius=this._inner_radius,"data"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this._outer_radius):this.souter_radius=this._outer_radius}_render(s,i,{sx:t,sy:e,sinner_radius:r,souter_radius:a}){for(const n of i)if(!isNaN(t[n]+e[n]+r[n]+a[n])){if(this.visuals.fill.doit){if(this.visuals.fill.set_vectorize(s,n),s.beginPath(),_.is_ie)for(const i of[!1,!0])s.arc(t[n],e[n],r[n],0,Math.PI,i),s.arc(t[n],e[n],a[n],Math.PI,0,!i);else s.arc(t[n],e[n],r[n],0,2*Math.PI,!0),s.arc(t[n],e[n],a[n],2*Math.PI,0,!1);s.fill()}this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,n),s.beginPath(),s.arc(t[n],e[n],r[n],0,2*Math.PI),s.moveTo(t[n]+a[n],e[n]),s.arc(t[n],e[n],a[n],0,2*Math.PI),s.stroke())}}_hit_point(s){const{sx:i,sy:t}=s,e=this.renderer.xscale.invert(i),r=this.renderer.yscale.invert(t);let n,_,u,o;if("data"==this.model.properties.outer_radius.units)n=e-this.max_outer_radius,u=e+this.max_outer_radius,_=r-this.max_outer_radius,o=r+this.max_outer_radius;else{const s=i-this.max_outer_radius,e=i+this.max_outer_radius;[n,u]=this.renderer.xscale.r_invert(s,e);const r=t-this.max_outer_radius,a=t+this.max_outer_radius;[_,o]=this.renderer.yscale.r_invert(r,a)}const h=[];for(const s of this.index.indices({x0:n,x1:u,y0:_,y1:o})){const i=this.souter_radius[s]**2,t=this.sinner_radius[s]**2,[a,n]=this.renderer.xscale.r_compute(e,this._x[s]),[_,u]=this.renderer.yscale.r_compute(r,this._y[s]),o=(a-n)**2+(_-u)**2;o<=i&&o>=t&&h.push([s,o])}return a.create_hit_test_result_from_hits(h)}draw_legend_for_index(s,{x0:i,y0:t,x1:e,y1:r},a){const n=a+1,_=new Array(n);_[a]=(i+e)/2;const u=new Array(n);u[a]=(t+r)/2;const o=.5*Math.min(Math.abs(e-i),Math.abs(r-t)),h=new Array(n);h[a]=.4*o;const d=new Array(n);d[a]=.8*o,this._render(s,[a],{sx:_,sy:u,sinner_radius:h,souter_radius:d})}}t.AnnulusView=u,u.__name__="AnnulusView";class o extends r.XYGlyph{constructor(s){super(s)}static init_Annulus(){this.prototype.default_view=u,this.mixins(["line","fill"]),this.define({inner_radius:[n.DistanceSpec],outer_radius:[n.DistanceSpec]})}}t.Annulus=o,o.__name__="Annulus",o.init_Annulus()},n function _(e,i,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(1),r=e(81),n=e(90),a=t.__importStar(e(19));class _ extends r.XYGlyphView{_map_data(){"data"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius):this.sradius=this._radius}_render(e,i,{sx:s,sy:t,sradius:r,_start_angle:n,_end_angle:a}){if(this.visuals.line.doit){const _=this.model.properties.direction.value();for(const c of i)isNaN(s[c]+t[c]+r[c]+n[c]+a[c])||(e.beginPath(),e.arc(s[c],t[c],r[c],n[c],a[c],_),this.visuals.line.set_vectorize(e,c),e.stroke())}}draw_legend_for_index(e,i,s){n.generic_line_legend(this.visuals,e,i,s)}}s.ArcView=_,_.__name__="ArcView";class c extends r.XYGlyph{constructor(e){super(e)}static init_Arc(){this.prototype.default_view=_,this.mixins(["line"]),this.define({direction:[a.Direction,"anticlock"],radius:[a.DistanceSpec],start_angle:[a.AngleSpec],end_angle:[a.AngleSpec]})}}s.Arc=c,c.__name__="Arc",c.init_Arc()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(82),n=t(86),c=t(90);function o(t,e,i,s,n,c,o,h){const r=[],_=[[],[]];for(let _=0;_<=2;_++){let a,x,l;if(0===_?(x=6*t-12*i+6*n,a=-3*t+9*i-9*n+3*o,l=3*i-3*t):(x=6*e-12*s+6*c,a=-3*e+9*s-9*c+3*h,l=3*s-3*e),Math.abs(a)<1e-12){if(Math.abs(x)<1e-12)continue;const t=-l/x;0<t&&t<1&&r.push(t);continue}const y=x*x-4*l*a,u=Math.sqrt(y);if(y<0)continue;const d=(-x+u)/(2*a);0<d&&d<1&&r.push(d);const f=(-x-u)/(2*a);0<f&&f<1&&r.push(f)}let a=r.length;const x=a;for(;a–;){const x=r[a],l=1-x,y=l*l*l*t+3*l*l*x*i+3*l*x*x*n+x*x*x*o;_[0][a]=y;const u=l*l*l*e+3*l*l*x*s+3*l*x*x*c+x*x*x*h;_[1][a]=u}return _[0][x]=t,_[1][x]=e,_[0][x+1]=o,_[1][x+1]=h,[Math.min(…_[0]),Math.max(…_[1]),Math.max(…_[0]),Math.min(…_[1])]}class h extends n.GlyphView{_index_data(){const t=[];for(let e=0,i=this._x0.length;e<i;e++){if(isNaN(this._x0[e]+this._x1[e]+this._y0[e]+this._y1[e]+this._cx0[e]+this._cy0[e]+this._cx1[e]+this._cy1[e]))continue;const[i,s,n,c]=o(this._x0[e],this._y0[e],this._x1[e],this._y1[e],this._cx0[e],this._cy0[e],this._cx1[e],this._cy1[e]);t.push({x0:i,y0:s,x1:n,y1:c,i:e})}return new s.SpatialIndex(t)}_render(t,e,{sx0:i,sy0:s,sx1:n,sy1:c,scx0:o,scy0:h,scx1:r,scy1:_}){if(this.visuals.line.doit)for(const a of e)isNaN(i[a]+s[a]+n[a]+c[a]+o[a]+h[a]+r[a]+_[a])||(t.beginPath(),t.moveTo(i[a],s[a]),t.bezierCurveTo(o[a],h[a],r[a],_[a],n[a],c[a]),this.visuals.line.set_vectorize(t,a),t.stroke())}draw_legend_for_index(t,e,i){c.generic_line_legend(this.visuals,t,e,i)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}i.BezierView=h,h.__name__="BezierView";class r extends n.Glyph{constructor(t){super(t)}static init_Bezier(){this.prototype.default_view=h,this.coords([["x0","y0"],["x1","y1"],["cx0","cy0"],["cx1","cy1"]]),this.mixins(["line"])}}i.Bezier=r,r.__name__="Bezier",r.init_Bezier()},n function _(s,i,e){Object.defineProperty(e,"__esModule",{value:!0});const t=s(1),r=s(81),a=t.__importStar(s(87)),n=t.__importStar(s(19)),h=s(9),d=s(12);class _ extends r.XYGlyphView{_map_data(){if(null!=this._radius)if("data"==this.model.properties.radius.spec.units){switch(this.model.properties.radius_dimension.spec.value){case"x":this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius);break;case"y":this.sradius=this.sdist(this.renderer.yscale,this._y,this._radius);break;case"max":{const s=this.sdist(this.renderer.xscale,this._x,this._radius),i=this.sdist(this.renderer.yscale,this._y,this._radius);this.sradius=d.map(s,(s,e)=>Math.max(s,i[e]));break}case"min":{const s=this.sdist(this.renderer.xscale,this._x,this._radius),i=this.sdist(this.renderer.yscale,this._y,this._radius);this.sradius=d.map(s,(s,e)=>Math.min(s,i[e]));break}}}else this.sradius=this._radius,this.max_size=2*this.max_radius;else this.sradius=d.map(this._size,s=>s/2)}_mask_data(){const[s,i]=this.renderer.plot_view.frame.bbox.ranges;let e,t,r,a;if(null!=this._radius&&"data"==this.model.properties.radius.units){const n=s.start,h=s.end;[e,r]=this.renderer.xscale.r_invert(n,h),e-=this.max_radius,r+=this.max_radius;const d=i.start,_=i.end;[t,a]=this.renderer.yscale.r_invert(d,_),t-=this.max_radius,a+=this.max_radius}else{const n=s.start-this.max_size,h=s.end+this.max_size;[e,r]=this.renderer.xscale.r_invert(n,h);const d=i.start-this.max_size,_=i.end+this.max_size;[t,a]=this.renderer.yscale.r_invert(d,_)}return this.index.indices({x0:e,x1:r,y0:t,y1:a})}_render(s,i,{sx:e,sy:t,sradius:r}){for(const a of i)isNaN(e[a]+t[a]+r[a])||(s.beginPath(),s.arc(e[a],t[a],r[a],0,2*Math.PI,!1),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(s,a),s.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,a),s.stroke()))}_hit_point(s){const{sx:i,sy:e}=s,t=this.renderer.xscale.invert(i),r=this.renderer.yscale.invert(e);let n,h,d,_;if(null!=this._radius&&"data"==this.model.properties.radius.units)n=t-this.max_radius,h=t+this.max_radius,d=r-this.max_radius,_=r+this.max_radius;else{const s=i-this.max_size,t=i+this.max_size;[n,h]=this.renderer.xscale.r_invert(s,t);const r=e-this.max_size,a=e+this.max_size;[d,_]=this.renderer.yscale.r_invert(r,a)}const l=this.index.indices({x0:n,x1:h,y0:d,y1:_}),c=[];if(null!=this._radius&&"data"==this.model.properties.radius.units)for(const s of l){const i=this.sradius[s]**2,[e,a]=this.renderer.xscale.r_compute(t,this._x[s]),[n,h]=this.renderer.yscale.r_compute(r,this._y[s]),d=(e-a)**2+(n-h)**2;d<=i&&c.push([s,d])}else for(const s of l){const t=this.sradius[s]**2,r=(this.sx[s]-i)**2+(this.sy[s]-e)**2;r<=t&&c.push([s,r])}return a.create_hit_test_result_from_hits(c)}_hit_span(s){const{sx:i,sy:e}=s,t=this.bounds(),r=a.create_empty_hit_test_result();let n,h,d,_;if("h"==s.direction){let s,e;if(d=t.y0,_=t.y1,null!=this._radius&&"data"==this.model.properties.radius.units)s=i-this.max_radius,e=i+this.max_radius,[n,h]=this.renderer.xscale.r_invert(s,e);else{const t=this.max_size/2;s=i-t,e=i+t,[n,h]=this.renderer.xscale.r_invert(s,e)}}else{let s,i;if(n=t.x0,h=t.x1,null!=this._radius&&"data"==this.model.properties.radius.units)s=e-this.max_radius,i=e+this.max_radius,[d,_]=this.renderer.yscale.r_invert(s,i);else{const t=this.max_size/2;s=e-t,i=e+t,[d,_]=this.renderer.yscale.r_invert(s,i)}}const l=this.index.indices({x0:n,x1:h,y0:d,y1:_});return r.indices=l,r}_hit_rect(s){const{sx0:i,sx1:e,sy0:t,sy1:r}=s,[n,h]=this.renderer.xscale.r_invert(i,e),[d,_]=this.renderer.yscale.r_invert(t,r),l=a.create_empty_hit_test_result();return l.indices=this.index.indices({x0:n,x1:h,y0:d,y1:_}),l}_hit_poly(s){const{sx:i,sy:e}=s,t=h.range(0,this.sx.length),r=[];for(let s=0,n=t.length;s<n;s++){const n=t[s];a.point_in_poly(this.sx[s],this.sy[s],i,e)&&r.push(n)}const n=a.create_empty_hit_test_result();return n.indices=r,n}draw_legend_for_index(s,{x0:i,y0:e,x1:t,y1:r},a){const n=a+1,h=new Array(n);h[a]=(i+t)/2;const d=new Array(n);d[a]=(e+r)/2;const _=new Array(n);_[a]=.2*Math.min(Math.abs(t-i),Math.abs(r-e)),this._render(s,[a],{sx:h,sy:d,sradius:_})}}e.CircleView=_,_.__name__="CircleView";class l extends r.XYGlyph{constructor(s){super(s)}static init_Circle(){this.prototype.default_view=_,this.mixins(["line","fill"]),this.define({angle:[n.AngleSpec,0],size:[n.DistanceSpec,{units:"screen",value:4}],radius:[n.DistanceSpec],radius_dimension:[n.RadiusDimension,"x"]})}initialize(){super.initialize(),this.properties.radius.optional=!0}}e.Circle=l,l.__name__="Circle",l.init_Circle()},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const a=e(1),i=e(81),l=a.__importStar(e(19));class s extends i.XYGlyphView{}n.CenterRotatableView=s,s.__name__="CenterRotatableView";class _ extends i.XYGlyph{constructor(e){super(e)}static init_CenterRotatable(){this.mixins(["line","fill"]),this.define({angle:[l.AngleSpec,0],width:[l.DistanceSpec],height:[l.DistanceSpec]})}}n.CenterRotatable=_,_.__name__="CenterRotatable",_.init_CenterRotatable()},n function _(e,l,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(215);class t extends s.EllipseOvalView{}i.EllipseView=t,t.__name__="EllipseView";class _ extends s.EllipseOval{constructor(e){super(e)}static init_Ellipse(){this.prototype.default_view=t}}i.Ellipse=_,_.__name__="Ellipse",_.init_Ellipse()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(213),r=i.__importStar(t(87));class a extends h.CenterRotatableView{_set_data(){this.max_w2=0,"data"==this.model.properties.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,"data"==this.model.properties.height.units&&(this.max_h2=this.max_height/2)}_map_data(){"data"==this.model.properties.width.units?this.sw=this.sdist(this.renderer.xscale,this._x,this._width,"center"):this.sw=this._width,"data"==this.model.properties.height.units?this.sh=this.sdist(this.renderer.yscale,this._y,this._height,"center"):this.sh=this._height}_render(t,s,{sx:e,sy:i,sw:h,sh:r,_angle:a}){for(const _ of s)isNaN(e[_]+i[_]+h[_]+r[_]+a[_])||(t.beginPath(),t.ellipse(e[_],i[_],h[_]/2,r[_]/2,a[_],0,2*Math.PI),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,_),t.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,_),t.stroke()))}_hit_point(t){let s,e,i,h,a,_,n,l,d,o;const{sx:x,sy:m}=t,c=this.renderer.xscale.invert(x),w=this.renderer.yscale.invert(m);"data"==this.model.properties.width.units?(s=c-this.max_width,e=c+this.max_width):(n=x-this.max_width,l=x+this.max_width,[s,e]=this.renderer.xscale.r_invert(n,l)),"data"==this.model.properties.height.units?(i=w-this.max_height,h=w+this.max_height):(d=m-this.max_height,o=m+this.max_height,[i,h]=this.renderer.yscale.r_invert(d,o));const p=this.index.indices({x0:s,x1:e,y0:i,y1:h}),y=[];for(const t of p)a=r.point_in_ellipse(x,m,this._angle[t],this.sh[t]/2,this.sw[t]/2,this.sx[t],this.sy[t]),a&&([n,l]=this.renderer.xscale.r_compute(c,this._x[t]),[d,o]=this.renderer.yscale.r_compute(w,this._y[t]),_=(n-l)**2+(d-o)**2,y.push([t,_]));return r.create_hit_test_result_from_hits(y)}draw_legend_for_index(t,{x0:s,y0:e,x1:i,y1:h},r){const a=r+1,_=new Array(a);_[r]=(s+i)/2;const n=new Array(a);n[r]=(e+h)/2;const l=this.sw[r]/this.sh[r],d=.8*Math.min(Math.abs(i-s),Math.abs(h-e)),o=new Array(a),x=new Array(a);l>1?(o[r]=d,x[r]=d/l):(o[r]=d*l,x[r]=d),this._render(t,[r],{sx:_,sy:n,sw:o,sh:x,_angle:[0]})}_bounds({x0:t,x1:s,y0:e,y1:i}){return{x0:t-this.max_w2,x1:s+this.max_w2,y0:e-this.max_h2,y1:i+this.max_h2}}}e.EllipseOvalView=a,a.__name__="EllipseOvalView";class _ extends h.CenterRotatable{constructor(t){super(t)}}e.EllipseOval=_,_.__name__="EllipseOval"},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(217),r=i.__importStar(t(19));class _ extends h.BoxView{scenterx(t){return(this.sleft[t]+this.sright[t])/2}scentery(t){return this.sy[t]}_index_data(){return this._index_box(this._y.length)}_lrtb(t){return[Math.min(this._left[t],this._right[t]),Math.max(this._left[t],this._right[t]),this._y[t]+.5*this._height[t],this._y[t]-.5*this._height[t]]}_map_data(){this.sy=this.renderer.yscale.v_compute(this._y),this.sh=this.sdist(this.renderer.yscale,this._y,this._height,"center"),this.sleft=this.renderer.xscale.v_compute(this._left),this.sright=this.renderer.xscale.v_compute(this._right);const t=this.sy.length;this.stop=new Float64Array(t),this.sbottom=new Float64Array(t);for(let s=0;s<t;s++)this.stop[s]=this.sy[s]-this.sh[s]/2,this.sbottom[s]=this.sy[s]+this.sh[s]/2;this._clamp_viewport()}}e.HBarView=_,_.__name__="HBarView";class a extends h.Box{constructor(t){super(t)}static init_HBar(){this.prototype.default_view=_,this.coords([["left","y"]]),this.define({height:[r.NumberSpec],right:[r.CoordinateSpec]}),this.override({left:0})}}e.HBar=a,a.__name__="HBar",a.init_HBar()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),r=t(82),n=t(86),h=t(90),a=i.__importStar(t(87));class o extends n.GlyphView{get_anchor_point(t,e,s){const i=Math.min(this.sleft[e],this.sright[e]),r=Math.max(this.sright[e],this.sleft[e]),n=Math.min(this.stop[e],this.sbottom[e]),h=Math.max(this.sbottom[e],this.stop[e]);switch(t){case"top_left":return{x:i,y:n};case"top_center":return{x:(i+r)/2,y:n};case"top_right":return{x:r,y:n};case"bottom_left":return{x:i,y:h};case"bottom_center":return{x:(i+r)/2,y:h};case"bottom_right":return{x:r,y:h};case"center_left":return{x:i,y:(n+h)/2};case"center":return{x:(i+r)/2,y:(n+h)/2};case"center_right":return{x:r,y:(n+h)/2};default:return null}}_index_box(t){const e=[];for(let s=0;s<t;s++){const[t,i,r,n]=this._lrtb(s);!isNaN(t+i+r+n)&&isFinite(t+i+r+n)&&e.push({x0:Math.min(t,i),y0:Math.min(r,n),x1:Math.max(i,t),y1:Math.max(r,n),i:s})}return new r.SpatialIndex(e)}_render(t,e,{sleft:s,sright:i,stop:r,sbottom:n}){for(const h of e)isNaN(s[h]+r[h]+i[h]+n[h])||(t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,h),t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.fill()),this.visuals.hatch.doit2(t,h,()=>{t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.fill()},()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,h),t.beginPath(),t.rect(s[h],r[h],i[h]-s[h],n[h]-r[h]),t.stroke()))}_clamp_viewport(){const t=this.renderer.plot_view.frame.bbox.h_range,e=this.renderer.plot_view.frame.bbox.v_range,s=this.stop.length;for(let i=0;i<s;i++)this.stop[i]=Math.max(this.stop[i],e.start),this.sbottom[i]=Math.min(this.sbottom[i],e.end),this.sleft[i]=Math.max(this.sleft[i],t.start),this.sright[i]=Math.min(this.sright[i],t.end)}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){const{sx:e,sy:s}=t,i=this.renderer.xscale.invert(e),r=this.renderer.yscale.invert(s),n=this.index.indices({x0:i,y0:r,x1:i,y1:r}),h=a.create_empty_hit_test_result();return h.indices=n,h}_hit_span(t){const{sx:e,sy:s}=t;let i;if("v"==t.direction){const t=this.renderer.yscale.invert(s),e=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(e.start,e.end);i=this.index.indices({x0:r,y0:t,x1:n,y1:t})}else{const t=this.renderer.xscale.invert(e),s=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(s.start,s.end);i=this.index.indices({x0:t,y0:r,x1:t,y1:n})}const r=a.create_empty_hit_test_result();return r.indices=i,r}draw_legend_for_index(t,e,s){h.generic_area_legend(this.visuals,t,e,s)}}s.BoxView=o,o.__name__="BoxView";class _ extends n.Glyph{constructor(t){super(t)}static init_Box(){this.mixins(["line","fill","hatch"])}}s.Box=_,_.__name__="Box",_.init_Box()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(86),n=i.__importStar(e(87)),a=i.__importStar(e(19)),h=e(82),_=e(90);class l extends r.GlyphView{scenterx(e){return this.sx[e]}scentery(e){return this.sy[e]}_set_data(){const e=this._q.length,t=this.model.size,s=this.model.aspect_scale;if(this._x=new Float64Array(e),this._y=new Float64Array(e),"pointytop"==this.model.orientation)for(let i=0;i<e;i++)this._x[i]=t*Math.sqrt(3)*(this._q[i]+this._r[i]/2)/s,this._y[i]=3*-t/2*this._r[i];else for(let i=0;i<e;i++)this._x[i]=3*t/2*this._q[i],this._y[i]=-t*Math.sqrt(3)*(this._r[i]+this._q[i]/2)*s}_index_data(){let e=this.model.size,t=Math.sqrt(3)*e/2;"flattop"==this.model.orientation?([t,e]=[e,t],e*=this.model.aspect_scale):t/=this.model.aspect_scale;const s=[];for(let i=0;i<this._x.length;i++){const r=this._x[i],n=this._y[i];!isNaN(r+n)&&isFinite(r+n)&&s.push({x0:r-t,y0:n-e,x1:r+t,y1:n+e,i})}return new h.SpatialIndex(s)}map_data(){[this.sx,this.sy]=this.map_to_screen(this._x,this._y),[this.svx,this.svy]=this._get_unscaled_vertices()}_get_unscaled_vertices(){const e=this.model.size,t=this.model.aspect_scale;if("pointytop"==this.model.orientation){const s=this.renderer.yscale,i=this.renderer.xscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))/t,a=r/2;return[[0,-n,-n,0,n,n],[r,a,-a,-r,-a,a]]}{const s=this.renderer.xscale,i=this.renderer.yscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))*t,a=r/2;return[[r,a,-a,-r,-a,a],[0,-n,-n,0,n,n]]}}_render(e,t,{sx:s,sy:i,svx:r,svy:n,_scale:a}){for(const h of t)if(!isNaN(s[h]+i[h]+a[h])){e.translate(s[h],i[h]),e.beginPath();for(let t=0;t<6;t++)e.lineTo(r[t]*a[h],n[t]*a[h]);e.closePath(),e.translate(-s[h],-i[h]),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,h),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,h),e.stroke())}}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(s),a=this.index.indices({x0:i,y0:r,x1:i,y1:r}),h=[];for(const e of a)n.point_in_poly(t-this.sx[e],s-this.sy[e],this.svx,this.svy)&&h.push(e);const _=n.create_empty_hit_test_result();return _.indices=h,_}_hit_span(e){const{sx:t,sy:s}=e;let i;if("v"==e.direction){const e=this.renderer.yscale.invert(s),t=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(t.start,t.end);i=this.index.indices({x0:r,y0:e,x1:n,y1:e})}else{const e=this.renderer.xscale.invert(t),s=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(s.start,s.end);i=this.index.indices({x0:e,y0:r,x1:e,y1:n})}const r=n.create_empty_hit_test_result();return r.indices=i,r}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:r}=e,[a,h]=this.renderer.xscale.r_invert(t,s),[_,l]=this.renderer.yscale.r_invert(i,r),o=n.create_empty_hit_test_result();return o.indices=this.index.indices({x0:a,x1:h,y0:_,y1:l}),o}draw_legend_for_index(e,t,s){_.generic_area_legend(this.visuals,e,t,s)}}s.HexTileView=l,l.__name__="HexTileView";class o extends r.Glyph{constructor(e){super(e)}static init_HexTile(){this.prototype.default_view=l,this.coords([["r","q"]]),this.mixins(["line","fill"]),this.define({size:[a.Number,1],aspect_scale:[a.Number,1],scale:[a.NumberSpec,1],orientation:[a.HexTileOrientation,"pointytop"]}),this.override({line_color:null})}}s.HexTile=o,o.__name__="HexTile",o.init_HexTile()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(1),s=e(220),_=e(114),n=i.__importStar(e(19)),h=e(9);class o extends s.ImageBaseView{initialize(){super.initialize(),this.connect(this.model.color_mapper.change,()=>this._update_image()),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_update_image(){null!=this.image_data&&(this._set_data(),this.renderer.plot_view.request_render())}_set_data(){this._set_width_heigh_data();const e=this.model.color_mapper.rgba_mapper;for(let t=0,a=this._image.length;t<a;t++){let a;if(null!=this._image_shape&&this._image_shape[t].length>0){a=this._image[t];const e=this._image_shape[t];this._height[t]=e[0],this._width[t]=e[1]}else{const e=this._image[t];a=h.concat(e),this._height[t]=e.length,this._width[t]=e[0].length}const i=e.v_compute(a);this._set_image_data_from_buffer(t,i)}}_render(e,t,{image_data:a,sx:i,sy:s,sw:_,sh:n}){const h=e.getImageSmoothingEnabled();e.setImageSmoothingEnabled(!1),e.globalAlpha=this.model.global_alpha;for(const h of t){if(null==a[h])continue;if(isNaN(i[h]+s[h]+_[h]+n[h]))continue;const t=s[h];e.translate(0,t),e.scale(1,-1),e.translate(0,-t),e.drawImage(a[h],0|i[h],0|s[h],_[h],n[h]),e.translate(0,t),e.scale(1,-1),e.translate(0,-t)}e.setImageSmoothingEnabled(h)}}a.ImageView=o,o.__name__="ImageView";class l extends s.ImageBase{constructor(e){super(e)}static init_Image(){this.prototype.default_view=o,this.define({color_mapper:[n.Instance,()=>new _.LinearColorMapper({palette:["#000000","#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0","#ffffff"]})]})}}a.Image=l,l.__name__="Image",l.init_Image()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),h=e(81),a=s.__importStar(e(19)),_=s.__importStar(e(87)),r=e(82);class n extends h.XYGlyphView{_render(e,t,i){}_index_data(){const e=[];for(let t=0,i=this._x.length;t<i;t++){const[i,s,h,a]=this._lrtb(t);!isNaN(i+s+h+a)&&isFinite(i+s+h+a)&&e.push({x0:i,y0:a,x1:s,y1:h,i:t})}return new r.SpatialIndex(e)}_lrtb(e){const t=this.renderer.xscale.source_range,i=this._x[e],s=t.is_reversed?i-this._dw[e]:i+this._dw[e],h=this.renderer.yscale.source_range,a=this._y[e],_=h.is_reversed?a-this._dh[e]:a+this._dh[e],[r,n]=i<s?[i,s]:[s,i],[d,g]=a<_?[a,_]:[_,a];return[r,n,g,d]}_set_width_heigh_data(){null!=this.image_data&&this.image_data.length==this._image.length||(this.image_data=new Array(this._image.length)),null!=this._width&&this._width.length==this._image.length||(this._width=new Array(this._image.length)),null!=this._height&&this._height.length==this._image.length||(this._height=new Array(this._image.length))}_get_or_create_canvas(e){const t=this.image_data[e];if(null!=t&&t.width==this._width[e]&&t.height==this._height[e])return t;{const t=document.createElement("canvas");return t.width=this._width[e],t.height=this._height[e],t}}_set_image_data_from_buffer(e,t){const i=this._get_or_create_canvas(e),s=i.getContext("2d"),h=s.getImageData(0,0,this._width[e],this._height[e]);h.data.set(t),s.putImageData(h,0,0),this.image_data[e]=i}_map_data(){switch(this.model.properties.dw.units){case"data":this.sw=this.sdist(this.renderer.xscale,this._x,this._dw,"edge",this.model.dilate);break;case"screen":this.sw=this._dw}switch(this.model.properties.dh.units){case"data":this.sh=this.sdist(this.renderer.yscale,this._y,this._dh,"edge",this.model.dilate);break;case"screen":this.sh=this._dh}}_image_index(e,t,i){const[s,h,a,_]=this._lrtb(e),r=this._width[e],n=this._height[e],d=(h-s)/r,g=(a-_)/n;let l=Math.floor((t-s)/d),c=Math.floor((i-_)/g);return this.renderer.xscale.source_range.is_reversed&&(l=r-l-1),this.renderer.yscale.source_range.is_reversed&&(c=n-c-1),{index:e,dim1:l,dim2:c,flat_index:c*r+l}}_hit_point(e){const{sx:t,sy:i}=e,s=this.renderer.xscale.invert(t),h=this.renderer.yscale.invert(i),a=this.index.indices({x0:s,x1:s,y0:h,y1:h}),r=_.create_empty_hit_test_result();r.image_indices=[];for(const e of a)t!=1/0&&i!=1/0&&r.image_indices.push(this._image_index(e,s,h));return r}}i.ImageBaseView=n,n.__name__="ImageBaseView";class d extends h.XYGlyph{constructor(e){super(e)}static init_ImageBase(){this.prototype.default_view=n,this.define({image:[a.NumberSpec],dw:[a.DistanceSpec],dh:[a.DistanceSpec],dilate:[a.Boolean,!1],global_alpha:[a.Number,1]})}}i.ImageBase=d,d.__name__="ImageBase",d.init_ImageBase()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(220),s=e(9);class n extends i.ImageBaseView{initialize(){super.initialize(),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_set_data(e){this._set_width_heigh_data();for(let t=0,a=this._image.length;t<a;t++){if(null!=e&&e.indexOf(t)<0)continue;let a;if(null!=this._image_shape&&this._image_shape[t].length>0){a=this._image[t].buffer;const e=this._image_shape[t];this._height[t]=e[0],this._width[t]=e[1]}else{const e=this._image[t],i=s.concat(e);a=new ArrayBuffer(4*i.length);const n=new Uint32Array(a);for(let e=0,t=i.length;e<t;e++)n[e]=i[e];this._height[t]=e.length,this._width[t]=e[0].length}const i=new Uint8Array(a);this._set_image_data_from_buffer(t,i)}}_render(e,t,{image_data:a,sx:i,sy:s,sw:n,sh:h}){const _=e.getImageSmoothingEnabled();e.setImageSmoothingEnabled(!1),e.globalAlpha=this.model.global_alpha;for(const _ of t){if(isNaN(i[_]+s[_]+n[_]+h[_]))continue;const t=s[_];e.translate(0,t),e.scale(1,-1),e.translate(0,-t),e.drawImage(a[_],0|i[_],0|s[_],n[_],h[_]),e.translate(0,t),e.scale(1,-1),e.translate(0,-t)}e.setImageSmoothingEnabled(_)}}a.ImageRGBAView=n,n.__name__="ImageRGBAView";class h extends i.ImageBase{constructor(e){super(e)}static init_ImageRGBA(){this.prototype.default_view=n}}a.ImageRGBA=h,h.__name__="ImageRGBA",h.init_ImageRGBA()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(81),a=i.__importStar(e(19)),n=e(12),h=e(82),l=e(223);class _ extends r.XYGlyphView{constructor(){super(…arguments),this._images_rendered=!1}initialize(){super.initialize(),this.connect(this.model.properties.global_alpha.change,()=>this.renderer.request_render())}_index_data(){return new h.SpatialIndex([])}_set_data(){null!=this.image&&this.image.length==this._url.length||(this.image=n.map(this._url,()=>null));const{retry_attempts:e,retry_timeout:t}=this.model;for(let s=0,i=this._url.length;s<i;s++){const i=this._url[s];null!=i&&""!=i&&new l.ImageLoader(i,{loaded:e=>{this.image[s]=e,this.renderer.request_render()},attempts:e+1,timeout:t})}const s="data"==this.model.properties.w.units,i="data"==this.model.properties.h.units,r=this._x.length,a=new Array(s?2*r:r),h=new Array(i?2*r:r);for(let e=0;e<r;e++)a[e]=this._x[e],h[e]=this._y[e];if(s)for(let e=0;e<r;e++)a[r+e]=this._x[e]+this._w[e];if(i)for(let e=0;e<r;e++)h[r+e]=this._y[e]+this._h[e];const _=n.min(a),o=n.max(a),d=n.min(h),c=n.max(h);this._bounds_rect={x0:_,x1:o,y0:d,y1:c}}has_finished(){return super.has_finished()&&1==this._images_rendered}_map_data(){const e=null!=this.model.w?this._w:n.map(this._x,()=>NaN),t=null!=this.model.h?this._h:n.map(this._x,()=>NaN);switch(this.model.properties.w.units){case"data":this.sw=this.sdist(this.renderer.xscale,this._x,e,"edge",this.model.dilate);break;case"screen":this.sw=e}switch(this.model.properties.h.units){case"data":this.sh=this.sdist(this.renderer.yscale,this._y,t,"edge",this.model.dilate);break;case"screen":this.sh=t}}_render(e,t,{image:s,sx:i,sy:r,sw:a,sh:n,_angle:h}){const{frame:l}=this.renderer.plot_view;e.rect(l._left.value+1,l._top.value+1,l._width.value-2,l._height.value-2),e.clip();let _=!0;for(const l of t){if(isNaN(i[l]+r[l]+h[l]))continue;const t=s[l];null!=t?this._render_image(e,l,t,i,r,a,n,h):_=!1}_&&!this._images_rendered&&(this._images_rendered=!0,this.notify_finished())}_final_sx_sy(e,t,s,i,r){switch(e){case"top_left":return[t,s];case"top_center":return[t-i/2,s];case"top_right":return[t-i,s];case"center_right":return[t-i,s-r/2];case"bottom_right":return[t-i,s-r];case"bottom_center":return[t-i/2,s-r];case"bottom_left":return[t,s-r];case"center_left":return[t,s-r/2];case"center":return[t-i/2,s-r/2]}}_render_image(e,t,s,i,r,a,n,h){isNaN(a[t])&&(a[t]=s.width),isNaN(n[t])&&(n[t]=s.height);const{anchor:l}=this.model,[_,o]=this._final_sx_sy(l,i[t],r[t],a[t],n[t]);e.save(),e.globalAlpha=this.model.global_alpha;const d=a[t]/2,c=n[t]/2;h[t]?(e.translate(_,o),e.translate(d,c),e.rotate(h[t]),e.translate(-d,-c),e.drawImage(s,0,0,a[t],n[t]),e.translate(d,c),e.rotate(-h[t]),e.translate(-d,-c),e.translate(-_,-o)):e.drawImage(s,_,o,a[t],n[t]),e.restore()}bounds(){return this._bounds_rect}}s.ImageURLView=_,_.__name__="ImageURLView";class o extends r.XYGlyph{constructor(e){super(e)}static init_ImageURL(){this.prototype.default_view=_,this.define({url:[a.StringSpec],anchor:[a.Anchor,"top_left"],global_alpha:[a.Number,1],angle:[a.AngleSpec,0],w:[a.DistanceSpec],h:[a.DistanceSpec],dilate:[a.Boolean,!1],retry_attempts:[a.Number,0],retry_timeout:[a.Number,0]})}}s.ImageURL=o,o.__name__="ImageURL",o.init_ImageURL()},n function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const s=i(70);class a{constructor(i,e={}){this._image=new Image,this._finished=!1;const{attempts:t=1,timeout:a=1}=e;this.promise=new Promise((o,n)=>{this._image.crossOrigin="anonymous";let r=0;this._image.onerror=()=>{if(++r==t){const a=`unable to load ${i} image after ${t} attempts`;if(s.logger.warn(a),null==this._image.crossOrigin)return void(null!=e.failed&&e.failed());s.logger.warn(attempting to load ${i} without a cross origin policy),this._image.crossOrigin=null,r=0}setTimeout(()=>this._image.src=i,a)},this._image.onload=()=>{this._finished=!0,null!=e.loaded&&e.loaded(this._image),o(this._image)},this._image.src=i})}get finished(){return this._finished}get image(){return this._image}}t.ImageLoader=a,a.__name__="ImageLoader"},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(82),r=i.__importStar(t(87)),l=t(24),o=t(9),_=t(8),h=t(86),c=t(90);class a extends h.GlyphView{_index_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++){if(null==this._xs[e]||0===this._xs[e].length)continue;const s=this._xs[e],i=[];for(let t=0,e=s.length;t<e;t++){const e=s[t];_.isStrictNaN(e)||i.push(e)}const n=this._ys[e],r=[];for(let t=0,e=n.length;t<e;t++){const e=n[t];_.isStrictNaN(e)||r.push(e)}const[l,h]=[o.min(i),o.max(i)],[c,a]=[o.min(r),o.max(r)];t.push({x0:l,y0:c,x1:h,y1:a,i:e})}return new n.SpatialIndex(t)}_render(t,e,{sxs:s,sys:i}){for(const n of e){const[e,r]=[s[n],i[n]];this.visuals.line.set_vectorize(t,n);for(let s=0,i=e.length;s<i;s++)0!=s?isNaN(e[s])||isNaN(r[s])?(t.stroke(),t.beginPath()):t.lineTo(e[s],r[s]):(t.beginPath(),t.moveTo(e[s],r[s]));t.stroke()}}_hit_point(t){const e=r.create_empty_hit_test_result(),s={x:t.sx,y:t.sy};let i=9999;const n={};for(let t=0,e=this.sxs.length;t<e;t++){const e=Math.max(2,this.visuals.line.cache_select("line_width",t)/2);let l=null;for(let n=0,o=this.sxs[t].length-1;n<o;n++){const o={x:this.sxs[t][n],y:this.sys[t][n]},_={x:this.sxs[t][n+1],y:this.sys[t][n+1]},h=r.dist_to_segment(s,o,_);h<e&&h<i&&(i=h,l=[n])}l&&(n[t]=l)}return e.indices=l.keys(n).map(t=>parseInt(t,10)),e.multiline_indices=n,e}_hit_span(t){const{sx:e,sy:s}=t,i=r.create_empty_hit_test_result();let n,o;"v"===t.direction?(n=this.renderer.yscale.invert(s),o=this._ys):(n=this.renderer.xscale.invert(e),o=this._xs);const _={};for(let t=0,e=o.length;t<e;t++){const e=[];for(let s=0,i=o[t].length-1;s<i;s++)o[t][s]<=n&&n<=o[t][s+1]&&e.push(s);e.length>0&&(_[t]=e)}return i.indices=l.keys(_).map(t=>parseInt(t,10)),i.multiline_indices=_,i}get_interpolation_hit(t,e,s){const[i,n,r,l]=[this._xs[t][e],this._ys[t][e],this._xs[t][e+1],this._ys[t][e+1]];return c.line_interpolation(this.renderer,s,i,n,r,l)}draw_legend_for_index(t,e,s){c.generic_line_legend(this.visuals,t,e,s)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}s.MultiLineView=a,a.__name__="MultiLineView";class x extends h.Glyph{constructor(t){super(t)}static init_MultiLine(){this.prototype.default_view=a,this.coords([["xs","ys"]]),this.mixins(["line"])}}s.MultiLine=x,x.__name__="MultiLine",x.init_MultiLine()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1),n=t(82),r=t(86),l=t(90),o=t(9),h=t(12),_=i.__importStar(t(87)),a=t(8),c=t(11);class d extends r.GlyphView{_index_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++)for(let s=0,i=this._xs[e].length;s<i;s++){const i=this._xs[e][s][0],n=this._ys[e][s][0];0!=i.length&&t.push({x0:o.min(i),y0:o.min(n),x1:o.max(i),y1:o.max(n),i:e})}return this.hole_index=this._index_hole_data(),new n.SpatialIndex(t)}_index_hole_data(){const t=[];for(let e=0,s=this._xs.length;e<s;e++)for(let s=0,i=this._xs[e].length;s<i;s++)if(this._xs[e][s].length>1)for(let i=1,n=this._xs[e][s].length;i<n;i++){const n=this._xs[e][s][i],r=this._ys[e][s][i];0!=n.length&&t.push({x0:o.min(n),y0:o.min(r),x1:o.max(n),y1:o.max(r),i:e})}return new n.SpatialIndex(t)}_mask_data(){const t=this.renderer.plot_view.frame.x_ranges.default,[e,s]=[t.min,t.max],i=this.renderer.plot_view.frame.y_ranges.default,[n,r]=[i.min,i.max];return this.index.indices({x0:e,x1:s,y0:n,y1:r}).sort((t,e)=>t-e).filter((t,e,s)=>0===e||t!==s[e-1])}_inner_loop(t,e,s){t.beginPath();for(let i=0,n=e.length;i<n;i++)for(let n=0,r=e[i].length;n<r;n++){const r=e[i][n],l=s[i][n];for(let e=0,s=r.length;e<s;e++)0!=e?t.lineTo(r[e],l[e]):t.moveTo(r[e],l[e]);t.closePath()}}_render(t,e,{sxs:s,sys:i}){if(this.visuals.fill.doit||this.visuals.line.doit)for(const n of e){const[e,r]=[s[n],i[n]];this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(t,n),this._inner_loop(t,e,r),t.fill("evenodd")),this.visuals.hatch.doit2(t,n,()=>{this._inner_loop(t,e,r),t.fill("evenodd")},()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(t,n),this._inner_loop(t,e,r),t.stroke())}}_hit_rect(t){const{sx0:e,sx1:s,sy0:i,sy1:n}=t,r=[e,s,s,e],l=[i,i,n,n],[o,h]=this.renderer.xscale.r_invert(e,s),[a,c]=this.renderer.yscale.r_invert(i,n),d=this.index.indices({x0:o,x1:h,y0:a,y1:c}),x=[];for(let t=0,e=d.length;t<e;t++){const e=d[t],s=this.sxs[e],i=this.sys[e];let n=!0;for(let t=0,e=s.length;t<e;t++){for(let e=0,o=s[t][0].length;e<o;e++){const o=s[t][0][e],h=i[t][0][e];if(!_.point_in_poly(o,h,r,l)){n=!1;break}}if(!n)break}n&&x.push(e)}const y=_.create_empty_hit_test_result();return y.indices=x,y}_hit_point(t){const{sx:e,sy:s}=t,i=this.renderer.xscale.invert(e),n=this.renderer.yscale.invert(s),r=this.index.indices({x0:i,y0:n,x1:i,y1:n}),l=this.hole_index.indices({x0:i,y0:n,x1:i,y1:n}),o=[];for(let t=0,i=r.length;t<i;t++){const i=r[t],n=this.sxs[i],h=this.sys[i];for(let t=0,r=n.length;t<r;t++){const r=n[t].length;if(_.point_in_poly(e,s,n[t][0],h[t][0]))if(1==r)o.push(i);else if(-1==l.indexOf(i))o.push(i);else if(r>1){let l=!1;for(let i=1;i<r;i++){const r=n[t][i],o=h[t][i];if(_.point_in_poly(e,s,r,o)){l=!0;break}}l||o.push(i)}}}const h=_.create_empty_hit_test_result();return h.indices=o,h}_get_snap_coord(t){return h.sum(t)/t.length}scenterx(t,e,s){if(1==this.sxs[t].length)return this._get_snap_coord(this.sxs[t][0][0]);{const i=this.sxs[t],n=this.sys[t];for(let t=0,r=i.length;t<r;t++)if(_.point_in_poly(e,s,i[t][0],n[t][0]))return this._get_snap_coord(i[t][0])}c.unreachable()}scentery(t,e,s){if(1==this.sys[t].length)return this._get_snap_coord(this.sys[t][0][0]);{const i=this.sxs[t],n=this.sys[t];for(let t=0,r=i.length;t<r;t++)if(_.point_in_poly(e,s,i[t][0],n[t][0]))return this._get_snap_coord(n[t][0])}c.unreachable()}map_data(){const t=this;for(let[e,s]of this.model._coords){const i=`s${e}`,n=`s${s}`;if(e=`_${e}`,s=`_${s}`,null!=t[e]&&(a.isArray(t[e][0])||a.isTypedArray(t[e][0]))){const r=t[e].length;t[i]=new Array(r),t[n]=new Array(r);for(let l=0;l<r;l++){const r=t[e][l].length;t[i][l]=new Array(r),t[n][l]=new Array(r);for(let o=0;o<r;o++){const r=t[e][l][o].length;t[i][l][o]=new Array(r),t[n][l][o]=new Array(r);for(let h=0;h<r;h++){const[r,_]=this.map_to_screen(t[e][l][o][h],t[s][l][o][h]);t[i][l][o][h]=r,t[n][l][o][h]=_}}}}}}draw_legend_for_index(t,e,s){l.generic_area_legend(this.visuals,t,e,s)}}s.MultiPolygonsView=d,d.__name__="MultiPolygonsView";class x extends r.Glyph{constructor(t){super(t)}static init_MultiPolygons(){this.prototype.default_view=d,this.coords([["xs","ys"]]),this.mixins(["line","fill","hatch"])}}s.MultiPolygons=x,x.__name__="MultiPolygons",x.init_MultiPolygons()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const l=e(215);class s extends l.EllipseOvalView{_map_data(){super._map_data();const{sw:e}=this,t=e.length;for(let a=0;a<t;a++)e[a]*=.75}}a.OvalView=s,s.__name__="OvalView";class _ extends l.EllipseOval{constructor(e){super(e)}static init_Oval(){this.prototype.default_view=s}}a.Oval=_,_.__name__="Oval",_.init_Oval()},n function _(s,t,e){Object.defineProperty(e,"__esModule",{value:!0});const i=s(1),n=s(82),r=s(86),o=s(90),_=s(9),l=s(12),h=s(8),c=i.__importStar(s(87)),a=s(11);class d extends r.GlyphView{_build_discontinuous_object(s){const t=[];for(let e=0,i=s.length;e<i;e++){t[e]=[];let i=_.copy(s[e]);for(;i.length>0;){const s=_.find_last_index(i,s=>h.isStrictNaN(s));let n;s>=0?n=i.splice(s):(n=i,i=[]);const r=n.filter(s=>!h.isStrictNaN(s));t[e].push(r)}}return t}_index_data(){const s=this._build_discontinuous_object(this._xs),t=this._build_discontinuous_object(this._ys),e=[];for(let i=0,n=this._xs.length;i<n;i++)for(let n=0,r=s[i].length;n<r;n++){const r=s[i][n],o=t[i][n];0!=r.length&&e.push({x0:_.min(r),y0:_.min(o),x1:_.max(r),y1:_.max(o),i})}return new n.SpatialIndex(e)}_mask_data(){const s=this.renderer.plot_view.frame.x_ranges.default,[t,e]=[s.min,s.max],i=this.renderer.plot_view.frame.y_ranges.default,[n,r]=[i.min,i.max];return this.index.indices({x0:t,x1:e,y0:n,y1:r}).sort((s,t)=>s-t)}_inner_loop(s,t,e,i){for(let n=0,r=t.length;n<r;n++)0!=n?isNaN(t[n]+e[n])?(s.closePath(),i.apply(s),s.beginPath()):s.lineTo(t[n],e[n]):(s.beginPath(),s.moveTo(t[n],e[n]));s.closePath(),i.call(s)}_render(s,t,{sxs:e,sys:i}){this.sxss=this._build_discontinuous_object(e),this.syss=this._build_discontinuous_object(i);for(const n of t){const[t,r]=[e[n],i[n]];this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(s,n),this._inner_loop(s,t,r,s.fill)),this.visuals.hatch.doit2(s,n,()=>this._inner_loop(s,t,r,s.fill),()=>this.renderer.request_render()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(s,n),this._inner_loop(s,t,r,s.stroke))}}_hit_rect(s){const{sx0:t,sx1:e,sy0:i,sy1:n}=s,r=[t,e,e,t],o=[i,i,n,n],[_,l]=this.renderer.xscale.r_invert(t,e),[h,a]=this.renderer.yscale.r_invert(i,n),d=this.index.indices({x0:_,x1:l,y0:h,y1:a}),u=[];for(let s=0,t=d.length;s<t;s++){const t=d[s],e=this.sxs[t],i=this.sys[t];let n=!0;for(let s=0,t=e.length;s<t;s++){const t=e[s],_=i[s];if(!c.point_in_poly(t,_,r,o)){n=!1;break}}n&&u.push(t)}const x=c.create_empty_hit_test_result();return x.indices=u,x}_hit_point(s){const{sx:t,sy:e}=s,i=this.renderer.xscale.invert(t),n=this.renderer.yscale.invert(e),r=this.index.indices({x0:i,y0:n,x1:i,y1:n}),o=[];for(let s=0,i=r.length;s<i;s++){const i=r[s],n=this.sxss[i],_=this.syss[i];for(let s=0,r=n.length;s<r;s++)c.point_in_poly(t,e,n[s],_[s])&&o.push(i)}const _=c.create_empty_hit_test_result();return _.indices=o,_}_get_snap_coord(s){return l.sum(s)/s.length}scenterx(s,t,e){if(1==this.sxss[s].length)return this._get_snap_coord(this.sxs[s]);{const i=this.sxss[s],n=this.syss[s];for(let s=0,r=i.length;s<r;s++)if(c.point_in_poly(t,e,i[s],n[s]))return this._get_snap_coord(i[s])}a.unreachable()}scentery(s,t,e){if(1==this.syss[s].length)return this._get_snap_coord(this.sys[s]);{const i=this.sxss[s],n=this.syss[s];for(let s=0,r=i.length;s<r;s++)if(c.point_in_poly(t,e,i[s],n[s]))return this._get_snap_coord(n[s])}a.unreachable()}draw_legend_for_index(s,t,e){o.generic_area_legend(this.visuals,s,t,e)}}e.PatchesView=d,d.__name__="PatchesView";class u extends r.Glyph{constructor(s){super(s)}static init_Patches(){this.prototype.default_view=d,this.coords([["xs","ys"]]),this.mixins(["line","fill","hatch"])}}e.Patches=u,u.__name__="Patches",u.init_Patches()},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(217);class _ extends i.BoxView{scenterx(t){return(this.sleft[t]+this.sright[t])/2}scentery(t){return(this.stop[t]+this.sbottom[t])/2}_index_data(){return this._index_box(this._right.length)}_lrtb(t){return[this._left[t],this._right[t],this._top[t],this._bottom[t]]}}s.QuadView=_,_.__name__="QuadView";class o extends i.Box{constructor(t){super(t)}static init_Quad(){this.prototype.default_view=_,this.coords([["right","bottom"],["left","top"]])}}s.Quad=o,o.__name__="Quad",o.init_Quad()},n function _(t,i,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(82),n=t(86),r=t(90);function _(t,i,e){if(i==(t+e)/2)return[t,e];{const s=(t-i)/(t-2*i+e),n=t*(1-s)**2+2*i*(1-s)*s+e*s**2;return[Math.min(t,e,n),Math.max(t,e,n)]}}class a extends n.GlyphView{_index_data(){const t=[];for(let i=0,e=this._x0.length;i<e;i++){if(isNaN(this._x0[i]+this._x1[i]+this._y0[i]+this._y1[i]+this._cx[i]+this._cy[i]))continue;const[e,s]=_(this._x0[i],this._cx[i],this._x1[i]),[n,r]=_(this._y0[i],this._cy[i],this._y1[i]);t.push({x0:e,y0:n,x1:s,y1:r,i})}return new s.SpatialIndex(t)}_render(t,i,{sx0:e,sy0:s,sx1:n,sy1:r,scx:_,scy:a}){if(this.visuals.line.doit)for(const c of i)isNaN(e[c]+s[c]+n[c]+r[c]+_[c]+a[c])||(t.beginPath(),t.moveTo(e[c],s[c]),t.quadraticCurveTo(_[c],a[c],n[c],r[c]),this.visuals.line.set_vectorize(t,c),t.stroke())}draw_legend_for_index(t,i,e){r.generic_line_legend(this.visuals,t,i,e)}scenterx(){throw new Error("not implemented")}scentery(){throw new Error("not implemented")}}e.QuadraticView=a,a.__name__="QuadraticView";class c extends n.Glyph{constructor(t){super(t)}static init_Quadratic(){this.prototype.default_view=a,this.coords([["x0","y0"],["x1","y1"],["cx","cy"]]),this.mixins(["line"])}}e.Quadratic=c,c.__name__="Quadratic",c.init_Quadratic()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(81),a=e(90),l=s.__importStar(e(19));class r extends n.XYGlyphView{_map_data(){"data"==this.model.properties.length.units?this.slength=this.sdist(this.renderer.xscale,this._x,this._length):this.slength=this._length}_render(e,t,{sx:i,sy:s,slength:n,_angle:a}){if(this.visuals.line.doit){const l=2*(this.renderer.plot_view.frame._width.value+this.renderer.plot_view.frame._height.value);for(let e=0,t=n.length;e<t;e++)0==n[e]&&(n[e]=l);for(const l of t)isNaN(i[l]+s[l]+a[l]+n[l])||(e.translate(i[l],s[l]),e.rotate(a[l]),e.beginPath(),e.moveTo(0,0),e.lineTo(n[l],0),this.visuals.line.set_vectorize(e,l),e.stroke(),e.rotate(-a[l]),e.translate(-i[l],-s[l]))}}draw_legend_for_index(e,t,i){a.generic_line_legend(this.visuals,e,t,i)}}i.RayView=r,r.__name__="RayView";class _ extends n.XYGlyph{constructor(e){super(e)}static init_Ray(){this.prototype.default_view=r,this.mixins(["line"]),this.define({length:[l.DistanceSpec],angle:[l.AngleSpec]})}}i.Ray=_,_.__name__="Ray",_.init_Ray()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(213),a=t(90),r=i.__importStar(t(87)),n=i.__importStar(t(19)),_=t(12);class o extends h.CenterRotatableView{_set_data(){this.max_w2=0,"data"==this.model.properties.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,"data"==this.model.properties.height.units&&(this.max_h2=this.max_height/2)}_map_data(){if("data"==this.model.properties.width.units)[this.sw,this.sx0]=this._map_dist_corner_for_data_side_length(this._x,this._width,this.renderer.xscale);else{this.sw=this._width;const t=this.sx.length;this.sx0=new Float64Array(t);for(let s=0;s<t;s++)this.sx0[s]=this.sx[s]-this.sw[s]/2}if("data"==this.model.properties.height.units)[this.sh,this.sy1]=this._map_dist_corner_for_data_side_length(this._y,this._height,this.renderer.yscale);else{this.sh=this._height;const t=this.sy.length;this.sy1=new Float64Array(t);for(let s=0;s<t;s++)this.sy1[s]=this.sy[s]-this.sh[s]/2}const t=this.sw.length;this.ssemi_diag=new Float64Array(t);for(let s=0;s<t;s++)this.ssemi_diag[s]=Math.sqrt(this.sw[s]/2*this.sw[s]/2+this.sh[s]/2*this.sh[s]/2)}_render(t,s,{sx:e,sy:i,sx0:h,sy1:a,sw:r,sh:n,_angle:_}){if(this.visuals.fill.doit)for(const o of s)isNaN(e[o]+i[o]+h[o]+a[o]+r[o]+n[o]+_[o])||(this.visuals.fill.set_vectorize(t,o),_[o]?(t.translate(e[o],i[o]),t.rotate(_[o]),t.fillRect(-r[o]/2,-n[o]/2,r[o],n[o]),t.rotate(-_[o]),t.translate(-e[o],-i[o])):t.fillRect(h[o],a[o],r[o],n[o]));if(this.visuals.line.doit){t.beginPath();for(const o of s)isNaN(e[o]+i[o]+h[o]+a[o]+r[o]+n[o]+_[o])||0!=r[o]&&0!=n[o]&&(_[o]?(t.translate(e[o],i[o]),t.rotate(_[o]),t.rect(-r[o]/2,-n[o]/2,r[o],n[o]),t.rotate(-_[o]),t.translate(-e[o],-i[o])):t.rect(h[o],a[o],r[o],n[o]),this.visuals.line.set_vectorize(t,o),t.stroke(),t.beginPath());t.stroke()}}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){let{sx:s,sy:e}=t;const i=this.renderer.xscale.invert(s),h=this.renderer.yscale.invert(e),a=[];for(let t=0,s=this.sx0.length;t<s;t++)a.push(this.sx0[t]+this.sw[t]/2);const n=[];for(let t=0,s=this.sy1.length;t<s;t++)n.push(this.sy1[t]+this.sh[t]/2);const o=_.max(this._ddist(0,a,this.ssemi_diag)),l=_.max(this._ddist(1,n,this.ssemi_diag)),d=i-o,c=i+o,x=h-l,y=h+l,m=[];for(const t of this.index.indices({x0:d,x1:c,y0:x,y1:y})){let i,h;if(this._angle[t]){const a=Math.sin(-this._angle[t]),r=Math.cos(-this._angle[t]),n=r*(s-this.sx[t])-a*(e-this.sy[t])+this.sx[t],_=a*(s-this.sx[t])+r*(e-this.sy[t])+this.sy[t];s=n,e=_,h=Math.abs(this.sx[t]-s)<=this.sw[t]/2,i=Math.abs(this.sy[t]-e)<=this.sh[t]/2}else h=s-this.sx0[t]<=this.sw[t]&&s-this.sx0[t]>=0,i=e-this.sy1[t]<=this.sh[t]&&e-this.sy1[t]>=0;i&&h&&m.push(t)}const f=r.create_empty_hit_test_result();return f.indices=m,f}_map_dist_corner_for_data_side_length(t,s,e){const i=t.length,h=new Float64Array(i),a=new Float64Array(i);for(let e=0;e<i;e++)h[e]=Number(t[e])-s[e]/2,a[e]=Number(t[e])+s[e]/2;const r=e.v_compute(h),n=e.v_compute(a),_=this.sdist(e,h,s,"edge",this.model.dilate);let o=r;for(let t=0,s=r.length;t<s;t++)if(r[t]!=n[t]){o=r[t]<n[t]?r:n;break}return[_,o]}_ddist(t,s,e){const i=0==t?this.renderer.xscale:this.renderer.yscale,h=s,a=h.length,r=new Float64Array(a);for(let t=0;t<a;t++)r[t]=h[t]+e[t];const n=i.v_invert(h),_=i.v_invert(r),o=n.length,l=new Float64Array(o);for(let t=0;t<o;t++)l[t]=Math.abs(_[t]-n[t]);return l}draw_legend_for_index(t,s,e){a.generic_area_legend(this.visuals,t,s,e)}_bounds({x0:t,x1:s,y0:e,y1:i}){return{x0:t-this.max_w2,x1:s+this.max_w2,y0:e-this.max_h2,y1:i+this.max_h2}}}e.RectView=o,o.__name__="RectView";class l extends h.CenterRotatable{constructor(t){super(t)}static init_Rect(){this.prototype.default_view=o,this.define({dilate:[n.Boolean,!1]})}}e.Rect=l,l.__name__="Rect",l.init_Rect()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1).__importStar(e(87)),n=e(82),r=e(86),h=e(90);class _ extends r.GlyphView{_index_data(){const e=[];for(let t=0,s=this._x0.length;t<s;t++){const s=this._x0[t],i=this._x1[t],n=this._y0[t],r=this._y1[t];isNaN(s+i+n+r)||e.push({x0:Math.min(s,i),y0:Math.min(n,r),x1:Math.max(s,i),y1:Math.max(n,r),i:t})}return new n.SpatialIndex(e)}_render(e,t,{sx0:s,sy0:i,sx1:n,sy1:r}){if(this.visuals.line.doit)for(const h of t)isNaN(s[h]+i[h]+n[h]+r[h])||(e.beginPath(),e.moveTo(s[h],i[h]),e.lineTo(n[h],r[h]),this.visuals.line.set_vectorize(e,h),e.stroke())}_hit_point(e){const{sx:t,sy:s}=e,n={x:t,y:s},r=[],[h,_]=this.renderer.xscale.r_invert(t-2,t+2),[a,c]=this.renderer.yscale.r_invert(s-2,s+2),o=this.index.indices({x0:h,y0:a,x1:_,y1:c});for(const e of o){const t=Math.max(2,this.visuals.line.cache_select("line_width",e)/2)**2,s={x:this.sx0[e],y:this.sy0[e]},h={x:this.sx1[e],y:this.sy1[e]};i.dist_to_segment_squared(n,s,h)<t&&r.push(e)}const x=i.create_empty_hit_test_result();return x.indices=r,x}_hit_span(e){const[t,s]=this.renderer.plot_view.frame.bbox.ranges,{sx:n,sy:r}=e;let h,_,a;"v"==e.direction?(a=this.renderer.yscale.invert(r),[h,_]=[this._y0,this._y1]):(a=this.renderer.xscale.invert(n),[h,_]=[this._x0,this._x1]);const c=[],[o,x]=this.renderer.xscale.r_invert(t.start,t.end),[l,d]=this.renderer.yscale.r_invert(s.start,s.end),y=this.index.indices({x0:o,y0:l,x1:x,y1:d});for(const t of y){(h[t]<=a&&a<=_[t]||_[t]<=a&&a<=h[t])&&c.push(t);const s=1.5+this.visuals.line.cache_select("line_width",t)/2;h[t]==_[t]&&("h"==e.direction?Math.abs(this.sx0[t]-n)<=s&&c.push(t):Math.abs(this.sy0[t]-r)<=s&&c.push(t))}const u=i.create_empty_hit_test_result();return u.indices=c,u}scenterx(e){return(this.sx0[e]+this.sx1[e])/2}scentery(e){return(this.sy0[e]+this.sy1[e])/2}draw_legend_for_index(e,t,s){h.generic_line_legend(this.visuals,e,t,s)}}s.SegmentView=_,_.__name__="SegmentView";class a extends r.Glyph{constructor(e){super(e)}static init_Segment(){this.prototype.default_view=_,this.coords([["x0","y0"],["x1","y1"]]),this.mixins(["line"])}}s.Segment=a,a.__name__="Segment",a.init_Segment()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(81),o=e(90),r=n.__importStar(e(19));class l extends s.XYGlyphView{_render(e,t,{sx:i,sy:n}){let s=!1,o=null;this.visuals.line.set_value(e);const r=t.length;if(!(r<2)){e.beginPath(),e.moveTo(i[0],n[0]);for(const r of t){let t,l,a,_;switch(this.model.mode){case"before":[t,a]=[i[r-1],n[r]],[l,_]=[i[r],n[r]];break;case"after":[t,a]=[i[r],n[r-1]],[l,_]=[i[r],n[r]];break;case"center":{const e=(i[r-1]+i[r])/2;[t,a]=[e,n[r-1]],[l,_]=[e,n[r]];break}default:throw new Error("unexpected")}if(s){if(!isFinite(i[r]+n[r])){e.stroke(),e.beginPath(),s=!1,o=r;continue}null!=o&&r-o>1&&(e.stroke(),s=!1)}s?(e.lineTo(t,a),e.lineTo(l,_)):(e.beginPath(),e.moveTo(i[r],n[r]),s=!0),o=r}e.lineTo(i[r-1],n[r-1]),e.stroke()}}draw_legend_for_index(e,t,i){o.generic_line_legend(this.visuals,e,t,i)}}i.StepView=l,l.__name__="StepView";class a extends s.XYGlyph{constructor(e){super(e)}static init_Step(){this.prototype.default_view=l,this.mixins(["line"]),this.define({mode:[r.StepMode,"before"]})}}i.Step=a,a.__name__="Step",a.init_Step()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),_=t(81),n=i.__importStar(t(87)),o=i.__importStar(t(19)),h=t(131);class r extends _.XYGlyphView{_rotate_point(t,s,e,i,_){return[(t-e)*Math.cos(_)-(s-i)*Math.sin(_)+e,(t-e)*Math.sin(_)+(s-i)*Math.cos(_)+i]}_text_bounds(t,s,e,i){return[[t,t+e,t+e,t,t],[s,s,s-i,s-i,s]]}_render(t,s,{sx:e,sy:i,_x_offset:_,_y_offset:n,_angle:o,_text:r}){this._sys=[],this._sxs=[];for(const l of s)if(!isNaN(e[l]+i[l]+_[l]+n[l]+o[l])&&null!=r[l]&&(this._sxs[l]=[],this._sys[l]=[],this.visuals.text.doit)){const s=`${r[l]}`;t.save(),t.translate(e[l]+_[l],i[l]+n[l]),t.rotate(o[l]),this.visuals.text.set_vectorize(t,l);const a=this.visuals.text.cache_select("font",l),{height:x}=h.measure_font(a),c=this.visuals.text.text_line_height.value()*x;if(-1==s.indexOf("\n")){t.fillText(s,0,0);const o=e[l]+_[l],h=i[l]+n[l],r=t.measureText(s).width,[a,x]=this._text_bounds(o,h,r,c);this._sxs[l].push(a),this._sys[l].push(x)}else{const o=s.split("\n"),h=c*o.length,r=this.visuals.text.cache_select("text_baseline",l);let a;switch(r){case"top":a=0;break;case"middle":a=-h/2+c/2;break;case"bottom":a=-h+c;break;default:a=0,console.warn(‘${r}’ baseline not supported with multi line text)}for(const s of o){t.fillText(s,0,a);const o=e[l]+_[l],h=a+i[l]+n[l],r=t.measureText(s).width,[x,u]=this._text_bounds(o,h,r,c);this._sxs[l].push(x),this._sys[l].push(u),a+=c}}t.restore()}}_hit_point(t){const{sx:s,sy:e}=t,i=[];for(let t=0;t<this._sxs.length;t++){const _=this._sxs[t],o=this._sys[t],h=_.length;for(let r=0,l=h;r<l;r++){const[l,a]=this._rotate_point(s,e,_[h-1][0],o[h-1][0],-this._angle[t]);n.point_in_poly(l,a,_[r],o[r])&&i.push(t)}}const _=n.create_empty_hit_test_result();return _.indices=i,_}_scenterxy(t){const s=this._sxs[t][0][0],e=this._sys[t][0][0],i=(this._sxs[t][0][2]+s)/2,_=(this._sys[t][0][2]+e)/2,[n,o]=this._rotate_point(i,_,s,e,this._angle[t]);return{x:n,y:o}}scenterx(t){return this._scenterxy(t).x}scentery(t){return this._scenterxy(t).y}}e.TextView=r,r.__name__="TextView";class l extends _.XYGlyph{constructor(t){super(t)}static init_Text(){this.prototype.default_view=r,this.mixins(["text"]),this.define({text:[o.NullStringSpec,{field:"text"}],angle:[o.AngleSpec,0],x_offset:[o.NumberSpec,0],y_offset:[o.NumberSpec,0]})}}e.Text=l,l.__name__="Text",l.init_Text()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),h=t(217),r=i.__importStar(t(19));class o extends h.BoxView{scenterx(t){return this.sx[t]}scentery(t){return(this.stop[t]+this.sbottom[t])/2}_index_data(){return this._index_box(this._x.length)}_lrtb(t){return[this._x[t]-this._width[t]/2,this._x[t]+this._width[t]/2,Math.max(this._top[t],this._bottom[t]),Math.min(this._top[t],this._bottom[t])]}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sw=this.sdist(this.renderer.xscale,this._x,this._width,"center"),this.stop=this.renderer.yscale.v_compute(this._top),this.sbottom=this.renderer.yscale.v_compute(this._bottom);const t=this.sx.length;this.sleft=new Float64Array(t),this.sright=new Float64Array(t);for(let s=0;s<t;s++)this.sleft[s]=this.sx[s]-this.sw[s]/2,this.sright[s]=this.sx[s]+this.sw[s]/2;this._clamp_viewport()}}e.VBarView=o,o.__name__="VBarView";class _ extends h.Box{constructor(t){super(t)}static init_VBar(){this.prototype.default_view=o,this.coords([["x","bottom"]]),this.define({width:[r.NumberSpec],top:[r.CoordinateSpec]}),this.override({bottom:0})}}e.VBar=_,_.__name__="VBar",_.init_VBar()},n function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(1),r=e(81),n=e(90),a=i.__importStar(e(87)),_=i.__importStar(e(19)),d=e(10);class l extends r.XYGlyphView{_map_data(){"data"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius):this.sradius=this._radius}_render(e,s,{sx:t,sy:i,sradius:r,_start_angle:n,_end_angle:a}){const _=this.model.properties.direction.value();for(const d of s)isNaN(t[d]+i[d]+r[d]+n[d]+a[d])||(e.beginPath(),e.arc(t[d],i[d],r[d],n[d],a[d],_),e.lineTo(t[d],i[d]),e.closePath(),this.visuals.fill.doit&&(this.visuals.fill.set_vectorize(e,d),e.fill()),this.visuals.line.doit&&(this.visuals.line.set_vectorize(e,d),e.stroke()))}_hit_point(e){let s,t,i,r,n,_,l,h,o;const{sx:c,sy:u}=e,p=this.renderer.xscale.invert(c),x=this.renderer.yscale.invert(u),g=2*this.max_radius;"data"===this.model.properties.radius.units?(_=p-g,l=p+g,h=x-g,o=x+g):(t=c-g,i=c+g,[_,l]=this.renderer.xscale.r_invert(t,i),r=u-g,n=u+g,[h,o]=this.renderer.yscale.r_invert(r,n));const y=[];for(const e of this.index.indices({x0:_,x1:l,y0:h,y1:o})){const a=this.sradius[e]**2;[t,i]=this.renderer.xscale.r_compute(p,this._x[e]),[r,n]=this.renderer.yscale.r_compute(x,this._y[e]),s=(t-i)**2+(r-n)**2,s<=a&&y.push([e,s])}const f=this.model.properties.direction.value(),v=[];for(const[e,s]of y){const t=Math.atan2(u-this.sy[e],c-this.sx[e]);d.angle_between(-t,-this._start_angle[e],-this._end_angle[e],f)&&v.push([e,s])}return a.create_hit_test_result_from_hits(v)}draw_legend_for_index(e,s,t){n.generic_area_legend(this.visuals,e,s,t)}_scenterxy(e){const s=this.sradius[e]/2,t=(this._start_angle[e]+this._end_angle[e])/2;return{x:this.sx[e]+s*Math.cos(t),y:this.sy[e]+s*Math.sin(t)}}scenterx(e){return this._scenterxy(e).x}scentery(e){return this._scenterxy(e).y}}t.WedgeView=l,l.__name__="WedgeView";class h extends r.XYGlyph{constructor(e){super(e)}static init_Wedge(){this.prototype.default_view=l,this.mixins(["line","fill"]),this.define({direction:[_.Direction,"anticlock"],radius:[_.DistanceSpec],start_angle:[_.AngleSpec],end_angle:[_.AngleSpec]})}}t.Wedge=h,h.__name__="Wedge",h.init_Wedge()},n function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const r=e(1);r.__exportStar(e(98),_),r.__exportStar(e(238),_),r.__exportStar(e(239),_)},n function _(e,o,r){Object.defineProperty(r,"__esModule",{value:!0});const t=e(69);class n extends t.Model{constructor(e){super(e)}}r.LayoutProvider=n,n.__name__="LayoutProvider"},n function _(t,a,e){Object.defineProperty(e,"__esModule",{value:!0});const o=t(1),r=t(238),s=o.__importStar(t(19));class n extends r.LayoutProvider{constructor(t){super(t)}static init_StaticLayoutProvider(){this.define({graph_layout:[s.Any,{}]})}get_node_coordinates(t){const a=[],e=[],o=t.data.index;for(let t=0,r=o.length;t<r;t++){const r=this.graph_layout[o[t]],[s,n]=null!=r?r:[NaN,NaN];a.push(s),e.push(n)}return[a,e]}get_edge_coordinates(t){const a=[],e=[],o=t.data.start,r=t.data.end,s=null!=t.data.xs&&null!=t.data.ys;for(let n=0,u=o.length;n<u;n++){const u=null!=this.graph_layout[o[n]]&&null!=this.graph_layout[r[n]];if(s&&u)a.push(t.data.xs[n]),e.push(t.data.ys[n]);else{let t,s;[s,t]=u?[this.graph_layout[o[n]],this.graph_layout[r[n]]]:[[NaN,NaN],[NaN,NaN]],a.push([s[0],t[0]]),e.push([s[1],t[1]])}}return[a,e]}}e.StaticLayoutProvider=n,n.__name__="StaticLayoutProvider",n.init_StaticLayoutProvider()},n function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});var i=e(241);d.Grid=i.Grid},n function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),s=e(149),r=n.__importStar(e(19)),_=e(8);class o extends s.GuideRendererView{render(){if(!this.model.visible)return;const e=this.plot_view.canvas_view.ctx;e.save(),this._draw_regions(e),this._draw_minor_grids(e),this._draw_grids(e),e.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render())}_draw_regions(e){if(!this.visuals.band_fill.doit&&!this.visuals.band_hatch.doit)return;this.visuals.band_fill.set_value(e);const[i,t]=this.grid_coords("major",!1);for(let n=0;n<i.length-1;n++){if(n%2!=1)continue;const[s,r]=this.plot_view.map_to_screen(i[n],t[n],this.model.x_range_name,this.model.y_range_name),[_,o]=this.plot_view.map_to_screen(i[n+1],t[n+1],this.model.x_range_name,this.model.y_range_name);this.visuals.band_fill.doit&&e.fillRect(s[0],r[0],_[1]-s[0],o[1]-r[0]),this.visuals.band_hatch.doit2(e,n,()=>{e.fillRect(s[0],r[0],_[1]-s[0],o[1]-r[0])},()=>this.request_render())}}_draw_grids(e){if(!this.visuals.grid_line.doit)return;const[i,t]=this.grid_coords("major");this._draw_grid_helper(e,this.visuals.grid_line,i,t)}_draw_minor_grids(e){if(!this.visuals.minor_grid_line.doit)return;const[i,t]=this.grid_coords("minor");this._draw_grid_helper(e,this.visuals.minor_grid_line,i,t)}_draw_grid_helper(e,i,t,n){i.set_value(e);for(let i=0;i<t.length;i++){const[s,r]=this.plot_view.map_to_screen(t[i],n[i],this.model.x_range_name,this.model.y_range_name);e.beginPath(),e.moveTo(Math.round(s[0]),Math.round(r[0]));for(let i=1;i<s.length;i++)e.lineTo(Math.round(s[i]),Math.round(r[i]));e.stroke()}}ranges(){const e=this.model.dimension,i=(e+1)%2,t=this.plot_view.frame,n=[t.x_ranges[this.model.x_range_name],t.y_ranges[this.model.y_range_name]];return[n[e],n[i]]}computed_bounds(){const[e]=this.ranges(),i=this.model.bounds,t=[e.min,e.max];let n,s;if(_.isArray(i))n=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]),n<t[0]&&(n=t[0]),s>t[1]&&(s=t[1]);else{[n,s]=t;for(const e of this.plot_view.axis_views)e.dimension==this.model.dimension&&e.model.x_range_name==this.model.x_range_name&&e.model.y_range_name==this.model.y_range_name&&([n,s]=e.computed_bounds)}return[n,s]}grid_coords(e,i=!0){const t=this.model.dimension,n=(t+1)%2,[s,r]=this.ranges();let[_,o]=this.computed_bounds();[_,o]=[Math.min(_,o),Math.max(_,o)];const a=[[],[]],l=this.model.get_ticker();if(null==l)return a;const d=l.get_ticks(_,o,s,r.min,{})[e],h=s.min,m=s.max,c=r.min,u=r.max;i||(d[0]!=h&&d.splice(0,0,h),d[d.length-1]!=m&&d.push(m));for(let e=0;e<d.length;e++){if((d[e]==h||d[e]==m)&&i)continue;const s=[],r=[],_=2;for(let i=0;i<_;i++){const t=c+(u-c)/(_-1)*i;s.push(d[e]),r.push(t)}a[t].push(s),a[n].push(r)}return a}}t.GridView=o,o.__name__="GridView";class a extends s.GuideRenderer{constructor(e){super(e)}static init_Grid(){this.prototype.default_view=o,this.mixins(["line:grid_","line:minor_grid_","fill:band_","hatch:band_"]),this.define({bounds:[r.Any,"auto"],dimension:[r.Any,0],axis:[r.Instance],ticker:[r.Instance],x_range_name:[r.String,"default"],y_range_name:[r.String,"default"]}),this.override({level:"underlay",band_fill_color:null,band_fill_alpha:0,grid_line_color:"#e5e5e5",minor_grid_line_color:null})}get_ticker(){return null!=this.ticker?this.ticker:null!=this.axis?this.axis.ticker:null}}t.Grid=a,a.__name__="Grid",a.init_Grid()},n function _(a,o,r){Object.defineProperty(r,"__esModule",{value:!0});var e=a(243);r.Box=e.Box;var v=a(245);r.Column=v.Column;var x=a(246);r.GridBox=x.GridBox;var B=a(247);r.HTMLBox=B.HTMLBox;var n=a(244);r.LayoutDOM=n.LayoutDOM;var t=a(248);r.Row=t.Row;var u=a(249);r.Spacer=u.Spacer;var d=a(250);r.Panel=d.Panel,r.Tabs=d.Tabs;var i=a(254);r.WidgetBox=i.WidgetBox},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(244),o=n.__importStar(e(19));class c extends s.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.children.change,()=>this.rebuild())}get child_models(){return this.model.children}}i.BoxView=c,c.__name__="BoxView";class r extends s.LayoutDOM{constructor(e){super(e)}static init_Box(){this.define({children:[o.Array,[]],spacing:[o.Number,0]})}}i.Box=r,r.__name__="Box",r.init_Box()},n function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const s=i(1),o=i(69),l=i(66),n=i(70),h=i(8),a=s.__importStar(i(19)),_=i(96),r=i(64),d=i(67);class u extends r.DOMView{constructor(){super(…arguments),this._idle_notified=!1,this._offset_parent=null,this._viewport={}}initialize(){super.initialize(),this.el.style.position=this.is_root?"relative":"absolute",this._child_views={}}async lazy_initialize(){await this.build_child_views()}remove(){for(const i of this.child_views)i.remove();this._child_views={},super.remove()}connect_signals(){super.connect_signals(),this.is_root&&(this._on_resize=()=>this.resize_layout(),window.addEventListener("resize",this._on_resize),this._parent_observer=setInterval(()=>{const i=this.el.offsetParent;this._offset_parent!=i&&(this._offset_parent=i,null!=i&&(this.compute_viewport(),this.invalidate_layout()))},250));const i=this.model.properties;this.on_change([i.width,i.height,i.min_width,i.min_height,i.max_width,i.max_height,i.margin,i.width_policy,i.height_policy,i.sizing_mode,i.aspect_ratio,i.visible],()=>this.invalidate_layout()),this.on_change([i.background,i.css_classes],()=>this.invalidate_render())}disconnect_signals(){null!=this._parent_observer&&clearTimeout(this._parent_observer),null!=this._on_resize&&window.removeEventListener("resize",this._on_resize),super.disconnect_signals()}css_classes(){return super.css_classes().concat(this.model.css_classes)}get child_views(){return this.child_models.map(i=>this._child_views[i.id])}async build_child_views(){await _.build_views(this._child_views,this.child_models,{parent:this})}render(){super.render(),l.empty(this.el);const{background:i}=this.model;this.el.style.backgroundColor=null!=i?i:"",l.classes(this.el).clear().add(…this.css_classes());for(const i of this.child_views)this.el.appendChild(i.el),i.render()}update_layout(){for(const i of this.child_views)i.update_layout();this._update_layout()}update_position(){this.el.style.display=this.model.visible?"block":"none";const i=this.is_root?this.layout.sizing.margin:void 0;l.position(this.el,this.layout.bbox,i);for(const i of this.child_views)i.update_position()}after_layout(){for(const i of this.child_views)i.after_layout();this._has_finished=!0}compute_viewport(){this._viewport=this._viewport_size()}renderTo(i){i.appendChild(this.el),this._offset_parent=this.el.offsetParent,this.compute_viewport(),this.build()}build(){return this.assert_root(),this.render(),this.update_layout(),this.compute_layout(),this}async rebuild(){await this.build_child_views(),this.invalidate_render()}compute_layout(){const i=Date.now();this.layout.compute(this._viewport),this.update_position(),this.after_layout(),n.logger.debug(layout computed in ${Date.now()-i} ms),this.notify_finished()}resize_layout(){this.root.compute_viewport(),this.root.compute_layout()}invalidate_layout(){this.root.update_layout(),this.root.compute_layout()}invalidate_render(){this.render(),this.invalidate_layout()}has_finished(){if(!super.has_finished())return!1;for(const i of this.child_views)if(!i.has_finished())return!1;return!0}notify_finished(){this.is_root?!this._idle_notified&&this.has_finished()&&null!=this.model.document&&(this._idle_notified=!0,this.model.document.notify_idle(this.model)):this.root.notify_finished()}_width_policy(){return null!=this.model.width?"fixed":"fit"}_height_policy(){return null!=this.model.height?"fixed":"fit"}box_sizing(){let{width_policy:i,height_policy:t,aspect_ratio:e}=this.model;"auto"==i&&(i=this._width_policy()),"auto"==t&&(t=this._height_policy());const{sizing_mode:s}=this.model;if(null!=s)if("fixed"==s)i=t="fixed";else if("stretch_both"==s)i=t="max";else if("stretch_width"==s)i="max";else if("stretch_height"==s)t="max";else switch(null==e&&(e="auto"),s){case"scale_width":i="max",t="min";break;case"scale_height":i="min",t="max";break;case"scale_both":i="max",t="max"}const o={width_policy:i,height_policy:t},{min_width:l,min_height:n}=this.model;null!=l&&(o.min_width=l),null!=n&&(o.min_height=n);const{width:a,height:_}=this.model;null!=a&&(o.width=a),null!=_&&(o.height=_);const{max_width:r,max_height:d}=this.model;null!=r&&(o.max_width=r),null!=d&&(o.max_height=d),"auto"==e&&null!=a&&null!=_?o.aspect=a/_:h.isNumber(e)&&(o.aspect=e);const{margin:u}=this.model;if(null!=u)if(h.isNumber(u))o.margin={top:u,right:u,bottom:u,left:u};else if(2==u.length){const[i,t]=u;o.margin={top:i,right:t,bottom:i,left:t}}else{const[i,t,e,s]=u;o.margin={top:i,right:t,bottom:e,left:s}}o.visible=this.model.visible;const{align:c}=this.model;return h.isArray(c)?[o.halign,o.valign]=c:o.halign=o.valign=c,o}_viewport_size(){return l.undisplayed(this.el,()=>{let i=this.el;for(;i=i.parentElement;){if(i.classList.contains(d.bk_root))continue;if(i==document.body){const{margin:{left:i,right:t,top:e,bottom:s}}=l.extents(document.body);return{width:Math.ceil(document.documentElement.clientWidth-i-t),height:Math.ceil(document.documentElement.clientHeight-e-s)}}const{padding:{left:t,right:e,top:s,bottom:o}}=l.extents(i),{width:n,height:h}=i.getBoundingClientRect(),a=Math.ceil(n-t-e),_=Math.ceil(h-s-o);if(a>0||_>0)return{width:a>0?a:void 0,height:_>0?_:void 0}}return{}})}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.layout.bbox.box,children:this.child_views.map(i=>i.serializable_state())})}}e.LayoutDOMView=u,u.__name__="LayoutDOMView";class c extends o.Model{constructor(i){super(i)}static init_LayoutDOM(){this.define({width:[a.Number,null],height:[a.Number,null],min_width:[a.Number,null],min_height:[a.Number,null],max_width:[a.Number,null],max_height:[a.Number,null],margin:[a.Any,[0,0,0,0]],width_policy:[a.Any,"auto"],height_policy:[a.Any,"auto"],aspect_ratio:[a.Any,null],sizing_mode:[a.SizingMode,null],visible:[a.Boolean,!0],disabled:[a.Boolean,!1],align:[a.Any,"start"],background:[a.Color,null],css_classes:[a.Array,[]]})}}e.LayoutDOM=c,c.__name__="LayoutDOM",c.init_LayoutDOM()},n function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(243),n=t(191),l=s.__importStar(t(19));class u extends e.BoxView{_update_layout(){const t=this.child_views.map(t=>t.layout);this.layout=new n.Column(t),this.layout.rows=this.model.rows,this.layout.spacing=[this.model.spacing,0],this.layout.set_sizing(this.box_sizing())}}i.ColumnView=u,u.__name__="ColumnView";class _ extends e.Box{constructor(t){super(t)}static init_Column(){this.prototype.default_view=u,this.define({rows:[l.Any,"auto"]})}}i.Column=_,_.__name__="Column",_.init_Column()},n function _(t,i,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t(1),e=t(244),n=t(191),l=o.__importStar(t(19));class r extends e.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.children.change,()=>this.rebuild())}get child_models(){return this.model.children.map(([t])=>t)}_update_layout(){this.layout=new n.Grid,this.layout.rows=this.model.rows,this.layout.cols=this.model.cols,this.layout.spacing=this.model.spacing;for(const[t,i,s,o,e]of this.model.children){const n=this._child_views[t.id];this.layout.items.push({layout:n.layout,row:i,col:s,row_span:o,col_span:e})}this.layout.set_sizing(this.box_sizing())}}s.GridBoxView=r,r.__name__="GridBoxView";class a extends e.LayoutDOM{constructor(t){super(t)}static init_GridBox(){this.prototype.default_view=r,this.define({children:[l.Array,[]],rows:[l.Any,"auto"],cols:[l.Any,"auto"],spacing:[l.Any,0]})}}s.GridBox=a,a.__name__="GridBox",a.init_GridBox()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(244),_=e(187);class n extends s.LayoutDOMView{get child_models(){return[]}_update_layout(){this.layout=new _.ContentBox(this.el),this.layout.set_sizing(this.box_sizing())}}o.HTMLBoxView=n,n.__name__="HTMLBoxView";class i extends s.LayoutDOM{constructor(e){super(e)}}o.HTMLBox=i,i.__name__="HTMLBox"},n function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),e=t(243),_=t(191),a=s.__importStar(t(19));class n extends e.BoxView{_update_layout(){const t=this.child_views.map(t=>t.layout);this.layout=new _.Row(t),this.layout.cols=this.model.cols,this.layout.spacing=[0,this.model.spacing],this.layout.set_sizing(this.box_sizing())}}i.RowView=n,n.__name__="RowView";class l extends e.Box{constructor(t){super(t)}static init_Row(){this.prototype.default_view=n,this.define({cols:[a.Any,"auto"]})}}i.Row=l,l.__name__="Row",l.init_Row()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(244),s=e(187);class _ extends i.LayoutDOMView{get child_models(){return[]}_update_layout(){this.layout=new s.LayoutItem,this.layout.set_sizing(this.box_sizing())}}a.SpacerView=_,_.__name__="SpacerView";class o extends i.LayoutDOM{constructor(e){super(e)}static init_Spacer(){this.prototype.default_view=_}}a.Spacer=o,o.__name__="Spacer",o.init_Spacer()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),a=e(187),l=e(66),h=e(9),o=i.__importStar(e(19)),c=e(244),d=e(69),n=e(145),r=e(251),_=e(252),b=e(253);class p extends c.LayoutDOMView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.tabs.change,()=>this.rebuild()),this.connect(this.model.properties.active.change,()=>this.on_active_change())}get child_models(){return this.model.tabs.map(e=>e.child)}_update_layout(){const e=this.model.tabs_location,t="above"==e||"below"==e,{scroll_el:s,headers_el:i}=this;this.header=new class extends a.ContentBox{_measure(e){const a=l.size(s),o=l.children(i).slice(0,3).map(e=>l.size(e)),{width:c,height:d}=super._measure(e);if(t){const t=a.width+h.sum(o.map(e=>e.width));return{width:e.width!=1/0?e.width:t,height:d}}{const t=a.height+h.sum(o.map(e=>e.height));return{width:c,height:e.height!=1/0?e.height:t}}}}(this.header_el),t?this.header.set_sizing({width_policy:"fit",height_policy:"fixed"}):this.header.set_sizing({width_policy:"fixed",height_policy:"fit"});let o=1,c=1;switch(e){case"above":o-=1;break;case"below":o+=1;break;case"left":c-=1;break;case"right":c+=1}const d={layout:this.header,row:o,col:c},n=this.child_views.map(e=>({layout:e.layout,row:1,col:1}));this.layout=new a.Grid([d,…n]),this.layout.set_sizing(this.box_sizing())}update_position(){super.update_position(),this.header_el.style.position="absolute",l.position(this.header_el,this.header.bbox);const e=this.model.tabs_location,t="above"==e||"below"==e,s=l.size(this.scroll_el),i=l.scroll_size(this.headers_el);if(t){const{width:e}=this.header.bbox;i.width>e?(this.wrapper_el.style.maxWidth=`${e-s.width}px`,l.display(this.scroll_el)):(this.wrapper_el.style.maxWidth="",l.undisplay(this.scroll_el))}else{const{height:e}=this.header.bbox;i.height>e?(this.wrapper_el.style.maxHeight=`${e-s.height}px`,l.display(this.scroll_el)):(this.wrapper_el.style.maxHeight="",l.undisplay(this.scroll_el))}const{child_views:a}=this;for(const e of a)l.hide(e.el);const h=a[this.model.active];null!=h&&l.show(h.el)}render(){super.render();const{active:e}=this.model,t=this.model.tabs_location,s="above"==t||"below"==t,i=this.model.tabs.map((t,s)=>{const i=l.div({class:[r.bk_tab,s==e?n.bk_active:null]},t.title);if(i.addEventListener("click",e=>{e.target==e.currentTarget&&this.change_active(s)}),t.closable){const e=l.div({class:r.bk_close});e.addEventListener("click",e=>{if(e.target==e.currentTarget){this.model.tabs=h.remove_at(this.model.tabs,s);const e=this.model.tabs.length;this.model.active>e-1&&(this.model.active=e-1)}}),i.appendChild(e)}return i});this.headers_el=l.div({class:[r.bk_headers]},i),this.wrapper_el=l.div({class:r.bk_headers_wrapper},this.headers_el);const a=l.div({class:[_.bk_btn,_.bk_btn_default],disabled:""},l.div({class:[b.bk_caret,n.bk_left]})),o=l.div({class:[_.bk_btn,_.bk_btn_default]},l.div({class:[b.bk_caret,n.bk_right]}));let c=0;const d=e=>()=>{const t=this.model.tabs.length;c="left"==e?Math.max(c-1,0):Math.min(c+1,t-1),0==c?a.setAttribute("disabled",""):a.removeAttribute("disabled"),c==t-1?o.setAttribute("disabled",""):o.removeAttribute("disabled");const i=l.children(this.headers_el).slice(0,c).map(e=>e.getBoundingClientRect());if(s){const e=-h.sum(i.map(e=>e.width));this.headers_el.style.left=`${e}px`}else{const e=-h.sum(i.map(e=>e.height));this.headers_el.style.top=`${e}px`}};a.addEventListener("click",d("left")),o.addEventListener("click",d("right")),this.scroll_el=l.div({class:_.bk_btn_group},a,o),this.header_el=l.div({class:[r.bk_tabs_header,n.bk_side(t)]},this.scroll_el,this.wrapper_el),this.el.appendChild(this.header_el)}change_active(e){e!=this.model.active&&(this.model.active=e)}on_active_change(){const e=this.model.active,t=l.children(this.headers_el);for(const e of t)e.classList.remove(n.bk_active);t[e].classList.add(n.bk_active);const{child_views:s}=this;for(const e of s)l.hide(e.el);l.show(s[e].el)}}s.TabsView=p,p.__name__="TabsView";class u extends c.LayoutDOM{constructor(e){super(e)}static init_Tabs(){this.prototype.default_view=p,this.define({tabs:[o.Array,[]],tabs_location:[o.Location,"above"],active:[o.Number,0]})}}s.Tabs=u,u.__name__="Tabs",u.init_Tabs();class m extends d.Model{constructor(e){super(e)}static init_Panel(){this.define({title:[o.String,""],child:[o.Instance],closable:[o.Boolean,!1]})}}s.Panel=m,m.__name__="Panel",m.init_Panel()},n function _(e,r,n){Object.defineProperty(n,"__esModule",{value:!0});const b=e(1);e(67),b.__importStar(e(66)).styles.append(‘.bk-root .bk-tabs-header {\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n overflow: hidden;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-tabs-header .bk-btn-group {\n height: auto;\n margin-right: 5px;\n}\n.bk-root .bk-tabs-header .bk-btn-group > .bk-btn {\n flex-grow: 0;\n -webkit-flex-grow: 0;\n height: auto;\n padding: 4px 4px;\n}\n.bk-root .bk-tabs-header .bk-headers-wrapper {\n flex-grow: 1;\n -webkit-flex-grow: 1;\n overflow: hidden;\n color: #666666;\n}\n.bk-root .bk-tabs-header.bk-above .bk-headers-wrapper {\n border-bottom: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-right .bk-headers-wrapper {\n border-left: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-below .bk-headers-wrapper {\n border-top: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-left .bk-headers-wrapper {\n border-right: 1px solid #e6e6e6;\n}\n.bk-root .bk-tabs-header.bk-above,\n.bk-root .bk-tabs-header.bk-below {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-tabs-header.bk-above .bk-headers,\n.bk-root .bk-tabs-header.bk-below .bk-headers {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-tabs-header.bk-left,\n.bk-root .bk-tabs-header.bk-right {\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-tabs-header.bk-left .bk-headers,\n.bk-root .bk-tabs-header.bk-right .bk-headers {\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-tabs-header .bk-headers {\n position: relative;\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n}\n.bk-root .bk-tabs-header .bk-tab {\n padding: 4px 8px;\n border: solid transparent;\n white-space: nowrap;\n cursor: pointer;\n}\n.bk-root .bk-tabs-header .bk-tab:hover {\n background-color: #f2f2f2;\n}\n.bk-root .bk-tabs-header .bk-tab.bk-active {\n color: #4d4d4d;\n background-color: white;\n border-color: #e6e6e6;\n}\n.bk-root .bk-tabs-header .bk-tab .bk-close {\n margin-left: 10px;\n}\n.bk-root .bk-tabs-header.bk-above .bk-tab {\n border-width: 3px 1px 0px 1px;\n border-radius: 4px 4px 0 0;\n}\n.bk-root .bk-tabs-header.bk-right .bk-tab {\n border-width: 1px 3px 1px 0px;\n border-radius: 0 4px 4px 0;\n}\n.bk-root .bk-tabs-header.bk-below .bk-tab {\n border-width: 0px 1px 3px 1px;\n border-radius: 0 0 4px 4px;\n}\n.bk-root .bk-tabs-header.bk-left .bk-tab {\n border-width: 1px 0px 1px 3px;\n border-radius: 4px 0 0 4px;\n}\n.bk-root .bk-close {\n display: inline-block;\n width: 10px;\n height: 10px;\n vertical-align: middle;\n background-image: url(\’data:image/svg+xml;utf8,\\\n <svg viewPort="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg">\\\n <line x1="1" y1="9" x2="9" y2="1" stroke="gray" stroke-width="2"/>\\\n <line x1="1" y1="1" x2="9" y2="9" stroke="gray" stroke-width="2"/>\\\n </svg>\’);\n}\n.bk-root .bk-close:hover {\n background-image: url(\’data:image/svg+xml;utf8,\\\n <svg viewPort="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg">\\\n <line x1="1" y1="9" x2="9" y2="1" stroke="red" stroke-width="2"/>\\\n <line x1="1" y1="1" x2="9" y2="9" stroke="red" stroke-width="2"/>\\\n </svg>\’);\n}\n’),n.bk_tabs_header="bk-tabs-header",n.bk_headers_wrapper="bk-headers-wrapper",n.bk_headers="bk-headers",n.bk_tab="bk-tab",n.bk_close="bk-close"},n function _(n,o,b){Object.defineProperty(b,"__esModule",{value:!0});const r=n(1);n(67),r.__importStar(n(66)).styles.append(".bk-root .bk-btn {\n height: 100%;\n display: inline-block;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n cursor: pointer;\n padding: 6px 12px;\n font-size: 12px;\n border: 1px solid transparent;\n border-radius: 4px;\n outline: 0;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-btn:hover,\n.bk-root .bk-btn:focus {\n text-decoration: none;\n}\n.bk-root .bk-btn:active,\n.bk-root .bk-btn.bk-active {\n background-image: none;\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.bk-root .bk-btn[disabled] {\n cursor: not-allowed;\n pointer-events: none;\n opacity: 0.65;\n box-shadow: none;\n}\n.bk-root .bk-btn-default {\n color: #333;\n background-color: #fff;\n border-color: #ccc;\n}\n.bk-root .bk-btn-default:hover {\n background-color: #f5f5f5;\n border-color: #b8b8b8;\n}\n.bk-root .bk-btn-default.bk-active {\n background-color: #ebebeb;\n border-color: #adadad;\n}\n.bk-root .bk-btn-default[disabled],\n.bk-root .bk-btn-default[disabled]:hover,\n.bk-root .bk-btn-default[disabled]:focus,\n.bk-root .bk-btn-default[disabled]:active,\n.bk-root .bk-btn-default[disabled].bk-active {\n background-color: #e6e6e6;\n border-color: #ccc;\n}\n.bk-root .bk-btn-primary {\n color: #fff;\n background-color: #428bca;\n border-color: #357ebd;\n}\n.bk-root .bk-btn-primary:hover {\n background-color: #3681c1;\n border-color: #2c699e;\n}\n.bk-root .bk-btn-primary.bk-active {\n background-color: #3276b1;\n border-color: #285e8e;\n}\n.bk-root .bk-btn-primary[disabled],\n.bk-root .bk-btn-primary[disabled]:hover,\n.bk-root .bk-btn-primary[disabled]:focus,\n.bk-root .bk-btn-primary[disabled]:active,\n.bk-root .bk-btn-primary[disabled].bk-active {\n background-color: #506f89;\n border-color: #357ebd;\n}\n.bk-root .bk-btn-success {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.bk-root .bk-btn-success:hover {\n background-color: #4eb24e;\n border-color: #409240;\n}\n.bk-root .bk-btn-success.bk-active {\n background-color: #47a447;\n border-color: #398439;\n}\n.bk-root .bk-btn-success[disabled],\n.bk-root .bk-btn-success[disabled]:hover,\n.bk-root .bk-btn-success[disabled]:focus,\n.bk-root .bk-btn-success[disabled]:active,\n.bk-root .bk-btn-success[disabled].bk-active {\n background-color: #667b66;\n border-color: #4cae4c;\n}\n.bk-root .bk-btn-warning {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.bk-root .bk-btn-warning:hover {\n background-color: #eea43b;\n border-color: #e89014;\n}\n.bk-root .bk-btn-warning.bk-active {\n background-color: #ed9c28;\n border-color: #d58512;\n}\n.bk-root .bk-btn-warning[disabled],\n.bk-root .bk-btn-warning[disabled]:hover,\n.bk-root .bk-btn-warning[disabled]:focus,\n.bk-root .bk-btn-warning[disabled]:active,\n.bk-root .bk-btn-warning[disabled].bk-active {\n background-color: #c89143;\n border-color: #eea236;\n}\n.bk-root .bk-btn-danger {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.bk-root .bk-btn-danger:hover {\n background-color: #d5433e;\n border-color: #bd2d29;\n}\n.bk-root .bk-btn-danger.bk-active {\n background-color: #d2322d;\n border-color: #ac2925;\n}\n.bk-root .bk-btn-danger[disabled],\n.bk-root .bk-btn-danger[disabled]:hover,\n.bk-root .bk-btn-danger[disabled]:focus,\n.bk-root .bk-btn-danger[disabled]:active,\n.bk-root .bk-btn-danger[disabled].bk-active {\n background-color: #a55350;\n border-color: #d43f3a;\n}\n.bk-root .bk-btn-group {\n height: 100%;\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-btn-group > .bk-btn {\n flex-grow: 1;\n -webkit-flex-grow: 1;\n}\n.bk-root .bk-btn-group > .bk-btn + .bk-btn {\n margin-left: -1px;\n}\n.bk-root .bk-btn-group > .bk-btn:first-child:not(:last-child) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):last-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.bk-root .bk-btn-group .bk-dropdown-toggle {\n flex: 0 0 0;\n -webkit-flex: 0 0 0;\n padding: 6px 6px;\n}\n"),b.bk_btn="bk-btn",b.bk_btn_group="bk-btn-group",b.bk_btn_default="bk-btn-default",b.bk_btn_primary="bk-btn-primary",b.bk_btn_success="bk-btn-success",b.bk_btn_warning="bk-btn-warning",b.bk_btn_danger="bk-btn-danger",b.bk_btn_type=function(n){switch(n){case"default":return b.bk_btn_default;case"primary":return b.bk_btn_primary;case"success":return b.bk_btn_success;case"warning":return b.bk_btn_warning;case"danger":return b.bk_btn_danger}},b.bk_dropdown_toggle="bk-dropdown-toggle"},n function _(n,o,r){Object.defineProperty(r,"__esModule",{value:!0});const b=n(1);n(67),b.__importStar(n(66)).styles.append(".bk-root .bk-menu {\n position: absolute;\n left: 0;\n width: 100%;\n z-index: 100;\n cursor: pointer;\n font-size: 12px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n}\n.bk-root .bk-menu.bk-above {\n bottom: 100%;\n}\n.bk-root .bk-menu.bk-below {\n top: 100%;\n}\n.bk-root .bk-menu > .bk-divider {\n height: 1px;\n margin: 7.5px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.bk-root .bk-menu > :not(.bk-divider) {\n padding: 6px 12px;\n}\n.bk-root .bk-menu > :not(.bk-divider):hover,\n.bk-root .bk-menu > :not(.bk-divider).bk-active {\n background-color: #e6e6e6;\n}\n.bk-root .bk-caret {\n display: inline-block;\n vertical-align: middle;\n width: 0;\n height: 0;\n margin: 0 5px;\n}\n.bk-root .bk-caret.bk-down {\n border-top: 4px solid;\n}\n.bk-root .bk-caret.bk-up {\n border-bottom: 4px solid;\n}\n.bk-root .bk-caret.bk-down,\n.bk-root .bk-caret.bk-up {\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n}\n.bk-root .bk-caret.bk-left {\n border-right: 4px solid;\n}\n.bk-root .bk-caret.bk-right {\n border-left: 4px solid;\n}\n.bk-root .bk-caret.bk-left,\n.bk-root .bk-caret.bk-right {\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n}\n"),r.bk_menu="bk-menu",r.bk_caret="bk-caret",r.bk_divider="bk-divider"},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const o=e(245);class _ extends o.ColumnView{}i.WidgetBoxView=_,_.__name__="WidgetBoxView";class n extends o.Column{constructor(e){super(e)}static init_WidgetBox(){this.prototype.default_view=_}}i.WidgetBox=n,n.__name__="WidgetBox",n.init_WidgetBox()},n function _(r,a,o){Object.defineProperty(o,"__esModule",{value:!0});var e=r(256);o.CategoricalColorMapper=e.CategoricalColorMapper;var p=r(258);o.CategoricalMarkerMapper=p.CategoricalMarkerMapper;var l=r(259);o.CategoricalPatternMapper=l.CategoricalPatternMapper;var C=r(115);o.ContinuousColorMapper=C.ContinuousColorMapper;var M=r(116);o.ColorMapper=M.ColorMapper;var t=r(114);o.LinearColorMapper=t.LinearColorMapper;var i=r(260);o.LogColorMapper=i.LogColorMapper},n function _(r,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=r(1),a=r(257),c=r(116),i=o.__importStar(r(19));class s extends c.ColorMapper{constructor(r){super(r)}static init_CategoricalColorMapper(){this.define({factors:[i.Array],start:[i.Number,0],end:[i.Number]})}_v_compute(r,t,e,{nan_color:o}){a.cat_v_compute(r,this.factors,e,t,this.start,this.end,o)}}e.CategoricalColorMapper=s,s.__name__="CategoricalColorMapper",s.init_CategoricalColorMapper()},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const l=e(12),i=e(8);function u(e,n){if(e.length!=n.length)return!1;for(let t=0,l=e.length;t<l;t++)if(e[t]!==n[t])return!1;return!0}t._cat_equals=u,t.cat_v_compute=function(e,n,t,c,f,o,r){for(let _=0,g=e.length;_<g;_++){let g,s,d=e[_];i.isString(d)?g=l.index_of(n,d):(null!=f?d=null!=o?d.slice(f,o):d.slice(f):null!=o&&(d=d.slice(0,o)),g=1==d.length?l.index_of(n,d[0]):l.find_index(n,e=>u(e,d))),s=g<0||g>=t.length?r:t[g],c[_]=s}}},n function _(r,e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=r(1),s=r(257),i=r(117),c=t.__importStar(r(19));class n extends i.Mapper{constructor(r){super(r)}static init_CategoricalMarkerMapper(){this.define({factors:[c.Array],markers:[c.Array],start:[c.Number,0],end:[c.Number],default_value:[c.MarkerType,"circle"]})}v_compute(r){const e=new Array(r.length);return s.cat_v_compute(r,this.factors,this.markers,e,this.start,this.end,this.default_value),e}}a.CategoricalMarkerMapper=n,n.__name__="CategoricalMarkerMapper",n.init_CategoricalMarkerMapper()},n function _(t,e,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t(1),n=t(257),s=t(117),i=r.__importStar(t(19));class c extends s.Mapper{constructor(t){super(t)}static init_CategoricalPatternMapper(){this.define({factors:[i.Array],patterns:[i.Array],start:[i.Number,0],end:[i.Number],default_value:[i.HatchPatternType," "]})}v_compute(t){const e=new Array(t.length);return n.cat_v_compute(t,this.factors,this.patterns,e,this.start,this.end,this.default_value),e}}a.CategoricalPatternMapper=c,c.__name__="CategoricalPatternMapper",c.init_CategoricalPatternMapper()},n function _(o,l,n){Object.defineProperty(n,"__esModule",{value:!0});const t=o(115),e=o(12);class i extends t.ContinuousColorMapper{constructor(o){super(o)}_v_compute(o,l,n,t){const{nan_color:i,low_color:h,high_color:c}=t,r=n.length,s=null!=this.low?this.low:e.min(o),u=null!=this.high?this.high:e.max(o),a=r/(Math.log(u)-Math.log(s)),g=n.length-1;for(let t=0,e=o.length;t<e;t++){const e=o[t];if(isNaN(e)){l[t]=i;continue}if(e>u){l[t]=null!=c?c:n[g];continue}if(e==u){l[t]=n[g];continue}if(e<s){l[t]=null!=h?h:n[0];continue}const r=Math.log(e)-Math.log(s);let _=Math.floor(r*a);_>g&&(_=g),l[t]=n[_]}}}n.LogColorMapper=i,i.__name__="LogColorMapper"},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0}),e(1).__exportStar(e(262),t);var a=e(263);t.Marker=a.Marker;var _=e(264);t.Scatter=_.Scatter},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e(263),s=Math.sqrt(3);function r(e,t){e.moveTo(-t,t),e.lineTo(t,-t),e.moveTo(-t,-t),e.lineTo(t,t)}function n(e,t){e.moveTo(0,t),e.lineTo(0,-t),e.moveTo(-t,0),e.lineTo(t,0)}function c(e,t){e.moveTo(0,t),e.lineTo(t/1.5,0),e.lineTo(0,-t),e.lineTo(-t/1.5,0),e.closePath()}function l(e,t){const o=t*s,i=o/3;e.moveTo(-t,i),e.lineTo(t,i),e.lineTo(0,i-o),e.closePath()}function a(e,t,o,i,s){const c=.65*o;n(e,o),r(e,c),i.doit&&(i.set_vectorize(e,t),e.stroke())}function d(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function _(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),r(e,o),e.stroke())}function v(e,t,o,i,s){n(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function f(e,t,o,i,s){c(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function u(e,t,o,i,s){c(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function T(e,t,o,i,r){!function(e,t){const o=t/2,i=s*o;e.moveTo(t,0),e.lineTo(o,-i),e.lineTo(-o,-i),e.lineTo(-t,0),e.lineTo(-o,i),e.lineTo(o,i),e.closePath()}(e,o),r.doit&&(r.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function z(e,t,o,i,s){e.rotate(Math.PI),l(e,o),e.rotate(-Math.PI),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function k(e,t,o,i,s){const r=2*o;e.rect(-o,-o,r,r),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function m(e,t,o,i,s){const r=2*o;e.rect(-o,-o,r,r),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),n(e,o),e.stroke())}function C(e,t,o,i,s){const n=2*o;e.rect(-o,-o,n,n),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),r(e,o),e.stroke())}function h(e,t,o,i,s){l(e,o),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())}function q(e,t,o,i,s){!function(e,t){e.moveTo(-t,0),e.lineTo(t,0)}(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function M(e,t,o,i,s){r(e,o),i.doit&&(i.set_vectorize(e,t),e.stroke())}function P(e,t){var o;const s=class extends i.MarkerView{static initClass(){this.prototype._render_one=t}};s.initClass();const r=((o=class extends i.Marker{static initClass(){this.prototype.default_view=s}}).__name__=e,o);return r.initClass(),r}o.Asterisk=P("Asterisk",a),o.CircleCross=P("CircleCross",d),o.CircleX=P("CircleX",_),o.Cross=P("Cross",v),o.Dash=P("Dash",q),o.Diamond=P("Diamond",f),o.DiamondCross=P("DiamondCross",u),o.Hex=P("Hex",T),o.InvertedTriangle=P("InvertedTriangle",z),o.Square=P("Square",k),o.SquareCross=P("SquareCross",m),o.SquareX=P("SquareX",C),o.Triangle=P("Triangle",h),o.X=P("X",M),o.marker_funcs={asterisk:a,circle:function(e,t,o,i,s){e.arc(0,0,o,0,2*Math.PI,!1),s.doit&&(s.set_vectorize(e,t),e.fill()),i.doit&&(i.set_vectorize(e,t),e.stroke())},circle_cross:d,circle_x:_,cross:v,diamond:f,diamond_cross:u,hex:T,inverted_triangle:z,square:k,square_cross:m,square_x:C,triangle:h,dash:q,x:M}},n function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(1),r=e(81),n=i.__importStar(e(87)),a=i.__importStar(e(19)),_=e(9);class h extends r.XYGlyphView{_render(e,s,{sx:t,sy:i,_size:r,_angle:n}){for(const a of s){if(isNaN(t[a]+i[a]+r[a]+n[a]))continue;const s=r[a]/2;e.beginPath(),e.translate(t[a],i[a]),n[a]&&e.rotate(n[a]),this._render_one(e,a,s,this.visuals.line,this.visuals.fill),n[a]&&e.rotate(-n[a]),e.translate(-t[a],-i[a])}}_mask_data(){const e=this.renderer.plot_view.frame.bbox.h_range,s=e.start-this.max_size,t=e.end+this.max_size,[i,r]=this.renderer.xscale.r_invert(s,t),n=this.renderer.plot_view.frame.bbox.v_range,a=n.start-this.max_size,_=n.end+this.max_size,[h,c]=this.renderer.yscale.r_invert(a,_);return this.index.indices({x0:i,x1:r,y0:h,y1:c})}_hit_point(e){const{sx:s,sy:t}=e,i=s-this.max_size,r=s+this.max_size,[a,_]=this.renderer.xscale.r_invert(i,r),h=t-this.max_size,c=t+this.max_size,[o,x]=this.renderer.yscale.r_invert(h,c),l=this.index.indices({x0:a,x1:_,y0:o,y1:x}),y=[];for(const e of l){const i=this._size[e]/2,r=Math.abs(this.sx[e]-s)+Math.abs(this.sy[e]-t);Math.abs(this.sx[e]-s)<=i&&Math.abs(this.sy[e]-t)<=i&&y.push([e,r])}return n.create_hit_test_result_from_hits(y)}_hit_span(e){const{sx:s,sy:t}=e,i=this.bounds(),r=this.max_size/2,a=n.create_empty_hit_test_result();let _,h,c,o;if("h"==e.direction){c=i.y0,o=i.y1;const e=s-r,t=s+r;[_,h]=this.renderer.xscale.r_invert(e,t)}else{_=i.x0,h=i.x1;const e=t-r,s=t+r;[c,o]=this.renderer.yscale.r_invert(e,s)}const x=this.index.indices({x0:_,x1:h,y0:c,y1:o});return a.indices=x,a}_hit_rect(e){const{sx0:s,sx1:t,sy0:i,sy1:r}=e,[a,_]=this.renderer.xscale.r_invert(s,t),[h,c]=this.renderer.yscale.r_invert(i,r),o=n.create_empty_hit_test_result();return o.indices=this.index.indices({x0:a,x1:_,y0:h,y1:c}),o}_hit_poly(e){const{sx:s,sy:t}=e,i=_.range(0,this.sx.length),r=[];for(let e=0,a=i.length;e<a;e++){const a=i[e];n.point_in_poly(this.sx[e],this.sy[e],s,t)&&r.push(a)}const a=n.create_empty_hit_test_result();return a.indices=r,a}draw_legend_for_index(e,{x0:s,x1:t,y0:i,y1:r},n){const a=n+1,_=new Array(a);_[n]=(s+t)/2;const h=new Array(a);h[n]=(i+r)/2;const c=new Array(a);c[n]=.4*Math.min(Math.abs(t-s),Math.abs(r-i));const o=new Array(a);o[n]=0,this._render(e,[n],{sx:_,sy:h,_size:c,_angle:o})}}t.MarkerView=h,h.__name__="MarkerView";class c extends r.XYGlyph{constructor(e){super(e)}static init_Marker(){this.mixins(["line","fill"]),this.define({size:[a.DistanceSpec,{units:"screen",value:4}],angle:[a.AngleSpec,0]})}}t.Marker=c,c.__name__="Marker",c.init_Marker()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=e(1),s=e(263),n=e(262),i=a.__importStar(e(19));class _ extends s.MarkerView{_render(e,t,{sx:r,sy:a,_size:s,_angle:i,_marker:_}){for(const c of t){if(isNaN(r[c]+a[c]+s[c]+i[c])||null==_[c])continue;const t=s[c]/2;e.beginPath(),e.translate(r[c],a[c]),i[c]&&e.rotate(i[c]),n.marker_funcs[_[c]](e,c,t,this.visuals.line,this.visuals.fill),i[c]&&e.rotate(-i[c]),e.translate(-r[c],-a[c])}}draw_legend_for_index(e,{x0:t,x1:r,y0:a,y1:s},n){const i=n+1,_=new Array(i);_[n]=(t+r)/2;const c=new Array(i);c[n]=(a+s)/2;const o=new Array(i);o[n]=.4*Math.min(Math.abs(r-t),Math.abs(s-a));const l=new Array(i);l[n]=0;const u=new Array(i);u[n]=this._marker[n],this._render(e,[n],{sx:_,sy:c,_size:o,_angle:l,_marker:u})}}r.ScatterView=_,_.__name__="ScatterView";class c extends s.Marker{constructor(e){super(e)}static init_Scatter(){this.prototype.default_view=_,this.define({marker:[i.MarkerSpec,{value:"circle"}]})}}r.Scatter=c,c.__name__="Scatter",c.init_Scatter()},n function _(a,o,p){Object.defineProperty(p,"__esModule",{value:!0});var t=a(266);p.MapOptions=t.MapOptions;var e=a(266);p.GMapOptions=e.GMapOptions;var n=a(266);p.GMapPlot=n.GMapPlot;var M=a(267);p.Plot=M.Plot},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1),n=t(70),a=t(267),s=o.__importStar(t(19)),p=t(69),r=t(130),_=t(287);i.GMapPlotView=_.GMapPlotView;class l extends p.Model{constructor(t){super(t)}static init_MapOptions(){this.define({lat:[s.Number],lng:[s.Number],zoom:[s.Number,12]})}}i.MapOptions=l,l.__name__="MapOptions",l.init_MapOptions();class c extends l{constructor(t){super(t)}static init_GMapOptions(){this.define({map_type:[s.String,"roadmap"],scale_control:[s.Boolean,!1],styles:[s.String],tilt:[s.Int,45]})}}i.GMapOptions=c,c.__name__="GMapOptions",c.init_GMapOptions();class u extends a.Plot{constructor(t){super(t)}static init_GMapPlot(){this.prototype.default_view=_.GMapPlotView,this.define({map_options:[s.Instance],api_key:[s.String]}),this.override({x_range:()=>new r.Range1d,y_range:()=>new r.Range1d})}initialize(){super.initialize(),this.use_map=!0,this.api_key||n.logger.error("api_key is required. See https://developers.google.com/maps/documentation/javascript/get-api-key for more information on how to obtain your own.")}}i.GMapPlot=u,u.__name__="GMapPlot",u.init_GMapPlot()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(1).__importStar(e(19)),o=e(14),i=e(9),a=e(24),l=e(8),s=e(244),_=e(141),h=e(119),c=e(268),u=e(73),d=e(78),b=e(185),g=e(280);r.PlotView=g.PlotView;class m extends s.LayoutDOM{constructor(e){super(e)}static init_Plot(){this.prototype.default_view=g.PlotView,this.mixins(["line:outline_","fill:background_","fill:border_"]),this.define({toolbar:[n.Instance,()=>new c.Toolbar],toolbar_location:[n.Location,"right"],toolbar_sticky:[n.Boolean,!0],plot_width:[n.Number,600],plot_height:[n.Number,600],frame_width:[n.Number,null],frame_height:[n.Number,null],title:[n.Any,()=>new _.Title({text:""})],title_location:[n.Location,"above"],above:[n.Array,[]],below:[n.Array,[]],left:[n.Array,[]],right:[n.Array,[]],center:[n.Array,[]],renderers:[n.Array,[]],x_range:[n.Instance,()=>new b.DataRange1d],extra_x_ranges:[n.Any,{}],y_range:[n.Instance,()=>new b.DataRange1d],extra_y_ranges:[n.Any,{}],x_scale:[n.Instance,()=>new h.LinearScale],y_scale:[n.Instance,()=>new h.LinearScale],lod_factor:[n.Number,10],lod_interval:[n.Number,300],lod_threshold:[n.Number,2e3],lod_timeout:[n.Number,500],hidpi:[n.Boolean,!0],output_backend:[n.OutputBackend,"canvas"],min_border:[n.Number,5],min_border_top:[n.Number,null],min_border_left:[n.Number,null],min_border_bottom:[n.Number,null],min_border_right:[n.Number,null],inner_width:[n.Number],inner_height:[n.Number],outer_width:[n.Number],outer_height:[n.Number],match_aspect:[n.Boolean,!1],aspect_scale:[n.Number,1],reset_policy:[n.ResetPolicy,"standard"]}),this.override({outline_line_color:"#e5e5e5",border_fill_color:"#ffffff",background_fill_color:"#ffffff"})}get width(){const e=this.getv("width");return null!=e?e:this.plot_width}get height(){const e=this.getv("height");return null!=e?e:this.plot_height}_doc_attached(){super._doc_attached(),this._tell_document_about_change("inner_height",null,this.inner_height,{}),this._tell_document_about_change("inner_width",null,this.inner_width,{})}initialize(){super.initialize(),this.reset=new o.Signal0(this,"reset");for(const e of a.values(this.extra_x_ranges).concat(this.x_range)){let t=e.plots;l.isArray(t)&&(t=t.concat(this),e.setv({plots:t},{silent:!0}))}for(const e of a.values(this.extra_y_ranges).concat(this.y_range)){let t=e.plots;l.isArray(t)&&(t=t.concat(this),e.setv({plots:t},{silent:!0}))}}add_layout(e,t="center"){this.setv({[t]:[…this.getv(t),e]})}remove_layout(e){const t=t=>{i.remove_by(t,t=>t==e)};t(this.left),t(this.right),t(this.above),t(this.below),t(this.center)}add_renderers(…e){this.renderers=this.renderers.concat(e)}add_glyph(e,t=new u.ColumnDataSource,r={}){const n=Object.assign(Object.assign({},r),{data_source:t,glyph:e}),o=new d.GlyphRenderer(n);return this.add_renderers(o),o}add_tools(…e){this.toolbar.tools=this.toolbar.tools.concat(e)}get panels(){return this.side_panels.concat(this.center)}get side_panels(){const{above:e,below:t,left:r,right:n}=this;return i.concat([e,t,r,n])}}r.Plot=m,m.__name__="Plot",m.init_Plot()},n function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),c=t(8),o=t(9),n=t(269),a=t(274),l=t=>{switch(t){case"tap":return"active_tap";case"pan":return"active_drag";case"pinch":case"scroll":return"active_scroll";case"multi":return"active_multi"}return null},r=t=>"tap"==t||"pan"==t;class _ extends a.ToolbarBase{constructor(t){super(t)}static init_Toolbar(){this.prototype.default_view=a.ToolbarBaseView,this.define({active_drag:[i.Any,"auto"],active_inspect:[i.Any,"auto"],active_scroll:[i.Any,"auto"],active_tap:[i.Any,"auto"],active_multi:[i.Any,null]})}connect_signals(){super.connect_signals(),this.connect(this.properties.tools.change,()=>this._init_tools())}_init_tools(){if(super._init_tools(),"auto"==this.active_inspect);else if(this.active_inspect instanceof n.InspectTool){let t=!1;for(const s of this.inspectors)s!=this.active_inspect?s.active=!1:t=!0;t||(this.active_inspect=null)}else if(c.isArray(this.active_inspect)){const t=o.intersection(this.active_inspect,this.inspectors);t.length!=this.active_inspect.length&&(this.active_inspect=t);for(const t of this.inspectors)o.includes(this.active_inspect,t)||(t.active=!1)}else if(null==this.active_inspect)for(const t of this.inspectors)t.active=!1;const t=t=>{t.active?this._active_change(t):t.active=!0};for(const t in this.gestures){const s=this.gestures[t];s.tools=o.sort_by(s.tools,t=>t.default_order);for(const t of s.tools)this.connect(t.properties.active.change,this._active_change.bind(this,t))}for(const s in this.gestures){const e=l(s);if(e){const i=this[e];if("auto"==i){const e=this.gestures[s];0!=e.tools.length&&r(s)&&t(e.tools[0])}else null!=i&&(o.includes(this.tools,i)?t(i):this[e]=null)}}}}e.Toolbar=_,_.__name__="Toolbar",_.init_Toolbar()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(1),s=e(270),i=e(273),_=n.__importStar(e(19));class c extends s.ButtonToolView{}o.InspectToolView=c,c.__name__="InspectToolView";class l extends s.ButtonTool{constructor(e){super(e),this.event_type="move"}static init_InspectTool(){this.prototype.button_view=i.OnOffButtonView,this.define({toggleable:[_.Boolean,!0]}),this.override({active:!0})}}o.InspectTool=l,l.__name__="InspectTool",l.init_InspectTool()},n function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t(1),s=t(64),n=t(271),l=t(66),c=i.__importStar(t(19)),a=t(26),r=t(8),_=t(272);class u extends s.DOMView{initialize(){super.initialize(),this.connect(this.model.change,()=>this.render()),this.el.addEventListener("click",()=>this._clicked()),this.render()}css_classes(){return super.css_classes().concat(_.bk_toolbar_button)}render(){l.empty(this.el);const t=this.model.computed_icon;r.isString(t)&&(a.startsWith(t,"data:image")?this.el.style.backgroundImage="url(’"+t+"’)":this.el.classList.add(t)),this.el.title=this.model.tooltip}}o.ButtonToolButtonView=u,u.__name__="ButtonToolButtonView";class d extends n.ToolView{}o.ButtonToolView=d,d.__name__="ButtonToolView";class h extends n.Tool{constructor(t){super(t)}static init_ButtonTool(){this.internal({disabled:[c.Boolean,!1]})}get tooltip(){return this.tool_name}get computed_icon(){return this.icon}}o.ButtonTool=h,h.__name__="ButtonTool",h.init_ButtonTool()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1).__importStar(t(19)),o=t(65),s=t(9),a=t(69);class r extends o.View{get plot_view(){return this.parent}get plot_model(){return this.parent.model}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>{this.model.active?this.activate():this.deactivate()})}activate(){}deactivate(){}}i.ToolView=r,r.__name__="ToolView";class _ extends a.Model{constructor(t){super(t)}static init_Tool(){this.prototype._known_aliases=new Map,this.internal({active:[n.Boolean,!1]})}get synthetic_renderers(){return[]}_get_dim_tooltip(t,e){switch(e){case"width":return`${t} (x-axis)`;case"height":return`${t} (y-axis)`;case"both":return t}}_get_dim_limits([t,e],[i,n],o,a){const r=o.bbox.h_range;let _;"width"==a||"both"==a?(_=[s.min([t,i]),s.max([t,i])],_=[s.max([_[0],r.start]),s.min([_[1],r.end])]):_=[r.start,r.end];const l=o.bbox.v_range;let c;return"height"==a||"both"==a?(c=[s.min([e,n]),s.max([e,n])],c=[s.max([c[0],l.start]),s.min([c[1],l.end])]):c=[l.start,l.end],[_,c]}static register_alias(t,e){this.prototype._known_aliases.set(t,e)}static from_string(t){const e=this.prototype._known_aliases.get(t);if(null!=e)return e();{const e=[…this.prototype._known_aliases.keys()];throw new Error(unexpected tool name ‘${t}’, possible tools are ${e.join(", ")})}}}i.Tool=_,_.__name__="Tool",_.init_Tool()},n function _(o,b,t){Object.defineProperty(t,"__esModule",{value:!0});const n=o(1);o(67),n.__importStar(o(66)).styles.append(‘.bk-root .bk-toolbar-hidden {\n visibility: hidden;\n opacity: 0;\n transition: visibility 0.3s linear, opacity 0.3s linear;\n}\n.bk-root .bk-toolbar,\n.bk-root .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: center;\n -webkit-align-items: center;\n user-select: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n.bk-root .bk-toolbar .bk-logo {\n flex-shrink: 0;\n -webkit-flex-shrink: 0;\n}\n.bk-root .bk-toolbar.bk-above,\n.bk-root .bk-toolbar.bk-below {\n flex-direction: row;\n -webkit-flex-direction: row;\n justify-content: flex-end;\n -webkit-justify-content: flex-end;\n}\n.bk-root .bk-toolbar.bk-above .bk-button-bar,\n.bk-root .bk-toolbar.bk-below .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-toolbar.bk-above .bk-logo,\n.bk-root .bk-toolbar.bk-below .bk-logo {\n order: 1;\n -webkit-order: 1;\n margin-left: 5px;\n margin-right: 0px;\n}\n.bk-root .bk-toolbar.bk-left,\n.bk-root .bk-toolbar.bk-right {\n flex-direction: column;\n -webkit-flex-direction: column;\n justify-content: flex-start;\n -webkit-justify-content: flex-start;\n}\n.bk-root .bk-toolbar.bk-left .bk-button-bar,\n.bk-root .bk-toolbar.bk-right .bk-button-bar {\n display: flex;\n display: -webkit-flex;\n flex-direction: column;\n -webkit-flex-direction: column;\n}\n.bk-root .bk-toolbar.bk-left .bk-logo,\n.bk-root .bk-toolbar.bk-right .bk-logo {\n order: 0;\n -webkit-order: 0;\n margin-bottom: 5px;\n margin-top: 0px;\n}\n.bk-root .bk-toolbar-button {\n width: 30px;\n height: 30px;\n background-size: 60%;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center;\n}\n.bk-root .bk-toolbar-button:hover {\n background-color: #f9f9f9;\n}\n.bk-root .bk-toolbar-button:focus {\n outline: none;\n}\n.bk-root .bk-toolbar-button::-moz-focus-inner {\n border: 0;\n}\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button {\n border-bottom: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button.bk-active {\n border-bottom-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button {\n border-top: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button.bk-active {\n border-top-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button {\n border-left: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button.bk-active {\n border-left-color: #26aae1;\n}\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button {\n border-right: 2px solid transparent;\n}\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button.bk-active {\n border-right-color: #26aae1;\n}\n.bk-root .bk-button-bar + .bk-button-bar:before {\n content: " ";\n display: inline-block;\n background-color: lightgray;\n}\n.bk-root .bk-toolbar.bk-above .bk-button-bar + .bk-button-bar:before,\n.bk-root .bk-toolbar.bk-below .bk-button-bar + .bk-button-bar:before {\n height: 10px;\n width: 1px;\n}\n.bk-root .bk-toolbar.bk-left .bk-button-bar + .bk-button-bar:before,\n.bk-root .bk-toolbar.bk-right .bk-button-bar + .bk-button-bar:before {\n height: 1px;\n width: 10px;\n}\n’),t.bk_toolbar="bk-toolbar",t.bk_toolbar_hidden="bk-toolbar-hidden",t.bk_toolbar_button="bk-toolbar-button",t.bk_button_bar="bk-button-bar",t.bk_toolbar_button_custom_action="bk-toolbar-button-custom-action"},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(270),n=e(145);class o extends s.ButtonToolButtonView{render(){super.render(),this.model.active?this.el.classList.add(n.bk_active):this.el.classList.remove(n.bk_active)}_clicked(){const e=this.model.active;this.model.active=!e}}i.OnOffButtonView=o,o.__name__="OnOffButtonView"},n function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),s=t(70),l=t(66),n=t(96),a=i.__importStar(t(19)),r=t(64),_=t(9),c=t(15),h=t(8),u=t(69),d=t(275),v=t(276),b=t(277),p=t(269),g=t(272),m=t(279),f=t(145);class w extends u.Model{constructor(t){super(t)}static init_ToolbarViewModel(){this.define({_visible:[a.Any,null],autohide:[a.Boolean,!1]})}get visible(){return!this.autohide||null!=this._visible&&this._visible}}e.ToolbarViewModel=w,w.__name__="ToolbarViewModel",w.init_ToolbarViewModel();class y extends r.DOMView{initialize(){super.initialize(),this._tool_button_views={},this._toolbar_view_model=new w({autohide:this.model.autohide})}async lazy_initialize(){await this._build_tool_button_views()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.tools.change,async()=>{await this._build_tool_button_views(),this.render()}),this.connect(this.model.properties.autohide.change,()=>{this._toolbar_view_model.autohide=this.model.autohide,this._on_visible_change()}),this.connect(this._toolbar_view_model.properties._visible.change,()=>this._on_visible_change())}remove(){n.remove_views(this._tool_button_views),super.remove()}async _build_tool_button_views(){const t=null!=this.model._proxied_tools?this.model._proxied_tools:this.model.tools;await n.build_views(this._tool_button_views,t,{parent:this},t=>t.button_view)}set_visibility(t){t!=this._toolbar_view_model._visible&&(this._toolbar_view_model._visible=t)}_on_visible_change(){const t=this._toolbar_view_model.visible,o=g.bk_toolbar_hidden;this.el.classList.contains(o)&&t?this.el.classList.remove(o):t||this.el.classList.add(o)}render(){if(l.empty(this.el),this.el.classList.add(g.bk_toolbar),this.el.classList.add(f.bk_side(this.model.toolbar_location)),this._toolbar_view_model.autohide=this.model.autohide,this._on_visible_change(),null!=this.model.logo){const t="grey"===this.model.logo?m.bk_grey:null,o=l.a({href:"https://bokeh.org/",target:"_blank",class:[m.bk_logo,m.bk_logo_small,t]});this.el.appendChild(o)}const t=[],o=t=>this._tool_button_views[t.id].el,{gestures:e}=this.model;for(const i in e)t.push(e[i].tools.map(o));t.push(this.model.actions.map(o)),t.push(this.model.inspectors.filter(t=>t.toggleable).map(o));for(const o of t)if(0!==o.length){const t=l.div({class:g.bk_button_bar},o);this.el.appendChild(t)}}update_layout(){}update_position(){}after_layout(){this._has_finished=!0}}function T(){return{pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}}}e.ToolbarBaseView=y,y.__name__="ToolbarBaseView";class k extends u.Model{constructor(t){super(t)}static init_ToolbarBase(){this.prototype.default_view=y,this.define({tools:[a.Array,[]],logo:[a.Logo,"normal"],autohide:[a.Boolean,!1]}),this.internal({gestures:[a.Any,T],actions:[a.Array,[]],inspectors:[a.Array,[]],help:[a.Array,[]],toolbar_location:[a.Location,"right"]})}initialize(){super.initialize(),this._init_tools()}_init_tools(){const t=function(t,o){if(t.length!=o.length)return!0;const e=new c.Set(o.map(t=>t.id));return _.some(t,t=>!e.has(t.id))},o=this.tools.filter(t=>t instanceof p.InspectTool);t(this.inspectors,o)&&(this.inspectors=o);const e=this.tools.filter(t=>t instanceof b.HelpTool);t(this.help,e)&&(this.help=e);const i=this.tools.filter(t=>t instanceof v.ActionTool);t(this.actions,i)&&(this.actions=i);const l=(t,o)=>{t in this.gestures||s.logger.warn(Toolbar: unknown event type ‘${t}’ for tool: ${o.type} (${o.id}))},n={pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}};for(const t of this.tools)if(t instanceof d.GestureTool&&t.event_type)if(h.isString(t.event_type))n[t.event_type].tools.push(t),l(t.event_type,t);else{n.multi.tools.push(t);for(const o of t.event_type)l(o,t)}for(const o of Object.keys(n)){const e=this.gestures[o];t(e.tools,n[o].tools)&&(e.tools=n[o].tools),e.active&&_.every(e.tools,t=>t.id!=e.active.id)&&(e.active=null)}}get horizontal(){return"above"===this.toolbar_location||"below"===this.toolbar_location}get vertical(){return"left"===this.toolbar_location||"right"===this.toolbar_location}_active_change(t){const{event_type:o}=t;if(null==o)return;const e=h.isString(o)?[o]:o;for(const o of e)if(t.active){const e=this.gestures[o].active;null!=e&&t!=e&&(s.logger.debug(Toolbar: deactivating tool: ${e.type} (${e.id}) for event type ‘${o}’),e.active=!1),this.gestures[o].active=t,s.logger.debug(Toolbar: activating tool: ${t.type} (${t.id}) for event type ‘${o}’)}else this.gestures[o].active=null}}e.ToolbarBase=k,k.__name__="ToolbarBase",k.init_ToolbarBase()},n function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(270),n=e(273);class u extends s.ButtonToolView{}t.GestureToolView=u,u.__name__="GestureToolView";class _ extends s.ButtonTool{constructor(e){super(e),this.button_view=n.OnOffButtonView}}t.GestureTool=_,_.__name__="GestureTool"},n function _(o,t,n){Object.defineProperty(n,"__esModule",{value:!0});const e=o(270),i=o(14);class s extends e.ButtonToolButtonView{_clicked(){this.model.do.emit()}}n.ActionToolButtonView=s,s.__name__="ActionToolButtonView";class c extends e.ButtonToolView{connect_signals(){super.connect_signals(),this.connect(this.model.do,()=>this.doit())}}n.ActionToolView=c,c.__name__="ActionToolView";class l extends e.ButtonTool{constructor(o){super(o),this.button_view=s,this.do=new i.Signal0(this,"do")}}n.ActionTool=l,l.__name__="ActionTool"},n function _(o,e,t){Object.defineProperty(t,"__esModule",{value:!0});const i=o(1),l=o(276),s=i.__importStar(o(19)),n=o(278);class _ extends l.ActionToolView{doit(){window.open(this.model.redirect)}}t.HelpToolView=_,_.__name__="HelpToolView";class r extends l.ActionTool{constructor(o){super(o),this.tool_name="Help",this.icon=n.bk_tool_icon_help}static init_HelpTool(){this.prototype.default_view=_,this.define({help_tooltip:[s.String,"Click the question mark to learn more about Bokeh plot tools."],redirect:[s.String,"https://docs.bokeh.org/en/latest/docs/user_guide/tools.html"]}),this.register_alias("help",()=>new r)}get tooltip(){return this.help_tooltip}}t.HelpTool=r,r.__name__="HelpTool",r.init_HelpTool()},n function _(A,g,o){Object.defineProperty(o,"__esModule",{value:!0});const C=A(1);A(67),C.__importStar(A(66)).styles.append(‘.bk-root .bk-tool-icon-box-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg0kduFrowAAAIdJREFUWMPtVtEKwCAI9KL//4e9DPZ3+wP3KgOjNZouFYI4C8q7s7DtB1lGIeMoRMRinCLXg/ML3EcFqpjjloOyZxRntxpwQ8HsgHYARKFAtSFrCg3TCdMFCE1BuuALEXJLjC4qENsFVXCESZw38/kWLOkC/K4PcOc/Hj03WkoDT3EaWW9egQul6CUbq90JTwAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-box-zoom {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg82t254aQAAAkBJREFUWMPN11+E1FEUB/DPTFn2qaeIpcSwr5NlUyJiKWVXWUqvlUh/iE3RY9mUekkPPURtLKNRrFJEeuphGfUUaVliiX1aVjGs6aG7+XX9ZnZ+d2fTl2vmnHvPPfeee/79Sk+may2/UQq/q7Qu+bAJoxjHIKqB/wlfUMcMVqI9bLZ+DGIKwzlzQ2GcxCx2xwvKOUKlaHTiX8bHNspjDONHkOmJBW5jIof/FvPh/06MZOb6cRc7cGn1AKUE5cdzlM/gAr5F/O24H3xkFRfxAbVygvK+cIsspjGWo1zgjeFpxL+BvnLw7laBA4xjIFJwrgu52DoVjKdY4HBEX8dSF3JLYe1fe6UcYCii3xWQjdfuSTnAtoheKCC7GNED5Zx4L4qt61jbTLHA94geKSC7P7ZeShQ0Inoi1IJuEOeORooFXkV0FZNdZs5qvFfKAeqYy7nZ6yg//HG0MBfffh71lFrQDCW2EvEP4mt4okZUDftz9rmGZkotmMxJRtlisy+MTniAWrty3AlXw0hFM2TD89l+oNsoOJXjbIs4EpqNtTCLXbiZ0g+M4mFObj8U3vsNjoZCVcmk60ZwthpepLZkB/AsivWfOJZxtpUQHfWib7KWDwzjeegBZJSdKFiE2qJTFFTwElsi/unQ/awXrU4WGMD7nOJxBY/1EO2iYConq93CHT1GOwucjdqnRyFz+VcHmMNefMY9nNkA3SWUOoXhQviSWQ4huLIRFlirFixnQq/XaKXUgg2xQNGv4V7x/RcW+AXPB3h7H1PaiQAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-zoom-in {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsUBmL8iQAAA2JJREFUWMO9l12IlFUYx3//MzPrLpSjkm5oN4FFIWVEl66IQlFYwtLOzozsjHdGRSCRF0sfBEXRVV0FQuQiLm5CZNBFgRRaRLVFhbJ2EdiN5gbK7toObTPn6eYdPTvNzPvOBz5Xh/ec5/n/n89zXtEHmZqeSXSuXBz/3zfdKvBWJHQrwZuRcP0El+QkbQXeBX6WZEgm6TtJk5lM5o4Lc+cV6qpf4Ga20Tm338zeATItVK9Ker6yvPzp4NDQ3+XieGsCU9MzTYumGbhz7m4ze9/MHgvBgItACrgfGAj2jgAvAYs3wlEujjc13kii8YyZrXXOfWhmo9GnFUlvOOemarVapVqtkslksmb2KjARqL62ecuWN9NxbRInzrldAXhV0uFSIfdew7G/gNLU9MwS8CwSmE3Oz88fcXG5blfpqVRq0Ix8VIAAX0XgrVL7HDCHGcCaWrV60LUBN8Dae58aQIxEqcA592I9M610JL0cpG/U9TIHJNKY3RV5z0R+7Nd4HZ0P1g/2RMBuegLAsRMnb4vT8d5vqKfMzOgtAlADrkmqGywmiMBTwfr3dC9j1Xv/r6Tvg/5/5ejxE6cO7M9faVbQZrYNOFSPmqQvVo9FKexvi5uWX58943aM7DwAfBDY+FbSCxP5sdkGx55GeguzrUEXPaSo2pFkAbiSZQCAzZJOmdkjwd6SpB/M7KykQTPbA2wDhoIzRzcNDx9MJwGNIXdJ0mEzmwbujL7dbma7gd03A7lKfnTOvf74nl0r6bonTUbujRSUCrm2d4L3/kvn3JPe+8+BDW2i9o+kT7z3kxP5sYsA6W47oE64TsR7P9tQL4vA2mh9WdIscKxUyJ0M7aR7acOGzikD65EQLEjaa2ZXzMwDFeB6qZBbbLTRE4EGeSaozNOZgYFf8qP7lmIvs354n0qlHpB0T7B9Ogl4IgJJrmjv/SiQjbrkD+BMUkfSbYATPdckrTOzkciWAXOlQu5cYgLdPEIapud9wMOR9zVJH3ViKx333mtHMJvNuoWFhZ3A+ojMcja77njXBEKwJJfTcqUyCIQ34Mf7nnh0paMnXacFuGoC1mr3AtuDfLzd8Zuyl+rfuGn4HLAD+Az4qZQf+61TAj0Noj8vX6oC35SL43u7teG6rf5+iXppwW7/JUL5D03qaFRvvUe+AAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-zoom-out {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsHgty9VwAAA0FJREFUWMO9l09oXFUUxn/fmXlpItppi22k7UJBRSlVkCytSAuKUloIdjKT0El3FXVXdVFKRVAQV7qQohsNwdA0UFvBhYtqUVyIVlRaogtFQVq7qSTVjA3z3nHzBq/jvPmTN/Ss7rv3nvN99/y794kByMzcfE/7picn/jenmwWeRUI3E7wdCRskuCSTdDfwBvCtJEdySV9KOhpF0e0/LF5SqKtBgbv7ZjObcvfXgShD9Zqk5+orKx8Oj4z8NT05kU1gZm6+bdK0Azezu9z9hLs/HoIBvwAF4H5gKFh7B3gBWFY3460kWve4+3oze9fdx9OpVUmvmNlMHMf1RqNBFEUldz8OHAxUX9q6bduryut+Sfvc/Wz62ZD0fK1afjND9y3gGSRwv1GMojstTxUUCoVhdyopEYDzKXjWwZ4FFnEHWBc3Goet00m7lZlZYQixKw0FZnakGZksHUnHgvCN5/KARBH37enpOVg58H13HV0Kxg/kIuD/ngSA2ZMLt3bTSZJkUzNk7k4+D0AM/CGpaXCyBw/sC8Y/qZd2GpZiuL9YLN4Sx/HpoP5/c/exQ1OVq+1yyt13SLoArEsJnMjlgfOffvK3u58Kprab2QezJxfG2iTzUzI70wRPG9jbmpmb95SNB9mpzp7/j2yVdNbdx4K565K+cvfPJQ27+x5gBzAS7Hlvy+jo4WIvoC3kWpcvS3rR3eeAO9K529x9N7C7zX6AC2b28hN7Hl1Vt44niVq13LUjmtlYkiQfA5s6eO+GpDNJkhw9NFX5ueNt2ARodyF1IHIN2JiOl4H16fiKpK+B2Vq1vBAqFAf4IJkGNiIhWJK0192vunsC1IE/a9XycquNXARa5OnApeeioaHvKuP7r3dTGsiLqFAo7JR0T7B8rhfwXARa2us4UEqr5Ffgs151i/08oTNKdIO770ptObBYq5Yv5ibQq/sl3Qc8lJ4+lnSqH1vFfp9koZRKJVtaWnqkWXqSVkqlDe+vmUDWpZMlK/X6MBDegKf3P/nYaj8ErN9fqZBYEsf3Ag8G8Xit33BaniTcvGX0IvAw8BHwTa1y4Md+CeRqRL9fudwAvpienNi7Vhu21uwflOT+L+i1X2TJP57iUvUFtHWsAAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-help {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABltpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPHRpZmY6Q29tcHJlc3Npb24+NTwvdGlmZjpDb21wcmVzc2lvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDNDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMTIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDMjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOnN1YmplY3Q+CiAgICAgICAgICAgIDxyZGY6U2VxLz4KICAgICAgICAgPC9kYzpzdWJqZWN0PgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxNjoxMToyOCAxMToxMTo4MjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+UGl4ZWxtYXRvciAzLjY8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cphjt2AAAAT7SURBVFgJxRdbaFxFdGb2bhui227BWrsVKYgf2kJUbP9EUPuzEB803WTXJjH61Q/7Ya1+CMYKEVTsh4J/EpvY7BoabUiNiA8s1p+4KIhpoUUEselHqyS76TbZ3HuP58ydc3d2u4+IkQxczpz3mZkzZ86VYpXjvenpjZsLhUcliE4AuUuASAgptmt1EFdwPiclzIIUUwubNn17OJlcXo1p2UpodHRiux9xB1Eug1+slbzhFxGOKc851tu7/0oznYYBDA8Pt0U2tL8KQryIq2tvZqQhD0QJHRz3yqWhgYGBpXpydQMwqz6NCnurleCSADkJEfgKfOePqL80R/wV1ZaQyr1LenKfkPCkEPKeaj0xg7vxVL3duCmA0Vyuw/fl52hgBxsBED+h4Cv9z3R/zbRm8MTJTx7HQN7GQB6w5C4L4SX7M5lfLBpurjXMyvNIShiyi0l1pL8n9b7EDGPR8fHxzSsQ6XDB3618/xqo6Pk25V5MpVJllgHM1BO58RdQ612kOYZ+GXdij70TYQB05mpj+1kU5G2fB+l3PZtOf8NGx6ambnMXb3yAxg8wjSEG6OKKR9oicBQD+ZvpH2Wzj0lQpxCPG9qMv1x6hHNCsSAlHM7ZOa682vlI9tRDbvHGbD3nZAPpDoD/3JIrLpAs26UFkC3EMUA99hpfGtEBfJjNJnS2Gwnadnvl+Xw+iuc3DAJuNyIaSCHpilVldyDjjUxj3WDZIAhxhHHyRcdNuA7AAfUaXzVKODpzFiZ4/uLvh5G+m2no+C/pyIf7MqlEJB7bpqR6nXkEUfbeawuLaZsW2ISfNQ2vtaktQlGFQyIVGT0o2+2EC4iQNGwjBIN9qdQ5Qg4mk4X4rW3vCClLtowE2FOFUxKDfNmiZci3ovKKRFPh4FK9q4Zbdr+lKKJiA13TcHR2dmLBgdmQ0GAS2MZaEowY+XbAk09IvgtYZGp16SyvFhaHcIUh645t8T9DBCcnz5zZ4hZLu3DzK2QlL1QQa0Y+pHiJKPSuOGj3PmZTheM5w2TwqBxnvBZOTk7G5gvXJ5Aelms8wnJURL+olSWcfEhf6gDoUXPMq6ZlqbzWU2pE+3hi4s6F68tfIj9cBMlikr7Z0/P0b/X0yIcUXsDCF1WhtL4OROHaXk+xlkbV0Cu732Nmhc4peaWSg73pA8dq5RkvO37ldUTfXCKZv2q45MkhvG87WQEzpCCUSvV1d9GONBy3lMvgKSwrZig8gjAietWY0QriylO2jIo4yVbOSb7KB/qmI9BPKjHpSSXYauRyn92Nq9/Kcrj13x3s3v8D481glQ/0raiNYgX9njPSBOImbrHZePl+tfFmc9sH+Xaoh8NjOKSVdDMhjjYzQLy+dFceH5+IJQf9VYXX4tROg4ZFU8m31M3mfPEqUoJqCGJfvWpo2xnNfdrhC28n06SCeSzNZxlvBINGRXCtKS7EY1uV6V7HWAm38y1cXaXsMcOCvr9ySPj+af7A1U2HJXHzVNvUXVLIGyPf+jV0pf8GHoN+TLAyPkidTCi2RpPApmnR0Bd1zGRaB/B8Oj2HSw7LLbVR1MmskW8RdEWVXSJf3JbpAMgRtc4IZoxTh9qotQjCasm46M0YX9pV1VmbpvRH5OwwgdRtSg2vKaAz/1dNKVtb17Y8DCL4HVufHxMOYl1/zTgIgiYvBnFKfaNp3YjTdPz3n9Na8//X7/k/O1tdwopcZlcAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-hover {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4oVHp0SwAAAQJJREFUWMPtlsENgzAMRb8RQ5VJItFDOgaZAMaAA0iZpN3KPZSoEEHSQBCViI/G8pfNt/KAFFcPshPdoAGgZkYVVYjQAFCyFLN8tlAbXRwAxp61nc9XCkGERpZCxRDvBl0zoxp7K98GAACxxH29srNNmPsK2l7zHoHHXZDr+/9vwDfB3kgeSB5IHkgeOH0DmesJjSXi6pUvkYt5u9teVy6aWREDM0D0BRvmGRV5N6DsQkMzI64FidtI5t3AOKWaFhuioY8dlYf9TO1PREUh/9HVeAqzIThHgWZ6MuNmC1jiL1mK4pAzlKUojEmNsxcmL0J60tazWjLZFpClPbd9BMJfL95145YajN5RHQAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-crosshair {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADEUlEQVRYR81XXVIaQRCeHqug8CXmBNETaE4gniDwIgpVspxAbxC9ATkBkCpQ8gKeQDiB5AQxNyAvUlrldr7eHxyGXZi1rMJ5opbp7m++7un+htSGF204vsoMoNXrlzSpfWa1oxQfhAegCZGaEtPorHo8znIoJwCt6+td8uk7ApUQCIHTF4BNAWzImq8ap6cP68CsBdDp9i9ZqXM7ML79g/EnCWD+jgMKENKqWT+tXK0CkQqgNRjs0OxpQIqKhoMxaG6/6JeRnK7T6yO2UvVqhYSlLX+ryORfgKn9ORDFIy7ky41yGcwsr0QAQfDH5zucOswx819fs4egI9OFCcD8DjBF7VNbEX0JzdWEt3NHSSASAcCxBDqMgt/623kvyTgNgNjJIfTjk4D4FqaJR1715MjmYAmA5Bx3AwUXQL+t105KaTlcBSC26XRvhjEIoLiq1yqXpr8FAGG16/ug4IT27fxBWu7EiQuAiImJpEMKE6nYM30uAIDDttSUOPfJP7JzbjPhAiBIh9QE67vIvoOi9WJfCwDavf40ulpjbCqmUf+W753ezURuh7Dg1SqflwAEHU6pgfyBq9Y4qx0LG++2fnZ/eUzcstmdM2AWH+jfc+liWdBJfSENf8Lifi3GVwC9mybOfi5dzatWVrbbLIHNva8p5h/16gkaFiLGGxbufkoE6XguwePiXLF3XmMfCUCUAqtKXU7sumd1CowOuJEi3Pg1FBpjitIGhyvVSfvmjci6ZR+rFQfDiPVE2jFYeICQ+PoewwjC5h7CZld6DBdyu6nDSKgzOyIMhmhK5TTqXYbRorZYM46TmpKAAOrGWwSJJekSB1yqJNOzp1Gs7YJ0EDeySDIMtJbQHh6Kf/uFfNFZkolJICRmz0P8DKWZuIG2g1hpok+Mk0Qphs0h9lzMtWRoNvYLuVImUWrmPJDlBKeRBDfATGOpHkhw670QSHWGLLckmF1PTsMlYqMJpyUbiO0weiMMceqLVTcotnMCYAYJJbcuQrVgZFP0NOOJYpr62pf3AmrHfWUG4O7abefGAfwH7EXSMJafOlYAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-lasso-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgwlGP1qdAAABMBJREFUWMO9V1uIVVUY/r61z57ZMx4DnbzgkbQXL5iCJphlWdpIGY4jpFBkEiU9ZNaDRRcITcIwMwgxoQtU2IMXdAZfMjFvpERXYiSbysyBEXFmyuHMnLP32uvrwT2xnY5nxvHQ93Jg7fWv71/r//7L4a59TRgqJk+Z6v3a+sv0OI5nk5wu6VaSVZImAThHsgjgrKTvM5nMUWvtmf5n8HodCIKgOgzDhc65pSTrJQWDsSNpJX1ljHnDOfdT37oZLLHv+8OMMasKhcIJ59xHAJYMlhwAJGUAzJfUTHLFuFzOG5QDU6dNMyQfs9Yedc5tBpAD4IYYNQGoBrDtQnt7/b0LFrJsCHzfn2itfQfAnZLiazytA3AaQAuAiwDaEgeNpGkkswAWSBqRONB38b88z5uTKePt6iiKXkk8jq+iJC5LOmiMaTLGHLPWhmWeHr7vV0dRtATAapAzIVmSo51zyzIlbm2stesFPA6pKk0r6Ryg93y/ek8YFvPOOTg3cDSiKCoC2OP7/rEoirYm4rUkF12lAWNM1lr7lqQn0+QA8gI2jBg5cj6Aj8OwmB+KAKIoukhyp6SRJAUgl0ndPLDWPi9pJQCbuviXvu+/GIZhW1dnJ24UJFuTjCCA2ADA8sYGWmsXS3qmL94kDYAtkh4Nw7ANlQJ5U6INT1KrAYC9zQdykl7nFSj5fXp5Y8NWVBhy7mUAjqShMYdMXV2dJ2klyRwAJ8lIeuGWCRMP7N7frEqSG2OmAFhKshNAp5wrmO7u7jEAngPQm1S2z2pqapr+OPt7XEly0oxwzq2RdFmSD2AMgKKJouhhAL4kA+Cs53l7e3t7uytJHgRBreTWkXwkKVJnJD0B4GAGwIJE9R6AFufc6UqSZ7PZbD6ff5dkA4CQZEHSqwAOISmXtwGIE+F1SeqqIP8d+Xz+C0mLJYWSAODteXffczjdDQNJ0BWMCoLg5gqIbRTJNwHsljQhUb0luWPM2LE7Thw/9m/5NCT/TByxAOYWi8X6/gdWV1dnfN8fNRBxJpMZTXKdc+6IpFVJWAEgkvSJpA0X2tvtVTaSjgOYBCAEEADYSHK87/sfhmEYA9gShuEDkgzJHyWtB/B1irQ2juP7ADxkrX0wOUOpzmdpzEY590HJ7Ni1r2kSyZOSiv2+hSRjSTXp/QAukzySNJOJkmalyNIl10hqMcasdc61XDNcQRD8BnITgNp+36r6kfcNFMMlLQGwTNLMEuQGQBfJl2bdPru+HDkAZAqFQux53jZHEsC6aw0eg2gylNRBcqcx5v04ji999+03AwsWAOI4Lsy9a94WkisAnE5a5WCJYwCfA1g7LJudI2lTHMeXBm1faiQzxkyRtF3S5CTupeAB+KG2tnZFT0/P30NO2VKLzrmfAbwGMipjG5Oc0dPTc0Md05SZ5U4Q2FxChErtEYD7jTGNQ3UgM8Asv90Yc9I5LSKRlXSI5CxJa0jWSALJjKRnAewfkniT+vwf7N7fXHK9rq7O7+jo+BTA/NRrdBpjnnLOnUrvXd7YMPQXSBunneno6IhIHgYwW1JtkgmBpBkATlVMAwOk3nFJ+VSoqgCMr6gIy2FcLtdKspAedyQN/98caDt/3kpyabUmf8WvG/8A1vODTBVE/0MAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-pan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4lKssI9gAAAOtJREFUWMPVll0KwyAMgNPgoc0JzDX2Mtgp3csKErSamGabIEUo/T6bHz0ezxdsjPJ5kvUDaROem7VJAp3gufkbtwtI+JYEOsHNEugIN0mgM1wtsVoF1MnyKtZHZBW4DVxoMh6jaAW0MTfnBAbALyUwCD6UwEB4VyJN4FXx4aqUAACgFLjzrsRP9AECAP4Cm88QtJeJrGivdeNdPpko+j1H7XzUB+6WYHmo4eDk4wj41XFMEfBZGXpK0F/eB+QhVcXslVo7i6eANjF5NYSojCN7wi05MJNgbfKiMaPZA75TBVKCrWWbnGrb3DPePZ9Bcbe/QecAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-xpan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4X4hxZdgAAAMpJREFUWMPtlsEKwjAMhr/pwOOedINJe/PobWXCfAIvgo/nA4heOiilZQqN2yE5lpD/I38SWt3uD9aMHSuHAiiAAmwaYCqoM/0KMABtQYDW11wEaHyiEei28bWb8LGOkk5C4iEEgE11YBQWDyHGuAMD0CeS30IQPfACbC3o+Vd2bOIOWMCtoO1mC+ap3CfmoCokFs/SZd6E0ILjnzrhvFbyEJ2FIZzXyB6iZ3AkjITn8WOdSbbAoaD4NSW+tIZdQYBOPyQKoAAKkIsPv0se4A/1UC0AAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-ypan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4anK0lywAAAMVJREFUWMPtlzEKwzAMRX/S7rlpIMXeOnaLaME36FLo8XqCdNFghGljyc4kgQi2Q/SUj0F/eL7eMMTKz6j9wNlYPGRrFcSoLH4XxQPvdQeYuPOlcLbw2dRTgqvoXEaolWM0aP4LYm0NkHYWzyFSSwlmzjw2sR6OvAXNwgEcwAEcwAEcwAEcoGYk20SiMCHlmVoCzACoojEqjHBmCeJOCOo1lgPA7Q8E8TvdjMmHuzsV3NFD4w+1t+Ai/gTx3qHuOFqdMQB8ASMwJX0IEHOeAAAAAElFTkSuQmCC");\n}\n.bk-root .bk-tool-icon-range {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABCJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjMyPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4zMjwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxkYzpzdWJqZWN0PgogICAgICAgICAgICA8cmRmOkJhZy8+CiAgICAgICAgIDwvZGM6c3ViamVjdD4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDQtMjhUMTQ6MDQ6NDk8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPlBpeGVsbWF0b3IgMy43PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrsrWBhAAAD60lEQVRYCcVWv2scRxSemZ097SHbSeWkcYwwclDhzr1Q5T6QE1LghP6BGNIYJGRWNlaZItiFK1mr+JAu4HQu0kjpU8sgF3ITAsaFg0hOvt2Zyfvmdsa7a610Unx44Zgf773vvfneezPHNzrbhn3CT3xC3wPXYOC8LDzqdi8YY/gwh4BeknS/2th6dr2kf94AOp3OFyWgMyziOPbMDxV9FTtJnl1ut795Xd0/YQ0/vtYQwMT1KXWCfr2IjOWwtNehwN4xL9ykTrm6Pzl58yLn3J+mKh9mXbT3uRjGEDph+O8/TjfP5dBp7Ha7AX7O3o5nZeD/0E/OGyXntDgzA0X6qmCnrVutVlrUWV9f/3xo+pwhGDhvEPHOjoxnZjJggXmMHzBQ7NGNp9vxk61fr0HR7e/u7pZzCGHlc7qwBYYTT7tJYSx1AQzppyFPft5apta9w7SKcn0b7P7+/jCsDQ5mbc0dCmIJGDN0ehdcjsmkm6A6KUeKFOTE11PLxrC7Ukqh3ylL2fT0NAP9q6ur6rRCJJYsbKB0JsbCKMuy+xREePDyxQPCz+Crlw062QcA5wBOOt1l6vIl2WiI9F1fN6Q+BBqit6hEC4Hk08GQJMn4myjSP7RavVxgdaVUh/3U6HCMsPr9pYnJKRziHtWQ+un58+hGs6nsjQSjpuTyKGN3CX+FBwHXSiEVgjP+O8X6N12kIePES+GzTKAkGbNp8yJsGUMVzz8jPKReiyAQRimy5/cjye5RpF8utFp/+nwmT7d/NMzcFkS7yjJNGDaPURQxIQThEQy0SyF4l5WJYYhBa816vZ6dU7A6CAhbZVow/pDe0O9hVOoCi13r4BgBAvJHqMSQL2vE/iH6IAXEwgrRVUmBoRRwnwJQT98xEeVeSUyB4dJ5nwJBKdCFFGRmUCcu7rwIYypCTblaChuNBhWODrman5ub+4v0rMNBt8z6Ezh7GksJQpCbm79cMQE7QBFm/X6f0rjWnv8WRYg/QdbUpwDAEBy8vPyA8rNGzg3a8MiElwiM7dAtRqNoNptjGPM1laVxP9umWEMGLOKhKUOJDtBwDmzsw9fC/CzHr9SGuCTi2LbbKvVtmqXpCjMihBFa79Wrt5fGx9PDzc3fmu32Lf8qFliwU9emKhBSp+kRKn/hu9k1COEDbFdt/BoKWOAkuEbdVYyoIXv8+I/QK9dMHEb1Knb7MHOv8LFFOsjzCVHWOD7Ltn+MXCRF4729vWMDK+p8rLkvwjLg4N4v741m5YuwCI9CvHp1Ha8gFdBoPnQAkGsYYGxxcfEI7QQlFCTGUXwjAz4tWF+EpymOWu7fglE7qsOvrYE6g4+9/x/vhRbMdLOCFgAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-polygon-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjc1OfiVKAAAAe1JREFUWMPt1r9rU1EUB/DPK0XbqphFHETo4OCiFhwF0V1KHbRSROLqon+AUMVRRFBwEbRFMBiV+mMW/wIxi5OD1kERRVKRJHUwLvfBTZrU5OWBGXLgQu7Jfe98z/ec7z0vKa88b2q1BDtRHdAPBaylm1NzsxsOjPnPNt6WSWprbft+/c3I3zOAjhT1Y4+fvcjEQJIXnVECSa+AhqIHqlHH5lWCZoe+Gk4GRgDG86j9SAUdlDBSQaZhlOkuHyoVdJmsw98D1S5fM4NYM1LCpqM+Lwa240oLgmZzpVZvzKT75VLZcqksSZKWlQeAy/iORVwIvh31xvotvK7VG3Px4aWHj3Jl4C2uYSvq+Bn8v6LLbaVWb9zsBiKLCvbiNG7gLm7jAYqbPHMJMziZ9lsKoh8GtqCEVVzHftwJn+TFHp4/hg8BSCYVfMOZoPEv2NZGdy9WCGUr9toDR3E2/H4V6nwRe/BmgN65H1ZhvMuB3XiKIyFoGefwO6ysVkUlrNUNsyAK/jli533Q+Y8cJFvAeXyMS1CI/jiMr/gUtD2LQwMGr4R3p7bY3oQHQ5b38CT4D2AXXg6YcQXHpyYnlqKsi5iOAVSwL9zd7zJ09r+Cpwq72omFMazjT9Dnibym0dTkRDUKrrgwH7MwXVyYB38BstaGDfLUTsgAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-redo {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4itK+dVQAAAaFJREFUWMPt1L1rFFEUBfDfJDaBBSslIFjbaSFp1FJQFMVCHkzhKIqdUYOCoBgErVz8rCwiTDMwBCIKipDWyip/gxAIWAmBgBC0eYFh2Gx2l9lFcA5M8e59782Zc84dWrT435Hs1siLchqn43MS0zgW22vYxjesYjVLw3YjBPKinMUTBOwf8J5fKLGYpWFjJAJ5Uc7gIW6jM6Kim3iNZ1katgYmEL/6I+YasvY7Lg6iRpIX5VF8wuEe/XV8wGf8jN6LWTiAc7iEQ7ucPZ+lYW0vAtfwvlbfwCKW9gpXDOv1mJvZHiSO91MiyYsyiQSuxtpXXM7SsDmM5nlRdrCMMz3sOJWl4Xevc/vwBzdwAl+yNNwZxfRI+GxelK9ikHcwh8d4NNR/YFRES1ZwoTYdR7I0rNf3TzVNIGbmSvR/Bx08mIgCFSVu4l2ltIWD9WxNGR+W8KOynqnZ0rwCeVG+wa0hjrxtWoF5dAfc28V8Mib/n+Nev5dnabg/zgw87aNEN/bHOwVRiRe4Wym9zNKwMKkpgIWKEt24njxiJlq0aPFv4i9ZWXMSPPhE/QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-reset {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4gWqH8eQAABLdJREFUWMPtlktsVGUUx3/nfvfOlLQaY2IiRRMQIRpI0PjamJhoVASDvNpCpYw1vJQYSVwZwIVQF6wwRHmkAUof9ElrI6VqDAXcID4TF0IiYQMkSlTokNCZ+b7jove2t+NMH7rQBWd3v+989/zP+Z8X3Jb/WGQySvUNTQBJESkNguAVYIWqzhaRhwBU9WcR+QXoymazn6jqzUQiMQSQzWZRVdal1vwzAI2tHQBPOuc2AbWTdOyQ53n7nHNfRwee51GzqoIQMCLDpr3x/tLQ0oZzrk5Vj0/BOEBt+KYuOlBVGlrahr0Wob27t3gEjnZ2AyQzmUwHsDgP6J/AYRE553neDwDOuUdU9QngNeCumK4TkRMhZUORcYC1qysLA6iuSQHIwkWLD6lqapQsuSmwTVV3h99I7EcAR462A2xR2Ilq6ehTaejvO1774kuLNALR33eclsaGsQDe3fYegHl43vyNwEeqGl1963mm2jl7YZRTQ82qlWP4HM6ZToC5ztkW4LHQoALru7s6Di5dvlIj/e6ujrEAWoZDn8hmMjXATMACGaAVuBjXTVVXFc/AxhaA+4zvn1DV+eHxVWPMAmvtb5GeMWZyZVhI2rt7qVy2pOh9U1snwIPW2vMi4oWJuBPYHkVAVScPoKmtkzVVK6cEMsyJraHhiCqJqJUwj/JRz7TW1iSSyR2rVyylqa0Ta+24Ic8vXaAEmDFc/l5Z2A/80OibuVyuz/f9ElUdHCmvw82t5HK5h6y1PYhsz2YyGw43t2KtBZHIGwB6+j4rCkBVUdV7gXrggnPuu8h4eP+xMeZS2D0rJYZ6AdAMzAt1b4nI26p6IFZOY8pugijcKSIHVLUK0LyST4vnrVfnWr3mjmP4QTATaERkXkypRFX3isjmuHdRJEK6Ckqquopp06bdKCkp2Sgi7XnGLcg7gzeutwNIiPYc8HixqIrIOlU9ONVIhHPEd851icgSVXUiskVV94gIqoonIt0i8gfQCfwae38e6BWRXuBZz5jZ8VbaOE4EIqlZVUEQBLlkMplS1QER2RwkEnsSyaREDUzyeNsvIhvCMqkH1kdIJ2o+k8iJB1LVVRfjZ6nqqlEAIbdVQGto8Lrv+/dbawcjAL7vc+6bs+zetetfLSHxniIFGofGGsU2oC7eOCbDfZ7nQawBOSAX74SF9oEPImOq+r7nmVmxb5raukZa8UReGmNmhbMkAwwBH467EYVZe49z7kdgenj8k7V2oTHm8kgdWcvrNdVFjR8cHkYzjDH9wLjDaEwEzpwa4MypgWvAjtjxfGNMj4jMiT+M+kFsZI/Q6Pv+HGNMT8w4wI7TAyevxXVPD5z8+zD64tRXAMHVK1eaVLUyVvuDqroV2BOnJF4ZIedviUidqt4Re9s+vbx8zZXLl7PR2+nl5Tz/zNOFp2FzxzGAklw22wUsLLaSKXwf8vhosZUM6PeDYEUum70VHfpBwKsVyyfeikOP6oBNwN1TrLbfgX3A1kKLzKeff8nLLzw38T5wZDgxn1LnNk5lLRfP26/OnR2hwfNYW2Atn9RCsrf+EECyrKysDFimqhXhyjY3VLkAXBKRDqA7nU6nS0tLhyIj6XSaN9bVclv+l/IXAmkwvZc+jNUAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-save {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4UexUIzAAAAIRJREFUWMNjXLhs5X+GAQRMDAMMWJDYjGhyf7CoIQf8x2H+f0KGM9M7BBio5FNcITo408CoA0YdQM1cwEhtB/ylgqMkCJmFLwrOQguj/xTg50hmkeyARAYGhlNUCIXjDAwM0eREwTUGBgbz0Ww46oBRB4w6YNQBow4YdcCIahP+H5EhAAAH2R8hH3Rg0QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-tap-select {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCOTJBQzE0RDQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCOTJBQzE0QzQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTQ0QzIwMUM1RjIxNjgxMUE3QkFFMzhGRjc2NTI3MjgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6eYZ88AAADLklEQVR42rSXf2TUYRzHv7tuGcfE6Vwb5zLSSjEj7Y9KWqfEmFZJP+yPMdKKmUrrn0iUfjhWlLFi6YfNrF+StBoTo39iYkTGco4xxxG59P7k/T2PT8/37nu3bx9ezvPj+zyf5/PreS78bGLS8SmrwE6yje3NHJsDBTALpknBz6JhH3NiYAB0gHqPOVv52wJ6QQ48BzdAttTioRJjdeA8mAHHS2xuk3p+M8M16ipVQE49Ds6CiFO9RLjGONf05QLx6wPQaBlbBlPgJVgkP0ETiIJ2sB/E1XfimjfgBOOlKDUqCGOcqBcQnw6BYW5YTo4wbvQhMmCfGRemC2rBiGXzWUb+kM/NRZ6CHWBM9ce5R61NgX6ayhSJ5EPlItlDRNkz4JbFHf06BkSzHjXxM+gDv1S/mPUo2AXWgt9UUHL/IVhS8yUV1/EbV3o4N+NaoE9Fu/i827K5pNYHnqAVJECShWmAaddpscYFFXwR7vnXBRGlnUN/L6kqKJlxnRUuDbaDBiL+vst5d4gpcpBrqk/2jIgCKVUolhntplzivHmwh4stGOPfwBWwl/2dpp8p7xjQZqFLiQJtauKkivYm+kzccpK57yXfOUe+P23JqAnVbhMFmlXntCWnxbT31am9ZJ4BJifsUmNTqt0cYhA5ypympPg7VkEKunPbVb8cIG+0kyHLJZNR7fUMooUKFHAPkfQo58VLK+RzwRDd4FdWG9mjpaAXzqkJa1R7kQttqEABWXMjOOxxVRfnhRm5URX1prk/0pQHwNcKlchZ+jdpC+hFdVqO0my9Hj5dkYgCn1Rfh/KdlNDHrJhPqlDih+IfBd6qwpOgEqYMsorJ2HtWxtagLJDn/W3KRfPOZhoeBJfZPgVeGKeKrkQBh5dLXl25Ny3pc4/1fkTdbvFqFQgbxWeYD0hXulhQ0pYiM1jG547fcbMQpVnHTZEn9W3ljsCzwHxCdVteNHIZvQa7/7cC7nV6zHIfyFP9EXjFa7YxKAVqPP4bxhhoLWW+z9JyCb6M/MREg59/RlmmXbmneIybB+YC/ay+yrffqEddDzwGvKxxDmzhc0tc80XVgblqFfgjwAAPubcGjAOl1wAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-undo {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4em8Dh0gAAAatJREFUWMPt1rFrFFEQBvDfGhACASshkL/ALpWVrSAKEQV5sIULWlgZNSgIFkGIVQ412gkBt1lYLERREFJqJRaW1oHAoZUQsDqwecWy7N3tbe6C4H2wxc682Zn3zTfvLXPM8b8j6RqYF+UCzsfnHBawGt3fMcAX7GEvS8NgKgXkRbmMxwg41TLsN0psZmnodyogL8pFPMIdLHUk7hA7eJKl4U/rAuKu3+HslFr/FZezNPSTFslX8QErDe4DvMVH/Iq9F7VwGpdwZUjsPtaSFjv/1vCBPjaxO0xcNbHejLpZrrlvJCMCT+JzA+2fcC1Lw+GE4l3CG1yIptfjCtiKoqtiJ0vD3aM0Py/K57iIMxgkQxat4EdN7e9xdRzlk+LEEPvDWvIDXJ928sYxjL36icWK+VaWhlezOIqbGFirJd/H7szugrwoX+D2BDEvszSsT5OBdfRaru/F9dPXQF6U27g/KnmWhgctxqyzBrZGMNGL/rHI0nDkKXiKexXTsywNGx0OnFbFNk3BRoWJXnw//j+ivCi32/S8CxPVNiWOAdUiJtXITIqYY45/Cn8B2D97FYW2H+IAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-wheel-pan {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgswOmEYWAAABddJREFUWMO9l09oXNcVxn/n3vc0fzRjj2RHyIZ6ERuy6CarxJtS0pQSCsXNpqGFWK5tTHAwyqIGN7VdEts1LV04BEoxdlJnUbfNogtDCYWQRZOSxtAUCoFiJY0pWJVUjeTKM9LMe+9+Xcyb8ZMychuofeHCffeee7/vnXvOuefYlV/+mv932//tb91z/Y2rvxmMHQ+4FcEfOIGN4A+UwDDwoQScc7vM7AIwB8yZ2QXn3K77Ab6OgJnVgeOSbkqaBiaACUnTkm4Cx3OZzwf+qzcRQup1zNZ9RwDe+0YI4YKZTUn6zCGSMLOfAF/03r+QZdnyfwO+ePEiI6N1nPMgMDMkETLRbd2mXG8gCbd9YiIKIUxLKoLfBN7I+80+CUlTIYTp7RMT0b3Af37p8kh5y9gZcy4Fzt+5szqSaxkzUR7dwtrKMmaGW242d0t6vrD/He/90865o865o977p4F3Ctp4frnZ3L0Z+OryUrVSrZ0z8ZxhHjhcq1XPrS43q/0flDlK9XpPA2ma7gMeyvfPx3H8TJZlH4YQWiGEVpZlH8Zx/Awwn8s8lKbpvmq1ahvB641SXNk6dhLskNA2MIBtwKHK1vGTW8bKMRbAMgyPqWeETxUM8VSSJAv52JmZA0iSZMHMThWwnipXKp8hsLLcSaIR92oU8xjSayCQXotiHotG3Ku3m+0EOQwPQCDggMf7BzQajSs5eAk4B5zLx4O1vD2eJMmAQKliscgASJMw21pansFs1swQ/DNLmUmTMNuXX+taXHTDaj5OW612R1JZ0nFJJ/J+XFJ5aWmpA6S5bHV8fHsPHFU6q3pJCjtFxtrKMuXRLUUXXxdrRLazFOtUolZlsGhmACsgnHPTwJnCnjP5HMBKLotzxsTE9rgDL0t6LoriKsDIaB31ZEK+JxQJRHFUBR2NqLw8OTkZR0OC0ntm9k1JWU7OA4vD/mZ+YfElsANmNEKi75vztzB5M8uAr+bx48me88g757PQ1U5zNg52YH7hX8l6f+4Fi3c3BqHNmkI4YQOV2MGCNu9qHPYCewfzbrC+XSGcWEcgTRKA3wFfyzdDz5d+D3x9CIcfA4eBbQS9LscskgfLnHNPAnslvS/pbZDHLLPADpx9N9fqpSIBH8cxWZY9m6bpb4Ev5fN/iKLo2TRNgdx/eo8Wk5O7Ts/N/SOSdMjHdj4kmgkIEJLJzPZKetvMTkIvFLsR25Ml2gfuF5M7vnA66sdooJYkCSGERe/9VAjhzRxoKk3Tvg3U8nulVqvx8cyNpER2umM+SdOkbc5B8JhpqBdIgTRR24h+lpKen731aRIN7thscH9Zlv0d2F8YD2TIX7F2uw3A7ZWV1a0TYz9ca8cJZHRbuRuaDfUCw9/qJHamPOKToAwHtHN6lMvlSkH2o7wDMDo6WuGuQbbn5+YAKNcb3J5fSvrhtTY+vsOPuD1IOyRhMOkj9kSx29HfXB5RUnS964NT2+3vbGbxG9auO2cDNuV6A8NTb5TitBuOpQkfYD2vwOxgmvBB2g3Hto5X42EJyVsFlztbKpXGNgqVSqUxSWcLU2+tdToa9hasLjfPYlwGa+bTi8Dl1dvNsyvNtQQL9MO2w+HM7BqwlAtPdrvdq9773WAVsIr3fne3270KTOYyS2Z2bbXdHhogKmPj7YWF+VOSXs/v/9KdO+0fVBrjbRkgB/KIDBnYu9f/7D+ZmfmRxPd6qwB8YmZXcq1MAQ/nJhTM+OnDe/a8+PGNG9lm19V/D1Qw7HXZlcRa69+U6w38l5/4ipxzf5X0CPBILjcGPJH34pVcc8692FxcXLlXRnTwwH7+9P4f8aWe3fY59LIqo1NMyQBCCHNmdgx4BegUWefjDvCKmR0LIcz9L8nokSNH+PRvH4HC3YQ098pSbevg24qlmZmNmtmjkg4D3+j/tZldkvQXSa3PW5ptlpL3ZaIN99OS9F7+IgKUgSyEkNyv2nHT7DZX0dr9rpjua2l2r4rogRAYVqZvnPsPqVnpEXjEaB4AAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-wheel-zoom {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgskILvMJQAABTtJREFUWMPdl1+MXVUVxn/fPvf2zrSFmUKnoBCUdjRoVaIxEpO2JhilMYBCtBQS2hejpg1Uo2NUrIFAoyGmtiE+GHwQGtvQJhqDmKYRBv+URFsFDNCSptH60DJTO3dKnX/33rM/H7rvsDu9M20fDMaVnGTvtb69z7fWXmvtc/TEzqd4OyXwNsv/FwFJQVI/sA14SZKRLOlPkr5TrVYXHz70quYkEEK4TtI2YAgYkrQthHDdhV5uuw+43/ZrwCbgRttgY/tjtrc0m83X3/f+D6ydnJhYcB4BSZcBA7aP2d4ELAGW2N5k+xgwkDB0IH19CGGH7R8B1aQeAf4KvAw0ku4K2zu7uru3ApdPEyiKohd4TNKjtjt5h6RHgccSNrddbvuHtm9Jqoak7xVF8WFgdavV+pSk5cCObNmXgK++85prCj3z28HKqZMnH7D9YAY4BvwujT8BvCuL1INX9vVt+dfwcCvNb7f9q2RuSfrGvWu/sL2Nf3LX7pzvj4ENSGBPVarVd4fRkZFltjdmoMGiKO4IIWwIIWwoiuIOYDDzeOPoyMiyFLkum7WJCMDztrcrTTrIRuAQZ6NcK1utL4dWq/VZoC8BhqvV6l1lWb4YYxyLMY6VZflitVq9CxhOmL60hhCKeYiV7WMKIXw9jT1HpXw3c+bOAKzOjJubzebJrKQCQLPZPClpc7bP6rMYKtjXth2OMf7tIkr11Wz8oQDc1Fb09vY+kQw1YAuwJY2nbUluAnCWpKkaFl6IQIzxivaR2SYA89sJVK/Xp2x32R6w/a30DNjuqtfrU0ArYecDCEqgLqm94T0dEm9mBG7PxkdDlkBnkhebgIezNQ8nHcCZPL9ijE1Jf/bZZoPtzbavmqNZLbf9tSxq+yoduuJ+SZ+zXSZyBXCqU+d8fvC5yRUrV+0G2j3g2hDCLyXd/+Su3QdnvP/zCuH72LWsgf2k0oHlH2c2odlkxcpVEdgr6aDtjyb8x20/J+mA7T9I6rL9SWA5dne2/GdXLl58qNJh398An85yTMA+4DOz8Dgu6Zu2dwJXJ91ltm8Gbp7Fgb+EEB4aHhpq5CEtACqVyr3AC0AlPS8k3TSmQ2YPhhBuS/1/LpmS9JTtNTHGfwBU2uUALARotVqniqJYH2Pck85pfavVaufAwnQvnHc0McaDKVptebN94QAnJB0EdtjekydyZXqjs/0ZgLIs/w6sy8bnYGYJ63pgERKC05JutT1kOwITwL9tvzlzUQUYB+Zjs2DBgu6xsbGJZHstByZbezregcBXeCsEz1bnzXt5anLyzLq71zDLxTRdVgemdx0fv2e2w5thO5DbiqL4oKT3ZKpnpyYnz+SY2ZpTAPZmJfdIrVZbNBNUq9UW2X4kU+2dcf53Aj1pj2PA7y/6m1DS00A9za9uNBq7iqJYBuoGdRdFsazRaOzKSqye1rTbaa/tlbYrqXQP2X4FIA9/J1l39xrC0v7+w5IeB8XkwS1lWe6TGJAYKMty31tfO4qSHl/a3384I3CDpI+kzC4lnRfrue6GytEjR8oQwlY73gC0L4qlth/q0M1/LYWtR48cKQF6enrC6dOnVwGLEpnxnp7en4+O1i/tszzGOCTpPmB7ahb57QUwBWyXdF+McWg6MScmuoA8OX8xOlpvXGz422XYTsB/SnpA0h7bX5R0WzI9HUL4qe2XbI+dk3xl+V7gxoztD5jRI+YK/zkEEokx2/uB/RdzIfUtueqVN04cXwF8G3iHY3z9Urw/j8ClyhsnjrcS2Vv/J/8NLxT+/zqBTkcxU/cfEkyEAu3kmjAAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-box-edit {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4QfHjM1QAAAGRJREFUWMNjXLhsJcNAAiaGAQYsDAwM/+lsJ+OgCwGsLqMB+D8o08CoA0YdMOqAUQewDFQdMBoFIyoN/B/U7YFRB7DQIc7xyo9GwbBMA4xDqhxgISH1klXbDYk0QOseEeOgDgEAIS0JQleje6IAAAAASUVORK5CYII=");\n}\n.bk-root .bk-tool-icon-freehand-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADTElEQVRYCeWWTWwMYRjH/88721X1lZJIGxJxcEE4OOiBgzjXWh8TJKR76kWacOBGxdEJIdk4VChZI/phidRBHMRRIr7DSUiaSCRFRM3u88gz+o7Z6bBTdjmYZPf9eJ55fv/5zzvvDPC/H9QsA66Olo9Ga+/MdR+Ljm2/KQIULsz9FqItGdOfJKLhApLgVkiSCGODjWit7QpKWy+TNrFeXvzKVUT8NiTVaIgDcbiCFJ7GiT8WkARXAdYBK0Lbhi/CenArRNskuM7/tgNp4ArQ42dwjf3WY5gWTqC7O/NbNn2Xkfw/YwdSw/We14HP2IEZwX+y9cZ9SH0LmgFP7UCz4KkENBNeV0Cz4b8U8DfgKiDxMWwUXETqLvJpCQpXZfawbzS7t9v5pL19cHBwfja7YA0y/lyCM0+E5hv5+piZXwKYcF23as+37bTXsQVqgkL0p/34fHR7DcBtbetFsBmGDwMOJCggYG55yw7dMlk6DuC1Bdu2RsCU9TYWQq2IoGbsreZ5NzvEqfSBsIsIy8OTbcdgiRHeh4o8AFAEwDakbY2AaCCpH7V9aGhoUUUy3UyVbkPYFuYLDlUZH8XBpwxkK0Dbgxg5HcVi0ent7a0RULMIozaHBSMfF9b2SzdutFcFB2FkwMIJOG6qfteXOa1nHZ48tyefuwyfT9s6wtzZ3t7eZse2DR2I228TtHXzuWCx9g8MtK5cuHCZTH4tiHEOa4xFngvTyS8f35d6enomiCi4/foEXBkZaQuukChL4FYA2Whd7YcC4gEdW3CpdL3LtGAVCVYJywEyTpAuJKeMOKXZs/Bw947C50KhUFOG4cwz35cjWNBlHGeD53n3xsfHP/T19U1qciggar8Fa4I3PHobIotBWBtc2hSiChyZxVzM53Pv7FVH6Tp3uVy+g0r1ImD2GjIrQGYIxjnfuXTZGICS5k/bBwJoubwEFX4TLah9EXomJGMA3za+f9913Yl4TnzsDQ+vE6YTZOjHh4ngibstt1pzQwd04F0bPStEBpXqRoBeQ/AKghfBnOEKgS+Q7z91Xfdz/HGKg8Ox7z8iYD9z6wqTkZFgnvhMGP9VZ2or1XVkPM9z0mytSfVsHa1RLBZbLoyNzUnK+ydz3wC6I9x+lwbngwAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-poly-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjglo9eZgwAAAc5JREFUWMPt1zFrU1EUB/DfS4OmVTGDIChCP4BgnQXRxVHqIJUupp9AB8VBQcRBQUXIB9DWQoMRiXZzcnQSA34A7aAuHSJKkgo2LvfBrU3aJnlYkBy4vHcP557zP/9z3r33JdXa647N0kHSZd5Nn0rSxc8G3cXp85sMcnZZ8vge3osZ+l3vB8CWFA0iL14t79h210swAjACMAIwAjACkB90D/8/GchI9ve4nPwTBh5E9ws7OepzGWb9EddSn51Op9ZstadSg4VK1UKlKkmSDSMLALewiuNh/hVJq71Wxttmqz0dG88vPc+MgWP4grvYG3SLOBrZFFFrttqPe4HIDxh4GSei+98iSlusuYopXEAjBtEPA3tQwUpwluAbDm4TPJUz+BTW9l2Ce6G7L0X/Bw8D3T/7SKKIDzHg7QCcxjvcQAEtXAnrrg/RP0/DKPbqgcN4iVOR7gcO4dcQgRuoh7HSqwlP4n20m63jJu5n8MkWMYfP3UowhzdR8FU8w9iQwevBdyq3/27CMRzAE5yLuvsRLg+ZcR1nJ8YL81HWJUzGAPaFZwe/Q5MdyYDyNHgjzO90YyGHtVDncuiJchaHw8R4oREFV5qdiVmYLM3OgD9k5209/atmIAAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-point-draw {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEiERGWPELgAAA4RJREFUWMO1lr1uG1cQhb9ztdRSP7AF1QxgwKlcuZSqRC9gWUUUINWqTh5AnaFOnVPEteQmRuhCURqWsSqqc9IolREXdEvQBElxtdw7KURSFEVKu4w8wAKLxdw9Z+bMnRmZGXfZ29//II8th4WwGVNyIoQLYB5vxA9Caq04iUd9A+7ZlsNC2I7TdSd2hZXMJKlnTqp9jtl/GBaqoyQ0noFKpUIzBicYYc+DEFpxkglc4oVJa5gvDn8v1xV2irG3FM4NSVwjUKlUaMcpJhCGmSEJQ6QGD8M5WnHCd8+f3QCXpPLx8WNwv0j6Bm9FMK7FJ3WBE+R/2t7c/GBmFvSBrzRTCsyTDjXrxUgEMtpxynJYmJoBJ4VAybwVARgvL7Oik0okCodnKpVKX7P0leiVMb0VvbJT+upznK4vh0GIeQwwQStJkHQD3MwsCALTJRG7Qrdrj5m/djgYaIa0hlkRdJk26XEgC9txurccBtVW3IudBImmZuACUP+ZlIDBt9FKcubYNTcAH/X0RYM1E7utJPlqe+uZzPxUcEkiSS4sTT95n15Mud0xWC0o2PAWOCdK3KYZlFxfM+tHOcnMzNr1es18ug+cgsVjP4yBU/Ppfrter1m/+l0+zYygML1xRVHU7TSb1cSzBzoBzszsH+AMdJJ49jrNZjWKou6wBnwOzcyndBpNbuueURR1Dw8Pq35p9cc5p/Dy9Dypt7jXrtdGwQECS9NPhr6Gq6txUzNigE6zydLK6lTw12/KT4FGFEUfJX2YJNONq5tVs4ODA7sD/DnwJ/BoADZuE3tHFs12dna6d4C/BI6AlbyzI8ii2TTw12/KK33gb2cdXsNZoAntbZC2SeO4c9592k/5eNQbiwvFd1kJuFGwLJr1wSPg/SwpvyFBHufOeXcFeAlE97U/uCxOY+P3b+Bn4B3Q+L8EdJfD4a+/AbC4UBzPxiPg3wlHZquB28Cn2IuR9x3gr3uV4DbwfvSDOvi4uFA8BDZmIRHkjHpS9Ht9iRqd8+5G3g05mAGcQbsdiX5QJ428G7Kygo8XYdb1/K4NWVmjzkNge2sz84bs+ELmpDDLtqWsNZBXgvmw8CTtpWVMT7x5YWBjLARnwZfKQNYN2U2LPvrh+5nBt7c2M2/It9bArCTKR8eZN+SJ13AScPnoODeRdqNenH+wul5w2gUr2WUjMFAt8bZ/0axX/wNnv4H8vTFb1QAAAABJRU5ErkJggg==");\n}\n.bk-root .bk-tool-icon-poly-edit {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gELFi46qJmxxAAABV9JREFUWMOdl19vFFUYxn9n9u9sCyylUIzWUoMQBAWCMdEEIt6xIRQSLIEKtvHe6AcA4yeQb7CAUNJy0daLeomJN8SEULAC2kBBapBKoLvbmdl/c14vdmY7u91tF95kknPOnHmf95znPc97Ro2OTeBbdjFDT3c32ZxVHUOE9kSMB0/m6ExuoJn1H+ur6Y+OTfD50SMN5168OgrAlyf7CfuD+z7+iDs3p8hkLUQ0iFQ/yFl5Nm/qonfHVva+s32Zw9GxCYILsZ08tpNfBhbs+1YN4OH9+7huGdECSBVfqUosbsllfmauBqiR+cCNwOr7AEo8pPHJnymXykhg5fUWjoQpl0vVvhZhbSzGoUOHqgBlt6B6uruj2Zy1E9jo0fhfeyL2x4Mnc8VErK0KUEOB64JSyptfG4RSytsJjUJVxw2lsFy3urL9nx1Qd25ObctkrVMi+jQivd7U2ZyV/3Hzpq7h3h1b/7p9Y0o8v8rwAbTWrGpSocN/FGDlbAI0Rl23PCBan0Ok158H9Ipwzi25A/Mzc9Gl/BYx/E4kYqC1NKRARNAaDCNUM27Z+Zr+ouXs0q4+LSLBHPYCFkTkC6uU39kwCdsS7WRKmaYUiAhdnZ3MPX2K4+QjQI+C94A93rMzm8ltMwyDeDzWjMZeEb2pYQDdW3vITU2jtUZ5QThOPgm8C7wP7J15OPsBsB3oWpGnVWisCeDS1VHj4vBI92+/3tgB7Ab2AruAXiDBK5oIOkhtkEYRNRuJhObrd8Dl9ewf4D5wG7hVLpen29vb5wzD+BrkbBMaL3d1dk5nsrnlFDTTFWAWmAZueWD3gCemGde2k2fw1Al1YXhEvjozoO49eczdqekrWmsc2zlrmvEKOGoW1GUjFLqSk2KpJrCLwyMCPAP+BO54QL8DM6YZX/ClsP9YnwKkXnIBP4jdIpJRpdJTCYdMwwi98KU0Hjc/dDILNyUcwTCWdOSMJ0TRmBktGRhLugu0xyLk7CIqVNm+0bGJptl1YXikD0grpY4Rjc4a8Fbgdab/6OGbAJeCUuyJnnHmZH9pbSyGuBXV8NUwlUpR1EWyixmSyTWEwqGlJ2Swbo2JXbAAfgDGgGQA9I1A9t1tlq0AxrXxn0ilUpw4fhQqYkH/sT41OTnJJwf2s6FjI5mshdYa7bqVR2uezr9MJmJt14FvGrh/O9D+e6UkM/xyCuCqEKCYnJyUTKFQrZDHjxzGshwWLQcRsOz8Hi85P23id0ug/XilAMLBmm4tPGdoaKjSH5+oAGrhwvBI9SjZTn4QSK9yenoD7dlrExPoJlXW8G8ytpNHxRKk02lGxsdRKFwXLNvx5yY94HQLGhGk4LFCYQSqaE0AwWM1eOoEbR0dKBSW7bC4mKuffxs4D/wCLKwQQPAUzIkslfp6cVomROWSolh0GjldAM4nzDi2k9/i5UAzC9aKfwNJ3zgJg9YEvN6+C7SHgKm69+sD7RfNnKTTaZRPQfAut4oFV//IS7gkcB34VlVo8kGzphlfB+DU+TfNGBpZtRastvrvARJmfMF28ge9sc2B9/PNnCilMIDwK6y8/ow/Ai4kvILTljAXvDvEvrqKSUs60KolzPjBxspavQD2tKqCAGF/Ba+xE/Wbilu54wZV8NEKF5fXzQHl/bh4hUsE0WAXSlDMYcQSrQXgCmsTseXHsJkNnjqBFGwKJaHsKlxtUHYVhbLCzr1kaOA4bcn1y1Swmb+iLpJKpVrfgdpfsiVVCYcgluwgnU7jEgJ4s5UkLFtWYyHyEg0/N1q1tmQH+YXnAMFr97Nmv3p+0QsHQRsF8qpBOE5+rb9Nkaj50tVQKjqh4OU3GNL/1/So3vuUgbAAAAAASUVORK5CYII=");\n}\n’),o.bk_tool_icon_box_select="bk-tool-icon-box-select",o.bk_tool_icon_box_zoom="bk-tool-icon-box-zoom",o.bk_tool_icon_zoom_in="bk-tool-icon-zoom-in",o.bk_tool_icon_zoom_out="bk-tool-icon-zoom-out",o.bk_tool_icon_help="bk-tool-icon-help",o.bk_tool_icon_hover="bk-tool-icon-hover",o.bk_tool_icon_crosshair="bk-tool-icon-crosshair",o.bk_tool_icon_lasso_select="bk-tool-icon-lasso-select",o.bk_tool_icon_pan="bk-tool-icon-pan",o.bk_tool_icon_xpan="bk-tool-icon-xpan",o.bk_tool_icon_ypan="bk-tool-icon-ypan",o.bk_tool_icon_range="bk-tool-icon-range",o.bk_tool_icon_polygon_select="bk-tool-icon-polygon-select",o.bk_tool_icon_redo="bk-tool-icon-redo",o.bk_tool_icon_reset="bk-tool-icon-reset",o.bk_tool_icon_save="bk-tool-icon-save",o.bk_tool_icon_tap_select="bk-tool-icon-tap-select",o.bk_tool_icon_undo="bk-tool-icon-undo",o.bk_tool_icon_wheel_pan="bk-tool-icon-wheel-pan",o.bk_tool_icon_wheel_zoom="bk-tool-icon-wheel-zoom",o.bk_tool_icon_box_edit="bk-tool-icon-box-edit",o.bk_tool_icon_freehand_draw="bk-tool-icon-freehand-draw",o.bk_tool_icon_poly_draw="bk-tool-icon-poly-draw",o.bk_tool_icon_point_draw="bk-tool-icon-point-draw",o.bk_tool_icon_poly_edit="bk-tool-icon-poly-edit"},n function _(o,l,g){Object.defineProperty(g,"__esModule",{value:!0});const n=o(1);o(67),n.__importStar(o(66)).styles.append(".bk-root .bk-logo {\n margin: 5px;\n position: relative;\n display: block;\n background-repeat: no-repeat;\n}\n.bk-root .bk-logo.bk-grey {\n filter: url(\"data:image/svg+xml;utf8,<svg xmlns=\\’http://www.w3.org/2000/svg\\’><filter id=\\’grayscale\\’><feColorMatrix type=\\’matrix\\’ values=\\’0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\\’/></filter></svg>#grayscale\");\n /* Firefox 10+, Firefox on Android /\n filter: gray;\n / IE6-9 /\n -webkit-filter: grayscale(100%);\n / Chrome 19+, Safari 6+, Safari 6+ iOS /\n}\n.bk-root .bk-logo-small {\n width: 20px;\n height: 20px;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAOkSURBVDiNjZRtaJVlGMd/1/08zzln5zjP1LWcU9N0NkN8m2CYjpgQYQXqSs0I84OLIC0hkEKoPtiH3gmKoiJDU7QpLgoLjLIQCpEsNJ1vqUOdO7ppbuec5+V+rj4ctwzd8IIbbi6u+8f1539dt3A78eXC7QizUF7gyV1fD1Yqg4JWz84yffhm0qkFqBogB9rM8tZdtwVsPUhWhGcFJngGeWrPzHm5oaMmkfEg1usvLFyc8jLRqDOMru7AyC8saQr7GG7f5fvDeH7Ej8CM66nIF+8yngt6HWaKh7k49Soy9nXurCi1o3qUbS3zWfrYeQDTB/Qj6kX6Ybhw4B+bOYoLKCC9H3Nu/leUTZ1JdRWkkn2ldcCamzrcf47KKXdAJllSlxAOkRgyHsGC/zRday5Qld9DyoM4/q/rUoy/CXh3jzOu3bHUVZeU+DEn8FInkPBFlu3+nW3Nw0mk6vCDiWg8CeJaxEwuHS3+z5RgY+YBR6V1Z1nxSOfoaPa4LASWxxdNp+VWTk7+4vzaou8v8PN+xo+KY2xsw6une2frhw05CTYOmQvsEhjhWjn0bmXPjpE1+kplmmkP3suftwTubK9Vq22qKmrBhpY4jvd5afdRA3wGjFAgcnTK2s4hY0/GPNIb0nErGMCRxWOOX64Z8RAC4oCXdklmEvcL8o0BfkNK4lUg9HTl+oPlQxdNo3Mg4Nv175e/1LDGzZen30MEjRUtmXSfiTVu1kK8W4txyV6BMKlbgk3lMwYCiusNy9fVfvvwMxv8Ynl6vxoByANLTWplvuj/nF9m2+PDtt1eiHPBr1oIfhCChQMBw6Aw0UulqTKZdfVvfG7VcfIqLG9bcldL/+pdWTLxLUy8Qq38heUIjh4XlzZxzQm19lLFlr8vdQ97rjZVOLf8nclzckbcD4wxXMidpX30sFd37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==);\n}\n.bk-root .bk-logo-notebook {\n display: inline-block;\n vertical-align: middle;\n margin-right: 5px;\n}\n"),g.bk_logo="bk-logo",g.bk_logo_notebook="bk-logo-notebook",g.bk_logo_small="bk-logo-small",g.bk_grey="bk-grey"},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});var s=this&&this.__rest||function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i};const n=t(183),a=t(179),o=t(185),r=t(78),l=t(244),h=t(141),_=t(148),d=t(142),u=t(281),c=t(14),p=t(96),g=t(282),m=t(68),b=t(70),f=t(285),w=t(8),v=t(9),y=t(24),x=t(187),O=t(190),z=t(286),S=t(191),M=t(85);class R extends x.Layoutable{constructor(){super(…arguments),this.min_border={left:0,top:0,right:0,bottom:0}}_measure(t){t=new x.Sizeable(t).bounded_to(this.sizing.size);const e=this.left_panel.measure({width:0,height:t.height}),i=Math.max(e.width,this.min_border.left),s=this.right_panel.measure({width:0,height:t.height}),n=Math.max(s.width,this.min_border.right),a=this.top_panel.measure({width:t.width,height:0}),o=Math.max(a.height,this.min_border.top),r=this.bottom_panel.measure({width:t.width,height:0}),l=Math.max(r.height,this.min_border.bottom),h=new x.Sizeable(t).shrink_by({left:i,right:n,top:o,bottom:l}),_=this.center_panel.measure(h);return{width:i+_.width+n,height:o+_.height+l,inner:{left:i,right:n,top:o,bottom:l},align:(()=>{const{width_policy:t,height_policy:e}=this.center_panel.sizing;return"fixed"!=t&&"fixed"!=e})()}}_set_geometry(t,e){super._set_geometry(t,e),this.center_panel.set_geometry(e);const i=this.left_panel.measure({width:0,height:t.height}),s=this.right_panel.measure({width:0,height:t.height}),n=this.top_panel.measure({width:t.width,height:0}),a=this.bottom_panel.measure({width:t.width,height:0}),{left:o,top:r,right:l,bottom:h}=e;this.top_panel.set_geometry(new M.BBox({left:o,right:l,bottom:r,height:n.height})),this.bottom_panel.set_geometry(new M.BBox({left:o,right:l,top:h,height:a.height})),this.left_panel.set_geometry(new M.BBox({top:r,bottom:h,right:o,width:i.width})),this.right_panel.set_geometry(new M.BBox({top:r,bottom:h,left:l,width:s.width}))}}i.PlotLayout=R,R.__name__="PlotLayout";class k extends l.LayoutDOMView{constructor(){super(…arguments),this._outer_bbox=new M.BBox,this._inner_bbox=new M.BBox,this._needs_paint=!0,this._needs_layout=!1}get is_paused(){return null!=this._is_paused&&0!==this._is_paused}get child_models(){return[]}pause(){null==this._is_paused?this._is_paused=1:this._is_paused+=1}unpause(t=!1){if(null==this._is_paused)throw new Error("wasn’t paused");this._is_paused-=1,0!=this._is_paused||t||this.request_paint()}request_render(){this.request_paint()}request_paint(){if(!this.is_paused){const t=this.throttled_paint();this._ready=this._ready.then(()=>t)}}request_layout(){this._needs_layout=!0,this.request_paint()}reset(){"standard"==this.model.reset_policy&&(this.clear_state(),this.reset_range(),this.reset_selection()),this.model.trigger_event(new u.Reset)}remove(){this.ui_event_bus.destroy(),p.remove_views(this.renderer_views),p.remove_views(this.tool_views),this.canvas_view.remove(),super.remove()}render(){super.render(),this.el.appendChild(this.canvas_view.el),this.canvas_view.render()}initialize(){this.pause(),super.initialize(),this.state_changed=new c.Signal0(this,"state_changed"),this.lod_started=!1,this.visuals=new m.Visuals(this.model),this._initial_state_info={selection:{},dimensions:{width:0,height:0}},this.visibility_callbacks=[],this.state={history:[],index:-1},this.canvas=new a.Canvas({use_hidpi:this.model.hidpi,output_backend:this.model.output_backend}),this.frame=new n.CartesianFrame(this.model.x_scale,this.model.y_scale,this.model.x_range,this.model.y_range,this.model.extra_x_ranges,this.model.extra_y_ranges),this.throttled_paint=f.throttle(()=>this.repaint(),1e3/60);const{title_location:t,title:e}=this.model;null!=t&&null!=e&&(this._title=e instanceof h.Title?e:new h.Title({text:e}));const{toolbar_location:i,toolbar:s}=this.model;null!=i&&null!=s&&(this._toolbar=new d.ToolbarPanel({toolbar:s}),s.toolbar_location=i),this.renderer_views={},this.tool_views={}}async lazy_initialize(){this.canvas_view=await p.build_view(this.canvas,{parent:this}),this.ui_event_bus=new g.UIEvents(this,this.model.toolbar,this.canvas_view.events_el),await this.build_renderer_views(),await this.build_tool_views(),this.update_dataranges(),this.unpause(!0),b.logger.debug("PlotView initialized")}_width_policy(){return null==this.model.frame_width?super._width_policy():"min"}_height_policy(){return null==this.model.frame_height?super._height_policy():"min"}_update_layout(){this.layout=new R,this.layout.set_sizing(this.box_sizing());const{frame_width:t,frame_height:e}=this.model;this.layout.center_panel=this.frame,this.layout.center_panel.set_sizing(Object.assign(Object.assign({},null!=t?{width_policy:"fixed",width:t}:{width_policy:"fit"}),null!=e?{height_policy:"fixed",height:e}:{height_policy:"fit"}));const i=v.copy(this.model.above),s=v.copy(this.model.below),n=v.copy(this.model.left),a=v.copy(this.model.right),o=t=>{switch(t){case"above":return i;case"below":return s;case"left":return n;case"right":return a}},{title_location:r,title:l}=this.model;null!=r&&null!=l&&o(r).push(this._title);const{toolbar_location:_,toolbar:u}=this.model;if(null!=_&&null!=u){const t=o(_);let e=!0;if(this.model.toolbar_sticky)for(let i=0;i<t.length;i++){const s=t[i];if(s instanceof h.Title){t[i]="above"==_||"below"==_?[s,this._toolbar]:[this._toolbar,s],e=!1;break}}e&&t.push(this._toolbar)}const c=(t,e)=>{const i=this.renderer_views[e.id];return i.layout=new z.SidePanel(t,i)},p=(t,e)=>{const i="above"==t||"below"==t,s=[];for(const n of e)if(w.isArray(n)){const e=n.map(e=>{const s=c(t,e);if(e instanceof d.ToolbarPanel){const t=i?"width_policy":"height_policy";s.set_sizing(Object.assign(Object.assign({},s.sizing),{[t]:"min"}))}return s});let a;i?(a=new S.Row(e),a.set_sizing({width_policy:"max",height_policy:"min"})):(a=new S.Column(e),a.set_sizing({width_policy:"min",height_policy:"max"})),a.absolute=!0,s.push(a)}else s.push(c(t,n));return s},g=null!=this.model.min_border?this.model.min_border:0;this.layout.min_border={left:null!=this.model.min_border_left?this.model.min_border_left:g,top:null!=this.model.min_border_top?this.model.min_border_top:g,right:null!=this.model.min_border_right?this.model.min_border_right:g,bottom:null!=this.model.min_border_bottom?this.model.min_border_bottom:g};const m=new O.VStack,b=new O.VStack,f=new O.HStack,y=new O.HStack;m.children=v.reversed(p("above",i)),b.children=p("below",s),f.children=v.reversed(p("left",n)),y.children=p("right",a),m.set_sizing({width_policy:"fit",height_policy:"min"}),b.set_sizing({width_policy:"fit",height_policy:"min"}),f.set_sizing({width_policy:"min",height_policy:"fit"}),y.set_sizing({width_policy:"min",height_policy:"fit"}),this.layout.top_panel=m,this.layout.bottom_panel=b,this.layout.left_panel=f,this.layout.right_panel=y}get axis_views(){const t=[];for(const e in this.renderer_views){const i=this.renderer_views[e];i instanceof _.AxisView&&t.push(i)}return t}set_cursor(t="default"){this.canvas_view.el.style.cursor=t}set_toolbar_visibility(t){for(const e of this.visibility_callbacks)e(t)}prepare_webgl(t,e){const{webgl:i}=this.canvas_view;if(null!=i){const{width:s,height:n}=this.canvas_view.bbox,{pixel_ratio:a}=this.canvas_view.model;i.canvas.width=a*s,i.canvas.height=a*n;const{gl:o}=i;o.enable(o.SCISSOR_TEST);const[r,l,h,_]=e,{xview:d,yview:u}=this.canvas_view.bbox,c=d.compute(r),p=u.compute(l+_);o.scissor(t*c,t*p,t*h,t*_),o.enable(o.BLEND),o.blendFuncSeparate(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA,o.ONE_MINUS_DST_ALPHA,o.ONE)}}clear_webgl(){const{webgl:t}=this.canvas_view;if(null!=t){const{gl:e,canvas:i}=t;e.viewport(0,0,i.width,i.height),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT||e.DEPTH_BUFFER_BIT)}}blit_webgl(){const{ctx:t,webgl:e}=this.canvas_view;if(null!=e&&(b.logger.debug("drawing with WebGL"),t.restore(),t.drawImage(e.canvas,0,0),t.save(),this.model.hidpi)){const e=this.canvas.pixel_ratio;t.scale(e,e),t.translate(.5,.5)}}update_dataranges(){const t={},e={};let i=!1;for(const t of y.values(this.frame.x_ranges).concat(y.values(this.frame.y_ranges)))t instanceof o.DataRange1d&&"log"==t.scale_hint&&(i=!0);for(const s in this.renderer_views){const n=this.renderer_views[s];if(n instanceof r.GlyphRendererView){const a=n.glyph.bounds();if(null!=a&&(t[s]=a),i){const t=n.glyph.log_bounds();null!=t&&(e[s]=t)}}}let s=!1,n=!1;const{width:a,height:l}=this.frame.bbox;let h;!1!==this.model.match_aspect&&0!=a&&0!=l&&(h=1/this.model.aspect_scale*(a/l));for(const i of y.values(this.frame.x_ranges)){if(i instanceof o.DataRange1d){const n="log"==i.scale_hint?e:t;i.update(n,0,this.model.id,h),i.follow&&(s=!0)}null!=i.bounds&&(n=!0)}for(const i of y.values(this.frame.y_ranges)){if(i instanceof o.DataRange1d){const n="log"==i.scale_hint?e:t;i.update(n,1,this.model.id,h),i.follow&&(s=!0)}null!=i.bounds&&(n=!0)}if(s&&n){b.logger.warn("Follow enabled so bounds are unset.");for(const t of y.values(this.frame.x_ranges))t.bounds=null;for(const t of y.values(this.frame.y_ranges))t.bounds=null}this.range_update_timestamp=Date.now()}map_to_screen(t,e,i="default",s="default"){return this.frame.map_to_screen(t,e,i,s)}push_state(t,e){const{history:i,index:s}=this.state,n=null!=i[s]?i[s].info:{},a=Object.assign(Object.assign(Object.assign({},this._initial_state_info),n),e);this.state.history=this.state.history.slice(0,this.state.index+1),this.state.history.push({type:t,info:a}),this.state.index=this.state.history.length-1,this.state_changed.emit()}clear_state(){this.state={history:[],index:-1},this.state_changed.emit()}can_undo(){return this.state.index>=0}can_redo(){return this.state.index<this.state.history.length-1}undo(){this.can_undo()&&(this.state.index-=1,this._do_state_change(this.state.index),this.state_changed.emit())}redo(){this.can_redo()&&(this.state.index+=1,this._do_state_change(this.state.index),this.state_changed.emit())}_do_state_change(t){const e=null!=this.state.history[t]?this.state.history[t].info:this._initial_state_info;null!=e.range&&this.update_range(e.range),null!=e.selection&&this.update_selection(e.selection)}get_selection(){const t={};for(const e of this.model.renderers)if(e instanceof r.GlyphRenderer){const{selected:i}=e.data_source;t[e.id]=i}return t}update_selection(t){for(const e of this.model.renderers){if(!(e instanceof r.GlyphRenderer))continue;const i=e.data_source;null!=t?null!=t[e.id]&&i.selected.update(t[e.id],!0,!1):i.selection_manager.clear()}}reset_selection(){this.update_selection(null)}_update_ranges_together(t){let e=1;for(const[i,s]of t)e=Math.min(e,this._get_weight_to_constrain_interval(i,s));if(e<1)for(const[i,s]of t)s.start=e*s.start+(1-e)*i.start,s.end=e*s.end+(1-e)*i.end}_update_ranges_individually(t,e,i,s){let n=!1;for(const[s,a]of t){if(!i){const t=this._get_weight_to_constrain_interval(s,a);t<1&&(a.start=t*a.start+(1-t)*s.start,a.end=t*a.end+(1-t)*s.end)}if(null!=s.bounds&&"auto"!=s.bounds){const[t,o]=s.bounds,r=Math.abs(a.end-a.start);s.is_reversed?(null!=t&&t>=a.end&&(n=!0,a.end=t,(e||i)&&(a.start=t+r)),null!=o&&o<=a.start&&(n=!0,a.start=o,(e||i)&&(a.end=o-r))):(null!=t&&t>=a.start&&(n=!0,a.start=t,(e||i)&&(a.end=t+r)),null!=o&&o<=a.end&&(n=!0,a.end=o,(e||i)&&(a.start=o-r)))}}if(!(i&&n&&s))for(const[e,i]of t)e.have_updated_interactively=!0,e.start==i.start&&e.end==i.end||e.setv(i)}_get_weight_to_constrain_interval(t,e){const{min_interval:i}=t;let{max_interval:s}=t;if(null!=t.bounds&&"auto"!=t.bounds){const[e,i]=t.bounds;if(null!=e&&null!=i){const t=Math.abs(i-e);s=null!=s?Math.min(s,t):t}}let n=1;if(null!=i||null!=s){const a=Math.abs(t.end-t.start),o=Math.abs(e.end-e.start);i>0&&o<i&&(n=(a-i)/(a-o)),s>0&&o>s&&(n=(s-a)/(o-a)),n=Math.max(0,Math.min(1,n))}return n}update_range(t,e=!1,i=!1,s=!0){this.pause();const{x_ranges:n,y_ranges:a}=this.frame;if(null==t){for(const t in n){n[t].reset()}for(const t in a){a[t].reset()}this.update_dataranges()}else{const o=[];for(const e in n){const i=n[e];o.push([i,t.xrs[e]])}for(const e in a){const i=a[e];o.push([i,t.yrs[e]])}i&&this._update_ranges_together(o),this._update_ranges_individually(o,e,i,s)}this.unpause()}reset_range(){this.update_range(null)}_invalidate_layout(){(()=>{for(const t of this.model.side_panels){if(this.renderer_views[t.id].layout.has_size_changed())return!0}return!1})()&&this.root.compute_layout()}get_renderer_views(){return this.computed_renderers.map(t=>this.renderer_views[t.id])}async build_renderer_views(){this.computed_renderers=[];const{above:t,below:e,left:i,right:s,center:n,renderers:a}=this.model;this.computed_renderers.push(…t,…e,…i,…s,…n,…a),null!=this._title&&this.computed_renderers.push(this._title),null!=this._toolbar&&this.computed_renderers.push(this._toolbar);for(const t of this.model.toolbar.tools)null!=t.overlay&&this.computed_renderers.push(t.overlay),this.computed_renderers.push(…t.synthetic_renderers);await p.build_views(this.renderer_views,this.computed_renderers,{parent:this})}async build_tool_views(){const t=this.model.toolbar.tools;(await p.build_views(this.tool_views,t,{parent:this})).map(t=>this.ui_event_bus.register_tool(t))}connect_signals(){super.connect_signals();const{x_ranges:t,y_ranges:e}=this.frame;for(const e in t){const i=t[e];this.connect(i.change,()=>{this._needs_layout=!0,this.request_paint()})}for(const t in e){const i=e[t];this.connect(i.change,()=>{this._needs_layout=!0,this.request_paint()})}const{above:i,below:s,left:n,right:a,center:o,renderers:r}=this.model.properties;this.on_change([i,s,n,a,o,r],async()=>await this.build_renderer_views()),this.connect(this.model.toolbar.properties.tools.change,async()=>{await this.build_renderer_views(),await this.build_tool_views()}),this.connect(this.model.change,()=>this.request_paint()),this.connect(this.model.reset,()=>this.reset())}set_initial_range(){let t=!0;const{x_ranges:e,y_ranges:i}=this.frame,s={},n={};for(const i in e){const{start:n,end:a}=e[i];if(null==n||null==a||w.isStrictNaN(n+a)){t=!1;break}s[i]={start:n,end:a}}if(t)for(const e in i){const{start:s,end:a}=i[e];if(null==s||null==a||w.isStrictNaN(s+a)){t=!1;break}n[e]={start:s,end:a}}t?(this._initial_state_info.range={xrs:s,yrs:n},b.logger.debug("initial ranges set")):b.logger.warn("could not set initial ranges")}has_finished(){if(!super.has_finished())return!1;for(const t in this.renderer_views){if(!this.renderer_views[t].has_finished())return!1}return!0}after_layout(){if(super.after_layout(),this._needs_layout=!1,this.model.setv({inner_width:Math.round(this.frame._width.value),inner_height:Math.round(this.frame._height.value),outer_width:Math.round(this.layout._width.value),outer_height:Math.round(this.layout._height.value)},{no_change:!0}),!1!==this.model.match_aspect&&(this.pause(),this.update_dataranges(),this.unpause(!0)),!this._outer_bbox.equals(this.layout.bbox)){const{width:t,height:e}=this.layout.bbox;this.canvas_view.prepare_canvas(t,e),this._outer_bbox=this.layout.bbox,this._needs_paint=!0}this._inner_bbox.equals(this.frame.inner_bbox)||(this._inner_bbox=this.layout.inner_bbox,this._needs_paint=!0),this._needs_paint&&(this._needs_paint=!1,this.paint())}repaint(){this._needs_layout&&this._invalidate_layout(),this.paint()}paint(){if(this.is_paused)return;b.logger.trace(`PlotView.paint() for ${this.model.id}`);const{document:t}=this.model;if(null!=t){const e=t.interactive_duration();e>=0&&e<this.model.lod_interval?setTimeout(()=>{t.interactive_duration()>this.model.lod_timeout&&t.interactive_stop(this.model),this.request_paint()},this.model.lod_timeout):t.interactive_stop(this.model)}for(const t in this.renderer_views){const e=this.renderer_views[t];if(null==this.range_update_timestamp||e instanceof r.GlyphRendererView&&e.set_data_timestamp>this.range_update_timestamp){this.update_dataranges();break}}const{ctx:e}=this.canvas_view,i=this.canvas.pixel_ratio;e.save(),this.model.hidpi&&(e.scale(i,i),e.translate(.5,.5));const s=[this.frame._left.value,this.frame._top.value,this.frame._width.value,this.frame._height.value];if(this._map_hook(e,s),this._paint_empty(e,s),this.prepare_webgl(i,s),this.clear_webgl(),this.visuals.outline_line.doit){e.save(),this.visuals.outline_line.set_value(e);let[t,i,n,a]=s;t+n==this.layout._width.value&&(n-=1),i+a==this.layout._height.value&&(a-=1),e.strokeRect(t,i,n,a),e.restore()}this._paint_levels(e,["image","underlay","glyph"],s,!0),this._paint_levels(e,["annotation"],s,!1),this._paint_levels(e,["overlay"],s,!1),null==this._initial_state_info.range&&this.set_initial_range(),e.restore()}_paint_levels(t,e,i,s){for(const n of e)for(const e of this.computed_renderers){if(e.level!=n)continue;const a=this.renderer_views[e.id];t.save(),(s||a.needs_clip)&&(t.beginPath(),t.rect(…i),t.clip()),a.render(),t.restore(),a.has_webgl&&(this.blit_webgl(),this.clear_webgl())}}_map_hook(t,e){}_paint_empty(t,e){const[i,s,n,a]=[0,0,this.layout._width.value,this.layout._height.value],[o,r,l,h]=e;t.clearRect(i,s,n,a),this.visuals.border_fill.doit&&(this.visuals.border_fill.set_value(t),t.fillRect(i,s,n,a),t.clearRect(o,r,l,h)),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(o,r,l,h))}save(t){this.canvas_view.save(t)}serializable_state(){const t=super.serializable_state(),{children:e}=t,i=s(t,["children"]),n=this.get_renderer_views().map(t=>t.serializable_state()).filter(t=>"bbox"in t);return Object.assign(Object.assign({},i),{children:[…e,…n]})}}i.PlotView=k,k.__name__="PlotView"},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});var n=this&&this.__decorate||function(e,t,s,n){var _,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,n);else for(var r=e.length-1;r>=0;r–)(_=e[r])&&(o=(a<3?_(o):a>3?_(t,s,o):_(t,s))||o);return a>3&&o&&Object.defineProperty(t,s,o),o};function _(e){return function(t){t.prototype.event_name=e}}class a{constructor(){this.origin=null}to_json(){const{event_name:e}=this;return{event_name:e,event_values:this._to_json()}}_to_json(){return{model:this.origin}}}s.BokehEvent=a,a.__name__="BokehEvent";let o=class extends a{};s.ButtonClick=o,o.__name__="ButtonClick",s.ButtonClick=o=n([_("button_click")],o);let r=class extends a{constructor(e){super(),this.item=e}_to_json(){const{item:e}=this;return Object.assign(Object.assign({},super._to_json()),{item:e})}};s.MenuItemClick=r,r.__name__="MenuItemClick",s.MenuItemClick=r=n([_("menu_item_click")],r);class c extends a{}s.UIEvent=c,c.__name__="UIEvent";let i=class extends c{};s.LODStart=i,i.__name__="LODStart",s.LODStart=i=n([_("lodstart")],i);let l=class extends c{};s.LODEnd=l,l.__name__="LODEnd",s.LODEnd=l=n([_("lodend")],l);let u=class extends c{constructor(e,t){super(),this.geometry=e,this.final=t}_to_json(){const{geometry:e,final:t}=this;return Object.assign(Object.assign({},super._to_json()),{geometry:e,final:t})}};s.SelectionGeometry=u,u.__name__="SelectionGeometry",s.SelectionGeometry=u=n([_("selectiongeometry")],u);let h=class extends c{};s.Reset=h,h.__name__="Reset",s.Reset=h=n([_("reset")],h);class d extends c{constructor(e,t,s,n){super(),this.sx=e,this.sy=t,this.x=s,this.y=n}_to_json(){const{sx:e,sy:t,x:s,y:n}=this;return Object.assign(Object.assign({},super._to_json()),{sx:e,sy:t,x:s,y:n})}}s.PointEvent=d,d.__name__="PointEvent";let m=class extends d{constructor(e,t,s,n,_,a){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.delta_x=_,this.delta_y=a}_to_json(){const{delta_x:e,delta_y:t}=this;return Object.assign(Object.assign({},super._to_json()),{delta_x:e,delta_y:t})}};s.Pan=m,m.__name__="Pan",s.Pan=m=n([_("pan")],m);let p=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.scale=_}_to_json(){const{scale:e}=this;return Object.assign(Object.assign({},super._to_json()),{scale:e})}};s.Pinch=p,p.__name__="Pinch",s.Pinch=p=n([_("pinch")],p);let x=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.rotation=_}_to_json(){const{rotation:e}=this;return Object.assign(Object.assign({},super._to_json()),{rotation:e})}};s.Rotate=x,x.__name__="Rotate",s.Rotate=x=n([_("rotate")],x);let j=class extends d{constructor(e,t,s,n,_){super(e,t,s,n),this.sx=e,this.sy=t,this.x=s,this.y=n,this.delta=_}_to_json(){const{delta:e}=this;return Object.assign(Object.assign({},super._to_json()),{delta:e})}};s.MouseWheel=j,j.__name__="MouseWheel",s.MouseWheel=j=n([_("wheel")],j);let y=class extends d{};s.MouseMove=y,y.__name__="MouseMove",s.MouseMove=y=n([_("mousemove")],y);let P=class extends d{};s.MouseEnter=P,P.__name__="MouseEnter",s.MouseEnter=P=n([_("mouseenter")],P);let O=class extends d{};s.MouseLeave=O,O.__name__="MouseLeave",s.MouseLeave=O=n([_("mouseleave")],O);let b=class extends d{};s.Tap=b,b.__name__="Tap",s.Tap=b=n([_("tap")],b);let g=class extends d{};s.DoubleTap=g,g.__name__="DoubleTap",s.DoubleTap=g=n([_("doubletap")],g);let v=class extends d{};s.Press=v,v.__name__="Press",s.Press=v=n([_("press")],v);let E=class extends d{};s.PressUp=E,E.__name__="PressUp",s.PressUp=E=n([_("pressup")],E);let M=class extends d{};s.PanStart=M,M.__name__="PanStart",s.PanStart=M=n([_("panstart")],M);let f=class extends d{};s.PanEnd=f,f.__name__="PanEnd",s.PanEnd=f=n([_("panend")],f);let R=class extends d{};s.PinchStart=R,R.__name__="PinchStart",s.PinchStart=R=n([_("pinchstart")],R);let S=class extends d{};s.PinchEnd=S,S.__name__="PinchEnd",s.PinchEnd=S=n([_("pinchend")],S);let k=class extends d{};s.RotateStart=k,k.__name__="RotateStart",s.RotateStart=k=n([_("rotatestart")],k);let D=class extends d{};s.RotateEnd=D,D.__name__="RotateEnd",s.RotateEnd=D=n([_("rotateend")],D)},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const n=t(1),i=n.__importDefault(t(283)),r=t(14),a=t(70),h=t(66),_=t(284),o=t(9),c=t(24),l=t(8),p=t(101),u=n.__importStar(t(281));class d{constructor(t,e,s){this.plot_view=t,this.toolbar=e,this.hit_area=s,this.pan_start=new r.Signal(this,"pan:start"),this.pan=new r.Signal(this,"pan"),this.pan_end=new r.Signal(this,"pan:end"),this.pinch_start=new r.Signal(this,"pinch:start"),this.pinch=new r.Signal(this,"pinch"),this.pinch_end=new r.Signal(this,"pinch:end"),this.rotate_start=new r.Signal(this,"rotate:start"),this.rotate=new r.Signal(this,"rotate"),this.rotate_end=new r.Signal(this,"rotate:end"),this.tap=new r.Signal(this,"tap"),this.doubletap=new r.Signal(this,"doubletap"),this.press=new r.Signal(this,"press"),this.pressup=new r.Signal(this,"pressup"),this.move_enter=new r.Signal(this,"move:enter"),this.move=new r.Signal(this,"move"),this.move_exit=new r.Signal(this,"move:exit"),this.scroll=new r.Signal(this,"scroll"),this.keydown=new r.Signal(this,"keydown"),this.keyup=new r.Signal(this,"keyup"),this.hammer=new i.default(this.hit_area,{touchAction:"auto",inputClass:i.default.TouchMouseInput}),this._configure_hammerjs(),this.hit_area.addEventListener("mousemove",t=>this._mouse_move(t)),this.hit_area.addEventListener("mouseenter",t=>this._mouse_enter(t)),this.hit_area.addEventListener("mouseleave",t=>this._mouse_exit(t)),this.hit_area.addEventListener("wheel",t=>this._mouse_wheel(t)),document.addEventListener("keydown",this),document.addEventListener("keyup",this)}destroy(){this.hammer.destroy(),document.removeEventListener("keydown",this),document.removeEventListener("keyup",this)}handleEvent(t){"keydown"==t.type?this._key_down(t):"keyup"==t.type&&this._key_up(t)}_configure_hammerjs(){this.hammer.get("doubletap").recognizeWith("tap"),this.hammer.get("tap").requireFailure("doubletap"),this.hammer.get("doubletap").dropRequireFailure("tap"),this.hammer.on("doubletap",t=>this._doubletap(t)),this.hammer.on("tap",t=>this._tap(t)),this.hammer.on("press",t=>this._press(t)),this.hammer.on("pressup",t=>this._pressup(t)),this.hammer.get("pan").set({direction:i.default.DIRECTION_ALL}),this.hammer.on("panstart",t=>this._pan_start(t)),this.hammer.on("pan",t=>this._pan(t)),this.hammer.on("panend",t=>this._pan_end(t)),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("pinchstart",t=>this._pinch_start(t)),this.hammer.on("pinch",t=>this._pinch(t)),this.hammer.on("pinchend",t=>this._pinch_end(t)),this.hammer.get("rotate").set({enable:!0}),this.hammer.on("rotatestart",t=>this._rotate_start(t)),this.hammer.on("rotate",t=>this._rotate(t)),this.hammer.on("rotateend",t=>this._rotate_end(t))}register_tool(t){const e=t.model.event_type;null!=e&&(l.isString(e)?this._register_tool(t,e):e.forEach((e,s)=>this._register_tool(t,e,s<1)))}_register_tool(t,e,s=!0){const n=t,{id:i}=n.model,r=t=>e=>{e.id==i&&t(e.e)},h=t=>e=>{t(e.e)};switch(e){case"pan":null!=n._pan_start&&n.connect(this.pan_start,r(n._pan_start.bind(n))),null!=n._pan&&n.connect(this.pan,r(n._pan.bind(n))),null!=n._pan_end&&n.connect(this.pan_end,r(n._pan_end.bind(n)));break;case"pinch":null!=n._pinch_start&&n.connect(this.pinch_start,r(n._pinch_start.bind(n))),null!=n._pinch&&n.connect(this.pinch,r(n._pinch.bind(n))),null!=n._pinch_end&&n.connect(this.pinch_end,r(n._pinch_end.bind(n)));break;case"rotate":null!=n._rotate_start&&n.connect(this.rotate_start,r(n._rotate_start.bind(n))),null!=n._rotate&&n.connect(this.rotate,r(n._rotate.bind(n))),null!=n._rotate_end&&n.connect(this.rotate_end,r(n._rotate_end.bind(n)));break;case"move":null!=n._move_enter&&n.connect(this.move_enter,r(n._move_enter.bind(n))),null!=n._move&&n.connect(this.move,r(n._move.bind(n))),null!=n._move_exit&&n.connect(this.move_exit,r(n._move_exit.bind(n)));break;case"tap":null!=n._tap&&n.connect(this.tap,r(n._tap.bind(n)));break;case"press":null!=n._press&&n.connect(this.press,r(n._press.bind(n))),null!=n._pressup&&n.connect(this.pressup,r(n._pressup.bind(n)));break;case"scroll":null!=n._scroll&&n.connect(this.scroll,r(n._scroll.bind(n)));break;default:throw new Error(`unsupported event_type: ${e}`)}s&&(null!=n._doubletap&&n.connect(this.doubletap,h(n._doubletap.bind(n))),null!=n._keydown&&n.connect(this.keydown,h(n._keydown.bind(n))),null!=n._keyup&&n.connect(this.keyup,h(n._keyup.bind(n))),p.is_mobile&&null!=n._scroll&&"pinch"==e&&(a.logger.debug("Registering scroll on touch screen"),n.connect(this.scroll,r(n._scroll.bind(n)))))}_hit_test_renderers(t,e){const s=this.plot_view.get_renderer_views();for(const n of o.reversed(s)){const{level:s}=n.model;if(("annotation"==s||"overlay"==s)&&null!=n.interactive_hit&&n.interactive_hit(t,e))return n}return null}_hit_test_frame(t,e){return this.plot_view.frame.bbox.contains(t,e)}_hit_test_canvas(t,e){return this.plot_view.layout.bbox.contains(t,e)}_trigger(t,e,s){const n=this.toolbar.gestures,i=t.name.split(":")[0],r=this._hit_test_renderers(e.sx,e.sy),a=this._hit_test_canvas(e.sx,e.sy);switch(i){case"move":{const s=n[i].active;null!=s&&this.trigger(t,e,s.id);const h=this.toolbar.inspectors.filter(t=>t.active);let _="default";null!=r?(_=r.cursor(e.sx,e.sy)||_,c.isEmpty(h)||(t=this.move_exit)):this._hit_test_frame(e.sx,e.sy)&&(c.isEmpty(h)||(_="crosshair")),this.plot_view.set_cursor(_),this.plot_view.set_toolbar_visibility(a),h.map(s=>this.trigger(t,e,s.id));break}case"tap":{const{target:a}=s;if(null!=a&&a!=this.hit_area)return;null!=r&&null!=r.on_hit&&r.on_hit(e.sx,e.sy);const h=n[i].active;null!=h&&this.trigger(t,e,h.id);break}case"scroll":{const i=n[p.is_mobile?"pinch":"scroll"].active;null!=i&&(s.preventDefault(),s.stopPropagation(),this.trigger(t,e,i.id));break}case"pan":{const r=n[i].active;null!=r&&(s.preventDefault(),this.trigger(t,e,r.id));break}default:{const s=n[i].active;null!=s&&this.trigger(t,e,s.id)}}this._trigger_bokeh_event(e)}trigger(t,e,s=null){t.emit({id:s,e})}_trigger_bokeh_event(t){const e=(()=>{const e=this.plot_view.frame.xscales.default,s=this.plot_view.frame.yscales.default,{sx:n,sy:i}=t,r=e.invert(n),a=s.invert(i);switch(t.type){case"wheel":return new u.MouseWheel(n,i,r,a,t.delta);case"mousemove":return new u.MouseMove(n,i,r,a);case"mouseenter":return new u.MouseEnter(n,i,r,a);case"mouseleave":return new u.MouseLeave(n,i,r,a);case"tap":return new u.Tap(n,i,r,a);case"doubletap":return new u.DoubleTap(n,i,r,a);case"press":return new u.Press(n,i,r,a);case"pressup":return new u.PressUp(n,i,r,a);case"pan":return new u.Pan(n,i,r,a,t.deltaX,t.deltaY);case"panstart":return new u.PanStart(n,i,r,a);case"panend":return new u.PanEnd(n,i,r,a);case"pinch":return new u.Pinch(n,i,r,a,t.scale);case"pinchstart":return new u.PinchStart(n,i,r,a);case"pinchend":return new u.PinchEnd(n,i,r,a);case"rotate":return new u.Rotate(n,i,r,a,t.rotation);case"rotatestart":return new u.RotateStart(n,i,r,a);case"rotateend":return new u.RotateEnd(n,i,r,a);default:return}})();null!=e&&this.plot_view.model.trigger_event(e)}_get_sxy(t){const{pageX:e,pageY:s}=function(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}(t)?(0!=t.touches.length?t.touches:t.changedTouches)[0]:t,{left:n,top:i}=h.offset(this.hit_area);return{sx:e-n,sy:s-i}}_pan_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{deltaX:t.deltaX,deltaY:t.deltaY,shiftKey:t.srcEvent.shiftKey})}_pinch_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{scale:t.scale,shiftKey:t.srcEvent.shiftKey})}_rotate_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{rotation:t.rotation,shiftKey:t.srcEvent.shiftKey})}_tap_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{shiftKey:t.srcEvent.shiftKey})}_move_event(t){return Object.assign({type:t.type},this._get_sxy(t))}_scroll_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t)),{delta:_.getDeltaY(t)})}_key_event(t){return{type:t.type,keyCode:t.keyCode}}_pan_start(t){const e=this._pan_event(t);e.sx-=t.deltaX,e.sy-=t.deltaY,this._trigger(this.pan_start,e,t.srcEvent)}_pan(t){this._trigger(this.pan,this._pan_event(t),t.srcEvent)}_pan_end(t){this._trigger(this.pan_end,this._pan_event(t),t.srcEvent)}_pinch_start(t){this._trigger(this.pinch_start,this._pinch_event(t),t.srcEvent)}_pinch(t){this._trigger(this.pinch,this._pinch_event(t),t.srcEvent)}_pinch_end(t){this._trigger(this.pinch_end,this._pinch_event(t),t.srcEvent)}_rotate_start(t){this._trigger(this.rotate_start,this._rotate_event(t),t.srcEvent)}_rotate(t){this._trigger(this.rotate,this._rotate_event(t),t.srcEvent)}_rotate_end(t){this._trigger(this.rotate_end,this._rotate_event(t),t.srcEvent)}_tap(t){this._trigger(this.tap,this._tap_event(t),t.srcEvent)}_doubletap(t){const e=this._tap_event(t);this._trigger_bokeh_event(e),this.trigger(this.doubletap,e)}_press(t){this._trigger(this.press,this._tap_event(t),t.srcEvent)}_pressup(t){this._trigger(this.pressup,this._tap_event(t),t.srcEvent)}_mouse_enter(t){this._trigger(this.move_enter,this._move_event(t),t)}_mouse_move(t){this._trigger(this.move,this._move_event(t),t)}_mouse_exit(t){this._trigger(this.move_exit,this._move_event(t),t)}_mouse_wheel(t){this._trigger(this.scroll,this._scroll_event(t),t)}_key_down(t){this.trigger(this.keydown,this._key_event(t))}_key_up(t){this.trigger(this.keyup,this._key_event(t))}}s.UIEvents=d,d.__name__="UIEvents"},n function _(t,e,n){n /! Hammer.JS - v2.0.7 - 2016-04-22n * http://hammerjs.github.io/n n * Copyright (c) 2016 Jorik Tangelder;n * Licensed under the MIT license */n !function(t,n,i,r){"use strict";var s,o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),h=Math.round,u=Math.abs,c=Date.now;function l(t,e,n){return setTimeout(y(t,n),e)}function p(t,e,n){return!!Array.isArray(t)&&(f(t,n[e],n),!0)}function f(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function v(e,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,r,i),e.apply(this,arguments)}}s="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var d=v((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use assign."),m=v((function(t,e){return d(t,e,!0)}),"merge","Use assign.");function g(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&s(i,n)}function y(t,e){return function(){return t.apply(e,arguments)}}function T(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function E(t,e){return void 0===t?e:t}function I(t,e,n){f(S(e),(function(e){t.addEventListener(e,n,!1)}))}function A(t,e,n){f(S(e),(function(e){t.removeEventListener(e,n,!1)}))}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function C(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function b(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];b(r,o)<0&&i.push(t[s]),r[s]=o,s++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function D(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<o.length;){if((i=(n=o[s])?n+r:e)in t)return i;s++}}var w=1;function O(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var R="ontouchstart"in t,M=void 0!==D(t,"PointerEvent"),z=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N=["x","y"],X=["clientX","clientY"];function Y(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){T(t.options.enable,[t])&&n.handler(e)},this.init()}function F(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=W(e));r>1&&!n.firstMultiple?n.firstMultiple=W(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,h=e.center=q(i);e.timeStamp=c(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=U(a,h),e.distance=L(a,h),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=H(e.deltaX,e.deltaY);var l=k(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=u(l.x)>u(l.y)?l.x:l.y,e.scale=o?(p=o.pointers,f=i,L(f[0],f[1],X)/L(p[0],p[1],X)):1,e.rotation=o?function(t,e){return U(e[1],e[0],X)+U(t[1],t[0],X)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,o=t.lastInterval||e,a=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(a>25||void 0===o.velocity)){var h=e.deltaX-o.deltaX,c=e.deltaY-o.deltaY,l=k(a,h,c);i=l.x,r=l.y,n=u(l.x)>u(l.y)?l.x:l.y,s=H(h,c),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var p,f;var v=t.element;_(e.srcEvent.target,v)&&(v=e.srcEvent.target);e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:e,center:q(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:h(n/e),y:h(i/e)}}function k(t,e,n){return{x:e/t||0,y:n/t||0}}function H(t,e){return t===e?1:u(t)>=u(e)?t<0?2:4:e<0?8:16}function L(t,e,n){n||(n=N);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function U(t,e,n){n||(n=N);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}Y.prototype={handler:function(){},init:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(O(this.element),this.evWin,this.domHandler)}};var V={mousedown:1,mousemove:2,mouseup:4};function j(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,Y.apply(this,arguments)}g(j,Y,{handler:function(t){var e=V[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var G={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},B="pointerdown",$="pointermove pointerup pointercancel";function J(){this.evEl=B,this.evWin=$,Y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(B="MSPointerDown",$="MSPointerMove MSPointerUp MSPointerCancel"),g(J,Y,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=G[i],s=Z[t.pointerType]||t.pointerType,o="touch"==s,a=b(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var K={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Q(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Y.apply(this,arguments)}function tt(t,e){var n=x(t.touches),i=x(t.changedTouches);return 12&e&&(n=P(n.concat(i),"identifier",!0)),[n,i]}g(Q,Y,{handler:function(t){var e=K[t.type];if(1===e&&(this.started=!0),this.started){var n=tt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},Y.apply(this,arguments)}function it(t,e){var n=x(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=x(t.changedTouches),a=[],h=this.target;if(s=n.filter((function(t){return _(t.target,h)})),1===e)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),12&e&&delete i[o[r].identifier],r++;return a.length?[P(s.concat(a),"identifier",!0),a]:void 0}g(nt,Y,{handler:function(t){var e=et[t.type],n=it.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});function rt(){Y.apply(this,arguments);var t=y(this.handler,this);this.touch=new nt(this.manager,t),this.mouse=new j(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function st(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ot.call(this,e)):12&t&&ot.call(this,e)}function ot(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function at(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}g(rt,Y,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)st.call(this,e,n);else if(r&&at.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ht=D(a.style,"touchAction"),ut=void 0!==ht,ct=function(){if(!ut)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){e[i]=!n||t.CSS.supports("touch-action",i)})),e}();function lt(t,e){this.manager=t,this.set(e)}lt.prototype={set:function(t){"compute"==t&&(t=this.compute()),ut&&this.manager.element.style&&ct[t]&&(this.manager.element.style[ht]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,(function(e){T(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(C(t,"none"))return"none";var e=C(t,"pan-x"),n=C(t,"pan-y");if(e&&n)return"none";if(e||n)return e?"pan-x":"pan-y";if(C(t,"manipulation"))return"manipulation";return"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=C(i,"none")&&!ct.none,s=C(i,"pan-y")&&!ct["pan-y"],o=C(i,"pan-x")&&!ct["pan-x"];if(r){var a=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(a&&h&&u)return}if(!o||!s)return r||s&&6&n||o&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};function pt(t){this.options=s({},this.defaults,t||{}),this.id=w++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ft(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function vt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function dt(t,e){var n=e.manager;return n?n.get(t):t}function mt(){pt.apply(this,arguments)}function gt(){mt.apply(this,arguments),this.pX=null,this.pY=null}function yt(){mt.apply(this,arguments)}function Tt(){pt.apply(this,arguments),this._timer=null,this._input=null}function Et(){mt.apply(this,arguments)}function It(){mt.apply(this,arguments)}function At(){pt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function _t(t,e){return(e=e||{}).recognizers=E(e.recognizers,_t.defaults.preset),new Ct(t,e)}pt.prototype={defaults:{},set:function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(p(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=dt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return p(t,"dropRecognizeWith",this)||(t=dt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(p(t,"requireFailure",this))return this;var e=this.requireFail;return-1===b(e,t=dt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(p(t,"dropRequireFailure",this))return this;t=dt(t,this);var e=b(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+ft(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+ft(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=s({},t);if(!T(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},g(mt,pt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:32}}),g(gt,mt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return mt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=vt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),g(yt,mt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),g(Tt,pt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=l((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),g(Et,mt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),g(It,mt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return gt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=vt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),g(At,pt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||L(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=l((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),_t.VERSION="2.0.7",_t.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Et,{enable:!1}],[yt,{enable:!1},["rotate"]],[It,{direction:6}],[gt,{direction:6},["swipe"]],[At],[At,{event:"doubletap",taps:2},["tap"]],[Tt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ct(t,e){var n;this.options=s({},_t.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(M?J:z?nt:R?rt:j))(n,F),this.touchAction=new lt(this,this.options.touchAction),St(this,!0),f(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function St(t,e){var n,i=t.element;i.style&&(f(t.options.cssProps,(function(r,s){n=D(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Ct.prototype={set:function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof pt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(p(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(p(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=b(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return f(S(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return f(S(t),(function(t){e?n[t]&&n[t].splice(b(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var i=n.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<i.length;)i[r](e),r++}},destroy:function(){this.element&&St(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(_t,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ct,Input:Y,TouchAction:lt,TouchInput:nt,MouseInput:j,PointerEventInput:J,TouchMouseInput:rt,SingleTouchInput:Q,Recognizer:pt,AttrRecognizer:mt,Tap:At,Pan:gt,Swipe:It,Pinch:yt,Rotate:Et,Press:Tt,on:I,off:A,each:f,merge:m,extend:d,assign:s,inherit:g,bindFn:y,prefixed:D}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=_t,"function"==typeof define&&define.amd?define((function(){return _t})):void 0!==e&&e.exports?e.exports=_t:t.Hammer=_t}(window,document)},n function _(e,t,n){n /!n * jQuery Mousewheel 3.1.13n *n * Copyright jQuery Foundation and other contributorsn * Released under the MIT licensen * http://jquery.org/licensen */n function r(e){const t=getComputedStyle(e).fontSize;return null!=t?parseInt(t,10):null}Object.defineProperty(n,"__esModule",{value:!0}),n.getDeltaY=function(e){let t=-e.deltaY;if(e.target instanceof HTMLElement)switch(e.deltaMode){case e.DOM_DELTA_LINE:t*=r((n=e.target).offsetParent||document.body)||r(n)||16;break;case e.DOM_DELTA_PAGE:t*=function(e){return e.clientHeight}(e.target)}var n;return t}},n function _(n,e,o){Object.defineProperty(o,"__esModule",{value:!0});const t=("undefined"!=typeof window?window.requestAnimationFrame:void 0)||("undefined"!=typeof window?window.webkitRequestAnimationFrame:void 0)||("undefined"!=typeof window?window.mozRequestAnimationFrame:void 0)||("undefined"!=typeof window?window.msRequestAnimationFrame:void 0)||function(n){return n(Date.now()),-1};o.throttle=function(n,e){let o=null,i=0,u=!1;return function(){return new Promise((d,w)=>{const r=function(){i=Date.now(),o=null,u=!1;try{n(),d()}catch(n){w(n)}},a=Date.now(),f=e-(a-i);f<=0&&!u?(null!=o&&clearTimeout(o),u=!0,t(r)):o||u?d():o=setTimeout(()=>t(r),f)})}}},n function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const l=i(188),a=i(189),r=i(8),h=Math.PI/2,o="left",s="center",n={above:{parallel:0,normal:-h,horizontal:0,vertical:-h},below:{parallel:0,normal:h,horizontal:0,vertical:h},left:{parallel:-h,normal:0,horizontal:0,vertical:-h},right:{parallel:h,normal:0,horizontal:0,vertical:h}},d={above:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"alphabetic",vertical:"middle"},below:{justified:"bottom",parallel:"hanging",normal:"middle",horizontal:"hanging",vertical:"middle"},left:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"},right:{justified:"top",parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"}},_={above:{justified:s,parallel:s,normal:o,horizontal:s,vertical:o},below:{justified:s,parallel:s,normal:o,horizontal:s,vertical:o},left:{justified:s,parallel:s,normal:"right",horizontal:"right",vertical:s},right:{justified:s,parallel:s,normal:o,horizontal:o,vertical:s}},c={above:"right",below:o,left:"right",right:o},m={above:o,below:"right",left:"right",right:o};class g extends a.ContentLayoutable{constructor(i,t){switch(super(),this.side=i,this.obj=t,this.side){case"above":this._dim=0,this._normals=[0,-1];break;case"below":this._dim=0,this._normals=[0,1];break;case"left":this._dim=1,this._normals=[-1,0];break;case"right":this._dim=1,this._normals=[1,0]}this.is_horizontal?this.set_sizing({width_policy:"max",height_policy:"fixed"}):this.set_sizing({width_policy:"fixed",height_policy:"max"})}_content_size(){return new l.Sizeable(this.get_oriented_size())}get_oriented_size(){const{width:i,height:t}=this.obj.get_size();return!this.obj.rotate||this.is_horizontal?{width:i,height:t}:{width:t,height:i}}has_size_changed(){const{width:i,height:t}=this.get_oriented_size();return this.is_horizontal?this.bbox.height!=t:this.bbox.width!=i}get dimension(){return this._dim}get normals(){return this._normals}get is_horizontal(){return 0==this._dim}get is_vertical(){return 1==this._dim}apply_label_text_heuristics(i,t){const e=this.side;let l,a;r.isString(t)?(l=d[e][t],a=_[e][t]):0===t?(l="whatever",a="whatever"):t<0?(l="middle",a=c[e]):(l="middle",a=m[e]),i.textBaseline=l,i.textAlign=a}get_label_angle_heuristic(i){return n[this.side][i]}}e.SidePanel=g,g.__name__="SidePanel"},n function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(14),o=t(66),a=t(30),n=t(280),p=new i.Signal0({},"gmaps_ready");class l extends n.PlotView{initialize(){this.pause(),super.initialize(),this._tiles_loaded=!1,this.zoom_count=0;const{zoom:t,lat:e,lng:s}=this.model.map_options;if(this.initial_zoom=t,this.initial_lat=e,this.initial_lng=s,"undefined"==typeof google||null==google.maps){if(void 0===window._bokeh_gmaps_callback){!function(t){window._bokeh_gmaps_callback=()=>p.emit();const e=document.createElement("script");e.type="text/javascript",e.src=`https://maps.googleapis.com/maps/api/js?v=3.36&key=${t}&callback=_bokeh_gmaps_callback`,document.body.appendChild(e)}(atob(this.model.api_key))}p.connect(()=>this.request_render())}this.unpause()}remove(){o.remove(this.map_el),super.remove()}update_range(t){if(null==t)this.map.setCenter({lat:this.initial_lat,lng:this.initial_lng}),this.map.setOptions({zoom:this.initial_zoom}),super.update_range(null);else if(null!=t.sdx||null!=t.sdy)this.map.panBy(t.sdx||0,t.sdy||0),super.update_range(t);else if(null!=t.factor){if(10!==this.zoom_count)return void(this.zoom_count+=1);this.zoom_count=0,this.pause(),super.update_range(t);const e=t.factor<0?-1:1,s=this.map.getZoom(),i=s+e;if(i>=2){this.map.setZoom(i);const[t,e,,]=this._get_projected_bounds();e-t<0&&this.map.setZoom(s)}this.unpause()}this._set_bokeh_ranges()}_build_map(){const{maps:t}=google;this.map_types={satellite:t.MapTypeId.SATELLITE,terrain:t.MapTypeId.TERRAIN,roadmap:t.MapTypeId.ROADMAP,hybrid:t.MapTypeId.HYBRID};const e=this.model.map_options,s={center:new t.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:this.map_types[e.map_type],scaleControl:e.scale_control,tilt:e.tilt};null!=e.styles&&(s.styles=JSON.parse(e.styles)),this.map_el=o.div({style:{position:"absolute"}}),this.canvas_view.add_underlay(this.map_el),this.map=new t.Map(this.map_el,s),t.event.addListener(this.map,"idle",()=>this._set_bokeh_ranges()),t.event.addListener(this.map,"bounds_changed",()=>this._set_bokeh_ranges()),t.event.addListenerOnce(this.map,"tilesloaded",()=>this._render_finished()),this.connect(this.model.properties.map_options.change,()=>this._update_options()),this.connect(this.model.map_options.properties.styles.change,()=>this._update_styles()),this.connect(this.model.map_options.properties.lat.change,()=>this._update_center("lat")),this.connect(this.model.map_options.properties.lng.change,()=>this._update_center("lng")),this.connect(this.model.map_options.properties.zoom.change,()=>this._update_zoom()),this.connect(this.model.map_options.properties.map_type.change,()=>this._update_map_type()),this.connect(this.model.map_options.properties.scale_control.change,()=>this._update_scale_control()),this.connect(this.model.map_options.properties.tilt.change,()=>this._update_tilt())}_render_finished(){this._tiles_loaded=!0,this.notify_finished()}has_finished(){return super.has_finished()&&!0===this._tiles_loaded}_get_latlon_bounds(){const t=this.map.getBounds(),e=t.getNorthEast(),s=t.getSouthWest();return[s.lng(),e.lng(),s.lat(),e.lat()]}_get_projected_bounds(){const[t,e,s,i]=this._get_latlon_bounds(),[o,n]=a.wgs84_mercator.forward([t,s]),[p,l]=a.wgs84_mercator.forward([e,i]);return[o,p,n,l]}_set_bokeh_ranges(){const[t,e,s,i]=this._get_projected_bounds();this.frame.x_range.setv({start:t,end:e}),this.frame.y_range.setv({start:s,end:i})}_update_center(t){const e=this.map.getCenter().toJSON();e[t]=this.model.map_options[t],this.map.setCenter(e),this._set_bokeh_ranges()}_update_map_type(){this.map.setOptions({mapTypeId:this.map_types[this.model.map_options.map_type]})}_update_scale_control(){this.map.setOptions({scaleControl:this.model.map_options.scale_control})}_update_tilt(){this.map.setOptions({tilt:this.model.map_options.tilt})}_update_options(){this._update_styles(),this._update_center("lat"),this._update_center("lng"),this._update_zoom(),this._update_map_type()}_update_styles(){this.map.setOptions({styles:JSON.parse(this.model.map_options.styles)})}_update_zoom(){this.map.setOptions({zoom:this.model.map_options.zoom}),this._set_bokeh_ranges()}_map_hook(t,e){if(null==this.map&&"undefined"!=typeof google&&null!=google.maps&&this._build_map(),null!=this.map_el){const[t,s,i,o]=e;this.map_el.style.top=`${s}px`,this.map_el.style.left=`${t}px`,this.map_el.style.width=`${i}px`,this.map_el.style.height=`${o}px`}}_paint_empty(t,e){const s=this.layout._width.value,i=this.layout._height.value,[o,a,n,p]=e;t.clearRect(0,0,s,i),t.beginPath(),t.moveTo(0,0),t.lineTo(0,i),t.lineTo(s,i),t.lineTo(s,0),t.lineTo(0,0),t.moveTo(o,a),t.lineTo(o+n,a),t.lineTo(o+n,a+p),t.lineTo(o,a+p),t.lineTo(o,a),t.closePath(),null!=this.model.border_fill_color&&(t.fillStyle=this.model.border_fill_color,t.fill())}}s.GMapPlotView=l,l.__name__="GMapPlotView"},n function _(a,e,n){Object.defineProperty(n,"__esModule",{value:!0});var g=a(186);n.DataRange=g.DataRange;var R=a(185);n.DataRange1d=R.DataRange1d;var r=a(88);n.FactorRange=r.FactorRange;var t=a(89);n.Range=t.Range;var d=a(130);n.Range1d=d.Range1d},n function _(e,r,d){Object.defineProperty(d,"__esModule",{value:!0});var n=e(78);d.GlyphRenderer=n.GlyphRenderer;var R=e(97);d.GraphRenderer=R.GraphRenderer;var a=e(149);d.GuideRenderer=a.GuideRenderer;var G=e(63);d.Renderer=G.Renderer},n function _(a,e,c){Object.defineProperty(c,"__esModule",{value:!0});var l=a(184);c.CategoricalScale=l.CategoricalScale;var o=a(120);c.ContinuousScale=o.ContinuousScale;var r=a(119);c.LinearScale=r.LinearScale;var S=a(129);c.LogScale=S.LogScale;var n=a(121);c.Scale=n.Scale},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),e(1).__exportStar(e(99),o);var n=e(76);o.Selection=n.Selection},n function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});var o=a(293);r.ServerSentDataSource=o.ServerSentDataSource;var S=a(295);r.AjaxDataSource=S.AjaxDataSource;var u=a(73);r.ColumnDataSource=u.ColumnDataSource;var t=a(74);r.ColumnarDataSource=t.ColumnarDataSource;var c=a(95);r.CDSView=c.CDSView;var D=a(75);r.DataSource=D.DataSource;var v=a(296);r.GeoJSONDataSource=v.GeoJSONDataSource;var n=a(294);r.WebDataSource=n.WebDataSource},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const a=e(294);class s extends a.WebDataSource{constructor(e){super(e),this.initialized=!1}destroy(){super.destroy()}setup(){if(!this.initialized){this.initialized=!0,new EventSource(this.data_url).onmessage=e=>{this.load_data(JSON.parse(e.data),this.mode,this.max_size)}}}}i.ServerSentDataSource=s,s.__name__="ServerSentDataSource"},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const r=e(1),s=e(73),i=r.__importStar(e(19));class n extends s.ColumnDataSource{constructor(e){super(e)}get_column(e){const t=this.data[e];return null!=t?t:[]}initialize(){super.initialize(),this.setup()}load_data(e,t,a){const{adapter:r}=this;let s;switch(s=null!=r?r.execute(this,{response:e}):e,t){case"replace":this.data=s;break;case"append":{const e=this.data;for(const t of this.columns()){const r=Array.from(e[t]),i=Array.from(s[t]);s[t]=r.concat(i).slice(-a)}this.data=s;break}}}static init_WebDataSource(){this.define({mode:[i.UpdateMode,"replace"],max_size:[i.Number],adapter:[i.Any,null],data_url:[i.String]})}}a.WebDataSource=n,n.__name__="WebDataSource",n.init_WebDataSource()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const s=t(1),a=t(294),r=t(70),o=s.__importStar(t(19));class n extends a.WebDataSource{constructor(t){super(t),this.initialized=!1}static init_AjaxDataSource(){this.define({polling_interval:[o.Number],content_type:[o.String,"application/json"],http_headers:[o.Any,{}],method:[o.HTTPMethod,"POST"],if_modified:[o.Boolean,!1]})}destroy(){null!=this.interval&&clearInterval(this.interval),super.destroy()}setup(){if(!this.initialized&&(this.initialized=!0,this.get_data(this.mode),this.polling_interval)){const t=()=>this.get_data(this.mode,this.max_size,this.if_modified);this.interval=setInterval(t,this.polling_interval)}}get_data(t,e=0,i=!1){const s=this.prepare_request();s.addEventListener("load",()=>this.do_load(s,t,e)),s.addEventListener("error",()=>this.do_error(s)),s.send()}prepare_request(){const t=new XMLHttpRequest;t.open(this.method,this.data_url,!0),t.withCredentials=!1,t.setRequestHeader("Content-Type",this.content_type);const e=this.http_headers;for(const i in e){const s=e[i];t.setRequestHeader(i,s)}return t}do_load(t,e,i){if(200===t.status){const s=JSON.parse(t.responseText);this.load_data(s,e,i)}}do_error(t){r.logger.error(`Failed to fetch JSON from ${this.data_url} with code ${t.status}`)}}i.AjaxDataSource=n,n.__name__="AjaxDataSource",n.init_AjaxDataSource()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1),n=e(74),s=e(70),a=r.__importStar(e(19)),i=e(9);function l(e){return null!=e?e:NaN}class c extends n.ColumnarDataSource{constructor(e){super(e)}static init_GeoJSONDataSource(){this.define({geojson:[a.Any]}),this.internal({data:[a.Any,{}]})}initialize(){super.initialize(),this._update_data()}connect_signals(){super.connect_signals(),this.connect(this.properties.geojson.change,()=>this._update_data())}_update_data(){this.data=this.geojson_to_column_data()}_get_new_list_array(e){return i.range(0,e).map(e=>[])}_get_new_nan_array(e){return i.range(0,e).map(e=>NaN)}_add_properties(e,t,o,r){const n=e.properties||{};for(const e in n)t.hasOwnProperty(e)||(t[e]=this._get_new_nan_array(r)),t[e][o]=l(n[e])}_add_geometry(e,t,o){function r(e,t){return e.concat([[NaN,NaN,NaN]]).concat(t)}switch(e.type){case"Point":{const[r,n,s]=e.coordinates;t.x[o]=r,t.y[o]=n,t.z[o]=l(s);break}case"LineString":{const{coordinates:r}=e;for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"Polygon":{e.coordinates.length>1&&s.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used.");const r=e.coordinates[0];for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"MultiPoint":s.logger.warn("MultiPoint not supported in Bokeh");break;case"MultiLineString":{const n=e.coordinates.reduce(r);for(let e=0;e<n.length;e++){const[r,s,a]=n[e];t.xs[o][e]=r,t.ys[o][e]=s,t.zs[o][e]=l(a)}break}case"MultiPolygon":{const n=[];for(const t of e.coordinates)t.length>1&&s.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used."),n.push(t[0]);const a=n.reduce(r);for(let e=0;e<a.length;e++){const[r,n,s]=a[e];t.xs[o][e]=r,t.ys[o][e]=n,t.zs[o][e]=l(s)}break}default:throw new Error(`Invalid GeoJSON geometry type: ${e.type}`)}}geojson_to_column_data(){const e=JSON.parse(this.geojson);let t;switch(e.type){case"GeometryCollection":if(null==e.geometries)throw new Error("No geometries found in GeometryCollection");if(0===e.geometries.length)throw new Error("geojson.geometries must have one or more items");t=e.geometries;break;case"FeatureCollection":if(null==e.features)throw new Error("No features found in FeaturesCollection");if(0==e.features.length)throw new Error("geojson.features must have one or more items");t=e.features;break;default:throw new Error("Bokeh only supports type GeometryCollection and FeatureCollection at top level")}let o=0;for(const e of t){const t="Feature"===e.type?e.geometry:e;"GeometryCollection"==t.type?o+=t.geometries.length:o+=1}const r={x:this._get_new_nan_array(o),y:this._get_new_nan_array(o),z:this._get_new_nan_array(o),xs:this._get_new_list_array(o),ys:this._get_new_list_array(o),zs:this._get_new_list_array(o)};let n=0;for(const e of t){const t="Feature"==e.type?e.geometry:e;if("GeometryCollection"==t.type)for(const s of t.geometries)this._add_geometry(s,r,n),"Feature"===e.type&&this._add_properties(e,r,n,o),n+=1;else this._add_geometry(t,r,n),"Feature"===e.type&&this._add_properties(e,r,n,o),n+=1}return r}}o.GeoJSONDataSource=c,c.__name__="GeoJSONDataSource",c.init_GeoJSONDataSource()},n function _(e,r,i){Object.defineProperty(i,"__esModule",{value:!0});var c=e(109);i.AdaptiveTicker=c.AdaptiveTicker;var a=e(108);i.BasicTicker=a.BasicTicker;var k=e(151);i.CategoricalTicker=k.CategoricalTicker;var T=e(162);i.CompositeTicker=T.CompositeTicker;var t=e(110);i.ContinuousTicker=t.ContinuousTicker;var o=e(161);i.DatetimeTicker=o.DatetimeTicker;var v=e(163);i.DaysTicker=v.DaysTicker;var n=e(298);i.FixedTicker=n.FixedTicker;var s=e(170);i.LogTicker=s.LogTicker;var l=e(173);i.MercatorTicker=l.MercatorTicker;var u=e(166);i.MonthsTicker=u.MonthsTicker;var d=e(164);i.SingleIntervalTicker=d.SingleIntervalTicker;var g=e(111);i.Ticker=g.Ticker;var C=e(167);i.YearsTicker=C.YearsTicker},n function _(i,t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=i(1),n=i(110),s=r.__importStar(i(19));class _ extends n.ContinuousTicker{constructor(i){super(i),this.min_interval=0,this.max_interval=0}static init_FixedTicker(){this.define({ticks:[s.Array,[]],minor_ticks:[s.Array,[]]})}get_ticks_no_defaults(i,t,e,r){return{major:this.ticks,minor:this.minor_ticks}}get_interval(i,t,e){return 0}}e.FixedTicker=_,_.__name__="FixedTicker",_.init_FixedTicker()},n function _(e,r,o){Object.defineProperty(o,"__esModule",{value:!0});var T=e(300);o.BBoxTileSource=T.BBoxTileSource;var c=e(301);o.MercatorTileSource=c.MercatorTileSource;var i=e(304);o.QUADKEYTileSource=i.QUADKEYTileSource;var l=e(305);o.TileRenderer=l.TileRenderer;var S=e(302);o.TileSource=S.TileSource;var u=e(308);o.TMSTileSource=u.TMSTileSource;var a=e(306);o.WMTSTileSource=a.WMTSTileSource},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(1),i=e(301),l=o.__importStar(e(19));class _ extends i.MercatorTileSource{constructor(e){super(e)}static init_BBoxTileSource(){this.define({use_latlon:[l.Boolean,!1]})}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars);let i,l,_,n;return this.use_latlon?[l,n,i,_]=this.get_tile_geographic_bounds(e,t,r):[l,n,i,_]=this.get_tile_meter_bounds(e,t,r),o.replace("{XMIN}",l.toString()).replace("{YMIN}",n.toString()).replace("{XMAX}",i.toString()).replace("{YMAX}",_.toString())}}r.BBoxTileSource=_,_.__name__="BBoxTileSource",_.init_BBoxTileSource()},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const _=t(1),s=t(302),r=_.__importStar(t(19)),o=t(9),n=t(303);class l extends s.TileSource{constructor(t){super(t)}static init_MercatorTileSource(){this.define({snap_to_zoom:[r.Boolean,!1],wrap_around:[r.Boolean,!0]}),this.override({x_origin_offset:20037508.34,y_origin_offset:20037508.34,initial_resolution:156543.03392804097})}initialize(){super.initialize(),this._resolutions=o.range(this.min_zoom,this.max_zoom+1).map(t=>this.get_resolution(t))}_computed_initial_resolution(){return null!=this.initial_resolution?this.initial_resolution:2*Math.PI*6378137/this.tile_size}is_valid_tile(t,e,i){return!(!this.wrap_around&&(t<0||t>=2**i))&&!(e<0||e>=2**i)}parent_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=_.substring(0,_.length-1);return this.quadkey_to_tile_xyz(s)}get_resolution(t){return this._computed_initial_resolution()/2**t}get_resolution_by_extent(t,e,i){return[(t[2]-t[0])/i,(t[3]-t[1])/e]}get_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s);let o=0;for(const t of this._resolutions){if(r>t){if(0==o)return 0;if(o>0)return o-1}o+=1}return o-1}get_closest_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s),o=this._resolutions.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t}));return this._resolutions.indexOf(o)}snap_to_zoom_level(t,e,i,_){const[s,r,o,n]=t,l=this._resolutions[_];let u=i*l,a=e*l;if(!this.snap_to_zoom){const t=(o-s)/u,e=(n-r)/a;t>e?(u=o-s,a*=t):(u*=e,a=n-r)}const h=(u-(o-s))/2,c=(a-(n-r))/2;return[s-h,r-c,o+h,n+c]}tms_to_wmts(t,e,i){return[t,2**i-1-e,i]}wmts_to_tms(t,e,i){return[t,2**i-1-e,i]}pixels_to_meters(t,e,i){const _=this.get_resolution(i);return[t*_-this.x_origin_offset,e*_-this.y_origin_offset]}meters_to_pixels(t,e,i){const _=this.get_resolution(i);return[(t+this.x_origin_offset)/_,(e+this.y_origin_offset)/_]}pixels_to_tile(t,e){let i=Math.ceil(t/this.tile_size);return i=0===i?i:i-1,[i,Math.max(Math.ceil(e/this.tile_size)-1,0)]}pixels_to_raster(t,e,i){return[t,(this.tile_size<<i)-e]}meters_to_tile(t,e,i){const[_,s]=this.meters_to_pixels(t,e,i);return this.pixels_to_tile(_,s)}get_tile_meter_bounds(t,e,i){const[_,s]=this.pixels_to_meters(t*this.tile_size,e*this.tile_size,i),[r,o]=this.pixels_to_meters((t+1)*this.tile_size,(e+1)*this.tile_size,i);return[_,s,r,o]}get_tile_geographic_bounds(t,e,i){const _=this.get_tile_meter_bounds(t,e,i),[s,r,o,l]=n.meters_extent_to_geographic(_);return[s,r,o,l]}get_tiles_by_extent(t,e,i=1){const[_,s,r,o]=t;let[n,l]=this.meters_to_tile(_,s,e),[u,a]=this.meters_to_tile(r,o,e);n-=i,l-=i,u+=i,a+=i;const h=[];for(let t=a;t>=l;t–)for(let i=n;i<=u;i++)this.is_valid_tile(i,t,e)&&h.push([i,t,e,this.get_tile_meter_bounds(i,t,e)]);return this.sort_tiles_from_center(h,[n,l,u,a]),h}quadkey_to_tile_xyz(t){let e=0,i=0;const _=t.length;for(let s=_;s>0;s–){const r=1<<s-1;switch(t.charAt(_-s)){case"0":continue;case"1":e|=r;break;case"2":i|=r;break;case"3":e|=r,i|=r;break;default:throw new TypeError(`Invalid Quadkey: ${t}`)}}return[e,i,_]}tile_xyz_to_quadkey(t,e,i){let _="";for(let s=i;s>0;s–){const i=1<<s-1;let r=0;0!=(t&i)&&(r+=1),0!=(e&i)&&(r+=2),_+=r.toString()}return _}children_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=[];for(let t=0;t<=3;t++){const[e,i,r]=this.quadkey_to_tile_xyz(_+t.toString()),o=this.get_tile_meter_bounds(e,i,r);s.push([e,i,r,o])}return s}get_closest_parent_by_tile_xyz(t,e,i){const _=this.calculate_world_x_by_tile_xyz(t,e,i);[t,e,i]=this.normalize_xyz(t,e,i);let s=this.tile_xyz_to_quadkey(t,e,i);for(;s.length>0;)if(s=s.substring(0,s.length-1),[t,e,i]=this.quadkey_to_tile_xyz(s),[t,e,i]=this.denormalize_xyz(t,e,i,_),this.tiles.has(this.tile_xyz_to_key(t,e,i)))return[t,e,i];return[0,0,0]}normalize_xyz(t,e,i){if(this.wrap_around){const _=2**i;return[(t%_+_)%_,e,i]}return[t,e,i]}denormalize_xyz(t,e,i,_){return[t+_*2**i,e,i]}denormalize_meters(t,e,i,_){return[t+2*_*Math.PI*6378137,e]}calculate_world_x_by_tile_xyz(t,e,i){return Math.floor(t/2**i)}}i.MercatorTileSource=l,l.__name__="MercatorTileSource",l.init_MercatorTileSource()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1),n=e(69),s=i.__importStar(e(19));class l extends n.Model{constructor(e){super(e)}static init_TileSource(){this.define({url:[s.String,""],tile_size:[s.Number,256],max_zoom:[s.Number,30],min_zoom:[s.Number,0],extra_url_vars:[s.Any,{}],attribution:[s.String,""],x_origin_offset:[s.Number],y_origin_offset:[s.Number],initial_resolution:[s.Number]})}initialize(){super.initialize(),this.tiles=new Map,this._normalize_case()}connect_signals(){super.connect_signals(),this.connect(this.change,()=>this._clear_cache())}string_lookup_replace(e,t){let r=e;for(const e in t){const i=t[e];r=r.replace(`{${e}}`,i)}return r}_normalize_case(){const e=this.url.replace("{x}","{X}").replace("{y}","{Y}").replace("{z}","{Z}").replace("{q}","{Q}").replace("{xmin}","{XMIN}").replace("{ymin}","{YMIN}").replace("{xmax}","{XMAX}").replace("{ymax}","{YMAX}");this.url=e}_clear_cache(){this.tiles=new Map}tile_xyz_to_key(e,t,r){return`${e}:${t}:${r}`}key_to_tile_xyz(e){const[t,r,i]=e.split(":").map(e=>parseInt(e));return[t,r,i]}sort_tiles_from_center(e,t){const[r,i,n,s]=t,l=(n-r)/2+r,a=(s-i)/2+i;e.sort((function(e,t){return Math.sqrt((l-e[0])**2+(a-e[1])**2)-Math.sqrt((l-t[0])**2+(a-t[1])**2)}))}get_image_url(e,t,r){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",t.toString()).replace("{Z}",r.toString())}}r.TileSource=l,l.__name__="TileSource",l.init_TileSource()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e(30);function o(e,t){return n.wgs84_mercator.forward([e,t])}function c(e,t){return n.wgs84_mercator.inverse([e,t])}r.geographic_to_meters=o,r.meters_to_geographic=c,r.geographic_extent_to_meters=function(e){const[t,r,n,c]=e,[_,i]=o(t,r),[s,u]=o(n,c);return[_,i,s,u]},r.meters_extent_to_geographic=function(e){const[t,r,n,o]=e,[_,i]=c(t,r),[s,u]=c(n,o);return[_,i,s,u]}},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const _=e(301);class s extends _.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const _=this.string_lookup_replace(this.url,this.extra_url_vars),[s,o,u]=this.tms_to_wmts(e,t,r),c=this.tile_xyz_to_quadkey(s,o,u);return _.replace("{Q}",c)}}r.QUADKEYTileSource=s,s.__name__="QUADKEYTileSource"},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),_=e(306),a=e(79),n=e(130),r=e(66),h=s.__importStar(e(19)),l=e(223),o=e(9),d=e(8),m=e(77),c=e(73),u=e(307);class p extends a.DataRendererView{initialize(){this._tiles=[],super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.request_render()),this.connect(this.model.tile_source.change,()=>this.request_render())}get_extent(){return[this.x_range.start,this.y_range.start,this.x_range.end,this.y_range.end]}get map_plot(){return this.plot_model}get map_canvas(){return this.plot_view.canvas_view.ctx}get map_frame(){return this.plot_view.frame}get x_range(){return this.map_plot.x_range}get y_range(){return this.map_plot.y_range}_set_data(){this.extent=this.get_extent(),this._last_height=void 0,this._last_width=void 0}_update_attribution(){null!=this.attribution_el&&r.removeElement(this.attribution_el);const{attribution:e}=this.model.tile_source;if(d.isString(e)&&e.length>0){const{layout:t,frame:i}=this.plot_view,s=t._width.value-i._right.value,_=t._height.value-i._bottom.value,a=i._width.value;this.attribution_el=r.div({class:u.bk_tile_attribution,style:{position:"absolute",right:`${s}px`,bottom:`${_}px`,"max-width":`${a-4}px`,padding:"2px","background-color":"rgba(255,255,255,0.5)","font-size":"9px","line-height":"1.05","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}}),this.plot_view.canvas_view.add_event(this.attribution_el),this.attribution_el.innerHTML=e,this.attribution_el.title=this.attribution_el.textContent.replace(/\s\n\s*/g," ")}}_map_data(){this.initial_extent=this.get_extent();const e=this.model.tile_source.get_level_by_extent(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value),t=this.model.tile_source.snap_to_zoom_level(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value,e);this.x_range.start=t[0],this.y_range.start=t[1],this.x_range.end=t[2],this.y_range.end=t[3],this.x_range instanceof n.Range1d&&(this.x_range.reset_start=t[0],this.x_range.reset_end=t[2]),this.y_range instanceof n.Range1d&&(this.y_range.reset_start=t[1],this.y_range.reset_end=t[3]),this._update_attribution()}_create_tile(e,t,i,s,_=!1){const[a,n,r]=this.model.tile_source.normalize_xyz(e,t,i),h={img:void 0,tile_coords:[e,t,i],normalized_coords:[a,n,r],quadkey:this.model.tile_source.tile_xyz_to_quadkey(e,t,i),cache_key:this.model.tile_source.tile_xyz_to_key(e,t,i),bounds:s,loaded:!1,finished:!1,x_coord:s[0],y_coord:s[3]},o=this.model.tile_source.get_image_url(a,n,r);new l.ImageLoader(o,{loaded:e=>{Object.assign(h,{img:e,loaded:!0}),_?(h.finished=!0,this.notify_finished()):this.request_render()},failed(){h.finished=!0}}),this.model.tile_source.tiles.set(h.cache_key,h),this._tiles.push(h)}_enforce_aspect_ratio(){if(this._last_height!==this.map_frame._height.value||this._last_width!==this.map_frame._width.value){const e=this.get_extent(),t=this.model.tile_source.get_level_by_extent(e,this.map_frame._height.value,this.map_frame._width.value),i=this.model.tile_source.snap_to_zoom_level(e,this.map_frame._height.value,this.map_frame._width.value,t);this.x_range.setv({start:i[0],end:i[2]}),this.y_range.setv({start:i[1],end:i[3]}),this.extent=i,this._last_height=this.map_frame._height.value,this._last_width=this.map_frame._width.value}}has_finished(){if(!super.has_finished())return!1;if(0===this._tiles.length)return!1;for(const e of this._tiles)if(!e.finished)return!1;return!0}render(){null==this.map_initialized&&(this._set_data(),this._map_data(),this.map_initialized=!0),this._enforce_aspect_ratio(),this._update(),null!=this.prefetch_timer&&clearTimeout(this.prefetch_timer),this.prefetch_timer=setTimeout(this._prefetch_tiles.bind(this),500),this.has_finished()&&this.notify_finished()}_draw_tile(e){const t=this.model.tile_source.tiles.get(e);if(null!=t&&t.loaded){const[[e],[i]]=this.plot_view.map_to_screen([t.bounds[0]],[t.bounds[3]]),[[s],[_]]=this.plot_view.map_to_screen([t.bounds[2]],[t.bounds[1]]),a=s-e,n=_-i,r=e,h=i,l=this.map_canvas.getImageSmoothingEnabled();this.map_canvas.setImageSmoothingEnabled(this.model.smoothing),this.map_canvas.drawImage(t.img,r,h,a,n),this.map_canvas.setImageSmoothingEnabled(l),t.finished=!0}}_set_rect(){const e=this.plot_model.properties.outline_line_width.value(),t=this.map_frame._left.value+e/2,i=this.map_frame._top.value+e/2,s=this.map_frame._width.value-e,_=this.map_frame._height.value-e;this.map_canvas.rect(t,i,s,_),this.map_canvas.clip()}_render_tiles(e){this.map_canvas.save(),this._set_rect(),this.map_canvas.globalAlpha=this.model.alpha;for(const t of e)this._draw_tile(t);this.map_canvas.restore()}_prefetch_tiles(){const{tile_source:e}=this.model,t=this.get_extent(),i=this.map_frame._height.value,s=this.map_frame._width.value,_=this.model.tile_source.get_level_by_extent(t,i,s),a=this.model.tile_source.get_tiles_by_extent(t,_);for(let t=0,i=Math.min(10,a.length);t<i;t++){const[i,s,_]=a[t],n=this.model.tile_source.children_by_tile_xyz(i,s,_);for(const t of n){const[i,s,_,a]=t;e.tiles.has(e.tile_xyz_to_key(i,s,_))||this._create_tile(i,s,_,a,!0)}}}_fetch_tiles(e){for(const t of e){const[e,i,s,_]=t;this._create_tile(e,i,s,_)}}_update(){const{tile_source:e}=this.model,{min_zoom:t}=e,{max_zoom:i}=e;let s=this.get_extent();const _=this.extent[2]-this.extent[0]<s[2]-s[0],a=this.map_frame._height.value,n=this.map_frame._width.value;let r=e.get_level_by_extent(s,a,n),h=!1;r<t?(s=this.extent,r=t,h=!0):r>i&&(s=this.extent,r=i,h=!0),h&&(this.x_range.setv({x_range:{start:s[0],end:s[2]}}),this.y_range.setv({start:s[1],end:s[3]})),this.extent=s;const l=e.get_tiles_by_extent(s,r),d=[],m=[],c=[],u=[];for(const t of l){const[i,s,a]=t,n=e.tile_xyz_to_key(i,s,a),r=e.tiles.get(n);if(null!=r&&r.loaded)m.push(n);else if(this.model.render_parents){const[t,n,r]=e.get_closest_parent_by_tile_xyz(i,s,a),h=e.tile_xyz_to_key(t,n,r),l=e.tiles.get(h);if(null!=l&&l.loaded&&!o.includes(c,h)&&c.push(h),_){const t=e.children_by_tile_xyz(i,s,a);for(const[i,s,_]of t){const t=e.tile_xyz_to_key(i,s,_);e.tiles.has(t)&&u.push(t)}}}null==r&&d.push(t)}this._render_tiles(c),this._render_tiles(u),this._render_tiles(m),null!=this.render_timer&&clearTimeout(this.render_timer),this.render_timer=setTimeout(()=>this._fetch_tiles(d),65)}}i.TileRendererView=p,p.__name__="TileRendererView";class g extends a.DataRenderer{constructor(e){super(e),this._selection_manager=new m.SelectionManager({source:new c.ColumnDataSource})}static init_TileRenderer(){this.prototype.default_view=p,this.define({alpha:[h.Number,1],smoothing:[h.Boolean,!0],tile_source:[h.Instance,()=>new _.WMTSTileSource],render_parents:[h.Boolean,!0]})}get_selection_manager(){return this._selection_manager}}i.TileRenderer=g,g.__name__="TileRenderer",g.init_TileRenderer()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(301);class s extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars),[s,c,_]=this.tms_to_wmts(e,t,r);return o.replace("{X}",s.toString()).replace("{Y}",c.toString()).replace("{Z}",_.toString())}}r.WMTSTileSource=s,s.__name__="WMTSTileSource"},n function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const o=t(1);t(67),o.__importStar(t(66)).styles.append(".bk-root .bk-tile-attribution a {\n color: black;\n}\n"),i.bk_tile_attribution="bk-tile-attribution"},n function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(301);class c extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,r,t){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",r.toString()).replace("{Z}",t.toString())}}t.TMSTileSource=c,c.__name__="TMSTileSource"},n function _(e,r,a){Object.defineProperty(a,"__esModule",{value:!0});var t=e(310);a.CanvasTexture=t.CanvasTexture;var u=e(312);a.ImageURLTexture=u.ImageURLTexture;var v=e(311);a.Texture=v.Texture},n function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t(1),c=t(311),s=r.__importStar(t(19)),i=t(26);class a extends c.Texture{constructor(t){super(t)}static init_CanvasTexture(){this.define({code:[s.String]})}get func(){const t=i.use_strict(this.code);return new Function("ctx","color","scale","weight",t)}get_pattern(t,e,n){return r=>{const c=document.createElement("canvas");c.width=e,c.height=e;const s=c.getContext("2d");return this.func.call(this,s,t,e,n),r.createPattern(c,this.repetition)}}}n.CanvasTexture=a,a.__name__="CanvasTexture",a.init_CanvasTexture()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),n=e(69),o=r.__importStar(e(19));class _ extends n.Model{constructor(e){super(e)}static init_Texture(){this.define({repetition:[o.TextureRepetition,"repeat"]})}onload(e){e()}}i.Texture=_,_.__name__="Texture",_.init_Texture()},n function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),a=e(311),n=r.__importStar(e(19)),s=e(223);class o extends a.Texture{constructor(e){super(e)}static init_ImageURLTexture(){this.define({url:[n.String]})}initialize(){super.initialize(),this._loader=new s.ImageLoader(this.url)}get_pattern(e,t,i){return e=>this._loader.finished?e.createPattern(this._loader.image,this.repetition):null}onload(e){this._loader.promise.then(()=>e())}}i.ImageURLTexture=o,o.__name__="ImageURLTexture",o.init_ImageURLTexture()},n function _(o,l,T){Object.defineProperty(T,"__esModule",{value:!0});var a=o(276);T.ActionTool=a.ActionTool;var r=o(314);T.CustomAction=r.CustomAction;var e=o(277);T.HelpTool=e.HelpTool;var v=o(315);T.RedoTool=v.RedoTool;var t=o(316);T.ResetTool=t.ResetTool;var n=o(317);T.SaveTool=n.SaveTool;var s=o(318);T.UndoTool=s.UndoTool;var P=o(319);T.ZoomInTool=P.ZoomInTool;var c=o(321);T.ZoomOutTool=c.ZoomOutTool;var i=o(270);T.ButtonTool=i.ButtonTool;var d=o(322);T.EditTool=d.EditTool;var u=o(323);T.BoxEditTool=u.BoxEditTool;var y=o(324);T.FreehandDrawTool=y.FreehandDrawTool;var m=o(325);T.PointDrawTool=m.PointDrawTool;var x=o(326);T.PolyDrawTool=x.PolyDrawTool;var B=o(327);T.PolyTool=B.PolyTool;var S=o(328);T.PolyEditTool=S.PolyEditTool;var b=o(329);T.BoxSelectTool=b.BoxSelectTool;var h=o(332);T.BoxZoomTool=h.BoxZoomTool;var Z=o(275);T.GestureTool=Z.GestureTool;var p=o(333);T.LassoSelectTool=p.LassoSelectTool;var w=o(334);T.PanTool=w.PanTool;var C=o(335);T.PolySelectTool=C.PolySelectTool;var D=o(336);T.RangeTool=D.RangeTool;var E=o(330);T.SelectTool=E.SelectTool;var H=o(337);T.TapTool=H.TapTool;var R=o(338);T.WheelPanTool=R.WheelPanTool;var A=o(339);T.WheelZoomTool=A.WheelZoomTool;var I=o(340);T.CrosshairTool=I.CrosshairTool;var W=o(341);T.CustomJSHover=W.CustomJSHover;var O=o(342);T.HoverTool=O.HoverTool;var _=o(269);T.InspectTool=_.InspectTool;var f=o(271);T.Tool=f.Tool;var g=o(343);T.ToolProxy=g.ToolProxy;var F=o(268);T.Toolbar=F.Toolbar;var G=o(274);T.ToolbarBase=G.ToolbarBase;var J=o(344);T.ProxyToolbar=J.ProxyToolbar;var L=o(344);T.ToolbarBox=L.ToolbarBox},n function _(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(1),s=t(276),e=n.__importStar(t(19)),c=t(272);class _ extends s.ActionToolButtonView{css_classes(){return super.css_classes().concat(c.bk_toolbar_button_custom_action)}}i.CustomActionButtonView=_,_.__name__="CustomActionButtonView";class l extends s.ActionToolView{doit(){null!=this.model.callback&&this.model.callback.execute(this.model)}}i.CustomActionView=l,l.__name__="CustomActionView";class u extends s.ActionTool{constructor(t){super(t),this.tool_name="Custom Action",this.button_view=_}static init_CustomAction(){this.prototype.default_view=l,this.define({action_tooltip:[e.String,"Perform a Custom Action"],callback:[e.Any],icon:[e.String]})}get tooltip(){return this.action_tooltip}}i.CustomAction=u,u.__name__="CustomAction",u.init_CustomAction()},n function _(o,e,t){Object.defineProperty(t,"__esModule",{value:!0});const i=o(276),s=o(278);class n extends i.ActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state_changed,()=>this.model.disabled=!this.plot_view.can_redo())}doit(){this.plot_view.redo()}}t.RedoToolView=n,n.__name__="RedoToolView";class _ extends i.ActionTool{constructor(o){super(o),this.tool_name="Redo",this.icon=s.bk_tool_icon_redo}static init_RedoTool(){this.prototype.default_view=n,this.override({disabled:!0}),this.register_alias("redo",()=>new _)}}t.RedoTool=_,_.__name__="RedoTool",_.init_RedoTool()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(276),i=e(278);class _ extends s.ActionToolView{doit(){this.plot_view.reset()}}o.ResetToolView=_,_.__name__="ResetToolView";class l extends s.ActionTool{constructor(e){super(e),this.tool_name="Reset",this.icon=i.bk_tool_icon_reset}static init_ResetTool(){this.prototype.default_view=_,this.register_alias("reset",()=>new l)}}o.ResetTool=l,l.__name__="ResetTool",l.init_ResetTool()},n function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e(276),s=e(278);class _ extends i.ActionToolView{doit(){this.plot_view.save("bokeh_plot")}}t.SaveToolView=_,_.__name__="SaveToolView";class a extends i.ActionTool{constructor(e){super(e),this.tool_name="Save",this.icon=s.bk_tool_icon_save}static init_SaveTool(){this.prototype.default_view=_,this.register_alias("save",()=>new a)}}t.SaveTool=a,a.__name__="SaveTool",a.init_SaveTool()},n function _(o,t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=o(276),i=o(278);class s extends n.ActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state_changed,()=>this.model.disabled=!this.plot_view.can_undo())}doit(){this.plot_view.undo()}}e.UndoToolView=s,s.__name__="UndoToolView";class _ extends n.ActionTool{constructor(o){super(o),this.tool_name="Undo",this.icon=i.bk_tool_icon_undo}static init_UndoTool(){this.prototype.default_view=s,this.override({disabled:!0}),this.register_alias("undo",()=>new _)}}e.UndoTool=_,_.__name__="UndoTool",_.init_UndoTool()},n function _(o,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=o(1),n=o(276),s=o(320),_=e.__importStar(o(19)),m=o(278);class l extends n.ActionToolView{doit(){const o=this.plot_view.frame,t=this.model.dimensions,i="width"==t||"both"==t,e="height"==t||"both"==t,n=s.scale_range(o,this.model.factor,i,e);this.plot_view.push_state("zoom_out",{range:n}),this.plot_view.update_range(n,!1,!0),this.model.document&&this.model.document.interactive_start(this.plot_model)}}i.ZoomInToolView=l,l.__name__="ZoomInToolView";class h extends n.ActionTool{constructor(o){super(o),this.tool_name="Zoom In",this.icon=m.bk_tool_icon_zoom_in}static init_ZoomInTool(){this.prototype.default_view=l,this.define({factor:[_.Percent,.1],dimensions:[_.Dimensions,"both"]}),this.register_alias("zoom_in",()=>new h({dimensions:"both"})),this.register_alias("xzoom_in",()=>new h({dimensions:"width"})),this.register_alias("yzoom_in",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}i.ZoomInTool=h,h.__name__="ZoomInTool",h.init_ZoomInTool()},n function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=n(10);function r(n,t,e){const[o,r]=[n.start,n.end],c=null!=e?e:(r+o)/2;return[o-(o-c)*t,r-(r-c)*t]}function c(n,[t,e]){const o={};for(const r in n){const c=n[r],[s,l]=c.r_invert(t,e);o[r]={start:s,end:l}}return o}e.scale_highlow=r,e.get_info=c,e.scale_range=function(n,t,e=!0,s=!0,l){t=o.clamp(t,-.9,.9);const a=e?t:0,[u,i]=r(n.bbox.h_range,a,null!=l?l.x:void 0),_=c(n.xscales,[u,i]),f=s?t:0,[d,b]=r(n.bbox.v_range,f,null!=l?l.y:void 0);return{xrs:_,yrs:c(n.yscales,[d,b]),factor:t}}},n function _(o,t,i){Object.defineProperty(i,"__esModule",{value:!0});const e=o(1),s=o(276),n=o(320),_=e.__importStar(o(19)),m=o(278);class l extends s.ActionToolView{doit(){const o=this.plot_view.frame,t=this.model.dimensions,i="width"==t||"both"==t,e="height"==t||"both"==t,s=n.scale_range(o,-this.model.factor,i,e);this.plot_view.push_state("zoom_out",{range:s}),this.plot_view.update_range(s,!1,!0),this.model.document&&this.model.document.interactive_start(this.plot_model)}}i.ZoomOutToolView=l,l.__name__="ZoomOutToolView";class h extends s.ActionTool{constructor(o){super(o),this.tool_name="Zoom Out",this.icon=m.bk_tool_icon_zoom_out}static init_ZoomOutTool(){this.prototype.default_view=l,this.define({factor:[_.Percent,.1],dimensions:[_.Dimensions,"both"]}),this.register_alias("zoom_out",()=>new h({dimensions:"both"})),this.register_alias("xzoom_out",()=>new h({dimensions:"width"})),this.register_alias("yzoom_out",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}i.ZoomOutTool=h,h.__name__="ZoomOutTool",h.init_ZoomOutTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const o=e(1).__importStar(e(19)),n=e(9),i=e(8),_=e(275);class r extends _.GestureToolView{constructor(){super(…arguments),this._mouse_in_frame=!0}_move_enter(e){this._mouse_in_frame=!0}_move_exit(e){this._mouse_in_frame=!1}_map_drag(e,t,s){const o=this.plot_view.frame;return o.bbox.contains(e,t)?[o.xscales[s.x_range_name].invert(e),o.yscales[s.y_range_name].invert(t)]:null}_delete_selected(e){const t=e.data_source,s=t.selected.indices;s.sort();for(const e of t.columns()){const o=t.get_array(e);for(let e=0;e<s.length;e++){const t=s[e];o.splice(t-e,1)}}this._emit_cds_changes(t)}_pop_glyphs(e,t){const s=e.columns();if(t&&s.length)for(const o of s){let s=e.get_array(o);const n=s.length-t+1;n<1||(i.isArray(s)||(s=Array.from(s),e.data[o]=s),s.splice(0,n))}}_emit_cds_changes(e,t=!0,s=!0,o=!0){s&&e.selection_manager.clear(),t&&e.change.emit(),o&&(e.data=e.data,e.properties.data.change.emit())}_drag_points(e,t){if(null==this._basepoint)return;const[s,o]=this._basepoint;for(const n of t){const t=this._map_drag(s,o,n),i=this._map_drag(e.sx,e.sy,n);if(null==i||null==t)continue;const[_,r]=i,[a,c]=t,[l,d]=[_-a,r-c],m=n.glyph,u=n.data_source,[p,h]=[m.x.field,m.y.field];for(const e of u.selected.indices)p&&(u.data[p][e]+=l),h&&(u.data[h][e]+=d);u.change.emit()}this._basepoint=[e.sx,e.sy]}_pad_empty_columns(e,t){for(const s of e.columns())n.includes(t,s)||e.get_array(s).push(this.model.empty_value)}_select_event(e,t,s){const o=this.plot_view.frame,{sx:n,sy:i}=e;if(!o.bbox.contains(n,i))return[];const _={type:"point",sx:n,sy:i},r=[];for(const e of s){const s=e.get_selection_manager(),o=e.data_source,n=[this.plot_view.renderer_views[e.id]];s.select(n,_,!0,t)&&r.push(e),o.properties.selected.change.emit()}return r}}s.EditToolView=r,r.__name__="EditToolView";class a extends _.GestureTool{constructor(e){super(e)}static init_EditTool(){this.define({custom_icon:[o.String],custom_tooltip:[o.String],empty_value:[o.Any],renderers:[o.Array,[]]})}get tooltip(){return this.custom_tooltip||this.tool_name}get computed_icon(){return this.custom_icon||this.icon}}s.EditTool=a,a.__name__="EditTool",a.init_EditTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),_=e(66),o=i.__importStar(e(19)),n=e(322),a=e(278);class d extends n.EditToolView{_tap(e){if(null!=this._draw_basepoint||null!=this._basepoint)return;const t=e.shiftKey;this._select_event(e,t,this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)if(e.keyCode===_.Keys.Backspace)this._delete_selected(t);else if(e.keyCode==_.Keys.Esc){t.data_source.selection_manager.clear()}}_set_extent([e,t],[s,i],_,o=!1){const n=this.model.renderers[0],a=this.plot_view.frame,d=n.glyph,l=n.data_source,r=a.xscales[n.x_range_name],h=a.yscales[n.y_range_name],[p,u]=r.r_invert(e,t),[c,m]=h.r_invert(s,i),[f,b]=[(p+u)/2,(c+m)/2],[y,x]=[u-p,m-c],[w,g]=[d.x.field,d.y.field],[v,E]=[d.width.field,d.height.field];if(_)this._pop_glyphs(l,this.model.num_objects),w&&l.get_array(w).push(f),g&&l.get_array(g).push(b),v&&l.get_array(v).push(y),E&&l.get_array(E).push(x),this._pad_empty_columns(l,[w,g,v,E]);else{const e=l.data[w].length-1;w&&(l.data[w][e]=f),g&&(l.data[g][e]=b),v&&(l.data[v][e]=y),E&&(l.data[E][e]=x)}this._emit_cds_changes(l,!0,!1,o)}_update_box(e,t=!1,s=!1){if(null==this._draw_basepoint)return;const i=[e.sx,e.sy],_=this.plot_view.frame,o=this.model.dimensions,n=this.model._get_dim_limits(this._draw_basepoint,i,_,o);if(null!=n){const[e,i]=n;this._set_extent(e,i,t,s)}}_doubletap(e){this.model.active&&(null!=this._draw_basepoint?(this._update_box(e,!1,!0),this._draw_basepoint=null):(this._draw_basepoint=[e.sx,e.sy],this._select_event(e,!0,this.model.renderers),this._update_box(e,!0,!1)))}_move(e){this._update_box(e,!1,!1)}_pan_start(e){if(e.shiftKey){if(null!=this._draw_basepoint)return;this._draw_basepoint=[e.sx,e.sy],this._update_box(e,!0,!1)}else{if(null!=this._basepoint)return;this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy]}}_pan(e,t=!1,s=!1){if(e.shiftKey){if(null==this._draw_basepoint)return;this._update_box(e,t,s)}else{if(null==this._basepoint)return;this._drag_points(e,this.model.renderers)}}_pan_end(e){if(this._pan(e,!1,!0),e.shiftKey)this._draw_basepoint=null;else{this._basepoint=null;for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0)}}}s.BoxEditToolView=d,d.__name__="BoxEditToolView";class l extends n.EditTool{constructor(e){super(e),this.tool_name="Box Edit Tool",this.icon=a.bk_tool_icon_box_edit,this.event_type=["tap","pan","move"],this.default_order=1}static init_BoxEditTool(){this.prototype.default_view=d,this.define({dimensions:[o.Dimensions,"both"],num_objects:[o.Int,0]})}}s.BoxEditTool=l,l.__name__="BoxEditTool",l.init_BoxEditTool()},n function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const s=e(1),r=e(66),_=s.__importStar(e(19)),o=e(8),i=e(322),d=e(278);class n extends i.EditToolView{_draw(e,t,a=!1){if(!this.model.active)return;const s=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,s);if(null==r)return;const[_,i]=r,d=s.data_source,n=s.glyph,[h,l]=[n.xs.field,n.ys.field];if("new"==t)this._pop_glyphs(d,this.model.num_objects),h&&d.get_array(h).push([_]),l&&d.get_array(l).push([i]),this._pad_empty_columns(d,[h,l]);else if("add"==t){if(h){const e=d.data[h].length-1;let t=d.get_array(h)[e];o.isArray(t)||(t=Array.from(t),d.data[h][e]=t),t.push(_)}if(l){const e=d.data[l].length-1;let t=d.get_array(l)[e];o.isArray(t)||(t=Array.from(t),d.data[l][e]=t),t.push(i)}}this._emit_cds_changes(d,!0,!0,a)}_pan_start(e){this._draw(e,"new")}_pan(e){this._draw(e,"add")}_pan_end(e){this._draw(e,"add",!0)}_tap(e){this._select_event(e,e.shiftKey,this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===r.Keys.Esc?t.data_source.selection_manager.clear():e.keyCode===r.Keys.Backspace&&this._delete_selected(t)}}a.FreehandDrawToolView=n,n.__name__="FreehandDrawToolView";class h extends i.EditTool{constructor(e){super(e),this.tool_name="Freehand Draw Tool",this.icon=d.bk_tool_icon_freehand_draw,this.event_type=["pan","tap"],this.default_order=3}static init_FreehandDrawTool(){this.prototype.default_view=n,this.define({num_objects:[_.Int,0]})}}a.FreehandDrawTool=h,h.__name__="FreehandDrawTool",h.init_FreehandDrawTool()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(1),i=e(66),a=s.__importStar(e(19)),n=e(322),_=e(278);class r extends n.EditToolView{_tap(e){const t=e.shiftKey;if(this._select_event(e,t,this.model.renderers).length||!this.model.add)return;const o=this.model.renderers[0],s=this._map_drag(e.sx,e.sy,o);if(null==s)return;const i=o.glyph,a=o.data_source,[n,_]=[i.x.field,i.y.field],[r,d]=s;this._pop_glyphs(a,this.model.num_objects),n&&a.get_array(n).push(r),_&&a.get_array(_).push(d),this._pad_empty_columns(a,[n,_]),a.change.emit(),a.data=a.data,a.properties.data.change.emit()}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===i.Keys.Backspace?this._delete_selected(t):e.keyCode==i.Keys.Esc&&t.data_source.selection_manager.clear()}_pan_start(e){this.model.drag&&(this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){this.model.drag&&null!=this._basepoint&&this._drag_points(e,this.model.renderers)}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0);this._basepoint=null}}}o.PointDrawToolView=r,r.__name__="PointDrawToolView";class d extends n.EditTool{constructor(e){super(e),this.tool_name="Point Draw Tool",this.icon=_.bk_tool_icon_point_draw,this.event_type=["tap","pan","move"],this.default_order=2}static init_PointDrawTool(){this.prototype.default_view=r,this.define({add:[a.Boolean,!0],drag:[a.Boolean,!0],num_objects:[a.Int,0]})}}o.PointDrawTool=d,d.__name__="PointDrawTool",d.init_PointDrawTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),r=e(66),a=i.__importStar(e(19)),o=e(8),n=e(327),_=e(278);class d extends n.PolyToolView{constructor(){super(…arguments),this._drawing=!1,this._initialized=!1}_tap(e){this._drawing?this._draw(e,"add",!0):this._select_event(e,e.shiftKey,this.model.renderers)}_draw(e,t,s=!1){const i=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,i);if(this._initialized||this.activate(),null==r)return;const[a,n]=this._snap_to_vertex(e,…r),_=i.data_source,d=i.glyph,[l,h]=[d.xs.field,d.ys.field];if("new"==t)this._pop_glyphs(_,this.model.num_objects),l&&_.get_array(l).push([a,a]),h&&_.get_array(h).push([n,n]),this._pad_empty_columns(_,[l,h]);else if("edit"==t){if(l){const e=_.data[l][_.data[l].length-1];e[e.length-1]=a}if(h){const e=_.data[h][_.data[h].length-1];e[e.length-1]=n}}else if("add"==t){if(l){const e=_.data[l].length-1;let t=_.get_array(l)[e];const s=t[t.length-1];t[t.length-1]=a,o.isArray(t)||(t=Array.from(t),_.data[l][e]=t),t.push(s)}if(h){const e=_.data[h].length-1;let t=_.get_array(h)[e];const s=t[t.length-1];t[t.length-1]=n,o.isArray(t)||(t=Array.from(t),_.data[h][e]=t),t.push(s)}}this._emit_cds_changes(_,!0,!1,s)}_show_vertices(){if(!this.model.active)return;const e=[],t=[];for(let s=0;s<this.model.renderers.length;s++){const i=this.model.renderers[s],r=i.data_source,a=i.glyph,[o,n]=[a.xs.field,a.ys.field];if(o)for(const t of r.get_array(o))Array.prototype.push.apply(e,t);if(n)for(const e of r.get_array(n))Array.prototype.push.apply(t,e);this._drawing&&s==this.model.renderers.length-1&&(e.splice(e.length-1,1),t.splice(t.length-1,1))}this._set_vertices(e,t)}_doubletap(e){this.model.active&&(this._drawing?(this._drawing=!1,this._draw(e,"edit",!0)):(this._drawing=!0,this._draw(e,"new",!0)))}_move(e){this._drawing&&this._draw(e,"edit")}_remove(){const e=this.model.renderers[0],t=e.data_source,s=e.glyph,[i,r]=[s.xs.field,s.ys.field];if(i){const e=t.data[i].length-1,s=t.get_array(i)[e];s.splice(s.length-1,1)}if(r){const e=t.data[r].length-1,s=t.get_array(r)[e];s.splice(s.length-1,1)}this._emit_cds_changes(t)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)e.keyCode===r.Keys.Backspace?this._delete_selected(t):e.keyCode==r.Keys.Esc&&(this._drawing&&(this._remove(),this._drawing=!1),t.data_source.selection_manager.clear())}_pan_start(e){this.model.drag&&(this._select_event(e,!0,this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){if(null==this._basepoint||!this.model.drag)return;const[t,s]=this._basepoint;for(const i of this.model.renderers){const r=this._map_drag(t,s,i),a=this._map_drag(e.sx,e.sy,i);if(null==a||null==r)continue;const o=i.data_source,n=i.glyph,[_,d]=[n.xs.field,n.ys.field];if(!_&&!d)continue;const[l,h]=a,[c,g]=r,[p,f]=[l-c,h-g];for(const e of o.selected.indices){let t,s,i;_&&(s=o.data[_][e]),d?(i=o.data[d][e],t=i.length):t=s.length;for(let e=0;e<t;e++)s&&(s[e]+=p),i&&(i[e]+=f)}o.change.emit()}this._basepoint=[e.sx,e.sy]}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source);this._basepoint=null}}activate(){if(this.model.vertex_renderer&&this.model.active){if(this._show_vertices(),!this._initialized)for(const e of this.model.renderers){const t=e.data_source;t.connect(t.properties.data.change,()=>this._show_vertices())}this._initialized=!0}}deactivate(){this._drawing&&(this._remove(),this._drawing=!1),this.model.vertex_renderer&&this._hide_vertices()}}s.PolyDrawToolView=d,d.__name__="PolyDrawToolView";class l extends n.PolyTool{constructor(e){super(e),this.tool_name="Polygon Draw Tool",this.icon=_.bk_tool_icon_poly_draw,this.event_type=["pan","tap","move"],this.default_order=3}static init_PolyDrawTool(){this.prototype.default_view=d,this.define({drag:[a.Boolean,!0],num_objects:[a.Int,0]})}}s.PolyDrawTool=l,l.__name__="PolyDrawTool",l.init_PolyDrawTool()},n function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const o=e(1).__importStar(e(19)),i=e(8),s=e(322);class _ extends s.EditToolView{_set_vertices(e,t){const r=this.model.vertex_renderer.glyph,o=this.model.vertex_renderer.data_source,[s,_]=[r.x.field,r.y.field];s&&(i.isArray(e)?o.data[s]=e:r.x={value:e}),_&&(i.isArray(t)?o.data[_]=t:r.y={value:t}),this._emit_cds_changes(o,!0,!0,!1)}_hide_vertices(){this._set_vertices([],[])}_snap_to_vertex(e,t,r){if(this.model.vertex_renderer){const o=this._select_event(e,!1,[this.model.vertex_renderer]),i=this.model.vertex_renderer.data_source,s=this.model.vertex_renderer.glyph,[_,l]=[s.x.field,s.y.field];if(o.length){const e=i.selected.indices[0];_&&(t=i.data[_][e]),l&&(r=i.data[l][e]),i.selection_manager.clear()}}return[t,r]}}r.PolyToolView=_,_.__name__="PolyToolView";class l extends s.EditTool{constructor(e){super(e)}static init_PolyTool(){this.prototype.default_view=_,this.define({vertex_renderer:[o.Instance]})}}r.PolyTool=l,l.__name__="PolyTool",l.init_PolyTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(66),i=e(8),_=e(327),d=e(278);class n extends _.PolyToolView{constructor(){super(…arguments),this._drawing=!1}_doubletap(e){if(!this.model.active)return;const t=this._map_drag(e.sx,e.sy,this.model.vertex_renderer);if(null==t)return;const[s,r]=t,i=this._select_event(e,!1,[this.model.vertex_renderer]),_=this.model.vertex_renderer.data_source,d=this.model.vertex_renderer.glyph,[n,l]=[d.x.field,d.y.field];if(i.length&&null!=this._selected_renderer){const e=_.selected.indices[0];this._drawing?(this._drawing=!1,_.selection_manager.clear()):(_.selected.indices=[e+1],n&&_.get_array(n).splice(e+1,0,s),l&&_.get_array(l).splice(e+1,0,r),this._drawing=!0),_.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}else this._show_vertices(e)}_show_vertices(e){if(!this.model.active)return;const t=this._select_event(e,!1,this.model.renderers);if(!t.length)return this._set_vertices([],[]),this._selected_renderer=null,void(this._drawing=!1);const s=t[0],r=s.glyph,_=s.data_source,d=_.selected.indices[0],[n,l]=[r.xs.field,r.ys.field];let a,c;n?(a=_.data[n][d],i.isArray(a)||(_.data[n][d]=a=Array.from(a))):a=r.xs.value,l?(c=_.data[l][d],i.isArray(c)||(_.data[l][d]=c=Array.from(c))):c=r.ys.value,this._selected_renderer=s,this._set_vertices(a,c)}_move(e){if(this._drawing&&null!=this._selected_renderer){const t=this.model.vertex_renderer,s=t.data_source,r=t.glyph,i=this._map_drag(e.sx,e.sy,t);if(null==i)return;let[_,d]=i;const n=s.selected.indices;[_,d]=this._snap_to_vertex(e,_,d),s.selected.indices=n;const[l,a]=[r.x.field,r.y.field],c=n[0];l&&(s.data[l][c]=_),a&&(s.data[a][c]=d),s.change.emit(),this._selected_renderer.data_source.change.emit()}}_tap(e){const t=this.model.vertex_renderer,s=this._map_drag(e.sx,e.sy,t);if(null==s)return;if(this._drawing&&this._selected_renderer){let[r,i]=s;const _=t.data_source,d=t.glyph,[n,l]=[d.x.field,d.y.field],a=_.selected.indices;[r,i]=this._snap_to_vertex(e,r,i);const c=a[0];if(_.selected.indices=[c+1],n){const e=_.get_array(n),t=e[c];e[c]=r,e.splice(c+1,0,t)}if(l){const e=_.get_array(l),t=e[c];e[c]=i,e.splice(c+1,0,t)}return _.change.emit(),void this._emit_cds_changes(this._selected_renderer.data_source,!0,!1,!0)}const r=e.shiftKey;this._select_event(e,r,[t]),this._select_event(e,r,this.model.renderers)}_remove_vertex(){if(!this._drawing||!this._selected_renderer)return;const e=this.model.vertex_renderer,t=e.data_source,s=e.glyph,r=t.selected.indices[0],[i,_]=[s.x.field,s.y.field];i&&t.get_array(i).splice(r,1),_&&t.get_array(_).splice(r,1),t.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}_pan_start(e){this._select_event(e,!0,[this.model.vertex_renderer]),this._basepoint=[e.sx,e.sy]}_pan(e){null!=this._basepoint&&(this._drag_points(e,[this.model.vertex_renderer]),this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&(this._drag_points(e,[this.model.vertex_renderer]),this._emit_cds_changes(this.model.vertex_renderer.data_source,!1,!0,!0),this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}_keyup(e){if(!this.model.active||!this._mouse_in_frame)return;let t;t=this._selected_renderer?[this.model.vertex_renderer]:this.model.renderers;for(const s of t)e.keyCode===r.Keys.Backspace?(this._delete_selected(s),this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source)):e.keyCode==r.Keys.Esc&&(this._drawing?(this._remove_vertex(),this._drawing=!1):this._selected_renderer&&this._hide_vertices(),s.data_source.selection_manager.clear())}deactivate(){this._selected_renderer&&(this._drawing&&(this._remove_vertex(),this._drawing=!1),this._hide_vertices())}}s.PolyEditToolView=n,n.__name__="PolyEditToolView";class l extends _.PolyTool{constructor(e){super(e),this.tool_name="Poly Edit Tool",this.icon=d.bk_tool_icon_poly_edit,this.event_type=["tap","pan","move"],this.default_order=4}static init_PolyEditTool(){this.prototype.default_view=n}}s.PolyEditTool=l,l.__name__="PolyEditTool",l.init_PolyEditTool()},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e(1),i=e(330),l=e(105),n=s.__importStar(e(19)),_=e(278);class c extends i.SelectToolView{_compute_limits(e){const t=this.plot_view.frame,o=this.model.dimensions;let s=this._base_point;if("center"==this.model.origin){const[t,o]=s,[i,l]=e;s=[t-(i-t),o-(l-o)]}return this.model._get_dim_limits(s,e,t,o)}_pan_start(e){const{sx:t,sy:o}=e;this._base_point=[t,o]}_pan(e){const{sx:t,sy:o}=e,s=[t,o],[i,l]=this._compute_limits(s);if(this.model.overlay.update({left:i[0],right:i[1],top:l[0],bottom:l[1]}),this.model.select_every_mousemove){const t=e.shiftKey;this._do_select(i,l,!1,t)}}_pan_end(e){const{sx:t,sy:o}=e,s=[t,o],[i,l]=this._compute_limits(s),n=e.shiftKey;this._do_select(i,l,!0,n),this.model.overlay.update({left:null,right:null,top:null,bottom:null}),this._base_point=null,this.plot_view.push_state("box_select",{selection:this.plot_view.get_selection()})}_do_select([e,t],[o,s],i,l=!1){const n={type:"rect",sx0:e,sx1:t,sy0:o,sy1:s};this._select(n,i,l)}}o.BoxSelectToolView=c,c.__name__="BoxSelectToolView";const a=()=>new l.BoxAnnotation({level:"overlay",render_mode:"css",top_units:"screen",left_units:"screen",bottom_units:"screen",right_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class r extends i.SelectTool{constructor(e){super(e),this.tool_name="Box Select",this.icon=_.bk_tool_icon_box_select,this.event_type="pan",this.default_order=30}static init_BoxSelectTool(){this.prototype.default_view=c,this.define({dimensions:[n.Dimensions,"both"],select_every_mousemove:[n.Boolean,!1],overlay:[n.Instance,a],origin:[n.BoxOrigin,"corner"]}),this.register_alias("box_select",()=>new r),this.register_alias("xbox_select",()=>new r({dimensions:"width"})),this.register_alias("ybox_select",()=>new r({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}o.BoxSelectTool=r,r.__name__="BoxSelectTool",r.init_BoxSelectTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(1),n=e(275),o=e(78),i=e(97),c=e(331),_=r.__importStar(e(19)),a=e(66),l=e(281);class d extends n.GestureToolView{get computed_renderers(){const e=this.model.renderers,t=this.plot_model.renderers,s=this.model.names;return c.compute_renderers(e,t,s)}_computed_renderers_by_data_source(){const e={};for(const t of this.computed_renderers){let s;if(t instanceof o.GlyphRenderer)s=t.data_source.id;else{if(!(t instanceof i.GraphRenderer))continue;s=t.node_renderer.data_source.id}s in e||(e[s]=[]),e[s].push(t)}return e}_keyup(e){if(e.keyCode==a.Keys.Esc){for(const e of this.computed_renderers)e.get_selection_manager().clear();this.plot_view.request_render()}}_select(e,t,s){const r=this._computed_renderers_by_data_source();for(const n in r){const o=r[n],i=o[0].get_selection_manager(),c=[];for(const e of o)e.id in this.plot_view.renderer_views&&c.push(this.plot_view.renderer_views[e.id]);i.select(c,e,t,s)}null!=this.model.callback&&this._emit_callback(e),this._emit_selection_event(e,t)}_emit_selection_event(e,t=!0){const{frame:s}=this.plot_view,r=s.xscales.default,n=s.yscales.default;let o;switch(e.type){case"point":{const{sx:t,sy:s}=e,i=r.invert(t),c=n.invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}case"span":{const{sx:t,sy:s}=e,i=r.invert(t),c=n.invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}case"rect":{const{sx0:t,sx1:s,sy0:i,sy1:c}=e,[_,a]=r.r_invert(t,s),[l,d]=n.r_invert(i,c);o=Object.assign(Object.assign({},e),{x0:_,y0:l,x1:a,y1:d});break}case"poly":{const{sx:t,sy:s}=e,i=r.v_invert(t),c=n.v_invert(s);o=Object.assign(Object.assign({},e),{x:i,y:c});break}}this.plot_model.trigger_event(new l.SelectionGeometry(o,t))}}s.SelectToolView=d,d.__name__="SelectToolView";class u extends n.GestureTool{constructor(e){super(e)}static init_SelectTool(){this.define({renderers:[_.Any,"auto"],names:[_.Array,[]]})}}s.SelectTool=u,u.__name__="SelectTool",u.init_SelectTool()},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const r=e(9);t.compute_renderers=function(e,n,t){if(null==e)return[];let u="auto"==e?n:e;return t.length>0&&(u=u.filter(e=>r.includes(t,e.name))),u}},n function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const s=t(1),i=t(275),n=t(105),a=s.__importStar(t(19)),_=t(278);class l extends i.GestureToolView{_match_aspect(t,o,e){const s=e.bbox.aspect,i=e.bbox.h_range.end,n=e.bbox.h_range.start,a=e.bbox.v_range.end,_=e.bbox.v_range.start;let l=Math.abs(t[0]-o[0]),r=Math.abs(t[1]-o[1]);const h=0==r?0:l/r,[c]=h>=s?[1,h/s]:[s/h,1];let m,p,d,u;return t[0]<=o[0]?(m=t[0],p=t[0]+l*c,p>i&&(p=i)):(p=t[0],m=t[0]-l*c,m<n&&(m=n)),l=Math.abs(p-m),t[1]<=o[1]?(u=t[1],d=t[1]+l/s,d>a&&(d=a)):(d=t[1],u=t[1]-l/s,u<_&&(u=_)),r=Math.abs(d-u),t[0]<=o[0]?p=t[0]+s*r:m=t[0]-s*r,[[m,p],[u,d]]}_compute_limits(t){const o=this.plot_view.frame,e=this.model.dimensions;let s,i,n=this._base_point;if("center"==this.model.origin){const[o,e]=n,[s,i]=t;n=[o-(s-o),e-(i-e)]}return this.model.match_aspect&&"both"==e?[s,i]=this._match_aspect(n,t,o):[s,i]=this.model._get_dim_limits(n,t,o,e),[s,i]}_pan_start(t){this._base_point=[t.sx,t.sy]}_pan(t){const o=[t.sx,t.sy],[e,s]=this._compute_limits(o);this.model.overlay.update({left:e[0],right:e[1],top:s[0],bottom:s[1]})}_pan_end(t){const o=[t.sx,t.sy],[e,s]=this._compute_limits(o);this._update(e,s),this.model.overlay.update({left:null,right:null,top:null,bottom:null}),this._base_point=null}_update([t,o],[e,s]){if(Math.abs(o-t)<=5||Math.abs(s-e)<=5)return;const{xscales:i,yscales:n}=this.plot_view.frame,a={};for(const e in i){const s=i[e],[n,_]=s.r_invert(t,o);a[e]={start:n,end:_}}const _={};for(const t in n){const o=n[t],[i,a]=o.r_invert(e,s);_[t]={start:i,end:a}}const l={xrs:a,yrs:_};this.plot_view.push_state("box_zoom",{range:l}),this.plot_view.update_range(l)}}e.BoxZoomToolView=l,l.__name__="BoxZoomToolView";const r=()=>new n.BoxAnnotation({level:"overlay",render_mode:"css",top_units:"screen",left_units:"screen",bottom_units:"screen",right_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class h extends i.GestureTool{constructor(t){super(t),this.tool_name="Box Zoom",this.icon=_.bk_tool_icon_box_zoom,this.event_type="pan",this.default_order=20}static init_BoxZoomTool(){this.prototype.default_view=l,this.define({dimensions:[a.Dimensions,"both"],overlay:[a.Instance,r],match_aspect:[a.Boolean,!1],origin:[a.BoxOrigin,"corner"]}),this.register_alias("box_zoom",()=>new h({dimensions:"both"})),this.register_alias("xbox_zoom",()=>new h({dimensions:"width"})),this.register_alias("ybox_zoom",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}e.BoxZoomTool=h,h.__name__="BoxZoomTool",h.init_BoxZoomTool()},n function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const l=e(1),a=e(330),o=e(138),i=e(66),_=l.__importStar(e(19)),c=e(278);class n extends a.SelectToolView{initialize(){super.initialize(),this.data=null}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._active_change())}_active_change(){this.model.active||this._clear_overlay()}_keyup(e){e.keyCode==i.Keys.Enter&&this._clear_overlay()}_pan_start(e){const{sx:s,sy:t}=e;this.data={sx:[s],sy:[t]}}_pan(e){const{sx:s,sy:t}=e,[l,a]=this.plot_view.frame.bbox.clip(s,t);if(this.data.sx.push(l),this.data.sy.push(a),this.model.overlay.update({xs:this.data.sx,ys:this.data.sy}),this.model.select_every_mousemove){const s=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!1,s)}}_pan_end(e){this._clear_overlay();const s=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!0,s),this.plot_view.push_state("lasso_select",{selection:this.plot_view.get_selection()})}_clear_overlay(){this.model.overlay.update({xs:[],ys:[]})}_do_select(e,s,t,l){const a={type:"poly",sx:e,sy:s};this._select(a,t,l)}}t.LassoSelectToolView=n,n.__name__="LassoSelectToolView";const h=()=>new o.PolyAnnotation({level:"overlay",xs_units:"screen",ys_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class r extends a.SelectTool{constructor(e){super(e),this.tool_name="Lasso Select",this.icon=c.bk_tool_icon_lasso_select,this.event_type="pan",this.default_order=12}static init_LassoSelectTool(){this.prototype.default_view=n,this.define({select_every_mousemove:[_.Boolean,!0],overlay:[_.Instance,h]}),this.register_alias("lasso_select",()=>new r)}}t.LassoSelectTool=r,r.__name__="LassoSelectTool",r.init_LassoSelectTool()},n function _(t,s,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1),e=t(275),o=i.__importStar(t(19)),a=t(278);class _ extends e.GestureToolView{_pan_start(t){this.last_dx=0,this.last_dy=0;const{sx:s,sy:n}=t,i=this.plot_view.frame.bbox;if(!i.contains(s,n)){const t=i.h_range,e=i.v_range;(s<t.start||s>t.end)&&(this.v_axis_only=!0),(n<e.start||n>e.end)&&(this.h_axis_only=!0)}null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}_pan(t){this._update(t.deltaX,t.deltaY),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}_pan_end(t){this.h_axis_only=!1,this.v_axis_only=!1,null!=this.pan_info&&this.plot_view.push_state("pan",{range:this.pan_info})}_update(t,s){const n=this.plot_view.frame,i=t-this.last_dx,e=s-this.last_dy,o=n.bbox.h_range,a=o.start-i,_=o.end-i,h=n.bbox.v_range,l=h.start-e,r=h.end-e,d=this.model.dimensions;let c,p,m,u,x,y;"width"!=d&&"both"!=d||this.v_axis_only?(c=o.start,p=o.end,m=0):(c=a,p=_,m=-i),"height"!=d&&"both"!=d||this.h_axis_only?(u=h.start,x=h.end,y=0):(u=l,x=r,y=-e),this.last_dx=t,this.last_dy=s;const{xscales:v,yscales:b}=n,g={};for(const t in v){const s=v[t],[n,i]=s.r_invert(c,p);g[t]={start:n,end:i}}const w={};for(const t in b){const s=b[t],[n,i]=s.r_invert(u,x);w[t]={start:n,end:i}}this.pan_info={xrs:g,yrs:w,sdx:m,sdy:y},this.plot_view.update_range(this.pan_info,!0)}}n.PanToolView=_,_.__name__="PanToolView";class h extends e.GestureTool{constructor(t){super(t),this.tool_name="Pan",this.event_type="pan",this.default_order=10}static init_PanTool(){this.prototype.default_view=_,this.define({dimensions:[o.Dimensions,"both"]}),this.register_alias("pan",()=>new h({dimensions:"both"})),this.register_alias("xpan",()=>new h({dimensions:"width"})),this.register_alias("ypan",()=>new h({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip("Pan",this.dimensions)}get icon(){switch(this.dimensions){case"both":return a.bk_tool_icon_pan;case"width":return a.bk_tool_icon_xpan;case"height":return a.bk_tool_icon_ypan}}}n.PanTool=h,h.__name__="PanTool",h.init_PanTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const l=e(1),o=e(330),i=e(138),a=e(66),_=l.__importStar(e(19)),c=e(9),n=e(278);class h extends o.SelectToolView{initialize(){super.initialize(),this.data={sx:[],sy:[]}}connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._active_change())}_active_change(){this.model.active||this._clear_data()}_keyup(e){e.keyCode==a.Keys.Enter&&this._clear_data()}_doubletap(e){const t=e.shiftKey;this._do_select(this.data.sx,this.data.sy,!0,t),this.plot_view.push_state("poly_select",{selection:this.plot_view.get_selection()}),this._clear_data()}_clear_data(){this.data={sx:[],sy:[]},this.model.overlay.update({xs:[],ys:[]})}_tap(e){const{sx:t,sy:s}=e;this.plot_view.frame.bbox.contains(t,s)&&(this.data.sx.push(t),this.data.sy.push(s),this.model.overlay.update({xs:c.copy(this.data.sx),ys:c.copy(this.data.sy)}))}_do_select(e,t,s,l){const o={type:"poly",sx:e,sy:t};this._select(o,s,l)}}s.PolySelectToolView=h,h.__name__="PolySelectToolView";const y=()=>new i.PolyAnnotation({level:"overlay",xs_units:"screen",ys_units:"screen",fill_color:{value:"lightgrey"},fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}});class d extends o.SelectTool{constructor(e){super(e),this.tool_name="Poly Select",this.icon=n.bk_tool_icon_polygon_select,this.event_type="tap",this.default_order=11}static init_PolySelectTool(){this.prototype.default_view=h,this.define({overlay:[_.Instance,y]}),this.register_alias("poly_select",()=>new d)}}s.PolySelectTool=d,d.__name__="PolySelectTool",d.init_PolySelectTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(105),l=e(70),a=i.__importStar(e(19)),r=e(275),o=e(278);function _(e){switch(e){case 1:return 2;case 2:return 1;case 4:return 5;case 5:return 4;default:return e}}function h(e,t,s,i){if(null==t)return!1;const n=s.compute(t);return Math.abs(e-n)<i}function d(e,t,s,i,n){let l=!0;if(null!=n.left&&null!=n.right){const t=s.invert(e);(t<n.left||t>n.right)&&(l=!1)}if(null!=n.bottom&&null!=n.top){const e=i.invert(t);(e<n.bottom||e>n.top)&&(l=!1)}return l}function u(e,t,s){let i=0;return e>=s.start&&e<=s.end&&(i+=1),t>=s.start&&t<=s.end&&(i+=1),i}function c(e,t,s,i){const n=t.compute(e),l=t.invert(n+s);return l>=i.start&&l<=i.end?l:e}function g(e,t,s){return e>t.start?(t.end=e,s):(t.end=t.start,t.start=e,_(s))}function y(e,t,s){return e<t.end?(t.start=e,s):(t.start=t.end,t.end=e,_(s))}function f(e,t,s,i){const[n,l]=t.r_compute(e.start,e.end),[a,r]=t.r_invert(n+s,l+s),o=u(e.start,e.end,i);u(a,r,i)>=o&&(e.start=a,e.end=r)}s.flip_side=_,s.is_near=h,s.is_inside=d,s.sides_inside=u,s.compute_value=c,s.update_range_end_side=g,s.update_range_start_side=y,s.update_range=f;class v extends r.GestureToolView{initialize(){super.initialize(),this.side=0,this.model.update_overlay_from_ranges()}connect_signals(){super.connect_signals(),null!=this.model.x_range&&this.connect(this.model.x_range.change,()=>this.model.update_overlay_from_ranges()),null!=this.model.y_range&&this.connect(this.model.y_range.change,()=>this.model.update_overlay_from_ranges())}_pan_start(e){this.last_dx=0,this.last_dy=0;const t=this.model.x_range,s=this.model.y_range,i=this.plot_view.frame,l=i.xscales.default,a=i.yscales.default,r=this.model.overlay,{left:o,right:_,top:u,bottom:c}=r,g=this.model.overlay.properties.line_width.value()+n.EDGE_TOLERANCE;null!=t&&this.model.x_interaction&&(h(e.sx,o,l,g)?this.side=1:h(e.sx,_,l,g)?this.side=2:d(e.sx,e.sy,l,a,r)&&(this.side=3)),null!=s&&this.model.y_interaction&&(0==this.side&&h(e.sy,c,a,g)&&(this.side=4),0==this.side&&h(e.sy,u,a,g)?this.side=5:d(e.sx,e.sy,l,a,this.model.overlay)&&(3==this.side?this.side=7:this.side=6))}_pan(e){const t=this.plot_view.frame,s=e.deltaX-this.last_dx,i=e.deltaY-this.last_dy,n=this.model.x_range,l=this.model.y_range,a=t.xscales.default,r=t.yscales.default;if(null!=n)if(3==this.side||7==this.side)f(n,a,s,t.x_range);else if(1==this.side){const e=c(n.start,a,s,t.x_range);this.side=y(e,n,this.side)}else if(2==this.side){const e=c(n.end,a,s,t.x_range);this.side=g(e,n,this.side)}if(null!=l)if(6==this.side||7==this.side)f(l,r,i,t.y_range);else if(4==this.side){const e=c(l.start,r,i,t.y_range);this.side=y(e,l,this.side)}else if(5==this.side){const e=c(l.end,r,i,t.y_range);this.side=g(e,l,this.side)}this.last_dx=e.deltaX,this.last_dy=e.deltaY}_pan_end(e){this.side=0}}s.RangeToolView=v,v.__name__="RangeToolView";const m=()=>new n.BoxAnnotation({level:"overlay",render_mode:"canvas",fill_color:"lightgrey",fill_alpha:{value:.5},line_color:{value:"black"},line_alpha:{value:1},line_width:{value:.5},line_dash:[2,2]});class p extends r.GestureTool{constructor(e){super(e),this.tool_name="Range Tool",this.icon=o.bk_tool_icon_range,this.event_type="pan",this.default_order=1}static init_RangeTool(){this.prototype.default_view=v,this.define({x_range:[a.Instance,null],x_interaction:[a.Boolean,!0],y_range:[a.Instance,null],y_interaction:[a.Boolean,!0],overlay:[a.Instance,m]})}initialize(){super.initialize(),this.overlay.in_cursor="grab",this.overlay.ew_cursor=null!=this.x_range&&this.x_interaction?"ew-resize":null,this.overlay.ns_cursor=null!=this.y_range&&this.y_interaction?"ns-resize":null}update_overlay_from_ranges(){null==this.x_range&&null==this.y_range&&(this.overlay.left=null,this.overlay.right=null,this.overlay.bottom=null,this.overlay.top=null,l.logger.warn("RangeTool not configured with any Ranges.")),null==this.x_range?(this.overlay.left=null,this.overlay.right=null):(this.overlay.left=this.x_range.start,this.overlay.right=this.x_range.end),null==this.y_range?(this.overlay.bottom=null,this.overlay.top=null):(this.overlay.bottom=this.y_range.start,this.overlay.top=this.y_range.end)}}s.RangeTool=p,p.__name__="RangeTool",p.init_RangeTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),o=e(330),n=i.__importStar(e(19)),a=e(278);class _ extends o.SelectToolView{_tap(e){const{sx:t,sy:s}=e,i={type:"point",sx:t,sy:s},o=e.shiftKey;this._select(i,!0,o)}_select(e,t,s){const i=this.model.callback;if("select"==this.model.behavior){const o=this._computed_renderers_by_data_source();for(const n in o){const a=o[n],_=a[0].get_selection_manager(),c=a.map(e=>this.plot_view.renderer_views[e.id]);if(_.select(c,e,t,s)&&null!=i){const{frame:t}=this.plot_view,s=t.xscales[a[0].x_range_name],o=t.yscales[a[0].y_range_name],n=s.invert(e.sx),c=o.invert(e.sy),l={geometries:Object.assign(Object.assign({},e),{x:n,y:c}),source:_.source};i.execute(this.model,l)}}this._emit_selection_event(e),this.plot_view.push_state("tap",{selection:this.plot_view.get_selection()})}else for(const t of this.computed_renderers){const s=t.get_selection_manager();if(s.inspect(this.plot_view.renderer_views[t.id],e)&&null!=i){const{frame:o}=this.plot_view,n=o.xscales[t.x_range_name],a=o.yscales[t.y_range_name],_=n.invert(e.sx),c=a.invert(e.sy),l={geometries:Object.assign(Object.assign({},e),{x:_,y:c}),source:s.source};i.execute(this.model,l)}}}}s.TapToolView=_,_.__name__="TapToolView";class c extends o.SelectTool{constructor(e){super(e),this.tool_name="Tap",this.icon=a.bk_tool_icon_tap_select,this.event_type="tap",this.default_order=10}static init_TapTool(){this.prototype.default_view=_,this.define({behavior:[n.TapBehavior,"select"],callback:[n.Any]}),this.register_alias("click",()=>new c({behavior:"inspect"})),this.register_alias("tap",()=>new c)}}s.TapTool=c,c.__name__="TapTool",c.init_TapTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),o=e(275),i=n.__importStar(e(19)),a=e(278);class l extends o.GestureToolView{_scroll(e){let t=this.model.speed*e.delta;t>.9?t=.9:t<-.9&&(t=-.9),this._update_ranges(t)}_update_ranges(e){const{frame:t}=this.plot_view,s=t.bbox.h_range,n=t.bbox.v_range,[o,i]=[s.start,s.end],[a,l]=[n.start,n.end];let r,h,_,d;switch(this.model.dimension){case"height":{const t=Math.abs(l-a);r=o,h=i,_=a-t*e,d=l-t*e;break}case"width":{const t=Math.abs(i-o);r=o-t*e,h=i-t*e,_=a,d=l;break}default:throw new Error("this shouldn’t have happened")}const{xscales:c,yscales:p}=t,m={};for(const e in c){const t=c[e],[s,n]=t.r_invert(r,h);m[e]={start:s,end:n}}const u={};for(const e in p){const t=p[e],[s,n]=t.r_invert(_,d);u[e]={start:s,end:n}}const w={xrs:m,yrs:u,factor:e};this.plot_view.push_state("wheel_pan",{range:w}),this.plot_view.update_range(w,!1,!0),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}}s.WheelPanToolView=l,l.__name__="WheelPanToolView";class r extends o.GestureTool{constructor(e){super(e),this.tool_name="Wheel Pan",this.icon=a.bk_tool_icon_wheel_pan,this.event_type="scroll",this.default_order=12}static init_WheelPanTool(){this.prototype.default_view=l,this.define({dimension:[i.Dimension,"width"]}),this.internal({speed:[i.Number,.001]}),this.register_alias("xwheel_pan",()=>new r({dimension:"width"})),this.register_alias("ywheel_pan",()=>new r({dimension:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimension)}}s.WheelPanTool=r,r.__name__="WheelPanTool",r.init_WheelPanTool()},n function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),i=e(275),l=e(320),n=s.__importStar(e(19)),_=e(101),h=e(278);class a extends i.GestureToolView{_pinch(e){const{sx:o,sy:t,scale:s}=e;let i;i=s>=1?20*(s-1):-20/s,this._scroll({type:"wheel",sx:o,sy:t,delta:i})}_scroll(e){const{frame:o}=this.plot_view,t=o.bbox.h_range,s=o.bbox.v_range,{sx:i,sy:n}=e,_=this.model.dimensions,h=("width"==_||"both"==_)&&t.start<i&&i<t.end,a=("height"==_||"both"==_)&&s.start<n&&n<s.end;if(!(h&&a||this.model.zoom_on_axis))return;const m=this.model.speed*e.delta,r=l.scale_range(o,m,h,a,{x:i,y:n});this.plot_view.push_state("wheel_zoom",{range:r}),this.plot_view.update_range(r,!1,!0,this.model.maintain_focus),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)}}t.WheelZoomToolView=a,a.__name__="WheelZoomToolView";class m extends i.GestureTool{constructor(e){super(e),this.tool_name="Wheel Zoom",this.icon=h.bk_tool_icon_wheel_zoom,this.event_type=_.is_mobile?"pinch":"scroll",this.default_order=10}static init_WheelZoomTool(){this.prototype.default_view=a,this.define({dimensions:[n.Dimensions,"both"],maintain_focus:[n.Boolean,!0],zoom_on_axis:[n.Boolean,!0],speed:[n.Number,1/600]}),this.register_alias("wheel_zoom",()=>new m({dimensions:"both"})),this.register_alias("xwheel_zoom",()=>new m({dimensions:"width"})),this.register_alias("ywheel_zoom",()=>new m({dimensions:"height"}))}get tooltip(){return this._get_dim_tooltip(this.tool_name,this.dimensions)}}t.WheelZoomTool=m,m.__name__="WheelZoomTool",m.init_WheelZoomTool()},n function _(i,e,s){Object.defineProperty(s,"__esModule",{value:!0});const t=i(1),o=i(269),n=i(140),l=t.__importStar(i(19)),h=i(24),r=i(278);class _ extends o.InspectToolView{_move(i){if(!this.model.active)return;const{sx:e,sy:s}=i;this.plot_view.frame.bbox.contains(e,s)?this._update_spans(e,s):this._update_spans(null,null)}_move_exit(i){this._update_spans(null,null)}_update_spans(i,e){const s=this.model.dimensions;"width"!=s&&"both"!=s||(this.model.spans.width.computed_location=e),"height"!=s&&"both"!=s||(this.model.spans.height.computed_location=i)}}s.CrosshairToolView=_,_.__name__="CrosshairToolView";class a extends o.InspectTool{constructor(i){super(i),this.tool_name="Crosshair",this.icon=r.bk_tool_icon_crosshair}static init_CrosshairTool(){this.prototype.default_view=_,this.define({dimensions:[l.Dimensions,"both"],line_color:[l.Color,"black"],line_width:[l.Number,1],line_alpha:[l.Number,1]}),this.internal({location_units:[l.SpatialUnits,"screen"],render_mode:[l.RenderMode,"css"],spans:[l.Any]}),this.register_alias("crosshair",()=>new a)}get tooltip(){return this._get_dim_tooltip("Crosshair",this.dimensions)}get synthetic_renderers(){return h.values(this.spans)}initialize(){super.initialize(),this.spans={width:new n.Span({for_hover:!0,dimension:"width",render_mode:this.render_mode,location_units:this.location_units,line_color:this.line_color,line_width:this.line_width,line_alpha:this.line_alpha}),height:new n.Span({for_hover:!0,dimension:"height",render_mode:this.render_mode,location_units:this.location_units,line_color:this.line_color,line_width:this.line_width,line_alpha:this.line_alpha})}}}s.CrosshairTool=a,a.__name__="CrosshairTool",a.init_CrosshairTool()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const r=e(1),o=e(69),i=r.__importStar(e(19)),a=e(24),n=e(26);class u extends o.Model{constructor(e){super(e)}static init_CustomJSHover(){this.define({args:[i.Any,{}],code:[i.String,""]})}get values(){return a.values(this.args)}_make_code(e,t,s,r){return new Function(…a.keys(this.args),e,t,s,n.use_strict(r))}format(e,t,s){return this._make_code("value","format","special_vars",this.code)(…this.values,e,t,s)}}s.CustomJSHover=u,u.__name__="CustomJSHover",u.init_CustomJSHover()},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(1),i=e(269),o=e(143),r=e(78),l=e(97),a=e(331),c=n.__importStar(e(87)),d=e(158),_=e(66),p=n.__importStar(e(19)),h=e(21),m=e(24),u=e(8),y=e(96),x=e(278),f=e(144);function v(e,t,s,n,i,o){const r={x:i[e],y:o[e]},l={x:i[e+1],y:o[e+1]};let a,d;if("span"==t.type)"h"==t.direction?(a=Math.abs(r.x-s),d=Math.abs(l.x-s)):(a=Math.abs(r.y-n),d=Math.abs(l.y-n));else{const e={x:s,y:n};a=c.dist_2_pts(r,e),d=c.dist_2_pts(l,e)}return a<d?[[r.x,r.y],e]:[[l.x,l.y],e+1]}function w(e,t,s){return[[e[s],t[s]],s]}s._nearest_line_hit=v,s._line_hit=w;class b extends i.InspectToolView{initialize(){super.initialize(),this.ttviews={}}remove(){y.remove_views(this.ttviews),super.remove()}connect_signals(){super.connect_signals();for(const e of this.computed_renderers)e instanceof r.GlyphRenderer?this.connect(e.data_source.inspect,this._update):e instanceof l.GraphRenderer&&(this.connect(e.node_renderer.data_source.inspect,this._update),this.connect(e.edge_renderer.data_source.inspect,this._update));this.connect(this.model.properties.renderers.change,()=>this._computed_renderers=this._ttmodels=null),this.connect(this.model.properties.names.change,()=>this._computed_renderers=this._ttmodels=null),this.connect(this.model.properties.tooltips.change,()=>this._ttmodels=null)}_compute_ttmodels(){const e={},t=this.model.tooltips;if(null!=t)for(const s of this.computed_renderers)if(s instanceof r.GlyphRenderer){const n=new o.Tooltip({custom:u.isString(t)||u.isFunction(t),attachment:this.model.attachment,show_arrow:this.model.show_arrow});e[s.id]=n}else if(s instanceof l.GraphRenderer){const n=new o.Tooltip({custom:u.isString(t)||u.isFunction(t),attachment:this.model.attachment,show_arrow:this.model.show_arrow});e[s.node_renderer.id]=n,e[s.edge_renderer.id]=n}return y.build_views(this.ttviews,m.values(e),{parent:this.plot_view}),e}get computed_renderers(){if(null==this._computed_renderers){const e=this.model.renderers,t=this.plot_model.renderers,s=this.model.names;this._computed_renderers=a.compute_renderers(e,t,s)}return this._computed_renderers}get ttmodels(){return null==this._ttmodels&&(this._ttmodels=this._compute_ttmodels()),this._ttmodels}_clear(){this._inspect(1/0,1/0);for(const e in this.ttmodels){this.ttmodels[e].clear()}}_move(e){if(!this.model.active)return;const{sx:t,sy:s}=e;this.plot_view.frame.bbox.contains(t,s)?this._inspect(t,s):this._clear()}_move_exit(){this._clear()}_inspect(e,t){let s;if("mouse"==this.model.mode)s={type:"point",sx:e,sy:t};else{s={type:"span",direction:"vline"==this.model.mode?"h":"v",sx:e,sy:t}}for(const e of this.computed_renderers){e.get_selection_manager().inspect(this.plot_view.renderer_views[e.id],s)}null!=this.model.callback&&this._emit_callback(s)}_update([e,{geometry:t}]){if(!this.model.active)return;if(!(e instanceof r.GlyphRendererView||e instanceof l.GraphRendererView))return;const{model:s}=e;if("ignore"==this.model.muted_policy&&s instanceof r.GlyphRenderer&&s.muted)return;const n=this.ttmodels[s.id];if(null==n)return;n.clear();const i=s.get_selection_manager();let o=i.inspectors[s.id];if(s instanceof r.GlyphRenderer&&(o=s.view.convert_selection_to_subset(o)),o.is_empty())return;const a=i.source,{frame:c}=this.plot_view,{sx:d,sy:_}=t,p=c.xscales[s.x_range_name],h=c.yscales[s.y_range_name],u=p.invert(d),y=h.invert(_),x=e.glyph;for(const s of o.line_indices){let i,r,l=x._x[s+1],c=x._y[s+1],m=s;switch(this.model.line_policy){case"interp":[l,c]=x.get_interpolation_hit(s,t),i=p.compute(l),r=h.compute(c);break;case"prev":[[i,r],m]=w(x.sx,x.sy,s);break;case"next":[[i,r],m]=w(x.sx,x.sy,s+1);break;case"nearest":[[i,r],m]=v(s,t,d,_,x.sx,x.sy),l=x._x[m],c=x._y[m];break;default:[i,r]=[d,_]}const f={index:m,x:u,y,sx:d,sy:_,data_x:l,data_y:c,rx:i,ry:r,indices:o.line_indices,name:e.model.name};n.add(i,r,this._render_tooltips(a,m,f))}for(const e of o.image_indices){const t={index:e.index,x:u,y,sx:d,sy:_},s=this._render_tooltips(a,e,t);n.add(d,_,s)}for(const i of o.indices)if(m.isEmpty(o.multiline_indices)){const t=null!=x._x?x._x[i]:void 0,l=null!=x._y?x._y[i]:void 0;let c,p,h;if("snap_to_data"==this.model.point_policy){let e=x.get_anchor_point(this.model.anchor,i,[d,_]);null==e&&(e=x.get_anchor_point("center",i,[d,_])),c=e.x,p=e.y}else[c,p]=[d,_];h=s instanceof r.GlyphRenderer?s.view.convert_indices_from_subset([i])[0]:i;const m={index:h,x:u,y,sx:d,sy:_,data_x:t,data_y:l,indices:o.indices,name:e.model.name};n.add(c,p,this._render_tooltips(a,h,m))}else for(const l of o.multiline_indices[i.toString()]){let c,m,f,b=x._xs[i][l],g=x._ys[i][l],k=l;switch(this.model.line_policy){case"interp":[b,g]=x.get_interpolation_hit(i,l,t),c=p.compute(b),m=h.compute(g);break;case"prev":[[c,m],k]=w(x.sxs[i],x.sys[i],l);break;case"next":[[c,m],k]=w(x.sxs[i],x.sys[i],l+1);break;case"nearest":[[c,m],k]=v(l,t,d,_,x.sxs[i],x.sys[i]),b=x._xs[i][k],g=x._ys[i][k];break;default:throw new Error("should’t have happened")}f=s instanceof r.GlyphRenderer?s.view.convert_indices_from_subset([i])[0]:i;const T={index:f,x:u,y,sx:d,sy:_,data_x:b,data_y:g,segment_index:k,indices:o.multiline_indices,name:e.model.name};n.add(c,m,this._render_tooltips(a,f,T))}}_emit_callback(e){for(const t of this.computed_renderers){const s=t.data_source.inspected,{frame:n}=this.plot_view,i=n.xscales[t.x_range_name],o=n.yscales[t.y_range_name],r=i.invert(e.sx),l=o.invert(e.sy),a=Object.assign({x:r,y:l},e);this.model.callback.execute(this.model,{index:s,geometry:a,renderer:t})}}_render_tooltips(e,t,s){const n=this.model.tooltips;if(u.isString(n)){const i=_.div();return i.innerHTML=d.replace_placeholders(n,e,t,this.model.formatters,s),i}if(u.isFunction(n))return n(e,s);{const i=_.div({style:{display:"table",borderSpacing:"2px"}});for(const[o,r]of n){const n=_.div({style:{display:"table-row"}});let l;if(i.appendChild(n),l=_.div({style:{display:"table-cell"},class:f.bk_tooltip_row_label},0!=o.length?`${o}: :""),n.appendChild(l),l=_.div({style:{display:"table-cell"},class:f.bk_tooltip_row_value}),n.appendChild(l),r.indexOf("$color")>=0){const[,s="",n]=r.match(/\$color(\[.*\])?:(\w*)/),i=e.get_column(n);if(null==i){const e=_.span({},`${n} unknown);l.appendChild(e);continue}const o=s.indexOf("hex")>=0,a=s.indexOf("swatch")>=0;let c=u.isNumber(t)?i[t]:null;if(null==c){const e=_.span({},"(null)");l.appendChild(e);continue}o&&(c=h.color2hex(c));let d=_.span({},c);l.appendChild(d),a&&(d=_.span({class:f.bk_tooltip_color_block,style:{backgroundColor:c}}," "),l.appendChild(d))}else{const n=_.span();n.innerHTML=d.replace_placeholders(r.replace("$~","$data_"),e,t,this.model.formatters,s),l.appendChild(n)}}return i}}}s.HoverToolView=b,b.__name__="HoverToolView";class g extends i.InspectTool{constructor(e){super(e),this.tool_name="Hover",this.icon=x.bk_tool_icon_hover}static init_HoverTool(){this.prototype.default_view=b,this.define({tooltips:[p.Any,[["index","$index"],["data (x, y)","($x, $y)"],["screen (x, y)","($sx, $sy)"]]],formatters:[p.Any,{}],renderers:[p.Any,"auto"],names:[p.Array,[]],mode:[p.HoverMode,"mouse"],muted_policy:[p.MutedPolicy,"show"],point_policy:[p.PointPolicy,"snap_to_data"],line_policy:[p.LinePolicy,"nearest"],show_arrow:[p.Boolean,!0],anchor:[p.Anchor,"center"],attachment:[p.TooltipAttachment,"horizontal"],callback:[p.Any]}),this.register_alias("hover",()=>new g)}}s.HoverTool=g,g.__name__="HoverTool",g.init_HoverTool()},n function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),s=t(14),n=t(69),l=t(269);class c extends n.Model{constructor(t){super(t)}static init_ToolProxy(){this.define({tools:[i.Array,[]],active:[i.Boolean,!1],disabled:[i.Boolean,!1]})}get button_view(){return this.tools[0].button_view}get event_type(){return this.tools[0].event_type}get tooltip(){return this.tools[0].tooltip}get tool_name(){return this.tools[0].tool_name}get icon(){return this.tools[0].computed_icon}get computed_icon(){return this.icon}get toggleable(){const t=this.tools[0];return t instanceof l.InspectTool&&t.toggleable}initialize(){super.initialize(),this.do=new s.Signal0(this,"do")}connect_signals(){super.connect_signals(),this.connect(this.do,()=>this.doit()),this.connect(this.properties.active.change,()=>this.set_active())}doit(){for(const t of this.tools)t.do.emit()}set_active(){for(const t of this.tools)t.active=this.active}}e.ToolProxy=c,c.__name__="ToolProxy",c.init_ToolProxy()},n function _(t,o,s){Object.defineProperty(s,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),e=t(9),n=t(274),r=t(343),l=t(244),c=t(187);class h extends n.ToolbarBase{constructor(t){super(t)}static init_ProxyToolbar(){this.define({toolbars:[i.Array,[]]})}initialize(){super.initialize(),this._merge_tools()}_merge_tools(){this._proxied_tools=[];const t={},o={},s={},i=[],n=[];for(const t of this.help)e.includes(n,t.redirect)||(i.push(t),n.push(t.redirect));this._proxied_tools.push(…i),this.help=i;for(const t in this.gestures){const o=this.gestures[t];t in s||(s[t]={});for(const i of o.tools)i.type in s[t]||(s[t][i.type]=[]),s[t][i.type].push(i)}for(const o of this.inspectors)o.type in t||(t[o.type]=[]),t[o.type].push(o);for(const t of this.actions)t.type in o||(o[t.type]=[]),o[t.type].push(t);const l=(t,o=!1)=>{const s=new r.ToolProxy({tools:t,active:o});return this._proxied_tools.push(s),s};for(const t in s){const o=this.gestures[t];o.tools=[];for(const i in s[t]){const e=s[t][i];if(e.length>0)if("multi"==t)for(const t of e){const s=l([t]);o.tools.push(s),this.connect(s.properties.active.change,this._active_change.bind(this,s))}else{const t=l(e);o.tools.push(t),this.connect(t.properties.active.change,this._active_change.bind(this,t))}}}this.actions=[];for(const t in o){const s=o[t];if("CustomAction"==t)for(const t of s)this.actions.push(l([t]));else s.length>0&&this.actions.push(l(s))}this.inspectors=[];for(const o in t){const s=t[o];s.length>0&&this.inspectors.push(l(s,!0))}for(const t in this.gestures){const o=this.gestures[t];0!=o.tools.length&&(o.tools=e.sort_by(o.tools,t=>t.default_order),"pinch"!=t&&"scroll"!=t&&"multi"!=t&&(o.tools[0].active=!0))}}}s.ProxyToolbar=h,h.__name__="ProxyToolbar",h.init_ProxyToolbar();class a extends l.LayoutDOMView{initialize(){this.model.toolbar.toolbar_location=this.model.toolbar_location,super.initialize()}get child_models(){return[this.model.toolbar]}_update_layout(){this.layout=new c.ContentBox(this.child_views[0].el);const{toolbar:t}=this.model;t.horizontal?this.layout.set_sizing({width_policy:"fit",min_width:100,height_policy:"fixed"}):this.layout.set_sizing({width_policy:"fixed",height_policy:"fit",min_height:100})}}s.ToolbarBoxView=a,a.__name__="ToolbarBoxView";class _ extends l.LayoutDOM{constructor(t){super(t)}static init_ToolbarBox(){this.prototype.default_view=a,this.define({toolbar:[i.Instance],toolbar_location:[i.Location,"right"]})}}s.ToolbarBox=_,_.__name__="ToolbarBox",_.init_ToolbarBox()},n function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(5),i=e(64),d=e(96),c=e(66),l=e(346);t.index={},t.add_document_standalone=async function(e,n,s=[],a=!1){const u=new Map;async function r(o){let a;const r=e.roots().indexOf(o),f=s[r];null!=f?a=f:n.classList.contains(l.BOKEH_ROOT)?a=n:(a=c.div({class:l.BOKEH_ROOT}),n.appendChild(a));const v=await d.build_view(o,{parent:null});return v instanceof i.DOMView&&v.renderTo(a),u.set(o,v),t.index[o.id]=v,v}for(const n of e.roots())await r(n);return a&&(window.document.title=e.title()),e.on_change(e=>{e instanceof o.RootAddedEvent?r(e.model):e instanceof o.RootRemovedEvent?function(e){const n=u.get(e);null!=n&&(n.remove(),u.delete(e),delete t.index[e.id])}(e.model):a&&e instanceof o.TitleChangedEvent&&(window.document.title=e.title)}),[…u.values()]}},n function _(e,o,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(66),r=e(67);function l(e){let o=document.getElementById(e);if(null==o)throw new Error(Error rendering Bokeh model: could not find #${e} HTML tag);if(!document.body.contains(o))throw new Error(Error rendering Bokeh model: element #${e} must be under <body>);if("SCRIPT"==o.tagName){const e=t.div({class:n.BOKEH_ROOT});t.replaceWith(o,e),o=e}return o}n.BOKEH_ROOT=r.bk_root,n._resolve_element=function(e){const{elementid:o}=e;return null!=o?l(o):document.body},n._resolve_root_elements=function(e){const o=[];if(null!=e.root_ids&&null!=e.roots)for(const n of e.root_ids)o.push(l(e.roots[n]));return o}},n function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const e=n(348),s=n(70),c=n(345);t._get_ws_url=function(n,o){let t,e="ws:";return"https:"==window.location.protocol&&(e="wss:"),null!=o?(t=document.createElement("a"),t.href=o):t=window.location,null!=n?"/"==n&&(n=""):n=t.pathname.replace(/\/+$/,""),e+"//"+t.host+n+"/ws"};const r={};t.add_document_from_session=async function(n,o,t,a=[],i=!1){const l=window.location.search.substr(1);let d;try{d=await function(n,o,t){const s=e.parse_token(o).session_id;n in r||(r[n]={});const c=r[n];return s in c||(c[s]=e.pull_session(n,o,t)),c[s]}(n,o,l)}catch(n){const t=e.parse_token(o).session_id;throw s.logger.error(Failed to load Bokeh session ${t}: ${n}),n}return c.add_document_standalone(d.document,t,a,i)}},n function _(e,s,n){Object.defineProperty(n,"__esModule",{value:!0});const t=e(70),o=e(5),r=e(349),i=e(350),c=e(351);n.DEFAULT_SERVER_WEBSOCKET_URL="ws://localhost:5006/ws",n.DEFAULT_TOKEN="eyJzZXNzaW9uX2lkIjogImRlZmF1bHQifQ";let l=0;function _(e){let s=e.split(".")[0];const n=s.length%4;return 0!=n&&(s+="=".repeat(4-n)),JSON.parse(atob(s.replace(/_/g,"/").replace(/-/g,"+")))}n.parse_token=_;class h{constructor(e=n.DEFAULT_SERVER_WEBSOCKET_URL,s=n.DEFAULT_TOKEN,o=null){this.url=e,this.token=s,this.args_string=o,this._number=l++,this.socket=null,this.session=null,this.closed_permanently=!1,this._current_handler=null,this._pending_replies=new Map,this._pending_messages=[],this._receiver=new i.Receiver,this.id=_(s).session_id.split(".")[0],t.logger.debug(Creating websocket ${this._number} to ‘${this.url}’ session ‘${this.id}’)}async connect(){if(this.closed_permanently)throw new Error("Cannot connect() a closed ClientConnection");if(null!=this.socket)throw new Error("Already connected");this._current_handler=null,this._pending_replies.clear(),this._pending_messages=[];try{let e=`${this.url}`;return null!=this.args_string&&this.args_string.length>0&&(e+=`?${this.args_string}`),this.socket=new WebSocket(e,["bokeh",this.token]),new Promise((e,s)=>{this.socket.binaryType="arraybuffer",this.socket.onopen=()=>this._on_open(e,s),this.socket.onmessage=e=>this._on_message(e),this.socket.onclose=e=>this._on_close(e,s),this.socket.onerror=()=>this._on_error(s)})}catch(e){throw t.logger.error(websocket creation failed to url: ${this.url}),t.logger.error(` - ${e}`),e}}close(){this.closed_permanently||(t.logger.debug(Permanently closing websocket connection ${this._number}),this.closed_permanently=!0,null!=this.socket&&this.socket.close(1e3,`close method called on ClientConnection ${this._number}`),this.session._connection_closed())}_schedule_reconnect(e){setTimeout(()=>{this.closed_permanently||t.logger.info(Websocket connection ${this._number} disconnected, will not attempt to reconnect)},e)}send(e){if(null==this.socket)throw new Error(not connected so cannot send ${e});e.send(this.socket)}async send_with_reply(e){const s=await new Promise((s,n)=>{this._pending_replies.set(e.msgid(),{resolve:s,reject:n}),this.send(e)});if("ERROR"===s.msgtype())throw new Error(Error reply ${s.content.text});return s}async _pull_doc_json(){const e=r.Message.create("PULL-DOC-REQ",{}),s=await this.send_with_reply(e);if(!("doc"in s.content))throw new Error("No ‘doc’ field in PULL-DOC-REPLY");return s.content.doc}async _repull_session_doc(e,s){var n;t.logger.debug(this.session?"Repulling session":"Pulling session for first time");try{const n=await this._pull_doc_json();if(null==this.session)if(this.closed_permanently)t.logger.debug("Got new document after connection was already closed"),s(new Error("The connection has been closed"));else{const s=o.Document.from_json(n),i=o.Document._compute_patch_since_json(n,s);if(i.events.length>0){t.logger.debug(Sending ${i.events.length} changes from model construction back to server);const e=r.Message.create("PATCH-DOC",{},i);this.send(e)}this.session=new c.ClientSession(this,s,this.id);for(const e of this._pending_messages)this.session.handle(e);this._pending_messages=[],t.logger.debug("Created a new session from new pulled doc"),e(this.session)}else this.session.document.replace_with_json(n),t.logger.debug("Updated existing session with new pulled doc")}catch(e){null===(n=console.trace)||void 0===n||n.call(console,e),t.logger.error(Failed to repull session ${e}),s(e)}}_on_open(e,s){t.logger.info(Websocket connection ${this._number} is now open),this._current_handler=n=>{this._awaiting_ack_handler(n,e,s)}}_on_message(e){null==this._current_handler&&t.logger.error("Got a message with no current handler set");try{this._receiver.consume(e.data)}catch(e){this._close_bad_protocol(e.toString())}const s=this._receiver.message;if(null!=s){const e=s.problem();null!=e&&this._close_bad_protocol(e),this._current_handler(s)}}_on_close(e,s){t.logger.info(Lost websocket ${this._number} connection, ${e.code} (${e.reason})),this.socket=null,this._pending_replies.forEach(e=>e.reject("Disconnected")),this._pending_replies.clear(),this.closed_permanently||this._schedule_reconnect(2e3),s(new Error(Lost websocket connection, ${e.code} (${e.reason})))}_on_error(e){t.logger.debug(Websocket error on socket ${this._number});const s="Could not open websocket";t.logger.error(Failed to connect to Bokeh server: ${s}),e(new Error(s))}_close_bad_protocol(e){t.logger.error(Closing connection: ${e}),null!=this.socket&&this.socket.close(1002,e)}_awaiting_ack_handler(e,s,n){"ACK"===e.msgtype()?(this._current_handler=e=>this._steady_state_handler(e),this._repull_session_doc(s,n)):this._close_bad_protocol("First message was not an ACK")}_steady_state_handler(e){const s=e.reqid(),n=this._pending_replies.get(s);n?(this._pending_replies.delete(s),n.resolve(e)):this.session?this.session.handle(e):"PATCH-DOC"!=e.msgtype()&&this._pending_messages.push(e)}}n.ClientConnection=h,h.__name__="ClientConnection",n.pull_session=function(e,s,n){return new h(e,s,n).connect()}},n function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const r=e(26);class n{constructor(e,s,t){this.header=e,this.metadata=s,this.content=t,this.buffers=[]}static assemble(e,s,t){const r=JSON.parse(e),i=JSON.parse(s),h=JSON.parse(t);return new n(r,i,h)}assemble_buffer(e,s){if((null!=this.header.num_buffers?this.header.num_buffers:0)<=this.buffers.length)throw new Error("too many buffers received, expecting #{nb}");this.buffers.push([e,s])}static create(e,s,t={}){const r=n.create_header(e);return new n(r,s,t)}static create_header(e){return{msgid:r.uniqueId(),msgtype:e}}complete(){return null!=this.header&&null!=this.metadata&&null!=this.content&&(!("num_buffers"in this.header)||this.buffers.length===this.header.num_buffers)}send(e){if((null!=this.header.num_buffers?this.header.num_buffers:0)>0)throw new Error("BokehJS only supports receiving buffers, not sending");const s=JSON.stringify(this.header),t=JSON.stringify(this.metadata),r=JSON.stringify(this.content);e.send(s),e.send(t),e.send(r)}msgid(){return this.header.msgid}msgtype(){return this.header.msgtype}reqid(){return this.header.reqid}problem(){return"msgid"in this.header?"msgtype"in this.header?null:"No msgtype in header":"No msgid in header"}}t.Message=n,n.__name__="Message"},n function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const _=e(349);class r{constructor(){this.message=null,this._partial=null,this._fragments=[],this._buf_header=null,this._current_consumer=this._HEADER}consume(e){this._current_consumer(e)}_HEADER(e){this._assume_text(e),this.message=null,this._partial=null,this._fragments=[e],this._buf_header=null,this._current_consumer=this._METADATA}_METADATA(e){this._assume_text(e),this._fragments.push(e),this._current_consumer=this._CONTENT}_CONTENT(e){this._assume_text(e),this._fragments.push(e);const[t,s,r]=this._fragments.slice(0,3);this._partial=_.Message.assemble(t,s,r),this._check_complete()}_BUFFER_HEADER(e){this._assume_text(e),this._buf_header=e,this._current_consumer=this._BUFFER_PAYLOAD}_BUFFER_PAYLOAD(e){this._assume_binary(e),this._partial.assemble_buffer(this._buf_header,e),this._check_complete()}_assume_text(e){if(e instanceof ArrayBuffer)throw new Error("Expected text fragment but received binary fragment")}_assume_binary(e){if(!(e instanceof ArrayBuffer))throw new Error("Expected binary fragment but received text fragment")}_check_complete(){this._partial.complete()?(this.message=this._partial,this._current_consumer=this._HEADER):this._current_consumer=this._BUFFER_HEADER}}s.Receiver=r,r.__name__="Receiver"},n function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e(5),s=e(349),i=e(70);class c{constructor(e,t,n){this._connection=e,this.document=t,this.id=n,this._document_listener=e=>this._document_changed(e),this.document.on_change(this._document_listener)}handle(e){const t=e.msgtype();"PATCH-DOC"===t?this._handle_patch(e):"OK"===t?this._handle_ok(e):"ERROR"===t?this._handle_error(e):i.logger.debug(Doing nothing with message ${e.msgtype()})}close(){this._connection.close()}_connection_closed(){this.document.remove_on_change(this._document_listener)}async request_server_info(){const e=s.Message.create("SERVER-INFO-REQ",{});return(await this._connection.send_with_reply(e)).content}async force_roundtrip(){await this.request_server_info()}_document_changed(e){if(e.setter_id===this.id)return;if(e instanceof o.ModelChangedEvent&&!(e.attr in e.model.serializable_attributes()))return;const t=s.Message.create("PATCH-DOC",{},this.document.create_json_patch([e]));this._connection.send(t)}_handle_patch(e){this.document.apply_json_patch(e.content,e.buffers,this.id)}_handle_ok(e){i.logger.trace(Unhandled OK reply to ${e.reqid()})}_handle_error(e){i.logger.error(Unhandled ERROR reply to ${e.reqid()}: ${e.content.text})}}n.ClientSession=c,c.__name__="ClientSession"},n function _(e,o,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(5),r=e(350),s=e(70),i=e(24),c=e(345),l=e(346);function u(e,o){o.buffers.length>0?e.consume(o.buffers[0].buffer):e.consume(o.content.data);const t=e.message;null!=t&&this.apply_json_patch(t.content,t.buffers)}function g(e,o){if("undefined"!=typeof Jupyter&&null!=Jupyter.notebook.kernel){s.logger.info(Registering Jupyter comms for target ${e});const t=Jupyter.notebook.kernel.comm_manager;try{t.register_target(e,t=>{s.logger.info(Registering Jupyter comms for target ${e});const n=new r.Receiver;t.on_msg(u.bind(o,n))})}catch(e){s.logger.warn(Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e}))}}else if(o.roots()[0].id in t.kernels){s.logger.info(Registering JupyterLab comms for target ${e});const n=t.kernels[o.roots()[0].id];try{n.registerCommTarget(e,t=>{s.logger.info(Registering JupyterLab comms for target ${e});const n=new r.Receiver;t.onMsg=u.bind(o,n)})}catch(e){s.logger.warn(Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e}))}}else console.warn("Jupyter notebooks comms not available. push_notebook() will not function. If running JupyterLab ensure the latest @bokeh/jupyter_bokeh extension is installed. In an exported notebook this warning is expected.")}e(279),e(353),t.kernels={},t.embed_items_notebook=function(e,o){if(1!=i.size(e))throw new Error("embed_items_notebook expects exactly one document in docs_json");const t=n.Document.from_json(i.values(e)[0]);for(const e of o){null!=e.notebook_comms_target&&g(e.notebook_comms_target,t);const o=l._resolve_element(e),n=l._resolve_root_elements(e);c.add_document_standalone(t,o,n)}}},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const n=e(1);e(67),n.__importStar(e(66)).styles.append("/* notebook specific tweaks so no black outline and matching padding\n/* can’t be wrapped inside bk-root. here are the offending jupyter lines:\n/* https://github.com/jupyter/notebook/blob/master/notebook/static/notebook/less/renderedhtml.less#L59-L76 /\n.rendered_html .bk-root .bk-tooltip table,\n.rendered_html .bk-root .bk-tooltip tr,\n.rendered_html .bk-root .bk-tooltip th,\n.rendered_html .bk-root .bk-tooltip td {\n border: none;\n padding: 1px;\n}\n")},n function _(e,t,_){Object.defineProperty(_,"__esModule",{value:!0});const o=e(1);o.__exportStar(e(349),_),o.__exportStar(e(350),_)},n function _(e,t,n){function s(){const e=document.getElementsByTagName("body")[0],t=document.getElementsByClassName("bokeh-test-div");1==t.length&&(e.removeChild(t[0]),delete t[0]);const n=document.createElement("div");n.classList.add("bokeh-test-div"),n.style.display="none",e.insertBefore(n,e.firstChild)}Object.defineProperty(n,"__esModule",{value:!0}),n.results={},n.init=function(){s()},n.record0=function(e,t){n.results[e]=t},n.record=function(e,t){n.results[e]=t,s()},n.count=function(e){null==n.results[e]&&(n.results[e]=0),n.results[e]+=1,s()}},n function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.safely=function(e,t=!1){try{return e()}catch(e){if(function(e){const t=document.createElement("div");t.style.backgroundColor="#f2dede",t.style.border="1px solid #a94442",t.style.borderRadius="4px",t.style.display="inline-block",t.style.fontFamily="sans-serif",t.style.marginTop="5px",t.style.minWidth="200px",t.style.padding="5px 5px 5px 10px",t.classList.add("bokeh-error-box-into-flames");const o=document.createElement("span");o.style.backgroundColor="#a94442",o.style.borderRadius="0px 4px 0px 0px",o.style.color="white",o.style.cursor="pointer",o.style.cssFloat="right",o.style.fontSize="0.8em",o.style.margin="-6px -6px 0px 0px",o.style.padding="2px 5px 4px 5px",o.title="close",o.setAttribute("aria-label","close"),o.appendChild(document.createTextNode("x")),o.addEventListener("click",()=>r.removeChild(t));const n=document.createElement("h3");n.style.color="#a94442",n.style.margin="8px 0px 0px 0px",n.style.padding="0px",n.appendChild(document.createTextNode("Bokeh Error"));const l=document.createElement("pre");l.style.whiteSpace="unset",l.style.overflowX="auto";const s=e instanceof Error?e.message:e;l.appendChild(document.createTextNode(s)),t.appendChild(o),t.appendChild(n),t.appendChild(l);const r=document.getElementsByTagName("body")[0];r.insertBefore(t,r.firstChild)}(e),t)return;throw e}}},n ], 0, {"main":0,"tslib":1,"index":2,"version":3,"embed/index":4,"document/index":5,"document/document":6,"base":7,"core/util/types":8,"core/util/array":9,"core/util/math":10,"core/util/assert":11,"core/util/arrayable":12,"core/has_props":13,"core/signaling":14,"core/util/data_structures":15,"core/util/eq":16,"core/util/callback":17,"core/property_mixins":18,"core/properties":19,"core/enums":20,"core/util/color":21,"core/util/svg_colors":22,"core/settings":23,"core/util/object":24,"core/util/refs":25,"core/util/string":26,"models/index":27,"models/annotations/index":28,"models/annotations/annotation":29,"core/util/projections":30,"models/renderers/renderer":63,"core/dom_view":64,"core/view":65,"core/dom":66,"styles/root":67,"core/visuals":68,"model":69,"core/logging":70,"models/annotations/arrow":71,"models/annotations/arrow_head":72,"models/sources/column_data_source":73,"models/sources/columnar_data_source":74,"models/sources/data_source":75,"models/selections/selection":76,"core/selection_manager":77,"models/renderers/glyph_renderer":78,"models/renderers/data_renderer":79,"models/glyphs/line":80,"models/glyphs/xy_glyph":81,"core/util/spatial":82,"core/util/bbox":85,"models/glyphs/glyph":86,"core/hittest":87,"models/ranges/factor_range":88,"models/ranges/range":89,"models/glyphs/utils":90,"models/glyphs/patch":91,"models/glyphs/harea":92,"models/glyphs/area":93,"models/glyphs/varea":94,"models/sources/cds_view":95,"core/build_views":96,"models/renderers/graph_renderer":97,"models/graphs/graph_hit_test_policy":98,"models/selections/interaction_policy":99,"core/util/serialization":100,"core/util/compat":101,"core/util/typed_array":102,"document/events":103,"models/annotations/band":104,"models/annotations/box_annotation":105,"styles/annotations":106,"models/annotations/color_bar":107,"models/tickers/basic_ticker":108,"models/tickers/adaptive_ticker":109,"models/tickers/continuous_ticker":110,"models/tickers/ticker":111,"models/formatters/basic_tick_formatter":112,"models/formatters/tick_formatter":113,"models/mappers/linear_color_mapper":114,"models/mappers/continuous_color_mapper":115,"models/mappers/color_mapper":116,"models/mappers/mapper":117,"models/transforms/transform":118,"models/scales/linear_scale":119,"models/scales/continuous_scale":120,"models/scales/scale":121,"models/transforms/index":122,"models/transforms/customjs_transform":123,"models/transforms/dodge":124,"models/transforms/interpolator":125,"models/transforms/jitter":126,"models/transforms/linear_interpolator":127,"models/transforms/step_interpolator":128,"models/scales/log_scale":129,"models/ranges/range1d":130,"core/util/text":131,"models/annotations/label":132,"models/annotations/text_annotation":133,"models/annotations/label_set":134,"models/annotations/legend":135,"models/annotations/legend_item":136,"core/vectorization":137,"models/annotations/poly_annotation":138,"models/annotations/slope":139,"models/annotations/span":140,"models/annotations/title":141,"models/annotations/toolbar_panel":142,"models/annotations/tooltip":143,"styles/tooltips":144,"styles/mixins":145,"models/annotations/whisker":146,"models/axes/index":147,"models/axes/axis":148,"models/renderers/guide_renderer":149,"models/axes/categorical_axis":150,"models/tickers/categorical_ticker":151,"models/formatters/categorical_tick_formatter":152,"models/axes/continuous_axis":153,"models/axes/datetime_axis":154,"models/axes/linear_axis":155,"models/formatters/datetime_tick_formatter":156,"core/util/templating":158,"models/tickers/datetime_ticker":161,"models/tickers/composite_ticker":162,"models/tickers/days_ticker":163,"models/tickers/single_interval_ticker":164,"models/tickers/util":165,"models/tickers/months_ticker":166,"models/tickers/years_ticker":167,"models/axes/log_axis":168,"models/formatters/log_tick_formatter":169,"models/tickers/log_ticker":170,"models/axes/mercator_axis":171,"models/formatters/mercator_tick_formatter":172,"models/tickers/mercator_ticker":173,"models/callbacks/index":174,"models/callbacks/customjs":175,"models/callbacks/callback":176,"models/callbacks/open_url":177,"models/canvas/index":178,"models/canvas/canvas":179,"core/util/canvas":180,"styles/canvas":181,"models/canvas/cartesian_frame":183,"models/scales/categorical_scale":184,"models/ranges/data_range1d":185,"models/ranges/data_range":186,"core/layout/index":187,"core/layout/types":188,"core/layout/layoutable":189,"core/layout/alignments":190,"core/layout/grid":191,"core/layout/html":192,"models/expressions/index":193,"models/expressions/expression":194,"models/expressions/stack":195,"models/expressions/cumsum":196,"models/filters/index":197,"models/filters/boolean_filter":198,"models/filters/filter":199,"models/filters/customjs_filter":200,"models/filters/group_filter":201,"models/filters/index_filter":202,"models/formatters/index":203,"models/formatters/func_tick_formatter":204,"models/formatters/numeral_tick_formatter":205,"models/formatters/printf_tick_formatter":206,"models/glyphs/index":207,"models/glyphs/annular_wedge":208,"models/glyphs/annulus":209,"models/glyphs/arc":210,"models/glyphs/bezier":211,"models/glyphs/circle":212,"models/glyphs/center_rotatable":213,"models/glyphs/ellipse":214,"models/glyphs/ellipse_oval":215,"models/glyphs/hbar":216,"models/glyphs/box":217,"models/glyphs/hex_tile":218,"models/glyphs/image":219,"models/glyphs/image_base":220,"models/glyphs/image_rgba":221,"models/glyphs/image_url":222,"core/util/image":223,"models/glyphs/multi_line":224,"models/glyphs/multi_polygons":225,"models/glyphs/oval":226,"models/glyphs/patches":227,"models/glyphs/quad":228,"models/glyphs/quadratic":229,"models/glyphs/ray":230,"models/glyphs/rect":231,"models/glyphs/segment":232,"models/glyphs/step":233,"models/glyphs/text":234,"models/glyphs/vbar":235,"models/glyphs/wedge":236,"models/graphs/index":237,"models/graphs/layout_provider":238,"models/graphs/static_layout_provider":239,"models/grids/index":240,"models/grids/grid":241,"models/layouts/index":242,"models/layouts/box":243,"models/layouts/layout_dom":244,"models/layouts/column":245,"models/layouts/grid_box":246,"models/layouts/html_box":247,"models/layouts/row":248,"models/layouts/spacer":249,"models/layouts/tabs":250,"styles/tabs":251,"styles/buttons":252,"styles/menus":253,"models/layouts/widget_box":254,"models/mappers/index":255,"models/mappers/categorical_color_mapper":256,"models/mappers/categorical_mapper":257,"models/mappers/categorical_marker_mapper":258,"models/mappers/categorical_pattern_mapper":259,"models/mappers/log_color_mapper":260,"models/markers/index":261,"models/markers/defs":262,"models/markers/marker":263,"models/markers/scatter":264,"models/plots/index":265,"models/plots/gmap_plot":266,"models/plots/plot":267,"models/tools/toolbar":268,"models/tools/inspectors/inspect_tool":269,"models/tools/button_tool":270,"models/tools/tool":271,"styles/toolbar":272,"models/tools/on_off_button":273,"models/tools/toolbar_base":274,"models/tools/gestures/gesture_tool":275,"models/tools/actions/action_tool":276,"models/tools/actions/help_tool":277,"styles/icons":278,"styles/logo":279,"models/plots/plot_canvas":280,"core/bokeh_events":281,"core/ui_events":282,"core/util/wheel":284,"core/util/throttle":285,"core/layout/side_panel":286,"models/plots/gmap_plot_canvas":287,"models/ranges/index":288,"models/renderers/index":289,"models/scales/index":290,"models/selections/index":291,"models/sources/index":292,"models/sources/server_sent_data_source":293,"models/sources/web_data_source":294,"models/sources/ajax_data_source":295,"models/sources/geojson_data_source":296,"models/tickers/index":297,"models/tickers/fixed_ticker":298,"models/tiles/index":299,"models/tiles/bbox_tile_source":300,"models/tiles/mercator_tile_source":301,"models/tiles/tile_source":302,"models/tiles/tile_utils":303,"models/tiles/quadkey_tile_source":304,"models/tiles/tile_renderer":305,"models/tiles/wmts_tile_source":306,"styles/tiles":307,"models/tiles/tms_tile_source":308,"models/textures/index":309,"models/textures/canvas_texture":310,"models/textures/texture":311,"models/textures/image_url_texture":312,"models/tools/index":313,"models/tools/actions/custom_action":314,"models/tools/actions/redo_tool":315,"models/tools/actions/reset_tool":316,"models/tools/actions/save_tool":317,"models/tools/actions/undo_tool":318,"models/tools/actions/zoom_in_tool":319,"core/util/zoom":320,"models/tools/actions/zoom_out_tool":321,"models/tools/edit/edit_tool":322,"models/tools/edit/box_edit_tool":323,"models/tools/edit/freehand_draw_tool":324,"models/tools/edit/point_draw_tool":325,"models/tools/edit/poly_draw_tool":326,"models/tools/edit/poly_tool":327,"models/tools/edit/poly_edit_tool":328,"models/tools/gestures/box_select_tool":329,"models/tools/gestures/select_tool":330,"models/tools/util":331,"models/tools/gestures/box_zoom_tool":332,"models/tools/gestures/lasso_select_tool":333,"models/tools/gestures/pan_tool":334,"models/tools/gestures/poly_select_tool":335,"models/tools/gestures/range_tool":336,"models/tools/gestures/tap_tool":337,"models/tools/gestures/wheel_pan_tool":338,"models/tools/gestures/wheel_zoom_tool":339,"models/tools/inspectors/crosshair_tool":340,"models/tools/inspectors/customjs_hover":341,"models/tools/inspectors/hover_tool":342,"models/tools/tool_proxy":343,"models/tools/toolbar_box":344,"embed/standalone":345,"embed/dom":346,"embed/server":347,"client/connection":348,"protocol/message":349,"protocol/receiver":350,"client/session":351,"embed/notebook":352,"styles/notebook":353,"protocol/index":354,"testing":355,"safely":356}, {});n })nnn / END bokeh.min.js /n },n n function(Bokeh) {n / BEGIN bokeh-widgets.min.js /n /!n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn * All rights reserved.n * n * Redistribution and use in source and binary forms, with or without modification,n * are permitted provided that the following conditions are met:n * n * Redistributions of source code must retain the above copyright notice,n * this list of conditions and the following disclaimer.n * n * Redistributions in binary form must reproduce the above copyright notice,n * this list of conditions and the following disclaimer in the documentationn * and/or other materials provided with the distribution.n * n * Neither the name of Anaconda nor the names of any contributorsn * may be used to endorse or promote products derived from this softwaren * without specific prior written permission.n * n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn * THE POSSIBILITY OF SUCH DAMAGE.n /n (function(root, factory) {n factory(root["Bokeh"], "2.0.2");n })(this, function(Bokeh, version) {n var define;n return (function(modules, entry, aliases, externals) {n const bokeh = typeof Bokeh !== "undefined" && (version != null ? Bokeh[version] : Bokeh);n if (bokeh != null) {n return bokeh.register_plugin(modules, entry, aliases);n } else {n throw new Error("Cannot find Bokeh " + version + ". You have to load it prior to loading plugins.");n }n })n ({n 376: function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1).__importStar(e(377));o.Widgets=r,e(7).register_models(r)},n 377: function _(r,e,t){Object.defineProperty(t,"__esModule",{value:!0});var a=r(378);t.AbstractButton=a.AbstractButton;var o=r(381);t.AbstractIcon=o.AbstractIcon;var u=r(382);t.AutocompleteInput=u.AutocompleteInput;var n=r(386);t.Button=n.Button;var i=r(387);t.CheckboxButtonGroup=i.CheckboxButtonGroup;var v=r(389);t.CheckboxGroup=v.CheckboxGroup;var p=r(391);t.ColorPicker=p.ColorPicker;var l=r(392);t.DatePicker=l.DatePicker;var c=r(395);t.DateRangeSlider=c.DateRangeSlider;var d=r(400);t.DateSlider=d.DateSlider;var g=r(401);t.Div=g.Div;var I=r(404);t.Dropdown=I.Dropdown;var S=r(405);t.FileInput=S.FileInput;var P=r(384);t.InputWidget=P.InputWidget;var k=r(402);t.Markup=k.Markup;var x=r(406);t.MultiSelect=x.MultiSelect;var D=r(407);t.Paragraph=D.Paragraph;var b=r(408);t.PasswordInput=b.PasswordInput;var s=r(409);t.MultiChoice=s.MultiChoice;var h=r(412);t.PreText=h.PreText;var A=r(413);t.RadioButtonGroup=A.RadioButtonGroup;var B=r(414);t.RadioGroup=B.RadioGroup;var C=r(415);t.RangeSlider=C.RangeSlider;var G=r(416);t.Select=G.Select;var R=r(417);t.Slider=R.Slider;var T=r(418);t.Spinner=T.Spinner;var M=r(383);t.TextInput=M.TextInput;var w=r(419);t.TextAreaInput=w.TextAreaInput;var W=r(420);t.Toggle=W.Toggle;var _=r(441);t.Widget=_.Widget},n 378: function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const i=t(1).__importStar(t(19)),s=t(66),o=t(96),l=t(379),r=t(252);class _ extends l.ControlView{async lazy_initialize(){await super.lazy_initialize();const{icon:t}=this.model;null!=t&&(this.icon_view=await o.build_view(t,{parent:this}))}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}remove(){null!=this.icon_view&&this.icon_view.remove(),super.remove()}_render_button(…t){return s.button({type:"button",disabled:this.model.disabled,class:[r.bk_btn,r.bk_btn_type(this.model.button_type)]},…t)}render(){super.render(),this.button_el=this._render_button(this.model.label),this.button_el.addEventListener("click",()=>this.click()),null!=this.icon_view&&(s.prepend(this.button_el,this.icon_view.el,s.nbsp()),this.icon_view.render()),this.group_el=s.div({class:r.bk_btn_group},this.button_el),this.el.appendChild(this.group_el)}click(){}}n.AbstractButtonView=_,_.__name__="AbstractButtonView";class c extends l.Control{constructor(t){super(t)}static init_AbstractButton(){this.define({label:[i.String,"Button"],icon:[i.Instance],button_type:[i.ButtonType,"default"]})}}n.AbstractButton=c,c.__name__="AbstractButton",c.init_AbstractButton()},n 379: function _(e,n,s){Object.defineProperty(s,"__esModule",{value:!0});const t=e(441);class o extends t.WidgetView{connect_signals(){super.connect_signals();const e=this.model.properties;this.on_change(e.disabled,()=>this.render())}}s.ControlView=o,o.__name__="ControlView";class i extends t.Widget{constructor(e){super(e)}}s.Control=i,i.__name__="Control"},n 441: function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=i(1),n=i(247),r=o.__importStar(i(19));class _ extends n.HTMLBoxView{_width_policy(){return"horizontal"==this.model.orientation?super._width_policy():"fixed"}_height_policy(){return"horizontal"==this.model.orientation?"fixed":super._height_policy()}box_sizing(){const i=super.box_sizing();return"horizontal"==this.model.orientation?null==i.width&&(i.width=this.model.default_size):null==i.height&&(i.height=this.model.default_size),i}}t.WidgetView=_,_.__name__="WidgetView";class s extends n.HTMLBox{constructor(i){super(i)}static init_Widget(){this.define({orientation:[r.Orientation,"horizontal"],default_size:[r.Number,300]}),this.override({margin:[5,5,5,5]})}}t.Widget=s,s.__name__="Widget",s.init_Widget()},n 381: function _(e,t,c){Object.defineProperty(c,"__esModule",{value:!0});const s=e(69),n=e(64);class o extends n.DOMView{}c.AbstractIconView=o,o.__name__="AbstractIconView";class _ extends s.Model{constructor(e){super(e)}}c.AbstractIcon=_,_.__name__="AbstractIcon"},n 382: function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const i=e(1),s=e(383),h=e(66),_=i.__importStar(e(19)),o=e(10),u=e(145),r=e(253);class c extends s.TextInputView{constructor(){super(…arguments),this._open=!1,this._last_value="",this._hover_index=0}render(){super.render(),this.input_el.addEventListener("keydown",e=>this._keydown(e)),this.input_el.addEventListener("keyup",e=>this._keyup(e)),this.menu=h.div({class:[r.bk_menu,u.bk_below]}),this.menu.addEventListener("click",e=>this._menu_click(e)),this.menu.addEventListener("mouseover",e=>this._menu_hover(e)),this.el.appendChild(this.menu),h.undisplay(this.menu)}change_input(){this._open&&this.menu.children.length>0&&(this.model.value=this.menu.children[this._hover_index].textContent,this.input_el.focus(),this._hide_menu())}_update_completions(e){h.empty(this.menu);for(const t of e){const e=h.div({},t);this.menu.appendChild(e)}e.length>0&&this.menu.children[0].classList.add(u.bk_active)}_show_menu(){if(!this._open){this._open=!0,this._hover_index=0,this._last_value=this.model.value,h.display(this.menu);const e=t=>{const{target:n}=t;n instanceof HTMLElement&&!this.el.contains(n)&&(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,h.undisplay(this.menu))}_menu_click(e){e.target!=e.currentTarget&&e.target instanceof Element&&(this.model.value=e.target.textContent,this.input_el.focus(),this._hide_menu())}_menu_hover(e){if(e.target!=e.currentTarget&&e.target instanceof Element){let t=0;for(t=0;t<this.menu.children.length&&this.menu.children[t].textContent!=e.target.textContent;t++);this._bump_hover(t)}}_bump_hover(e){const t=this.menu.children.length;this._open&&t>0&&(this.menu.children[this._hover_index].classList.remove(u.bk_active),this._hover_index=o.clamp(e,0,t-1),this.menu.children[this._hover_index].classList.add(u.bk_active))}_keydown(e){}_keyup(e){switch(e.keyCode){case h.Keys.Enter:this.change_input();break;case h.Keys.Esc:this._hide_menu();break;case h.Keys.Up:this._bump_hover(this._hover_index-1);break;case h.Keys.Down:this._bump_hover(this._hover_index+1);break;default:{const e=this.input_el.value;if(e.length<this.model.min_characters)return void this._hide_menu();const t=[];for(const n of this.model.completions)n.startsWith(e)&&t.push(n);this._update_completions(t),0==t.length?this._hide_menu():this._show_menu()}}}}n.AutocompleteInputView=c,c.__name__="AutocompleteInputView";class l extends s.TextInput{constructor(e){super(e)}static init_AutocompleteInput(){this.prototype.default_view=c,this.define({completions:[_.Array,[]],min_characters:[_.Int,2]})}}n.AutocompleteInput=l,l.__name__="AutocompleteInput",l.init_AutocompleteInput()},n 383: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(384),l=e(66),p=n.__importStar(e(19)),u=e(385);class a extends s.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.value.change,()=>this.input_el.value=this.model.value),this.connect(this.model.properties.value_input.change,()=>this.input_el.value=this.model.value_input),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled),this.connect(this.model.properties.placeholder.change,()=>this.input_el.placeholder=this.model.placeholder)}render(){super.render(),this.input_el=l.input({type:"text",class:u.bk_input,name:this.model.name,value:this.model.value,disabled:this.model.disabled,placeholder:this.model.placeholder}),this.input_el.addEventListener("change",()=>this.change_input()),this.input_el.addEventListener("input",()=>this.change_input_oninput()),this.group_el.appendChild(this.input_el)}change_input(){this.model.value=this.input_el.value,super.change_input()}change_input_oninput(){this.model.value_input=this.input_el.value,super.change_input()}}i.TextInputView=a,a.__name__="TextInputView";class h extends s.InputWidget{constructor(e){super(e)}static init_TextInput(){this.prototype.default_view=a,this.define({value:[p.String,""],value_input:[p.String,""],placeholder:[p.String,""]})}}i.TextInput=h,h.__name__="TextInput",h.init_TextInput()},n 384: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),l=e(379),s=e(66),_=n.__importStar(e(19)),o=e(385);class p extends l.ControlView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.title.change,()=>{this.label_el.textContent=this.model.title})}render(){super.render();const{title:e}=this.model;this.label_el=s.label({style:{display:0==e.length?"none":""}},e),this.group_el=s.div({class:o.bk_input_group},this.label_el),this.el.appendChild(this.group_el)}change_input(){}}i.InputWidgetView=p,p.__name__="InputWidgetView";class r extends l.Control{constructor(e){super(e)}static init_InputWidget(){this.define({title:[_.String,""]})}}i.InputWidget=r,r.__name__="InputWidget",r.init_InputWidget()},n 385: function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const e=n(1);n(67),e.__importStar(n(66)).styles.append(‘.bk-root .bk-input {\n display: inline-block;\n width: 100%;\n flex-grow: 1;\n -webkit-flex-grow: 1;\n min-height: 31px;\n padding: 0 12px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n.bk-root .bk-input:focus {\n border-color: #66afe9;\n outline: 0;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);\n}\n.bk-root .bk-input::placeholder,\n.bk-root .bk-input:-ms-input-placeholder,\n.bk-root .bk-input::-moz-placeholder,\n.bk-root .bk-input::-webkit-input-placeholder {\n color: #999;\n opacity: 1;\n}\n.bk-root .bk-input[disabled] {\n cursor: not-allowed;\n background-color: #eee;\n opacity: 1;\n}\n.bk-root select:not([multiple]).bk-input,\n.bk-root select:not([size]).bk-input {\n height: auto;\n appearance: none;\n -webkit-appearance: none;\n background-image: url(\’data:image/svg+xml;utf8,<svg version="1.1" viewBox="0 0 25 20" xmlns="http://www.w3.org/2000/svg"><path d="M 0,0 25,0 12.5,20 Z" fill="black" /></svg>\’);\n background-position: right 0.5em center;\n background-size: 8px 6px;\n background-repeat: no-repeat;\n}\n.bk-root select[multiple].bk-input,\n.bk-root select[size].bk-input,\n.bk-root textarea.bk-input {\n height: auto;\n}\n.bk-root .bk-input-group {\n width: 100%;\n height: 100%;\n display: inline-flex;\n display: -webkit-inline-flex;\n flex-wrap: nowrap;\n -webkit-flex-wrap: nowrap;\n align-items: start;\n -webkit-align-items: start;\n flex-direction: column;\n -webkit-flex-direction: column;\n white-space: nowrap;\n}\n.bk-root .bk-input-group.bk-inline {\n flex-direction: row;\n -webkit-flex-direction: row;\n}\n.bk-root .bk-input-group.bk-inline > *:not(:first-child) {\n margin-left: 5px;\n}\n.bk-root .bk-input-group input[type="checkbox"] + span,\n.bk-root .bk-input-group input[type="radio"] + span {\n position: relative;\n top: -2px;\n margin-left: 3px;\n}\n’),t.bk_input="bk-input",t.bk_input_group="bk-input-group"},n 386: function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const n=t(378),o=t(281);class s extends n.AbstractButtonView{click(){this.model.clicks=this.model.clicks+1,this.model.trigger_event(new o.ButtonClick),super.click()}}i.ButtonView=s,s.__name__="ButtonView";class c extends n.AbstractButton{constructor(t){super(t)}static init_Button(){this.prototype.default_view=s,this.override({label:"Button"})}}i.Button=c,c.__name__="Button",c.init_Button()},n 387: function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t(1),c=t(388),n=t(66),s=t(15),u=i.__importStar(t(19)),a=t(145);class r extends c.ButtonGroupView{get active(){return new s.Set(this.model.active)}change_active(t){const{active:e}=this;e.toggle(t),this.model.active=e.values}_update_active(){const{active:t}=this;this._buttons.forEach((e,o)=>{n.classes(e).toggle(a.bk_active,t.has(o))})}}o.CheckboxButtonGroupView=r,r.__name__="CheckboxButtonGroupView";class _ extends c.ButtonGroup{constructor(t){super(t)}static init_CheckboxButtonGroup(){this.prototype.default_view=r,this.define({active:[u.Array,[]]})}}o.CheckboxButtonGroup=_,_.__name__="CheckboxButtonGroup",_.init_CheckboxButtonGroup()},n 388: function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});const s=t(1),o=t(379),i=t(66),_=s.__importStar(t(19)),r=t(252);class a extends o.ControlView{connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.button_type,()=>this.render()),this.on_change(t.labels,()=>this.render()),this.on_change(t.active,()=>this._update_active())}render(){super.render(),this._buttons=this.model.labels.map((t,e)=>{const n=i.div({class:[r.bk_btn,r.bk_btn_type(this.model.button_type)],disabled:this.model.disabled},t);return n.addEventListener("click",()=>this.change_active(e)),n}),this._update_active();const t=i.div({class:r.bk_btn_group},this._buttons);this.el.appendChild(t)}}n.ButtonGroupView=a,a.__name__="ButtonGroupView";class u extends o.Control{constructor(t){super(t)}static init_ButtonGroup(){this.define({labels:[_.Array,[]],button_type:[_.ButtonType,"default"]})}}n.ButtonGroup=u,u.__name__="ButtonGroup",u.init_ButtonGroup()},n 389: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),o=e(390),s=e(66),c=e(9),l=e(15),a=n.__importStar(e(19)),r=e(145),d=e(385);class p extends o.InputGroupView{render(){super.render();const e=s.div({class:[d.bk_input_group,this.model.inline?r.bk_inline:null]});this.el.appendChild(e);const{active:t,labels:i}=this.model;for(let n=0;n<i.length;n++){const o=s.input({type:"checkbox",value:`${n}`});o.addEventListener("change",()=>this.change_active(n)),this.model.disabled&&(o.disabled=!0),c.includes(t,n)&&(o.checked=!0);const l=s.label({},o,s.span({},i[n]));e.appendChild(l)}}change_active(e){const t=new l.Set(this.model.active);t.toggle(e),this.model.active=t.values}}i.CheckboxGroupView=p,p.__name__="CheckboxGroupView";class u extends o.InputGroup{constructor(e){super(e)}static init_CheckboxGroup(){this.prototype.default_view=p,this.define({active:[a.Array,[]],labels:[a.Array,[]],inline:[a.Boolean,!1]})}}i.CheckboxGroup=u,u.__name__="CheckboxGroup",u.init_CheckboxGroup()},n 390: function _(e,n,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e(379);class s extends o.ControlView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}}t.InputGroupView=s,s.__name__="InputGroupView";class c extends o.Control{constructor(e){super(e)}}t.InputGroup=c,c.__name__="InputGroup"},n 391: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),o=e(384),s=e(66),l=n.__importStar(e(19)),r=e(385);class c extends o.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.color.change,()=>this.input_el.value=this.model.color),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled)}render(){super.render(),this.input_el=s.input({type:"color",class:r.bk_input,name:this.model.name,value:this.model.color,disabled:this.model.disabled}),this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){this.model.color=this.input_el.value,super.change_input()}}t.ColorPickerView=c,c.__name__="ColorPickerView";class d extends o.InputWidget{constructor(e){super(e)}static init_ColorPicker(){this.prototype.default_view=c,this.define({color:[l.Color,"#000000"]})}}t.ColorPicker=d,d.__name__="ColorPicker",d.init_ColorPicker()},n 392: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),a=n.__importDefault(e(393)),s=e(384),l=e(66),o=n.__importStar(e(19)),d=e(8),r=e(385);function c(e){const t=[];for(const i of e)d.isString(i)?t.push(i):d.isArray(i)&&2==i.length&&t.push({from:i[0],to:i[1]});return t}e(394);class u extends s.InputWidgetView{connect_signals(){super.connect_signals();const{value:e,min_date:t,max_date:i,disabled_dates:n,enabled_dates:a,position:s,inline:l}=this.model.properties;this.connect(e.change,()=>{var t;return null===(t=this._picker)||void 0===t?void 0:t.setDate(e.value())}),this.connect(t.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("minDate",t.value())}),this.connect(i.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("maxDate",i.value())}),this.connect(n.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("disable",n.value())}),this.connect(a.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("enable",a.value())}),this.connect(s.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("position",s.value())}),this.connect(l.change,()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set("inline",l.value())})}render(){null==this._picker&&(super.render(),this.input_el=l.input({type:"text",class:r.bk_input,disabled:this.model.disabled}),this.group_el.appendChild(this.input_el),this._picker=a.default(this.input_el,{defaultDate:this.model.value,minDate:this.model.min_date,maxDate:this.model.max_date,inline:this.model.inline,position:this.model.position,disable:c(this.model.disabled_dates),enable:c(this.model.enabled_dates),onChange:(e,t,i)=>this._on_change(e,t,i)}))}_on_change(e,t,i){this.model.value=t,this.change_input()}}i.DatePickerView=u,u.__name__="DatePickerView";class _ extends s.InputWidget{constructor(e){super(e)}static init_DatePicker(){this.prototype.default_view=u,this.define({value:[o.Any],min_date:[o.Any],max_date:[o.Any],disabled_dates:[o.Any,[]],enabled_dates:[o.Any,[]],position:[o.CalendarPosition,"auto"],inline:[o.Boolean,!1]})}}i.DatePicker=_,_.__name__="DatePicker",_.init_DatePicker()},n 393: function _(e,t,n){n / flatpickr v4.6.3, @license MIT /var a,i;a=this,i=function(){"use strict";n /! *************************************************************************n Copyright (c) Microsoft Corporation. All rights reserved.n Licensed under the Apache License, Version 2.0 (the "License"); you may not usen this file except in compliance with the License. You may obtain a copy of then License at http://www.apache.org/licenses/LICENSE-2.0n n THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYn KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDn WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,n MERCHANTABLITY OR NON-INFRINGEMENT.n n See the Apache Version 2.0 License for specific language governing permissionsn and limitations under the License.n ************************************************************************* /var e=function(){return(e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version=’1.1’ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’ viewBox=’0 0 17 17’><g></g><path d=’M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z’ /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version=’1.1’ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’ viewBox=’0 0 17 17’><g></g><path d=’M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z’ /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},i=function(e){return("0"+e).slice(-2)},o=function(e){return!0===e?1:0};function r(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=window.setTimeout((function(){a=null,n||e.apply(i,o)}),t),n&&!a&&e.apply(i,o)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function s(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function u(e,t){var n=d("div","numInputWrapper"),a=d("input","numInput "+e),i=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}var f=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},g={D:f,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*o(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var a=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:f,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:f,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},p={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},h={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[h.w(e,t,n)]},F:function(e,t,n){return m(h.n(e,t,n)-1,!1,t)},G:function(e,t,n){return i(h.h(e,t,n))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},v=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,n){var a=n||r;return void 0!==i.formatDate?i.formatDate(e,t,a):t.split("").map((function(t,n,o){return h[t]&&"\\"!==o[n-1]?h[t](e,a,i):"\\"!==t?t:""})).join("")}},D=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,a,o){if(0===e||e){var l,c=o||r,d=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var s=t||(i||n).dateFormat,u=String(e).trim();if("today"===u)l=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else if(i&&i.parseDate)l=i.parseDate(e,s);else{l=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,m=[],h=0,v=0,D="";h<s.length;h++){var w=s[h],b="\\"===w,C="\\"===s[h-1]||b;if(p[w]&&!C){D+=p[w];var M=new RegExp(D).exec(e);M&&(f=!0)&&m["Y"!==w?"push":"unshift"]({fn:g[w],val:M[++v]})}else b||(D+=".");m.forEach((function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l}))}l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===a&&l.setHours(0,0,0,0),l;i.errorHandler(new Error("Invalid date provided: "+d))}}};function w(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var b=864e5;function C(f,g){var h={config:e({},n,y.defaultConfig),l10n:a};function C(e){return e.bind(h)}function M(){var e=h.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==h.calendarContainer&&(h.calendarContainer.style.visibility="hidden",h.calendarContainer.style.display="block"),void 0!==h.daysContainer){var t=(h.days.offsetWidth+1)*e.showMonths;h.daysContainer.style.width=t+"px",h.calendarContainer.style.width=t+(void 0!==h.weekWrapper?h.weekWrapper.offsetWidth:0)+"px",h.calendarContainer.style.removeProperty("visibility"),h.calendarContainer.style.removeProperty("display")}}))}function x(e){0===h.selectedDates.length&&ne(),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==h.amPM&&e.target===h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]);var a=parseFloat(n.getAttribute("min")),r=parseFloat(n.getAttribute("max")),l=parseFloat(n.getAttribute("step")),c=parseInt(n.value,10),d=e.delta||(t?38===e.which?1:-1:0),s=c+l*d;if(void 0!==n.value&&2===n.value.length){var u=n===h.hourElement,f=n===h.minuteElement;s<a?(s=r+s+o(!u)+(o(u)&&o(!h.amPM)),f&&Y(void 0,-1,h.hourElement)):s>r&&(s=n===h.hourElement?s-r-o(!h.amPM):a,f&&Y(void 0,1,h.hourElement)),h.amPM&&u&&(1===l?s+c===23:Math.abs(s-c)>l)&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]),n.value=i(s)}}(e);var t=h._input.value;E(),ve(),h._input.value!==t&&h._debouncedChange()}function E(){if(void 0!==h.hourElement&&void 0!==h.minuteElement){var e,t,n=(parseInt(h.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(h.minuteElement.value,10)||0)%60,i=void 0!==h.secondElement?(parseInt(h.secondElement.value,10)||0)%60:0;void 0!==h.amPM&&(e=n,t=h.amPM.textContent,n=e%12+12*o(t===h.l10n.amPM[1]));var r=void 0!==h.config.minTime||h.config.minDate&&h.minDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.minDate,!0);if(void 0!==h.config.maxTime||h.config.maxDate&&h.maxDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.maxDate,!0)){var l=void 0!==h.config.maxTime?h.config.maxTime:h.config.maxDate;(n=Math.min(n,l.getHours()))===l.getHours()&&(a=Math.min(a,l.getMinutes())),a===l.getMinutes()&&(i=Math.min(i,l.getSeconds()))}if(r){var c=void 0!==h.config.minTime?h.config.minTime:h.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(a=Math.max(a,c.getMinutes())),a===c.getMinutes()&&(i=Math.max(i,c.getSeconds()))}I(n,a,i)}}function T(e){var t=e||h.latestSelectedDateObj;t&&I(t.getHours(),t.getMinutes(),t.getSeconds())}function k(){var e=h.config.defaultHour,t=h.config.defaultMinute,n=h.config.defaultSeconds;if(void 0!==h.config.minDate){var a=h.config.minDate.getHours(),i=h.config.minDate.getMinutes();(e=Math.max(e,a))===a&&(t=Math.max(i,t)),e===a&&t===i&&(n=h.config.minDate.getSeconds())}if(void 0!==h.config.maxDate){var o=h.config.maxDate.getHours(),r=h.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(r,t)),e===o&&t===r&&(n=h.config.maxDate.getSeconds())}I(e,t,n)}function I(e,t,n){void 0!==h.latestSelectedDateObj&&h.latestSelectedDateObj.setHours(e%24,t,n||0,0),h.hourElement&&h.minuteElement&&!h.isMobile&&(h.hourElement.value=i(h.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),h.minuteElement.value=i(t),void 0!==h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(e>=12)]),void 0!==h.secondElement&&(h.secondElement.value=i(n)))}function S(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&V(t)}function O(e,t,n,a){return t instanceof Array?t.forEach((function(t){return O(e,t,n,a)})):e instanceof Array?e.forEach((function(e){return O(e,t,n,a)})):(e.addEventListener(t,n,a),void h._handlers.push({element:e,event:t,handler:n,options:a}))}function _(e){return function(t){1===t.which&&e(t)}}function F(){fe("onChange")}function N(e,t){var n=void 0!==e?h.parseDate(e):h.latestSelectedDateObj||(h.config.minDate&&h.config.minDate>h.now?h.config.minDate:h.config.maxDate&&h.config.maxDate<h.now?h.config.maxDate:h.now),a=h.currentYear,i=h.currentMonth;try{void 0!==n&&(h.currentYear=n.getFullYear(),h.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,h.config.errorHandler(e)}t&&h.currentYear!==a&&(fe("onYearChange"),B()),!t||h.currentYear===a&&h.currentMonth===i||fe("onMonthChange"),h.redraw()}function P(e){~e.target.className.indexOf("arrow")&&Y(e,e.target.classList.contains("arrowUp")?1:-1)}function Y(e,t,n){var a=e&&e.target,i=n||a&&a.parentNode&&a.parentNode.firstChild,o=me("increment");o.delta=t,i&&i.dispatchEvent(o)}function A(e,t,n,a){var i=Z(t,!0),o=d("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",h.formatDate(t,h.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,h.now)&&(h.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,ge(t)&&(o.classList.add("selected"),h.selectedDateElem=o,"range"===h.config.mode&&(c(o,"startRange",h.selectedDates[0]&&0===w(t,h.selectedDates[0],!0)),c(o,"endRange",h.selectedDates[1]&&0===w(t,h.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===h.config.mode&&function(e){return!("range"!==h.config.mode||h.selectedDates.length<2)&&w(e,h.selectedDates[0])>=0&&w(e,h.selectedDates[1])<=0}(t)&&!ge(t)&&o.classList.add("inRange"),h.weekNumbers&&1===h.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&h.weekNumbers.insertAdjacentHTML("beforeend","<span class=’flatpickr-day’>"+h.config.getWeek(t)+"</span>"),fe("onDayCreate",o),o}function j(e){e.focus(),"range"===h.config.mode&&ee(e)}function H(e){for(var t=e>0?0:h.config.showMonths-1,n=e>0?h.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=h.daysContainer.children[a],o=e>0?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&Z(c.dateObj))return c}}function L(e,t){var n=Q(document.activeElement||document.body),a=void 0!==e?e:n?document.activeElement:void 0!==h.selectedDateElem&&Q(h.selectedDateElem)?h.selectedDateElem:void 0!==h.todayDateElem&&Q(h.todayDateElem)?h.todayDateElem:H(t>0?1:-1);return void 0===a?h._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():h.currentMonth,a=t>0?h.config.showMonths:-1,i=t>0?1:-1,o=n-h.currentMonth;o!=a;o+=i)for(var r=h.daysContainer.children[o],l=n-h.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,d=l;d>=0&&d<c&&d!=(t>0?c:-1);d+=i){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&Z(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return j(s)}h.changeMonth(i),L(H(i),0)}(a,t):j(a)}function W(e,t){for(var n=(new Date(e,t,1).getDay()-h.l10n.firstDayOfWeek+7)%7,a=h.utils.getDaysInMonth((t-1+12)%12),i=h.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),r=h.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-n,u=0;s<=a;s++,u++)o.appendChild(A(l,new Date(e,t-1,s),s,u));for(s=1;s<=i;s++,u++)o.appendChild(A("",new Date(e,t,s),s,u));for(var f=i+1;f<=42-n&&(1===h.config.showMonths||u%7!=0);f++,u++)o.appendChild(A(c,new Date(e,t+1,f%i),f,u));var m=d("div","dayContainer");return m.appendChild(o),m}function R(){if(void 0!==h.daysContainer){s(h.daysContainer),h.weekNumbers&&s(h.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<h.config.showMonths;t++){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),e.appendChild(W(n.getFullYear(),n.getMonth()))}h.daysContainer.appendChild(e),h.days=h.daysContainer.firstChild,"range"===h.config.mode&&1===h.selectedDates.length&&ee()}}function B(){if(!(h.config.showMonths>1||"dropdown"!==h.config.monthSelectorType)){var e=function(e){return!(void 0!==h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&e<h.config.minDate.getMonth()||void 0!==h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()&&e>h.config.maxDate.getMonth())};h.monthsDropdownContainer.tabIndex=-1,h.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=d("option","flatpickr-monthDropdown-month");n.value=new Date(h.currentYear,t).getMonth().toString(),n.textContent=m(t,h.config.shorthandCurrentMonth,h.l10n),n.tabIndex=-1,h.currentMonth===t&&(n.selected=!0),h.monthsDropdownContainer.appendChild(n)}}}function J(){var e,t=d("div","flatpickr-month"),n=window.document.createDocumentFragment();h.config.showMonths>1||"static"===h.config.monthSelectorType?e=d("span","cur-month"):(h.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),O(h.monthsDropdownContainer,"change",(function(e){var t=e.target,n=parseInt(t.value,10);h.changeMonth(n-h.currentMonth),fe("onMonthChange")})),B(),e=h.monthsDropdownContainer);var a=u("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",h.l10n.yearAriaLabel),h.config.minDate&&i.setAttribute("min",h.config.minDate.getFullYear().toString()),h.config.maxDate&&(i.setAttribute("max",h.config.maxDate.getFullYear().toString()),i.disabled=!!h.config.minDate&&h.config.minDate.getFullYear()===h.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),t.appendChild(n),{container:t,yearElement:i,monthElement:e}}function K(){s(h.monthNav),h.monthNav.appendChild(h.prevMonthNav),h.config.showMonths&&(h.yearElements=[],h.monthElements=[]);for(var e=h.config.showMonths;e–;){var t=J();h.yearElements.push(t.yearElement),h.monthElements.push(t.monthElement),h.monthNav.appendChild(t.container)}h.monthNav.appendChild(h.nextMonthNav)}function U(){h.weekdayContainer?s(h.weekdayContainer):h.weekdayContainer=d("div","flatpickr-weekdays");for(var e=h.config.showMonths;e–;){var t=d("div","flatpickr-weekdaycontainer");h.weekdayContainer.appendChild(t)}return q(),h.weekdayContainer}function q(){if(h.weekdayContainer){var e=h.l10n.firstDayOfWeek,t=h.l10n.weekdays.shorthand.slice();e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=h.config.showMonths;n–;)h.weekdayContainer.children[n].innerHTML="\n <span class=’flatpickr-weekday’>\n "+t.join("</span><span class=’flatpickr-weekday’>")+"\n </span>\n "}}function $(e,t){void 0===t&&(t=!0);var n=t?e:e-h.currentMonth;n<0&&!0===h._hidePrevMonthArrow||n>0&&!0===h._hideNextMonthArrow||(h.currentMonth+=n,(h.currentMonth<0||h.currentMonth>11)&&(h.currentYear+=h.currentMonth>11?1:-1,h.currentMonth=(h.currentMonth+12)%12,fe("onYearChange"),B()),R(),fe("onMonthChange"),pe())}function z(e){return!(!h.config.appendTo||!h.config.appendTo.contains(e))||h.calendarContainer.contains(e)}function G(e){if(h.isOpen&&!h.config.inline){var t="function"==typeof(r=e).composedPath?r.composedPath()[0]:r.target,n=z(t),a=t===h.input||t===h.altInput||h.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(h.input)||~e.path.indexOf(h.altInput)),i="blur"===e.type?a&&e.relatedTarget&&!z(e.relatedTarget):!a&&!n&&!z(e.relatedTarget),o=!h.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&x(),h.close(),"range"===h.config.mode&&1===h.selectedDates.length&&(h.clear(!1),h.redraw()))}var r}function V(e){if(!(!e||h.config.minDate&&e<h.config.minDate.getFullYear()||h.config.maxDate&&e>h.config.maxDate.getFullYear())){var t=e,n=h.currentYear!==t;h.currentYear=t||h.currentYear,h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth=Math.min(h.config.maxDate.getMonth(),h.currentMonth):h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&(h.currentMonth=Math.max(h.config.minDate.getMonth(),h.currentMonth)),n&&(h.redraw(),fe("onYearChange"),B())}}function Z(e,t){void 0===t&&(t=!0);var n=h.parseDate(e,void 0,t);if(h.config.minDate&&n&&w(n,h.config.minDate,void 0!==t?t:!h.minDateHasTime)<0||h.config.maxDate&&n&&w(n,h.config.maxDate,void 0!==t?t:!h.maxDateHasTime)>0)return!1;if(0===h.config.enable.length&&0===h.config.disable.length)return!0;if(void 0===n)return!1;for(var a=h.config.enable.length>0,i=a?h.config.enable:h.config.disable,o=0,r=void 0;o<i.length;o++){if("function"==typeof(r=i[o])&&r(n))return a;if(r instanceof Date&&void 0!==n&&r.getTime()===n.getTime())return a;if("string"==typeof r&&void 0!==n){var l=h.parseDate(r,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof r&&void 0!==n&&r.from&&r.to&&n.getTime()>=r.from.getTime()&&n.getTime()<=r.to.getTime())return a}return!a}function Q(e){return void 0!==h.daysContainer&&-1===e.className.indexOf("hidden")&&h.daysContainer.contains(e)}function X(e){var t=e.target===h._input,n=h.config.allowInput,a=h.isOpen&&(!n||!t),i=h.config.inline&&t&&!n;if(13===e.keyCode&&t){if(n)return h.setDate(h._input.value,!0,e.target===h.altInput?h.config.altFormat:h.config.dateFormat),e.target.blur();h.open()}else if(z(e.target)||a||i){var o=!!h.timeContainer&&h.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?(e.preventDefault(),x(),le()):ce(e);break;case 27:e.preventDefault(),le();break;case 8:case 46:t&&!h.config.allowInput&&(e.preventDefault(),h.clear());break;case 37:case 39:if(o||t)h.hourElement&&h.hourElement.focus();else if(e.preventDefault(),void 0!==h.daysContainer&&(!1===n||document.activeElement&&Q(document.activeElement))){var r=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),$(r),L(H(1),0)):L(void 0,r)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;h.daysContainer&&void 0!==e.target.$i||e.target===h.input||e.target===h.altInput?e.ctrlKey?(e.stopPropagation(),V(h.currentYear-l),L(H(1),0)):o||L(void 0,7*l):e.target===h.currentYearElement?V(h.currentYear-l):h.config.enableTime&&(!o&&h.hourElement&&h.hourElement.focus(),x(e),h._debouncedChange());break;case 9:if(o){var c=[h.hourElement,h.minuteElement,h.secondElement,h.amPM].concat(h.pluginElements).filter((function(e){return e})),d=c.indexOf(e.target);if(-1!==d){var s=c[d+(e.shiftKey?-1:1)];e.preventDefault(),(s||h._input).focus()}}else!h.config.noCalendar&&h.daysContainer&&h.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),h._input.focus())}}if(void 0!==h.amPM&&e.target===h.amPM)switch(e.key){case h.l10n.amPM[0].charAt(0):case h.l10n.amPM[0].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[0],E(),ve();break;case h.l10n.amPM[1].charAt(0):case h.l10n.amPM[1].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[1],E(),ve()}(t||z(e.target))&&fe("onKeyDown",e)}function ee(e){if(1===h.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():h.days.firstElementChild.dateObj.getTime(),n=h.parseDate(h.selectedDates[0],void 0,!0).getTime(),a=Math.min(t,h.selectedDates[0].getTime()),i=Math.max(t,h.selectedDates[0].getTime()),o=!1,r=0,l=0,c=a;c<i;c+=b)Z(new Date(c),!0)||(o=o||c>a&&c<i,c<n&&(!r||c>r)?r=c:c>n&&(!l||c<l)&&(l=c));for(var d=0;d<h.config.showMonths;d++)for(var s=h.daysContainer.children[d],u=function(a,i){var c,d,u,f=s.children[a],m=f.dateObj.getTime(),g=r>0&&m<r||l>0&&m>l;return g?(f.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){f.classList.remove(e)})),"continue"):o&&!g?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){f.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=h.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&m===n?f.classList.add("startRange"):n>t&&m===n&&f.classList.add("endRange"),m>=r&&(0===l||m<=l)&&(d=n,u=t,(c=m)>Math.min(d,u)&&c<Math.max(d,u))&&f.classList.add("inRange"))))},f=0,m=s.children.length;f<m;f++)u(f)}}function te(){!h.isOpen||h.config.static||h.config.inline||oe()}function ne(){h.setDate(void 0!==h.config.minDate?new Date(h.config.minDate.getTime()):new Date,!0),k(),ve()}function ae(e){return function(t){var n=h.config["_"+e+"Date"]=h.parseDate(t,h.config.dateFormat),a=h.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(h["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),h.selectedDates&&(h.selectedDates=h.selectedDates.filter((function(e){return Z(e)})),h.selectedDates.length||"min"!==e||T(n),ve()),h.daysContainer&&(re(),void 0!==n?h.currentYearElement[e]=n.getFullYear().toString():h.currentYearElement.removeAttribute(e),h.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function ie(){"object"!=typeof h.config.locale&&void 0===y.l10ns[h.config.locale]&&h.config.errorHandler(new Error("flatpickr: invalid locale "+h.config.locale)),h.l10n=e({},y.l10ns.default,"object"==typeof h.config.locale?h.config.locale:"default"!==h.config.locale?y.l10ns[h.config.locale]:void 0),p.K="("+h.l10n.amPM[0]+"|\"+h.l10n.amPM[1]+\"|"+h.l10n.amPM[0].toLowerCase()+"|\"+h.l10n.amPM[1].toLowerCase()+\")\",void 0===e({},g,JSON.parse(JSON.stringify(f.dataset||{}))).time_24hr&&void 0===y.defaultConfig.time_24hr&&(h.config.time_24hr=h.l10n.time_24hr),h.formatDate=v(h),h.parseDate=D({config:h.config,l10n:h.l10n})}function oe(e){if(void 0!==h.calendarContainer){fe(\"onPreCalendarPosition\");var t=e||h._positionElement,n=Array.prototype.reduce.call(h.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),a=h.calendarContainer.offsetWidth,i=h.config.position.split(\" \"),o=i[0],r=i.length>1?i[1]:null,l=t.getBoundingClientRect(),d=window.innerHeight-l.bottom,s=\"above\"===o||"below"!==o&&d<n&&l.top>n,u=window.pageYOffset+l.top+(s?-n-2:t.offsetHeight+2);if(c(h.calendarContainer,"arrowTop",!s),c(h.calendarContainer,"arrowBottom",s),!h.config.inline){var f=window.pageXOffset+l.left-(null!=r&&"center"===r?(a-l.width)/2:0),m=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=f+a>window.document.body.offsetWidth,p=m+a>window.document.body.offsetWidth;if(c(h.calendarContainer,"rightMost",g),!h.config.static)if(h.calendarContainer.style.top=u+"px",g)if(p){var v=document.styleSheets[0];if(void 0===v)return;var D=window.document.body.offsetWidth,w=Math.max(0,D/2-a/2),b=v.cssRules.length,C="{left:"+l.left+"px;right:auto;}";c(h.calendarContainer,"rightMost",!1),c(h.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,b),h.calendarContainer.style.left=w+"px",h.calendarContainer.style.right="auto"}else h.calendarContainer.style.left="auto",h.calendarContainer.style.right=m+"px";else h.calendarContainer.style.left=f+"px",h.calendarContainer.style.right="auto"}}}function re(){h.config.noCalendar||h.isMobile||(pe(),R())}function le(){h._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(h.close,0):h.close()}function ce(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,a=h.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<h.currentMonth||a.getMonth()>h.currentMonth+h.config.showMonths-1)&&"range"!==h.config.mode;if(h.selectedDateElem=n,"single"===h.config.mode)h.selectedDates=[a];else if("multiple"===h.config.mode){var o=ge(a);o?h.selectedDates.splice(parseInt(o),1):h.selectedDates.push(a)}else"range"===h.config.mode&&(2===h.selectedDates.length&&h.clear(!1,!1),h.latestSelectedDateObj=a,h.selectedDates.push(a),0!==w(a,h.selectedDates[0],!0)&&h.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(E(),i){var r=h.currentYear!==a.getFullYear();h.currentYear=a.getFullYear(),h.currentMonth=a.getMonth(),r&&(fe("onYearChange"),B()),fe("onMonthChange")}if(pe(),R(),ve(),h.config.enableTime&&setTimeout((function(){return h.showTimeInput=!0}),50),i||"range"===h.config.mode||1!==h.config.showMonths?void 0!==h.selectedDateElem&&void 0===h.hourElement&&h.selectedDateElem&&h.selectedDateElem.focus():j(n),void 0!==h.hourElement&&void 0!==h.hourElement&&h.hourElement.focus(),h.config.closeOnSelect){var l="single"===h.config.mode&&!h.config.enableTime,c="range"===h.config.mode&&2===h.selectedDates.length&&!h.config.enableTime;(l||c)&&le()}F()}}h.parseDate=D({config:h.config,l10n:h.l10n}),h._handlers=[],h.pluginElements=[],h.loadedPlugins=[],h._bind=O,h._setHoursFromDate=T,h._positionCalendar=oe,h.changeMonth=$,h.changeYear=V,h.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),h.input.value="",void 0!==h.altInput&&(h.altInput.value=""),void 0!==h.mobileInput&&(h.mobileInput.value=""),h.selectedDates=[],h.latestSelectedDateObj=void 0,!0===t&&(h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth()),h.showTimeInput=!1,!0===h.config.enableTime&&k(),h.redraw(),e&&fe("onChange")},h.close=function(){h.isOpen=!1,h.isMobile||(void 0!==h.calendarContainer&&h.calendarContainer.classList.remove("open"),void 0!==h._input&&h._input.classList.remove("active")),fe("onClose")},h._createElement=d,h.destroy=function(){void 0!==h.config&&fe("onDestroy");for(var e=h._handlers.length;e–;){var t=h._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(h._handlers=[],h.mobileInput)h.mobileInput.parentNode&&h.mobileInput.parentNode.removeChild(h.mobileInput),h.mobileInput=void 0;else if(h.calendarContainer&&h.calendarContainer.parentNode)if(h.config.static&&h.calendarContainer.parentNode){var n=h.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else h.calendarContainer.parentNode.removeChild(h.calendarContainer);h.altInput&&(h.input.type="text",h.altInput.parentNode&&h.altInput.parentNode.removeChild(h.altInput),delete h.altInput),h.input&&(h.input.type=h.input._type,h.input.classList.remove("flatpickr-input"),h.input.removeAttribute("readonly"),h.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete h[e]}catch(e){}}))},h.isEnabled=Z,h.jumpToDate=N,h.open=function(e,t){if(void 0===t&&(t=h._positionElement),!0===h.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==h.mobileInput&&(h.mobileInput.focus(),h.mobileInput.click()),void fe("onOpen");if(!h._input.disabled&&!h.config.inline){var n=h.isOpen;h.isOpen=!0,n||(h.calendarContainer.classList.add("open"),h._input.classList.add("active"),fe("onOpen"),oe(t)),!0===h.config.enableTime&&!0===h.config.noCalendar&&(0===h.selectedDates.length&&ne(),!1!==h.config.allowInput||void 0!==e&&h.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return h.hourElement.select()}),50))}},h.redraw=re,h.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(h.config,e),e)void 0!==de[a]&&de[a].forEach((function(e){return e()}));else h.config[e]=n,void 0!==de[e]?de[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(h.config[e]=l(n));h.redraw(),ve(!1)},h.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=h.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return h.clear(t);se(e,n),h.showTimeInput=h.selectedDates.length>0,h.latestSelectedDateObj=h.selectedDates[h.selectedDates.length-1],h.redraw(),N(),T(),0===h.selectedDates.length&&h.clear(!1),ve(t),t&&fe("onChange")},h.toggle=function(e){if(!0===h.isOpen)return h.close();h.open(e)};var de={locale:[ie,q],showMonths:[K,M,U],minDate:[N],maxDate:[N]};function se(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return h.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[h.parseDate(e,t)];else if("string"==typeof e)switch(h.config.mode){case"single":case"time":n=[h.parseDate(e,t)];break;case"multiple":n=e.split(h.config.conjunction).map((function(e){return h.parseDate(e,t)}));break;case"range":n=e.split(h.l10n.rangeSeparator).map((function(e){return h.parseDate(e,t)}))}else h.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));h.selectedDates=n.filter((function(e){return e instanceof Date&&Z(e,!1)})),"range"===h.config.mode&&h.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ue(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?h.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:h.parseDate(e.from,void 0),to:h.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function fe(e,t){if(void 0!==h.config){var n=h.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](h.selectedDates,h.input.value,h,t);"onChange"===e&&(h.input.dispatchEvent(me("change")),h.input.dispatchEvent(me("input")))}}function me(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function ge(e){for(var t=0;t<h.selectedDates.length;t++)if(0===w(h.selectedDates[t],e))return""+t;return!1}function pe(){h.config.noCalendar||h.isMobile||!h.monthNav||(h.yearElements.forEach((function(e,t){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),h.config.showMonths>1||"static"===h.config.monthSelectorType?h.monthElements[t].textContent=m(n.getMonth(),h.config.shorthandCurrentMonth,h.l10n)+" ":h.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),h._hidePrevMonthArrow=void 0!==h.config.minDate&&(h.currentYear===h.config.minDate.getFullYear()?h.currentMonth<=h.config.minDate.getMonth():h.currentYear<h.config.minDate.getFullYear()),h._hideNextMonthArrow=void 0!==h.config.maxDate&&(h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth+1>h.config.maxDate.getMonth():h.currentYear>h.config.maxDate.getFullYear()))}function he(e){return h.selectedDates.map((function(t){return h.formatDate(t,e)})).filter((function(e,t,n){return"range"!==h.config.mode||h.config.enableTime||n.indexOf(e)===t})).join("range"!==h.config.mode?h.config.conjunction:h.l10n.rangeSeparator)}function ve(e){void 0===e&&(e=!0),void 0!==h.mobileInput&&h.mobileFormatStr&&(h.mobileInput.value=void 0!==h.latestSelectedDateObj?h.formatDate(h.latestSelectedDateObj,h.mobileFormatStr):""),h.input.value=he(h.config.dateFormat),void 0!==h.altInput&&(h.altInput.value=he(h.config.altFormat)),!1!==e&&fe("onValueUpdate")}function De(e){var t=h.prevMonthNav.contains(e.target),n=h.nextMonthNav.contains(e.target);t||n?$(t?-1:1):h.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?h.changeYear(h.currentYear+1):e.target.classList.contains("arrowDown")&&h.changeYear(h.currentYear-1)}return function(){h.element=h.input=f,h.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e({},g,JSON.parse(JSON.stringify(f.dataset||{}))),o={};h.config.parseDate=i.parseDate,h.config.formatDate=i.formatDate,Object.defineProperty(h.config,"enable",{get:function(){return h.config._enable},set:function(e){h.config._enable=ue(e)}}),Object.defineProperty(h.config,"disable",{get:function(){return h.config._disable},set:function(e){h.config._disable=ue(e)}});var r="time"===i.mode;if(!i.dateFormat&&(i.enableTime||r)){var c=y.defaultConfig.dateFormat||n.dateFormat;o.dateFormat=i.noCalendar||r?"H:i"+(i.enableSeconds?":S":""):c+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||r)&&!i.altFormat){var d=y.defaultConfig.altFormat||n.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):d+" h:i"+(i.enableSeconds?":S":"")+" K"}i.altInputClass||(h.config.altInputClass=h.input.className+" "+h.config.altInputClass),Object.defineProperty(h.config,"minDate",{get:function(){return h.config._minDate},set:ae("min")}),Object.defineProperty(h.config,"maxDate",{get:function(){return h.config._maxDate},set:ae("max")});var s=function(e){return function(t){h.config["min"===e?"_minTime":"_maxTime"]=h.parseDate(t,"H:i:S")}};Object.defineProperty(h.config,"minTime",{get:function(){return h.config._minTime},set:s("min")}),Object.defineProperty(h.config,"maxTime",{get:function(){return h.config._maxTime},set:s("max")}),"time"===i.mode&&(h.config.noCalendar=!0,h.config.enableTime=!0),Object.assign(h.config,o,i);for(var u=0;u<a.length;u++)h.config[a[u]]=!0===h.config[a[u]]||"true"===h.config[a[u]];for(t.filter((function(e){return void 0!==h.config[e]})).forEach((function(e){h.config[e]=l(h.config[e]||[]).map(C)})),h.isMobile=!h.config.disableMobile&&!h.config.inline&&"single"===h.config.mode&&!h.config.disable.length&&!h.config.enable.length&&!h.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),u=0;u<h.config.plugins.length;u++){var m=h.config.plugins[u](h)||{};for(var p in m)t.indexOf(p)>-1?h.config[p]=l(m[p]).map(C).concat(h.config[p]):void 0===i[p]&&(h.config[p]=m[p])}fe("onParseConfig")}(),ie(),h.input=h.config.wrap?f.querySelector("[data-input]"):f,h.input?(h.input._type=h.input.type,h.input.type="text",h.input.classList.add("flatpickr-input"),h._input=h.input,h.config.altInput&&(h.altInput=d(h.input.nodeName,h.config.altInputClass),h._input=h.altInput,h.altInput.placeholder=h.input.placeholder,h.altInput.disabled=h.input.disabled,h.altInput.required=h.input.required,h.altInput.tabIndex=h.input.tabIndex,h.altInput.type="text",h.input.setAttribute("type","hidden"),!h.config.static&&h.input.parentNode&&h.input.parentNode.insertBefore(h.altInput,h.input.nextSibling)),h.config.allowInput||h._input.setAttribute("readonly","readonly"),h._positionElement=h.config.positionElement||h._input):h.config.errorHandler(new Error("Invalid input element specified")),function(){h.selectedDates=[],h.now=h.parseDate(h.config.now)||new Date;var e=h.config.defaultDate||("INPUT"!==h.input.nodeName&&"TEXTAREA"!==h.input.nodeName||!h.input.placeholder||h.input.value!==h.input.placeholder?h.input.value:null);e&&se(e,h.config.dateFormat),h._initialDate=h.selectedDates.length>0?h.selectedDates[0]:h.config.minDate&&h.config.minDate.getTime()>h.now.getTime()?h.config.minDate:h.config.maxDate&&h.config.maxDate.getTime()<h.now.getTime()?h.config.maxDate:h.now,h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth(),h.selectedDates.length>0&&(h.latestSelectedDateObj=h.selectedDates[0]),void 0!==h.config.minTime&&(h.config.minTime=h.parseDate(h.config.minTime,"H:i")),void 0!==h.config.maxTime&&(h.config.maxTime=h.parseDate(h.config.maxTime,"H:i")),h.minDateHasTime=!!h.config.minDate&&(h.config.minDate.getHours()>0||h.config.minDate.getMinutes()>0||h.config.minDate.getSeconds()>0),h.maxDateHasTime=!!h.config.maxDate&&(h.config.maxDate.getHours()>0||h.config.maxDate.getMinutes()>0||h.config.maxDate.getSeconds()>0),Object.defineProperty(h,"showTimeInput",{get:function(){return h._showTimeInput},set:function(e){h._showTimeInput=e,h.calendarContainer&&c(h.calendarContainer,"showTimeInput",e),h.isOpen&&oe()}})}(),h.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=h.currentMonth),void 0===t&&(t=h.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:h.l10n.daysInMonth[e]}},h.isMobile||function(){var e=window.document.createDocumentFragment();if(h.calendarContainer=d("div","flatpickr-calendar"),h.calendarContainer.tabIndex=-1,!h.config.noCalendar){if(e.appendChild((h.monthNav=d("div","flatpickr-months"),h.yearElements=[],h.monthElements=[],h.prevMonthNav=d("span","flatpickr-prev-month"),h.prevMonthNav.innerHTML=h.config.prevArrow,h.nextMonthNav=d("span","flatpickr-next-month"),h.nextMonthNav.innerHTML=h.config.nextArrow,K(),Object.defineProperty(h,"_hidePrevMonthArrow",{get:function(){return h.__hidePrevMonthArrow},set:function(e){h.__hidePrevMonthArrow!==e&&(c(h.prevMonthNav,"flatpickr-disabled",e),h.__hidePrevMonthArrow=e)}}),Object.defineProperty(h,"_hideNextMonthArrow",{get:function(){return h.__hideNextMonthArrow},set:function(e){h.__hideNextMonthArrow!==e&&(c(h.nextMonthNav,"flatpickr-disabled",e),h.__hideNextMonthArrow=e)}}),h.currentYearElement=h.yearElements[0],pe(),h.monthNav)),h.innerContainer=d("div","flatpickr-innerContainer"),h.config.weekNumbers){var t=function(){h.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",h.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;h.innerContainer.appendChild(n),h.weekNumbers=a,h.weekWrapper=n}h.rContainer=d("div","flatpickr-rContainer"),h.rContainer.appendChild(U()),h.daysContainer||(h.daysContainer=d("div","flatpickr-days"),h.daysContainer.tabIndex=-1),R(),h.rContainer.appendChild(h.daysContainer),h.innerContainer.appendChild(h.rContainer),e.appendChild(h.innerContainer)}h.config.enableTime&&e.appendChild(function(){h.calendarContainer.classList.add("hasTime"),h.config.noCalendar&&h.calendarContainer.classList.add("noCalendar"),h.timeContainer=d("div","flatpickr-time"),h.timeContainer.tabIndex=-1;var e=d("span","flatpickr-time-separator",":"),t=u("flatpickr-hour",{"aria-label":h.l10n.hourAriaLabel});h.hourElement=t.getElementsByTagName("input")[0];var n=u("flatpickr-minute",{"aria-label":h.l10n.minuteAriaLabel});if(h.minuteElement=n.getElementsByTagName("input")[0],h.hourElement.tabIndex=h.minuteElement.tabIndex=-1,h.hourElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getHours():h.config.time_24hr?h.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(h.config.defaultHour)),h.minuteElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getMinutes():h.config.defaultMinute),h.hourElement.setAttribute("step",h.config.hourIncrement.toString()),h.minuteElement.setAttribute("step",h.config.minuteIncrement.toString()),h.hourElement.setAttribute("min",h.config.time_24hr?"0":"1"),h.hourElement.setAttribute("max",h.config.time_24hr?"23":"12"),h.minuteElement.setAttribute("min","0"),h.minuteElement.setAttribute("max","59"),h.timeContainer.appendChild(t),h.timeContainer.appendChild(e),h.timeContainer.appendChild(n),h.config.time_24hr&&h.timeContainer.classList.add("time24hr"),h.config.enableSeconds){h.timeContainer.classList.add("hasSeconds");var a=u("flatpickr-second");h.secondElement=a.getElementsByTagName("input")[0],h.secondElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getSeconds():h.config.defaultSeconds),h.secondElement.setAttribute("step",h.minuteElement.getAttribute("step")),h.secondElement.setAttribute("min","0"),h.secondElement.setAttribute("max","59"),h.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),h.timeContainer.appendChild(a)}return h.config.time_24hr||(h.amPM=d("span","flatpickr-am-pm",h.l10n.amPM[o((h.latestSelectedDateObj?h.hourElement.value:h.config.defaultHour)>11)]),h.amPM.title=h.l10n.toggleTitle,h.amPM.tabIndex=-1,h.timeContainer.appendChild(h.amPM)),h.timeContainer}()),c(h.calendarContainer,"rangeMode","range"===h.config.mode),c(h.calendarContainer,"animate",!0===h.config.animate),c(h.calendarContainer,"multiMonth",h.config.showMonths>1),h.calendarContainer.appendChild(e);var r=void 0!==h.config.appendTo&&void 0!==h.config.appendTo.nodeType;if((h.config.inline||h.config.static)&&(h.calendarContainer.classList.add(h.config.inline?"inline":"static"),h.config.inline&&(!r&&h.element.parentNode?h.element.parentNode.insertBefore(h.calendarContainer,h._input.nextSibling):void 0!==h.config.appendTo&&h.config.appendTo.appendChild(h.calendarContainer)),h.config.static)){var l=d("div","flatpickr-wrapper");h.element.parentNode&&h.element.parentNode.insertBefore(l,h.element),l.appendChild(h.element),h.altInput&&l.appendChild(h.altInput),l.appendChild(h.calendarContainer)}h.config.static||h.config.inline||(void 0!==h.config.appendTo?h.config.appendTo:window.document.body).appendChild(h.calendarContainer)}(),function(){if(h.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(h.element.querySelectorAll("[data-"+e+"]"),(function(t){return O(t,"click",h[e])}))})),h.isMobile)!function(){var e=h.config.enableTime?h.config.noCalendar?"time":"datetime-local":"date";h.mobileInput=d("input",h.input.className+" flatpickr-mobile"),h.mobileInput.step=h.input.getAttribute("step")||"any",h.mobileInput.tabIndex=1,h.mobileInput.type=e,h.mobileInput.disabled=h.input.disabled,h.mobileInput.required=h.input.required,h.mobileInput.placeholder=h.input.placeholder,h.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",h.selectedDates.length>0&&(h.mobileInput.defaultValue=h.mobileInput.value=h.formatDate(h.selectedDates[0],h.mobileFormatStr)),h.config.minDate&&(h.mobileInput.min=h.formatDate(h.config.minDate,"Y-m-d")),h.config.maxDate&&(h.mobileInput.max=h.formatDate(h.config.maxDate,"Y-m-d")),h.input.type="hidden",void 0!==h.altInput&&(h.altInput.type="hidden");try{h.input.parentNode&&h.input.parentNode.insertBefore(h.mobileInput,h.input.nextSibling)}catch(e){}O(h.mobileInput,"change",(function(e){h.setDate(e.target.value,!1,h.mobileFormatStr),fe("onChange"),fe("onClose")}))}();else{var e=r(te,50);h._debouncedChange=r(F,300),h.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&O(h.daysContainer,"mouseover",(function(e){"range"===h.config.mode&&ee(e.target)})),O(window.document.body,"keydown",X),h.config.inline||h.config.static||O(window,"resize",e),void 0!==window.ontouchstart?O(window.document,"touchstart",G):O(window.document,"mousedown",_(G)),O(window.document,"focus",G,{capture:!0}),!0===h.config.clickOpens&&(O(h._input,"focus",h.open),O(h._input,"mousedown",_(h.open))),void 0!==h.daysContainer&&(O(h.monthNav,"mousedown",_(De)),O(h.monthNav,["keyup","increment"],S),O(h.daysContainer,"mousedown",_(ce))),void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&(O(h.timeContainer,["increment"],x),O(h.timeContainer,"blur",x,{capture:!0}),O(h.timeContainer,"mousedown",_(P)),O([h.hourElement,h.minuteElement],["focus","click"],(function(e){return e.target.select()})),void 0!==h.secondElement&&O(h.secondElement,"focus",(function(){return h.secondElement&&h.secondElement.select()})),void 0!==h.amPM&&O(h.amPM,"mousedown",_((function(e){x(e),F()}))))}}(),(h.selectedDates.length||h.config.noCalendar)&&(h.config.enableTime&&T(h.config.noCalendar?h.latestSelectedDateObj||h.config.minDate:void 0),ve(!1)),M(),h.showTimeInput=h.selectedDates.length>0||h.config.noCalendar;var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!h.isMobile&&a&&oe(),fe("onReady")}(),h}function M(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=C(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},i=0,o=t;i<o.length;i++){var r=o[i];a(r)}return e}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return M(this,e)},HTMLElement.prototype.flatpickr=function(e){return M([this],e)});var y=function(e,t){return"string"==typeof e?M(window.document.querySelectorAll(e),t):e instanceof Node?M([e],t):M(e,t)};return y.defaultConfig={},y.l10ns={en:e({},a),default:e({},a)},y.localize=function(t){y.l10ns.default=e({},y.l10ns.default,t)},y.setDefaults=function(t){y.defaultConfig=e({},y.defaultConfig,t)},y.parseDate=D({}),y.formatDate=v({}),y.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return M(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=y),y},"object"==typeof n&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):(a=a||self).flatpickr=i()},n 394: function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});const a=n(1);n(67),a.__importStar(n(66)).styles.append(‘.flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n background: #fff;\n -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);\n box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #e6e6e6;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: \’\’;\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #fff;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #fff;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n background: transparent;\n color: rgba(0, 0, 0, 0.9);\n fill: rgba(0, 0, 0, 0.9);\n height: 34px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0;\n height: 34px;\n padding: 10px;\n z-index: 3;\n color: rgba(0, 0, 0, 0.9);\n fill: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,\n.flatpickr-months .flatpickr-next-month.flatpickr-disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n /\n /*rtl:begin:ignore/\n /\n */\n left: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n /\n /*rtl:begin:ignore/\n /\n */\n right: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #959ea9;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(57, 57, 57, 0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0, 0, 0, 0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: "";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(57, 57, 57, 0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(57, 57, 57, 0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(0, 0, 0, 0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 7.48px 0 0 0;\n line-height: 1;\n height: 34px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: rgba(0, 0, 0, 0.9);\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(0, 0, 0, 0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months {\n appearance: menulist;\n background: transparent;\n border: none;\n border-radius: 0;\n box-sizing: border-box;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n height: auto;\n line-height: inherit;\n margin: -1px 0 0 0;\n outline: none;\n padding: 0 0 0 0.5ch;\n position: relative;\n vertical-align: initial;\n -webkit-box-sizing: border-box;\n -webkit-appearance: menulist;\n -moz-appearance: menulist;\n width: auto;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:focus,\n.flatpickr-current-month .flatpickr-monthDropdown-months:active {\n outline: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {\n background-color: transparent;\n outline: none;\n padding: 0;\n}\n.flatpickr-weekdays {\n background: transparent;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: transparent;\n color: rgba(0, 0, 0, 0.54);\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #e6e6e6;\n box-shadow: -1px 0 0 #e6e6e6;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #393939;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e6e6e6;\n border-color: #e6e6e6;\n}\n.flatpickr-day.today {\n border-color: #959ea9;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #959ea9;\n background: #959ea9;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #569ff7;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #569ff7;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #569ff7;\n box-shadow: -10px 0 0 #569ff7;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(57, 57, 57, 0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover {\n cursor: not-allowed;\n color: rgba(57, 57, 57, 0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n -webkit-box-shadow: 1px 0 0 #e6e6e6;\n box-shadow: 1px 0 0 #e6e6e6;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(57, 57, 57, 0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-time:after {\n content: "";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #393939;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #393939;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #393939;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n float: left;\n line-height: inherit;\n color: #393939;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eee;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n.flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n -webkit-box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);\n box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #eceef1;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-innerContainer {\n border-bottom: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n border: 1px solid #eceef1;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: \’\’;\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #eceef1;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #eceef1;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #eceef1;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #eceef1;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n border-radius: 5px 5px 0 0;\n background: #eceef1;\n color: #5a6171;\n fill: #5a6171;\n height: 34px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0;\n height: 34px;\n padding: 10px;\n z-index: 3;\n color: #5a6171;\n fill: #5a6171;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,\n.flatpickr-months .flatpickr-next-month.flatpickr-disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n /\n /*rtl:begin:ignore/\n /\n */\n left: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n /\n /*rtl:begin:ignore/\n /\n */\n right: 0;\n /\n /rtl:end:ignore/\n /\n */\n}\n/\n /rtl:begin:ignore/\n/\n /*rtl:end:ignore/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #bbb;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(72, 72, 72, 0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0, 0, 0, 0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: "";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(72, 72, 72, 0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(72, 72, 72, 0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(90, 97, 113, 0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 7.48px 0 0 0;\n line-height: 1;\n height: 34px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: #5a6171;\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: #5a6171;\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(90, 97, 113, 0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months {\n appearance: menulist;\n background: #eceef1;\n border: none;\n border-radius: 0;\n box-sizing: border-box;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n height: auto;\n line-height: inherit;\n margin: -1px 0 0 0;\n outline: none;\n padding: 0 0 0 0.5ch;\n position: relative;\n vertical-align: initial;\n -webkit-box-sizing: border-box;\n -webkit-appearance: menulist;\n -moz-appearance: menulist;\n width: auto;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:focus,\n.flatpickr-current-month .flatpickr-monthDropdown-months:active {\n outline: none;\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {\n background-color: #eceef1;\n outline: none;\n padding: 0;\n}\n.flatpickr-weekdays {\n background: #eceef1;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: #eceef1;\n color: #5a6171;\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n border-left: 1px solid #eceef1;\n border-right: 1px solid #eceef1;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #eceef1;\n box-shadow: -1px 0 0 #eceef1;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #484848;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e2e2e2;\n border-color: #e2e2e2;\n}\n.flatpickr-day.today {\n border-color: #bbb;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #bbb;\n background: #bbb;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #ff5a5f;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #ff5a5f;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #ff5a5f;\n box-shadow: -10px 0 0 #ff5a5f;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;\n box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(72, 72, 72, 0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.flatpickr-disabled,\n.flatpickr-day.flatpickr-disabled:hover {\n cursor: not-allowed;\n color: rgba(72, 72, 72, 0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;\n box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n border-left: 1px solid #eceef1;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(72, 72, 72, 0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n background: #fff;\n border-bottom: 1px solid #eceef1;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n background: #fff;\n border-radius: 0 0 5px 5px;\n}\n.flatpickr-time:after {\n content: "";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #484848;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #484848;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #484848;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n float: left;\n line-height: inherit;\n color: #484848;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eaeaea;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\nspan.flatpickr-day.selected {\n font-weight: bold;\n}\n’)},n 395: function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e(1).__importDefault(e(157)),r=e(396);class n extends r.AbstractRangeSliderView{}a.DateRangeSliderView=n,n.__name__="DateRangeSliderView";class d extends r.AbstractSlider{constructor(e){super(e),this.behaviour="drag",this.connected=[!1,!0,!1]}static init_DateRangeSlider(){this.prototype.default_view=n,this.override({format:"%d %b %Y"})}_formatter(e,t){return i.default(e,t)}}a.DateRangeSlider=d,d.__name__="DateRangeSlider",d.init_DateRangeSlider()},n 396: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),l=i.__importStar(e(397)),r=i.__importStar(e(19)),o=e(66),n=e(9),a=e(379),d=e(398),h="bk-noUi-";class _ extends a.ControlView{get noUiSlider(){return this.slider_el.noUiSlider}initialize(){super.initialize()}connect_signals(){super.connect_signals();const{direction:e,orientation:t,tooltips:s}=this.model.properties;this.on_change([e,t,s],()=>this.render());const{start:i,end:l,value:r,step:o,title:n}=this.model.properties;this.on_change([i,l,r,o],()=>{const{start:e,end:t,value:s,step:i}=this._calc_to();this.noUiSlider.updateOptions({range:{min:e,max:t},start:s,step:i})});const{bar_color:a}=this.model.properties;this.on_change(a,()=>{this._set_bar_color()});const{show_value:d}=this.model.properties;this.on_change([r,n,d],()=>this._update_title())}_update_title(){o.empty(this.title_el);const e=null==this.model.title||0==this.model.title.length&&!this.model.show_value;if(this.title_el.style.display=e?"none":"",!e&&(0!=this.model.title.length&&(this.title_el.textContent=`${this.model.title}: ),this.model.show_value)){const{value:e}=this._calc_to(),t=e.map(e=>this.model.pretty(e)).join(" .. ");this.title_el.appendChild(o.span({class:d.bk_slider_value},t))}}_set_bar_color(){if(!this.model.disabled){this.slider_el.querySelector(.${h}connect`).style.backgroundColor=this.model.bar_color}}_keypress_handle(e,t=0){const{start:s,value:i,end:l,step:r}=this._calc_to(),o=2==i.length;let n=s,a=l;switch(o&&0==t?a=i[1]:o&&1==t&&(n=i[0]),e.which){case 37:i[t]=Math.max(i[t]-r,n);break;case 39:i[t]=Math.min(i[t]+r,a);break;default:return}this.model.value=o?i:i[0],this.model.properties.value.change.emit(),this.model.value_throttled=this.model.value,this.noUiSlider.set(i)}render(){super.render();const{start:e,end:t,value:s,step:i}=this._calc_to();let r;if(this.model.tooltips){const e={to:e=>this.model.pretty(e)};r=n.repeat(e,s.length)}else r=!1;if(null==this.slider_el){this.slider_el=o.div(),l.create(this.slider_el,{cssPrefix:h,range:{min:e,max:t},start:s,step:i,behaviour:this.model.behaviour,connect:this.model.connected,tooltips:r,orientation:this.model.orientation,direction:this.model.direction}),this.noUiSlider.on("slide",(e,t,s)=>this._slide(s)),this.noUiSlider.on("change",(e,t,s)=>this._change(s)),this._set_keypress_handles();const n=(e,t)=>{if(!r)return;this.slider_el.querySelectorAll(.${h}handle)[e].querySelector(.${h}tooltip).style.display=t?"block":""};this.noUiSlider.on("start",(e,t)=>n(t,!0)),this.noUiSlider.on("end",(e,t)=>n(t,!1))}else this.noUiSlider.updateOptions({range:{min:e,max:t},start:s,step:i});this._set_bar_color(),this.model.disabled?this.slider_el.setAttribute("disabled","true"):this.slider_el.removeAttribute("disabled"),this.title_el=o.div({class:d.bk_slider_title}),this._update_title(),this.group_el=o.div({class:d.bk_input_group},this.title_el,this.slider_el),this.el.appendChild(this.group_el)}_slide(e){this.model.value=this._calc_from(e)}_change(e){this.model.value=this._calc_from(e),this.model.value_throttled=this.model.value}}_.__name__="AbstractBaseSliderView";class c extends _{_calc_to(){return{start:this.model.start,end:this.model.end,value:[this.model.value],step:this.model.step}}_calc_from([e]){return Number.isInteger(this.model.start)&&Number.isInteger(this.model.end)&&Number.isInteger(this.model.step)?Math.round(e):e}_set_keypress_handles(){const e=this.slider_el.querySelector(.${h}handle);e.setAttribute("tabindex","0"),e.addEventListener("keydown",e=>this._keypress_handle(e))}}s.AbstractSliderView=c,c.__name__="AbstractSliderView";class u extends _{_calc_to(){return{start:this.model.start,end:this.model.end,value:this.model.value,step:this.model.step}}_calc_from(e){return e}_set_keypress_handles(){const e=this.slider_el.querySelector(.${h}handle-lower),t=this.slider_el.querySelector(.${h}handle-upper);e.setAttribute("tabindex","0"),e.addEventListener("keydown",e=>this._keypress_handle(e,0)),t.setAttribute("tabindex","1"),t.addEventListener("keydown",e=>this._keypress_handle(e,1))}}s.AbstractRangeSliderView=u,u.__name__="AbstractRangeSliderView";class m extends a.Control{constructor(e){super(e),this.connected=!1}static init_AbstractSlider(){this.define({title:[r.String,""],show_value:[r.Boolean,!0],start:[r.Any],end:[r.Any],value:[r.Any],value_throttled:[r.Any],step:[r.Number,1],format:[r.Any],direction:[r.Any,"ltr"],tooltips:[r.Boolean,!0],bar_color:[r.Color,"#e6e6e6"]})}_formatter(e,t){return`${e}`}pretty(e){return this._formatter(e,this.format)}}s.AbstractSlider=m,m.__name__="AbstractSlider",m.init_AbstractSlider()},n 397: function _(t,e,r){n /! nouislider - 10.1.0 - 2017-07-28 17:11:18 */var n;n=function(){"use strict";var t="10.1.0";function e(t){t.preventDefault()}function r(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function n(t,e,r){r>0&&(s(t,e),setTimeout((function(){a(t,e)}),r))}function i(t){return Array.isArray(t)?t:[t]}function o(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function s(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function a(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function l(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:r?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:r?t.documentElement.scrollTop:t.body.scrollTop}}function u(t,e){return 100/(e-t)}function c(t,e){return 100*e/(t[1]-t[0])}function p(t,e){for(var r=1;t>=e[r];)r+=1;return r}function f(t,e,r){if(r>=t.slice(-1)[0])return 100;var n,i,o,s,a=p(r,t);return n=t[a-1],i=t[a],o=e[a-1],s=e[a],o+function(t,e){return c(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}([n,i],r)/u(o,s)}function d(t,e,r,n){if(100===n)return n;var i,o,s=p(n,t);return r?n-(i=t[s-1])>((o=t[s])-i)/2?o:i:e[s-1]?t[s-1]+function(t,e){return Math.round(t/e)*e}(n-t[s-1],e[s-1]):n}function h(t,e,n){var i;if("number"==typeof e&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(e))throw new Error("noUiSlider (10.1.0): ‘range’ contains invalid value.");if(!r(i="min"===t?0:"max"===t?100:parseFloat(t))||!r(e[0]))throw new Error("noUiSlider (10.1.0): ‘range’ value isn’t numeric.");n.xPct.push(i),n.xVal.push(e[0]),i?n.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(n.xSteps[0]=e[1]),n.xHighestCompleteStep.push(0)}function m(t,e,r){if(!e)return!0;r.xSteps[t]=c([r.xVal[t],r.xVal[t+1]],e)/u(r.xPct[t],r.xPct[t+1]);var n=(r.xVal[t+1]-r.xVal[t])/r.xNumSteps[t],i=Math.ceil(Number(n.toFixed(3))-1),o=r.xVal[t]+r.xNumSteps[t]*i;r.xHighestCompleteStep[t]=o}function g(t,e,r){this.xPct=[],this.xVal=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var n,i=[];for(n in t)t.hasOwnProperty(n)&&i.push([t[n],n]);for(i.length&&"object"==typeof i[0][0]?i.sort((function(t,e){return t[0][0]-e[0][0]})):i.sort((function(t,e){return t[0]-e[0]})),n=0;n<i.length;n++)h(i[n][1],i[n][0],this);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)m(n,this.xNumSteps[n],this)}g.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!=0)throw new Error("noUiSlider (10.1.0): ‘limit’, ‘margin’ and ‘padding’ must be divisible by step.");return 2===this.xPct.length&&c(this.xVal,t)},g.prototype.toStepping=function(t){return t=f(this.xVal,this.xPct,t)},g.prototype.fromStepping=function(t){return function(t,e,r){if(r>=100)return t.slice(-1)[0];var n,i=p(r,e);return function(t,e){return e*(t[1]-t[0])/100+t[0]}([t[i-1],t[i]],(r-(n=e[i-1]))*u(n,e[i]))}(this.xVal,this.xPct,t)},g.prototype.getStep=function(t){return t=d(this.xPct,this.xSteps,this.snap,t)},g.prototype.getNearbySteps=function(t){var e=p(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},g.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(o);return Math.max.apply(null,t)},g.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var v={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};function b(t){if(function(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}(t))return!0;throw new Error("noUiSlider (10.1.0): ‘format’ requires ‘to’ and ‘from’ methods.")}function S(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘step’ is not numeric.");t.singleStep=e}function w(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider (10.1.0): ‘range’ is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider (10.1.0): Missing ‘min’ or ‘max’ in ‘range’.");if(e.min===e.max)throw new Error("noUiSlider (10.1.0): ‘range’ ‘min’ and ‘max’ cannot be equal.");t.spectrum=new g(e,t.snap,t.singleStep)}function x(t,e){if(e=i(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider (10.1.0): ‘start’ option is incorrect.");t.handles=e.length,t.start=e}function y(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘snap’ option must be a boolean.")}function E(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘animate’ option must be a boolean.")}function C(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘animationDuration’ option must be a number.")}function N(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider (10.1.0): ‘connect’ option doesn’t match handle count.");n=e}t.connect=n}function U(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider (10.1.0): ‘orientation’ option is invalid.")}}function P(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘margin’ option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider (10.1.0): ‘margin’ option is only supported on linear sliders.")}function A(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘limit’ option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit||t.handles<2)throw new Error("noUiSlider (10.1.0): ‘limit’ option is only supported on linear sliders with 2 or more handles.")}function M(t,e){if(!r(e))throw new Error("noUiSlider (10.1.0): ‘padding’ option must be numeric.");if(0!==e){if(t.padding=t.spectrum.getMargin(e),!t.padding)throw new Error("noUiSlider (10.1.0): ‘padding’ option is only supported on linear sliders.");if(t.padding<0)throw new Error("noUiSlider (10.1.0): ‘padding’ option must be a positive number.");if(t.padding>=50)throw new Error("noUiSlider (10.1.0): ‘padding’ option must be less than half the range.")}}function O(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider (10.1.0): ‘direction’ option was not recognized.")}}function k(t,e){if("string"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘behaviour’ must be a string containing options.");var r=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider (10.1.0): ‘fixed’ behaviour must be used with 2 handles");P(t,t.start[1]-t.start[0])}t.events={tap:r||o,drag:n,fixed:i,snap:o,hover:s}}function V(t,e){if(t.multitouch=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘multitouch’ option must be a boolean.")}function F(t,e){if(!1!==e)if(!0===e){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(!0)}else{if(t.tooltips=i(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider (10.1.0): must pass a formatter for all handles.");t.tooltips.forEach((function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider (10.1.0): ‘tooltips’ must be passed a formatter or ‘false’.")}))}}function L(t,e){t.ariaFormat=e,b(e)}function z(t,e){t.format=e,b(e)}function j(t,e){if(void 0!==e&&"string"!=typeof e&&!1!==e)throw new Error("noUiSlider (10.1.0): ‘cssPrefix’ must be a string or `false`.");t.cssPrefix=e}function H(t,e){if(void 0!==e&&"object"!=typeof e)throw new Error("noUiSlider (10.1.0): ‘cssClasses’ must be an object.");if("string"==typeof t.cssPrefix)for(var r in t.cssClasses={},e)e.hasOwnProperty(r)&&(t.cssClasses[r]=t.cssPrefix+e[r]);else t.cssClasses=e}function D(t,e){if(!0!==e&&!1!==e)throw new Error("noUiSlider (10.1.0): ‘useRequestAnimationFrame’ option should be true (default) or false.");t.useRequestAnimationFrame=e}function q(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:v,format:v},r={step:{r:!1,t:S},start:{r:!0,t:x},connect:{r:!0,t:N},direction:{r:!0,t:O},snap:{r:!1,t:y},animate:{r:!1,t:E},animationDuration:{r:!1,t:C},range:{r:!0,t:w},orientation:{r:!1,t:U},margin:{r:!1,t:P},limit:{r:!1,t:A},padding:{r:!1,t:M},behaviour:{r:!0,t:k},multitouch:{r:!0,t:V},ariaFormat:{r:!1,t:L},format:{r:!1,t:z},tooltips:{r:!1,t:F},cssPrefix:{r:!1,t:j},cssClasses:{r:!1,t:H},useRequestAnimationFrame:{r:!1,t:D}},n={connect:!1,direction:"ltr",behaviour:"tap",multitouch:!1,orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(r).forEach((function(i){if(void 0===t[i]&&void 0===n[i]){if(r[i].r)throw new Error("noUiSlider (10.1.0): ‘"+i+"’ is required.");return!0}r[i].t(e,void 0===t[i]?n[i]:t[i])})),e.pips=t.pips;var i=[["left","top"],["right","bottom"]];return e.style=i[e.dir][e.ort],e.styleOposite=i[e.dir?0:1][e.ort],e}function T(t,r,o){var u,c,p,f,d,h,m,g=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},v=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),b=t,S=[],w=[],x=0,y=r.spectrum,E=[],C={},N=t.ownerDocument,U=N.documentElement,P=N.body;function A(t,e){var r=N.createElement("div");return e&&s(r,e),t.appendChild(r),r}function M(t,e){var n=A(t,r.cssClasses.origin),i=A(n,r.cssClasses.handle);return i.setAttribute("data-handle",e),i.setAttribute("tabindex","0"),i.setAttribute("role","slider"),i.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),0===e?s(i,r.cssClasses.handleLower):e===r.handles-1&&s(i,r.cssClasses.handleUpper),n}function O(t,e){return!!e&&A(t,r.cssClasses.connect)}function k(t,e){return!!r.tooltips[e]&&A(t.firstChild,r.cssClasses.tooltip)}function V(t,e,n){var i=N.createElement("div"),o=[r.cssClasses.valueNormal,r.cssClasses.valueLarge,r.cssClasses.valueSub],a=[r.cssClasses.markerNormal,r.cssClasses.markerLarge,r.cssClasses.markerSub],l=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],u=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];function c(t,e){var n=e===r.cssClasses.value,i=n?o:a;return e+" "+(n?l:u)[r.ort]+" "+i[t]}return s(i,r.cssClasses.pips),s(i,0===r.ort?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical),Object.keys(t).forEach((function(o){!function(t,o){o[1]=o[1]&&e?e(o[0],o[1]):o[1];var s=A(i,!1);s.className=c(o[1],r.cssClasses.marker),s.style[r.style]=t+"%",o[1]&&((s=A(i,!1)).className=c(o[1],r.cssClasses.value),s.style[r.style]=t+"%",s.innerText=n.to(o[0]))}(o,t[o])})),i}function F(){var t;d&&((t=d).parentElement.removeChild(t),d=null)}function L(t){F();var e=t.mode,r=t.density||1,n=t.filter||!1,i=function(t,e,r){if("range"===t||"steps"===t)return y.xVal;if("count"===t){if(!e)throw new Error("noUiSlider (10.1.0): ‘values’ required for mode ‘count’.");var n,i=100/(e-1),o=0;for(e=[];(n=o++*i)<=100;)e.push(n);t="positions"}return"positions"===t?e.map((function(t){return y.fromStepping(r?y.getStep(t):t)})):"values"===t?r?e.map((function(t){return y.fromStepping(y.getStep(y.toStepping(t)))})):e:void 0}(e,t.values||!1,t.stepped||!1),o=function(t,e,r){var n,i={},o=y.xVal[0],s=y.xVal[y.xVal.length-1],a=!1,l=!1,u=0;return n=r.slice().sort((function(t,e){return t-e})),(r=n.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==o&&(r.unshift(o),a=!0),r[r.length-1]!==s&&(r.push(s),l=!0),r.forEach((function(n,o){var s,c,p,f,d,h,m,g,v,b=n,S=r[o+1];if("steps"===e&&(s=y.xNumSteps[o]),s||(s=S-b),!1!==b&&void 0!==S)for(s=Math.max(s,1e-7),c=b;c<=S;c=(c+s).toFixed(7)/1){for(m=(d=(f=y.toStepping(c))-u)/t,v=d/(g=Math.round(m)),p=1;p<=g;p+=1)i[(u+p*v).toFixed(5)]=["x",0];h=r.indexOf(c)>-1?1:"steps"===e?2:0,!o&&a&&(h=0),c===S&&l||(i[f.toFixed(5)]=[c,h]),u=f}})),i}(r,e,i),s=t.format||{to:Math.round};return d=b.appendChild(V(o,n,s))}function z(){var t=u.getBoundingClientRect(),e="offset"+["Width","Height"][r.ort];return 0===r.ort?t.width||u[e]:t.height||u[e]}function j(t,e,n,i){var o=function(o){return!b.hasAttribute("disabled")&&(s=b,a=r.cssClasses.tap,!(s.classList?s.classList.contains(a):new RegExp("\\b"+a+"\\b").test(s.className))&&!!(o=function(t,e,n){var i,o,s=0===t.type.indexOf("touch"),a=0===t.type.indexOf("mouse"),u=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(u=!0),s&&r.multitouch){var c=function(t){return t.target===n||n.contains(t.target)};if("touchstart"===t.type){var p=Array.prototype.filter.call(t.touches,c);if(p.length>1)return!1;i=p[0].pageX,o=p[0].pageY}else{var f=Array.prototype.find.call(t.changedTouches,c);if(!f)return!1;i=f.pageX,o=f.pageY}}else if(s){if(t.touches.length>1)return!1;i=t.changedTouches[0].pageX,o=t.changedTouches[0].pageY}return e=e||l(N),(a||u)&&(i=t.clientX+e.x,o=t.clientY+e.y),t.pageOffset=e,t.points=[i,o],t.cursor=a||u,t}(o,i.pageOffset,i.target||e))&&!(t===g.start&&void 0!==o.buttons&&o.buttons>1)&&(!i.hover||!o.buttons)&&(v||o.preventDefault(),o.calcPoint=o.points[r.ort],void n(o,i)));var s,a},s=[];return t.split(" ").forEach((function(t){e.addEventListener(t,o,!!v&&{passive:!0}),s.push([t,o])})),s}function H(t){var e,n,i,o,s,a,c=100*(t-(e=u,n=r.ort,i=e.getBoundingClientRect(),o=e.ownerDocument,s=o.documentElement,a=l(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?i.top+a.y-s.clientTop:i.left+a.x-s.clientLeft))/z();return r.dir?100-c:c}function D(t,e,r,n){var i=r.slice(),o=[!t,t],s=[t,!t];n=n.slice(),t&&n.reverse(),n.length>1?n.forEach((function(t,r){var n=W(i,t,i[t]+e,o[r],s[r],!1);!1===n?e=0:(e=n-i[t],i[t]=n)})):o=s=[!0];var a=!1;n.forEach((function(t,n){a=J(t,r[t]+e,o[n],s[n])||a})),a&&n.forEach((function(t){T("update",t),T("slide",t)}))}function T(t,e,n){Object.keys(C).forEach((function(i){var o=i.split(".")[0];t===o&&C[i].forEach((function(t){t.call(f,E.map(r.format.to),e,E.slice(),n||!1,S.slice())}))}))}function R(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&B(t,e)}function X(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return B(t,e);var n=(r.dir?-1:1)*(t.calcPoint-e.startCalcPoint);D(n>0,100*n/e.baseSize,e.locations,e.handleNumbers)}function B(t,n){n.handle&&(a(n.handle,r.cssClasses.active),x-=1),n.listeners.forEach((function(t){U.removeEventListener(t[0],t[1])})),0===x&&(a(b,r.cssClasses.drag),G(),t.cursor&&(P.style.cursor="",P.removeEventListener("selectstart",e))),n.handleNumbers.forEach((function(t){T("change",t),T("set",t),T("end",t)}))}function Y(t,n){var i;if(1===n.handleNumbers.length){var o=c[n.handleNumbers[0]];if(o.hasAttribute("disabled"))return!1;i=o.children[0],x+=1,s(i,r.cssClasses.active)}t.stopPropagation();var a=[],l=j(g.move,U,X,{target:t.target,handle:i,listeners:a,startCalcPoint:t.calcPoint,baseSize:z(),pageOffset:t.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:t.buttons,locations:S.slice()}),u=j(g.end,U,B,{target:t.target,handle:i,listeners:a,handleNumbers:n.handleNumbers}),p=j("mouseout",U,R,{target:t.target,handle:i,listeners:a,handleNumbers:n.handleNumbers});a.push.apply(a,l.concat(u,p)),t.cursor&&(P.style.cursor=getComputedStyle(t.target).cursor,c.length>1&&s(b,r.cssClasses.drag),P.addEventListener("selectstart",e,!1)),n.handleNumbers.forEach((function(t){T("start",t)}))}function _(t){t.stopPropagation();var e=H(t.calcPoint),i=function(t){var e=100,r=!1;return c.forEach((function(n,i){if(!n.hasAttribute("disabled")){var o=Math.abs(S[i]-t);o<e&&(r=i,e=o)}})),r}(e);if(!1===i)return!1;r.events.snap||n(b,r.cssClasses.tap,r.animationDuration),J(i,e,!0,!0),G(),T("slide",i,!0),T("update",i,!0),T("change",i,!0),T("set",i,!0),r.events.snap&&Y(t,{handleNumbers:[i]})}function I(t){var e=H(t.calcPoint),r=y.getStep(e),n=y.fromStepping(r);Object.keys(C).forEach((function(t){"hover"===t.split(".")[0]&&C[t].forEach((function(t){t.call(f,n)}))}))}function W(t,e,n,i,o,s){var a;return c.length>1&&(i&&e>0&&(n=Math.max(n,t[e-1]+r.margin)),o&&e<c.length-1&&(n=Math.min(n,t[e+1]-r.margin))),c.length>1&&r.limit&&(i&&e>0&&(n=Math.min(n,t[e-1]+r.limit)),o&&e<c.length-1&&(n=Math.max(n,t[e+1]-r.limit))),r.padding&&(0===e&&(n=Math.max(n,r.padding)),e===c.length-1&&(n=Math.min(n,100-r.padding))),n=y.getStep(n),a=n,!((n=Math.max(Math.min(a,100),0))===t[e]&&!s)&&n}function $(t){return t+"%"}function G(){w.forEach((function(t){var e=S[t]>50?-1:1,r=3+(c.length+e*t);c[t].childNodes[0].style.zIndex=r}))}function J(t,e,n,i){return!1!==(e=W(S,t,e,n,i,!1))&&(function(t,e){S[t]=e,E[t]=y.fromStepping(e);var n=function(){c[t].style[r.style]=$(e),K(t),K(t+1)};window.requestAnimationFrame&&r.useRequestAnimationFrame?window.requestAnimationFrame(n):n()}(t,e),!0)}function K(t){if(p[t]){var e=0,n=100;0!==t&&(e=S[t-1]),t!==p.length-1&&(n=S[t]),p[t].style[r.style]=$(e),p[t].style[r.styleOposite]=$(100-n)}}function Q(t,e){null!==t&&!1!==t&&("number"==typeof t&&(t=String(t)),!1===(t=r.format.from(t))||isNaN(t)||J(e,y.toStepping(t),!1,!1))}function Z(t,e){var o=i(t),s=void 0===S[0];e=void 0===e||!!e,o.forEach(Q),r.animate&&!s&&n(b,r.cssClasses.tap,r.animationDuration),w.forEach((function(t){J(t,S[t],!0,!1)})),G(),w.forEach((function(t){T("update",t),null!==o[t]&&e&&T("set",t)}))}function tt(){var t=E.map(r.format.to);return 1===t.length?t[0]:t}function et(t,e){C[t]=C[t]||[],C[t].push(e),"update"===t.split(".")[0]&&c.forEach((function(t,e){T("update",e)}))}if(b.noUiSlider)throw new Error("noUiSlider (10.1.0): Slider was already initialized.");return function(t){s(t,r.cssClasses.target),0===r.dir?s(t,r.cssClasses.ltr):s(t,r.cssClasses.rtl),0===r.ort?s(t,r.cssClasses.horizontal):s(t,r.cssClasses.vertical),u=A(t,r.cssClasses.base)}(b),function(t,e){c=[],(p=[]).push(O(e,t[0]));for(var n=0;n<r.handles;n++)c.push(M(e,n)),w[n]=n,p.push(O(e,t[n+1]))}(r.connect,u),f={destroy:function(){for(var t in r.cssClasses)r.cssClasses.hasOwnProperty(t)&&a(b,r.cssClasses[t]);for(;b.firstChild;)b.removeChild(b.firstChild);delete b.noUiSlider},steps:function(){return S.map((function(t,e){var r=y.getNearbySteps(t),n=E[e],i=r.thisStep.step,o=null;!1!==i&&n+i>r.stepAfter.startValue&&(i=r.stepAfter.startValue-n),o=n>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&n-r.stepBefore.highestStep,100===t?i=null:0===t&&(o=null);var s=y.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(s))),null!==o&&!1!==o&&(o=Number(o.toFixed(s))),[o,i]}))},on:et,off:function(t){var e=t&&t.split(".")[0],r=e&&t.substring(e.length);Object.keys(C).forEach((function(t){var n=t.split(".")[0],i=t.substring(n.length);e&&e!==n||r&&r!==i||delete C[t]}))},get:tt,set:Z,reset:function(t){Z(r.start,t)},__moveHandles:function(t,e,r){D(t,e,S,r)},options:o,updateOptions:function(t,e){var n=tt(),i=["margin","limit","padding","range","animate","snap","step","format"];i.forEach((function(e){void 0!==t[e]&&(o[e]=t[e])}));var s=q(o);i.forEach((function(e){void 0!==t[e]&&(r[e]=s[e])})),y=s.spectrum,r.margin=s.margin,r.limit=s.limit,r.padding=s.padding,r.pips&&L(r.pips),S=[],Z(t.start||n,e)},target:b,removePips:F,pips:L},(h=r.events).fixed||c.forEach((function(t,e){j(g.start,t.children[0],Y,{handleNumbers:[e]})})),h.tap&&j(g.start,u,_,{}),h.hover&&j(g.move,u,I,{hover:!0}),h.drag&&p.forEach((function(t,e){if(!1!==t&&0!==e&&e!==p.length-1){var n=c[e-1],i=c[e],o=[t];s(t,r.cssClasses.draggable),h.fixed&&(o.push(n.children[0]),o.push(i.children[0])),o.forEach((function(t){j(g.start,t,Y,{handles:[n,i],handleNumbers:[e-1,e]})}))}})),Z(r.start),r.pips&&L(r.pips),r.tooltips&&(m=c.map(k),et("update",(function(t,e,n){if(m[e]){var i=t[e];!0!==r.tooltips[e]&&(i=r.tooltips[e].to(n[e])),m[e].innerHTML=i}}))),et("update",(function(t,e,n,i,o){w.forEach((function(t){var e=c[t],i=W(S,t,0,!0,!0,!0),s=W(S,t,100,!0,!0,!0),a=o[t],l=r.ariaFormat.to(n[t]);e.children[0].setAttribute("aria-valuemin",i.toFixed(1)),e.children[0].setAttribute("aria-valuemax",s.toFixed(1)),e.children[0].setAttribute("aria-valuenow",a.toFixed(1)),e.children[0].setAttribute("aria-valuetext",l)}))})),f}return{version:t,create:function(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider (10.1.0): create requires a single element, got: "+t);var r=T(t,q(e),e);return t.noUiSlider=r,r}}},"function"==typeof define&&define.amd?define([],n):"object"==typeof r?e.exports=n():window.noUiSlider=n()},n 398: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1);e(67),e(399),l.__importStar(e(66)).styles.append(".bk-root .bk-slider-title {\n white-space: nowrap;\n}\n.bk-root .bk-slider-value {\n font-weight: 600;\n}\n"),i.bk_slider_value="bk-slider-value",i.bk_slider_title="bk-slider-title",i.bk_input_group="bk-input-group"},n 399: function _(n,o,t){Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);n(67),r.__importStar(n(66)).styles.append(‘.bk-root {\n / Functional styling;\n * These styles are required for noUiSlider to function.\n * You don\’t need to change these rules to apply your design.\n /\n / Painting and performance;\n * Browsers can paint handles in their own layer.\n /\n / Slider size and handle placement;\n /\n / Styling;\n /\n / Handles and cursors;\n /\n / Handle stripes;\n /\n / Disabled state;\n /\n / Base;\n \n */\n / Values;\n \n */\n / Markings;\n \n */\n / Horizontal layout;\n \n */\n / Vertical layout;\n \n */\n}\n.bk-root .bk-noUi-target,\n.bk-root .bk-noUi-target * {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-user-select: none;\n -ms-touch-action: none;\n touch-action: none;\n -ms-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bk-root .bk-noUi-target {\n position: relative;\n direction: ltr;\n}\n.bk-root .bk-noUi-base {\n width: 100%;\n height: 100%;\n position: relative;\n z-index: 1;\n / Fix 401 /\n}\n.bk-root .bk-noUi-connect {\n position: absolute;\n right: 0;\n top: 0;\n left: 0;\n bottom: 0;\n}\n.bk-root .bk-noUi-origin {\n position: absolute;\n height: 0;\n width: 0;\n}\n.bk-root .bk-noUi-handle {\n position: relative;\n z-index: 1;\n}\n.bk-root .bk-noUi-state-tap .bk-noUi-connect,\n.bk-root .bk-noUi-state-tap .bk-noUi-origin {\n -webkit-transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\n transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\n}\n.bk-root .bk-noUi-state-drag * {\n cursor: inherit !important;\n}\n.bk-root .bk-noUi-base,\n.bk-root .bk-noUi-handle {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n.bk-root .bk-noUi-horizontal {\n height: 18px;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\n width: 34px;\n height: 28px;\n left: -17px;\n top: -6px;\n}\n.bk-root .bk-noUi-vertical {\n width: 18px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\n width: 28px;\n height: 34px;\n left: -6px;\n top: -17px;\n}\n.bk-root .bk-noUi-target {\n background: #FAFAFA;\n border-radius: 4px;\n border: 1px solid #D3D3D3;\n box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;\n}\n.bk-root .bk-noUi-connect {\n background: #3FB8AF;\n border-radius: 4px;\n box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45);\n -webkit-transition: background 450ms;\n transition: background 450ms;\n}\n.bk-root .bk-noUi-draggable {\n cursor: ew-resize;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-draggable {\n cursor: ns-resize;\n}\n.bk-root .bk-noUi-handle {\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #FFF;\n cursor: default;\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;\n}\n.bk-root .bk-noUi-active {\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;\n}\n.bk-root .bk-noUi-handle:before,\n.bk-root .bk-noUi-handle:after {\n content: "";\n display: block;\n position: absolute;\n height: 14px;\n width: 1px;\n background: #E8E7E6;\n left: 14px;\n top: 6px;\n}\n.bk-root .bk-noUi-handle:after {\n left: 17px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle:before,\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\n width: 14px;\n height: 1px;\n left: 6px;\n top: 14px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\n top: 17px;\n}\n.bk-root [disabled] .bk-noUi-connect {\n background: #B8B8B8;\n}\n.bk-root [disabled].bk-noUi-target,\n.bk-root [disabled].bk-noUi-handle,\n.bk-root [disabled] .bk-noUi-handle {\n cursor: not-allowed;\n}\n.bk-root .bk-noUi-pips,\n.bk-root .bk-noUi-pips * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bk-root .bk-noUi-pips {\n position: absolute;\n color: #999;\n}\n.bk-root .bk-noUi-value {\n position: absolute;\n white-space: nowrap;\n text-align: center;\n}\n.bk-root .bk-noUi-value-sub {\n color: #ccc;\n font-size: 10px;\n}\n.bk-root .bk-noUi-marker {\n position: absolute;\n background: #CCC;\n}\n.bk-root .bk-noUi-marker-sub {\n background: #AAA;\n}\n.bk-root .bk-noUi-marker-large {\n background: #AAA;\n}\n.bk-root .bk-noUi-pips-horizontal {\n padding: 10px 0;\n height: 80px;\n top: 100%;\n left: 0;\n width: 100%;\n}\n.bk-root .bk-noUi-value-horizontal {\n -webkit-transform: translate3d(-50%, 50%, 0);\n transform: translate3d(-50%, 50%, 0);\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker {\n margin-left: -1px;\n width: 2px;\n height: 5px;\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-sub {\n height: 10px;\n}\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-large {\n height: 15px;\n}\n.bk-root .bk-noUi-pips-vertical {\n padding: 0 10px;\n height: 100%;\n top: 0;\n left: 100%;\n}\n.bk-root .bk-noUi-value-vertical {\n -webkit-transform: translate3d(0, 50%, 0);\n transform: translate3d(0, 50%, 0);\n padding-left: 25px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker {\n width: 5px;\n height: 2px;\n margin-top: -1px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-sub {\n width: 10px;\n}\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-large {\n width: 15px;\n}\n.bk-root .bk-noUi-tooltip {\n display: block;\n position: absolute;\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #fff;\n color: #000;\n padding: 5px;\n text-align: center;\n white-space: nowrap;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-tooltip {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n left: 50%;\n bottom: 120%;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-tooltip {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n top: 50%;\n right: 120%;\n}\n.bk-root .bk-noUi-handle {\n cursor: grab;\n cursor: -webkit-grab;\n}\n.bk-root .bk-noUi-handle.bk-noUi-active {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n}\n.bk-root .bk-noUi-tooltip {\n display: none;\n white-space: nowrap;\n}\n.bk-root .bk-noUi-handle:hover .bk-noUi-tooltip {\n display: block;\n}\n.bk-root .bk-noUi-horizontal {\n width: 100%;\n height: 10px;\n}\n.bk-root .bk-noUi-horizontal.bk-noUi-target {\n margin: 5px 0px;\n}\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\n width: 14px;\n height: 18px;\n left: -7px;\n top: -5px;\n}\n.bk-root .bk-noUi-vertical {\n width: 10px;\n height: 100%;\n}\n.bk-root .bk-noUi-vertical.bk-noUi-target {\n margin: 0px 5px;\n}\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\n width: 18px;\n height: 14px;\n left: -5px;\n top: -7px;\n}\n.bk-root .bk-noUi-handle:after,\n.bk-root .bk-noUi-handle:before {\n display: none;\n}\n.bk-root .bk-noUi-connect {\n box-shadow: none;\n}\n’)},n 400: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1).__importDefault(e(157)),a=e(396);class d extends a.AbstractSliderView{}i.DateSliderView=d,d.__name__="DateSliderView";class s extends a.AbstractSlider{constructor(e){super(e),this.behaviour="tap",this.connected=[!0,!1]}static init_DateSlider(){this.prototype.default_view=d,this.override({format:"%d %b %Y"})}_formatter(e,t){return r.default(e,t)}}i.DateSlider=s,s.__name__="DateSlider",s.init_DateSlider()},n 401: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const r=e(1),_=e(402),n=r.__importStar(e(19));class s extends _.MarkupView{render(){super.render(),this.model.render_as_text?this.markup_el.textContent=this.model.text:this.markup_el.innerHTML=this.model.text}}i.DivView=s,s.__name__="DivView";class a extends _.Markup{constructor(e){super(e)}static init_Div(){this.prototype.default_view=s,this.define({render_as_text:[n.Boolean,!1]})}}i.Div=a,a.__name__="Div",a.init_Div()},n 402: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(187),a=e(66),r=s.__importStar(e(19)),l=e(441),_=e(403);class c extends l.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>{this.render(),this.root.compute_layout()})}_update_layout(){this.layout=new n.VariadicBox(this.el),this.layout.set_sizing(this.box_sizing())}render(){super.render();const e=Object.assign(Object.assign({},this.model.style),{display:"inline-block"});this.markup_el=a.div({class:_.bk_clearfix,style:e}),this.el.appendChild(this.markup_el)}}i.MarkupView=c,c.__name__="MarkupView";class o extends l.Widget{constructor(e){super(e)}static init_Markup(){this.define({text:[r.String,""],style:[r.Any,{}]})}}i.Markup=o,o.__name__="Markup",o.init_Markup()},n 403: function _(e,r,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1);e(67),n.__importStar(e(66)).styles.append(‘.bk-root .bk-clearfix:before,\n.bk-root .bk-clearfix:after {\n content: "";\n display: table;\n}\n.bk-root .bk-clearfix:after {\n clear: both;\n}\n’),t.bk_clearfix="bk-clearfix"},n 404: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(378),o=e(281),_=e(66),d=n.__importStar(e(19)),l=e(8),r=e(145),c=e(252),u=e(253);class h extends s.AbstractButtonView{constructor(){super(…arguments),this._open=!1}render(){super.render();const e=_.div({class:[u.bk_caret,r.bk_down]});if(this.model.is_split){const t=this._render_button(e);t.classList.add(c.bk_dropdown_toggle),t.addEventListener("click",()=>this._toggle_menu()),this.group_el.appendChild(t)}else this.button_el.appendChild(e);const t=this.model.menu.map((e,t)=>{if(null==e)return _.div({class:u.bk_divider});{const i=l.isString(e)?e:e[0],n=_.div({},i);return n.addEventListener("click",()=>this._item_click(t)),n}});this.menu=_.div({class:[u.bk_menu,r.bk_below]},t),this.el.appendChild(this.menu),_.undisplay(this.menu)}_show_menu(){if(!this._open){this._open=!0,_.display(this.menu);const e=t=>{const{target:i}=t;i instanceof HTMLElement&&!this.el.contains(i)&&(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,_.undisplay(this.menu))}_toggle_menu(){this._open?this._hide_menu():this._show_menu()}click(){this.model.is_split?(this._hide_menu(),this.model.trigger_event(new o.ButtonClick),super.click()):this._toggle_menu()}_item_click(e){this._hide_menu();const t=this.model.menu[e];if(null!=t){const i=l.isString(t)?t:t[1];l.isString(i)?this.model.trigger_event(new o.MenuItemClick(i)):i.execute(this.model,{index:e})}}}i.DropdownView=h,h.__name__="DropdownView";class p extends s.AbstractButton{constructor(e){super(e)}static init_Dropdown(){this.prototype.default_view=h,this.define({split:[d.Boolean,!1],menu:[d.Array,[]]}),this.override({label:"Dropdown"})}get is_split(){return this.split}}i.Dropdown=p,p.__name__="Dropdown",p.init_Dropdown()},n 405: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e(1).__importStar(e(19)),s=e(441);class n extends s.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.width.change,()=>this.render())}render(){null==this.dialogEl&&(this.dialogEl=document.createElement("input"),this.dialogEl.type="file",this.dialogEl.multiple=this.model.multiple,this.dialogEl.onchange=()=>{const{files:e}=this.dialogEl;null!=e&&this.load_files(e)},this.el.appendChild(this.dialogEl)),null!=this.model.accept&&""!=this.model.accept&&(this.dialogEl.accept=this.model.accept),this.dialogEl.style.width="{this.model.width}px",this.dialogEl.disabled=this.model.disabled}async load_files(e){const t=[],i=[],l=[];let s;for(s=0;s<e.length;s++){i.push(e[s].name);const n=await this.readfile(e[s]),[,o,,a]=n.split(/[:;,]/,4);t.push(a),l.push(o)}this.model.multiple?(this.model.filename=i,this.model.mime_type=l,this.model.value=t):(this.model.filename=i[0],this.model.mime_type=l[0],this.model.value=t[0])}readfile(e){return new Promise((t,i)=>{const l=new FileReader;l.onload=()=>{var s;const{result:n}=l;null!=n?t(n):i(null!==(s=l.error)&&void 0!==s?s:new Error(`unable to read ‘${e.name}’`))},l.readAsDataURL(e)})}}i.FileInputView=n,n.__name__="FileInputView";class o extends s.Widget{constructor(e){super(e)}static init_FileInput(){this.prototype.default_view=n,this.define({value:[l.Any,""],mime_type:[l.Any,""],filename:[l.Any,""],accept:[l.String,""],multiple:[l.Boolean,!1]})}}i.FileInput=o,o.__name__="FileInput",o.init_FileInput()},n 406: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(66),l=e(8),o=e(15),r=i.__importStar(e(19)),c=e(384),h=e(385);class a extends c.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,()=>this.render_selection()),this.connect(this.model.properties.options.change,()=>this.render()),this.connect(this.model.properties.name.change,()=>this.render()),this.connect(this.model.properties.title.change,()=>this.render()),this.connect(this.model.properties.size.change,()=>this.render()),this.connect(this.model.properties.disabled.change,()=>this.render())}render(){super.render();const e=this.model.options.map(e=>{let t,s;return l.isString(e)?t=s=e:[t,s]=e,n.option({value:t},s)});this.select_el=n.select({multiple:!0,class:h.bk_input,name:this.model.name,disabled:this.model.disabled},e),this.select_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.select_el),this.render_selection()}render_selection(){const e=new o.Set(this.model.value);for(const t of Array.from(this.el.querySelectorAll("option")))t.selected=e.has(t.value);this.select_el.size=this.model.size}change_input(){const e=null!=this.el.querySelector("select:focus"),t=[];for(const e of Array.from(this.el.querySelectorAll("option")))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.select_el.focus()}}s.MultiSelectView=a,a.__name__="MultiSelectView";class d extends c.InputWidget{constructor(e){super(e)}static init_MultiSelect(){this.prototype.default_view=a,this.define({value:[r.Array,[]],options:[r.Array,[]],size:[r.Number,4]})}}s.MultiSelect=d,d.__name__="MultiSelect",d.init_MultiSelect()},n 407: function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});const t=a(402),p=a(66);class s extends t.MarkupView{render(){super.render();const a=p.p({style:{margin:0}},this.model.text);this.markup_el.appendChild(a)}}r.ParagraphView=s,s.__name__="ParagraphView";class i extends t.Markup{constructor(a){super(a)}static init_Paragraph(){this.prototype.default_view=s}}r.Paragraph=i,i.__name__="Paragraph",i.init_Paragraph()},n 408: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const n=e(383);class r extends n.TextInputView{render(){super.render(),this.input_el.type="password"}}s.PasswordInputView=r,r.__name__="PasswordInputView";class p extends n.TextInput{constructor(e){super(e)}static init_PasswordInput(){this.prototype.default_view=r}}s.PasswordInput=p,p.__name__="PasswordInput",p.init_PasswordInput()},n 409: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),l=s.__importDefault(e(410)),o=e(66),n=e(8),h=s.__importStar(e(19)),c=e(385);e(411);const r=e(384);class d extends r.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,()=>this.render_selection()),this.connect(this.model.properties.disabled.change,()=>this.set_disabled()),this.connect(this.model.properties.max_items.change,()=>this.render()),this.connect(this.model.properties.option_limit.change,()=>this.render()),this.connect(this.model.properties.delete_button.change,()=>this.render()),this.connect(this.model.properties.placeholder.change,()=>this.render()),this.connect(this.model.properties.options.change,()=>this.render()),this.connect(this.model.properties.name.change,()=>this.render()),this.connect(this.model.properties.title.change,()=>this.render())}render(){super.render();const e=this.model.options.map(e=>{let t,i;return n.isString(e)?t=i=e:[t,i]=e,o.option({value:t},i)});this.select_el=o.select({multiple:!0,class:c.bk_input,name:this.model.name,disabled:this.model.disabled},e),this.group_el.appendChild(this.select_el),this.render_selection();let t="choices__item",i="choices__button";this.model.solid?(t+=" solid",i+=" solid"):(t+=" light",i+=" light");const s={removeItemButton:this.model.delete_button,classNames:{item:t,button:i}};null!==this.model.placeholder&&(s.placeholderValue=this.model.placeholder),null!==this.model.max_items&&(s.maxItemCount=this.model.max_items),null!==this.model.option_limit&&(s.renderChoiceLimit=this.model.option_limit),this.choice_el=new l.default(this.select_el,s),this.select_el.addEventListener("change",()=>this.change_input())}render_selection(){const e=new Set(this.model.value);for(const t of Array.from(this.el.querySelectorAll("option")))t.selected=e.has(t.value)}set_disabled(){this.model.disabled?this.choice_el.disable():this.choice_el.enable()}change_input(){const e=null!=this.el.querySelector("select:focus"),t=[];for(const e of Array.from(this.el.querySelectorAll("option")))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.select_el.focus()}}i.MultiChoiceView=d,d.__name__="MultiChoiceView";class a extends r.InputWidget{constructor(e){super(e)}static init_MultiChoice(){this.prototype.default_view=d,this.define({value:[h.Array,[]],options:[h.Array,[]],max_items:[h.Number,null],delete_button:[h.Boolean,!0],placeholder:[h.String,null],option_limit:[h.Number,null],solid:[h.Boolean,!0]})}}i.MultiChoice=a,a.__name__="MultiChoice",a.init_MultiChoice()},n 410: function _(e,t,i){n /! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme /n var n,s;n=window,s=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/public/assets/scripts/",i(i.s=4)}([function(e,t,i){"use strict";var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function o(e,t,i){return e.concat(t).map((function(e){return r(e,i)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t,i){var n={};return i.isMergeableObject(e)&&a(e).forEach((function(t){n[t]=r(e[t],i)})),a(t).forEach((function(s){(function(e,t){try{return t in e&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}catch(e){return!1}})(e,s)||(i.isMergeableObject(t[s])&&e[s]?n[s]=function(e,t){if(!t.customMerge)return l;var i=t.customMerge(e);return"function"==typeof i?i:l}(s,i)(e[s],t[s],i):n[s]=r(t[s],i))})),n}function l(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||n,i.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(t);return s===Array.isArray(e)?s?i.arrayMerge(e,t,i):c(e,t,i):r(t,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return l(e,i,t)}),{})};var h=l;e.exports=h},function(e,t,i){"use strict";(function(e,n){var s,r=i(3);s="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var o=Object(r.a)(s);t.a=o}).call(this,i(5),i(6)(e))},function(e,t,i){n /!n * Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)n n * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)n * All Rights Reserved. Apache Software License 2.0n *n * http://www.apache.org/licenses/LICENSE-2.0n */n e.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,i){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=i(2),o=i(8),a=i(0),c=function(){function e(t,i){var n=i.location,s=void 0===n?0:n,r=i.distance,a=void 0===r?100:r,c=i.threshold,l=void 0===c?.6:c,h=i.maxPatternLength,u=void 0===h?32:h,d=i.caseSensitive,p=void 0!==d&&d,m=i.tokenSeparator,f=void 0===m?/ +/g:m,v=i.findAllMatches,g=void 0!==v&&v,_=i.minMatchCharLength,b=void 0===_?1:_,y=i.id,E=void 0===y?null:y,I=i.keys,S=void 0===I?[]:I,w=i.shouldSort,O=void 0===w||w,C=i.getFn,A=void 0===C?o:C,L=i.sortFn,T=void 0===L?function(e,t){return e.score-t.score}:L,x=i.tokenize,k=void 0!==x&&x,P=i.matchAllTokens,D=void 0!==P&&P,M=i.includeMatches,N=void 0!==M&&M,F=i.includeScore,j=void 0!==F&&F,K=i.verbose,R=void 0!==K&&K;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:l,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:f,findAllMatches:g,minMatchCharLength:b,id:E,keys:S,includeMatches:N,includeScore:j,shouldSort:O,getFn:A,sortFn:T,verbose:R,tokenize:k,matchAllTokens:D},this.setCollection(t)}var t,i;return t=e,(i=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log(’———\nSearch pattern: "’.concat(e,’"’));var i=this._prepareSearchers(e),n=i.tokenSearchers,s=i.fullSearcher,r=this._search(n,s),o=r.weights,a=r.results;return this._computeScore(o,a),this.options.shouldSort&&this._sort(a),t.limit&&"number"==typeof t.limit&&(a=a.slice(0,t.limit)),this._format(a)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var i=e.split(this.options.tokenSeparator),n=0,s=i.length;n<s;n+=1)t.push(new r(i[n],this.options));return{tokenSearchers:t,fullSearcher:new r(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,i=this.list,n={},s=[];if("string"==typeof i[0]){for(var r=0,o=i.length;r<o;r+=1)this._analyze({key:"",value:i[r],record:r,index:r},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t});return{weights:null,results:s}}for(var a={},c=0,l=i.length;c<l;c+=1)for(var h=i[c],u=0,d=this.options.keys.length;u<d;u+=1){var p=this.options.keys[u];if("string"!=typeof p){if(a[p.name]={weight:1-p.weight||1},p.weight<=0||p.weight>1)throw new Error("Key weight has to be > 0 and <= 1");p=p.name}else a[p]={weight:1};this._analyze({key:p,value:this.options.getFn(h,p),record:h,index:c},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t})}return{weights:a,results:s}}},{key:"_analyze",value:function(e,t){var i=e.key,n=e.arrayIndex,s=void 0===n?-1:n,r=e.value,o=e.record,c=e.index,l=t.tokenSearchers,h=void 0===l?[]:l,u=t.fullSearcher,d=void 0===u?[]:u,p=t.resultMap,m=void 0===p?{}:p,f=t.results,v=void 0===f?[]:f;if(null!=r){var g=!1,_=-1,b=0;if("string"==typeof r){this._log("\nKey: ".concat(""===i?"-":i));var y=d.search(r);if(this._log(‘Full text: "’.concat(r,’", score: ‘).concat(y.score)),this.options.tokenize){for(var E=r.split(this.options.tokenSeparator),I=[],S=0;S<h.length;S+=1){var w=h[S];this._log(’\nPattern: "’.concat(w.pattern,’"’));for(var O=!1,C=0;C<E.length;C+=1){var A=E[C],L=w.search(A),T={};L.isMatch?(T[A]=L.score,g=!0,O=!0,I.push(L.score)):(T[A]=1,this.options.matchAllTokens||I.push(1)),this._log(‘Token: "’.concat(A,’", score: ‘).concat(T[A]))}O&&(b+=1)}_=I[0];for(var x=I.length,k=1;k<x;k+=1)_+=I[k];_/=x,this._log("Token score average:",_)}var P=y.score;_>-1&&(P=(P+_)/2),this._log("Score average:",P);var D=!this.options.tokenize||!this.options.matchAllTokens||b>=h.length;if(this._log("\nCheck Matches: ".concat(D)),(g||y.isMatch)&&D){var M=m[c];M?M.output.push({key:i,arrayIndex:s,value:r,score:P,matchedIndices:y.matchedIndices}):(m[c]={item:o,output:[{key:i,arrayIndex:s,value:r,score:P,matchedIndices:y.matchedIndices}]},v.push(m[c]))}}else if(a(r))for(var N=0,F=r.length;N<F;N+=1)this._analyze({key:i,arrayIndex:N,value:r[N],record:o,index:c},{resultMap:m,results:v,tokenSearchers:h,fullSearcher:d})}}},{key:"_computeScore",value:function(e,t){this._log("\n\nComputing score:\n");for(var i=0,n=t.length;i<n;i+=1){for(var s=t[i].output,r=s.length,o=1,a=1,c=0;c<r;c+=1){var l=e?e[s[c].key].weight:1,h=(1===l?s[c].score:s[c].score||.001)*l;1!==l?a=Math.min(a,h):(s[c].nScore=h,o*=h)}t[i].score=1===a?o:a,this._log(t[i])}}},{key:"_sort",value:function(e){this._log("\n\nSorting…."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var i=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===n(t)&&null!==t){if(-1!==i.indexOf(t))return;i.push(t)}return t}))),i=null}var s=[];this.options.includeMatches&&s.push((function(e,t){var i=e.output;t.matches=[];for(var n=0,s=i.length;n<s;n+=1){var r=i[n];if(0!==r.matchedIndices.length){var o={indices:r.matchedIndices,value:r.value};r.key&&(o.key=r.key),r.hasOwnProperty("arrayIndex")&&r.arrayIndex>-1&&(o.arrayIndex=r.arrayIndex),t.matches.push(o)}}})),this.options.includeScore&&s.push((function(e,t){t.score=e.score}));for(var r=0,o=e.length;r<o;r+=1){var a=e[r];if(this.options.id&&(a.item=this.options.getFn(a.item,this.options.id)[0]),s.length){for(var c={item:a.item},l=0,h=s.length;l<h;l+=1)s[l](a,c);t.push(c)}else t.push(a.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&s(t.prototype,i),e}();e.exports=c},function(e,t,i){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=i(3),r=i(4),o=i(7),a=function(){function e(t,i){var n=i.location,s=void 0===n?0:n,r=i.distance,a=void 0===r?100:r,c=i.threshold,l=void 0===c?.6:c,h=i.maxPatternLength,u=void 0===h?32:h,d=i.isCaseSensitive,p=void 0!==d&&d,m=i.tokenSeparator,f=void 0===m?/ +/g:m,v=i.findAllMatches,g=void 0!==v&&v,_=i.minMatchCharLength,b=void 0===_?1:_;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:l,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:f,findAllMatches:g,minMatchCharLength:b},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=u&&(this.patternAlphabet=o(this.pattern))}var t,i;return t=e,(i=[{key:"search",value:function(e){if(this.options.isCaseSensitive||(e=e.toLowerCase()),this.pattern===e)return{isMatch:!0,score:0,matchedIndices:[[0,e.length-1]]};var t=this.options,i=t.maxPatternLength,n=t.tokenSeparator;if(this.pattern.length>i)return s(e,this.pattern,n);var o=this.options,a=o.location,c=o.distance,l=o.threshold,h=o.findAllMatches,u=o.minMatchCharLength;return r(e,this.pattern,this.patternAlphabet,{location:a,distance:c,threshold:l,findAllMatches:h,minMatchCharLength:u})}}])&&n(t.prototype,i),e}();e.exports=a},function(e,t){var i=/[\-\[\]\/\{\}\(\)\\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,s=new RegExp(t.replace(i,"\\$&").replace(n,"|\")),r=e.match(s),o=!!r,a=[];if(o)for(var c=0,l=r.length;c<l;c+=1){var h=r[c];a.push([e.indexOf(h),h.length-1])}return{score:o?.5:1,isMatch:o,matchedIndices:a}}},function(e,t,i){var n=i(5),s=i(6);e.exports=function(e,t,i,r){for(var o=r.location,a=void 0===o?0:o,c=r.distance,l=void 0===c?100:c,h=r.threshold,u=void 0===h?.6:h,d=r.findAllMatches,p=void 0!==d&&d,m=r.minMatchCharLength,f=void 0===m?1:m,v=a,g=e.length,_=u,b=e.indexOf(t,v),y=t.length,E=[],I=0;I<g;I+=1)E[I]=0;if(-1!==b){var S=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:l});if(_=Math.min(S,_),-1!==(b=e.lastIndexOf(t,v+y))){var w=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:l});_=Math.min(w,_)}}b=-1;for(var O=[],C=1,A=y+g,L=1<<y-1,T=0;T<y;T+=1){for(var x=0,k=A;x<k;)n(t,{errors:T,currentLocation:v+k,expectedLocation:v,distance:l})<=_?x=k:A=k,k=Math.floor((A-x)/2+x);A=k;var P=Math.max(1,v-k+1),D=p?g:Math.min(v+k,g)+y,M=Array(D+2);M[D+1]=(1<<T)-1;for(var N=D;N>=P;N-=1){var F=N-1,j=i[e.charAt(F)];if(j&&(E[F]=1),M[N]=(M[N+1]<<1|1)&j,0!==T&&(M[N]|=(O[N+1]|O[N])<<1|1|O[N+1]),M[N]&L&&(C=n(t,{errors:T,currentLocation:F,expectedLocation:v,distance:l}))<=_){if(_=C,(b=F)<=v)break;P=Math.max(1,2*v-b)}}if(n(t,{errors:T+1,currentLocation:v,expectedLocation:v,distance:l})>_)break;O=M}return{isMatch:b>=0,score:0===C?.001:C,matchedIndices:s(E,f)}}},function(e,t){e.exports=function(e,t){var i=t.errors,n=void 0===i?0:i,s=t.currentLocation,r=void 0===s?0:s,o=t.expectedLocation,a=void 0===o?0:o,c=t.distance,l=void 0===c?100:c,h=n/e.length,u=Math.abs(a-r);return l?h+u/l:u?1:h}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[],n=-1,s=-1,r=0,o=e.length;r<o;r+=1){var a=e[r];a&&-1===n?n=r:a||-1===n||((s=r-1)-n+1>=t&&i.push([n,s]),n=-1)}return e[r-1]&&r-n>=t&&i.push([n,r-1]),i}},function(e,t){e.exports=function(e){for(var t={},i=e.length,n=0;n<i;n+=1)t[e.charAt(n)]=0;for(var s=0;s<i;s+=1)t[e.charAt(s)]|=1<<i-s-1;return t}},function(e,t,i){var n=i(0);e.exports=function(e,t){return function e(t,i,s){if(i){var r=i.indexOf("."),o=i,a=null;-1!==r&&(o=i.slice(0,r),a=i.slice(r+1));var c=t[o];if(null!=c)if(a||"string"!=typeof c&&"number"!=typeof c)if(n(c))for(var l=0,h=c.length;l<h;l+=1)e(c[l],a,s);else a&&e(c,a,s);else s.push(c.toString())}else s.push(t);return s}(e,t,[])}}])},function(e,t,i){"use strict";function n(e){var t,i=e.Symbol;return"function"==typeof i?i.observable?t=i.observable:(t=i("observable"),i.observable=t):t="@@observable",t}i.d(t,"a",(function(){return n}))},function(e,t,i){e.exports=i(7)},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,i){"use strict";i.r(t);var n=i(2),s=i.n(n),r=i(0),o=i.n(r),a=i(1),c=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,i){var n;if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,r=t,o=[],c=o,d=!1;function p(){c===o&&(c=o.slice())}function m(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return r}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),c.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var i=c.indexOf(e);c.splice(i,1)}}}function v(e){if(!h(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error(‘Actions may not have an undefined "type" property. Have you misspelled a constant?’);if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,r=s(r,e)}finally{d=!1}for(var t=o=c,i=0;i<t.length;i++)(0,t[i])();return e}function g(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,v({type:l.REPLACE})}function _(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function i(){e.next&&e.next(m())}return i(),{unsubscribe:t(i)}}})[a.a]=function(){return this},e}return v({type:l.INIT}),(n={dispatch:v,subscribe:f,getState:m,replaceReducer:g})[a.a]=_,n}function d(e,t){var i=t&&t.type;return"Given "+(i&&’action "’+String(i)+’"’||"an action")+’, reducer "’+e+’" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.’}var p,m=[],f=[],v=[],g={loading:!1},_=function(e,t){switch(void 0===e&&(e=g),t.type){case"SET_IS_LOADING":return{loading:t.isLoading};default:return e}},b=function(e){return Array.from({length:e},(function(){return(e=0,t=36,Math.floor(Math.random()*(t-e)+e)).toString(36);var e,t})).join("")},y=function(e){return Object.prototype.toString.call(e).slice(8,-1)},E=function(e,t){return null!=t&&y(t)===e},I=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/</g,"<").replace(/"/g,""")},S=(p=document.createElement("div"),function(e){var t=e.trim();p.innerHTML=t;for(var i=p.children[0];p.firstChild;)p.removeChild(p.firstChild);return i}),w=function(e,t){return e.score-t.score},O=function(e){return JSON.parse(JSON.stringify(e))},C=function(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++){var s=t[n];"function"==typeof e[s]&&(i[s]=e[s])}var r,o=Object.keys(i);try{!function(e){Object.keys(e).forEach((function(t){var i=e[t];if(void 0===i(void 0,{type:l.INIT}))throw new Error(‘Reducer "’+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don’t want to set a value for this reducer, you can use null instead of undefined.");if(void 0===i(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(‘Reducer "’+t+"\" returned undefined when probed with a random type. Don’t try to handle "+l.INIT+’ or other actions in "redux/" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.’)}))}(i)}catch(e){r=e}return function(e,t){if(void 0===e&&(e={}),r)throw r;for(var n=!1,s={},a=0;a<o.length;a++){var c=o[a],l=i[c],h=e[c],u=l(h,t);if(void 0===u){var p=d(c,t);throw new Error(p)}s[c]=u,n=n||u!==h}return n?s:e}}({items:function(e,t){switch(void 0===e&&(e=m),t.type){case"ADD_ITEM":return[].concat(e,[{id:t.id,choiceId:t.choiceId,groupId:t.groupId,value:t.value,label:t.label,active:!0,highlighted:!1,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]).map((function(e){var t=e;return t.highlighted=!1,t}));case"REMOVE_ITEM":return e.map((function(e){var i=e;return i.id===t.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":return e.map((function(e){var i=e;return i.id===t.id&&(i.highlighted=t.highlighted),i}));default:return e}},groups:function(e,t){switch(void 0===e&&(e=f),t.type){case"ADD_GROUP":return[].concat(e,[{id:t.id,value:t.value,active:t.active,disabled:t.disabled}]);case"CLEAR_CHOICES":return[];default:return e}},choices:function(e,t){switch(void 0===e&&(e=v),t.type){case"ADD_CHOICE":return[].concat(e,[{id:t.id,elementId:t.elementId,groupId:t.groupId,value:t.value,label:t.label||t.value,disabled:t.disabled||!1,selected:!1,active:!0,score:9999,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return t.activateOptions?e.map((function(e){var i=e;return i.active=t.active,i})):t.choiceId>-1?e.map((function(e){var i=e;return i.id===parseInt(t.choiceId,10)&&(i.selected=!0),i})):e;case"REMOVE_ITEM":return t.choiceId>-1?e.map((function(e){var i=e;return i.id===parseInt(t.choiceId,10)&&(i.selected=!1),i})):e;case"FILTER_CHOICES":return e.map((function(e){var i=e;return i.active=t.results.some((function(e){var t=e.item,n=e.score;return t.id===i.id&&(i.score=n,!0)})),i}));case"ACTIVATE_CHOICES":return e.map((function(e){var i=e;return i.active=t.active,i}));case"CLEAR_CHOICES":return v;default:return e}},general:_}),A=function(e,t){var i=e;if("CLEAR_ALL"===t.type)i=void 0;else if("RESET_TO"===t.type)return O(t.state);return C(i,t)};function L(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var T=function(){function e(){this._store=u(A,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var t,i,n,s=e.prototype;return s.subscribe=function(e){this._store.subscribe(e)},s.dispatch=function(e){this._store.dispatch(e)},s.isLoading=function(){return this.state.general.loading},s.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},s.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},t=e,(i=[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter((function(e){return!0===e.active}))}},{key:"highlightedActiveItems",get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter((function(e){return!0===e.active}))}},{key:"selectableChoices",get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find((function(e){return!0===e.placeholder}))}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var i=!0===e.active&&!1===e.disabled,n=t.some((function(e){return!0===e.active&&!1===e.disabled}));return i&&n}),[])}}])&&L(t.prototype,i),n&&L(t,n),e}();function x(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var k=function(){function e(e){var t=e.element,i=e.type,n=e.classNames;this.element=t,this.classNames=n,this.type=i,this.isActive=!1}var t,i,n,s=e.prototype;return s.getChild=function(e){return this.element.querySelector(e)},s.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},s.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t=e,(i=[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}])&&x(t.prototype,i),n&&x(t,n),e}(),P={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:function(e,t){var i=e.value,n=e.label,s=void 0===n?i:n,r=t.value,o=t.label,a=void 0===o?r:o;return s.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading…",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return’Press Enter to add <b>"’+I(e)+’"</b>’},maxItemText:function(e){return"Only "+e+" values can be added"},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input–cloned",list:"choices__list",listItems:"choices__list–multiple",listSingle:"choices__list–single",listDropdown:"choices__list–dropdown",item:"choices__item",itemSelectable:"choices__item–selectable",itemDisabled:"choices__item–disabled",itemChoice:"choices__item–choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"}},D="showDropdown",M="hideDropdown",N="change",F="choice",j="search",K="addItem",R="removeItem",H="highlightItem",B="highlightChoice",V="ADD_CHOICE",G="FILTER_CHOICES",q="ACTIVATE_CHOICES",U="CLEAR_CHOICES",z="ADD_GROUP",W="ADD_ITEM",X="REMOVE_ITEM",$="HIGHLIGHT_ITEM",J=46,Y=8,Z=13,Q=65,ee=27,te=38,ie=40,ne=33,se=34,re=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,s=e.position;this.element=t,this.classNames=n,this.type=i,this.position=s,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t=e.prototype;return t.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.shouldFlip=function(e){if("number"!=typeof e)return!1;var t=!1;return"auto"===this.position?t=!window.matchMedia("(min-height: "+(e+1)+"px)").matches:"top"===this.position&&(t=!0),t},t.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},t.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.focus=function(){this.isFocussed||this.element.focus()},t.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),"select-one"===this.type&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),"select-one"===this.type&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.wrap=function(e){!function(e,t){void 0===t&&(t=document.createElement("div")),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)}(e,this.element)},t.unwrap=function(e){this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element)},t.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t._onFocus=function(){this.isFocussed=!0},t._onBlur=function(){this.isFocussed=!1},e}();function oe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ae=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,s=e.preventPaste;this.element=t,this.type=i,this.classNames=n,this.preventPaste=s,this.isFocussed=this.element===document.activeElement,this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t,i,n,s=e.prototype;return s.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},s.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},s.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},s.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},s.focus=function(){this.isFocussed||this.element.focus()},s.blur=function(){this.isFocussed&&this.element.blur()},s.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},s.setWidth=function(){var e=this.element,t=e.style,i=e.value,n=e.placeholder;t.minWidth=n.length+1+"ch",t.width=i.length+1+"ch"},s.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},s.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},s._onInput=function(){"select-one"!==this.type&&this.setWidth()},s._onPaste=function(e){this.preventPaste&&e.preventDefault()},s._onFocus=function(){this.isFocussed=!0},s._onBlur=function(){this.isFocussed=!1},t=e,(i=[{key:"placeholder",set:function(e){this.element.placeholder=e}},{key:"value",get:function(){return I(this.element.value)},set:function(e){this.element.value=e}}])&&oe(t.prototype,i),n&&oe(t,n),e}(),ce=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}var t=e.prototype;return t.clear=function(){this.element.innerHTML=""},t.append=function(e){this.element.appendChild(e)},t.getChild=function(e){return this.element.querySelector(e)},t.hasChildren=function(){return this.element.hasChildNodes()},t.scrollToTop=function(){this.element.scrollTop=0},t.scrollToChildElement=function(e,t){var i=this;if(e){var n=this.element.offsetHeight,s=this.element.scrollTop+n,r=e.offsetHeight,o=e.offsetTop+r,a=t>0?this.element.scrollTop+o-s:e.offsetTop;requestAnimationFrame((function(){i._animateScroll(a,t)}))}},t._scrollDown=function(e,t,i){var n=(i-e)/t,s=n>1?n:1;this.element.scrollTop=e+s},t._scrollUp=function(e,t,i){var n=(e-i)/t,s=n>1?n:1;this.element.scrollTop=e-s},t._animateScroll=function(e,t){var i=this,n=this.element.scrollTop,s=!1;t>0?(this._scrollDown(n,4,e),n<e&&(s=!0)):(this._scrollUp(n,4,e),n>e&&(s=!0)),s&&requestAnimationFrame((function(){i._animateScroll(e,t)}))},e}();function le(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var he=function(){function e(e){var t=e.element,i=e.classNames;if(this.element=t,this.classNames=i,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var t,i,n,s=e.prototype;return s.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},s.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},s.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},s.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},s.triggerEvent=function(e,t){!function(e,t,i){void 0===i&&(i=null);var n=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}(this.element,e,t)},t=e,(i=[{key:"isActive",get:function(){return"active"===this.element.dataset.choice}},{key:"dir",get:function(){return this.element.dir}},{key:"value",get:function(){return this.element.value},set:function(e){this.element.value=e}}])&&le(t.prototype,i),n&&le(t,n),e}();function ue(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var de=function(e){var t,i,n,s,r;function o(t){var i,n=t.element,s=t.classNames,r=t.delimiter;return(i=e.call(this,{element:n,classNames:s})||this).delimiter=r,i}return i=e,(t=o).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,n=o,(s=[{key:"value",get:function(){return this.element.value},set:function(e){var t=e.map((function(e){return e.value})).join(this.delimiter);this.element.setAttribute("value",t),this.element.value=t}}])&&ue(n.prototype,s),r&&ue(n,r),o}(he);function pe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var me=function(e){var t,i,n,s,r;function o(t){var i,n=t.element,s=t.classNames,r=t.template;return(i=e.call(this,{element:n,classNames:s})||this).template=r,i}return i=e,(t=o).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,o.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},n=o,(s=[{key:"placeholderOption",get:function(){return this.element.querySelector(‘option[value=""]’)||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach((function(e){return n=e,s=t.template(n),void i.appendChild(s);var n,s})),this.appendDocFragment(i)}}])&&pe(n.prototype,s),r&&pe(n,r),o}(he),fe={containerOuter:function(e,t,i,n,s,r){var o=e.containerOuter,a=Object.assign(document.createElement("div"),{className:o});return a.dataset.type=r,t&&(a.dir=t),n&&(a.tabIndex=0),i&&(a.setAttribute("role",s?"combobox":"listbox"),s&&a.setAttribute("aria-autocomplete","list")),a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"),a},containerInner:function(e){var t=e.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var i=e.list,n=e.listSingle,s=e.listItems;return Object.assign(document.createElement("div"),{className:i+" "+(t?n:s)})},placeholder:function(e,t){var i=e.placeholder;return Object.assign(document.createElement("div"),{className:i,innerHTML:t})},item:function(e,t,i){var n=e.item,s=e.button,r=e.highlightedState,o=e.itemSelectable,a=e.placeholder,c=t.id,l=t.value,h=t.label,u=t.customProperties,d=t.active,p=t.disabled,m=t.highlighted,f=t.placeholder,v=Object.assign(document.createElement("div"),{className:n,innerHTML:h});if(Object.assign(v.dataset,{item:"",id:c,value:l,customProperties:u}),d&&v.setAttribute("aria-selected","true"),p&&v.setAttribute("aria-disabled","true"),f&&v.classList.add(a),v.classList.add(m?r:o),i){p&&v.classList.remove(o),v.dataset.deletable="";var g=Object.assign(document.createElement("button"),{type:"button",className:s,innerHTML:"Remove item"});g.setAttribute("aria-label","Remove item: ‘"+l+"’"),g.dataset.button="",v.appendChild(g)}return v},choiceList:function(e,t){var i=e.list,n=Object.assign(document.createElement("div"),{className:i});return t||n.setAttribute("aria-multiselectable","true"),n.setAttribute("role","listbox"),n},choiceGroup:function(e,t){var i=e.group,n=e.groupHeading,s=e.itemDisabled,r=t.id,o=t.value,a=t.disabled,c=Object.assign(document.createElement("div"),{className:i+" "+(a?s:"")});return c.setAttribute("role","group"),Object.assign(c.dataset,{group:"",id:r,value:o}),a&&c.setAttribute("aria-disabled","true"),c.appendChild(Object.assign(document.createElement("div"),{className:n,innerHTML:o})),c},choice:function(e,t,i){var n=e.item,s=e.itemChoice,r=e.itemSelectable,o=e.selectedState,a=e.itemDisabled,c=e.placeholder,l=t.id,h=t.value,u=t.label,d=t.groupId,p=t.elementId,m=t.disabled,f=t.selected,v=t.placeholder,g=Object.assign(document.createElement("div"),{id:p,innerHTML:u,className:n+" "+s});return f&&g.classList.add(o),v&&g.classList.add(c),g.setAttribute("role",d>0?"treeitem":"option"),Object.assign(g.dataset,{choice:"",id:l,value:h,selectText:i}),m?(g.classList.add(a),g.dataset.choiceDisabled="",g.setAttribute("aria-disabled","true")):(g.classList.add(r),g.dataset.choiceSelectable=""),g},input:function(e,t){var i=e.input,n=e.inputCloned,s=Object.assign(document.createElement("input"),{type:"text",className:i+" "+n,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return s.setAttribute("role","textbox"),s.setAttribute("aria-autocomplete","list"),s.setAttribute("aria-label",t),s},dropdown:function(e){var t=e.list,i=e.listDropdown,n=document.createElement("div");return n.classList.add(t,i),n.setAttribute("aria-expanded","false"),n},notice:function(e,t,i){var n=e.item,s=e.itemChoice,r=e.noResults,o=e.noChoices;void 0===i&&(i="");var a=[n,s];return"no-choices"===i?a.push(o):"no-results"===i&&a.push(r),Object.assign(document.createElement("div"),{innerHTML:t,className:a.join(" ")})},option:function(e){var t=e.label,i=e.value,n=e.customProperties,s=e.active,r=e.disabled,o=new Option(t,i,!1,s);return n&&(o.dataset.customProperties=n),o.disabled=r,o}},ve=function(e){return void 0===e&&(e=!0),{type:q,active:e}},ge=function(e,t){return{type:$,id:e,highlighted:t}},_e=function(e){var t=e.value,i=e.id,n=e.active,s=e.disabled;return{type:z,value:t,id:i,active:n,disabled:s}},be=function(e){return{type:"SET_IS_LOADING",isLoading:e}};function ye(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ee="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Ie={},Se=function(){var e,t,i;function n(e,t){var i=this;void 0===e&&(e="[data-choice]"),void 0===t&&(t={}),this.config=o.a.all([P,n.defaults.options,t],{arrayMerge:function(e,t){return[].concat(t)}});var s,r,a,c,l=(s=this.config,r=P,a=Object.keys(s).sort(),c=Object.keys(r).sort(),a.filter((function(e){return c.indexOf(e)<0})));l.length&&console.warn("Unknown config option(s) passed",l.join(", "));var h="string"==typeof e?document.querySelector(e):e;if(!(h instanceof HTMLInputElement||h instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement="text"===h.type,this._isSelectOneElement="select-one"===h.type,this._isSelectMultipleElement="select-multiple"===h.type,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto"),t.addItemFilter&&"function"!=typeof t.addItemFilter){var u=t.addItemFilter instanceof RegExp?t.addItemFilter:new RegExp(t.addItemFilter);this.config.addItemFilter=u.test.bind(u)}if(this._isTextElement?this.passedElement=new de({element:h,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new me({element:h,classNames:this.config.classNames,template:function(e){return i._templates.option(e)}}),this.initialised=!1,this._store=new T,this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(e,t){var i=e.id||e.name&&e.name+"-"+b(2)||b(4);return i=t+"-"+(i=i.replace(/(:|\.|\[|\]|,)/g,""))}(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var d=window.getComputedStyle(this.passedElement.element).direction;d!==window.getComputedStyle(document.documentElement).direction&&(this._direction=d)}if(this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach((function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:e.getAttribute("data-custom-properties")})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),void(this.initialised=!0);this.init()}e=n,i=[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return Ie},get templates(){return fe}})}}],(t=null)&&ye(e.prototype,t),i&&ye(e,i);var r=n.prototype;return r.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=O(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},r.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=null,this.initialised=!1)},r.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},r.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},r.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e)return this;var i=e.id,n=e.groupId,s=void 0===n?-1:n,r=e.value,o=void 0===r?"":r,a=e.label,c=void 0===a?"":a,l=s>=0?this._store.getGroupById(s):null;return this._store.dispatch(ge(i,!0)),t&&this.passedElement.triggerEvent(H,{id:i,value:o,label:c,groupValue:l&&l.value?l.value:null}),this},r.unhighlightItem=function(e){if(!e)return this;var t=e.id,i=e.groupId,n=void 0===i?-1:i,s=e.value,r=void 0===s?"":s,o=e.label,a=void 0===o?"":o,c=n>=0?this._store.getGroupById(n):null;return this._store.dispatch(ge(t,!1)),this.passedElement.triggerEvent(H,{id:t,value:r,label:a,groupValue:c&&c.value?c.value:null}),this},r.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},r.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},r.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},r.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},r.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(i){t._removeItem(i),e&&t._triggerChange(i.value)})),this},r.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(D,{})})),this},r.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(M,{})})),this):this},r.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,i){var n=e?i.value:i;return t.push(n),t}),[]);return this._isSelectOneElement?t[0]:t},r.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},r.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},r.setChoices=function(e,t,i,n){var s=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===i&&(i="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can’t be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of ‘value’ field in passed objects");if(n&&this.clearChoices(),"function"==typeof e){var r=e(this);if("function"==typeof Promise&&r instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return s._handleLoadingState(!0)})).then((function(){return r})).then((function(e){return s.setChoices(e,t,i,n)})).catch((function(e){s.config.silent||console.error(e)})).then((function(){return s._handleLoadingState(!1)})).then((function(){return s}));if(!Array.isArray(r))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof r);return this.setChoices(r,t,i,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){e.choices?s._addGroup({id:parseInt(e.id,10)||null,group:e,valueKey:t,labelKey:i}):s._addChoice({value:e[t],label:e[i],isSelected:e.selected,isDisabled:e.disabled,customProperties:e.customProperties,placeholder:e.placeholder})})),this._stopLoading(),this},r.clearChoices=function(){return this._store.dispatch({type:U}),this},r.clearStore=function(){return this._store.dispatch({type:"CLEAR_ALL"}),this},r.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(ve(!0))),this},r._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState)}},r._renderChoices=function(){var e=this,t=this._store,i=t.activeGroups,n=t.activeChoices,s=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),i.length>=1&&!this._isSearching){var r=n.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));r.length>=1&&(s=this._createChoicesFragment(r,s)),s=this._createGroupsFragment(i,n,s)}else n.length>=1&&(s=this._createChoicesFragment(n,s));if(s.childNodes&&s.childNodes.length>0){var o=this._store.activeItems,a=this._canAddItem(o,this.input.value);a.response?(this.choiceList.append(s),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",a.notice))}else{var c,l;this._isSearching?(l="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,c=this._getTemplate("notice",l,"no-results")):(l="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,c=this._getTemplate("notice",l,"no-choices")),this.choiceList.append(c)}},r._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},r._createGroupsFragment=function(e,t,i){var n=this;return void 0===i&&(i=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var s=function(e){return t.filter((function(t){return n._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===n.config.renderSelectedChoices||!t.selected)}))}(e);if(s.length>=1){var r=n._getTemplate("choiceGroup",e);i.appendChild(r),n._createChoicesFragment(s,i,!0)}})),i},r._createChoicesFragment=function(e,t,i){var n=this;void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1);var s=this.config,r=s.renderSelectedChoices,o=s.searchResultLimit,a=s.renderChoiceLimit,c=this._isSearching?w:this.config.sorter,l=function(e){if("auto"!==r||n._isSelectOneElement||!e.selected){var i=n._getTemplate("choice",e,n.config.itemSelectText);t.appendChild(i)}},h=e;"auto"!==r||this._isSelectOneElement||(h=e.filter((function(e){return!e.selected})));var u=h.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),d=u.placeholderChoices,p=u.normalChoices;(this.config.shouldSort||this._isSearching)&&p.sort(c);var m=h.length,f=this._isSelectOneElement?[].concat(d,p):p;this._isSearching?m=o:a&&a>0&&!i&&(m=a);for(var v=0;v<m;v+=1)f[v]&&l(f[v]);return t},r._createItemsFragment=function(e,t){var i=this;void 0===t&&(t=document.createDocumentFragment());var n=this.config,s=n.shouldSortItems,r=n.sorter,o=n.removeItemButton;return s&&!this._isSelectOneElement&&e.sort(r),this._isTextElement?this.passedElement.value=e:this.passedElement.options=e,e.forEach((function(e){var n=i._getTemplate("item",e,o);t.appendChild(n)})),t},r._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(N,{value:e})},r._selectPlaceholderChoice=function(){var e=this._store.placeholderChoice;e&&(this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value))},r._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var i=t.parentNode.getAttribute("data-id"),n=e.find((function(e){return e.id===parseInt(i,10)}));this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},r._handleItemAction=function(e,t,i){var n=this;if(void 0===i&&(i=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var s=t.getAttribute("data-id");e.forEach((function(e){e.id!==parseInt(s,10)||e.highlighted?!i&&e.highlighted&&n.unhighlightItem(e):n.highlightItem(e)})),this.input.focus()}},r._handleChoiceAction=function(e,t){if(e&&t){var i=t.dataset.id,n=this._store.getChoiceById(i);if(n){var s=e[0]&&e[0].keyCode?e[0].keyCode:null,r=this.dropdown.isActive;n.keyCode=s,this.passedElement.triggerEvent(F,{choice:n}),n.selected||n.disabled||this._canAddItem(e,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),r&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},r._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],i=e.some((function(e){return e.highlighted}));this.config.editItems&&!i&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(i||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},r._startLoading=function(){this._store.dispatch(be(!0))},r._stopLoading=function(){this._store.dispatch(be(!1))},r._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild("."+this.config.classNames.placeholder);e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(t)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},r._handleSearch=function(e){if(e&&this.input.isFocussed){var t=this._store.choices,i=this.config,n=i.searchFloor,s=i.searchChoices,r=t.some((function(e){return!e.active}));if(e&&e.length>=n){var o=s?this._searchChoices(e):0;this.passedElement.triggerEvent(j,{value:e,resultCount:o})}else r&&(this._isSearching=!1,this._store.dispatch(ve(!0)))}},r._canAddItem=function(e,t){var i=!0,n="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var s=function(e,t,i){return void 0===i&&(i="value"),e.some((function(e){return"string"==typeof t?e[i]===t.trim():e[i]===t}))}(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(i=!1,n="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&s&&i&&(i=!1,n="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&i&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(i=!1,n="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:i,notice:n}},r._searchChoices=function(e){var t="string"==typeof e?e.trim():e,i="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t===i+" ")return 0;var n=this._store.searchableChoices,r=t,o=[].concat(this.config.searchFields),a=Object.assign(this.config.fuseOptions,{keys:o}),c=new s.a(n,a).search(r);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(function(e){return{type:G,results:e}}(c)),c.length},r._addEventListeners=function(){var e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},r._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},r._onKeyDown=function(e){var t,i=e.target,n=e.keyCode,s=e.ctrlKey,r=e.metaKey,o=this._store.activeItems,a=this.input.isFocussed,c=this.dropdown.isActive,l=this.itemList.hasChildren(),h=String.fromCharCode(n),u=J,d=Y,p=Z,m=Q,f=ee,v=te,g=ie,_=ne,b=se,y=s||r;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(h)&&this.showDropdown();var E=((t={})[m]=this._onAKey,t[p]=this._onEnterKey,t[f]=this._onEscapeKey,t[v]=this._onDirectionKey,t[_]=this._onDirectionKey,t[g]=this._onDirectionKey,t[b]=this._onDirectionKey,t[d]=this._onDeleteKey,t[u]=this._onDeleteKey,t);E[n]&&E[n]({event:e,target:i,keyCode:n,metaKey:r,activeItems:o,hasFocusedInput:a,hasActiveDropdown:c,hasItems:l,hasCtrlDownKeyPressed:y})},r._onKeyUp=function(e){var t=e.target,i=e.keyCode,n=this.input.value,s=this._store.activeItems,r=this._canAddItem(s,n),o=J,a=Y;if(this._isTextElement)if(r.notice&&n){var c=this._getTemplate("notice",r.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var l=(i===o||i===a)&&!t.value,h=!this._isTextElement&&this._isSearching,u=this._canSearch&&r.response;l&&h?(this._isSearching=!1,this._store.dispatch(ve(!0))):u&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},r._onAKey=function(e){var t=e.hasItems;e.hasCtrlDownKeyPressed&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},r._onEnterKey=function(e){var t=e.event,i=e.target,n=e.activeItems,s=e.hasActiveDropdown,r=Z,o=i.hasAttribute("data-button");if(this._isTextElement&&i.value){var a=this.input.value;this._canAddItem(n,a).response&&(this.hideDropdown(!0),this._addItem({value:a}),this._triggerChange(a),this.clearInput())}if(o&&(this._handleButtonAction(n,i),t.preventDefault()),s){var c=this.dropdown.getChild("."+this.config.classNames.highlightedState);c&&(n[0]&&(n[0].keyCode=r),this._handleChoiceAction(n,c)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},r._onEscapeKey=function(e){e.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())},r._onDirectionKey=function(e){var t,i,n,s=e.event,r=e.hasActiveDropdown,o=e.keyCode,a=e.metaKey,c=ie,l=ne,h=se;if(r||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var u,d=o===c||o===h?1:-1;if(a||o===h||o===l)u=d>0?this.dropdown.element.querySelector("[data-choice-selectable]:last-of-type"):this.dropdown.element.querySelector("[data-choice-selectable]");else{var p=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);u=p?function(e,t,i){if(void 0===i&&(i=1),e instanceof Element&&"string"==typeof t){for(var n=(i>0?"next":"previous")+"ElementSibling",s=e[n];s;){if(s.matches(t))return s;s=s[n]}return s}}(p,"[data-choice-selectable]",d):this.dropdown.element.querySelector("[data-choice-selectable]")}u&&(t=u,i=this.choiceList.element,void 0===(n=d)&&(n=1),t&&(n>0?i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=i.scrollTop)||this.choiceList.scrollToChildElement(u,d),this._highlightChoice(u)),s.preventDefault()}},r._onDeleteKey=function(e){var t=e.event,i=e.target,n=e.hasFocusedInput,s=e.activeItems;!n||i.value||this._isSelectOneElement||(this._handleBackspace(s),t.preventDefault())},r._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},r._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},r._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(Ee&&this.choiceList.element.contains(t)){var i=this.choiceList.element.firstElementChild,n="ltr"===this._direction?e.offsetX>=i.offsetWidth:e.offsetX<i.offsetLeft;this._isScrollingOnIe=n}if(t!==this.input.element){var s=t.closest("[data-button],[data-item],[data-choice]");if(s instanceof HTMLElement){var r=e.shiftKey,o=this._store.activeItems,a=s.dataset;"button"in a?this._handleButtonAction(o,s):"item"in a?this._handleItemAction(o,s,r):"choice"in a&&this._handleChoiceAction(o,s)}e.preventDefault()}}},r._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},r._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},r._onFocus=function(e){var t,i=this,n=e.target;this.containerOuter.element.contains(n)&&((t={}).text=function(){n===i.input.element&&i.containerOuter.addFocusState()},t["select-one"]=function(){i.containerOuter.addFocusState(),n===i.input.element&&i.showDropdown(!0)},t["select-multiple"]=function(){n===i.input.element&&(i.showDropdown(!0),i.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},r._onBlur=function(e){var t=this,i=e.target;if(this.containerOuter.element.contains(i)&&!this._isScrollingOnIe){var n,s=this._store.activeItems.some((function(e){return e.highlighted}));((n={}).text=function(){i===t.input.element&&(t.containerOuter.removeFocusState(),s&&t.unhighlightAll(),t.hideDropdown(!0))},n["select-one"]=function(){t.containerOuter.removeFocusState(),(i===t.input.element||i===t.containerOuter.element&&!t._canSearch)&&t.hideDropdown(!0)},n["select-multiple"]=function(){i===t.input.element&&(t.containerOuter.removeFocusState(),t.hideDropdown(!0),s&&t.unhighlightAll())},n)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},r._onFormReset=function(){this._store.dispatch({type:"RESET_TO",state:this._initialState})},r._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(i.length){var n=e;Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState)).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),n?this._highlightPosition=i.indexOf(n):(n=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||(n=i[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(B,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},r._addItem=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,s=e.choiceId,r=void 0===s?-1:s,o=e.groupId,a=void 0===o?-1:o,c=e.customProperties,l=void 0===c?null:c,h=e.placeholder,u=void 0!==h&&h,d=e.keyCode,p=void 0===d?null:d,m="string"==typeof t?t.trim():t,f=p,v=l,g=this._store.items,_=n||m,b=r||-1,y=a>=0?this._store.getGroupById(a):null,E=g?g.length+1:1;return this.config.prependValue&&(m=this.config.prependValue+m.toString()),this.config.appendValue&&(m+=this.config.appendValue.toString()),this._store.dispatch(function(e){var t=e.value,i=e.label,n=e.id,s=e.choiceId,r=e.groupId,o=e.customProperties,a=e.placeholder,c=e.keyCode;return{type:W,value:t,label:i,id:n,choiceId:s,groupId:r,customProperties:o,placeholder:a,keyCode:c}}({value:m,label:_,id:E,choiceId:b,groupId:a,customProperties:l,placeholder:u,keyCode:f})),this._isSelectOneElement&&this.removeActiveItems(E),this.passedElement.triggerEvent(K,{id:E,value:m,label:_,customProperties:v,groupValue:y&&y.value?y.value:void 0,keyCode:f}),this},r._removeItem=function(e){if(!e||!E("Object",e))return this;var t=e.id,i=e.value,n=e.label,s=e.choiceId,r=e.groupId,o=r>=0?this._store.getGroupById(r):null;return this._store.dispatch(function(e,t){return{type:X,id:e,choiceId:t}}(t,s)),o&&o.value?this.passedElement.triggerEvent(R,{id:t,value:i,label:n,groupValue:o.value}):this.passedElement.triggerEvent(R,{id:t,value:i,label:n}),this},r._addChoice=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,s=e.isSelected,r=void 0!==s&&s,o=e.isDisabled,a=void 0!==o&&o,c=e.groupId,l=void 0===c?-1:c,h=e.customProperties,u=void 0===h?null:h,d=e.placeholder,p=void 0!==d&&d,m=e.keyCode,f=void 0===m?null:m;if(null!=t){var v=this._store.choices,g=n||t,_=v?v.length+1:1,b=this._baseId+"-"+this._idNames.itemChoice+"-"+_;this._store.dispatch(function(e){var t=e.value,i=e.label,n=e.id,s=e.groupId,r=e.disabled,o=e.elementId,a=e.customProperties,c=e.placeholder,l=e.keyCode;return{type:V,value:t,label:i,id:n,groupId:s,disabled:r,elementId:o,customProperties:a,placeholder:c,keyCode:l}}({id:_,groupId:l,elementId:b,value:t,label:g,disabled:a,customProperties:u,placeholder:p,keyCode:f})),r&&this._addItem({value:t,label:g,choiceId:_,customProperties:u,placeholder:p,keyCode:f})}},r._addGroup=function(e){var t=this,i=e.group,n=e.id,s=e.valueKey,r=void 0===s?"value":s,o=e.labelKey,a=void 0===o?"label":o,c=E("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION")),l=n||Math.floor((new Date).valueOf()*Math.random()),h=!!i.disabled&&i.disabled;c?(this._store.dispatch(_e({value:i.label,id:l,active:!0,disabled:h})),c.forEach((function(e){var i=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[r],label:E("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:i,groupId:l,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch(_e({value:i.label,id:i.id,active:!1,disabled:i.disabled}))},r._getTemplate=function(e){var t;if(!e)return null;for(var i=this.config.classNames,n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return(t=this._templates[e]).call.apply(t,[this,i].concat(s))},r._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,S)),this._templates=o()(fe,t)},r._createElements=function(){this.containerOuter=new re({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new re({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new ae({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new ce({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new ce({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new k({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},r._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},r._addPredefinedGroups=function(e){var t=this,i=this.passedElement.placeholderOption;i&&"SELECT"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},r._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var i=e.some((function(e){return e.selected})),n=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,s){var r=e.value,o=e.label,a=e.customProperties,c=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var l=!(!t._isSelectOneElement||i||s!==n)||e.selected,h=e.disabled;t._addChoice({value:r,label:o,isSelected:l,isDisabled:h,customProperties:a,placeholder:c})}else t._addChoice({value:r,label:o,isSelected:e.selected,isDisabled:e.disabled,customProperties:a,placeholder:c})}))},r._addPredefinedItems=function(e){var t=this;e.forEach((function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})}))},r._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[y(e).toLowerCase()]()},r._findAndSelectChoiceByValue=function(e){var t=this,i=this._store.choices.find((function(i){return t.config.valueComparer(i.value,e)}));i&&!i.selected&&this._addItem({value:i.value,label:i.label,choiceId:i.id,groupId:i.groupId,customProperties:i.customProperties,placeholder:i.placeholder,keyCode:i.keyCode})},r._generatePlaceholderValue=function(){if(this._isSelectElement){var e=this.passedElement.placeholderOption;return!!e&&e.text}var t=this.config,i=t.placeholder,n=t.placeholderValue,s=this.passedElement.element.dataset;if(i){if(n)return n;if(s.placeholder)return s.placeholder}return!1},n}();t.default=Se}]).default},"object"==typeof i&&"object"==typeof t?t.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof i?i.Choices=s():n.Choices=s()},n 411: function _(n,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=n(1);n(67),i.__importStar(n(66)).styles.append(".bk-root {\n /*===============================\n= Choices =\n===============================/\n /===== End of Choices ======/\n}\n.bk-root .choices {\n position: relative;\n margin-bottom: 24px;\n font-size: 16px;\n}\n.bk-root .choices:focus {\n outline: none;\n}\n.bk-root .choices:last-child {\n margin-bottom: 0;\n}\n.bk-root .choices.is-disabled .choices__inner,\n.bk-root .choices.is-disabled .choices__input {\n background-color: #eaeaea;\n cursor: not-allowed;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.bk-root .choices.is-disabled .choices__item {\n cursor: not-allowed;\n}\n.bk-root .choices [hidden] {\n display: none !important;\n}\n.bk-root .choices[data-type*=’select-one’] {\n cursor: pointer;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__inner {\n padding-bottom: 7.5px;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__input {\n display: block;\n width: 100%;\n padding: 10px;\n border-bottom: 1px solid #dddddd;\n background-color: #ffffff;\n margin: 0;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n padding: 0;\n background-size: 8px;\n position: absolute;\n top: 50%;\n right: 0;\n margin-top: -10px;\n margin-right: 25px;\n height: 20px;\n width: 20px;\n border-radius: 10em;\n opacity: 0.5;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button:hover,\n.bk-root .choices[data-type*=’select-one’] .choices__button:focus {\n opacity: 1;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__button:focus {\n box-shadow: 0px 0px 0px 2px #00bcd4;\n}\n.bk-root .choices[data-type*=’select-one’] .choices__item[data-value=’’] .choices__button {\n display: none;\n}\n.bk-root .choices[data-type*=’select-one’]:after {\n content: ‘’;\n height: 0;\n width: 0;\n border-style: solid;\n border-color: #333333 transparent transparent transparent;\n border-width: 5px;\n position: absolute;\n right: 11.5px;\n top: 50%;\n margin-top: -2.5px;\n pointer-events: none;\n}\n.bk-root .choices[data-type*=’select-one’].is-open:after {\n border-color: transparent transparent #333333 transparent;\n margin-top: -7.5px;\n}\n.bk-root .choices[data-type*=’select-one’][dir=’rtl’]:after {\n left: 11.5px;\n right: auto;\n}\n.bk-root .choices[data-type*=’select-one’][dir=’rtl’] .choices__button {\n right: auto;\n left: 0;\n margin-left: 25px;\n margin-right: 0;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__inner,\n.bk-root .choices[data-type*=’text’] .choices__inner {\n cursor: text;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__button,\n.bk-root .choices[data-type*=’text’] .choices__button {\n position: relative;\n display: inline-block;\n margin-top: 0;\n margin-right: -4px;\n margin-bottom: 0;\n margin-left: 8px;\n padding-left: 16px;\n border-left: 1px solid #008fa1;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n background-size: 8px;\n width: 8px;\n line-height: 1;\n opacity: 0.75;\n border-radius: 0;\n}\n.bk-root .choices[data-type*=’select-multiple’] .choices__button:hover,\n.bk-root .choices[data-type*=’select-multiple’] .choices__button:focus,\n.bk-root .choices[data-type*=’text’] .choices__button:hover,\n.bk-root .choices[data-type*=’text’] .choices__button:focus {\n opacity: 1;\n}\n.bk-root .choices__inner {\n display: inline-block;\n vertical-align: top;\n width: 100%;\n background-color: #f9f9f9;\n padding: 7.5px 7.5px 3.75px;\n border: 1px solid #dddddd;\n border-radius: 2.5px;\n font-size: 14px;\n min-height: 44px;\n overflow: hidden;\n}\n.bk-root .is-focused .choices__inner,\n.bk-root .is-open .choices__inner {\n border-color: #b7b7b7;\n}\n.bk-root .is-open .choices__inner {\n border-radius: 2.5px 2.5px 0 0;\n}\n.bk-root .is-flipped.is-open .choices__inner {\n border-radius: 0 0 2.5px 2.5px;\n}\n.bk-root .choices__list {\n margin: 0;\n padding-left: 0;\n list-style: none;\n}\n.bk-root .choices__list–single {\n display: inline-block;\n padding: 4px 16px 4px 4px;\n width: 100%;\n}\n.bk-root [dir=’rtl’] .choices__list–single {\n padding-right: 4px;\n padding-left: 16px;\n}\n.bk-root .choices__list–single .choices__item {\n width: 100%;\n}\n.bk-root .choices__list–multiple {\n display: inline;\n}\n.bk-root .choices__list–multiple .choices__item {\n display: inline-block;\n vertical-align: middle;\n border-radius: 20px;\n padding: 4px 10px;\n font-size: 12px;\n font-weight: 500;\n margin-right: 3.75px;\n margin-bottom: 3.75px;\n background-color: #00bcd4;\n border: 1px solid #00a5bb;\n color: #ffffff;\n word-break: break-all;\n box-sizing: border-box;\n}\n.bk-root .choices__list–multiple .choices__item[data-deletable] {\n padding-right: 5px;\n}\n.bk-root [dir=’rtl’] .choices__list–multiple .choices__item {\n margin-right: 0;\n margin-left: 3.75px;\n}\n.bk-root .choices__list–multiple .choices__item.is-highlighted {\n background-color: #00a5bb;\n border: 1px solid #008fa1;\n}\n.bk-root .is-disabled .choices__list–multiple .choices__item {\n background-color: #aaaaaa;\n border: 1px solid #919191;\n}\n.bk-root .choices__list–dropdown {\n visibility: hidden;\n z-index: 1;\n position: absolute;\n width: 100%;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n top: 100%;\n margin-top: -1px;\n border-bottom-left-radius: 2.5px;\n border-bottom-right-radius: 2.5px;\n overflow: hidden;\n word-break: break-all;\n will-change: visibility;\n}\n.bk-root .choices__list–dropdown.is-active {\n visibility: visible;\n}\n.bk-root .is-open .choices__list–dropdown {\n border-color: #b7b7b7;\n}\n.bk-root .is-flipped .choices__list–dropdown {\n top: auto;\n bottom: 100%;\n margin-top: 0;\n margin-bottom: -1px;\n border-radius: 0.25rem 0.25rem 0 0;\n}\n.bk-root .choices__list–dropdown .choices__list {\n position: relative;\n max-height: 300px;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n will-change: scroll-position;\n}\n.bk-root .choices__list–dropdown .choices__item {\n position: relative;\n padding: 10px;\n font-size: 14px;\n}\n.bk-root [dir=’rtl’] .choices__list–dropdown .choices__item {\n text-align: right;\n}\n@media (min-width: 640px) {\n .bk-root .choices__list–dropdown .choices__item–selectable {\n padding-right: 100px;\n }\n .bk-root .choices__list–dropdown .choices__item–selectable:after {\n content: attr(data-select-text);\n font-size: 12px;\n opacity: 0;\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n }\n .bk-root [dir=’rtl’] .choices__list–dropdown .choices__item–selectable {\n text-align: right;\n padding-left: 100px;\n padding-right: 10px;\n }\n .bk-root [dir=’rtl’] .choices__list–dropdown .choices__item–selectable:after {\n right: auto;\n left: 10px;\n }\n}\n.bk-root .choices__list–dropdown .choices__item–selectable.is-highlighted {\n background-color: #f2f2f2;\n}\n.bk-root .choices__list–dropdown .choices__item–selectable.is-highlighted:after {\n opacity: 0.5;\n}\n.bk-root .choices__item {\n cursor: default;\n}\n.bk-root .choices__item–selectable {\n cursor: pointer;\n}\n.bk-root .choices__item–disabled {\n cursor: not-allowed;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n opacity: 0.5;\n}\n.bk-root .choices__heading {\n font-weight: 600;\n font-size: 12px;\n padding: 10px;\n border-bottom: 1px solid #f7f7f7;\n color: gray;\n}\n.bk-root .choices__button {\n text-indent: -9999px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n cursor: pointer;\n}\n.bk-root .choices__button:focus {\n outline: none;\n}\n.bk-root .choices__input {\n display: inline-block;\n vertical-align: baseline;\n background-color: #f9f9f9;\n font-size: 14px;\n margin-bottom: 5px;\n border: 0;\n border-radius: 0;\n max-width: 100%;\n padding: 4px 0 4px 2px;\n}\n.bk-root .choices__input:focus {\n outline: 0;\n}\n.bk-root [dir=’rtl’] .choices__input {\n padding-right: 2px;\n padding-left: 0;\n}\n.bk-root .choices__placeholder {\n opacity: 0.5;\n}\n.bk-root .choices {\n width: 100%;\n}\n.bk-root .choices__inner .choices__item.light {\n background-color: rgba(0, 126, 255, 0.08);\n border-radius: 5px;\n border: 1px solid rgba(0, 126, 255, 0.24);\n color: #007eff;\n}\n.bk-root .choices__inner .choices__item.solid {\n background-color: #1f77b4;\n border: none;\n border-radius: 5px;\n color: white;\n}\n.bk-root .choices__inner .choices__item.solid .is-highlighted {\n background-color: #1f77b4;\n border: none;\n}\n.bk-root .choices__input {\n background-color: transparent;\n}\n.bk-root .choices__inner {\n background: transparent;\n border: 1px solid darkgray;\n border-radius: 5px;\n min-height: unset;\n}\n.bk-root .choices__list {\n white-space: initial;\n}\n.bk-root .choices[data-type*=select-multiple] .choices__button.light {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDA3ZWZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n}\n.bk-root .choices[data-type*=select-multiple] .choices__button.solid {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjZmZmZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);\n border-left: 1px solid white;\n opacity: 1;\n}\n")},n 412: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const s=e(402),i=e(66);class n extends s.MarkupView{render(){super.render();const e=i.pre({style:{overflow:"auto"}},this.model.text);this.markup_el.appendChild(e)}}r.PreTextView=n,n.__name__="PreTextView";class _ extends s.Markup{constructor(e){super(e)}static init_PreText(){this.prototype.default_view=n}}r.PreText=_,_.__name__="PreText",_.init_PreText()},n 413: function _(t,o,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),a=t(388),n=t(66),u=i.__importStar(t(19)),s=t(145);class _ extends a.ButtonGroupView{change_active(t){this.model.active!==t&&(this.model.active=t)}_update_active(){const{active:t}=this.model;this._buttons.forEach((o,e)=>{n.classes(o).toggle(s.bk_active,t===e)})}}e.RadioButtonGroupView=_,_.__name__="RadioButtonGroupView";class c extends a.ButtonGroup{constructor(t){super(t)}static init_RadioButtonGroup(){this.prototype.default_view=_,this.define({active:[u.Any,null]})}}e.RadioButtonGroup=c,c.__name__="RadioButtonGroup",c.init_RadioButtonGroup()},n 414: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const n=e(1),a=e(66),o=e(26),d=n.__importStar(e(19)),s=e(390),l=e(145),r=e(385);class p extends s.InputGroupView{render(){super.render();const e=a.div({class:[r.bk_input_group,this.model.inline?l.bk_inline:null]});this.el.appendChild(e);const i=o.uniqueId(),{active:t,labels:n}=this.model;for(let o=0;o<n.length;o++){const d=a.input({type:"radio",name:i,value:${o}});d.addEventListener("change",()=>this.change_active(o)),this.model.disabled&&(d.disabled=!0),o==t&&(d.checked=!0);const s=a.label({},d,a.span({},n[o]));e.appendChild(s)}}change_active(e){this.model.active=e}}t.RadioGroupView=p,p.__name__="RadioGroupView";class u extends s.InputGroup{constructor(e){super(e)}static init_RadioGroup(){this.prototype.default_view=p,this.define({active:[d.Number],labels:[d.Array,[]],inline:[d.Boolean,!1]})}}t.RadioGroup=u,u.__name__="RadioGroup",u.init_RadioGroup()},n 415: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1).__importStar(e(159)),a=e(396),n=e(8);class o extends a.AbstractRangeSliderView{}r.RangeSliderView=o,o.__name__="RangeSliderView";class s extends a.AbstractSlider{constructor(e){super(e),this.behaviour="drag",this.connected=[!1,!0,!1]}static init_RangeSlider(){this.prototype.default_view=o,this.override({format:"0[.]00"})}_formatter(e,t){return n.isString(t)?i.format(e,t):t.doFormat([e],{loc:0})[0]}}r.RangeSlider=s,s.__name__="RangeSlider",s.init_RangeSlider()},n 416: function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e(1),n=e(66),l=e(8),o=e(70),c=i.__importStar(e(19)),d=e(384),a=e(385);class r extends d.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render())}build_options(e){return e.map(e=>{let t,s;l.isString(e)?t=s=e:[t,s]=e;const i=this.model.value==t;return n.option({selected:i,value:t},s)})}render(){let e;if(super.render(),l.isArray(this.model.options))e=this.build_options(this.model.options);else{e=[];const t=this.model.options;for(const s in t){const i=t[s];e.push(n.optgroup({label:s},this.build_options(i)))}}this.select_el=n.select({class:a.bk_input,id:this.model.id,name:this.model.name,disabled:this.model.disabled},e),this.select_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.select_el)}change_input(){const e=this.select_el.value;o.logger.debug(selectbox: value = ${e}),this.model.value=e,super.change_input()}}s.SelectView=r,r.__name__="SelectView";class u extends d.InputWidget{constructor(e){super(e)}static init_Select(){this.prototype.default_view=r,this.define({value:[c.String,""],options:[c.Any,[]]})}}s.Select=u,u.__name__="Select",u.init_Select()},n 417: function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const i=e(1).__importStar(e(159)),o=e(396),s=e(8);class _ extends o.AbstractSliderView{}r.SliderView=_,_.__name__="SliderView";class a extends o.AbstractSlider{constructor(e){super(e),this.behaviour="tap",this.connected=[!0,!1]}static init_Slider(){this.prototype.default_view=_,this.override({format:"0[.]00"})}_formatter(e,t){return s.isString(t)?i.format(e,t):t.doFormat([e],{loc:0})[0]}}r.Slider=a,a.__name__="Slider",a.init_Slider()},n 418: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e(1),s=e(384),l=e(66),h=n.__importStar(e(19)),o=e(385),{floor:p,max:d,min:u}=Math;function r(e){return p(e)!==e?e.toFixed(16).replace(/0+$/,"").split(".")[1].length:0}class a extends s.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.low.change,()=>{const{low:e}=this.model;null!=e&&(this.input_el.min=e.toFixed(16))}),this.connect(this.model.properties.high.change,()=>{const{high:e}=this.model;null!=e&&(this.input_el.max=e.toFixed(16))}),this.connect(this.model.properties.step.change,()=>{const{step:e}=this.model;this.input_el.step=e.toFixed(16)}),this.connect(this.model.properties.value.change,()=>{const{value:e,step:t}=this.model;this.input_el.value=e.toFixed(r(t)).replace(/(\.[0-9]*[1-9])0+$|\.0*$/,"$1")}),this.connect(this.model.properties.disabled.change,()=>{this.input_el.disabled=this.model.disabled})}render(){super.render(),this.input_el=l.input({type:"number",class:o.bk_input,name:this.model.name,min:this.model.low,max:this.model.high,value:this.model.value,step:this.model.step,disabled:this.model.disabled}),this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){if(this.input_el.value){const{step:e}=this.model;let t=Number(this.input_el.value);null!=this.model.low&&(t=d(t,this.model.low)),null!=this.model.high&&(t=u(t,this.model.high)),this.model.value=Number(t.toFixed(r(e))),super.change_input()}}}i.SpinnerView=a,a.__name__="SpinnerView";class c extends s.InputWidget{constructor(e){super(e)}static init_Spinner(){this.prototype.default_view=a,this.define({value:[h.Number,0],low:[h.Number,null],high:[h.Number,null],step:[h.Number,1]})}}i.Spinner=c,c.__name__="Spinner",c.init_Spinner()},n 419: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),n=e(383),l=e(384),h=e(66),o=s.__importStar(e(19)),a=e(385);class p extends l.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,()=>this.input_el.name=this.model.name||""),this.connect(this.model.properties.value.change,()=>this.input_el.value=this.model.value),this.connect(this.model.properties.disabled.change,()=>this.input_el.disabled=this.model.disabled),this.connect(this.model.properties.placeholder.change,()=>this.input_el.placeholder=this.model.placeholder),this.connect(this.model.properties.rows.change,()=>this.input_el.rows=this.model.rows),this.connect(this.model.properties.cols.change,()=>this.input_el.cols=this.model.cols),this.connect(this.model.properties.max_length.change,()=>this.input_el.maxLength=this.model.max_length)}render(){super.render(),this.input_el=h.textarea({class:a.bk_input,name:this.model.name,disabled:this.model.disabled,placeholder:this.model.placeholder,cols:this.model.cols,rows:this.model.rows,maxLength:this.model.max_length}),this.input_el.textContent=this.model.value,this.input_el.addEventListener("change",()=>this.change_input()),this.group_el.appendChild(this.input_el)}change_input(){this.model.value=this.input_el.value,super.change_input()}}i.TextAreaInputView=p,p.__name__="TextAreaInputView";class r extends n.TextInput{constructor(e){super(e)}static init_TextAreaInput(){this.prototype.default_view=p,this.define({cols:[o.Number,20],rows:[o.Number,2],max_length:[o.Number,500]})}}i.TextAreaInput=r,r.__name__="TextAreaInput",r.init_TextAreaInput()},n 420: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),c=e(378),o=e(66),a=s.__importStar(e(19)),n=e(145);class l extends c.AbstractButtonView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,()=>this._update_active())}render(){super.render(),this._update_active()}click(){this.model.active=!this.model.active,super.click()}_update_active(){o.classes(this.button_el).toggle(n.bk_active,this.model.active)}}i.ToggleView=l,l.__name__="ToggleView";class _ extends c.AbstractButton{constructor(e){super(e)}static init_Toggle(){this.prototype.default_view=l,this.define({active:[a.Boolean,!1]}),this.override({label:"Toggle"})}}i.Toggle=_,_.__name__="Toggle",_.init_Toggle()},n }, 376, {"models/widgets/main":376,"models/widgets/index":377,"models/widgets/abstract_button":378,"models/widgets/control":379,"models/widgets/widget":441,"models/widgets/abstract_icon":381,"models/widgets/autocomplete_input":382,"models/widgets/text_input":383,"models/widgets/input_widget":384,"styles/widgets/inputs":385,"models/widgets/button":386,"models/widgets/checkbox_button_group":387,"models/widgets/button_group":388,"models/widgets/checkbox_group":389,"models/widgets/input_group":390,"models/widgets/color_picker":391,"models/widgets/date_picker":392,"styles/widgets/flatpickr":394,"models/widgets/date_range_slider":395,"models/widgets/abstract_slider":396,"styles/widgets/sliders":398,"styles/widgets/nouislider":399,"models/widgets/date_slider":400,"models/widgets/div":401,"models/widgets/markup":402,"styles/clearfix":403,"models/widgets/dropdown":404,"models/widgets/file_input":405,"models/widgets/multiselect":406,"models/widgets/paragraph":407,"models/widgets/password_input":408,"models/widgets/multichoice":409,"styles/widgets/choices":411,"models/widgets/pretext":412,"models/widgets/radio_button_group":413,"models/widgets/radio_group":414,"models/widgets/range_slider":415,"models/widgets/selectbox":416,"models/widgets/slider":417,"models/widgets/spinner":418,"models/widgets/textarea_input":419,"models/widgets/toggle":420}, {});n })nnn /* END bokeh-widgets.min.js /n },n n function(Bokeh) {n / BEGIN bokeh-tables.min.js /n /!n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn * All rights reserved.n * n * Redistribution and use in source and binary forms, with or without modification,n * are permitted provided that the following conditions are met:n * n * Redistributions of source code must retain the above copyright notice,n * this list of conditions and the following disclaimer.n * n * Redistributions in binary form must reproduce the above copyright notice,n * this list of conditions and the following disclaimer in the documentationn * and/or other materials provided with the distribution.n * n * Neither the name of Anaconda nor the names of any contributorsn * may be used to endorse or promote products derived from this softwaren * without specific prior written permission.n * n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn * THE POSSIBILITY OF SUCH DAMAGE.n /n (function(root, factory) {n factory(root["Bokeh"], "2.0.2");n })(this, function(Bokeh, version) {n var define;n return (function(modules, entry, aliases, externals) {n const bokeh = typeof Bokeh !== "undefined" && (version != null ? Bokeh[version] : Bokeh);n if (bokeh != null) {n return bokeh.register_plugin(modules, entry, aliases);n } else {n throw new Error("Cannot find Bokeh " + version + ". You have to load it prior to loading plugins.");n }n })n ({n 421: function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const r=e(1).__importStar(e(422));o.Tables=r,e(7).register_models(r)},n 422: function _(a,g,r){Object.defineProperty(r,"__esModule",{value:!0});const e=a(1);e.__exportStar(a(423),r),e.__exportStar(a(444),r);var t=a(424);r.DataTable=t.DataTable;var o=a(447);r.TableColumn=o.TableColumn;var n=a(440);r.TableWidget=n.TableWidget;var u=a(448);r.AvgAggregator=u.AvgAggregator,r.MinAggregator=u.MinAggregator,r.MaxAggregator=u.MaxAggregator,r.SumAggregator=u.SumAggregator;var l=a(449);r.GroupingInfo=l.GroupingInfo,r.DataCube=l.DataCube},n 423: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1).__importStar(e(19)),r=e(66),a=e(64),n=e(69),l=e(424),u=e(442);class d extends a.DOMView{constructor(e){super(Object.assign({model:e.column.model},e)),this.args=e,this.initialize(),this.render()}get emptyValue(){return null}initialize(){super.initialize(),this.inputEl=this._createInput(),this.defaultValue=null}async lazy_initialize(){throw new Error("unsupported")}css_classes(){return super.css_classes().concat(u.bk_cell_editor)}render(){super.render(),this.args.container.append(this.el),this.el.appendChild(this.inputEl),this.renderEditor(),this.disableNavigation()}renderEditor(){}disableNavigation(){this.inputEl.addEventListener("keydown",e=>{switch(e.keyCode){case r.Keys.Left:case r.Keys.Right:case r.Keys.Up:case r.Keys.Down:case r.Keys.PageUp:case r.Keys.PageDown:e.stopImmediatePropagation()}})}destroy(){this.remove()}focus(){this.inputEl.focus()}show(){}hide(){}position(){}getValue(){return this.inputEl.value}setValue(e){this.inputEl.value=e}serializeValue(){return this.getValue()}isValueChanged(){return!(""==this.getValue()&&null==this.defaultValue)&&this.getValue()!==this.defaultValue}applyValue(e,t){const i=this.args.grid.getData(),s=i.index.indexOf(e[l.DTINDEX_NAME]);i.setField(s,this.args.column.field,t)}loadValue(e){const t=e[this.args.column.field];this.defaultValue=null!=t?t:this.emptyValue,this.setValue(this.defaultValue)}validateValue(e){if(this.args.column.validator){const t=this.args.column.validator(e);if(!t.valid)return t}return{valid:!0,msg:null}}validate(){return this.validateValue(this.getValue())}}i.CellEditorView=d,d.__name__="CellEditorView";class o extends n.Model{}i.CellEditor=o,o.__name__="CellEditor";class _ extends d{get emptyValue(){return""}_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}}i.StringEditorView=_,_.__name__="StringEditorView";class c extends o{static init_StringEditor(){this.prototype.default_view=_,this.define({completions:[s.Array,[]]})}}i.StringEditor=c,c.__name__="StringEditor",c.init_StringEditor();class p extends d{_createInput(){return r.textarea()}}i.TextEditorView=p,p.__name__="TextEditorView";class h extends o{static init_TextEditor(){this.prototype.default_view=p}}i.TextEditor=h,h.__name__="TextEditor",h.init_TextEditor();class E extends d{_createInput(){return r.select()}renderEditor(){for(const e of this.model.options)this.inputEl.appendChild(r.option({value:e},e));this.focus()}}i.SelectEditorView=E,E.__name__="SelectEditorView";class V extends o{static init_SelectEditor(){this.prototype.default_view=E,this.define({options:[s.Array,[]]})}}i.SelectEditor=V,V.__name__="SelectEditor",V.init_SelectEditor();class m extends d{_createInput(){return r.input({type:"text"})}}i.PercentEditorView=m,m.__name__="PercentEditorView";class f extends o{static init_PercentEditor(){this.prototype.default_view=m}}i.PercentEditor=f,f.__name__="PercentEditor",f.init_PercentEditor();class x extends d{_createInput(){return r.input({type:"checkbox",value:"true"})}renderEditor(){this.focus()}loadValue(e){this.defaultValue=!!e[this.args.column.field],this.inputEl.checked=this.defaultValue}serializeValue(){return this.inputEl.checked}}i.CheckboxEditorView=x,x.__name__="CheckboxEditorView";class w extends o{static init_CheckboxEditor(){this.prototype.default_view=x}}i.CheckboxEditor=w,w.__name__="CheckboxEditor",w.init_CheckboxEditor();class g extends d{_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){return parseInt(this.getValue(),10)||0}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return isNaN(e)?{valid:!1,msg:"Please enter a valid integer"}:super.validateValue(e)}}i.IntEditorView=g,g.__name__="IntEditorView";class v extends o{static init_IntEditor(){this.prototype.default_view=g,this.define({step:[s.Number,1]})}}i.IntEditor=v,v.__name__="IntEditor",v.init_IntEditor();class y extends d{_createInput(){return r.input({type:"text"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){return parseFloat(this.getValue())||0}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return isNaN(e)?{valid:!1,msg:"Please enter a valid number"}:super.validateValue(e)}}i.NumberEditorView=y,y.__name__="NumberEditorView";class b extends o{static init_NumberEditor(){this.prototype.default_view=y,this.define({step:[s.Number,.01]})}}i.NumberEditor=b,b.__name__="NumberEditor",b.init_NumberEditor();class I extends d{_createInput(){return r.input({type:"text"})}}i.TimeEditorView=I,I.__name__="TimeEditorView";class N extends o{static init_TimeEditor(){this.prototype.default_view=I}}i.TimeEditor=N,N.__name__="TimeEditor",N.init_TimeEditor();class C extends d{_createInput(){return r.input({type:"text"})}get emptyValue(){return new Date}renderEditor(){this.inputEl.focus(),this.inputEl.select()}destroy(){super.destroy()}show(){super.show()}hide(){super.hide()}position(){return super.position()}getValue(){}setValue(e){}}i.DateEditorView=C,C.__name__="DateEditorView";class D extends o{static init_DateEditor(){this.prototype.default_view=C}}i.DateEditor=D,D.__name__="DateEditor",D.init_DateEditor()},n 424: function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e(1),o=e(425),n=e(429),l=e(430),r=e(431),d=s.__importStar(e(19)),a=e(26),h=e(8),c=e(9),u=e(24),_=e(70),m=e(187),g=e(440),p=e(441),b=e(442);i.DTINDEX_NAME="__bkdt_internal_index__";class w{constructor(e,t){this.init(e,t)}init(e,t){if(i.DTINDEX_NAME in e.data)throw new Error(`special name ${i.DTINDEX_NAME} cannot be used as a data table column`);this.source=e,this.view=t,this.index=this.view.indices}getLength(){return this.index.length}getItem(e){const t={};for(const i of u.keys(this.source.data))t[i]=this.source.data[i][this.index[e]];return t[i.DTINDEX_NAME]=this.index[e],t}getField(e,t){return t==i.DTINDEX_NAME?this.index[e]:this.source.data[t][this.index[e]]}setField(e,t,i){const s=this.index[e];this.source.patch({[t]:[[s,i]]})}getItemMetadata(e){return null}getRecords(){return c.range(0,this.getLength()).map(e=>this.getItem(e))}sort(e){let t=e.map(e=>[e.sortCol.field,e.sortAsc?1:-1]);0==t.length&&(t=[[i.DTINDEX_NAME,1]]);const s=this.getRecords(),o=this.index.slice();this.index.sort((function(e,i){for(const[n,l]of t){const t=s[o.indexOf(e)][n],r=s[o.indexOf(i)][n],d=t==r?0:t>r?l:-l;if(0!=d)return d}return 0}))}}i.TableDataProvider=w,w.__name__="TableDataProvider";class x extends p.WidgetView{constructor(){super(…arguments),this._in_selection_update=!1,this._warned_not_reorderable=!1}connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.source.streaming,()=>this.updateGrid()),this.connect(this.model.source.patching,()=>this.updateGrid()),this.connect(this.model.source.change,()=>this.updateGrid()),this.connect(this.model.source.properties.data.change,()=>this.updateGrid()),this.connect(this.model.source.selected.change,()=>this.updateSelection()),this.connect(this.model.source.selected.properties.indices.change,()=>this.updateSelection())}_update_layout(){this.layout=new m.LayoutItem,this.layout.set_sizing(this.box_sizing())}update_position(){super.update_position(),this.grid.resizeCanvas()}updateGrid(){if(this.model.view.compute_indices(),this.data.init(this.model.source,this.model.view),this.model.sortable){const e=this.grid.getColumns(),t=this.grid.getSortColumns().map(t=>({sortCol:{field:e[this.grid.getColumnIndex(t.columnId)].field},sortAsc:t.sortAsc}));this.data.sort(t)}this.grid.invalidate(),this.grid.render()}updateSelection(){if(this._in_selection_update)return;const{selected:e}=this.model.source,t=e.indices.map(e=>this.data.index.indexOf(e)).sort();this._in_selection_update=!0,this.grid.setSelectedRows(t),this._in_selection_update=!1;const i=this.grid.getViewport(),s=this.model.get_scroll_index(i,t);null!=s&&this.grid.scrollRowToTop(s)}newIndexColumn(){return{id:a.uniqueId(),name:this.model.index_header,field:i.DTINDEX_NAME,width:this.model.index_width,behavior:"select",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:b.bk_cell_index,headerCssClass:b.bk_header_index}}css_classes(){return super.css_classes().concat(b.bk_data_table)}render(){let e,t=this.model.columns.map(e=>e.toColumn());if("checkbox"==this.model.selectable&&(e=new n.CheckboxSelectColumn({cssClass:b.bk_cell_select}),t.unshift(e.getColumnDefinition())),null!=this.model.index_position){const e=this.model.index_position,i=this.newIndexColumn();-1==e?t.push(i):e<-1?t.splice(e+1,0,i):t.splice(e,0,i)}let{reorderable:i}=this.model;!i||"undefined"!=typeof $&&null!=$.fn&&null!=$.fn.sortable||(this._warned_not_reorderable||(_.logger.warn("jquery-ui is required to enable DataTable.reorderable"),this._warned_not_reorderable=!0),i=!1);const s={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:i,forceFitColumns:this.model.fit_columns,multiColumnSort:this.model.sortable,editable:this.model.editable,autoEdit:!1,rowHeight:this.model.row_height};if(this.data=new w(this.model.source,this.model.view),this.grid=new r.Grid(this.el,this.data,t,s),this.grid.onSort.subscribe((e,i)=>{this.model.sortable&&(t=i.sortCols,this.data.sort(t),this.grid.invalidate(),this.updateSelection(),this.grid.render(),this.model.header_row||this._hide_header(),this.model.update_sort_columns(t))}),!1!==this.model.selectable){this.grid.setSelectionModel(new o.RowSelectionModel({selectActiveRow:null==e})),null!=e&&this.grid.registerPlugin(e);const t={dataItemColumnValueExtractor(e,t){let i=e[t.field];return h.isString(i)&&(i=i.replace(/\n/g,"\\n")),i},includeHeaderWhenCopying:!1};this.grid.registerPlugin(new l.CellExternalCopyManager(t)),this.grid.onSelectedRowsChanged.subscribe((e,t)=>{this._in_selection_update||(this.model.source.selected.indices=t.rows.map(e=>this.data.index[e]))}),this.updateSelection(),this.model.header_row||this._hide_header()}}_hide_header(){for(const e of Array.from(this.el.querySelectorAll(".slick-header-columns")))e.style.height="0px";this.grid.resizeCanvas()}}i.DataTableView=x,x.__name__="DataTableView";class f extends g.TableWidget{constructor(e){super(e),this._sort_columns=[]}get sort_columns(){return this._sort_columns}static init_DataTable(){this.prototype.default_view=x,this.define({columns:[d.Array,[]],fit_columns:[d.Boolean,!0],sortable:[d.Boolean,!0],reorderable:[d.Boolean,!0],editable:[d.Boolean,!1],selectable:[d.Any,!0],index_position:[d.Int,0],index_header:[d.String,"#"],index_width:[d.Int,40],scroll_to_selection:[d.Boolean,!0],header_row:[d.Boolean,!0],row_height:[d.Int,25]}),this.override({width:600,height:400})}update_sort_columns(e){return this._sort_columns=e.map(e=>({field:e.sortCol.field,sortAsc:e.sortAsc})),null}get_scroll_index(e,t){return this.scroll_to_selection&&0!=t.length?c.some(t,t=>e.top<=t&&t<=e.bottom)?null:Math.max(0,Math.min(…t)-1):null}}i.DataTable=f,f.__name__="DataTable",f.init_DataTable()},n 425: function _(e,t,n){var o=e(426),r=e(428);t.exports={RowSelectionModel:function(e){var t,n,l,i=[],c=this,u=new r.EventHandler,s={selectActiveRow:!0};function a(e){return function(){n||(n=!0,e.apply(this,arguments),n=!1)}}function f(e){for(var t=[],n=0;n<e.length;n++)for(var o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}function h(e){for(var n=[],o=t.getColumns().length-1,l=0;l<e.length;l++)n.push(new r.Range(e[l],0,e[l],o));return n}function w(){return f(i)}function g(e){(i&&0!==i.length||e&&0!==e.length)&&(i=e,c.onSelectedRangesChanged.notify(i))}function v(e,n){l.selectActiveRow&&null!=n.row&&g([new r.Range(n.row,0,n.row,t.getColumns().length-1)])}function p(e){var n=t.getActiveCell();if(t.getOptions().multiSelect&&n&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which==r.keyCode.UP||e.which==r.keyCode.DOWN)){var o=w();o.sort((function(e,t){return e-t})),o.length||(o=[n.row]);var l,i=o[0],c=o[o.length-1];if((l=e.which==r.keyCode.DOWN?n.row<c||i==c?++c:++i:n.row<c?–c:–i)>=0&&l<t.getDataLength())t.scrollRowIntoView(l),g(h(function(e,t){var n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}(i,c)));e.preventDefault(),e.stopPropagation()}}function y(e){var n=t.getCellFromEvent(e);if(!n||!t.canCellBeActive(n.row,n.cell))return!1;if(!t.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;var r=f(i),l=o.inArray(n.row,r);if(-1===l&&(e.ctrlKey||e.metaKey))r.push(n.row),t.setActiveCell(n.row,n.cell);else if(-1!==l&&(e.ctrlKey||e.metaKey))r=o.grep(r,(function(e,t){return e!==n.row})),t.setActiveCell(n.row,n.cell);else if(r.length&&e.shiftKey){var c=r.pop(),u=Math.min(n.row,c),s=Math.max(n.row,c);r=[];for(var a=u;a<=s;a++)a!==c&&r.push(a);r.push(c),t.setActiveCell(n.row,n.cell)}return g(h(r)),e.stopImmediatePropagation(),!0}o.extend(this,{getSelectedRows:w,setSelectedRows:function(e){g(h(e))},getSelectedRanges:function(){return i},setSelectedRanges:g,init:function(n){l=o.extend(!0,{},s,e),t=n,u.subscribe(t.onActiveCellChanged,a(v)),u.subscribe(t.onKeyDown,a(p)),u.subscribe(t.onClick,a(y))},destroy:function(){u.unsubscribeAll()},onSelectedRangesChanged:new r.Event})}}},n 426: function _(e,n,f){n.exports="undefined"!=typeof $?$:e(427)},n 427: function _(e,t,n){n /!n * jQuery JavaScript Library v3.4.1n * https://jquery.com/n n * Includes Sizzle.jsn * https://sizzlejs.com/n *n * Copyright JS Foundation and other contributorsn * Released under the MIT licensen * https://jquery.org/licensen *n * Date: 2019-05-01T21:04Zn */n !function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var i,o,a=(n=n||r).createElement("script");if(a.text=e,t)for(i in y)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,o);n.head.appendChild(a).parentNode.removeChild(a)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}b.fn=b.prototype={jquery:"3.4.1",constructor:b,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return b.each(this,e)},map:function(e){return this.pushStack(b.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},b.extend=b.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s–);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(b.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||b.isPlainObject(n)?n:{},i=!1,a[t]=b.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},b.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===d)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){m(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(w,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?b.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(T(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(b.fn[Symbol.iterator]=n[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var C=n /!n * Sizzle CSS Selector Engine v2.3.4n * https://sizzlejs.com/n n * Copyright JS Foundation and other contributorsn * Released under the MIT licensen * https://js.foundation/n *n * Date: 2019-04-08n */n function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ue(),k=ue(),S=ue(),N=ue(),A=function(e,t){return e===t&&(f=!0),0},D={}.hasOwnProperty,j=[],q=j.pop,L=j.push,H=j.push,O=j.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:’((?:\\\\.|[^\\\\’]))’|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+I+\"))|)"+M+"\\]",$=":("+I+")(?:\\(((‘((?:\\\\.|[^\\\\’]))’|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+","+M+""),z=new RegExp("^"+M+"([>+~]|"+M+")"+M+""),U=new RegExp(M+"|>\"),X=new RegExp($),V=new RegExp(\"^\"+I+\"$\"),G={ID:new RegExp(\"^#(\"+I+\")\"),CLASS:new RegExp(\"^\\\\.(\"+I+\")\"),TAG:new RegExp(\"^(\"+I+\"|[*])\"),ATTR:new RegExp(\"^\"+W),PSEUDO:new RegExp(\"^\"+$),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+M+\"*(even|odd|(([+-]|)(\\d*)n|)"+M+"(?:([+-]|)"+M+"*(\\d+)|))"+M+"\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d)"+M+"\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{H.apply(j=O.call(w.childNodes),w.childNodes),j[w.childNodes.length].nodeType}catch(e){H={apply:j.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=Z.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!N[e+" "]&&(!v||!v.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===T&&U.test(e)){for((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=b),s=(h=a(e)).length;s–;)h[s]="#"+c+" "+xe(h[s]);y=h.join(","),m=ee.test(e)&&ye(t.parentNode)||t}try{return H.apply(r,m.querySelectorAll(y)),r}catch(t){N(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|\"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return\"input\"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return(\"input\"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a–;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if(""===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){h.appendChild(e).innerHTML="<a id=’"+b+"’></a><select id=’"+b+"-\r\\’ msallowcapture=’’><option selected=’’></option></select>",e.querySelectorAll("[msallowcapture^=’’]").length&&v.push("[^$]="+M+"*(?:’’|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+").length||v.push(".#.+[+~]")})),ce((function(e){e.innerHTML="<a href=’’ disabled=’disabled’></a><select disabled=’disabled’><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll(",:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=m.call(e,""),m.call(e,"[s!=’’]:x"),y.push("!=",$)})),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?P(c,e)-P(c,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),n.matchesSelector&&g&&!N[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){N(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&D.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(A),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i–;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return""===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)\"))&&E(e,(function(e){return t.test(\"string\"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute(\"class\")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a–;)e[r=P(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s–;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;–r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i–;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le((function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:Te(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=Te(y,d),r(l,[],s,u),c=l.length;c–;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c–;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c–;)(f=y[c])&&(l=i?P(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else y=Te(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)}))}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=be((function(e){return e===t}),s,!0),f=be((function(e){return P(t,e)>-1}),s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[be(we(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Ce(u>1&&we(p),u>1&&xe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"":""})).replace(B,"$1"),n,u<i&&Ee(e.slice(u,i)),i<o&&Ee(e=e.slice(i)),i<o&&xe(e))}p.push(n)}return we(p)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=se.tokenize=function(e,t){var n,i,o,a,s,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=_.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):k(e,u).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n–;)(s=Ee(t[n]))[b]?i.push(s):o.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,v,y=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument===d||(p(f),s=!g);v=e[h++];)if(v(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!v&&f)&&y–,o&&x.push(f))}if(y+=m,n&&m!==y){for(h=0;v=t[h++];)v(x,b,a,s);if(o){if(y>0)for(;m–;)x[m]||b[m]||(b[m]=q.call(u));b=Te(b)}H.apply(u,b),c&&!o&&b.length>0&&y+t.length>1&&se.uniqueSort(u)}return c&&(T=E,l=w),x};return n?le(o):o}(o,i))).selector=e}return s},u=se.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=G.needsContext.test(e)?0:u.length;o–&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&xe(u)))return H.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split("").sort(A).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href=’#’></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);b.find=C,b.expr=C.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=C.uniqueSort,b.text=C.getText,b.isXMLDoc=C.isXML,b.contains=C.contains,b.escapeSelector=C.escape;var E=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&b(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=b.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return g(t)?b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?b.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?b.grep(e,(function(e){return u.call(t,e)>-1!==n})):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},b.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<r;t++)if(b.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,i[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&S.test(e)?b(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),A.test(i[1])&&b.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,j=b(r);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&b(e);if(!S.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?b.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(b(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(N(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},(function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),this.length>1&&(H[e]||b.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}}));var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(P)||[],(function(e,n){t[n]=!0})),t}(e):b.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){b.each(n,(function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&u()),this},remove:function(){return b.each(arguments,(function(e,t){for(var n;(n=b.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s–})),this},has:function(e){return e?b.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},b.extend({Deferred:function(t){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return b.Deferred((function(t){b.each(n,(function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,g(l)?i?l.call(e,a(o,n,R,i),a(o,n,M,i)):(o++,l.call(e,a(o,n,R,i),a(o,n,M,i),a(o,n,R,n.notifyWith))):(r!==R&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(r!==M&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(b.Deferred.getStackHook&&(c.stackTrace=b.Deferred.getStackHook()),e.setTimeout(c))}}return b.Deferred((function(e){n[0][3].add(a(0,e,g(i)?i:R,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:R)),n[2][3].add(a(0,e,g(r)?r:M))})).promise()},promise:function(e){return null!=e?b.extend(e,i):i}},o={};return b.each(n,(function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=b.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,–t||a.resolveWith(r,i)}};if(t<=1&&(I(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();for(;n–;)I(i[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},b.readyException=function(t){e.setTimeout((function(){throw t}))};var $=b.Deferred();function F(){r.removeEventListener("DOMContentLoaded",F),e.removeEventListener("load",F),b.ready()}b.fn.ready=function(e){return $.then(e).catch((function(e){b.readyException(e)})),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?–b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&–b.readyWait>0||$.resolveWith(r,[b]))}}),b.ready.then=$.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(b.ready):(r.addEventListener("DOMContentLoaded",F),e.addEventListener("load",F));var B=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)B(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(b(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=b.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;for(;n–;)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(n=a.length;n–;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Q.set(this,e)})):B(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))||void 0!==(n=Z(o,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r–),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){b.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:b.Callbacks("once memory").add((function(){Y.remove(e,[t+"queue",n])}))})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n–),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each((function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=b.Deferred(),o=this,a=this.length,s=function(){–r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a–;)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=r.documentElement,ie=function(e){return b.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===b.css(e,"display")},se=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},u=s(),l=n&&n[3]||(b.cssNumber[t]?"":"px"),c=e.nodeType&&(b.cssNumber[t]||"px"!==l&&+u)&&te.exec(b.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a–;)b.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,b.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var le={};function ce(e){var t,n=e.ownerDocument,r=e.nodeName,i=le[r];return i||(t=n.body.appendChild(n.createElement(r)),i=b.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),le[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Y.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ae(r)&&(i[o]=ce(r))):"none"!==n&&(i[o]="none",Y.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}b.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ae(this)?b(this).show():b(this).hide()}))}});var pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,"<select multiple=’multiple’>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||""):void 0!==e.querySelectorAll?e.querySelectorAll(t||""):[],void 0===t||t&&N(e,t)?b.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var me,xe,be=/<|&#?\\w+;/;function we(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if(\"object\"===x(o))b.merge(p,o.nodeType?[o]:o);else if(be.test(o)){for(a=a||f.appendChild(t.createElement(\"div\")),s=(de.exec(o)||[\"\",\"\"])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+b.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;b.merge(p,a.childNodes),(a=f.firstChild).textContent=\"\"}else p.push(t.createTextNode(o));for(f.textContent=\"\",d=0;o=p[d++];)if(r&&b.inArray(o,r)>-1)i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),\"script\"),l&&ye(a),n)for(c=0;o=a[c++];)he.test(o.type||"")&&n.push(o);return f}me=r.createDocumentFragment().appendChild(r.createElement("div")),(xe=r.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),me.appendChild(xe),h.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return b().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=b.guid++)),e.each((function(){b.event.add(this,t,i,r,n)}))}function De(e,t,n){n?(Y.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=Y.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),Y.set(this,t,a),r=n(this,t),this[t](),a!==(i=Y.get(this,t))||r?Y.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else a.length&&(Y.set(this,t,{value:b.event.trigger(b.extend(a[0],b.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,t)&&b.event.add(e,t,ke)}b.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&b.find.matchesSelector(re,i),n.guid||(n.guid=b.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(P)||[""]).length;l–;)d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=b.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=b.event.special[d]||{},c=b.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&b.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),b.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(P)||[""]).length;l–;)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=b.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o–;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&(""!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount–,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||b.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=b.event.fix(e),u=new Array(arguments.length),l=(Y.get(this,"events")||{})[s.type]||[],c=b.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=b.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((b.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?b(i,this).index(l)>-1:b.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&N(t,"input")&&De(t,"click",ke),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&N(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&N(t,"input")&&Y.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},(function(e,t){b.event.special[e]={setup:function(){return De(this,e,Ne),!1},trigger:function(){return De(this,e),!0},delegateType:t}})),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||b.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),b.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){b.event.remove(this,e,n,t)}))}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!(?:\[CDATA\[|–)|(?:\]\]|–)>\s*$/g;function Oe(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),a=Y.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)b.event.add(t,i,l[i][n]);Q.hasData(e)&&(s=Q.access(e),u=b.extend({},s),Q.set(t,u))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&pe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function We(e,t,n,r){t=a.apply([],t);var i,o,s,u,l,c,f=0,p=e.length,d=p-1,v=t[0],y=g(v);if(y||p>1&&"string"==typeof v&&!h.checkClone&&Le.test(v))return e.each((function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),We(o,t,n,r)}));if(p&&(o=(i=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=b.map(ve(i,"script"),Pe)).length;f<p;f++)l=i,f!==d&&(l=b.clone(l,!0,!0),u&&b.merge(s,ve(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,b.map(s,Re),f=0;f<u;f++)l=s[f],he.test(l.type||"")&&!Y.access(l,"globalEval")&&b.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?b._evalUrl&&!l.noModule&&b._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):m(l.textContent.replace(He,""),l,c))}return e}function $e(e,t,n){for(var r,i=t?b.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||b.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=ie(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(a=ve(s),r=0,i=(o=ve(e)).length;r<i;r++)Ie(o[r],a[r]);if(t)if(n)for(o=o||ve(e),a=a||ve(s),r=0,i=o.length;r<i;r++)Me(o[r],a[r]);else Me(e,s);return(a=ve(s,"script")).length>0&&ye(a,!u&&ve(e,"script")),s},cleanData:function(e){for(var t,n,r,i=b.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),b.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return B(this,(function(e){return void 0===e?b.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return B(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(b.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return We(this,arguments,(function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var n,r=[],i=b(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),b(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}}));var Fe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Be=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},_e=new RegExp(ne.join("|"),"i");function ze(e,t,n){var r,i,o,a,s=e.style;return(n=n||Be(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=b.style(e,t)),!h.pixelBoxStyles()&&Fe.test(a)&&_e.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",a=12===n(c.offsetWidth/3),re.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,a,s,u,l=r.createElement("div"),c=r.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,b.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))}();var Xe=["Webkit","Moz","ms"],Ve=r.createElement("div").style,Ge={};function Ye(e){var t=b.cssProps[e]||Ge[e];return t||(e in Ve?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n–;)if((e=Xe[n]+t)in Ve)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je=/^–/,Ke={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=b.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=b.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=b.css(e,"border"+ne[a]+"Width",!0,i))):(u+=b.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=b.css(e,"border"+ne[a]+"Width",!0,i):s+=b.css(e,"border"+ne[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function nt(e,t,n){var r=Be(e),i=(!h.boxSizingReliable()||n)&&"border-box"===b.css(e,"boxSizing",!1,r),o=i,a=ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===b.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===b.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+tt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Je.test(t),l=e.style;if(u||(t=Ye(s)),a=b.cssHooks[t]||b.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(b.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Je.test(t)||(t=Ye(s)),(a=b.cssHooks[t]||b.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in Ze&&(i=Ze[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):se(e,Ke,(function(){return nt(e,t,r)}))},set:function(e,n,r){var i,o=Be(e),a=!h.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===b.css(e,"boxSizing",!1,o),u=r?tt(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-tt(e,t,"border",!1,o)-.5)),u&&(i=te.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),et(0,n,u)}}})),b.cssHooks.marginLeft=Ue(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ne[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(b.cssHooks[e+t].set=et)})),b.fn.extend({css:function(e,t){return B(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Be(e),i=t.length;a<i;a++)o[t[a]]=b.css(e,t[a],!1,r);return o}return void 0!==n?b.style(e,t,n):b.css(e,t)}),e,t,arguments.length>1)}}),b.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=rt.prototype.init,b.fx.step={};var it,ot,at=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function ut(){ot&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ut):e.setTimeout(ut,b.fx.interval),b.fx.tick())}function lt(){return e.setTimeout((function(){it=void 0})),it=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function pt(e,t,n){var r,i,o=0,a=pt.prefilters.length,s=b.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=it||lt(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=b.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=pt.prefilters[o].call(l,e,c,l.opts))return g(r.stop)&&(b._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return b.map(c,ft,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}b.Animation=b.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=b._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued–,b.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],at.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||b.style(e,r)}if((u=!b.isEmptyObject(t))||!b.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=b.css(e,"display"))&&(l?c=l:(fe([e],!0),l=e.style.display||l,c=b.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===b.css(e,"float")&&(u||(p.done((function(){h.display=l})),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&fe([e],!0),p.done((function(){for(r in g||fe([e]),Y.remove(e,"fxshow"),d)b.style(e,r,d[r])}))),u=ft(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return b.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=pt(this,b.extend({},e),o);(i||Y.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=b.timers,a=Y.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&st.test(i)&&r(a[i]);for(i=o.length;i–;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Y.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t–;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),b.each(["toggle","show","hide"],(function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}})),b.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t–,1);n.length||b.fx.stop(),it=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){ot||(ot=!0,ut())},b.fx.stop=function(){ot=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,n){return t=b.fx&&b.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}}))},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var dt,ht=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return B(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))}}),b.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?b.prop(e,t,n):(1===o&&b.isXMLDoc(e)||(i=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=b.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||b.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}}));var gt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function yt(e){return(e.match(P)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}b.fn.extend({prop:function(e,t){return B(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))}}),b.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&b.isXMLDoc(e)||(t=b.propFix[t]||t,i=b.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each((function(t){b(this).addClass(e.call(this,t,mt(this)))}));if((t=xt(e)).length)for(;n=this[u++];)if(i=mt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each((function(t){b(this).removeClass(e.call(this,t,mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)for(;n=this[u++];)if(i=mt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){b(this).toggleClass(e.call(this,n,mt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=b(this),a=xt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;b.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,b(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=b.map(i,(function(e){return null==e?"":e+""}))),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=b.valHooks[i.type]||b.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:yt(b.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=b(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=b.makeArray(t),a=i.length;a–;)((r=i[a]).selected=b.inArray(b.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},h.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,y=[i||r],m=f.call(t,"type")?t.type:t,x=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!wt.test(m+b.event.triggered)&&(m.indexOf(".")>-1&&(x=m.split("."),m=x.shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[b.expando]?t:new b.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:b.makeArray(n,[t]),d=b.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!v(i)){for(l=d.delegateType||m,wt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)y.push(s),u=s;u===(i.ownerDocument||r)&&y.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=y[a++])&&!t.isPropagationStopped();)h=s,t.type=a>1?l:d.bindType||m,(p=(Y.get(s,"events")||{})[t.type]&&Y.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&V(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(y.pop(),n)||!V(i)||c&&g(i[m])&&!v(i)&&((u=i[c])&&(i[c]=null),b.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Tt),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Tt),b.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),h.focusin||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Y.access(r,t);i||r.addEventListener(e,n,!0),Y.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Y.access(r,t)-1;i?Y.access(r,t,i):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}}));var Ct=e.location,Et=Date.now(),kt=/\?/;b.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+t),n};var St=/\[\]$/,Nt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))b.each(t,(function(t,i){n||St.test(e)?r(e,i):jt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)jt(e+"["+i+"]",t[i],n,r)}b.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){i(this.name,this.value)}));else for(n in e)jt(n,e[n],t,i);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Dt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,(function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}})):{name:t.name,value:n.replace(Nt,"\r\n")}})).get()}});var qt=/%20/g,Lt=/#.*$/,Ht=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Rt=/^\/\//,Mt={},It={},Wt="*/".concat("*"),$t=r.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(P)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Bt(e,t,n,r){var i={},o=e===It;function a(s){var u;return i[s]=!0,b.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function _t(e,t){var n,r,i=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}$t.href=Ct.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_t(_t(e,b.ajaxSettings),t):_t(b.ajaxSettings,e)},ajaxPrefilter:Ft(Mt),ajaxTransport:Ft(It),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=b.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?b(g):b.event,y=b.Deferred(),m=b.Callbacks("once memory"),x=h.statusCode||{},w={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ot.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),k(0,t),this}};if(y.promise(E),h.url=((t||h.url||Ct.href)+"").replace(Rt,Ct.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=$t.protocol+"//"+$t.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=b.param(h.data,h.traditional)),Bt(Mt,h,n,E),c)return E;for(p in(f=b.event&&h.global)&&0==b.active++&&b.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pt.test(h.type),o=h.url.replace(Lt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(qt,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(kt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ht,"$1"),d=(kt.test(o)?"&":"?")+"_="+Et+++d),h.url=o+d),h.ifModified&&(b.lastModified[o]&&E.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&E.setRequestHeader("If-None-Match",b.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Wt+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),i=Bt(It,h,n,E)){if(E.readyState=1,f&&v.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(u=e.setTimeout((function(){E.abort("timeout")}),h.timeout));try{c=!1,i.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,r,s){var l,p,d,w,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,E,r)),w=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(h,w,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(b.etag[o]=T)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=w.state,p=w.data,l=!(d=w.error))):(d=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",l?y.resolveWith(g,[p,C,E]):y.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&v.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(v.trigger("ajaxComplete",[E,h]),–b.active||b.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],(function(e,t){b[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:i,data:n,success:r},b.isPlainObject(e)&&e))}})),b._evalUrl=function(e,t){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){b(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ut=b.ajaxSettings.xhr();h.cors=!!Ut&&"withCredentials"in Ut,h.ajax=Ut=!!Ut,b.ajaxTransport((function(t){var n,r;if(h.cors||Ut&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),b.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,Vt=[],Gt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||b.expando+"_"+Et++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Gt,"$1"+i):!1!==t.jsonp&&(t.url+=(kt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||b.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always((function(){void 0===o?b(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),h.createHTMLDocument=((Xt=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(i)):t=r),a=!n&&[],(o=A.exec(e))?[t.createElement(o[1])]:(o=we([e],t,a),a&&a.length&&b(a).remove(),b.merge([],o.childNodes)));var i,o,a},b.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&b.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=b.css(e,"position"),c=b(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=b.css(e,"top"),u=b.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),i.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-b.css(r,"marginTop",!0),left:t.left-i.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||re}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return B(this,(function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ue(h.pixelPosition,(function(e,n){if(n)return n=ze(e,t),Fe.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){b.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return B(this,(function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),b.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,""):this.off(t,e||"",n)}}),b.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||b.guid++,i},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=N,b.isFunction=g,b.isWindow=v,b.camelCase=X,b.type=x,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return b}));var Yt=e.jQuery,Qt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Qt),t&&e.jQuery===b&&(e.jQuery=Yt),b},t||(e.jQuery=e.$=b),b}))},n 428: function _(t,i,n){function o(){var t=!1,i=!1;this.stopPropagation=function(){t=!0},this.isPropagationStopped=function(){return t},this.stopImmediatePropagation=function(){i=!0},this.isImmediatePropagationStopped=function(){return i}}function e(){this.__nonDataRow=!0}function r(){this.__group=!0,this.level=0,this.count=0,this.value=null,this.title=null,this.collapsed=!1,this.selectChecked=!1,this.totals=null,this.rows=[],this.groups=null,this.groupingKey=null}function s(){this.__groupTotals=!0,this.group=null,this.initialized=!1}function l(){var t=null;this.isActive=function(i){return i?t===i:null!==t},this.activate=function(i){if(i!==t){if(null!==t)throw new Error("SlickGrid.EditorLock.activate: an editController is still active, can’t activate another editController");if(!i.commitCurrentEdit)throw new Error("SlickGrid.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!i.cancelCurrentEdit)throw new Error("SlickGrid.EditorLock.activate: editController must implement .cancelCurrentEdit()");t=i}},this.deactivate=function(i){if(t!==i)throw new Error("SlickGrid.EditorLock.deactivate: specified editController is not the currently active one");t=null},this.commitCurrentEdit=function(){return!t||t.commitCurrentEdit()},this.cancelCurrentEdit=function(){return!t||t.cancelCurrentEdit()}}r.prototype=new e,r.prototype.equals=function(t){return this.value===t.value&&this.count===t.count&&this.collapsed===t.collapsed&&this.title===t.title},s.prototype=new e,i.exports={Event:function(){var t=[];this.subscribe=function(i){t.push(i)},this.unsubscribe=function(i){for(var n=t.length-1;n>=0;n–)t[n]===i&&t.splice(n,1)},this.notify=function(i,n,e){var r;n=n||new o,e=e||this;for(var s=0;s<t.length&&!n.isPropagationStopped()&&!n.isImmediatePropagationStopped();s++)r=t[s].call(e,n,i);return r}},EventData:o,EventHandler:function(){var t=[];this.subscribe=function(i,n){return t.push({event:i,handler:n}),i.subscribe(n),this},this.unsubscribe=function(i,n){for(var o=t.length;o–;)if(t[o].event===i&&t[o].handler===n)return t.splice(o,1),void i.unsubscribe(n);return this},this.unsubscribeAll=function(){for(var i=t.length;i–;)t[i].event.unsubscribe(t[i].handler);return t=[],this}},Range:function(t,i,n,o){void 0===n&&void 0===o&&(n=t,o=i),this.fromRow=Math.min(t,n),this.fromCell=Math.min(i,o),this.toRow=Math.max(t,n),this.toCell=Math.max(i,o),this.isSingleRow=function(){return this.fromRow==this.toRow},this.isSingleCell=function(){return this.fromRow==this.toRow&&this.fromCell==this.toCell},this.contains=function(t,i){return t>=this.fromRow&&t<=this.toRow&&i>=this.fromCell&&i<=this.toCell},this.toString=function(){return this.isSingleCell()?"("+this.fromRow+":"+this.fromCell+")":"("+this.fromRow+":"+this.fromCell+" - "+this.toRow+":"+this.toCell+")"}},NonDataRow:e,Group:r,GroupTotals:s,EditorLock:l,GlobalEditorLock:new l,keyCode:{BACKSPACE:8,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,ESC:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38,C:67,V:86},preClickClassName:"slick-edit-preclick"}},n 429: function _(e,t,o){var l=e(426),c=e(428);t.exports={CheckboxSelectColumn:function(e){var t,o=g(),n=new c.EventHandler,i={},r=!1,d=l.extend(!0,{},{columnId:"_checkbox_selector",cssClass:null,hideSelectAllCheckbox:!1,toolTip:"Select/Deselect All",width:30,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0},e);function a(){t.updateColumnHeader(d.columnId,"","")}function s(){l("#filter-checkbox-selectall-container").hide()}function u(e,c){var n,a,s=t.getSelectedRows(),u={};for(a=0;a<s.length;a++)u[n=s[a]]=!0,u[n]!==i[n]&&(t.invalidateRow(n),delete i[n]);for(a in i)t.invalidateRow(a);(i=u,t.render(),r=s.length&&s.length==t.getDataLength(),d.hideInColumnTitleRow||d.hideSelectAllCheckbox||(r?t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’ checked=’checked’><label for=’header-selector"+o+"’></label>",d.toolTip):t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",d.toolTip)),d.hideInFilterHeaderRow)||l("#header-filter-selector"+o).prop("checked",r)}function h(e,o){32==e.which&&t.getColumns()[o.cell].id===d.columnId&&(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit()||p(o.row),e.preventDefault(),e.stopImmediatePropagation())}function f(e,o){if(t.getColumns()[o.cell].id===d.columnId&&l(e.target).is(":checkbox")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();p(o.row),e.stopPropagation(),e.stopImmediatePropagation()}}function p(e){i[e]?t.setSelectedRows(l.grep(t.getSelectedRows(),(function(t){return t!=e}))):t.setSelectedRows(t.getSelectedRows().concat(e)),t.setActiveCell(e,function(){if(null===m){m=0;for(var e=t.getColumns(),o=0;o<e.length;o++)e[o].id==d.columnId&&(m=o)}return m}()),t.focus()}function b(e,o){if(o.column.id==d.columnId&&l(e.target).is(":checkbox")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();if(l(e.target).is(":checked")){for(var c=[],n=0;n<t.getDataLength();n++)c.push(n);t.setSelectedRows(c)}else t.setSelectedRows([]);e.stopPropagation(),e.stopImmediatePropagation()}}var m=null;function g(){return Math.round(1e7*Math.random())}function k(e,t,o,l,c){var n=g()+e;return c?i[e]?"<input id=’selector"+n+"’ type=’checkbox’ checked=’checked’><label for=’selector"+n+"’></label>":"<input id=’selector"+n+"’ type=’checkbox’><label for=’selector"+n+"’></label>":null}l.extend(this,{init:function(e){t=e,n.subscribe(t.onSelectedRowsChanged,u).subscribe(t.onClick,f).subscribe(t.onKeyDown,h),d.hideInFilterHeaderRow||function(e){e.onHeaderRowCellRendered.subscribe((function(e,t){"sel"===t.column.field&&(l(t.node).empty(),l("<span id=’filter-checkbox-selectall-container’><input id=’header-filter-selector"+o+"’ type=’checkbox’><label for=’header-filter-selector"+o+"’></label></span>").appendTo(t.node).on("click",(function(e){b(e,t)})))}))}(e),d.hideInColumnTitleRow||n.subscribe(t.onHeaderClick,b)},destroy:function(){n.unsubscribeAll()},deSelectRows:function(e){var o,c=e.length,n=[];for(o=0;o<c;o++)i[e[o]]&&(n[n.length]=e[o]);t.setSelectedRows(l.grep(t.getSelectedRows(),(function(e){return n.indexOf(e)<0})))},selectRows:function(e){var o,l=e.length,c=[];for(o=0;o<l;o++)i[e[o]]||(c[c.length]=e[o]);t.setSelectedRows(t.getSelectedRows().concat(c))},getColumnDefinition:function(){return{id:d.columnId,name:d.hideSelectAllCheckbox||d.hideInColumnTitleRow?"":"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",toolTip:d.toolTip,field:"sel",width:d.width,resizable:!1,sortable:!1,cssClass:d.cssClass,hideSelectAllCheckbox:d.hideSelectAllCheckbox,formatter:k}},getOptions:function(){return d},setOptions:function(e){if((d=l.extend(!0,{},d,e)).hideSelectAllCheckbox)a(),s();else if(d.hideInColumnTitleRow?a():(r?t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’ checked=’checked’><label for=’header-selector"+o+"’></label>",d.toolTip):t.updateColumnHeader(d.columnId,"<input id=’header-selector"+o+"’ type=’checkbox’><label for=’header-selector"+o+"’></label>",d.toolTip),n.subscribe(t.onHeaderClick,b)),d.hideInFilterHeaderRow)s();else{var c=l("#filter-checkbox-selectall-container");c.show(),c.find(‘input[type="checkbox"]’).prop("checked",r)}}})}}},n 430: function _(e,t,o){var l=e(426),n=e(428),a=n.keyCode;t.exports={CellExternalCopyManager:function(e){var t,o,r=this,i=e||{},s=i.copiedCellStyleLayerKey||"copy-manager",u=i.copiedCellStyle||"copied",c=0,d=i.bodyElement||document.body,f=i.onCopyInit||null,h=i.onCopySuccess||null;function C(e){if(i.headerColumnValueExtractor){var t=i.headerColumnValueExtractor(e);if(t)return t}return e.name}function m(e,o,n){if(i.dataItemColumnValueExtractor){var a=i.dataItemColumnValueExtractor(e,o);if(a)return a}var r="";if(o.editor){var s={container:l("<p>"),column:o,position:{top:0,left:0},grid:t,event:n},u=new o.editor(s);u.loadValue(e),r=u.serializeValue(),u.destroy()}else r=e[o.field];return r}function g(e,o,n){if(i.dataItemColumnValueSetter)return i.dataItemColumnValueSetter(e,o,n);if(o.editor){var a={container:l("body"),column:o,position:{top:0,left:0},grid:t},r=new o.editor(a);r.loadValue(e),r.applyValue(e,n),r.destroy()}else e[o.field]=n}function p(e){var t=document.createElement("textarea");return t.style.position="absolute",t.style.left="-1000px",t.style.top=document.body.scrollTop+"px",t.value=e,d.appendChild(t),t.select(),t}function y(e,l){var n;if(!t.getEditorLock().isActive()||t.getOptions().autoEdit){if(e.which==a.ESC&&o&&(e.preventDefault(),w(),r.onCopyCancelled.notify({ranges:o}),o=null),(e.which===a.C||e.which===a.INSERT)&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&(f&&f.call(),0!=(n=t.getSelectionModel().getSelectedRanges()).length)){o=n,v(n),r.onCopyCells.notify({ranges:n});for(var s=t.getColumns(),u="",c=0;c<n.length;c++){for(var y=n[c],D=[],S=y.fromRow;S<y.toRow+1;S++){var R=[],x=t.getDataItem(S);if(""==D&&i.includeHeaderWhenCopying){for(var V=[],E=y.fromCell;E<y.toCell+1;E++)s[E].name.length>0&&V.push(C(s[E]));D.push(V.join("\t"))}for(E=y.fromCell;E<y.toCell+1;E++)R.push(m(x,s[E],e));D.push(R.join("\t"))}u+=D.join("\r\n")+"\r\n"}if(window.clipboardData)return window.clipboardData.setData("Text",u),!0;var b=document.activeElement;if((M=p(u)).focus(),setTimeout((function(){d.removeChild(M),b?b.focus():console.log("Not element to restore focus to after copy?")}),100),h){var I=0;I=1===n.length?n[0].toRow+1-n[0].fromRow:n.length,h.call(this,I)}return!1}if(!i.readOnlyMode&&(e.which===a.V&&(e.ctrlKey||e.metaKey)&&!e.shiftKey||e.which===a.INSERT&&e.shiftKey&&!e.ctrlKey)){var M=p("");return setTimeout((function(){!function(e,t){var o=e.getColumns(),l=t.value.split(/[\n\f\r]/);""==l[l.length-1]&&l.pop();var n=[],a=0;d.removeChild(t);for(var s=0;s<l.length;s++)""!=l[s]?n[a++]=l[s].split("\t"):n[s]=[""];var u=e.getActiveCell(),c=e.getSelectionModel().getSelectedRanges(),f=c&&c.length?c[0]:null,h=null,C=null;if(f)h=f.fromRow,C=f.fromCell;else{if(!u)return;h=u.row,C=u.cell}var m=!1,p=n.length,y=n.length?n[0].length:0;1==n.length&&1==n[0].length&&f&&(m=!0,p=f.toRow-f.fromRow+1,y=f.toCell-f.fromCell+1);var w=e.getData().length-h,D=0;if(w<p&&i.newRowCreator){var S=e.getData();for(D=1;D<=p-w;D++)S.push({});e.setData(S),e.render()}var R=h+p>e.getDataLength();if(i.newRowCreator&&R){var x=h+p-e.getDataLength();i.newRowCreator(x)}var V={isClipboardCommand:!0,clippedRange:n,oldValues:[],cellExternalCopyManager:r,_options:i,setDataItemValueForColumn:g,markCopySelection:v,oneCellToMultiple:m,activeRow:h,activeCell:C,destH:p,destW:y,maxDestY:e.getDataLength(),maxDestX:e.getColumns().length,h:0,w:0,execute:function(){this.h=0;for(var t=0;t<this.destH;t++){this.oldValues[t]=[],this.w=0,this.h++;for(var l=0;l<this.destW;l++){this.w++;var a=h+t,r=C+l;if(a<this.maxDestY&&r<this.maxDestX){e.getCellNode(a,r);var i=e.getDataItem(a);this.oldValues[t][l]=i[o[r].field],m?this.setDataItemValueForColumn(i,o[r],n[0][0]):this.setDataItemValueForColumn(i,o[r],n[t]?n[t][l]:""),e.updateCell(a,r),e.onCellChange.notify({row:a,cell:r,item:i,grid:e})}}}var s={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};this.markCopySelection([s]),e.getSelectionModel().setSelectedRanges([s]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[s]})},undo:function(){for(var t=0;t<this.destH;t++)for(var l=0;l<this.destW;l++){var n=h+t,a=C+l;if(n<this.maxDestY&&a<this.maxDestX){e.getCellNode(n,a);var r=e.getDataItem(n);m?this.setDataItemValueForColumn(r,o[a],this.oldValues[0][0]):this.setDataItemValueForColumn(r,o[a],this.oldValues[t][l]),e.updateCell(n,a),e.onCellChange.notify({row:n,cell:a,item:r,grid:e})}}var i={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};if(this.markCopySelection([i]),e.getSelectionModel().setSelectedRanges([i]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[i]}),D>1){for(var s=e.getData();D>1;D–)s.splice(s.length-1,1);e.setData(s),e.render()}}};i.clipboardCommandHandler?i.clipboardCommandHandler(V):V.execute()}(t,M)}),100),!1}}}function v(e){w();for(var o=t.getColumns(),l={},n=0;n<e.length;n++)for(var a=e[n].fromRow;a<=e[n].toRow;a++){l[a]={};for(var i=e[n].fromCell;i<=e[n].toCell&&i<o.length;i++)l[a][o[i].id]=u}t.setCellCssStyles(s,l),clearTimeout(c),c=setTimeout((function(){r.clearCopySelection()}),2e3)}function w(){t.removeCellCssStyles(s)}l.extend(this,{init:function(e){(t=e).onKeyDown.subscribe(y);var o=e.getSelectionModel();if(!o)throw new Error("Selection model is mandatory for this plugin. Please set a selection model on the grid before adding this plugin: grid.setSelectionModel(new Slick.CellSelectionModel())");o.onSelectedRangesChanged.subscribe((function(e,o){t.focus()}))},destroy:function(){t.onKeyDown.unsubscribe(y)},clearCopySelection:w,handleKeyDown:y,onCopyCells:new n.Event,onCopyCancelled:new n.Event,onPasteCells:new n.Event,setIncludeHeaderWhenCopying:function(e){i.includeHeaderWhenCopying=e}})}}},n 431: function _(r,t,o){var _=r(1);_.__exportStar(r(428),t.exports),_.__exportStar(r(432),t.exports),_.__exportStar(r(435),t.exports),_.__exportStar(r(436),t.exports),_.__exportStar(r(437),t.exports),_.__exportStar(r(438),t.exports),_.__exportStar(r(439),t.exports)},n 432: function _(require,module,exports){n /n * @licensen * (c) 2009-2016 Michael Leibmann * michael{dot}leibman{at}gmail{dot}comn * http://github.com/mleibman/slickgridn n * Distributed under MIT license.n * All rights reserved.n *n * SlickGrid v2.3n *n * NOTES:n * Cell/row DOM manipulations are done directly bypassing jQuery’s DOM manipulation methods.n * This increases the speed dramatically, but can only be done safely because there are no event handlersn * or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()n * and do proper cleanup.n */n var $=require(426),Slick=require(428),scrollbarDimensions,maxSupportedCssHeight;function SlickGrid(container,data,columns,options){$.fn.drag||require(433),$.fn.drop||require(434);var defaults={alwaysShowVerticalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,autoHeight:!1,editorLock:Slick.GlobalEditorLock,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,showPreHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",selectedCellCssClass:"selected",multiSelect:!0,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,showCellSelection:!0,viewportClass:null,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1},columnDefaults={name:"",resizable:!0,sortable:!1,minWidth:30,rerenderOnResize:!1,headerCssClass:null,defaultSortAsc:!0,focusable:!0,selectable:!0},th,h,ph,n,cj,page=0,offset=0,vScrollDir=1,initialized=!1,$container,uid="slickgrid_"+Math.round(1e6*Math.random()),self=this,$focusSink,$focusSink2,$headerScroller,$headers,$headerRow,$headerRowScroller,$headerRowSpacer,$footerRow,$footerRowScroller,$footerRowSpacer,$preHeaderPanel,$preHeaderPanelScroller,$preHeaderPanelSpacer,$topPanelScroller,$topPanel,$viewport,$canvas,$style,$boundAncestors,stylesheet,columnCssRulesL,columnCssRulesR,viewportH,viewportW,canvasWidth,viewportHasHScroll,viewportHasVScroll,headerColumnWidthDiff=0,headerColumnHeightDiff=0,cellWidthDiff=0,cellHeightDiff=0,jQueryNewWidthBehaviour=!1,absoluteColumnMinWidth,tabbingDirection=1,activePosX,activeRow,activeCell,activeCellNode=null,currentEditor=null,serializedEditorValue,editController,rowsCache={},renderedRows=0,numVisibleRows,prevScrollTop=0,scrollTop=0,lastRenderedScrollTop=0,lastRenderedScrollLeft=0,prevScrollLeft=0,scrollLeft=0,selectionModel,selectedRows=[],plugins=[],cellCssClasses={},columnsById={},sortColumns=[],columnPosLeft=[],columnPosRight=[],pagingActive=!1,pagingIsLastPage=!1,scrollThrottle=ActionThrottle(render,50),h_editorLoader=null,h_render=null,h_postrender=null,h_postrenderCleanup=null,postProcessedRows={},postProcessToRow=null,postProcessFromRow=null,postProcessedCleanupQueue=[],postProcessgroupId=0,counter_rows_rendered=0,counter_rows_removed=0,rowNodeFromLastMouseWheelEvent,zombieRowNodeFromLastMouseWheelEvent,zombieRowCacheFromLastMouseWheelEvent,zombieRowPostProcessedFromLastMouseWheelEvent,cssShow={position:"absolute",visibility:"hidden",display:"block"},$hiddenParents,oldProps=[],columnResizeDragging=!1;function init(){if(($container=container instanceof $?container:$(container)).length<1)throw new Error("SlickGrid requires a valid container, "+container+" does not exist in the DOM.");cacheCssForHiddenInit(),maxSupportedCssHeight=maxSupportedCssHeight||getMaxSupportedCssHeight(),options=$.extend({},defaults,options),validateAndEnforceOptions(),columnDefaults.width=options.defaultColumnWidth,columnsById={};for(var e=0;e<columns.length;e++){var o=columns[e]=$.extend({},columnDefaults,columns[e]);columnsById[o.id]=e,o.minWidth&&o.width<o.minWidth&&(o.width=o.minWidth),o.maxWidth&&o.width>o.maxWidth&&(o.width=o.maxWidth)}if(options.enableColumnReorder&&!$.fn.sortable)throw new Error("SlickGrid’s ‘enableColumnReorder = true’ option requires jquery-ui.sortable module to be loaded");editController={commitCurrentEdit,cancelCurrentEdit},$container.empty().css("overflow","hidden").css("outline",0).addClass(uid).addClass("ui-widget"),/relative|absolute|fixed/.test($container.css("position"))||$container.css("position","relative"),$focusSink=$("<div tabIndex=’0’ hideFocus style=’position:fixed;width:0;height:0;top:0;left:0;outline:0;’></div>").appendTo($container),options.createPreHeaderPanel&&($preHeaderPanelScroller=$("<div class=’slick-preheader-panel ui-state-default’ style=’overflow:hidden;position:relative;’ />").appendTo($container),$preHeaderPanel=$("<div />").appendTo($preHeaderPanelScroller),$preHeaderPanelSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").appendTo($preHeaderPanelScroller),options.showPreHeaderPanel||$preHeaderPanelScroller.hide()),$headerScroller=$("<div class=’slick-header ui-state-default’ />").appendTo($container),$headers=$("<div class=’slick-header-columns’ style=’left:-1000px’ />").appendTo($headerScroller),$headerRowScroller=$("<div class=’slick-headerrow ui-state-default’ />").appendTo($container),$headerRow=$("<div class=’slick-headerrow-columns’ />").appendTo($headerRowScroller),$headerRowSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").appendTo($headerRowScroller),$topPanelScroller=$("<div class=’slick-top-panel-scroller ui-state-default’ />").appendTo($container),$topPanel=$("<div class=’slick-top-panel’ style=’width:10000px’ />").appendTo($topPanelScroller),options.showTopPanel||$topPanelScroller.hide(),options.showHeaderRow||$headerRowScroller.hide(),($viewport=$("<div class=’slick-viewport’ style=’width:100%;overflow:auto;outline:0;position:relative;;’>").appendTo($container)).css("overflow-y",options.alwaysShowVerticalScroll?"scroll":options.autoHeight?"hidden":"auto"),$viewport.css("overflow-x",options.forceFitColumns?"hidden":"auto"),options.viewportClass&&$viewport.toggleClass(options.viewportClass,!0),$canvas=$("<div class=’grid-canvas’ />").appendTo($viewport),scrollbarDimensions=scrollbarDimensions||measureScrollbar(),$preHeaderPanelSpacer&&$preHeaderPanelSpacer.css("width",getCanvasWidth()+scrollbarDimensions.width+"px"),$headers.width(getHeadersWidth()),$headerRowSpacer.css("width",getCanvasWidth()+scrollbarDimensions.width+"px"),options.createFooterRow&&($footerRowScroller=$("<div class=’slick-footerrow ui-state-default’ />").appendTo($container),$footerRow=$("<div class=’slick-footerrow-columns’ />").appendTo($footerRowScroller),$footerRowSpacer=$("<div style=’display:block;height:1px;position:absolute;top:0;left:0;’></div>").css("width",getCanvasWidth()+scrollbarDimensions.width+"px").appendTo($footerRowScroller),options.showFooterRow||$footerRowScroller.hide()),$focusSink2=$focusSink.clone().appendTo($container),options.explicitInitialization||finishInitialization()}function finishInitialization(){initialized||(initialized=!0,viewportW=parseFloat($.css($container[0],"width",!0)),measureCellPaddingAndBorder(),disableSelection($headers),options.enableTextSelectionOnCells||$viewport.on("selectstart.ui",(function(e){return $(e.target).is("input,textarea")})),updateColumnCaches(),createColumnHeaders(),setupColumnSort(),createCssRules(),resizeCanvas(),bindAncestorScrollEvents(),$container.on("resize.slickgrid",resizeCanvas),$viewport.on("scroll",handleScroll),$headerScroller.on("contextmenu",handleHeaderContextMenu).on("click",handleHeaderClick).on("mouseenter",".slick-header-column",handleHeaderMouseEnter).on("mouseleave",".slick-header-column",handleHeaderMouseLeave),$headerRowScroller.on("scroll",handleHeaderRowScroll),options.createFooterRow&&$footerRowScroller.on("scroll",handleFooterRowScroll),options.createPreHeaderPanel&&$preHeaderPanelScroller.on("scroll",handlePreHeaderPanelScroll),$focusSink.add($focusSink2).on("keydown",handleKeyDown),$canvas.on("keydown",handleKeyDown).on("click",handleClick).on("dblclick",handleDblClick).on("contextmenu",handleContextMenu).on("draginit",handleDragInit).on("dragstart",{distance:3},handleDragStart).on("drag",handleDrag).on("dragend",handleDragEnd).on("mouseenter",".slick-cell",handleMouseEnter).on("mouseleave",".slick-cell",handleMouseLeave),navigator.userAgent.toLowerCase().match(/webkit/)&&navigator.userAgent.toLowerCase().match(/macintosh/)&&$canvas.on("mousewheel",handleMouseWheel),restoreCssFromHiddenInit())}function cacheCssForHiddenInit(){($hiddenParents=$container.parents().addBack().not(":visible")).each((function(){var e={};for(var o in cssShow)e[o]=this.style[o],this.style[o]=cssShow[o];oldProps.push(e)}))}function restoreCssFromHiddenInit(){$hiddenParents.each((function(e){var o=oldProps[e];for(var t in cssShow)this.style[t]=o[t]}))}function registerPlugin(e){plugins.unshift(e),e.init(self)}function unregisterPlugin(e){for(var o=plugins.length;o>=0;o–)if(plugins[o]===e){plugins[o].destroy&&plugins[o].destroy(),plugins.splice(o,1);break}}function setSelectionModel(e){selectionModel&&(selectionModel.onSelectedRangesChanged.unsubscribe(handleSelectedRangesChanged),selectionModel.destroy&&selectionModel.destroy()),(selectionModel=e)&&(selectionModel.init(self),selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged))}function getSelectionModel(){return selectionModel}function getCanvasNode(){return $canvas[0]}function measureScrollbar(){var e=$(‘<div class="’+$viewport.className+’" style="position:absolute; top:-10000px; left:-10000px; overflow:auto; width:100px; height:100px;"></div>’).appendTo($viewport),o=$(‘<div style="width:200px; height:200px; overflow:auto;"></div>’).appendTo(e),t={width:e[0].offsetWidth-e[0].clientWidth,height:e[0].offsetHeight-e[0].clientHeight};return o.remove(),e.remove(),t}function getColumnTotalWidth(e){for(var o=0,t=0,l=columns.length;t<l;t++){o+=columns[t].width}return e&&(o+=scrollbarDimensions.width),o}function getHeadersWidth(){var e=getColumnTotalWidth(!options.autoHeight);return Math.max(e,viewportW)+1e3}function getCanvasWidth(){for(var e=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,o=0,t=columns.length;t–;)o+=columns[t].width;return options.fullWidthRows?Math.max(o,e):o}function updateCanvasWidth(e){var o=canvasWidth;(canvasWidth=getCanvasWidth())!=o&&($canvas.width(canvasWidth),$headerRow.width(canvasWidth),options.createFooterRow&&$footerRow.width(canvasWidth),options.createPreHeaderPanel&&$preHeaderPanel.width(canvasWidth),$headers.width(getHeadersWidth()),viewportHasHScroll=canvasWidth>viewportW-scrollbarDimensions.width);var t=canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0);$headerRowSpacer.width(t),options.createFooterRow&&$footerRowSpacer.width(t),options.createPreHeaderPanel&&$preHeaderPanelSpacer.width(t),(canvasWidth!=o||e)&&applyColumnWidths()}function disableSelection(e){e&&e.jquery&&e.attr("unselectable","on").css("MozUserSelect","none").on("selectstart.ui",(function(){return!1}))}function getMaxSupportedCssHeight(){for(var e=1e6,o=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,t=$("<div style=’display:none’ />").appendTo(document.body);;){var l=2*e;if(t.css("height",l),l>o||t.height()!==l)break;e=l}return t.remove(),e}function getUID(){return uid}function getHeaderColumnWidthDiff(){return headerColumnWidthDiff}function getScrollbarDimensions(){return scrollbarDimensions}function bindAncestorScrollEvents(){for(var e=$canvas[0];(e=e.parentNode)!=document.body&&null!=e;)if(e==$viewport[0]||e.scrollWidth!=e.clientWidth||e.scrollHeight!=e.clientHeight){var o=$(e);$boundAncestors=$boundAncestors?$boundAncestors.add(o):o,o.on("scroll."+uid,handleActiveCellPositionChange)}}function unbindAncestorScrollEvents(){$boundAncestors&&($boundAncestors.off("scroll."+uid),$boundAncestors=null)}function updateColumnHeader(e,o,t){if(initialized){var l=getColumnIndex(e);if(null!=l){var n=columns[l],r=$headers.children().eq(l);r&&(void 0!==o&&(columns[l].name=o),void 0!==t&&(columns[l].toolTip=t),trigger(self.onBeforeHeaderCellDestroy,{node:r[0],column:n,grid:self}),r.attr("title",t||"").children().eq(0).html(o),trigger(self.onHeaderCellRendered,{node:r[0],column:n,grid:self}))}}}function getHeader(){return $headers[0]}function getHeaderColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$headers.children().eq(o);return t&&t[0]}function getHeaderRow(){return $headerRow[0]}function getFooterRow(){return $footerRow[0]}function getPreHeaderPanel(){return $preHeaderPanel[0]}function getHeaderRowColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$headerRow.children().eq(o);return t&&t[0]}function getFooterRowColumn(e){var o="number"==typeof e?e:getColumnIndex(e),t=$footerRow.children().eq(o);return t&&t[0]}function createColumnHeaders(){function e(){$(this).addClass("ui-state-hover")}function o(){$(this).removeClass("ui-state-hover")}$headers.find(".slick-header-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeHeaderCellDestroy,{node:this,column:e,grid:self})})),$headers.empty(),$headers.width(getHeadersWidth()),$headerRow.find(".slick-headerrow-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeHeaderRowCellDestroy,{node:this,column:e,grid:self})})),$headerRow.empty(),options.createFooterRow&&($footerRow.find(".slick-footerrow-column").each((function(){var e=$(this).data("column");e&&trigger(self.onBeforeFooterRowCellDestroy,{node:this,column:e})})),$footerRow.empty());for(var t=0;t<columns.length;t++){var l=columns[t],n=$("<div class=’ui-state-default slick-header-column’ />").html("<span class=’slick-column-name’>"+l.name+"</span>").width(l.width-headerColumnWidthDiff).attr("id",""+uid+l.id).attr("title",l.toolTip||"").data("column",l).addClass(l.headerCssClass||"").appendTo($headers);if((options.enableColumnReorder||l.sortable)&&n.on("mouseenter",e).on("mouseleave",o),l.sortable&&(n.addClass("slick-header-sortable"),n.append("<span class=’slick-sort-indicator"+(options.numberedMultiColumnSort&&!options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":"")+"’ />"),options.numberedMultiColumnSort&&options.sortColNumberInSeparateSpan&&n.append("<span class=’slick-sort-indicator-numbered’ />")),trigger(self.onHeaderCellRendered,{node:n[0],column:l,grid:self}),options.showHeaderRow){var r=$("<div class=’ui-state-default slick-headerrow-column l"+t+" r"+t+"’></div>").data("column",l).appendTo($headerRow);trigger(self.onHeaderRowCellRendered,{node:r[0],column:l,grid:self})}if(options.createFooterRow&&options.showFooterRow){var i=$("<div class=’ui-state-default slick-footerrow-column l"+t+" r"+t+"’></div>").data("column",l).appendTo($footerRow);trigger(self.onFooterRowCellRendered,{node:i[0],column:l})}}setSortColumns(sortColumns),setupColumnResize(),options.enableColumnReorder&&("function"==typeof options.enableColumnReorder?options.enableColumnReorder(self,$headers,headerColumnWidthDiff,setColumns,setupColumnResize,columns,getColumnIndex,uid,trigger):setupColumnReorder())}function setupColumnSort(){$headers.click((function(e){if(!columnResizeDragging&&(e.metaKey=e.metaKey||e.ctrlKey,!$(e.target).hasClass("slick-resizable-handle"))){var o=$(e.target).closest(".slick-header-column");if(o.length){var t=o.data("column");if(t.sortable){if(!getEditorLock().commitCurrentEdit())return;for(var l=null,n=0;n<sortColumns.length;n++)if(sortColumns[n].columnId==t.id){(l=sortColumns[n]).sortAsc=!l.sortAsc;break}var r=!!l;options.tristateMultiColumnSort?(l||(l={columnId:t.id,sortAsc:t.defaultSortAsc}),r&&l.sortAsc&&(sortColumns.splice(n,1),l=null),options.multiColumnSort||(sortColumns=[]),!l||r&&options.multiColumnSort||sortColumns.push(l)):e.metaKey&&options.multiColumnSort?l&&sortColumns.splice(n,1):((e.shiftKey||e.metaKey)&&options.multiColumnSort||(sortColumns=[]),l?0==sortColumns.length&&sortColumns.push(l):(l={columnId:t.id,sortAsc:t.defaultSortAsc},sortColumns.push(l))),setSortColumns(sortColumns),options.multiColumnSort?trigger(self.onSort,{multiColumnSort:!0,sortCols:$.map(sortColumns,(function(e){return{sortCol:columns[getColumnIndex(e.columnId)],sortAsc:e.sortAsc}}))},e):trigger(self.onSort,{multiColumnSort:!1,sortCol:sortColumns.length>0?t:null,sortAsc:!(sortColumns.length>0)||sortColumns[0].sortAsc},e)}}}}))}function setupColumnReorder(){$headers.filter(":ui-sortable").sortable("destroy"),$headers.sortable({containment:"parent",distance:3,axis:"x",cursor:"default",tolerance:"intersection",helper:"clone",placeholder:"slick-sortable-placeholder ui-state-default slick-header-column",start:function(e,o){o.placeholder.width(o.helper.outerWidth()-headerColumnWidthDiff),$(o.helper).addClass("slick-header-column-active")},beforeStop:function(e,o){$(o.helper).removeClass("slick-header-column-active")},stop:function(e){if(getEditorLock().commitCurrentEdit()){for(var o=$headers.sortable("toArray"),t=[],l=0;l<o.length;l++)t.push(columns[getColumnIndex(o[l].replace(uid,""))]);setColumns(t),trigger(self.onColumnsReordered,{}),e.stopPropagation(),setupColumnResize()}else $(this).sortable("cancel")}})}function setupColumnResize(){var e,o,t,l,n,r,i,s;(l=$headers.children()).find(".slick-resizable-handle").remove(),l.each((function(e,o){e>=columns.length||columns[e].resizable&&(void 0===i&&(i=e),s=e)})),void 0!==i&&l.each((function(a,c){a>=columns.length||a<i||options.forceFitColumns&&a>=s||($(c),$("<div class=’slick-resizable-handle’ />").appendTo(c).on("dragstart",(function(i,s){if(!getEditorLock().commitCurrentEdit())return!1;t=i.pageX,$(this).parent().addClass("slick-header-column-active");var c=null,d=null;if(l.each((function(e,o){e>=columns.length||(columns[e].previousWidth=$(o).outerWidth())})),options.forceFitColumns)for(c=0,d=0,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(null!==d&&(o.maxWidth?d+=o.maxWidth-o.previousWidth:d=null),c+=o.previousWidth-Math.max(o.minWidth||0,absoluteColumnMinWidth));var u=0,h=0;for(e=0;e<=a;e++)(o=columns[e]).resizable&&(null!==h&&(o.maxWidth?h+=o.maxWidth-o.previousWidth:h=null),u+=o.previousWidth-Math.max(o.minWidth||0,absoluteColumnMinWidth));null===c&&(c=1e5),null===u&&(u=1e5),null===d&&(d=1e5),null===h&&(h=1e5),r=t+Math.min(c,h),n=t-Math.min(u,d)})).on("drag",(function(l,i){columnResizeDragging=!0;var s,c,d=Math.min(r,Math.max(n,l.pageX))-t;if(d<0){for(c=d,e=a;e>=0;e–)(o=columns[e]).resizable&&(s=Math.max(o.minWidth||0,absoluteColumnMinWidth),c&&o.previousWidth+c<s?(c+=o.previousWidth-s,o.width=s):(o.width=o.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-d,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(c&&o.maxWidth&&o.maxWidth-o.previousWidth<c?(c-=o.maxWidth-o.previousWidth,o.width=o.maxWidth):(o.width=o.previousWidth+c,c=0))}else{for(c=d,e=a;e>=0;e–)(o=columns[e]).resizable&&(c&&o.maxWidth&&o.maxWidth-o.previousWidth<c?(c-=o.maxWidth-o.previousWidth,o.width=o.maxWidth):(o.width=o.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-d,e=a+1;e<columns.length;e++)(o=columns[e]).resizable&&(s=Math.max(o.minWidth||0,absoluteColumnMinWidth),c&&o.previousWidth+c<s?(c+=o.previousWidth-s,o.width=s):(o.width=o.previousWidth+c,c=0))}applyColumnHeaderWidths(),options.syncColumnCellResize&&applyColumnWidths()})).on("dragend",(function(t,n){var r;for($(this).parent().removeClass("slick-header-column-active"),e=0;e<columns.length;e++)o=columns[e],r=$(l[e]).outerWidth(),o.previousWidth!==r&&o.rerenderOnResize&&invalidateAllRows();updateCanvasWidth(!0),render(),trigger(self.onColumnsResized,{}),setTimeout((function(){columnResizeDragging=!1}),300)})))}))}function getVBoxDelta(e){var o=0;return $.each(["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],(function(t,l){o+=parseFloat(e.css(l))||0})),o}function measureCellPaddingAndBorder(){var e,o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=$.fn.jquery.split(".");jQueryNewWidthBehaviour=1==l[0]&&l[1]>=8||l[0]>=2,e=$("<div class=’ui-state-default slick-header-column’ style=’visibility:hidden’>-</div>").appendTo($headers),headerColumnWidthDiff=headerColumnHeightDiff=0,"border-box"!=e.css("box-sizing")&&"border-box"!=e.css("-moz-box-sizing")&&"border-box"!=e.css("-webkit-box-sizing")&&($.each(o,(function(o,t){headerColumnWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){headerColumnHeightDiff+=parseFloat(e.css(t))||0}))),e.remove();var n=$("<div class=’slick-row’ />").appendTo($canvas);e=$("<div class=’slick-cell’ id=’’ style=’visibility:hidden’>-</div>").appendTo(n),cellWidthDiff=cellHeightDiff=0,"border-box"!=e.css("box-sizing")&&"border-box"!=e.css("-moz-box-sizing")&&"border-box"!=e.css("-webkit-box-sizing")&&($.each(o,(function(o,t){cellWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){cellHeightDiff+=parseFloat(e.css(t))||0}))),n.remove(),absoluteColumnMinWidth=Math.max(headerColumnWidthDiff,cellWidthDiff)}function createCssRules(){$style=$("<style type=’text/css’ rel=’stylesheet’ />").appendTo($("head"));for(var e=options.rowHeight-cellHeightDiff,o=["."+uid+" .slick-header-column { left: 1000px; }","."+uid+" .slick-top-panel { height:"+options.topPanelHeight+"px; }","."+uid+" .slick-preheader-panel { height:"+options.preHeaderPanelHeight+"px; }","."+uid+" .slick-headerrow-columns { height:"+options.headerRowHeight+"px; }","."+uid+" .slick-footerrow-columns { height:"+options.footerRowHeight+"px; }","."+uid+" .slick-cell { height:"+e+"px; }","."+uid+" .slick-row { height:"+options.rowHeight+"px; }"],t=0;t<columns.length;t++)o.push("."+uid+" .l"+t+" { }"),o.push("."+uid+" .r"+t+" { }");$style[0].styleSheet?$style[0].styleSheet.cssText=o.join(" "):$style[0].appendChild(document.createTextNode(o.join(" ")))}function getColumnCssRules(e){var o;if(!stylesheet){var t=document.styleSheets;for(o=0;o<t.length;o++)if((t[o].ownerNode||t[o].owningElement)==$style[0]){stylesheet=t[o];break}if(!stylesheet)throw new Error("Cannot find stylesheet.");columnCssRulesL=[],columnCssRulesR=[];var l,n,r=stylesheet.cssRules||stylesheet.rules;for(o=0;o<r.length;o++){var i=r[o].selectorText;(l=/\.l\d+/.exec(i))?(n=parseInt(l[0].substr(2,l[0].length-2),10),columnCssRulesL[n]=r[o]):(l=/\.r\d+/.exec(i))&&(n=parseInt(l[0].substr(2,l[0].length-2),10),columnCssRulesR[n]=r[o])}}return{left:columnCssRulesL[e],right:columnCssRulesR[e]}}function removeCssRules(){$style.remove(),stylesheet=null}function destroy(){getEditorLock().cancelCurrentEdit(),trigger(self.onBeforeDestroy,{});for(var e=plugins.length;e–;)unregisterPlugin(plugins[e]);options.enableColumnReorder&&$headers.filter(":ui-sortable").sortable("destroy"),unbindAncestorScrollEvents(),$container.off(".slickgrid"),removeCssRules(),$canvas.off("draginit dragstart dragend drag"),$container.empty().removeClass(uid)}function trigger(e,o,t){return t=t||new Slick.EventData,(o=o||{}).grid=self,e.notify(o,t,self)}function getEditorLock(){return options.editorLock}function getEditController(){return editController}function getColumnIndex(e){return columnsById[e]}function autosizeColumns(){var e,o,t,l=[],n=0,r=0,i=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;for(e=0;e<columns.length;e++)o=columns[e],l.push(o.width),r+=o.width,o.resizable&&(n+=o.width-Math.max(o.minWidth,absoluteColumnMinWidth));for(t=r;r>i&&n;){var s=(r-i)/n;for(e=0;e<columns.length&&r>i;e++){o=columns[e];var a=l[e];if(!(!o.resizable||a<=o.minWidth||a<=absoluteColumnMinWidth)){var c=Math.max(o.minWidth,absoluteColumnMinWidth),d=Math.floor(s*(a-c))||1;r-=d=Math.min(d,a-c),n-=d,l[e]-=d}}if(t<=r)break;t=r}for(t=r;r<i;){var u=i/r;for(e=0;e<columns.length&&r<i;e++){o=columns[e];var h,p=l[e];r+=h=!o.resizable||o.maxWidth<=p?0:Math.min(Math.floor(u*p)-p,o.maxWidth-p||1e6)||1,l[e]+=r<=i?h:0}if(t>=r)break;t=r}var g=!1;for(e=0;e<columns.length;e++)columns[e].rerenderOnResize&&columns[e].width!=l[e]&&(g=!0),columns[e].width=l[e];applyColumnHeaderWidths(),updateCanvasWidth(!0),trigger(self.onAutosizeColumns,{columns}),g&&(invalidateAllRows(),render())}function applyColumnHeaderWidths(){if(initialized){for(var e,o=0,t=$headers.children(),l=columns.length;o<l;o++)e=$(t[o]),jQueryNewWidthBehaviour?e.outerWidth()!==columns[o].width&&e.outerWidth(columns[o].width):e.width()!==columns[o].width-headerColumnWidthDiff&&e.width(columns[o].width-headerColumnWidthDiff);updateColumnCaches()}}function applyColumnWidths(){for(var e,o,t=0,l=0;l<columns.length;l++)e=columns[l].width,(o=getColumnCssRules(l)).left.style.left=t+"px",o.right.style.right=canvasWidth-t-e+"px",t+=columns[l].width}function setSortColumn(e,o){setSortColumns([{columnId:e,sortAsc:o}])}function setSortColumns(e){sortColumns=e;var o=options.numberedMultiColumnSort&&sortColumns.length>1,t=$headers.children();t.removeClass("slick-header-column-sorted").find(".slick-sort-indicator").removeClass("slick-sort-indicator-asc slick-sort-indicator-desc"),t.find(".slick-sort-indicator-numbered").text(""),$.each(sortColumns,(function(e,l){null==l.sortAsc&&(l.sortAsc=!0);var n=getColumnIndex(l.columnId);null!=n&&(t.eq(n).addClass("slick-header-column-sorted").find(".slick-sort-indicator").addClass(l.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),o&&t.eq(n).find(".slick-sort-indicator-numbered").text(e+1))}))}function getSortColumns(){return sortColumns}function handleSelectedRangesChanged(e,o){selectedRows=[];for(var t={},l=0;l<o.length;l++)for(var n=o[l].fromRow;n<=o[l].toRow;n++){t[n]||(selectedRows.push(n),t[n]={});for(var r=o[l].fromCell;r<=o[l].toCell;r++)canCellBeSelected(n,r)&&(t[n][columns[r].id]=options.selectedCellCssClass)}setCellCssStyles(options.selectedCellCssClass,t),trigger(self.onSelectedRowsChanged,{rows:getSelectedRows()},e)}function getColumns(){return columns}function updateColumnCaches(){columnPosLeft=[],columnPosRight=[];for(var e=0,o=0,t=columns.length;o<t;o++)columnPosLeft[o]=e,columnPosRight[o]=e+columns[o].width,e+=columns[o].width}function setColumns(e){columns=e,columnsById={};for(var o=0;o<columns.length;o++){var t=columns[o]=$.extend({},columnDefaults,columns[o]);columnsById[t.id]=o,t.minWidth&&t.width<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&t.width>t.maxWidth&&(t.width=t.maxWidth)}updateColumnCaches(),initialized&&(invalidateAllRows(),createColumnHeaders(),removeCssRules(),createCssRules(),resizeCanvas(),applyColumnWidths(),handleScroll())}function getOptions(){return options}function setOptions(e,o){getEditorLock().commitCurrentEdit()&&(makeActiveCellNormal(),options.enableAddRow!==e.enableAddRow&&invalidateRow(getDataLength()),options=$.extend(options,e),validateAndEnforceOptions(),$viewport.css("overflow-y",options.autoHeight?"hidden":"auto"),o||render())}function validateAndEnforceOptions(){options.autoHeight&&(options.leaveSpaceForNewRows=!1)}function setData(e,o){data=e,invalidateAllRows(),updateRowCount(),o&&scrollTo(0)}function getData(){return data}function getDataLength(){return data.getLength?data.getLength():data.length}function getDataLengthIncludingAddNew(){return getDataLength()+(options.enableAddRow&&(!pagingActive||pagingIsLastPage)?1:0)}function getDataItem(e){return data.getItem?data.getItem(e):data[e]}function getTopPanel(){return $topPanel[0]}function setTopPanelVisibility(e){options.showTopPanel!=e&&(options.showTopPanel=e,e?$topPanelScroller.slideDown("fast",resizeCanvas):$topPanelScroller.slideUp("fast",resizeCanvas))}function setHeaderRowVisibility(e){options.showHeaderRow!=e&&(options.showHeaderRow=e,e?$headerRowScroller.slideDown("fast",resizeCanvas):$headerRowScroller.slideUp("fast",resizeCanvas))}function setFooterRowVisibility(e){options.showFooterRow!=e&&(options.showFooterRow=e,e?$footerRowScroller.slideDown("fast",resizeCanvas):$footerRowScroller.slideUp("fast",resizeCanvas))}function setPreHeaderPanelVisibility(e){options.showPreHeaderPanel!=e&&(options.showPreHeaderPanel=e,e?$preHeaderPanelScroller.slideDown("fast",resizeCanvas):$preHeaderPanelScroller.slideUp("fast",resizeCanvas))}function getContainerNode(){return $container.get(0)}function getRowTop(e){return options.rowHeight*e-offset}function getRowFromPosition(e){return Math.floor((e+offset)/options.rowHeight)}function scrollTo(e){e=Math.max(e,0),e=Math.min(e,th-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0));var o=offset;page=Math.min(n-1,Math.floor(e/ph));var t=e-(offset=Math.round(page*cj));offset!=o&&(cleanupRows(getVisibleRange(t)),updateRowPositions());prevScrollTop!=t&&(vScrollDir=prevScrollTop+o<t+offset?1:-1,$viewport[0].scrollTop=lastRenderedScrollTop=scrollTop=prevScrollTop=t,trigger(self.onViewportChanged,{}))}function defaultFormatter(e,o,t,l,n,r){return null==t?"":(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function getFormatter(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e),l=t&&t.columns&&(t.columns[o.id]||t.columns[getColumnIndex(o.id)]);return l&&l.formatter||t&&t.formatter||o.formatter||options.formatterFactory&&options.formatterFactory.getFormatter(o)||options.defaultFormatter}function getEditor(e,o){var t=columns[o],l=data.getItemMetadata&&data.getItemMetadata(e),n=l&&l.columns;return n&&n[t.id]&&void 0!==n[t.id].editor?n[t.id].editor:n&&n[o]&&void 0!==n[o].editor?n[o].editor:t.editor||options.editorFactory&&options.editorFactory.getEditor(t)}function getDataItemValueForColumn(e,o){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(e,o):e[o.field]}function appendRowHtml(e,o,t,l){var n=getDataItem(o),r="slick-row"+(o<l&&!n?" loading":"")+(o===activeRow&&options.showCellSelection?" active":"")+(o%2==1?" odd":" even");n||(r+=" "+options.addNewRowCssClass);var i,s,a=data.getItemMetadata&&data.getItemMetadata(o);a&&a.cssClasses&&(r+=" "+a.cssClasses),e.push("<div class=’ui-widget-content "+r+"’ style=’top:"+getRowTop(o)+"px’>");for(var c=0,d=columns.length;c<d;c++){if(s=columns[c],i=1,a&&a.columns){var u=a.columns[s.id]||a.columns[c];""===(i=u&&u.colspan||1)&&(i=d-c)}if(columnPosRight[Math.min(d-1,c+i-1)]>t.leftPx){if(columnPosLeft[c]>t.rightPx)break;appendCellHtml(e,o,c,i,n)}i>1&&(c+=i-1)}e.push("</div>")}function appendCellHtml(e,o,t,l,n){var r=columns[t],i="slick-cell l"+t+" r"+Math.min(columns.length-1,t+l-1)+(r.cssClass?" "+r.cssClass:"");for(var s in o===activeRow&&t===activeCell&&options.showCellSelection&&(i+=" active"),cellCssClasses)cellCssClasses[s][o]&&cellCssClasses[s][o][r.id]&&(i+=" "+cellCssClasses[s][o][r.id]);var a=null,c="";n&&(a=getDataItemValueForColumn(n,r),null==(c=getFormatter(o,r)(o,t,a,r,n,self))&&(c=""));var d=trigger(self.onBeforeAppendCell,{row:o,cell:t,value:a,dataContext:n})||"";d+=c&&c.addClasses?(d?" ":"")+c.addClasses:"",e.push("<div class=’"+i+(d?" "+d:"")+"’>"),n&&e.push("[object Object]"!==Object.prototype.toString.call(c)?c:c.text),e.push("</div>"),rowsCache[o].cellRenderQueue.push(t),rowsCache[o].cellColSpans[t]=l}function cleanupRows(e){for(var o in rowsCache)(o=parseInt(o,10))!==activeRow&&(o<e.top||o>e.bottom)&&removeRowFromCache(o);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function invalidate(){updateRowCount(),invalidateAllRows(),render()}function invalidateAllRows(){for(var e in currentEditor&&makeActiveCellNormal(),rowsCache)removeRowFromCache(e);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function queuePostProcessedRowForCleanup(e,o,t){for(var l in postProcessgroupId++,o)o.hasOwnProperty(l)&&postProcessedCleanupQueue.push({actionType:"C",groupId:postProcessgroupId,node:e.cellNodesByColumnIdx[0|l],columnIdx:0|l,rowIdx:t});postProcessedCleanupQueue.push({actionType:"R",groupId:postProcessgroupId,node:e.rowNode}),$(e.rowNode).detach()}function queuePostProcessedCellForCleanup(e,o,t){postProcessedCleanupQueue.push({actionType:"C",groupId:postProcessgroupId,node:e,columnIdx:o,rowIdx:t}),$(e).detach()}function removeRowFromCache(e){var o=rowsCache[e];o&&(o.rowNode&&(rowNodeFromLastMouseWheelEvent===o.rowNode?(o.rowNode.style.display="none",zombieRowNodeFromLastMouseWheelEvent=rowNodeFromLastMouseWheelEvent,zombieRowCacheFromLastMouseWheelEvent=o,zombieRowPostProcessedFromLastMouseWheelEvent=postProcessedRows[e]):options.enableAsyncPostRenderCleanup&&postProcessedRows[e]?queuePostProcessedRowForCleanup(o,postProcessedRows[e],e):$canvas[0].removeChild(o.rowNode)),delete rowsCache[e],delete postProcessedRows[e],renderedRows–,counter_rows_removed++)}function invalidateRows(e){var o,t;if(e&&e.length){for(vScrollDir=0,t=e.length,o=0;o<t;o++)currentEditor&&activeRow===e[o]&&makeActiveCellNormal(),rowsCache[e[o]]&&removeRowFromCache(e[o]);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}}function invalidateRow(e){(e||0===e)&&invalidateRows([e])}function applyFormatResultToCellNode(e,o,t){null==e&&(e=""),"[object Object]"===Object.prototype.toString.call(e)?(o.innerHTML=e.text,e.removeClasses&&!t&&$(o).removeClass(e.removeClasses),e.addClasses&&$(o).addClass(e.addClasses)):o.innerHTML=e}function updateCell(e,o){var t=getCellNode(e,o);if(t){var l=columns[o],n=getDataItem(e);if(currentEditor&&activeRow===e&&activeCell===o)currentEditor.loadValue(n);else applyFormatResultToCellNode(n?getFormatter(e,l)(e,o,getDataItemValueForColumn(n,l),l,n,self):"",t),invalidatePostProcessingResults(e)}}function updateRow(e){var o=rowsCache[e];if(o){ensureCellNodesInRowsCache(e);var t=getDataItem(e);for(var l in o.cellNodesByColumnIdx)if(o.cellNodesByColumnIdx.hasOwnProperty(l)){var n=columns[l|=0],r=o.cellNodesByColumnIdx[l];e===activeRow&&l===activeCell&¤tEditor?currentEditor.loadValue(t):t?applyFormatResultToCellNode(getFormatter(e,n)(e,l,getDataItemValueForColumn(t,n),n,t,self),r):r.innerHTML=""}invalidatePostProcessingResults(e)}}function getViewportHeight(){return parseFloat($.css($container[0],"height",!0))-parseFloat($.css($container[0],"paddingTop",!0))-parseFloat($.css($container[0],"paddingBottom",!0))-parseFloat($.css($headerScroller[0],"height"))-getVBoxDelta($headerScroller)-(options.showTopPanel?options.topPanelHeight+getVBoxDelta($topPanelScroller):0)-(options.showHeaderRow?options.headerRowHeight+getVBoxDelta($headerRowScroller):0)-(options.createFooterRow&&options.showFooterRow?options.footerRowHeight+getVBoxDelta($footerRowScroller):0)-(options.createPreHeaderPanel&&options.showPreHeaderPanel?options.preHeaderPanelHeight+getVBoxDelta($preHeaderPanelScroller):0)}function resizeCanvas(){initialized&&(viewportH=options.autoHeight?options.rowHeight*getDataLengthIncludingAddNew():getViewportHeight(),numVisibleRows=Math.ceil(viewportH/options.rowHeight),viewportW=parseFloat($.css($container[0],"width",!0)),options.autoHeight||$viewport.height(viewportH),scrollbarDimensions&&scrollbarDimensions.width||(scrollbarDimensions=measureScrollbar()),options.forceFitColumns&&autosizeColumns(),updateRowCount(),handleScroll(),lastRenderedScrollLeft=-1,render())}function updatePagingStatusFromView(e){pagingActive=0!==e.pageSize,pagingIsLastPage=e.pageNum==e.totalPages-1}function updateRowCount(){if(initialized){var e=getDataLength(),o=getDataLengthIncludingAddNew()+(options.leaveSpaceForNewRows?numVisibleRows-1:0),t=viewportHasVScroll;viewportHasVScroll=options.alwaysShowVerticalScroll||!options.autoHeight&&o*options.rowHeight>viewportH,viewportHasHScroll=canvasWidth>viewportW-scrollbarDimensions.width,makeActiveCellNormal();var l=e-1;for(var r in rowsCache)r>l&&removeRowFromCache(r);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup(),activeCellNode&&activeRow>l&&resetActiveCell();var i=h;(th=Math.max(options.rowHeight*o,viewportH-scrollbarDimensions.height))<maxSupportedCssHeight?(h=ph=th,n=1,cj=0):(ph=(h=maxSupportedCssHeight)/100,n=Math.floor(th/ph),cj=(th-h)/(n-1)),h!==i&&($canvas.css("height",h),scrollTop=$viewport[0].scrollTop);var s=scrollTop+offset<=th-viewportH;0==th||0==scrollTop?page=offset=0:scrollTo(s?scrollTop+offset:th-viewportH),h!=i&&options.autoHeight&&resizeCanvas(),options.forceFitColumns&&t!=viewportHasVScroll&&autosizeColumns(),updateCanvasWidth(!1)}}function getVisibleRange(e,o){return null==e&&(e=scrollTop),null==o&&(o=scrollLeft),{top:getRowFromPosition(e),bottom:getRowFromPosition(e+viewportH)+1,leftPx:o,rightPx:o+viewportW}}function getRenderedRange(e,o){var t=getVisibleRange(e,o),l=Math.round(viewportH/options.rowHeight),n=options.minRowBuffer;return-1==vScrollDir?(t.top-=l,t.bottom+=n):1==vScrollDir?(t.top-=n,t.bottom+=l):(t.top-=n,t.bottom+=n),t.top=Math.max(0,t.top),t.bottom=Math.min(getDataLengthIncludingAddNew()-1,t.bottom),t.leftPx-=viewportW,t.rightPx+=viewportW,t.leftPx=Math.max(0,t.leftPx),t.rightPx=Math.min(canvasWidth,t.rightPx),t}function ensureCellNodesInRowsCache(e){var o=rowsCache[e];if(o&&o.cellRenderQueue.length)for(var t=o.rowNode.lastChild;o.cellRenderQueue.length;){var l=o.cellRenderQueue.pop();o.cellNodesByColumnIdx[l]=t,t=t.previousSibling}}function cleanUpCells(e,o){var t,l,n=rowsCache[o],r=[];for(var i in n.cellNodesByColumnIdx)if(n.cellNodesByColumnIdx.hasOwnProperty(i)){i|=0;var s=n.cellColSpans[i];(columnPosLeft[i]>e.rightPx||columnPosRight[Math.min(columns.length-1,i+s-1)]<e.leftPx)&&(o==activeRow&&i==activeCell||r.push(i))}for(postProcessgroupId++;null!=(t=r.pop());)l=n.cellNodesByColumnIdx[t],options.enableAsyncPostRenderCleanup&&postProcessedRows[o]&&postProcessedRows[o][t]?queuePostProcessedCellForCleanup(l,t,o):n.rowNode.removeChild(l),delete n.cellColSpans[t],delete n.cellNodesByColumnIdx[t],postProcessedRows[o]&&delete postProcessedRows[o][t]}function cleanUpAndRenderCells(e){for(var o,t,l,n=[],r=[],i=e.top,s=e.bottom;i<=s;i++)if(o=rowsCache[i]){ensureCellNodesInRowsCache(i),cleanUpCells(e,i),t=0;var a=data.getItemMetadata&&data.getItemMetadata(i);a=a&&a.columns;for(var c=getDataItem(i),d=0,u=columns.length;d<u&&!(columnPosLeft[d]>e.rightPx);d++)if(null==(l=o.cellColSpans[d])){if(l=1,a){var h=a[columns[d].id]||a[d];""===(l=h&&h.colspan||1)&&(l=u-d)}columnPosRight[Math.min(u-1,d+l-1)]>e.leftPx&&(appendCellHtml(n,i,d,l,c),t++),d+=l>1?l-1:0}else d+=l>1?l-1:0;t&&(t,r.push(i))}if(n.length){var p,g,m=document.createElement("div");for(m.innerHTML=n.join("");null!=(p=r.pop());){var v;for(o=rowsCache[p];null!=(v=o.cellRenderQueue.pop());)g=m.lastChild,o.rowNode.appendChild(g),o.cellNodesByColumnIdx[v]=g}}}function renderRows(e){for(var o=$canvas[0],t=[],l=[],n=!1,r=getDataLength(),i=e.top,s=e.bottom;i<=s;i++)rowsCache[i]||(renderedRows++,l.push(i),rowsCache[i]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},appendRowHtml(t,i,e,r),activeCellNode&&activeRow===i&&(n=!0),counter_rows_rendered++);if(l.length){var a=document.createElement("div");a.innerHTML=t.join("");for(i=0,s=l.length;i<s;i++)rowsCache[l[i]].rowNode=o.appendChild(a.firstChild);n&&(activeCellNode=getCellNode(activeRow,activeCell))}}function startPostProcessing(){options.enableAsyncPostRender&&(clearTimeout(h_postrender),h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}function startPostProcessingCleanup(){options.enableAsyncPostRenderCleanup&&(clearTimeout(h_postrenderCleanup),h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay))}function invalidatePostProcessingResults(e){for(var o in postProcessedRows[e])postProcessedRows[e].hasOwnProperty(o)&&(postProcessedRows[e][o]="C");postProcessFromRow=Math.min(postProcessFromRow,e),postProcessToRow=Math.max(postProcessToRow,e),startPostProcessing()}function updateRowPositions(){for(var e in rowsCache)rowsCache[e].rowNode.style.top=getRowTop(e)+"px"}function render(){if(initialized){scrollThrottle.dequeue();var e=getVisibleRange(),o=getRenderedRange();cleanupRows(o),lastRenderedScrollLeft!=scrollLeft&&cleanUpAndRenderCells(o),renderRows(o),postProcessFromRow=e.top,postProcessToRow=Math.min(getDataLengthIncludingAddNew()-1,e.bottom),startPostProcessing(),lastRenderedScrollTop=scrollTop,lastRenderedScrollLeft=scrollLeft,h_render=null,trigger(self.onRendered,{startRow:e.top,endRow:e.bottom,grid:self})}}function handleHeaderScroll(){handleElementScroll($headerScroller[0])}function handleHeaderRowScroll(){handleElementScroll($headerRowScroller[0])}function handleFooterRowScroll(){handleElementScroll($footerRowScroller[0])}function handlePreHeaderPanelScroll(){handleElementScroll($preHeaderPanelScroller[0])}function handleElementScroll(e){var o=e.scrollLeft;o!=$viewport[0].scrollLeft&&($viewport[0].scrollLeft=o)}function handleScroll(){scrollTop=$viewport[0].scrollTop,scrollLeft=$viewport[0].scrollLeft;var e=Math.abs(scrollTop-prevScrollTop),o=Math.abs(scrollLeft-prevScrollLeft);if(o&&(prevScrollLeft=scrollLeft,$headerScroller[0].scrollLeft=scrollLeft,$topPanelScroller[0].scrollLeft=scrollLeft,$headerRowScroller[0].scrollLeft=scrollLeft,options.createFooterRow&&($footerRowScroller[0].scrollLeft=scrollLeft),options.createPreHeaderPanel&&($preHeaderPanelScroller[0].scrollLeft=scrollLeft)),e)if(vScrollDir=prevScrollTop<scrollTop?1:-1,prevScrollTop=scrollTop,e<viewportH)scrollTo(scrollTop+offset);else{var t=offset;page=h==viewportH?0:Math.min(n-1,Math.floor(scrollTop*((th-viewportH)/(h-viewportH))*(1/ph))),t!=(offset=Math.round(page*cj))&&invalidateAllRows()}if(o||e){var l=Math.abs(lastRenderedScrollLeft-scrollLeft),r=Math.abs(lastRenderedScrollTop-scrollTop);(l>20||r>20)&&(options.forceSyncScrolling||r<viewportH&&l<viewportW?render():scrollThrottle.enqueue(),trigger(self.onViewportChanged,{}))}trigger(self.onScroll,{scrollLeft,scrollTop})}function ActionThrottle(e,o){var t=!1,l=!1;function n(){l=!1}function r(){t=!0,setTimeout(i,o),e()}function i(){l?(n(),r()):t=!1}return{enqueue:function(){t?l=!0:r()},dequeue:n}}function asyncPostProcessRows(){for(var e=getDataLength();postProcessFromRow<=postProcessToRow;){var o=vScrollDir>=0?postProcessFromRow++:postProcessToRow–,t=rowsCache[o];if(t&&!(o>=e)){for(var l in postProcessedRows[o]||(postProcessedRows[o]={}),ensureCellNodesInRowsCache(o),t.cellNodesByColumnIdx)if(t.cellNodesByColumnIdx.hasOwnProperty(l)){var n=columns[l|=0],r=postProcessedRows[o][l];if(n.asyncPostRender&&"R"!==r){var i=t.cellNodesByColumnIdx[l];i&&n.asyncPostRender(i,o,getDataItem(o),n,"C"===r),postProcessedRows[o][l]="R"}}return void(h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}}}function asyncPostProcessCleanupRows(){if(postProcessedCleanupQueue.length>0){for(var e=postProcessedCleanupQueue[0].groupId;postProcessedCleanupQueue.length>0&&postProcessedCleanupQueue[0].groupId==e;){var o=postProcessedCleanupQueue.shift();if("R"==o.actionType&&$(o.node).remove(),"C"==o.actionType){var t=columns[o.columnIdx];t.asyncPostRenderCleanup&&o.node&&t.asyncPostRenderCleanup(o.node,o.rowIdx,t)}}h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay)}}function updateCellCssStylesOnRenderedRows(e,o){var t,l,n,r;for(var i in rowsCache){if(r=o&&o[i],n=e&&e[i],r)for(l in r)n&&r[l]==n[l]||(t=getCellNode(i,getColumnIndex(l)))&&$(t).removeClass(r[l]);if(n)for(l in n)r&&r[l]==n[l]||(t=getCellNode(i,getColumnIndex(l)))&&$(t).addClass(n[l])}}function addCellCssStyles(e,o){if(cellCssClasses[e])throw new Error("addCellCssStyles: cell CSS hash with key ‘"+e+"’ already exists.");cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,null),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function removeCellCssStyles(e){cellCssClasses[e]&&(updateCellCssStylesOnRenderedRows(null,cellCssClasses[e]),delete cellCssClasses[e],trigger(self.onCellCssStylesChanged,{key:e,hash:null,grid:self}))}function setCellCssStyles(e,o){var t=cellCssClasses[e];cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,t),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function getCellCssStyles(e){return cellCssClasses[e]}function flashCell(e,o,t){if(t=t||100,rowsCache[e]){var l=$(getCellNode(e,o)),n=function(e){e&&setTimeout((function(){l.queue((function(){l.toggleClass(options.cellFlashingCssClass).dequeue(),n(e-1)}))}),t)};n(4)}}function handleMouseWheel(e){var o=$(e.target).closest(".slick-row")[0];o!=rowNodeFromLastMouseWheelEvent&&(zombieRowNodeFromLastMouseWheelEvent&&zombieRowNodeFromLastMouseWheelEvent!=o&&(options.enableAsyncPostRenderCleanup&&zombieRowPostProcessedFromLastMouseWheelEvent?queuePostProcessedRowForCleanup(zombieRowCacheFromLastMouseWheelEvent,zombieRowPostProcessedFromLastMouseWheelEvent):$canvas[0].removeChild(zombieRowNodeFromLastMouseWheelEvent),zombieRowNodeFromLastMouseWheelEvent=null,zombieRowCacheFromLastMouseWheelEvent=null,zombieRowPostProcessedFromLastMouseWheelEvent=null,options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()),rowNodeFromLastMouseWheelEvent=o)}function handleDragInit(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var l=trigger(self.onDragInit,o,e);return!!e.isImmediatePropagationStopped()&&l}function handleDragStart(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var l=trigger(self.onDragStart,o,e);return!!e.isImmediatePropagationStopped()&&l}function handleDrag(e,o){return trigger(self.onDrag,o,e)}function handleDragEnd(e,o){trigger(self.onDragEnd,o,e)}function handleKeyDown(e){trigger(self.onKeyDown,{row:activeRow,cell:activeCell},e);var o=e.isImmediatePropagationStopped(),t=Slick.keyCode;if(!o&&!e.shiftKey&&!e.altKey){if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;e.which==t.HOME?o=e.ctrlKey?navigateTop():navigateRowStart():e.which==t.END&&(o=e.ctrlKey?navigateBottom():navigateRowEnd())}if(!o)if(e.shiftKey||e.altKey||e.ctrlKey)e.which!=t.TAB||!e.shiftKey||e.ctrlKey||e.altKey||(o=navigatePrev());else{if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which==t.ESCAPE){if(!getEditorLock().isActive())return;cancelEditAndSetFocus()}else e.which==t.PAGE_DOWN?(navigatePageDown(),o=!0):e.which==t.PAGE_UP?(navigatePageUp(),o=!0):e.which==t.LEFT?o=navigateLeft():e.which==t.RIGHT?o=navigateRight():e.which==t.UP?o=navigateUp():e.which==t.DOWN?o=navigateDown():e.which==t.TAB?o=navigateNext():e.which==t.ENTER&&(options.editable&&(currentEditor?activeRow===getDataLength()?navigateDown():commitEditAndSetFocus():getEditorLock().commitCurrentEdit()&&makeActiveCellEditable(void 0,void 0,e)),o=!0)}if(o){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch(e){}}}function handleClick(e){currentEditor||(e.target!=document.activeElement||$(e.target).hasClass("slick-cell"))&&setFocus();var o=getCellFromEvent(e);if(o&&(null===currentEditor||activeRow!=o.row||activeCell!=o.cell)&&(trigger(self.onClick,{row:o.row,cell:o.cell},e),!e.isImmediatePropagationStopped()&&canCellBeActive(o.row,o.cell)&&(!getEditorLock().isActive()||getEditorLock().commitCurrentEdit()))){scrollRowIntoView(o.row,!1);var t=e.target&&e.target.className===Slick.preClickClassName,l=columns[o.cell],n=!!(options.editable&&l&&l.editor&&options.suppressActiveCellChangeOnEdit);setActiveCellInternal(getCellNode(o.row,o.cell),null,t,n,e)}}function handleContextMenu(e){var o=$(e.target).closest(".slick-cell",$canvas);0!==o.length&&(activeCellNode===o[0]&&null!==currentEditor||trigger(self.onContextMenu,{},e))}function handleDblClick(e){var o=getCellFromEvent(e);!o||null!==currentEditor&&activeRow==o.row&&activeCell==o.cell||(trigger(self.onDblClick,{row:o.row,cell:o.cell},e),e.isImmediatePropagationStopped()||options.editable&&gotoCell(o.row,o.cell,!0,e))}function handleHeaderMouseEnter(e){trigger(self.onHeaderMouseEnter,{column:$(this).data("column"),grid:self},e)}function handleHeaderMouseLeave(e){trigger(self.onHeaderMouseLeave,{column:$(this).data("column"),grid:self},e)}function handleHeaderContextMenu(e){var o=$(e.target).closest(".slick-header-column",".slick-header-columns"),t=o&&o.data("column");trigger(self.onHeaderContextMenu,{column:t},e)}function handleHeaderClick(e){if(!columnResizeDragging){var o=$(e.target).closest(".slick-header-column",".slick-header-columns"),t=o&&o.data("column");t&&trigger(self.onHeaderClick,{column:t},e)}}function handleMouseEnter(e){trigger(self.onMouseEnter,{},e)}function handleMouseLeave(e){trigger(self.onMouseLeave,{},e)}function cellExists(e,o){return!(e<0||e>=getDataLength()||o<0||o>=columns.length)}function getCellFromPoint(e,o){for(var t=getRowFromPosition(o),l=0,n=0,r=0;r<columns.length&&n<e;r++)n+=columns[r].width,l++;return l<0&&(l=0),{row:t,cell:l-1}}function getCellFromNode(e){var o=/l\d+/.exec(e.className);if(!o)throw new Error("getCellFromNode: cannot get cell - "+e.className);return parseInt(o[0].substr(1,o[0].length-1),10)}function getRowFromNode(e){for(var o in rowsCache)if(rowsCache[o].rowNode===e)return 0|o;return null}function getCellFromEvent(e){var o=$(e.target).closest(".slick-cell",$canvas);if(!o.length)return null;var t=getRowFromNode(o[0].parentNode),l=getCellFromNode(o[0]);return null==t||null==l?null:{row:t,cell:l}}function getCellNodeBox(e,o){if(!cellExists(e,o))return null;for(var t=getRowTop(e),l=t+options.rowHeight-1,n=0,r=0;r<o;r++)n+=columns[r].width;return{top:t,left:n,bottom:l,right:n+columns[o].width}}function resetActiveCell(){setActiveCellInternal(null,!1)}function setFocus(){-1==tabbingDirection?$focusSink[0].focus():$focusSink2[0].focus()}function scrollCellIntoView(e,o,t){scrollRowIntoView(e,t);var l=getColspan(e,o);internalScrollColumnIntoView(columnPosLeft[o],columnPosRight[o+(l>1?l-1:0)])}function internalScrollColumnIntoView(e,o){var t=scrollLeft+viewportW;e<scrollLeft?($viewport.scrollLeft(e),handleScroll(),render()):o>t&&($viewport.scrollLeft(Math.min(e,o-$viewport[0].clientWidth)),handleScroll(),render())}function scrollColumnIntoView(e){internalScrollColumnIntoView(columnPosLeft[e],columnPosRight[e])}function setActiveCellInternal(e,o,t,l,n){null!==activeCellNode&&(makeActiveCellNormal(),$(activeCellNode).removeClass("active"),rowsCache[activeRow]&&$(rowsCache[activeRow].rowNode).removeClass("active"));null!=(activeCellNode=e)?(activeRow=getRowFromNode(activeCellNode.parentNode),activeCell=activePosX=getCellFromNode(activeCellNode),null==o&&(o=activeRow==getDataLength()||options.autoEdit),options.showCellSelection&&($(activeCellNode).addClass("active"),$(rowsCache[activeRow].rowNode).addClass("active")),options.editable&&o&&isCellPotentiallyEditable(activeRow,activeCell)&&(clearTimeout(h_editorLoader),options.asyncEditorLoading?h_editorLoader=setTimeout((function(){makeActiveCellEditable(void 0,t,n)}),options.asyncEditorLoadDelay):makeActiveCellEditable(void 0,t,n))):activeRow=activeCell=null,l||trigger(self.onActiveCellChanged,getActiveCell())}function clearTextSelection(){if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}else if(window.getSelection){var e=window.getSelection();e&&e.removeAllRanges&&e.removeAllRanges()}}function isCellPotentiallyEditable(e,o){var t=getDataLength();return!(e<t&&!getDataItem(e))&&(!(columns[o].cannotTriggerInsert&&e>=t)&&!!getEditor(e,o))}function makeActiveCellNormal(){if(currentEditor){if(trigger(self.onBeforeCellEditorDestroy,{editor:currentEditor}),currentEditor.destroy(),currentEditor=null,activeCellNode){var e=getDataItem(activeRow);if($(activeCellNode).removeClass("editable invalid"),e){var o=columns[activeCell];applyFormatResultToCellNode(getFormatter(activeRow,o)(activeRow,activeCell,getDataItemValueForColumn(e,o),o,e,self),activeCellNode),invalidatePostProcessingResults(activeRow)}}navigator.userAgent.toLowerCase().match(/msie/)&&clearTextSelection(),getEditorLock().deactivate(editController)}}function makeActiveCellEditable(e,o,t){if(activeCellNode){if(!options.editable)throw new Error("Grid : makeActiveCellEditable : should never get called when options.editable is false");if(clearTimeout(h_editorLoader),isCellPotentiallyEditable(activeRow,activeCell)){var l=columns[activeCell],n=getDataItem(activeRow);if(!1!==trigger(self.onBeforeEditCell,{row:activeRow,cell:activeCell,item:n,column:l})){getEditorLock().activate(editController),$(activeCellNode).addClass("editable");var r=e||getEditor(activeRow,activeCell);e||r.suppressClearOnEdit||(activeCellNode.innerHTML=""),currentEditor=new r({grid:self,gridPosition:absBox($container[0]),position:absBox(activeCellNode),container:activeCellNode,column:l,item:n||{},event:t,commitChanges:commitEditAndSetFocus,cancelChanges:cancelEditAndSetFocus}),n&&(currentEditor.loadValue(n),o&¤tEditor.preClick&¤tEditor.preClick()),serializedEditorValue=currentEditor.serializeValue(),currentEditor.position&&handleActiveCellPositionChange()}else setFocus()}}}function commitEditAndSetFocus(){getEditorLock().commitCurrentEdit()&&(setFocus(),options.autoEdit&&navigateDown())}function cancelEditAndSetFocus(){getEditorLock().cancelCurrentEdit()&&setFocus()}function absBox(e){var o={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:$(e).outerWidth(),height:$(e).outerHeight(),visible:!0};o.bottom=o.top+o.height,o.right=o.left+o.width;for(var t=e.offsetParent;(e=e.parentNode)!=document.body&&null!=e;)o.visible&&e.scrollHeight!=e.offsetHeight&&"visible"!=$(e).css("overflowY")&&(o.visible=o.bottom>e.scrollTop&&o.top<e.scrollTop+e.clientHeight),o.visible&&e.scrollWidth!=e.offsetWidth&&"visible"!=$(e).css("overflowX")&&(o.visible=o.right>e.scrollLeft&&o.left<e.scrollLeft+e.clientWidth),o.left-=e.scrollLeft,o.top-=e.scrollTop,e===t&&(o.left+=e.offsetLeft,o.top+=e.offsetTop,t=e.offsetParent),o.bottom=o.top+o.height,o.right=o.left+o.width;return o}function getActiveCellPosition(){return absBox(activeCellNode)}function getGridPosition(){return absBox($container[0])}function handleActiveCellPositionChange(){if(activeCellNode&&(trigger(self.onActiveCellPositionChanged,{}),currentEditor)){var e=getActiveCellPosition();currentEditor.show&¤tEditor.hide&&(e.visible?currentEditor.show():currentEditor.hide()),currentEditor.position&¤tEditor.position(e)}}function getCellEditor(){return currentEditor}function getActiveCell(){return activeCellNode?{row:activeRow,cell:activeCell}:null}function getActiveCellNode(){return activeCellNode}function scrollRowIntoView(e,o){var t=e*options.rowHeight,l=(e+1)*options.rowHeight-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0);(e+1)*options.rowHeight>scrollTop+viewportH+offset?(scrollTo(o?t:l),render()):e*options.rowHeight<scrollTop+offset&&(scrollTo(o?l:t),render())}function scrollRowToTop(e){scrollTo(e*options.rowHeight),render()}function scrollPage(e){var o=e*numVisibleRows;if(scrollTo((getRowFromPosition(scrollTop)+o)*options.rowHeight),render(),options.enableCellNavigation&&null!=activeRow){var t=activeRow+o,l=getDataLengthIncludingAddNew();t>=l&&(t=l-1),t<0&&(t=0);for(var n=0,r=null,i=activePosX;n<=activePosX;)canCellBeActive(t,n)&&(r=n),n+=getColspan(t,n);null!==r?(setActiveCellInternal(getCellNode(t,r)),activePosX=i):resetActiveCell()}}function navigatePageDown(){scrollPage(1)}function navigatePageUp(){scrollPage(-1)}function navigateTop(){navigateToRow(0)}function navigateBottom(){navigateToRow(getDataLength()-1)}function navigateToRow(e){var o=getDataLength();if(!o)return!0;if(e<0?e=0:e>=o&&(e=o-1),scrollCellIntoView(e,0,!0),options.enableCellNavigation&&null!=activeRow){for(var t=0,l=null,n=activePosX;t<=activePosX;)canCellBeActive(e,t)&&(l=t),t+=getColspan(e,t);null!==l?(setActiveCellInternal(getCellNode(e,l)),activePosX=n):resetActiveCell()}return!0}function getColspan(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e);if(!t||!t.columns)return 1;var l=t.columns[columns[o].id]||t.columns[o],n=l&&l.colspan;return n=""===n?columns.length-o:n||1}function findFirstFocusableCell(e){for(var o=0;o<columns.length;){if(canCellBeActive(e,o))return o;o+=getColspan(e,o)}return null}function findLastFocusableCell(e){for(var o=0,t=null;o<columns.length;)canCellBeActive(e,o)&&(t=o),o+=getColspan(e,o);return t}function gotoRight(e,o,t){if(o>=columns.length)return null;do{o+=getColspan(e,o)}while(o<columns.length&&!canCellBeActive(e,o));return o<columns.length?{row:e,cell:o,posX:o}:null}function gotoLeft(e,o,t){if(o<=0)return null;var l=findFirstFocusableCell(e);if(null===l||l>=o)return null;for(var n,r={row:e,cell:l,posX:l};;){if(!(n=gotoRight(r.row,r.cell,r.posX)))return null;if(n.cell>=o)return r;r=n}}function gotoDown(e,o,t){for(var l,n=getDataLengthIncludingAddNew();;){if(++e>=n)return null;for(l=o=0;o<=t;)l=o,o+=getColspan(e,o);if(canCellBeActive(e,l))return{row:e,cell:l,posX:t}}}function gotoUp(e,o,t){for(var l;;){if(–e<0)return null;for(l=o=0;o<=t;)l=o,o+=getColspan(e,o);if(canCellBeActive(e,l))return{row:e,cell:l,posX:t}}}function gotoNext(e,o,t){if(null==e&&null==o&&canCellBeActive(e=o=t=0,o))return{row:e,cell:o,posX:o};var l=gotoRight(e,o,t);if(l)return l;var n=null,r=getDataLengthIncludingAddNew();for(e===r-1&&e–;++e<r;)if(null!==(n=findFirstFocusableCell(e)))return{row:e,cell:n,posX:n};return null}function gotoPrev(e,o,t){if(null==e&&null==o&&canCellBeActive(e=getDataLengthIncludingAddNew()-1,o=t=columns.length-1))return{row:e,cell:o,posX:o};for(var l,n;!l&&!(l=gotoLeft(e,o,t));){if(–e<0)return null;o=0,null!==(n=findLastFocusableCell(e))&&(l={row:e,cell:n,posX:n})}return l}function gotoRowStart(e,o,t){var l=findFirstFocusableCell(e);return null===l?null:{row:e,cell:l,posX:l}}function gotoRowEnd(e,o,t){var l=findLastFocusableCell(e);return null===l?null:{row:e,cell:l,posX:l}}function navigateRight(){return navigate("right")}function navigateLeft(){return navigate("left")}function navigateDown(){return navigate("down")}function navigateUp(){return navigate("up")}function navigateNext(){return navigate("next")}function navigatePrev(){return navigate("prev")}function navigateRowStart(){return navigate("home")}function navigateRowEnd(){return navigate("end")}function navigate(e){if(!options.enableCellNavigation)return!1;if(!activeCellNode&&"prev"!=e&&"next"!=e)return!1;if(!getEditorLock().commitCurrentEdit())return!0;setFocus();tabbingDirection={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1}[e];var o=(0,{up:gotoUp,down:gotoDown,left:gotoLeft,right:gotoRight,prev:gotoPrev,next:gotoNext,home:gotoRowStart,end:gotoRowEnd}[e])(activeRow,activeCell,activePosX);if(o){var t=o.row==getDataLength();return scrollCellIntoView(o.row,o.cell,!t&&options.emulatePagingWhenScrolling),setActiveCellInternal(getCellNode(o.row,o.cell)),activePosX=o.posX,!0}return setActiveCellInternal(getCellNode(activeRow,activeCell)),!1}function getCellNode(e,o){return rowsCache[e]?(ensureCellNodesInRowsCache(e),rowsCache[e].cellNodesByColumnIdx[o]):null}function setActiveCell(e,o,t,l,n){initialized&&(e>getDataLength()||e<0||o>=columns.length||o<0||options.enableCellNavigation&&(scrollCellIntoView(e,o,!1),setActiveCellInternal(getCellNode(e,o),t,l,n)))}function canCellBeActive(e,o){if(!options.enableCellNavigation||e>=getDataLengthIncludingAddNew()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.focusable)return!!t.focusable;var l=t&&t.columns;return l&&l[columns[o].id]&&void 0!==l[columns[o].id].focusable?!!l[columns[o].id].focusable:l&&l[o]&&void 0!==l[o].focusable?!!l[o].focusable:!!columns[o].focusable}function canCellBeSelected(e,o){if(e>=getDataLength()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.selectable)return!!t.selectable;var l=t&&t.columns&&(t.columns[columns[o].id]||t.columns[o]);return l&&void 0!==l.selectable?!!l.selectable:!!columns[o].selectable}function gotoCell(e,o,t,l){initialized&&(canCellBeActive(e,o)&&getEditorLock().commitCurrentEdit()&&(scrollCellIntoView(e,o,!1),setActiveCellInternal(getCellNode(e,o),t||e===getDataLength()||options.autoEdit,null,options.editable,l),currentEditor||setFocus()))}function commitCurrentEdit(){var e=getDataItem(activeRow),o=columns[activeCell];if(currentEditor){if(currentEditor.isValueChanged()){var t=currentEditor.validate();if(t.valid){if(activeRow<getDataLength()){var l={row:activeRow,cell:activeCell,editor:currentEditor,serializedValue:currentEditor.serializeValue(),prevSerializedValue:serializedEditorValue,execute:function(){this.editor.applyValue(e,this.serializedValue),updateRow(this.row),trigger(self.onCellChange,{row:this.row,cell:this.cell,item:e})},undo:function(){this.editor.applyValue(e,this.prevSerializedValue),updateRow(this.row),trigger(self.onCellChange,{row:this.row,cell:this.cell,item:e})}};options.editCommandHandler?(makeActiveCellNormal(),options.editCommandHandler(e,o,l)):(l.execute(),makeActiveCellNormal())}else{var n={};currentEditor.applyValue(n,currentEditor.serializeValue()),makeActiveCellNormal(),trigger(self.onAddNewRow,{item:n,column:o})}return!getEditorLock().isActive()}return $(activeCellNode).removeClass("invalid"),$(activeCellNode).width(),$(activeCellNode).addClass("invalid"),trigger(self.onValidationError,{editor:currentEditor,cellNode:activeCellNode,validationResults:t,row:activeRow,cell:activeCell,column:o}),currentEditor.focus(),!1}makeActiveCellNormal()}return!0}function cancelCurrentEdit(){return makeActiveCellNormal(),!0}function rowsToRanges(e){for(var o=[],t=columns.length-1,l=0;l<e.length;l++)o.push(new Slick.Range(e[l],0,e[l],t));return o}function getSelectedRows(){if(!selectionModel)throw new Error("Selection model is not set");return selectedRows}function setSelectedRows(e){if(!selectionModel)throw new Error("Selection model is not set");self&&self.getEditorLock&&!self.getEditorLock().isActive()&&selectionModel.setSelectedRanges(rowsToRanges(e))}this.debug=function(){var e="";e+="\ncounter_rows_rendered: "+counter_rows_rendered,e+="\ncounter_rows_removed: "+counter_rows_removed,e+="\nrenderedRows: "+renderedRows,e+="\nnumVisibleRows: "+numVisibleRows,e+="\nmaxSupportedCssHeight: "+maxSupportedCssHeight,e+="\nn(umber of pages): "+n,e+="\n(current) page: "+page,e+="\npage height (ph): "+ph,e+="\nvScrollDir: "+vScrollDir,alert(e)},this.eval=function(expr){return eval(expr)},$.extend(this,{slickGridVersion:"2.3.23",onScroll:new Slick.Event,onSort:new Slick.Event,onHeaderMouseEnter:new Slick.Event,onHeaderMouseLeave:new Slick.Event,onHeaderContextMenu:new Slick.Event,onHeaderClick:new Slick.Event,onHeaderCellRendered:new Slick.Event,onBeforeHeaderCellDestroy:new Slick.Event,onHeaderRowCellRendered:new Slick.Event,onFooterRowCellRendered:new Slick.Event,onBeforeHeaderRowCellDestroy:new Slick.Event,onBeforeFooterRowCellDestroy:new Slick.Event,onMouseEnter:new Slick.Event,onMouseLeave:new Slick.Event,onClick:new Slick.Event,onDblClick:new Slick.Event,onContextMenu:new Slick.Event,onKeyDown:new Slick.Event,onAddNewRow:new Slick.Event,onBeforeAppendCell:new Slick.Event,onValidationError:new Slick.Event,onViewportChanged:new Slick.Event,onColumnsReordered:new Slick.Event,onColumnsResized:new Slick.Event,onCellChange:new Slick.Event,onBeforeEditCell:new Slick.Event,onBeforeCellEditorDestroy:new Slick.Event,onBeforeDestroy:new Slick.Event,onActiveCellChanged:new Slick.Event,onActiveCellPositionChanged:new Slick.Event,onDragInit:new Slick.Event,onDragStart:new Slick.Event,onDrag:new Slick.Event,onDragEnd:new Slick.Event,onSelectedRowsChanged:new Slick.Event,onCellCssStylesChanged:new Slick.Event,onAutosizeColumns:new Slick.Event,onRendered:new Slick.Event,registerPlugin,unregisterPlugin,getColumns,setColumns,getColumnIndex,updateColumnHeader,setSortColumn,setSortColumns,getSortColumns,autosizeColumns,getOptions,setOptions,getData,getDataLength,getDataItem,setData,getSelectionModel,setSelectionModel,getSelectedRows,setSelectedRows,getContainerNode,updatePagingStatusFromView,render,invalidate,invalidateRow,invalidateRows,invalidateAllRows,updateCell,updateRow,getViewport:getVisibleRange,getRenderedRange,resizeCanvas,updateRowCount,scrollRowIntoView,scrollRowToTop,scrollCellIntoView,scrollColumnIntoView,getCanvasNode,getUID,getHeaderColumnWidthDiff,getScrollbarDimensions,getHeadersWidth,getCanvasWidth,focus:setFocus,scrollTo,getCellFromPoint,getCellFromEvent,getActiveCell,setActiveCell,getActiveCellNode,getActiveCellPosition,resetActiveCell,editActiveCell:makeActiveCellEditable,getCellEditor,getCellNode,getCellNodeBox,canCellBeSelected,canCellBeActive,navigatePrev,navigateNext,navigateUp,navigateDown,navigateLeft,navigateRight,navigatePageUp,navigatePageDown,navigateTop,navigateBottom,navigateRowStart,navigateRowEnd,gotoCell,getTopPanel,setTopPanelVisibility,getPreHeaderPanel,setPreHeaderPanelVisibility,getHeader,getHeaderColumn,setHeaderRowVisibility,getHeaderRow,getHeaderRowColumn,setFooterRowVisibility,getFooterRow,getFooterRowColumn,getGridPosition,flashCell,addCellCssStyles,setCellCssStyles,removeCellCssStyles,getCellCssStyles,init:finishInitialization,destroy,getEditorLock,getEditController}),init()}module.exports={Grid:SlickGrid}},n 433: function _(t,e,a){n /!n * jquery.event.drag - v 2.3.0n * Copyright (c) 2010 Three Dub Media - http://threedubmedia.comn * Open Source MIT License - http://threedubmedia.com/code/licensen */n var n=t(426);n.fn.drag=function(t,e,a){var r="string"==typeof t?t:"",o=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==r.indexOf("drag")&&(r="drag"+r),a=(t==o?e:a)||{},o?this.on(r,a,o):this.trigger(r)};var r=n.event,o=r.special,i=o.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(t){var e=n.data(this,i.datakey),a=t.data||{};e.related+=1,n.each(i.defaults,(function(t,n){void 0!==a[t]&&(e[t]=a[t])}))},remove:function(){n.data(this,i.datakey).related-=1},setup:function(){if(!n.data(this,i.datakey)){var t=n.extend({related:0},i.defaults);n.data(this,i.datakey,t),r.add(this,"touchstart mousedown",i.init,t),this.attachEvent&&this.attachEvent("ondragstart",i.dontstart)}},teardown:function(){(n.data(this,i.datakey)||{}).related||(n.removeData(this,i.datakey),r.remove(this,"touchstart mousedown",i.init),i.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",i.dontstart))},init:function(t){if(!i.touched){var e,a=t.data;if(!(0!=t.which&&a.which>0&&t.which!=a.which)&&!n(t.target).is(a.not)&&(!a.handle||n(t.target).closest(a.handle,t.currentTarget).length)&&(i.touched="touchstart"==t.type?this:null,a.propagates=1,a.mousedown=this,a.interactions=[i.interaction(this,a)],a.target=t.target,a.pageX=t.pageX,a.pageY=t.pageY,a.dragging=null,e=i.hijack(t,"draginit",a),a.propagates))return(e=i.flatten(e))&&e.length&&(a.interactions=[],n.each(e,(function(){a.interactions.push(i.interaction(this,a))}))),a.propagates=a.interactions.length,!1!==a.drop&&o.drop&&o.drop.handler(t,a),i.textselect(!1),i.touched?r.add(i.touched,"touchmove touchend",i.handler,a):r.add(document,"mousemove mouseup",i.handler,a),!(!i.touched||a.live)&&void 0}},interaction:function(t,e){var a=t&&t.ownerDocument&&n(t)[e.relative?"position":"offset"]()||{top:0,left:0};return{drag:t,callback:new i.callback,droppable:[],offset:a}},handler:function(t){var e=t.data;switch(t.type){case!e.dragging&&"touchmove":t.preventDefault();case!e.dragging&&"mousemove":if(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2)<Math.pow(e.distance,2))break;t.target=e.target,i.hijack(t,"dragstart",e),e.propagates&&(e.dragging=!0);case"touchmove":t.preventDefault();case"mousemove":if(e.dragging){if(i.hijack(t,"drag",e),e.propagates){!1!==e.drop&&o.drop&&o.drop.handler(t,e);break}t.type="mouseup"}case"touchend":case"mouseup":default:i.touched?r.remove(i.touched,"touchmove touchend",i.handler):r.remove(document,"mousemove mouseup",i.handler),e.dragging&&(!1!==e.drop&&o.drop&&o.drop.handler(t,e),i.hijack(t,"dragend",e)),i.textselect(!0),!1===e.click&&e.dragging&&n.data(e.mousedown,"suppress.click",(new Date).getTime()+5),e.dragging=i.touched=!1}},hijack:function(t,e,a,o,d){if(a){var s,c,l,p={event:t.originalEvent,type:t.type},u=e.indexOf("drop")?"drag":"drop",g=o||0,h=isNaN(o)?a.interactions.length:o;t.type=e;var f=function(){};t.originalEvent=new n.Event(p.event,{preventDefault:f,stopPropagation:f,stopImmediatePropagation:f}),a.results=[];do{if(c=a.interactions[g]){if("dragend"!==e&&c.cancelled)continue;l=i.properties(t,a,c),c.results=[],n(d||c[u]||a.droppable).each((function(o,d){if(l.target=d,t.isPropagationStopped=function(){return!1},!1===(s=d?r.dispatch.call(d,t,l):null)?("drag"==u&&(c.cancelled=!0,a.propagates-=1),"drop"==e&&(c[u][o]=null)):"dropinit"==e&&c.droppable.push(i.element(s)||d),"dragstart"==e&&(c.proxy=n(i.element(s)||c.drag)[0]),c.results.push(s),delete t.result,"dropinit"!==e)return s})),a.results[g]=i.flatten(c.results),"dropinit"==e&&(c.droppable=i.flatten(c.droppable)),"dragstart"!=e||c.cancelled||l.update()}}while(++g<h);return t.type=p.type,t.originalEvent=p.event,i.flatten(a.results)}},properties:function(t,e,a){var n=a.callback;return n.drag=a.drag,n.proxy=a.proxy||a.drag,n.startX=e.pageX,n.startY=e.pageY,n.deltaX=t.pageX-e.pageX,n.deltaY=t.pageY-e.pageY,n.originalX=a.offset.left,n.originalY=a.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=i.flatten((a.drop||[]).slice()),n.available=i.flatten((a.droppable||[]).slice()),n},element:function(t){if(t&&(t.jquery||1==t.nodeType))return t},flatten:function(t){return n.map(t,(function(t){return t&&t.jquery?n.makeArray(t):t&&t.length?i.flatten(t):t}))},textselect:function(t){n(document)[t?"off":"on"]("selectstart",i.dontstart).css("MozUserSelect",t?"":"none"),document.unselectable=t?"off":"on"},dontstart:function(){return!1},callback:function(){}};i.callback.prototype={update:function(){o.drop&&this.available.length&&n.each(this.available,(function(t){o.drop.locate(this,t)}))}};var d=r.dispatch;r.dispatch=function(t){if(!(n.data(this,"suppress."+t.type)-(new Date).getTime()>0))return d.apply(this,arguments);n.removeData(this,"suppress."+t.type)},o.draginit=o.dragstart=o.dragend=i},n 434: function _(t,e,a){n /!n * jquery.event.drop - v 2.3.0n * Copyright (c) 2010 Three Dub Media - http://threedubmedia.comn * Open Source MIT License - http://threedubmedia.com/code/licensen /n var n=t(426);n.fn.drop=function(t,e,a){var i="string"==typeof t?t:"",o=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==i.indexOf("drop")&&(i="drop"+i),a=(t==o?e:a)||{},o?this.on(i,a,o):this.trigger(i)},n.drop=function(t){t=t||{},o.multi=!0===t.multi?1/0:!1===t.multi?1:isNaN(t.multi)?o.multi:t.multi,o.delay=t.delay||o.delay,o.tolerance=n.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:o.tolerance,o.mode=t.mode||o.mode||"intersect"};var i=n.event.special,o=n.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(t){n.data(this,o.datakey).related+=1},remove:function(){n.data(this,o.datakey).related-=1},setup:function(){if(!n.data(this,o.datakey)){n.data(this,o.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),o.targets.push(this)}},teardown:function(){if(!(n.data(this,o.datakey)||{}).related){n.removeData(this,o.datakey);var t=this;o.targets=n.grep(o.targets,(function(e){return e!==t}))}},handler:function(t,e){var a;if(e)switch(t.type){case"mousedown":case"touchstart":a=n(o.targets),"string"==typeof e.drop&&(a=a.filter(e.drop)),a.each((function(){var t=n.data(this,o.datakey);t.active=[],t.anyactive=0,t.winner=0})),e.droppable=a,i.drag.hijack(t,"dropinit",e);break;case"mousemove":case"touchmove":o.event=t,o.timer||o.tolerate(e);break;case"mouseup":case"touchend":o.timer=clearTimeout(o.timer),e.propagates&&(i.drag.hijack(t,"drop",e),i.drag.hijack(t,"dropend",e))}},locate:function(t,e){var a=n.data(t,o.datakey),i=n(t),r=i.offset()||{},d=i.outerHeight(),l=i.outerWidth(),c={elem:t,width:l,height:d,top:r.top,left:r.left,right:r.left+l,bottom:r.top+d};return a&&(a.location=c,a.index=e,a.elem=t),c},contains:function(t,e){return(e[0]||e.left)>=t.left&&(e[0]||e.right)<=t.right&&(e[1]||e.top)>=t.top&&(e[1]||e.bottom)<=t.bottom},modes:{intersect:function(t,e,a){return this.contains(a,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,a){return Math.max(0,Math.min(a.bottom,e.bottom)-Math.max(a.top,e.top))*Math.max(0,Math.min(a.right,e.right)-Math.max(a.left,e.left))},fit:function(t,e,a){return this.contains(a,e)?1:0},middle:function(t,e,a){return this.contains(a,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(t){var e,a,r,d,l,c,s,u,p=0,h=t.interactions.length,m=[o.event.pageX,o.event.pageY],f=o.tolerance||o.modes[o.mode];do{if(u=t.interactions[p]){if(!u)return;u.drop=[],l=[],c=u.droppable.length,f&&(r=o.locate(u.proxy)),e=0;do{if(s=u.droppable[e]){if(!(a=(d=n.data(s,o.datakey)).location))continue;d.winner=f?f.call(o,o.event,r,a):o.contains(a,m)?1:0,l.push(d)}}while(++e<c);l.sort(o.sort),e=0;do{(d=l[e])&&(d.winner&&u.drop.length<o.multi?(d.active[p]||d.anyactive||(!1!==i.drag.hijack(o.event,"dropstart",t,p,d.elem)[0]?(d.active[p]=1,d.anyactive+=1):d.winner=0),d.winner&&u.drop.push(d.elem)):d.active[p]&&1==d.anyactive&&(i.drag.hijack(o.event,"dropend",t,p,d.elem),d.active[p]=0,d.anyactive-=1))}while(++e<c)}}while(++p<h);o.last&&m[0]==o.last.pageX&&m[1]==o.last.pageY?delete o.timer:o.timer=setTimeout((function(){o.tolerate(t)}),o.delay),o.last=o.event}};i.dropinit=i.dropstart=i.dropend=o},n 435: function _(t,e,n){var r=t(426),i=t(428);var o={Avg:function(t){this.field_=t,this.init=function(){this.count_=0,this.nonNullCount_=0,this.sum_=0},this.accumulate=function(t){var e=t[this.field_];this.count_++,null==e||""===e||isNaN(e)||(this.nonNullCount_++,this.sum_+=parseFloat(e))},this.storeResult=function(t){t.avg||(t.avg={}),0!=this.nonNullCount_&&(t.avg[this.field_]=this.sum_/this.nonNullCount_)}},Min:function(t){this.field_=t,this.init=function(){this.min_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(null==this.min_||e<this.min_)&&(this.min_=e)},this.storeResult=function(t){t.min||(t.min={}),t.min[this.field_]=this.min_}},Max:function(t){this.field_=t,this.init=function(){this.max_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(null==this.max_||e>this.max_)&&(this.max_=e)},this.storeResult=function(t){t.max||(t.max={}),t.max[this.field_]=this.max_}},Sum:function(t){this.field_=t,this.init=function(){this.sum_=null},this.accumulate=function(t){var e=t[this.field_];null==e||""===e||isNaN(e)||(this.sum_+=parseFloat(e))},this.storeResult=function(t){t.sum||(t.sum={}),t.sum[this.field_]=this.sum_}}};e.exports={DataView:function(t){var e,n,o,a,l,s=this,u="id",g=[],c=[],f={},p=null,h=null,d=null,m=!1,v=!0,_={},w={},$=[],y=[],I={getter:null,formatter:null,comparer:function(t,e){return t.value===e.value?0:t.value>e.value?1:-1},predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1},C=[],R=[],x=[],b=0,M=0,F=0,A=new i.Event,S=new i.Event,N=new i.Event;function E(t){for(var e,n=t=t||0,r=g.length;n<r;n++){if(void 0===(e=g[n][u]))throw new Error("Each data element must implement a unique ‘id’ property");f[e]=n}}function T(){var t=b?Math.max(1,Math.ceil(F/b)):1;return{pageSize:b,pageNum:M,totalRows:F,totalPages:t,dataView:s}}function G(t,r){v=r,n=t,e=null,!1===r&&g.reverse(),g.sort(t),!1===r&&g.reverse(),f={},E(),Z()}function D(t,r){v=r,e=t,n=null;var i=Object.prototype.toString;Object.prototype.toString="function"==typeof t?t:function(){return this[t]},!1===r&&g.reverse(),g.sort(),Object.prototype.toString=i,!1===r&&g.reverse(),f={},E(),Z()}function P(e){t.groupItemMetadataProvider||(t.groupItemMetadataProvider=new i.Data.GroupItemMetadataProvider),R=[],x=[],C=(e=e||[])instanceof Array?e:[e];for(var n=0;n<C.length;n++){var o=C[n]=r.extend(!0,{},I,C[n]);o.getterIsAFn="function"==typeof o.getter,o.compiledAccumulators=[];for(var a=o.aggregators.length;a–;)o.compiledAccumulators[a]=W(o.aggregators[a]);x[n]={}}Z()}function j(){if(!p){p={};for(var t=0,e=c.length;t<e;t++)p[c[t][u]]=t}}function z(t){return g[f[t]]}function B(t,e){if(void 0===f[t]||t!==e[u])throw new Error("Invalid or non-matching id");g[f[t]]=e,d||(d={}),d[t]=!0,Z()}function V(t,e){g.splice(t,0,e),E(t),Z()}function O(t){var e=f[t];if(void 0===e)throw new Error("Invalid id");delete f[t],g.splice(e,1),E(e),Z()}function q(t){if(!n)throw new Error("sortedAddItem() requires a sort comparer, use sort()");V(function(t){var e=0,r=g.length;for(;e<r;){var i=e+r>>>1;-1===n(g[i],t)?e=i+1:r=i}return e}(t),t)}function K(t,e){if(null==t)for(var n=0;n<C.length;n++)x[n]={},C[n].collapsed=e;else x[t]={},C[t].collapsed=e;Z()}function U(t,e,n){x[t][e]=C[t].collapsed^n,Z()}function L(t){var e,n=t.group,r=C[n.level],i=n.level==C.length,o=r.aggregators.length;if(!i&&r.aggregateChildGroups)for(var a=n.groups.length;a–;)n.groups[a].totals.initialized||L(n.groups[a].totals);for(;o–;)(e=r.aggregators[o]).init(),!i&&r.aggregateChildGroups?r.compiledAccumulators[o].call(e,n.groups):r.compiledAccumulators[o].call(e,n.rows),e.storeResult(t);t.initialized=!0}function k(t){var e=C[t.level],n=new i.GroupTotals;n.group=t,t.totals=n,e.lazyTotalsCalculation||L(n)}function H(t){var e=t.toString().match(/^function[^(]\(([^)]*)\)\s*{([\s\S]*)}$/);return{params:e[1].split(","),body:e[2]}}function W(t){var e=H(t.accumulate),n=new Function("_items","for (var "+e.params[0]+", _i=0, _il=_items.length; _i<_il; _i++) {"+e.params[0]+" = _items[_i]; "+e.body+"}");return n.displayName=n.name="compiledAccumulatorLoop",n}function J(t,e){for(var n=[],r=0,i=0,o=t.length;i<o;i++)h(t[i],e)&&(n[r++]=t[i]);return n}function Q(t,e,n){for(var r,i=[],o=0,a=0,l=t.length;a<l;a++)r=t[a],n[a]?i[o++]=r:h(r,e)&&(i[o++]=r,n[a]=!0);return i}function X(e){if(h){var n=t.inlineFilters?a:J,r=t.inlineFilters?l:Q;_.isFilterNarrowing?$=n($,o):_.isFilterExpanding?$=r(e,o,y):_.isFilterUnchanged||($=n(e,o))}else $=b?e:e.concat();var i;return b?($.length<=M*b&&(M=0===$.length?0:Math.floor(($.length-1)/b)),i=$.slice(b*M,b*M+b)):i=$,{totalRows:$.length,rows:i}}function Y(t){p=null,_.isFilterNarrowing==w.isFilterNarrowing&&_.isFilterExpanding==w.isFilterExpanding||(y=[]);var e=X(t);F=e.totalRows;var n=e.rows;R=[],C.length&&(R=function t(e,n){for(var r,o,a,l=[],s={},u=n?n.level+1:0,g=C[u],c=0,f=g.predefinedValues.length;c<f;c++)(r=s[o=g.predefinedValues[c]])||((r=new i.Group).value=o,r.level=u,r.groupingKey=(n?n.groupingKey+":|:\":\"\")+o,l[l.length]=r,s[o]=r);for(c=0,f=e.length;c<f;c++)a=e[c],(r=s[o=g.getterIsAFn?g.getter(a):a[g.getter]])||((r=new i.Group).value=o,r.level=u,r.groupingKey=(n?n.groupingKey+\":|:":"")+o,l[l.length]=r,s[o]=r),r.rows[r.count++]=a;if(u<C.length-1)for(c=0;c<l.length;c++)(r=l[c]).groups=t(r.rows,r);return l.sort(C[u].comparer),l}(n)).length&&(!function t(e,n){for(var r,i=C[n=n||0],o=i.collapsed,a=x[n],l=e.length;l–;)(r=e[l]).collapsed&&!i.aggregateCollapsed||(r.groups&&t(r.groups,n+1),i.aggregators.length&&(i.aggregateEmpty||r.rows.length||r.groups&&r.groups.length)&&k(r),r.collapsed=o^a[r.groupingKey],r.title=i.formatter?i.formatter(r):r.value)}(R),n=function t(e,n){for(var r,i,o=C[n=n||0],a=[],l=0,s=0,u=e.length;s<u;s++){if(i=e[s],a[l++]=i,!i.collapsed)for(var g=0,c=(r=i.groups?t(i.groups,n+1):i.rows).length;g<c;g++)a[l++]=r[g];i.totals&&o.displayTotalsRow&&(!i.collapsed||o.aggregateCollapsed)&&(a[l++]=i.totals)}return a}(R));var r=function(t,e){var n,r,i,o=[],a=0,l=e.length;_&&_.ignoreDiffsBefore&&(a=Math.max(0,Math.min(e.length,_.ignoreDiffsBefore))),_&&_.ignoreDiffsAfter&&(l=Math.min(e.length,Math.max(0,_.ignoreDiffsAfter)));for(var s=a,g=t.length;s<l;s++)s>=g?o[o.length]=s:(n=e[s],r=t[s],(C.length&&(i=n.__nonDataRow||r.__nonDataRow)&&n.__group!==r.__group||n.__group&&!n.equals(r)||i&&(n.__groupTotals||r.__groupTotals)||n[u]!=r[u]||d&&d[n[u]])&&(o[o.length]=s));return o}(c,n);return c=n,r}function Z(){if(!m){var t=c.length,e=F,n=Y(g);b&&F<M*b&&(M=Math.max(0,Math.ceil(F/b)-1),n=Y(g)),d=null,w=_,_={},e!==F&&N.notify(T(),null,s),t!==c.length&&A.notify({previous:t,current:c.length,dataView:s},null,s),n.length>0&&S.notify({rows:n,dataView:s},null,s)}}t=r.extend(!0,{},{groupItemMetadataProvider:null,inlineFilters:!1},t),r.extend(this,{beginUpdate:function(){m=!0},endUpdate:function(){m=!1,Z()},setPagingOptions:function(t){null!=t.pageSize&&(b=t.pageSize,M=b?Math.min(M,Math.max(0,Math.ceil(F/b)-1)):0),null!=t.pageNum&&(M=Math.min(t.pageNum,Math.max(0,Math.ceil(F/b)-1))),N.notify(T(),null,s),Z()},getPagingInfo:T,getItems:function(){return g},setItems:function(t,e){void 0!==e&&(u=e),g=$=t,f={},E(),function(){for(var t,e=0,n=g.length;e<n;e++)if(void 0===(t=g[e][u])||f[t]!==e)throw new Error("Each data element must implement a unique ‘id’ property")}(),Z()},setFilter:function(e){h=e,t.inlineFilters&&(a=function(){var t=H(h),e="{ _retval[_idx++] = $item$; continue _coreloop; }$1",n=t.body.replace(/return false\s*([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return!1([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return true\s*([;}]|\}|$)/gi,e).replace(/return!0([;}]|\}|$)/gi,e).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),r=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");r=(r=(r=r.replace(/\$filter\$/gi,n)).replace(/\$item\$/gi,t.params[0])).replace(/\$args\$/gi,t.params[1]);var i=new Function("_items,_args",r);return i.displayName=i.name="compiledFilter",i}(),l=function(){var t=H(h),e="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",n=t.body.replace(/return false\s*([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return!1([;}]|\}|$)/gi,"{ continue _coreloop; }$1").replace(/return true\s*([;}]|\}|$)/gi,e).replace(/return!0([;}]|\}|$)/gi,e).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),r=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");r=(r=(r=r.replace(/\$filter\$/gi,n)).replace(/\$item\$/gi,t.params[0])).replace(/\$args\$/gi,t.params[1]);var i=new Function("_items,_args,_cache",r);return i.displayName=i.name="compiledFilterWithCaching",i}()),Z()},getFilter:function(){return h},getFilteredItems:function(){return $},sort:G,fastSort:D,reSort:function(){n?G(n,v):e&&D(e,v)},setGrouping:P,getGrouping:function(){return C},groupBy:function(t,e,n){P(null!=t?{getter:t,formatter:e,comparer:n}:[])},setAggregators:function(t,e){if(!C.length)throw new Error("At least one grouping must be specified before calling setAggregators().");C[0].aggregators=t,C[0].aggregateCollapsed=e,P(C)},collapseAllGroups:function(t){K(t,!0)},expandAllGroups:function(t){K(t,!1)},collapseGroup:function(t){var e=Array.prototype.slice.call(arguments),n=e[0];1==e.length&&-1!=n.indexOf(":|:\")?U(n.split(\":|:").length-1,n,!0):U(e.length-1,e.join(":|:\"),!0)},expandGroup:function(t){var e=Array.prototype.slice.call(arguments),n=e[0];1==e.length&&-1!=n.indexOf(\":|:")?U(n.split(":|:\").length-1,n,!1):U(e.length-1,e.join(\":|:"),!1)},getGroups:function(){return R},getIdxById:function(t){return f[t]},getRowByItem:function(t){return j(),p[t[u]]},getRowById:function(t){return j(),p[t]},getItemById:z,getItemByIdx:function(t){return g[t]},mapItemsToRows:function(t){var e=[];j();for(var n=0,r=t.length;n<r;n++){var i=p[t[n][u]];null!=i&&(e[e.length]=i)}return e},mapRowsToIds:function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]<c.length&&(e[e.length]=c[t[n]][u]);return e},mapIdsToRows:function(t){var e=[];j();for(var n=0,r=t.length;n<r;n++){var i=p[t[n]];null!=i&&(e[e.length]=i)}return e},setRefreshHints:function(t){_=t},setFilterArgs:function(t){o=t},refresh:Z,updateItem:B,insertItem:V,addItem:function(t){g.push(t),E(g.length-1),Z()},deleteItem:O,sortedAddItem:q,sortedUpdateItem:function(t,e){if(void 0===f[t]||t!==e[u])throw new Error("Invalid or non-matching id "+f[t]);if(!n)throw new Error("sortedUpdateItem() requires a sort comparer, use sort()");var r=z(t);0!==n(r,e)?(O(t),q(e)):B(t,e)},syncGridSelection:function(t,e,n){var o,a=this,l=a.mapRowsToIds(t.getSelectedRows()),s=new i.Event;function u(e){l.join(",")!=e.join(",")&&(l=e,s.notify({grid:t,ids:l,dataView:a},new i.EventData,a))}function g(){if(l.length>0){o=!0;var n=a.mapIdsToRows(l);e||u(a.mapRowsToIds(n)),t.setSelectedRows(n),o=!1}}return t.onSelectedRowsChanged.subscribe((function(e,i){if(!o){var s=a.mapRowsToIds(t.getSelectedRows());if(n&&t.getOptions().multiSelect)u(r.grep(l,(function(t){return void 0===a.getRowById(t)})).concat(s));else u(s)}})),this.onRowsChanged.subscribe(g),this.onRowCountChanged.subscribe(g),s},syncGridCellCssStyles:function(t,e){var n,r;function i(t){for(var e in n={},t){var r=c[e][u];n[r]=t[e]}}function o(){if(n){r=!0,j();var i={};for(var o in n){var a=p[o];null!=a&&(i[a]=n[o])}t.setCellCssStyles(e,i),r=!1}}i(t.getCellCssStyles(e)),t.onCellCssStylesChanged.subscribe((function(n,a){r||e==a.key&&(a.hash?i(a.hash):(t.onCellCssStylesChanged.unsubscribe(styleChanged),s.onRowsChanged.unsubscribe(o),s.onRowCountChanged.unsubscribe(o)))})),this.onRowsChanged.subscribe(o),this.onRowCountChanged.subscribe(o)},getLength:function(){return c.length},getItem:function(t){var e=c[t];if(e&&e.__group&&e.totals&&!e.totals.initialized){var n=C[e.level];n.displayTotalsRow||(L(e.totals),e.title=n.formatter?n.formatter(e):e.value)}else e&&e.__groupTotals&&!e.initialized&&L(e);return e},getItemMetadata:function(e){var n=c[e];return void 0===n?null:n.__group?t.groupItemMetadataProvider.getGroupRowMetadata(n):n.__groupTotals?t.groupItemMetadataProvider.getTotalsRowMetadata(n):null},onRowCountChanged:A,onRowsChanged:S,onPagingInfoChanged:N})},Aggregators:o,Data:{Aggregators:o}}},n 436: function _(e,t,i){var n=e(426),o=e(428);function l(e){var t,i;function o(){var t=e.column.editorFixedDecimalPlaces;return void 0===t&&(t=l.DefaultDecimalPlaces),t||0===t?t:null}this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field];var l=o();null!==l&&(i||0===i)&&i.toFixed&&(i=i.toFixed(l)),t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){var e=parseFloat(t.val());l.AllowEmptyValue?e||0===e||(e=""):e=e||0;var i=o();return null!==i&&(e||0===e)&&e.toFixed&&(e=parseFloat(e.toFixed(i))),e},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(isNaN(t.val()))return{valid:!1,msg:"Please enter a valid number"};if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()}function a(e){var t=this.selectionStart,i=this.value.length;(e.keyCode===n.ui.keyCode.LEFT&&t>0||e.keyCode===n.ui.keyCode.RIGHT&&t<i-1)&&e.stopImmediatePropagation()}function s(e){e.keyCode!==n.ui.keyCode.LEFT&&e.keyCode!==n.ui.keyCode.RIGHT||e.stopImmediatePropagation()}l.DefaultDecimalPlaces=null,l.AllowEmptyValue=!1,t.exports={Editors:{Text:function(e){var t,i;this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.getValue=function(){return t.val()},this.setValue=function(e){t.val(e)},this.loadValue=function(n){i=n[e.column.field]||"",t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},Integer:function(e){var t,i;this.init=function(){var i=e.grid.getOptions().editorCellNavOnLRKeys;t=n("<INPUT type=text class=’editor-text’ />").appendTo(e.container).on("keydown.nav",i?a:s).focus().select()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field],t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return parseInt(t.val(),10)||0},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(isNaN(t.val()))return{valid:!1,msg:"Please enter a valid integer"};if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},Float:l,Date:function(e){var t,i,o=!1;this.init=function(){(t=n("<INPUT type=text class=’editor-text’ />")).appendTo(e.container),t.focus().select(),t.datepicker({showOn:"button",buttonImageOnly:!0,beforeShow:function(){o=!0},onClose:function(){o=!1}}),t.width(t.width()-18)},this.destroy=function(){n.datepicker.dpDiv.stop(!0,!0),t.datepicker("hide"),t.datepicker("destroy"),t.remove()},this.show=function(){o&&n.datepicker.dpDiv.stop(!0,!0).show()},this.hide=function(){o&&n.datepicker.dpDiv.stop(!0,!0).hide()},this.position=function(e){o&&n.datepicker.dpDiv.css("top",e.top+30).css("left",e.left)},this.focus=function(){t.focus()},this.loadValue=function(n){i=n[e.column.field],t.val(i),t[0].defaultValue=i,t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==i)&&t.val()!=i},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()},YesNoSelect:function(e){var t,i;this.init=function(){(t=n("<SELECT tabIndex=’0’ class=’editor-yesno’><OPTION value=’yes’>Yes</OPTION><OPTION value=’no’>No</OPTION></SELECT>")).appendTo(e.container),t.focus()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){t.val((i=n[e.column.field])?"yes":"no"),t.select()},this.serializeValue=function(){return"yes"==t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return t.val()!=i},this.validate=function(){return{valid:!0,msg:null}},this.init()},Checkbox:function(e){var t,i;this.init=function(){(t=n("<INPUT type=checkbox value=’true’ class=’editor-checkbox’ hideFocus>")).appendTo(e.container),t.focus()},this.destroy=function(){t.remove()},this.focus=function(){t.focus()},this.loadValue=function(n){(i=!!n[e.column.field])?t.prop("checked",!0):t.prop("checked",!1)},this.preClick=function(){t.prop("checked",!t.prop("checked"))},this.serializeValue=function(){return t.prop("checked")},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return this.serializeValue()!==i},this.validate=function(){return{valid:!0,msg:null}},this.init()},PercentComplete:function(e){var t,i,o;this.init=function(){(t=n("<INPUT type=text class=’editor-percentcomplete’ />")).width(n(e.container).innerWidth()-25),t.appendTo(e.container),(i=n("<div class=’editor-percentcomplete-picker’ />").appendTo(e.container)).append("<div class=’editor-percentcomplete-helper’><div class=’editor-percentcomplete-wrapper’><div class=’editor-percentcomplete-slider’ /><div class=’editor-percentcomplete-buttons’ /></div></div>"),i.find(".editor-percentcomplete-buttons").append("<button val=0>Not started</button><br/><button val=50>In Progress</button><br/><button val=100>Complete</button>"),t.focus().select(),i.find(".editor-percentcomplete-slider").slider({orientation:"vertical",range:"min",value:o,slide:function(e,i){t.val(i.value)}}),i.find(".editor-percentcomplete-buttons button").on("click",(function(e){t.val(n(this).attr("val")),i.find(".editor-percentcomplete-slider").slider("value",n(this).attr("val"))}))},this.destroy=function(){t.remove(),i.remove()},this.focus=function(){t.focus()},this.loadValue=function(i){t.val(o=i[e.column.field]),t.select()},this.serializeValue=function(){return parseInt(t.val(),10)||0},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==o)&&(parseInt(t.val(),10)||0)!=o},this.validate=function(){return isNaN(parseInt(t.val(),10))?{valid:!1,msg:"Please enter a valid positive number"}:{valid:!0,msg:null}},this.init()},LongText:function(e){var t,i,l,a=this;this.init=function(){var o=n("body");e.grid.getOptions().editorCellNavOnLRKeys;i=n("<DIV style=’z-index:10000;position:absolute;background:white;padding:5px;border:3px solid gray; -moz-border-radius:10px; border-radius:10px;’/>").appendTo(o),t=n("<TEXTAREA hidefocus rows=5 style=’background:white;width:250px;height:80px;border:0;outline:0’>").appendTo(i),n("<DIV style=’text-align:right’><BUTTON>Save</BUTTON><BUTTON>Cancel</BUTTON></DIV>").appendTo(i),i.find("button:first").on("click",this.save),i.find("button:last").on("click",this.cancel),t.on("keydown",this.handleKeyDown),a.position(e.position),t.focus().select()},this.handleKeyDown=function(t){if(t.which==o.keyCode.ENTER&&t.ctrlKey)a.save();else if(t.which==o.keyCode.ESCAPE)t.preventDefault(),a.cancel();else if(t.which==o.keyCode.TAB&&t.shiftKey)t.preventDefault(),e.grid.navigatePrev();else if(t.which==o.keyCode.TAB)t.preventDefault(),e.grid.navigateNext();else if((t.which==n.ui.keyCode.LEFT||t.which==n.ui.keyCode.RIGHT)&&e.grid.getOptions().editorCellNavOnLRKeys){var i=this.selectionStart,l=this.value.length;t.keyCode===n.ui.keyCode.LEFT&&0===i&&e.grid.navigatePrev(),t.keyCode===n.ui.keyCode.RIGHT&&i>=l-1&&e.grid.navigateNext()}},this.save=function(){e.commitChanges()},this.cancel=function(){t.val(l),e.cancelChanges()},this.hide=function(){i.hide()},this.show=function(){i.show()},this.position=function(e){i.css("top",e.top-5).css("left",e.left-5)},this.destroy=function(){i.remove()},this.focus=function(){t.focus()},this.loadValue=function(i){t.val(l=i[e.column.field]),t.select()},this.serializeValue=function(){return t.val()},this.applyValue=function(t,i){t[e.column.field]=i},this.isValueChanged=function(){return!(""==t.val()&&null==l)&&t.val()!=l},this.validate=function(){if(e.column.validator){var i=e.column.validator(t.val());if(!i.valid)return i}return{valid:!0,msg:null}},this.init()}}}},n 437: function _(e,n,r){e(428);n.exports={Formatters:{PercentComplete:function(e,n,r,t,c){return null==r||""===r?"-":r<50?"<span style=’color:red;font-weight:bold;’>"+r+"%</span>":"<span style=’color:green’>"+r+"%</span>"},PercentCompleteBar:function(e,n,r,t,c){return null==r||""===r?"":"<span class=’percent-complete-bar’ style=’background:"+(r<30?"red":r<70?"silver":"green")+";width:"+r+"%’></span>"},YesNo:function(e,n,r,t,c){return r?"Yes":"No"},Checkmark:function(e,n,r,t,c){return r?"<img src=’../images/tick.png’>":""},Checkbox:function(e,n,r,t,c){return’<img class="slick-edit-preclick" src="../images/’+(r?"CheckboxY":"CheckboxN")+’.png">’}}}},n 438: function _(t,o,r){var e=t(426),n=t(428);o.exports={RemoteModel:function(){var t={length:0},o="",r=null,a=1,l=null,i=null,s=new n.Event,u=new n.Event;function f(){for(var o in t)delete t[o];t.length=0}function c(n,f){if(i){i.abort();for(var c=i.fromPage;c<=i.toPage;c++)t[50*c]=void 0}n<0&&(n=0),t.length>0&&(f=Math.min(f,t.length-1));for(var d=Math.floor(n/50),v=Math.floor(f/50);void 0!==t[50*d]&&d<v;)d++;for(;void 0!==t[50*v]&&d<v;)v–;if(d>v||d==v&&void 0!==t[50*d])u.notify({from:n,to:f});else{var m="http://octopart.com/api/v3/parts/search?apikey=68b25f31&include[]=short_description&show[]=uid&show[]=manufacturer&show[]=mpn&show[]=brand&show[]=octopart_url&show[]=short_description&q="+o+"&start="+50*d+"&limit="+(50*(v-d)+50);null!=r&&(m+="&sortby="+r+(a>0?"+asc":"+desc")),null!=l&&clearTimeout(l),l=setTimeout((function(){for(var o=d;o<=v;o++)t[50*o]=null;s.notify({from:n,to:f}),(i=e.jsonp({url:m,callbackParameter:"callback",cache:!0,success:h,error:function(){!function(t,o){alert("error loading pages "+t+" to "+o)}(d,v)}})).fromPage=d,i.toPage=v}),50)}}function h(o){var r=o.request.start,e=r+o.results.length;t.length=Math.min(parseInt(o.hits),1e3);for(var n=0;n<o.results.length;n++){var a=o.results[n].item;t[r+n]=a,t[r+n].index=r+n}i=null,u.notify({from:r,to:e})}return{data:t,clear:f,isDataLoaded:function(o,r){for(var e=o;e<=r;e++)if(null==t[e]||null==t[e])return!1;return!0},ensureData:c,reloadData:function(o,r){for(var e=o;e<=r;e++)delete t[e];c(o,r)},setSort:function(t,o){r=t,a=o,f()},setSearch:function(t){o=t,f()},onDataLoading:s,onDataLoaded:u}}}},n 439: function _(e,s,t){var a=e(426),o=e(428);s.exports={GroupItemMetadataProvider:function(e){var s,t={checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:function(s,t,a,o,l,c){if(!e.enableExpandCollapse)return l.title;var r=15*l.level+"px";return(e.checkboxSelect?’<span class="’+e.checkboxSelectCssClass+" "+(l.selectChecked?"checked":"unchecked")+’"></span>’:"")+"<span class=’"+e.toggleCssClass+" "+(l.collapsed?e.toggleCollapsedCssClass:e.toggleExpandedCssClass)+"’ style=’margin-left:"+r+"’></span><span class=’"+e.groupTitleCssClass+"’ level=’"+l.level+"’>"+l.title+"</span>"},totalsFormatter:function(e,s,t,a,o,l){return a.groupTotalsFormatter&&a.groupTotalsFormatter(o,a,l)||""}};function l(t,l){var c=a(t.target),r=this.getDataItem(l.row);if(r&&r instanceof o.Group&&c.hasClass(e.toggleCssClass)){var n=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:n.top,ignoreDiffsAfter:n.bottom+1}),r.collapsed?this.getData().expandGroup(r.groupingKey):this.getData().collapseGroup(r.groupingKey),t.stopImmediatePropagation(),t.preventDefault()}if(r&&r instanceof o.Group&&c.hasClass(e.checkboxSelectCssClass)){r.selectChecked=!r.selectChecked,c.removeClass(r.selectChecked?"unchecked":"checked"),c.addClass(r.selectChecked?"checked":"unchecked");var i=s.getData().mapItemsToRows(r.rows);(r.selectChecked?e.checkboxSelectPlugin.selectRows:e.checkboxSelectPlugin.deSelectRows)(i)}}function c(t,a){if(e.enableExpandCollapse&&t.which==o.keyCode.SPACE){var l=this.getActiveCell();if(l){var c=this.getDataItem(l.row);if(c&&c instanceof o.Group){var r=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:r.top,ignoreDiffsAfter:r.bottom+1}),c.collapsed?this.getData().expandGroup(c.groupingKey):this.getData().collapseGroup(c.groupingKey),t.stopImmediatePropagation(),t.preventDefault()}}}}return e=a.extend(!0,{},t,e),{init:function(e){(s=e).onClick.subscribe(l),s.onKeyDown.subscribe(c)},destroy:function(){s&&(s.onClick.unsubscribe(l),s.onKeyDown.unsubscribe(c))},getGroupRowMetadata:function(s){return{selectable:!1,focusable:e.groupFocusable,cssClasses:e.groupCssClass,columns:{0:{colspan:"",formatter:e.groupFormatter,editor:null}}}},getTotalsRowMetadata:function(s){return{selectable:!1,focusable:e.totalsFocusable,cssClasses:e.totalsCssClass,formatter:e.totalsFormatter,editor:null}}}}}},n 440: function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e(1),n=e(441),c=e(95),a=s.__importStar(e(19));class o extends n.Widget{constructor(e){super(e)}static init_TableWidget(){this.define({source:[a.Instance],view:[a.Instance,()=>new c.CDSView]})}initialize(){super.initialize(),null==this.view.source&&(this.view.source=this.source,this.view.compute_indices())}}t.TableWidget=o,o.__name__="TableWidget",o.init_TableWidget()},n 441: function _(i,e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=i(1),n=i(247),r=o.__importStar(i(19));class _ extends n.HTMLBoxView{_width_policy(){return"horizontal"==this.model.orientation?super._width_policy():"fixed"}_height_policy(){return"horizontal"==this.model.orientation?"fixed":super._height_policy()}box_sizing(){const i=super.box_sizing();return"horizontal"==this.model.orientation?null==i.width&&(i.width=this.model.default_size):null==i.height&&(i.height=this.model.default_size),i}}t.WidgetView=_,_.__name__="WidgetView";class s extends n.HTMLBox{constructor(i){super(i)}static init_Widget(){this.define({orientation:[r.Orientation,"horizontal"],default_size:[r.Number,300]}),this.override({margin:[5,5,5,5]})}}t.Widget=s,s.__name__="Widget",s.init_Widget()},n 442: function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0});const l=n(1);n(67),n(443),l.__importStar(n(66)).styles.append(‘.bk-root .bk-data-table {\n box-sizing: content-box;\n font-size: 11px;\n}\n.bk-root .bk-data-table input[type="checkbox"] {\n margin-left: 4px;\n margin-right: 4px;\n}\n.bk-root .bk-cell-special-defaults {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n}\n.bk-root .bk-cell-select {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n}\n.bk-root .bk-cell-index {\n border-right-color: silver;\n border-right-style: solid;\n background: #f5f5f5;\n text-align: right;\n color: gray;\n}\n.bk-root .bk-header-index .slick-column-name {\n float: right;\n}\n.bk-root .slick-row.selected .bk-cell-index {\n background-color: transparent;\n}\n.bk-root .slick-cell {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .slick-cell.active {\n border-style: dashed;\n}\n.bk-root .slick-cell.editable {\n padding-left: 0;\n padding-right: 0;\n}\n.bk-root .bk-cell-editor input,\n.bk-root .bk-cell-editor select {\n width: 100%;\n height: 100%;\n border: 0;\n margin: 0;\n padding: 0;\n outline: 0;\n background: transparent;\n vertical-align: baseline;\n}\n.bk-root .bk-cell-editor input {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .bk-cell-editor-completion {\n font-size: 11px;\n}\n’),t.bk_data_table="bk-data-table",t.bk_cell_index="bk-cell-index",t.bk_header_index="bk-header-index",t.bk_cell_editor="bk-cell-editor",t.bk_cell_select="bk-cell-select"},n 443: function _(A,n,o){Object.defineProperty(o,"__esModule",{value:!0});const e=A(1);A(67),e.__importStar(A(66)).styles.append(‘.bk-root {\n /\nIMPORTANT:\nIn order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.\nNo built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS\nclasses should alter those!\n*/\n /\nIMPORTANT:\nIn order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.\nNo built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS\nclasses should alter those!\n/\n /* Menu button /\n / Menu /\n / Menu items /\n / Disabled /\n}\n.bk-root .slick-header.ui-state-default,\n.bk-root .slick-headerrow.ui-state-default,\n.bk-root .slick-footerrow.ui-state-default,\n.bk-root .slick-top-panel-scroller.ui-state-default {\n width: 100%;\n overflow: auto;\n position: relative;\n border-left: 0px !important;\n}\n.bk-root .slick-header.ui-state-default {\n overflow: inherit;\n}\n.bk-root .slick-header::-webkit-scrollbar,\n.bk-root .slick-headerrow::-webkit-scrollbar,\n.bk-root .slick-footerrow::-webkit-scrollbar {\n display: none;\n}\n.bk-root .slick-header-columns,\n.bk-root .slick-headerrow-columns,\n.bk-root .slick-footerrow-columns {\n position: relative;\n white-space: nowrap;\n cursor: default;\n overflow: hidden;\n}\n.bk-root .slick-header-column.ui-state-default {\n position: relative;\n display: inline-block;\n box-sizing: content-box !important;\n / this here only for Firefox! /\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n height: 16px;\n line-height: 16px;\n margin: 0;\n padding: 4px;\n border-right: 1px solid silver;\n border-left: 0px !important;\n border-top: 0px !important;\n border-bottom: 0px !important;\n float: left;\n}\n.bk-root .slick-headerrow-column.ui-state-default,\n.bk-root .slick-footerrow-column.ui-state-default {\n padding: 4px;\n}\n.bk-root .slick-header-column-sorted {\n font-style: italic;\n}\n.bk-root .slick-sort-indicator {\n display: inline-block;\n width: 8px;\n height: 5px;\n margin-left: 4px;\n margin-top: 6px;\n float: left;\n}\n.bk-root .slick-sort-indicator-numbered {\n display: inline-block;\n width: 8px;\n height: 5px;\n margin-left: 4px;\n margin-top: 0;\n line-height: 20px;\n float: left;\n font-family: Arial;\n font-style: normal;\n font-weight: bold;\n color: #6190CD;\n}\n.bk-root .slick-sort-indicator-desc {\n background: url(images/sort-desc.gif);\n}\n.bk-root .slick-sort-indicator-asc {\n background: url(images/sort-asc.gif);\n}\n.bk-root .slick-resizable-handle {\n position: absolute;\n font-size: 0.1px;\n display: block;\n cursor: col-resize;\n width: 9px;\n right: -5px;\n top: 0;\n height: 100%;\n z-index: 1;\n}\n.bk-root .slick-sortable-placeholder {\n background: silver;\n}\n.bk-root .grid-canvas {\n position: relative;\n outline: 0;\n}\n.bk-root .slick-row.ui-widget-content,\n.bk-root .slick-row.ui-state-active {\n position: absolute;\n border: 0px;\n width: 100%;\n}\n.bk-root .slick-cell,\n.bk-root .slick-headerrow-column,\n.bk-root .slick-footerrow-column {\n position: absolute;\n border: 1px solid transparent;\n border-right: 1px dotted silver;\n border-bottom-color: silver;\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n vertical-align: middle;\n z-index: 1;\n padding: 1px 2px 2px 1px;\n margin: 0;\n white-space: nowrap;\n cursor: default;\n}\n.bk-root .slick-cell,\n.bk-root .slick-headerrow-column {\n border-bottom-color: silver;\n}\n.bk-root .slick-footerrow-column {\n border-top-color: silver;\n}\n.bk-root .slick-group-toggle {\n display: inline-block;\n}\n.bk-root .slick-cell.highlighted {\n background: lightskyblue;\n background: rgba(0, 0, 255, 0.2);\n -webkit-transition: all 0.5s;\n -moz-transition: all 0.5s;\n -o-transition: all 0.5s;\n transition: all 0.5s;\n}\n.bk-root .slick-cell.flashing {\n border: 1px solid red !important;\n}\n.bk-root .slick-cell.editable {\n z-index: 11;\n overflow: visible;\n background: white;\n border-color: black;\n border-style: solid;\n}\n.bk-root .slick-cell:focus {\n outline: none;\n}\n.bk-root .slick-reorder-proxy {\n display: inline-block;\n background: blue;\n opacity: 0.15;\n cursor: move;\n}\n.bk-root .slick-reorder-guide {\n display: inline-block;\n height: 2px;\n background: blue;\n opacity: 0.7;\n}\n.bk-root .slick-selection {\n z-index: 10;\n position: absolute;\n border: 2px dashed black;\n}\n.bk-root .slick-header-columns {\n background: url(\’images/header-columns-bg.gif\’) repeat-x center bottom;\n border-bottom: 1px solid silver;\n}\n.bk-root .slick-header-column {\n background: url(\’images/header-columns-bg.gif\’) repeat-x center bottom;\n border-right: 1px solid silver;\n}\n.bk-root .slick-header-column:hover,\n.bk-root .slick-header-column-active {\n background: white url(\’images/header-columns-over-bg.gif\’) repeat-x center bottom;\n}\n.bk-root .slick-headerrow {\n background: #fafafa;\n}\n.bk-root .slick-headerrow-column {\n background: #fafafa;\n border-bottom: 0;\n height: 100%;\n}\n.bk-root .slick-row.ui-state-active {\n background: #F5F7D7;\n}\n.bk-root .slick-row {\n position: absolute;\n background: white;\n border: 0px;\n line-height: 20px;\n}\n.bk-root .slick-row.selected {\n z-index: 10;\n background: #DFE8F6;\n}\n.bk-root .slick-cell {\n padding-left: 4px;\n padding-right: 4px;\n}\n.bk-root .slick-group {\n border-bottom: 2px solid silver;\n}\n.bk-root .slick-group-toggle {\n width: 9px;\n height: 9px;\n margin-right: 5px;\n}\n.bk-root .slick-group-toggle.expanded {\n background: url(images/collapse.gif) no-repeat center center;\n}\n.bk-root .slick-group-toggle.collapsed {\n background: url(images/expand.gif) no-repeat center center;\n}\n.bk-root .slick-group-totals {\n color: gray;\n background: white;\n}\n.bk-root .slick-group-select-checkbox {\n width: 13px;\n height: 13px;\n margin: 3px 10px 0 0;\n display: inline-block;\n}\n.bk-root .slick-group-select-checkbox.checked {\n background: url(images/GrpCheckboxY.png) no-repeat center center;\n}\n.bk-root .slick-group-select-checkbox.unchecked {\n background: url(images/GrpCheckboxN.png) no-repeat center center;\n}\n.bk-root .slick-cell.selected {\n background-color: beige;\n}\n.bk-root .slick-cell.active {\n border-color: gray;\n border-style: solid;\n}\n.bk-root .slick-sortable-placeholder {\n background: silver !important;\n}\n.bk-root .slick-row.odd {\n background: #fafafa;\n}\n.bk-root .slick-row.ui-state-active {\n background: #F5F7D7;\n}\n.bk-root .slick-row.loading {\n opacity: 0.5;\n}\n.bk-root .slick-cell.invalid {\n border-color: red;\n -moz-animation-duration: 0.2s;\n -webkit-animation-duration: 0.2s;\n -moz-animation-name: slickgrid-invalid-hilite;\n -webkit-animation-name: slickgrid-invalid-hilite;\n}\n@-moz-keyframes slickgrid-invalid-hilite {\n from {\n box-shadow: 0 0 6px red;\n }\n to {\n box-shadow: none;\n }\n}\n@-webkit-keyframes slickgrid-invalid-hilite {\n from {\n box-shadow: 0 0 6px red;\n }\n to {\n box-shadow: none;\n }\n}\n.bk-root .slick-column-name,\n.bk-root .slick-sort-indicator {\n /*\n * This makes all "float:right" elements after it that spill over to the next line\n * display way below the lower boundary of the column thus hiding them.\n /\n display: inline-block;\n float: left;\n margin-bottom: 100px;\n}\n.bk-root .slick-header-button {\n display: inline-block;\n float: right;\n vertical-align: top;\n margin: 1px;\n /*\n * This makes all "float:right" elements after it that spill over to the next line\n * display way below the lower boundary of the column thus hiding them.\n /\n margin-bottom: 100px;\n height: 15px;\n width: 15px;\n background-repeat: no-repeat;\n background-position: center center;\n cursor: pointer;\n}\n.bk-root .slick-header-button-hidden {\n width: 0;\n -webkit-transition: 0.2s width;\n -ms-transition: 0.2s width;\n transition: 0.2s width;\n}\n.bk-root .slick-header-column:hover > .slick-header-button {\n width: 15px;\n}\n.bk-root .slick-header-menubutton {\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 14px;\n background-repeat: no-repeat;\n background-position: left center;\n background-image: url(../images/down.gif);\n cursor: pointer;\n display: none;\n border-left: thin ridge silver;\n}\n.bk-root .slick-header-column:hover > .slick-header-menubutton,\n.bk-root .slick-header-column-active .slick-header-menubutton {\n display: inline-block;\n}\n.bk-root .slick-header-menu {\n position: absolute;\n display: inline-block;\n margin: 0;\n padding: 2px;\n cursor: default;\n}\n.bk-root .slick-header-menuitem {\n list-style: none;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n.bk-root .slick-header-menuicon {\n display: inline-block;\n width: 16px;\n height: 16px;\n vertical-align: middle;\n margin-right: 4px;\n background-repeat: no-repeat;\n background-position: center center;\n}\n.bk-root .slick-header-menucontent {\n display: inline-block;\n vertical-align: middle;\n}\n.bk-root .slick-header-menuitem-disabled {\n color: silver;\n}\n.bk-root .slick-columnpicker {\n border: 1px solid #718BB7;\n background: #f0f0f0;\n padding: 6px;\n -moz-box-shadow: 2px 2px 2px silver;\n -webkit-box-shadow: 2px 2px 2px silver;\n box-shadow: 2px 2px 2px silver;\n min-width: 150px;\n cursor: default;\n position: absolute;\n z-index: 20;\n overflow: auto;\n resize: both;\n}\n.bk-root .slick-columnpicker > .close {\n float: right;\n}\n.bk-root .slick-columnpicker .title {\n font-size: 16px;\n width: 60%;\n border-bottom: solid 1px #d6d6d6;\n margin-bottom: 10px;\n}\n.bk-root .slick-columnpicker li {\n list-style: none;\n margin: 0;\n padding: 0;\n background: none;\n}\n.bk-root .slick-columnpicker input {\n margin: 4px;\n}\n.bk-root .slick-columnpicker li a {\n display: block;\n padding: 4px;\n font-weight: bold;\n}\n.bk-root .slick-columnpicker li a:hover {\n background: white;\n}\n.bk-root .slick-pager {\n width: 100%;\n height: 26px;\n border: 1px solid gray;\n border-top: 0;\n background: url(\’../images/header-columns-bg.gif\’) repeat-x center bottom;\n vertical-align: middle;\n}\n.bk-root .slick-pager .slick-pager-status {\n display: inline-block;\n padding: 6px;\n}\n.bk-root .slick-pager .ui-icon-container {\n display: inline-block;\n margin: 2px;\n border-color: gray;\n}\n.bk-root .slick-pager .slick-pager-nav {\n display: inline-block;\n float: left;\n padding: 2px;\n}\n.bk-root .slick-pager .slick-pager-settings {\n display: block;\n float: right;\n padding: 2px;\n}\n.bk-root .slick-pager .slick-pager-settings * {\n vertical-align: middle;\n}\n.bk-root .slick-pager .slick-pager-settings a {\n padding: 2px;\n text-decoration: underline;\n cursor: pointer;\n}\n.bk-root .slick-header-columns {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n.bk-root .slick-header-column {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n.bk-root .slick-header-column:hover,\n.bk-root .slick-header-column-active {\n background-image: url("data:image/gif;base64,R0lGODlhAgAWAIcAAKrM9tno++vz/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABYAAAgUAAUIHEiwoIAACBMqXMhwIQAAAQEAOw==");\n}\n.bk-root .slick-group-toggle.expanded {\n background-image: url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIMwADCBxIUIDBgwIEChgwwECBAgQUFjBAkaJCABgxGlB4AGHCAAIQiBypEEECkScJqgwQEAA7");\n}\n.bk-root .slick-group-toggle.collapsed {\n background-image: url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIOAADCBxIUIDBgwIEChgwAECBAgQUFjAAQIABAwoBaNSIMYCAAwIqGlSIAEHFkiQTIBCgkqDLAAEBADs=");\n}\n.bk-root .slick-group-select-checkbox.checked {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAAEcSURBVChTjdI9S8NQFAbg/raQXVwCRRFE7GK7OXTwD+ikk066VF3a0ja0hQTyQdJrwNq0zrYSQRLEXMSWSlCIb8glqRcFD+9yz3nugXwU4n9XQqMoGjj36uBJsTwuaNo3EwBG4Yy7pe7Gv8YcvhJCGFVsjxsjxujj6OTSGlHv+U2WZUZbPWKOv1ZjT5a7pbIoiptbO5b73mwrjHa1B27l8VlTEIS1damlTnEE+EEN9/P8WrfH81qdAIGeXvTTmzltdCy46sEhxpKUINReZR9NnqZbr9puugxV3NjWh/k74WmmEdWhmUNy2jNmWRc6fZTVADCqao52u+DGWTACYNT3fRxwtatPufTNR4yCIGAUn5hS+vJHhWGY/ANx/A3tvdv+1tZmuwAAAABJRU5ErkJggg==");\n}\n.bk-root .slick-group-select-checkbox.unchecked {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAACXSURBVChT1dIxC4MwEAXg/v8/VOhQVDBNakV0KA6pxS4JhWRSIYPEJxwdDi1de7wleR+3JIf486w0hKCKRpSvvOhZcCmvNQBRuKqdah03U7UjNNH81rOaBYDo8SQaPX8JANFEaLaGBeAPaaY61rGksiN6TmR5H1j9CSoAosYYHLA7vTxYMvVEZa0liif23r93xjm3/oEYF8PiDn/I2FHCAAAAAElFTkSuQmCC");\n}\n.bk-root .slick-sort-indicator-desc {\n background-image: url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgeAAUAGEgQgIAACBEKLHgwYcKFBh1KFNhQosOKEgMCADs=");\n}\n.bk-root .slick-sort-indicator-asc {\n background-image: url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgbAAMIDABgoEGDABIeRJhQ4cKGEA8KmEiRosGAADs=");\n}\n.bk-root .slick-header-menubutton {\n background-image: url("data:image/gif;base64,R0lGODlhDgAOAIABADtKYwAAACH5BAEAAAEALAAAAAAOAA4AAAISjI+py+0PHZgUsGobhTn6DxoFADs=");\n}\n.bk-root .slick-pager {\n background-image: url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=");\n}\n’)},n 444: function _(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});const i=t(1),o=i.__importDefault(t(157)),a=i.__importStar(t(159)),n=t(445),s=i.__importStar(t(19)),c=t(66),l=t(8),m=t(69);class _ extends m.Model{constructor(t){super(t)}doFormat(t,e,r,i,o){return null==r?"":(r+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}}r.CellFormatter=_,_.__name__="CellFormatter";class u extends _{constructor(t){super(t)}static init_StringFormatter(){this.define({font_style:[s.FontStyle,"normal"],text_align:[s.TextAlign,"left"],text_color:[s.Color]})}doFormat(t,e,r,i,o){const{font_style:a,text_align:n,text_color:s}=this,l=c.div({},null==r?"":`${r}`);switch(a){case"bold":l.style.fontWeight="bold";break;case"italic":l.style.fontStyle="italic"}return null!=n&&(l.style.textAlign=n),null!=s&&(l.style.color=s),l.outerHTML}}r.StringFormatter=u,u.__name__="StringFormatter",u.init_StringFormatter();class F extends u{constructor(t){super(t)}static init_ScientificFormatter(){this.define({precision:[s.Number,10],power_limit_high:[s.Number,5],power_limit_low:[s.Number,-3]})}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}doFormat(t,e,r,i,o){const a=r<=this.scientific_limit_low||r>=this.scientific_limit_high;let n=this.precision;return n<1&&(n=1),r=a?r.toExponential(n):r.toFixed(n).replace(/(\.[0-9]?)0+$/,"$1").replace(/\.$/,""),super.doFormat(t,e,r,i,o)}}r.ScientificFormatter=F,F.__name__="ScientificFormatter",F.init_ScientificFormatter();class d extends u{constructor(t){super(t)}static init_NumberFormatter(){this.define({format:[s.String,"0,0"],language:[s.String,"en"],rounding:[s.RoundingFunction,"round"]})}doFormat(t,e,r,i,o){const{format:n,language:s}=this,c=(()=>{switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}})();return r=a.format(r,n,s,c),super.doFormat(t,e,r,i,o)}}r.NumberFormatter=d,d.__name__="NumberFormatter",d.init_NumberFormatter();class g extends _{constructor(t){super(t)}static init_BooleanFormatter(){this.define({icon:[s.String,"check"]})}doFormat(t,e,r,i,o){return r?c.i({class:this.icon}).outerHTML:""}}r.BooleanFormatter=g,g.__name__="BooleanFormatter",g.init_BooleanFormatter();class p extends _{constructor(t){super(t)}static init_DateFormatter(){this.define({format:[s.String,"ISO-8601"]})}getFormat(){switch(this.format){case"ATOM":case"W3C":case"RFC-3339":case"ISO-8601":return"%Y-%m-%d";case"COOKIE":return"%a, %d %b %Y";case"RFC-850":return"%A, %d-%b-%y";case"RFC-1123":case"RFC-2822":return"%a, %e %b %Y";case"RSS":case"RFC-822":case"RFC-1036":return"%a, %e %b %y";case"TIMESTAMP":return;default:return this.format}}doFormat(t,e,r,i,a){r=l.isString(r)?parseInt(r,10):r;const n=o.default(r,this.getFormat());return super.doFormat(t,e,n,i,a)}}r.DateFormatter=p,p.__name__="DateFormatter",p.init_DateFormatter();class h extends _{constructor(t){super(t)}static init_HTMLTemplateFormatter(){this.define({template:[s.String,"<%= value %>"]})}doFormat(t,e,r,i,o){const{template:a}=this;if(null==r)return"";return n._.template(a)(Object.assign(Object.assign({},o),{value:r}))}}r.HTMLTemplateFormatter=h,h.__name__="HTMLTemplateFormatter",h.init_HTMLTemplateFormatter()},n 445: function _(e,n,t){var f=e(446),i=f.template;function o(e,n,t){return i(e,n,t)}o._=f,n.exports=o,"function"==typeof define&&define.amd?define((function(){return o})):"undefined"==typeof window&&"undefined"==typeof navigator||(window.UnderscoreTemplate=o)},n 446: function _(r,e,n){n // (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editorsn // Underscore may be freely distributed under the MIT license.n var t={},a=Array.prototype,u=Object.prototype,c=a.slice,o=u.toString,l=u.hasOwnProperty,i=a.forEach,f=Object.keys,s=Array.isArray,p=function(){},_=p.each=p.forEach=function(r,e,n){if(null!=r)if(i&&r.forEach===i)r.forEach(e,n);else if(r.length===+r.length){for(var a=0,u=r.length;a<u;a++)if(e.call(n,r[a],a,r)===t)return}else{var c=p.keys(r);for(a=0,u=c.length;a<u;a++)if(e.call(n,r[c[a]],c[a],r)===t)return}};p.keys=f||function(r){if(r!==Object(r))throw new TypeError("Invalid object");var e=[];for(var n in r)p.has(r,n)&&e.push(n);return e},p.defaults=function(r){return _(c.call(arguments,1),(function(e){if(e)for(var n in e)void 0===r[n]&&(r[n]=e[n])})),r},p.isArray=s||function(r){return"[object Array]"===o.call(r)},p.has=function(r,e){if(!p.isArray(e))return null!=r&&l.call(r,e);for(var n=e.length,t=0;t<n;t++){var a=e[t];if(null==r||!l.call(r,a))return!1;r=r[a]}return!!n};var h={escape:{"&":"&","<":"<",">":">",’"’:""","’":"'"}},v={escape:new RegExp("["+p.keys(h.escape).join("")+"]","g")};p.each(["escape"],(function(r){p[r]=function(e){return null==e?"":(""+e).replace(v[r],(function(e){return h[r][e]}))}})),p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,y={"’":"’","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},j=/\\|’|\\r|\n|\t|\u2028|\u2029/g;p.template=function(r,e,n){var t;n=p.defaults({},n,p.templateSettings);var a=new RegExp([(n.escape||g).source,(n.interpolate||g).source,(n.evaluate||g).source].join("|\")+\"|$\",\"g\"),u=0,c=\"__p+='\";r.replace(a,(function(e,n,t,a,o){return c+=r.slice(u,o).replace(j,(function(r){return\"\\\\\"+y[r]})),n&&(c+=\"'+\\n((__t=(\"+n+\"))==null?'':_.escape(__t))+\\n'\"),t&&(c+=\"'+\\n((__t=(\"+t+\"))==null?'':__t)+\\n'\"),a&&(c+=\"';\\n\"+a+\"\\n__p+='\"),u=o+e.length,e})),c+=\"';\\n\",n.variable||(c=\"with(obj||{}){\\n\"+c+\"}\\n\"),c=\"var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\\n\"+c+\"return __p;\\n\";try{t=new Function(n.variable||"obj","_",c)}catch(r){throw r.source=c,r}if(e)return t(e,p);var o=function(r){return t.call(this,r,p)};return o.source="function("+(n.variable||"obj")+"){\n"+c+"}",o},e.exports=p},n 447: function _(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});const r=t(1),o=t(444),n=t(423),a=r.__importStar(t(19)),l=t(26),s=t(69);class d extends s.Model{constructor(t){super(t)}static init_TableColumn(){this.define({field:[a.String],title:[a.String],width:[a.Number,300],formatter:[a.Instance,()=>new o.StringFormatter],editor:[a.Instance,()=>new n.StringEditor],sortable:[a.Boolean,!0],default_sort:[a.Sort,"ascending"]})}toColumn(){return{id:l.uniqueId(),field:this.field,name:this.title,width:this.width,formatter:null!=this.formatter?this.formatter.doFormat.bind(this.formatter):void 0,model:this.editor,editor:this.editor.default_view,sortable:this.sortable,defaultSortAsc:"ascending"==this.default_sort}}}i.TableColumn=d,d.__name__="TableColumn",d.init_TableColumn()},n 448: function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const r=t(1),a=t(431),{Avg:i,Min:o,Max:g,Sum:n}=a.Data.Aggregators,u=r.__importStar(t(19)),c=t(69);class _ extends c.Model{constructor(t){super(t)}static init_RowAggregator(){this.define({field_:[u.String,""]})}}s.RowAggregator=_,_.__name__="RowAggregator",_.init_RowAggregator();const l=new i;class m extends _{constructor(){super(…arguments),this.key="avg",this.init=l.init,this.accumulate=l.accumulate,this.storeResult=l.storeResult}}s.AvgAggregator=m,m.__name__="AvgAggregator";const h=new o;class A extends _{constructor(){super(…arguments),this.key="min",this.init=h.init,this.accumulate=h.accumulate,this.storeResult=h.storeResult}}s.MinAggregator=A,A.__name__="MinAggregator";const R=new g;class d extends _{constructor(){super(…arguments),this.key="max",this.init=R.init,this.accumulate=R.accumulate,this.storeResult=R.storeResult}}s.MaxAggregator=d,d.__name__="MaxAggregator";const x=new n;class w extends _{constructor(){super(…arguments),this.key="sum",this.init=x.init,this.accumulate=x.accumulate,this.storeResult=x.storeResult}}s.SumAggregator=w,w.__name__="SumAggregator"},n 449: function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t(1).__importStar(t(19)),r=t(66),i=t(431),a=t(424),n=t(69);function l(t,e,s,o,i){const{collapsed:a,level:n,title:l}=i,u=r.span({class:slick-group-toggle ${a?"collapsed":"expanded"},style:{"margin-left":${15*n}px}}),g=r.span({class:"slick-group-title",level:n},l);return`${u.outerHTML}${g.outerHTML}`}function u(t,e){const s=this.getDataItem(e.row);s instanceof i.Group&&t.target.classList.contains("slick-group-toggle")&&(s.collapsed?this.getData().expandGroup(s.groupingKey):this.getData().collapseGroup(s.groupingKey),t.stopImmediatePropagation(),t.preventDefault(),this.invalidate(),this.render())}class g extends n.Model{constructor(t){super(t)}static init_GroupingInfo(){this.define({getter:[o.String,""],aggregators:[o.Array,[]],collapsed:[o.Boolean,!1]})}get comparer(){return(t,e)=>t.value===e.value?0:t.value>e.value?1:-1}}s.GroupingInfo=g,g.__name__="GroupingInfo",g.init_GroupingInfo();class c extends a.TableDataProvider{constructor(t,e,s,o){super(t,e),this.columns=s,this.groupingInfos=[],this.groupingDelimiter=":|:\",this.target=o}setGrouping(t){this.groupingInfos=t,this.toggledGroupsByLevel=t.map(()=>({})),this.refresh()}extractGroups(t,e){const s=[],o=new Map,r=e?e.level+1:0,{comparer:a,getter:n}=this.groupingInfos[r];return t.forEach(t=>{const a=this.source.data[n][t];let l=o.get(a);if(!l){const t=e?`${e.groupingKey}${this.groupingDelimiter}${a}`:`${a}`;l=Object.assign(new i.Group,{value:a,level:r,groupingKey:t}),s.push(l),o.set(a,l)}l.rows.push(t)}),r<this.groupingInfos.length-1&&s.forEach(t=>{t.groups=this.extractGroups(t.rows,t)}),s.sort(a),s}calculateTotals(t,e){const s={avg:{},max:{},min:{},sum:{}},{source:{data:o}}=this,r=Object.keys(o),i=t.rows.map(t=>r.reduce((e,s)=>Object.assign(Object.assign({},e),{[s]:o[s][t]}),{}));return e.forEach(t=>{t.init(),i.forEach(e=>t.accumulate(e)),t.storeResult(s)}),s}addTotals(t,e=0){const{aggregators:s,collapsed:o}=this.groupingInfos[e],r=this.toggledGroupsByLevel[e];t.forEach(t=>{t.groups&&this.addTotals(t.groups,e+1),s.length&&t.rows.length&&(t.totals=this.calculateTotals(t,s)),t.collapsed=o!==r[t.groupingKey],t.title=t.value?`${t.value}`:\"\"})}flattenedGroupedRows(t,e=0){const s=[];return t.forEach(t=>{if(s.push(t),!t.collapsed){const o=t.groups?this.flattenedGroupedRows(t.groups,e+1):t.rows;s.push(...o)}}),s}refresh(){const t=this.extractGroups(this.view.indices),e=this.source.data[this.columns[0].field];t.length&&(this.addTotals(t),this.rows=this.flattenedGroupedRows(t),this.target.data={row_indices:this.rows.map(t=>t instanceof i.Group?t.rows:t),labels:this.rows.map(t=>t instanceof i.Group?t.title:e[t])})}getLength(){return this.rows.length}getItem(t){const e=this.rows[t],{source:{data:s}}=this;return e instanceof i.Group?e:Object.keys(s).reduce((t,o)=>Object.assign(Object.assign({},t),{[o]:s[o][e]}),{[a.DTINDEX_NAME]:e})}getItemMetadata(t){const e=this.rows[t],s=this.columns.slice(1),o=e instanceof i.Group?this.groupingInfos[e.level].aggregators:[];return e instanceof i.Group?{selectable:!1,focusable:!1,cssClasses:\"slick-group\",columns:[{formatter:l},...s.map((function(t){const{field:e,formatter:s}=t,r=o.find(({field_:t})=>t===e);if(r){const{key:t}=r;return{formatter:(o,r,i,a,n)=>s?s(o,r,n.totals[t][e],a,n):\"\"}}return{}}))]}:{}}collapseGroup(t){const e=t.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[e][t]=!this.groupingInfos[e].collapsed,this.refresh()}expandGroup(t){const e=t.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed,this.refresh()}}s.DataCubeProvider=c,c.__name__=\"DataCubeProvider\";class p extends a.DataTableView{render(){const t={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:!1,forceFitColumns:this.model.fit_columns,multiColumnSort:!1,editable:this.model.editable,autoEdit:!1,rowHeight:this.model.row_height},e=this.model.columns.map(t=>t.toColumn());var s,o;e[0].formatter=(s=e[0].formatter,o=this.model.grouping.length,(t,e,i,a,n)=>{const l=r.span({class:\"slick-group-toggle\",style:{\"margin-left\":`${15*(o||0)}px`}}),u=s?s(t,e,i,a,n):`${i}`;return`${l.outerHTML}${u&&u.replace(/^<div/,\"<span\").replace(/div>$/,\"span>\")}`}),delete e[0].editor,this.data=new c(this.model.source,this.model.view,e,this.model.target),this.data.setGrouping(this.model.grouping),this.el.style.width=`${this.model.width}px`,this.grid=new i.Grid(this.el,this.data,e,t),this.grid.onClick.subscribe(u)}}s.DataCubeView=p,p.__name__=\"DataCubeView\";class h extends a.DataTable{constructor(t){super(t)}static init_DataCube(){this.prototype.default_view=p,this.define({grouping:[o.Array,[]],target:[o.Instance]})}}s.DataCube=h,h.__name__=\"DataCube\",h.init_DataCube()},\n }, 421, {\"models/widgets/tables/main\":421,\"models/widgets/tables/index\":422,\"models/widgets/tables/cell_editors\":423,\"models/widgets/tables/data_table\":424,\"models/widgets/tables/table_widget\":440,\"models/widgets/widget\":441,\"styles/widgets/tables\":442,\"styles/widgets/slickgrid\":443,\"models/widgets/tables/cell_formatters\":444,\"models/widgets/tables/table_column\":447,\"models/widgets/tables/row_aggregators\":448,\"models/widgets/tables/data_cube\":449}, {});\n })\n\n\n /* END bokeh-tables.min.js */\n },\n \n function(Bokeh) {\n /* BEGIN bokeh-gl.min.js */\n /*!\n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n * \n * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n * \n * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n * \n * Neither the name of Anaconda nor the names of any contributors\n * may be used to endorse or promote products derived from this software\n * without specific prior written permission.\n * \n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\n * THE POSSIBILITY OF SUCH DAMAGE.\n */\n (function(root, factory) {\n factory(root[\"Bokeh\"], \"2.0.2\");\n })(this, function(Bokeh, version) {\n var define;\n return (function(modules, entry, aliases, externals) {\n const bokeh = typeof Bokeh !== \"undefined\" && (version != null ? Bokeh[version] : Bokeh);\n if (bokeh != null) {\n return bokeh.register_plugin(modules, entry, aliases);\n } else {\n throw new Error(\"Cannot find Bokeh \" + version + \". You have to load it prior to loading plugins.\");\n }\n })\n ({\n 357: function _(e,n,o){Object.defineProperty(o,\"__esModule\",{value:!0}),e(358)},\n 358: function _(e,t,_){Object.defineProperty(_,\"__esModule\",{value:!0});const o=e(1);\n /*\n Copyright notice: many of the awesome techniques and GLSL code contained in\n this module are based on work by Nicolas Rougier as part of the Glumpy and\n Vispy projects. The algorithms are published in\n http://jcgt.org/published/0003/04/01/ and http://jcgt.org/published/0002/02/08/\n \n This module contains all gl-specific code to add gl support for the glyphs.\n By implementing it separetely, the GL functionality can be spun off in a\n separate library.\n Other locations where we work with GL, or prepare for GL-rendering:\n - canvas.ts\n - plot.ts\n - glyph.ts\n - glyph_renderer.ts\n */o.__exportStar(e(359),_),o.__exportStar(e(364),_)},\n 359: function _(t,e,s){Object.defineProperty(s,\"__esModule\",{value:!0});const i=t(360),a=t(361),n=t(362),_=t(363),o=t(21);class h{constructor(t){this._atlas={},this._index=0,this._width=256,this._height=256,this.tex=new i.Texture2D(t),this.tex.set_wrapping(t.REPEAT,t.REPEAT),this.tex.set_interpolation(t.NEAREST,t.NEAREST),this.tex.set_size([this._height,this._width],t.RGBA),this.tex.set_data([0,0],[this._height,this._width],new Uint8Array(this._height*this._width*4)),this.get_atlas_data([1])}get_atlas_data(t){const e=t.join(\"-\");if(void 0===this._atlas[e]){const[s,i]=this.make_pattern(t);this.tex.set_data([this._index,0],[1,this._width],new Uint8Array(s.map(t=>t+10))),this._atlas[e]=[this._index/this._height,i],this._index+=1}return this._atlas[e]}make_pattern(t){t.length>1&&t.length%2&&(t=t.concat(t));let e=0;for(const s of t)e+=s;const s=[];let i=0;for(let e=0,a=t.length+2;e<a;e+=2){const a=Math.max(1e-4,t[e%t.length]),n=Math.max(1e-4,t[(e+1)%t.length]);s.push(i,i+a),i+=a+n}const a=this._width,n=new Float32Array(4*a);for(let t=0,i=a;t<i;t++){let i,_,o;const h=e*t/(a-1);let r=0,l=1e16;for(let t=0,e=s.length;t<e;t++){const e=Math.abs(s[t]-h);e<l&&(r=t,l=e)}r%2==0?(o=h<=s[r]?1:0,_=s[r],i=s[r+1]):(o=h>s[r]?-1:0,_=s[r-1],i=s[r]),n[4*t+0]=s[r],n[4*t+1]=o,n[4*t+2]=_,n[4*t+3]=i}return[n,e]}}h.__name__=\"DashAtlas\";const r={miter:0,round:1,bevel:2},l={\"\":0,none:0,\".\":0,round:1,\")\":1,\"(\":1,o:1,\"triangle in\":2,\"<\":2,\"triangle out\":3,\">\":3,square:4,\"[\":4,\"]\":4,\"=\":4,butt:5,\"|":5};class g extends a.BaseGLGlyph{init(){const{gl:t}=this;this._scale_aspect=0;const e=n.vertex_shader,s=_.fragment_shader;this.prog=new i.Program(t),this.prog.set_shaders(e,s),this.index_buffer=new i.IndexBuffer(t),this.vbo_position=new i.VertexBuffer(t),this.vbo_tangents=new i.VertexBuffer(t),this.vbo_segment=new i.VertexBuffer(t),this.vbo_angles=new i.VertexBuffer(t),this.vbo_texcoord=new i.VertexBuffer(t),this.dash_atlas=new h(t)}draw(t,e,s){const i=e.glglyph;if(i.data_changed){if(!isFinite(s.dx)||!isFinite(s.dy))return;i._baked_offset=[s.dx,s.dy],i._set_data(),i.data_changed=!1}this.visuals_changed&&(this._set_visuals(),this.visuals_changed=!1);let{sx:a,sy:n}=s;const _=Math.sqrt(a*a+n*n);a/=_,n/=_,Math.abs(this._scale_aspect-n/a)>Math.abs(.001*this._scale_aspect)&&(i._update_scale(a,n),this._scale_aspect=n/a),this.prog.set_attribute("a_position","vec2",i.vbo_position),this.prog.set_attribute("a_tangents","vec4",i.vbo_tangents),this.prog.set_attribute("a_segment","vec2",i.vbo_segment),this.prog.set_attribute("a_angles","vec2",i.vbo_angles),this.prog.set_attribute("a_texcoord","vec2",i.vbo_texcoord),this.prog.set_uniform("u_length","float",[i.cumsum]),this.prog.set_texture("u_dash_atlas",this.dash_atlas.tex);const o=i._baked_offset;if(this.prog.set_uniform("u_pixel_ratio","float",[s.pixel_ratio]),this.prog.set_uniform("u_canvas_size","vec2",[s.width,s.height]),this.prog.set_uniform("u_offset","vec2",[s.dx-o[0],s.dy-o[1]]),this.prog.set_uniform("u_scale_aspect","vec2",[a,n]),this.prog.set_uniform("u_scale_length","float",[_]),this.I_triangles=i.I_triangles,this.I_triangles.length<65535)this.index_buffer.set_size(2*this.I_triangles.length),this.index_buffer.set_data(0,new Uint16Array(this.I_triangles)),this.prog.draw(this.gl.TRIANGLES,this.index_buffer);else{t=Array.from(this.I_triangles);const e=this.I_triangles.length,s=64008,a=[];for(let t=0,i=Math.ceil(e/s);t<i;t++)a.push([]);for(let e=0,i=t.length;e<i;e++){const i=t[e]%s;a[Math.floor(t[e]/s)].push(i)}for(let t=0,e=a.length;t<e;t++){const e=new Uint16Array(a[t]),n=t*s*4;0!==e.length&&(this.prog.set_attribute("a_position","vec2",i.vbo_position,0,2*n),this.prog.set_attribute("a_tangents","vec4",i.vbo_tangents,0,4*n),this.prog.set_attribute("a_segment","vec2",i.vbo_segment,0,2*n),this.prog.set_attribute("a_angles","vec2",i.vbo_angles,0,2*n),this.prog.set_attribute("a_texcoord","vec2",i.vbo_texcoord,0,2*n),this.index_buffer.set_size(2*e.length),this.index_buffer.set_data(0,e),this.prog.draw(this.gl.TRIANGLES,this.index_buffer))}}}_set_data(){this._bake(),this.vbo_position.set_size(4*this.V_position.length),this.vbo_position.set_data(0,this.V_position),this.vbo_tangents.set_size(4*this.V_tangents.length),this.vbo_tangents.set_data(0,this.V_tangents),this.vbo_angles.set_size(4*this.V_angles.length),this.vbo_angles.set_data(0,this.V_angles),this.vbo_texcoord.set_size(4*this.V_texcoord.length),this.vbo_texcoord.set_data(0,this.V_texcoord)}_set_visuals(){const t=o.color2rgba(this.glyph.visuals.line.line_color.value(),this.glyph.visuals.line.line_alpha.value()),e=l[this.glyph.visuals.line.line_cap.value()],s=r[this.glyph.visuals.line.line_join.value()];this.prog.set_uniform("u_color","vec4",t),this.prog.set_uniform("u_linewidth","float",[this.glyph.visuals.line.line_width.value()]),this.prog.set_uniform("u_antialias","float",[.9]),this.prog.set_uniform("u_linecaps","vec2",[e,e]),this.prog.set_uniform("u_linejoin","float",[s]),this.prog.set_uniform("u_miter_limit","float",[10]);const i=this.glyph.visuals.line.line_dash.value();let a=0,n=1;i.length&&([a,n]=this.dash_atlas.get_atlas_data(i)),this.prog.set_uniform("u_dash_index","float",[a]),this.prog.set_uniform("u_dash_phase","float",[this.glyph.visuals.line.line_dash_offset.value()]),this.prog.set_uniform("u_dash_period","float",[n]),this.prog.set_uniform("u_dash_caps","vec2",[e,e]),this.prog.set_uniform("u_closed","float",[0])}_bake(){let t,e,s,i,a,n,_,o;const h=this.nvertices,r=new Float64Array(this.glyph._x),l=new Float64Array(this.glyph._y),g=_=new Float32Array(2*h),f=new Float32Array(2*h),u=o=new Float32Array(4*h);for(let t=0,e=h;t<e;t++)g[2*t+0]=r[t]+this._baked_offset[0],g[2*t+1]=l[t]+this._baked_offset[1];this.tangents=e=new Float32Array(2*h-2);for(let t=0,s=h-1;t<s;t++)e[2*t+0]=_[2*(t+1)+0]-_[2*t+0],e[2*t+1]=_[2*(t+1)+1]-_[2*t+1];for(let t=0,s=h-1;t<s;t++)u[4*(t+1)+0]=e[2*t+0],u[4*(t+1)+1]=e[2*t+1],u[4*t+2]=e[2*t+0],u[4*t+3]=e[2*t+1];u[0]=e[0],u[1]=e[1],u[4*(h-1)+2]=e[2*(h-2)+0],u[4*(h-1)+3]=e[2*(h-2)+1];const c=new Float32Array(h);for(let t=0,e=h;t<e;t++)c[t]=Math.atan2(o[4*t+0]*o[4*t+3]-o[4*t+1]*o[4*t+2],o[4*t+0]*o[4*t+2]+o[4*t+1]*o[4*t+3]);for(let t=0,e=h-1;t<e;t++)f[2*t+0]=c[t],f[2*t+1]=c[t+1];const d=4*h-4;this.V_position=i=new Float32Array(2*d),this.V_angles=s=new Float32Array(2*d),this.V_tangents=a=new Float32Array(4*d),this.V_texcoord=n=new Float32Array(2*d);for(let t=0,e=h;t<e;t++)for(let e=0;e<4;e++){for(let a=0;a<2;a++)i[2*(4*t+e-2)+a]=g[2*t+a],s[2*(4*t+e)+a]=f[2*t+a];for(let s=0;s<4;s++)a[4*(4*t+e-2)+s]=u[4*t+s]}for(let t=0,e=h;t<e;t++)n[2*(4*t+0)+0]=-1,n[2*(4*t+1)+0]=-1,n[2*(4*t+2)+0]=1,n[2*(4*t+3)+0]=1,n[2*(4*t+0)+1]=-1,n[2*(4*t+1)+1]=1,n[2*(4*t+2)+1]=-1,n[2*(4*t+3)+1]=1;const p=6*(h-1);this.I_triangles=t=new Uint32Array(p);for(let e=0,s=h;e<s;e++)t[6*e+0]=0+4*e,t[6*e+1]=1+4*e,t[6*e+2]=3+4*e,t[6*e+3]=2+4*e,t[6*e+4]=0+4*e,t[6*e+5]=3+4*e}_update_scale(t,e){let s;const i=this.nvertices,a=4*i-4,n=this.tangents,_=new Float32Array(i-1),o=new Float32Array(2*i);this.V_segment=s=new Float32Array(2*a);for(let s=0,a=i-1;s<a;s++)_[s]=Math.sqrt((n[2*s+0]*t)**2+(n[2*s+1]*e)**2);let h=0;for(let t=0,e=i-1;t<e;t++)h+=_[t],o[2*(t+1)+0]=h,o[2*t+1]=h;for(let t=0,e=i;t<e;t++)for(let e=0;e<4;e++)for(let i=0;i<2;i++)s[2*(4*t+e)+i]=o[2*t+i];this.cumsum=h,this.vbo_segment.set_size(4*this.V_segment.length),this.vbo_segment.set_data(0,this.V_segment)}}s.LineGLGlyph=g,g.__name__="LineGLGlyph"},n 360: function _(t,e,r){var n,o,i,a,s,l,h,u,c,_=function(t,e){return Array.isArray(t)&&Array.isArray(e)?t.concat(e):t+e},f=function(t,e){if(null==e);else{if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(p(t,e[r]))return!0;return!1}if(e.constructor===Object){for(var n in e)if(t==n)return!0;return!1}if(e.constructor==String)return e.indexOf(t)>=0}var o=Error("Not a container: "+e);throw o.name="TypeError",o},p=function t(e,r){if(null==e||null==r);else{if(Array.isArray(e)&&Array.isArray(r)){for(var n=0,o=e.length==r.length;o&&n<e.length;)o=t(e[n],r[n]),n+=1;return o}if(e.constructor===Object&&r.constructor===Object){var i=Object.keys(e),a=Object.keys(r);i.sort(),a.sort();var s;for(n=0,o=t(i,a);o&&n<i.length;)o=t(e[s=i[n]],r[s]),n+=1;return o}}return e==r},d=function(t,e){if(void 0===t||"undefined"!=typeof window&&window===t||"undefined"!=typeof global&&global===t)throw"Class constructor is called as a function.";for(var r in t)void 0!==Object[r]||"function"!=typeof t[r]||t[r].nobind||(t[r]=t[r].bind(t));t.__init__&&t.__init__.apply(t,e)},y=function(t,e){if(("number"==typeof t)+("number"==typeof e)===1){if(t.constructor===String)return A.call(t,e);if(e.constructor===String)return A.call(e,t);if(Array.isArray(e)){var r=t;t=e,e=r}if(Array.isArray(t)){for(var n=[],o=0;o<e;o++)n=n.concat(t);return n}}return t*e},g=function(t){return null===t||"object"!=typeof t?t:void 0!==t.length?!!t.length&&t:void 0!==t.byteLength?!!t.byteLength&&t:t.constructor!==Object||!!Object.getOwnPropertyNames(t).length&&t},v=function(t){if(!Array.isArray(this))return this.append.apply(this,arguments);this.push(t)},m=function(t,e){return this.constructor!==Object?this.get.apply(this,arguments):void 0!==this[t]?this[t]:void 0!==e?e:null},x=function(){return"function"==typeof this.keys?this.keys.apply(this,arguments):Object.keys(this)},b=function(t){if(this.constructor!==String)return this.lstrip.apply(this,arguments);t=void 0===t?" \t\r\n":t;for(var e=0;e<this.length;e++)if(t.indexOf(this[e])<0)return this.slice(e);return""},E=function(t){if(!Array.isArray(this))return this.remove.apply(this,arguments);for(var e=0;e<this.length;e++)if(p(this[e],t))return void this.splice(e,1);var r=Error(t);throw r.name="ValueError",r},A=function(t){if(this.repeat)return this.repeat(t);if(t<1)return"";for(var e="",r=this.valueOf();t>1;)1&t&&(e+=r),t>>=1,r+=r;return e+r},w=function(t){return this.constructor!==String?this.startswith.apply(this,arguments):0==this.indexOf(t)};c=window.console,u=function(t,e){var r,n,o,i,a,s,l;for(e=void 0===e?"periodic check":e,i=[];n=t.getError(),!(p(n,t.NO_ERROR)||g(i)&&p(n,i[i.length-1]));)v.call(i,n);if(i.length){for(a="","object"!=typeof(s=i)||Array.isArray(s)||(s=Object.keys(s)),l=0;l<s.length;l+=1)r=s[l],a=_(a,r);throw(o=new Error("RuntimeError:OpenGL got errors ("+e+"): "+a)).name="RuntimeError",o}return null},(o=function(){d(this,arguments)}).prototype._base_class=Object,o.prototype._class_name="GlooObject",o.prototype.__init__=function(t){if(this._gl=t,this.handle=null,this._create(),null===this.handle)throw"AssertionError: this.handle !== null";return null},o.prototype._create=function(){var t;throw(t=new Error("NotImplementedError:")).name="NotImplementedError",t},((a=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,a.prototype._class_name="Program",a.prototype.UTYPEMAP={float:"uniform1fv",vec2:"uniform2fv",vec3:"uniform3fv",vec4:"uniform4fv",int:"uniform1iv",ivec2:"uniform2iv",ivec3:"uniform3iv",ivec4:"uniform4iv",bool:"uniform1iv",bvec2:"uniform2iv",bvec3:"uniform3iv",bvec4:"uniform4iv",mat2:"uniformMatrix2fv",mat3:"uniformMatrix3fv",mat4:"uniformMatrix4fv",sampler1D:"uniform1i",sampler2D:"uniform1i",sampler3D:"uniform1i"},a.prototype.ATYPEMAP={float:"vertexAttrib1f",vec2:"vertexAttrib2f",vec3:"vertexAttrib3f",vec4:"vertexAttrib4f"},a.prototype.ATYPEINFO={float:[1,5126],vec2:[2,5126],vec3:[3,5126],vec4:[4,5126]},a.prototype._create=function(){return this.handle=this._gl.createProgram(),this.locations={},this._unset_variables=[],this._validated=!1,this._samplers={},this._attributes={},this._known_invalid=[],null},a.prototype.delete=function(){return this._gl.deleteProgram(this.handle),null},a.prototype.activate=function(){return this._gl.useProgram(this.handle),null},a.prototype.deactivate=function(){return this._gl.useProgram(0),null},a.prototype.set_shaders=function(t,e){var r,n,o,i,a,s,l,h,u,c,f,p,d;for(s=this._gl,this._linked=!1,f=[[t,d=s.createShader(s.VERTEX_SHADER),"vertex"],[e,a=s.createShader(s.FRAGMENT_SHADER),"fragment"]],h=0;h<2;h+=1)if(r=(c=f[h])[0],l=c[1],p=c[2],s.shaderSource(l,r),s.compileShader(l),u=s.getShaderParameter(l,s.COMPILE_STATUS),!g(u))throw i=s.getShaderInfoLog(l),(o=new Error("RuntimeError:"+_("errors in "+p+" shader:\n",i))).name="RuntimeError",o;if(s.attachShader(this.handle,d),s.attachShader(this.handle,a),s.linkProgram(this.handle),!g(s.getProgramParameter(this.handle,s.LINK_STATUS)))throw(n=new Error("RuntimeError:Program link error:\n"+s.getProgramInfoLog(this.handle))).name="RuntimeError",n;return this._unset_variables=this._get_active_attributes_and_uniforms(),s.detachShader(this.handle,d),s.detachShader(this.handle,a),s.deleteShader(d),s.deleteShader(a),this._known_invalid=[],this._linked=!0,null},a.prototype._get_active_attributes_and_uniforms=function(){var t,e,r,n,o,i,a,s,l,h,u,c,f,p,d,y,m,x;for(s=this._gl,this.locations={},p=new window.RegExp("(\\w+)\\s*(\\[(\\d+)\\])\\s*"),o=s.getProgramParameter(this.handle,s.ACTIVE_UNIFORMS),e=s.getProgramParameter(this.handle,s.ACTIVE_ATTRIBUTES),x=[],"object"!=typeof(y=[[t=[],e,s.getActiveAttrib,s.getAttribLocation],[x,o,s.getActiveUniform,s.getUniformLocation]])||Array.isArray(y)||(y=Object.keys(y)),m=0;m<y.length;m+=1)for(r=(d=y[m])[0],n=d[1],i=d[2],a=d[3],l=0;l<n;l+=1){if(c=(f=(h=i.call(s,this.handle,l)).name).match(p),g(c))for(f=c[1],u=0;u<h.size;u+=1)v.call(r,[f+"["+u+"]",h.type]);else v.call(r,[f,h.type]);this.locations[f]=a.call(s,this.handle,f)}return _(function(){var e,r,n,o=[];for("object"!=typeof(r=t)||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n++)e=r[n],o.push(e[0]);return o}.apply(this),function(){var t,e,r,n=[];for("object"!=typeof(e=x)||Array.isArray(e)||(e=Object.keys(e)),r=0;r<e.length;r++)t=e[r],n.push(t[0]);return n}.apply(this))},a.prototype.set_texture=function(t,e){var r,n,o;if(!g(this._linked))throw(r=new Error("RuntimeError:Cannot set uniform when program has no code")).name="RuntimeError",r;return n=m.call(this.locations,t,-1),g(n<0)?(f(t,this._known_invalid)||(v.call(this._known_invalid,t),c.log("Variable "+t+" is not an active texture")),null):(f(t,this._unset_variables)&&E.call(this._unset_variables,t),this.activate(),o=x.call(this._samplers).length,f(t,this._samplers)&&(o=this._samplers[t][this._samplers[t].length-1]),this._samplers[t]=[e._target,e.handle,o],this._gl.uniform1i(n,o),null)},a.prototype.set_uniform=function(t,e,r){var n,o,i,a,s,l,h;if(!g(this._linked))throw(i=new Error("RuntimeError:Cannot set uniform when program has no code")).name="RuntimeError",i;if(s=m.call(this.locations,t,-1),g(s<0))return f(t,this._known_invalid)||(v.call(this._known_invalid,t),c.log("Variable "+t+" is not an active uniform")),null;if(f(t,this._unset_variables)&&E.call(this._unset_variables,t),o=1,w.call(e,"mat")||(n=m.call({int:"float",bool:"float"},e,b.call(e,"ib")),o=Math.floor(r.length/this.ATYPEINFO[n][0])),g(o>1))for(l=0;l<o;l+=1)f(t+"["+l+"]",this._unset_variables)&&f(h=t+"["+l+"]",this._unset_variables)&&E.call(this._unset_variables,h);return a=this.UTYPEMAP[e],this.activate(),w.call(e,"mat")?this._gl[a](s,!1,r):this._gl[a](s,r),null},a.prototype.set_attribute=function(t,e,r,n,o){var i,a,s,l,u,_;if(n=void 0===n?0:n,o=void 0===o?0:o,!g(this._linked))throw(a=new Error("RuntimeError:Cannot set attribute when program has no code")).name="RuntimeError",a;return u=r instanceof h,l=m.call(this.locations,t,-1),g(l<0)?(f(t,this._known_invalid)||(v.call(this._known_invalid,t),g(u)&&g(o>0)||c.log("Variable "+t+" is not an active attribute")),null):(f(t,this._unset_variables)&&E.call(this._unset_variables,t),this.activate(),g(u)?(s="vertexAttribPointer",i=[(_=this.ATYPEINFO[e])[0],_[1],this._gl.FALSE,n,o],this._attributes[t]=[r.handle,l,s,i]):(s=this.ATYPEMAP[e],this._attributes[t]=[0,l,s,r]),null)},a.prototype._pre_draw=function(){var t,e,r,n,o,i,a,s,l,h,u,c;for(c in this.activate(),a=this._samplers)a.hasOwnProperty(c)&&(l=(i=c=a[c])[0],s=i[1],h=i[2],this._gl.activeTexture(_(this._gl.TEXTURE0,h)),this._gl.bindTexture(l,s));for(c in o=this._attributes)o.hasOwnProperty(c)&&(u=(n=c=o[c])[0],e=n[1],r=n[2],t=n[3],g(u)?(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,u),this._gl.enableVertexAttribArray(e),this._gl[r].apply(this._gl,[].concat([e],t))):(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,null),this._gl.disableVertexAttribArray(e),this._gl[r].apply(this._gl,[].concat([e],t))));return g(this._validated)||(this._validated=!0,this._validate()),null},a.prototype._validate=function(){var t;if(this._unset_variables.length&&c.log("Program has unset variables: "+this._unset_variables),this._gl.validateProgram(this.handle),!g(this._gl.getProgramParameter(this.handle,this._gl.VALIDATE_STATUS)))throw c.log(this._gl.getProgramInfoLog(this.handle)),(t=new Error("RuntimeError:Program validation error")).name="RuntimeError",t;return null},a.prototype.draw=function(t,e){var r,n,o,a,s;if(!g(this._linked))throw(n=new Error("RuntimeError:Cannot draw program if code has not been set")).name="RuntimeError",n;return u(this._gl,"before draw"),g(e instanceof i)?(this._pre_draw(),e.activate(),r=e._buffer_size/2,a=this._gl.UNSIGNED_SHORT,this._gl.drawElements(t,r,a,0),e.deactivate()):(o=(s=e)[0],r=s[1],g(r)&&(this._pre_draw(),this._gl.drawArrays(t,o,r))),u(this._gl,"after draw"),null},((n=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,n.prototype._class_name="Buffer",n.prototype._target=null,n.prototype._usage=35048,n.prototype._create=function(){return this.handle=this._gl.createBuffer(),this._buffer_size=0,null},n.prototype.delete=function(){return this._gl.deleteBuffer(this.handle),null},n.prototype.activate=function(){return this._gl.bindBuffer(this._target,this.handle),null},n.prototype.deactivate=function(){return this._gl.bindBuffer(this._target,null),null},n.prototype.set_size=function(t){return p(t,this._buffer_size)||(this.activate(),this._gl.bufferData(this._target,t,this._usage),this._buffer_size=t),null},n.prototype.set_data=function(t,e){return this.activate(),this._gl.bufferSubData(this._target,t,e),null},(h=function(){d(this,arguments)}).prototype=Object.create(n.prototype),h.prototype._base_class=n.prototype,h.prototype._class_name="VertexBuffer",h.prototype._target=34962,(i=function(){d(this,arguments)}).prototype=Object.create(n.prototype),i.prototype._base_class=n.prototype,i.prototype._class_name="IndexBuffer",i.prototype._target=34963,((s=function(){d(this,arguments)}).prototype=Object.create(o.prototype))._base_class=o.prototype,s.prototype._class_name="Texture2D",s.prototype._target=3553,s.prototype._types={Int8Array:5120,Uint8Array:5121,Int16Array:5122,Uint16Array:5123,Int32Array:5124,Uint32Array:5125,Float32Array:5126},s.prototype._create=function(){return this.handle=this._gl.createTexture(),this._shape_format=null,null},s.prototype.delete=function(){return this._gl.deleteTexture(this.handle),null},s.prototype.activate=function(){return this._gl.bindTexture(this._target,this.handle),null},s.prototype.deactivate=function(){return this._gl.bindTexture(this._target,0),null},s.prototype._get_alignment=function(t){var e,r,n;for("object"!=typeof(r=[4,8,2,1])||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n+=1)if(e=r[n],p(t%e,0))return e;return null},s.prototype.set_wrapping=function(t,e){return this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_S,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_T,e),null},s.prototype.set_interpolation=function(t,e){return this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_MIN_FILTER,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_MAG_FILTER,e),null},s.prototype.set_size=function(t,e){var r,n,o;return r=(n=t)[0],o=n[1],p([r,o,e],this._shape_format)||(this._shape_format=[r,o,e],this.activate(),this._gl.texImage2D(this._target,0,e,o,r,0,e,this._gl.UNSIGNED_BYTE,null)),this.u_shape=[r,o],null},s.prototype.set_data=function(t,e,r){var n,o,i,a,s,l,h,u,c,_;if(p(e.length,2)&&(e=[e[0],e[1],1]),this.activate(),i=this._shape_format[2],s=(l=e)[0],u=l[1],l[2],_=(h=t)[0],c=h[1],null===(a=m.call(this._types,r.constructor.name,null)))throw(o=new Error("ValueError:Type "+r.constructor.name+" not allowed for texture")).name="ValueError",o;return n=this._get_alignment(y(e[e.length-2],e[e.length-1])),p(n,4)||this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,n),this._gl.texSubImage2D(this._target,0,c,_,u,s,i,a,r),p(n,4)||this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,4),null},((l=function(){d(this,arguments)}).prototype=Object.create(s.prototype))._base_class=s.prototype,l.prototype._class_name="Texture3DLike",l.prototype.GLSL_SAMPLE_NEAREST="\n vec4 sample3D(sampler2D tex, vec3 texcoord, vec3 shape, vec2 tiles) {\n shape.xyz = shape.zyx; // silly row-major convention\n float nrows = tiles.y, ncols = tiles.x;\n // Don’t let adjacent frames be interpolated into this one\n texcoord.x = min(texcoord.x * shape.x, shape.x - 0.5);\n texcoord.x = max(0.5, texcoord.x) / shape.x;\n texcoord.y = min(texcoord.y * shape.y, shape.y - 0.5);\n texcoord.y = max(0.5, texcoord.y) / shape.y;\n\n float zindex = floor(texcoord.z * shape.z);\n\n // Do a lookup in the 2D texture\n float u = (mod(zindex, ncols) + texcoord.x) / ncols;\n float v = (floor(zindex / ncols) + texcoord.y) / nrows;\n\n return texture2D(tex, vec2(u,v));\n }\n ",l.prototype.GLSL_SAMPLE_LINEAR="\n vec4 sample3D(sampler2D tex, vec3 texcoord, vec3 shape, vec2 tiles) {\n shape.xyz = shape.zyx; // silly row-major convention\n float nrows = tiles.y, ncols = tiles.x;\n // Don’t let adjacent frames be interpolated into this one\n texcoord.x = min(texcoord.x * shape.x, shape.x - 0.5);\n texcoord.x = max(0.5, texcoord.x) / shape.x;\n texcoord.y = min(texcoord.y * shape.y, shape.y - 0.5);\n texcoord.y = max(0.5, texcoord.y) / shape.y;\n\n float z = texcoord.z * shape.z;\n float zindex1 = floor(z);\n float u1 = (mod(zindex1, ncols) + texcoord.x) / ncols;\n float v1 = (floor(zindex1 / ncols) + texcoord.y) / nrows;\n\n float zindex2 = zindex1 + 1.0;\n float u2 = (mod(zindex2, ncols) + texcoord.x) / ncols;\n float v2 = (floor(zindex2 / ncols) + texcoord.y) / nrows;\n\n vec4 s1 = texture2D(tex, vec2(u1, v1));\n vec4 s2 = texture2D(tex, vec2(u2, v2));\n\n return s1 * (zindex2 - z) + s2 * (z - zindex1);\n }\n ",l.prototype._get_tile_info=function(t){var e,r,n,o;if(r=this._gl.getParameter(this._gl.MAX_TEXTURE_SIZE),o=Math.floor(r/t[1]),o=Math.min(o,t[0]),n=window.Math.ceil(t[0]/o),g(y(n,t[2])>r))throw(e=new Error("RuntimeError:Cannot fit 3D data with shape "+t+" onto simulated 2D texture.")).name="RuntimeError",e;return[o,n]},l.prototype.set_size=function(t,e){var r,n,o,i;return n=(i=this._get_tile_info(t))[0],r=i[1],o=[y(t[1],n),y(t[2],r)],l.prototype._base_class.set_size.call(this,o,e),this.u_shape=[t[0],t[1],t[2]],this.u_tiles=[r,n],null},l.prototype.set_data=function(t,e,r){var n,o,i,a,s,h,u,c,_,f,d,v;if(p(e.length,3)&&(e=[e[0],e[1],e[2],1]),!function(t){for(var e=0;e<t.length;e++)if(!g(t[e]))return!1;return!0}(function(){var e,r,n,o=[];for("object"!=typeof(r=t)||Array.isArray(r)||(r=Object.keys(r)),n=0;n<r.length;n++)e=r[n],o.push(p(e,0));return o}.apply(this)))throw(i=new Error("ValueError:Texture3DLike does not support nonzero offset (for now)")).name="ValueError",i;if(s=(c=this._get_tile_info(e))[0],a=c[1],u=[y(e[1],s),y(e[2],a),e[3]],p(a,1))l.prototype._base_class.set_data.call(this,[0,0],u,r);else for(v=new(0,r.constructor)(y(y(u[0],u[1]),u[2])),l.prototype._base_class.set_data.call(this,[0,0],u,v),d=0;d<e[0];d+=1)h=(_=[Math.floor(d/a),d%a])[0],n=_[1],o=Math.floor(r.length/e[0]),f=r.slice(y(d,o),y(d+1,o)),l.prototype._base_class.set_data.call(this,[y(h,e[1]),y(n,e[2])],e.slice(1),f);return null},e.exports={Buffer:n,GlooObject:o,IndexBuffer:i,Program:a,Texture2D:s,Texture3DLike:l,VertexBuffer:h,check_error:u,console:c}},n 361: function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const r=e(21),s=e(70);class i{constructor(e,t){this.gl=e,this.glyph=t,this.nvertices=0,this.size_changed=!1,this.data_changed=!1,this.visuals_changed=!1,this.init()}set_data_changed(e){e!=this.nvertices&&(this.nvertices=e,this.size_changed=!0),this.data_changed=!0}set_visuals_changed(){this.visuals_changed=!0}render(e,t,a){if(0==t.length)return!0;const[r,i,n]=[0,1,2];let l=1,h=1,[c,o]=this.glyph.renderer.map_to_screen([r*l,i*l,n*l],[r*h,i*h,n*h]);if(isNaN(c[0]+c[1]+c[2]+o[0]+o[1]+o[2]))return s.logger.warn(WebGL backend (${this.glyph.model.type}): falling back to canvas rendering),!1;if(l=100/Math.min(Math.max(Math.abs(c[1]-c[0]),1e-12),1e12),h=100/Math.min(Math.max(Math.abs(o[1]-o[0]),1e-12),1e12),[c,o]=this.glyph.renderer.map_to_screen([r*l,i*l,n*l],[r*h,i*h,n*h]),Math.abs(c[1]-c[0]-(c[2]-c[1]))>1e-6||Math.abs(o[1]-o[0]-(o[2]-o[1]))>1e-6)return s.logger.warn(WebGL backend (${this.glyph.model.type}): falling back to canvas rendering),!1;const[_,u]=[(c[1]-c[0])/l,(o[1]-o[0])/h],{width:d,height:g}=this.glyph.renderer.plot_view.canvas_view.webgl.canvas,f={pixel_ratio:this.glyph.renderer.plot_view.canvas.pixel_ratio,width:d,height:g,dx:c[0]/_,dy:o[0]/u,sx:_,sy:u};return this.draw(t,a,f),!0}}function n(e,t){const a=new Float32Array(e);for(let r=0,s=e;r<s;r++)a[r]=t;return a}function l(e,t){return void 0!==e[t].spec.value}a.BaseGLGlyph=i,i.__name__="BaseGLGlyph",a.line_width=function(e){return e<2&&(e=Math.sqrt(2*e)),e},a.fill_array_with_float=n,a.fill_array_with_vec=function(e,t,a){const r=new Float32Array(e*t);for(let s=0;s<e;s++)for(let e=0;e<t;e++)r[s*t+e]=a[e];return r},a.visual_prop_is_singular=l,a.attach_float=function(e,t,a,r,s,i){if(s.doit)if(l(s,i))t.used=!1,e.set_attribute(a,"float",s[i].value());else{t.used=!0;const n=new Float32Array(s.cache[i+"_array"]);t.set_size(4*r),t.set_data(0,n),e.set_attribute(a,"float",t)}else t.used=!1,e.set_attribute(a,"float",[0])},a.attach_color=function(e,t,a,s,i,h){let c;const o=h+"_color",_=h+"_alpha";if(i.doit)if(l(i,o)&&l(i,_))t.used=!1,c=r.color2rgba(i[o].value(),i[_].value()),e.set_attribute(a,"vec4",c);else{let h,u;t.used=!0,u=l(i,o)?(()=>{const e=[];for(let t=0,a=s;t<a;t++)e.push(i[o].value());return e})():i.cache[o+"_array"],h=l(i,_)?n(s,i[_].value()):i.cache[_+"_array"];const d=new Float32Array(4*s);for(let e=0,t=s;e<t;e++){c=r.color2rgba(u[e],h[e]);for(let t=0,a=4;t<a;t++)d[4*e+t]=c[t]}t.set_size(4*s*4),t.set_data(0,d),e.set_attribute(a,"vec4",t)}else t.used=!1,e.set_attribute(a,"vec4",[0,0,0,0])}},n 362: function _(n,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.vertex_shader="\nprecision mediump float;\n\nconst float PI = 3.14159265358979323846264;\nconst float THETA = 15.0 * 3.14159265358979323846264/180.0;\n\nuniform float u_pixel_ratio;\nuniform vec2 u_canvas_size, u_offset;\nuniform vec2 u_scale_aspect;\nuniform float u_scale_length;\n\nuniform vec4 u_color;\nuniform float u_antialias;\nuniform float u_length;\nuniform float u_linewidth;\nuniform float u_dash_index;\nuniform float u_closed;\n\nattribute vec2 a_position;\nattribute vec4 a_tangents;\nattribute vec2 a_segment;\nattribute vec2 a_angles;\nattribute vec2 a_texcoord;\n\nvarying vec4 v_color;\nvarying vec2 v_segment;\nvarying vec2 v_angles;\nvarying vec2 v_texcoord;\nvarying vec2 v_miter;\nvarying float v_length;\nvarying float v_linewidth;\n\nfloat cross(in vec2 v1, in vec2 v2)\n{\n return v1.x*v2.y - v1.y*v2.x;\n}\n\nfloat signed_distance(in vec2 v1, in vec2 v2, in vec2 v3)\n{\n return cross(v2-v1,v1-v3) / length(v2-v1);\n}\n\nvoid rotate( in vec2 v, in float alpha, out vec2 result )\n{\n float c = cos(alpha);\n float s = sin(alpha);\n result = vec2( c*v.x - s*v.y,\n s*v.x + c*v.y );\n}\n\nvoid main()\n{\n bool closed = (u_closed > 0.0);\n\n // Attributes and uniforms to varyings\n v_color = u_color;\n v_linewidth = u_linewidth;\n v_segment = a_segment * u_scale_length;\n v_length = u_length * u_scale_length;\n\n // Scale to map to pixel coordinates. The original algorithm from the paper\n // assumed isotropic scale. We obviously do not have this.\n vec2 abs_scale_aspect = abs(u_scale_aspect);\n vec2 abs_scale = u_scale_length * abs_scale_aspect;\n\n // Correct angles for aspect ratio\n vec2 av;\n av = vec2(1.0, tan(a_angles.x)) / abs_scale_aspect;\n v_angles.x = atan(av.y, av.x);\n av = vec2(1.0, tan(a_angles.y)) / abs_scale_aspect;\n v_angles.y = atan(av.y, av.x);\n\n // Thickness below 1 pixel are represented using a 1 pixel thickness\n // and a modified alpha\n v_color.a = min(v_linewidth, v_color.a);\n v_linewidth = max(v_linewidth, 1.0);\n\n // If color is fully transparent we just will discard the fragment anyway\n if( v_color.a <= 0.0 ) {\n gl_Position = vec4(0.0,0.0,0.0,1.0);\n return;\n }\n\n // This is the actual half width of the line\n float w = ceil(u_antialias+v_linewidth)/2.0;\n\n vec2 position = (a_position + u_offset) * abs_scale;\n\n vec2 t1 = normalize(a_tangents.xy * abs_scale_aspect); // note the scaling for aspect ratio here\n vec2 t2 = normalize(a_tangents.zw * abs_scale_aspect);\n float u = a_texcoord.x;\n float v = a_texcoord.y;\n vec2 o1 = vec2( +t1.y, -t1.x);\n vec2 o2 = vec2( +t2.y, -t2.x);\n\n // This is a join\n // —————————————————————-\n if( t1 != t2 ) {\n float angle = atan (t1.x*t2.y-t1.y*t2.x, t1.x*t2.x+t1.y*t2.y); // Angle needs recalculation for some reason\n vec2 t = normalize(t1+t2);\n vec2 o = vec2( + t.y, - t.x);\n\n if ( u_dash_index > 0.0 )\n {\n // Broken angle\n // —————————————————————-\n if( (abs(angle) > THETA) ) {\n position += v * w * o / cos(angle/2.0);\n float s = sign(angle);\n if( angle < 0.0 ) {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n if( v == 1.0 ) {\n position -= 2.0 * w * t1 / sin(angle);\n u -= 2.0 * w / sin(angle);\n }\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n if( v == 1.0 ) {\n position += 2.0 * w * t2 / sin(angle);\n u += 2.0*w / sin(angle);\n }\n }\n } else {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n if( v == -1.0 ) {\n position += 2.0 * w * t1 / sin(angle);\n u += 2.0 * w / sin(angle);\n }\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n if( v == -1.0 ) {\n position -= 2.0 * w * t2 / sin(angle);\n u -= 2.0*w / sin(angle);\n }\n }\n }\n // Continuous angle\n // ————————————————————\n } else {\n position += v * w * o / cos(angle/2.0);\n if( u == +1.0 ) u = v_segment.y;\n else u = v_segment.x;\n }\n }\n\n // Solid line\n // ——————————————————————–\n else\n {\n position.xy += v * w * o / cos(angle/2.0);\n if( angle < 0.0 ) {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n }\n } else {\n if( u == +1.0 ) {\n u = v_segment.y + v * w * tan(angle/2.0);\n } else {\n u = v_segment.x - v * w * tan(angle/2.0);\n }\n }\n }\n\n // This is a line start or end (t1 == t2)\n // ————————————————————————\n } else {\n position += v * w * o1;\n if( u == -1.0 ) {\n u = v_segment.x - w;\n position -= w * t1;\n } else {\n u = v_segment.y + w;\n position += w * t2;\n }\n }\n\n // Miter distance\n // ————————————————————————\n vec2 t;\n vec2 curr = a_position * abs_scale;\n if( a_texcoord.x < 0.0 ) {\n vec2 next = curr + t2*(v_segment.y-v_segment.x);\n\n rotate( t1, +v_angles.x/2.0, t);\n v_miter.x = signed_distance(curr, curr+t, position);\n\n rotate( t2, +v_angles.y/2.0, t);\n v_miter.y = signed_distance(next, next+t, position);\n } else {\n vec2 prev = curr - t1*(v_segment.y-v_segment.x);\n\n rotate( t1, -v_angles.x/2.0,t);\n v_miter.x = signed_distance(prev, prev+t, position);\n\n rotate( t2, -v_angles.y/2.0,t);\n v_miter.y = signed_distance(curr, curr+t, position);\n }\n\n if (!closed && v_segment.x <= 0.0) {\n v_miter.x = 1e10;\n }\n if (!closed && v_segment.y >= v_length)\n {\n v_miter.y = 1e10;\n }\n\n v_texcoord = vec2( u, v*w );\n\n // Calculate position in device coordinates. Note that we\n // already scaled with abs scale above.\n vec2 normpos = position * sign(u_scale_aspect);\n normpos += 0.5; // make up for Bokeh’s offset\n normpos /= u_canvas_size / u_pixel_ratio; // in 0..1\n gl_Position = vec4(normpos*2.0-1.0, 0.0, 1.0);\n gl_Position.y = -1.0;\n}\n"},n 363: function _(n,t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.fragment_shader="\nprecision mediump float;\n\nconst float PI = 3.14159265358979323846264;\nconst float THETA = 15.0 * 3.14159265358979323846264/180.0;\n\nuniform sampler2D u_dash_atlas;\n\nuniform vec2 u_linecaps;\nuniform float u_miter_limit;\nuniform float u_linejoin;\nuniform float u_antialias;\nuniform float u_dash_phase;\nuniform float u_dash_period;\nuniform float u_dash_index;\nuniform vec2 u_dash_caps;\nuniform float u_closed;\n\nvarying vec4 v_color;\nvarying vec2 v_segment;\nvarying vec2 v_angles;\nvarying vec2 v_texcoord;\nvarying vec2 v_miter;\nvarying float v_length;\nvarying float v_linewidth;\n\n// Compute distance to cap —————————————————-\nfloat cap( int type, float dx, float dy, float t, float linewidth )\n{\n float d = 0.0;\n dx = abs(dx);\n dy = abs(dy);\n if (type == 0) discard; // None\n else if (type == 1) d = sqrt(dx*dx+dy*dy); // Round\n else if (type == 3) d = (dx+abs(dy)); // Triangle in\n else if (type == 2) d = max(abs(dy),(t+dx-abs(dy))); // Triangle out\n else if (type == 4) d = max(dx,dy); // Square\n else if (type == 5) d = max(dx+t,dy); // Butt\n return d;\n}\n\n// Compute distance to join ————————————————-\nfloat join( in int type, in float d, in vec2 segment, in vec2 texcoord, in vec2 miter,\n in float linewidth )\n{\n // texcoord.x is distance from start\n // texcoord.y is distance from centerline\n // segment.x and y indicate the limits (as for texcoord.x) for this segment\n\n float dx = texcoord.x;\n\n // Round join\n if( type == 1 ) {\n if (dx < segment.x) {\n d = max(d,length( texcoord - vec2(segment.x,0.0)));\n //d = length( texcoord - vec2(segment.x,0.0));\n } else if (dx > segment.y) {\n d = max(d,length( texcoord - vec2(segment.y,0.0)));\n //d = length( texcoord - vec2(segment.y,0.0));\n }\n }\n // Bevel join\n else if ( type == 2 ) {\n if (dx < segment.x) {\n vec2 x = texcoord - vec2(segment.x,0.0);\n d = max(d, max(abs(x.x), abs(x.y)));\n\n } else if (dx > segment.y) {\n vec2 x = texcoord - vec2(segment.y,0.0);\n d = max(d, max(abs(x.x), abs(x.y)));\n }\n / Original code for bevel which does not work for us\n if( (dx < segment.x) || (dx > segment.y) )\n d = max(d, min(abs(x.x),abs(x.y)));\n /\n }\n\n return d;\n}\n\nvoid main()\n{\n // If color is fully transparent we just discard the fragment\n if( v_color.a <= 0.0 ) {\n discard;\n }\n\n // Test if dash pattern is the solid one (0)\n bool solid = (u_dash_index == 0.0);\n\n // Test if path is closed\n bool closed = (u_closed > 0.0);\n\n vec4 color = v_color;\n float dx = v_texcoord.x;\n float dy = v_texcoord.y;\n float t = v_linewidth/2.0-u_antialias;\n float width = 1.0; //v_linewidth; original code had dashes scale with line width, we do not\n float d = 0.0;\n\n vec2 linecaps = u_linecaps;\n vec2 dash_caps = u_dash_caps;\n float line_start = 0.0;\n float line_stop = v_length;\n\n // Apply miter limit; fragments too far into the miter are simply discarded\n if( (dx < v_segment.x) || (dx > v_segment.y) ) {\n float into_miter = max(v_segment.x - dx, dx - v_segment.y);\n if (into_miter > u_miter_limit*v_linewidth/2.0)\n discard;\n }\n\n // Solid line ————————————————————–\n if( solid ) {\n d = abs(dy);\n if( (!closed) && (dx < line_start) ) {\n d = cap( int(u_linecaps.x), abs(dx), abs(dy), t, v_linewidth );\n }\n else if( (!closed) && (dx > line_stop) ) {\n d = cap( int(u_linecaps.y), abs(dx)-line_stop, abs(dy), t, v_linewidth );\n }\n else {\n d = join( int(u_linejoin), abs(dy), v_segment, v_texcoord, v_miter, v_linewidth );\n }\n\n // Dash line ————————————————————–\n } else {\n float segment_start = v_segment.x;\n float segment_stop = v_segment.y;\n float segment_center= (segment_start+segment_stop)/2.0;\n float freq = u_dash_period*width;\n float u = mod( dx + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n float dash_center= tex.x * width;\n float dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n float dash_start = dx - u + _start;\n float dash_stop = dx - u + _stop;\n\n // Compute extents of the first dash (the one relative to v_segment.x)\n // Note: this could be computed in the vertex shader\n if( (dash_stop < segment_start) && (dash_caps.x != 5.0) ) {\n float u = mod(segment_start + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n dash_center= tex.x * width;\n //dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n dash_start = segment_start - u + _start;\n dash_stop = segment_start - u + _stop;\n }\n\n // Compute extents of the last dash (the one relatives to v_segment.y)\n // Note: This could be computed in the vertex shader\n else if( (dash_start > segment_stop) && (dash_caps.y != 5.0) ) {\n float u = mod(segment_stop + u_dash_phase*width, freq);\n vec4 tex = texture2D(u_dash_atlas, vec2(u/freq, u_dash_index)) * 255.0 -10.0; // conversion to int-like\n dash_center= tex.x * width;\n //dash_type = tex.y;\n float _start = tex.z * width;\n float _stop = tex.a * width;\n dash_start = segment_stop - u + _start;\n dash_stop = segment_stop - u + _stop;\n }\n\n // This test if the we are dealing with a discontinuous angle\n bool discontinuous = ((dx < segment_center) && abs(v_angles.x) > THETA) ||\n ((dx >= segment_center) && abs(v_angles.y) > THETA);\n //if( dx < line_start) discontinuous = false;\n //if( dx > line_stop) discontinuous = false;\n\n float d_join = join( int(u_linejoin), abs(dy),\n v_segment, v_texcoord, v_miter, v_linewidth );\n\n // When path is closed, we do not have room for linecaps, so we make room\n // by shortening the total length\n if (closed) {\n line_start += v_linewidth/2.0;\n line_stop -= v_linewidth/2.0;\n }\n\n // We also need to take antialias area into account\n //line_start += u_antialias;\n //line_stop -= u_antialias;\n\n // Check is dash stop is before line start\n if( dash_stop <= line_start ) {\n discard;\n }\n // Check is dash start is beyond line stop\n if( dash_start >= line_stop ) {\n discard;\n }\n\n // Check if current dash start is beyond segment stop\n if( discontinuous ) {\n // Dash start is beyond segment, we discard\n if( (dash_start > segment_stop) ) {\n discard;\n //gl_FragColor = vec4(1.0,0.0,0.0,.25); return;\n }\n\n // Dash stop is before segment, we discard\n if( (dash_stop < segment_start) ) {\n discard; //gl_FragColor = vec4(0.0,1.0,0.0,.25); return;\n }\n\n // Special case for round caps (nicer with this)\n if( dash_caps.x == 1.0 ) {\n if( (u > _stop) && (dash_stop > segment_stop ) && (abs(v_angles.y) < PI/2.0)) {\n discard;\n }\n }\n\n // Special case for round caps (nicer with this)\n if( dash_caps.y == 1.0 ) {\n if( (u < _start) && (dash_start < segment_start ) && (abs(v_angles.x) < PI/2.0)) {\n discard;\n }\n }\n\n // Special case for triangle caps (in & out) and square\n // We make sure the cap stop at crossing frontier\n if( (dash_caps.x != 1.0) && (dash_caps.x != 5.0) ) {\n if( (dash_start < segment_start ) && (abs(v_angles.x) < PI/2.0) ) {\n float a = v_angles.x/2.0;\n float x = (segment_start-dx)*cos(a) - dy*sin(a);\n float y = (segment_start-dx)*sin(a) + dy*cos(a);\n if( x > 0.0 ) discard;\n // We transform the cap into square to avoid holes\n dash_caps.x = 4.0;\n }\n }\n\n // Special case for triangle caps (in & out) and square\n // We make sure the cap stop at crossing frontier\n if( (dash_caps.y != 1.0) && (dash_caps.y != 5.0) ) {\n if( (dash_stop > segment_stop ) && (abs(v_angles.y) < PI/2.0) ) {\n float a = v_angles.y/2.0;\n float x = (dx-segment_stop)*cos(a) - dy*sin(a);\n float y = (dx-segment_stop)*sin(a) + dy*cos(a);\n if( x > 0.0 ) discard;\n // We transform the caps into square to avoid holes\n dash_caps.y = 4.0;\n }\n }\n }\n\n // Line cap at start\n if( (dx < line_start) && (dash_start < line_start) && (dash_stop > line_start) ) {\n d = cap( int(linecaps.x), dx-line_start, dy, t, v_linewidth);\n }\n // Line cap at stop\n else if( (dx > line_stop) && (dash_stop > line_stop) && (dash_start < line_stop) ) {\n d = cap( int(linecaps.y), dx-line_stop, dy, t, v_linewidth);\n }\n // Dash cap left - dash_type = -1, 0 or 1, but there may be roundoff errors\n else if( dash_type < -0.5 ) {\n d = cap( int(dash_caps.y), abs(u-dash_center), dy, t, v_linewidth);\n if( (dx > line_start) && (dx < line_stop) )\n d = max(d,d_join);\n }\n // Dash cap right\n else if( dash_type > 0.5 ) {\n d = cap( int(dash_caps.x), abs(dash_center-u), dy, t, v_linewidth);\n if( (dx > line_start) && (dx < line_stop) )\n d = max(d,d_join);\n }\n // Dash body (plain)\n else {// if( dash_type > -0.5 && dash_type < 0.5) {\n d = abs(dy);\n }\n\n // Line join\n if( (dx > line_start) && (dx < line_stop)) {\n if( (dx <= segment_start) && (dash_start <= segment_start)\n && (dash_stop >= segment_start) ) {\n d = d_join;\n // Antialias at outer border\n float angle = PI/2.+v_angles.x;\n float f = abs( (segment_start - dx)*cos(angle) - dy*sin(angle));\n d = max(f,d);\n }\n else if( (dx > segment_stop) && (dash_start <= segment_stop)\n && (dash_stop >= segment_stop) ) {\n d = d_join;\n // Antialias at outer border\n float angle = PI/2.+v_angles.y;\n float f = abs((dx - segment_stop)*cos(angle) - dy*sin(angle));\n d = max(f,d);\n }\n else if( dx < (segment_start - v_linewidth/2.)) {\n discard;\n }\n else if( dx > (segment_stop + v_linewidth/2.)) {\n discard;\n }\n }\n else if( dx < (segment_start - v_linewidth/2.)) {\n discard;\n }\n else if( dx > (segment_stop + v_linewidth/2.)) {\n discard;\n }\n }\n\n // Distance to border ——————————————————\n d = d - t;\n if( d < 0.0 ) {\n gl_FragColor = color;\n } else {\n d /= u_antialias;\n gl_FragColor = vec4(color.rgb, exp(-d*d)*color.a);\n }\n}\n"},n 364: function _(t,s,e){Object.defineProperty(e,"__esModule",{value:!0});const i=t(1),a=t(360),r=t(361),o=t(365),_=t(366),h=t(212),l=t(12),n=t(70);class g extends r.BaseGLGlyph{init(){const{gl:t}=this,s=o.vertex_shader,e=_.fragment_shader(this._marker_code);this.prog=new a.Program(t),this.prog.set_shaders(s,e),this.vbo_x=new a.VertexBuffer(t),this.prog.set_attribute("a_x","float",this.vbo_x),this.vbo_y=new a.VertexBuffer(t),this.prog.set_attribute("a_y","float",this.vbo_y),this.vbo_s=new a.VertexBuffer(t),this.prog.set_attribute("a_size","float",this.vbo_s),this.vbo_a=new a.VertexBuffer(t),this.prog.set_attribute("a_angle","float",this.vbo_a),this.vbo_linewidth=new a.VertexBuffer(t),this.vbo_fg_color=new a.VertexBuffer(t),this.vbo_bg_color=new a.VertexBuffer(t),this.index_buffer=new a.IndexBuffer(t)}draw(t,s,e){const i=s.glglyph,{nvertices:a}=i;if(i.data_changed){if(!isFinite(e.dx)||!isFinite(e.dy))return;i._baked_offset=[e.dx,e.dy],i._set_data(a),i.data_changed=!1}else this.glyph instanceof h.CircleView&&null!=this.glyph._radius&&(null==this.last_trans||e.sx!=this.last_trans.sx||e.sy!=this.last_trans.sy)&&(this.last_trans=e,this.vbo_s.set_data(0,new Float32Array(l.map(this.glyph.sradius,t=>2*t))));this.visuals_changed&&(this._set_visuals(a),this.visuals_changed=!1);const r=i._baked_offset;if(this.prog.set_uniform("u_pixel_ratio","float",[e.pixel_ratio]),this.prog.set_uniform("u_canvas_size","vec2",[e.width,e.height]),this.prog.set_uniform("u_offset","vec2",[e.dx-r[0],e.dy-r[1]]),this.prog.set_uniform("u_scale","vec2",[e.sx,e.sy]),this.prog.set_attribute("a_x","float",i.vbo_x),this.prog.set_attribute("a_y","float",i.vbo_y),this.prog.set_attribute("a_size","float",i.vbo_s),this.prog.set_attribute("a_angle","float",i.vbo_a),0!=t.length)if(t.length===a)this.prog.draw(this.gl.POINTS,[0,a]);else if(a<65535){const s=window.navigator.userAgent;s.indexOf("MSIE ")+s.indexOf("Trident/")+s.indexOf("Edge/")>0&&n.logger.warn("WebGL warning: IE is known to produce 1px sprites whith selections."),this.index_buffer.set_size(2*t.length),this.index_buffer.set_data(0,new Uint16Array(t)),this.prog.draw(this.gl.POINTS,this.index_buffer)}else{const s=64e3,e=[];for(let t=0,i=Math.ceil(a/s);t<i;t++)e.push([]);for(let i=0,a=t.length;i<a;i++){const a=t[i]%s;e[Math.floor(t[i]/s)].push(a)}for(let t=0,a=e.length;t<a;t++){const a=new Uint16Array(e[t]),r=t*s*4;0!==a.length&&(this.prog.set_attribute("a_x","float",i.vbo_x,0,r),this.prog.set_attribute("a_y","float",i.vbo_y,0,r),this.prog.set_attribute("a_size","float",i.vbo_s,0,r),this.prog.set_attribute("a_angle","float",i.vbo_a,0,r),this.vbo_linewidth.used&&this.prog.set_attribute("a_linewidth","float",this.vbo_linewidth,0,r),this.vbo_fg_color.used&&this.prog.set_attribute("a_fg_color","vec4",this.vbo_fg_color,0,4*r),this.vbo_bg_color.used&&this.prog.set_attribute("a_bg_color","vec4",this.vbo_bg_color,0,4*r),this.index_buffer.set_size(2*a.length),this.index_buffer.set_data(0,a),this.prog.draw(this.gl.POINTS,this.index_buffer))}}}_set_data(t){const s=4*t;this.vbo_x.set_size(s),this.vbo_y.set_size(s),this.vbo_a.set_size(s),this.vbo_s.set_size(s);const e=new Float64Array(this.glyph._x),i=new Float64Array(this.glyph._y);for(let s=0,a=t;s<a;s++)e[s]+=this._baked_offset[0],i[s]+=this._baked_offset[1];this.vbo_x.set_data(0,new Float32Array(e)),this.vbo_y.set_data(0,new Float32Array(i)),null!=this.glyph._angle&&this.vbo_a.set_data(0,new Float32Array(this.glyph._angle)),this.glyph instanceof h.CircleView&&null!=this.glyph._radius?this.vbo_s.set_data(0,new Float32Array(l.map(this.glyph.sradius,t=>2*t))):this.vbo_s.set_data(0,new Float32Array(this.glyph._size))}_set_visuals(t){r.attach_float(this.prog,this.vbo_linewidth,"a_linewidth",t,this.glyph.visuals.line,"line_width"),r.attach_color(this.prog,this.vbo_fg_color,"a_fg_color",t,this.glyph.visuals.line,"line"),r.attach_color(this.prog,this.vbo_bg_color,"a_bg_color",t,this.glyph.visuals.fill,"fill"),this.prog.set_uniform("u_antialias","float",[.8])}}function f(t){return class extends g{get _marker_code(){return t}}}e.MarkerGLGlyph=g,g.__name__="MarkerGLGlyph";const d=i.__importStar(t(366));e.CircleGLGlyph=f(d.circle),e.SquareGLGlyph=f(d.square),e.DiamondGLGlyph=f(d.diamond),e.TriangleGLGlyph=f(d.triangle),e.InvertedTriangleGLGlyph=f(d.invertedtriangle),e.HexGLGlyph=f(d.hex),e.CrossGLGlyph=f(d.cross),e.CircleCrossGLGlyph=f(d.circlecross),e.SquareCrossGLGlyph=f(d.squarecross),e.DiamondCrossGLGlyph=f(d.diamondcross),e.XGLGlyph=f(d.x),e.CircleXGLGlyph=f(d.circlex),e.SquareXGLGlyph=f(d.squarex),e.AsteriskGLGlyph=f(d.asterisk)},n 365: function _(n,i,a){Object.defineProperty(a,"__esModule",{value:!0}),a.vertex_shader="\nprecision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\n//\nuniform float u_pixel_ratio;\nuniform vec2 u_canvas_size;\nuniform vec2 u_offset;\nuniform vec2 u_scale;\nuniform float u_antialias;\n//\nattribute float a_x;\nattribute float a_y;\nattribute float a_size;\nattribute float a_angle; // in radians\nattribute float a_linewidth;\nattribute vec4 a_fg_color;\nattribute vec4 a_bg_color;\n//\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec4 v_fg_color;\nvarying vec4 v_bg_color;\nvarying vec2 v_rotation;\n\nvoid main (void)\n{\n v_size = a_size * u_pixel_ratio;\n v_linewidth = a_linewidth * u_pixel_ratio;\n v_fg_color = a_fg_color;\n v_bg_color = a_bg_color;\n v_rotation = vec2(cos(-a_angle), sin(-a_angle));\n // Calculate position - the -0.5 is to correct for canvas origin\n vec2 pos = (vec2(a_x, a_y) + u_offset) * u_scale; // in pixels\n pos += 0.5; // make up for Bokeh’s offset\n pos /= u_canvas_size / u_pixel_ratio; // in 0..1\n gl_Position = vec4(pos*2.0-1.0, 0.0, 1.0);\n gl_Position.y *= -1.0;\n gl_PointSize = SQRT_2 * v_size + 2.0 * (v_linewidth + 1.5*u_antialias);\n}\n"},n 366: function _(a,n,s){Object.defineProperty(s,"__esModule",{value:!0}),s.fragment_shader=a=>`\nprecision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\nconst float PI = 3.14159265358979323846264;\n//\nuniform float u_antialias;\n//\nvarying vec4 v_fg_color;\nvarying vec4 v_bg_color;\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec2 v_rotation;\n\n${a}\n\nvec4 outline(float distance, float linewidth, float antialias, vec4 fg_color, vec4 bg_color)\n{\n vec4 frag_color;\n float t = linewidth/2.0 - antialias;\n float signed_distance = distance;\n float border_distance = abs(signed_distance) - t;\n float alpha = border_distance/antialias;\n alpha = exp(-alpha*alpha);\n\n // If fg alpha is zero, it probably means no outline. To avoid a dark outline\n // shining through due to aa, we set the fg color to the bg color. Avoid if (i.e. branching).\n float select = float(bool(fg_color.a));\n fg_color.rgb = select * fg_color.rgb + (1.0 - select) * bg_color.rgb;\n // Similarly, if we want a transparent bg\n select = float(bool(bg_color.a));\n bg_color.rgb = select * bg_color.rgb + (1.0 - select) * fg_color.rgb;\n\n if( border_distance < 0.0)\n frag_color = fg_color;\n else if( signed_distance < 0.0 ) {\n frag_color = mix(bg_color, fg_color, sqrt(alpha));\n } else {\n if( abs(signed_distance) < (linewidth/2.0 + antialias) ) {\n frag_color = vec4(fg_color.rgb, fg_color.a * alpha);\n } else {\n discard;\n }\n }\n return frag_color;\n}\n\nvoid main()\n{\n vec2 P = gl_PointCoord.xy - vec2(0.5, 0.5);\n P = vec2(v_rotation.x*P.x - v_rotation.y*P.y,\n v_rotation.y*P.x + v_rotation.x*P.y);\n float point_size = SQRT_2*v_size + 2.0 * (v_linewidth + 1.5*u_antialias);\n float distance = marker(P*point_size, v_size);\n gl_FragColor = outline(distance, v_linewidth, u_antialias, v_fg_color, v_bg_color);\n //gl_FragColor.rgb *= gl_FragColor.a; // pre-multiply alpha\n}\n`,s.circle="\nfloat marker(vec2 P, float size)\n{\n return length(P) - size/2.0;\n}\n",s.square="\nfloat marker(vec2 P, float size)\n{\n return max(abs(P.x), abs(P.y)) - size/2.0;\n}\n",s.diamond="\nfloat marker(vec2 P, float size)\n{\n float x = SQRT_2 / 2.0 * (P.x * 1.5 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.5 + P.y);\n float r1 = max(abs(x), abs(y)) - size / (2.0 * SQRT_2);\n return r1 / SQRT_2;\n}\n",s.hex="\nfloat marker(vec2 P, float size)\n{\n vec2 q = abs(P);\n return max(q.y * 0.57735 + q.x - 1.0 * size/2.0, q.y - 0.866 * size/2.0);\n}\n",s.triangle="\nfloat marker(vec2 P, float size)\n{\n P.y -= size * 0.3;\n float x = SQRT_2 / 2.0 * (P.x * 1.7 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.7 + P.y);\n float r1 = max(abs(x), abs(y)) - size / 1.6;\n float r2 = P.y;\n return max(r1 / SQRT_2, r2); // Intersect diamond with rectangle\n}\n",s.invertedtriangle="\nfloat marker(vec2 P, float size)\n{\n P.y += size * 0.3;\n float x = SQRT_2 / 2.0 * (P.x * 1.7 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.7 + P.y);\n float r1 = max(abs(x), abs(y)) - size / 1.6;\n float r2 = - P.y;\n return max(r1 / SQRT_2, r2); // Intersect diamond with rectangle\n}\n",s.cross=’\nfloat marker(vec2 P, float size)\n{\n float square = max(abs(P.x), abs(P.y)) - size / 2.5; // 2.5 is a tweak\n float cross = min(abs(P.x), abs(P.y)) - size / 100.0; // bit of "width" for aa\n return max(square, cross);\n}\n’,s.circlecross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float circle = length(P) - size/2.0;\n float c1 = max(circle, s1);\n float c2 = max(circle, s2);\n float c3 = max(circle, s3);\n float c4 = max(circle, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.squarecross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float square = max(abs(P.x), abs(P.y)) - size/2.0;\n float c1 = max(square, s1);\n float c2 = max(square, s2);\n float c3 = max(square, s3);\n float c4 = max(square, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.diamondcross="\nfloat marker(vec2 P, float size)\n{\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(P.x - qs), abs(P.y - qs)) - qs;\n float s2 = max(abs(P.x + qs), abs(P.y - qs)) - qs;\n float s3 = max(abs(P.x - qs), abs(P.y + qs)) - qs;\n float s4 = max(abs(P.x + qs), abs(P.y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float x = SQRT_2 / 2.0 * (P.x * 1.5 - P.y);\n float y = SQRT_2 / 2.0 * (P.x * 1.5 + P.y);\n float diamond = max(abs(x), abs(y)) - size / (2.0 * SQRT_2);\n diamond /= SQRT_2;\n float c1 = max(diamond, s1);\n float c2 = max(diamond, s2);\n float c3 = max(diamond, s3);\n float c4 = max(diamond, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.x=’\nfloat marker(vec2 P, float size)\n{\n float circle = length(P) - size / 1.6;\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n return max(circle, X);\n}\n’,s.circlex=’\nfloat marker(vec2 P, float size)\n{\n float x = P.x - P.y;\n float y = P.x + P.y;\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(x - qs), abs(y - qs)) - qs;\n float s2 = max(abs(x + qs), abs(y - qs)) - qs;\n float s3 = max(abs(x - qs), abs(y + qs)) - qs;\n float s4 = max(abs(x + qs), abs(y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float circle = length(P) - size/2.0;\n float c1 = max(circle, s1);\n float c2 = max(circle, s2);\n float c3 = max(circle, s3);\n float c4 = max(circle, s4);\n // Union\n float almost = min(min(min(c1, c2), c3), c4);\n // In this case, the X is also outside of the main shape\n float Xmask = length(P) - size / 1.6; // a circle\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n return min(max(X, Xmask), almost);\n}\n’,s.squarex="\nfloat marker(vec2 P, float size)\n{\n float x = P.x - P.y;\n float y = P.x + P.y;\n // Define quadrants\n float qs = size / 2.0; // quadrant size\n float s1 = max(abs(x - qs), abs(y - qs)) - qs;\n float s2 = max(abs(x + qs), abs(y - qs)) - qs;\n float s3 = max(abs(x - qs), abs(y + qs)) - qs;\n float s4 = max(abs(x + qs), abs(y + qs)) - qs;\n // Intersect main shape with quadrants (to form cross)\n float square = max(abs(P.x), abs(P.y)) - size/2.0;\n float c1 = max(square, s1);\n float c2 = max(square, s2);\n float c3 = max(square, s3);\n float c4 = max(square, s4);\n // Union\n return min(min(min(c1, c2), c3), c4);\n}\n",s.asterisk=’\nfloat marker(vec2 P, float size)\n{\n // Masks\n float diamond = max(abs(SQRT_2 / 2.0 * (P.x - P.y)), abs(SQRT_2 / 2.0 * (P.x + P.y))) - size / (2.0 * SQRT_2);\n float square = max(abs(P.x), abs(P.y)) - size / (2.0 * SQRT_2);\n // Shapes\n float X = min(abs(P.x - P.y), abs(P.x + P.y)) - size / 100.0; // bit of "width" for aa\n float cross = min(abs(P.x), abs(P.y)) - size / 100.0; // bit of "width" for aa\n // Result is union of masked shapes\n return min(max(X, diamond), max(cross, square));\n}\n’},n }, 357, {"models/glyphs/webgl/main":357,"models/glyphs/webgl/index":358,"models/glyphs/webgl/line":359,"models/glyphs/webgl/base":361,"models/glyphs/webgl/line.vert":362,"models/glyphs/webgl/line.frag":363,"models/glyphs/webgl/markers":364,"models/glyphs/webgl/markers.vert":365,"models/glyphs/webgl/markers.frag":366}, {});n })nnn / END bokeh-gl.min.js /n },n n function(Bokeh) {n Bokeh.set_log_level("info");n },n n function(Bokeh) {n / BEGIN panel.min.js /n /!n * Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributorsn * All rights reserved.n * n * Redistribution and use in source and binary forms, with or without modification,n * are permitted provided that the following conditions are met:n * n * Redistributions of source code must retain the above copyright notice,n * this list of conditions and the following disclaimer.n * n * Redistributions in binary form must reproduce the above copyright notice,n * this list of conditions and the following disclaimer in the documentationn * and/or other materials provided with the distribution.n * n * Neither the name of Anaconda nor the names of any contributorsn * may be used to endorse or promote products derived from this softwaren * without specific prior written permission.n * n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEn * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BEn * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFn * THE POSSIBILITY OF SUCH DAMAGE.n /n (function(root, factory) {n factory(root["Bokeh"]);n })(this, function(Bokeh) {n var define;n return (function(modules, entry, aliases, externals) {n if (Bokeh != null) {n return Bokeh.register_plugin(modules, entry, aliases, externals);n } else {n throw new Error("Cannot find Bokeh. You have to load it prior to loading plugins.");n }n })n ({n "4e90918c0a": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const s=e("tslib").__importStar(e("22ae8fda70"));o.Panel=s,e("@bokehjs/base").register_models(s)},n "22ae8fda70": function _(a,e,r){Object.defineProperty(r,"__esModule",{value:!0});const o=a("tslib");var t=a("3343056bd8");r.AcePlot=t.AcePlot;var d=a("66d52165db");r.Audio=d.Audio;var l=a("71a9759436");r.CommManager=l.CommManager;var b=a("f6b9b1d914");r.DeckGLPlot=b.DeckGLPlot;var v=a("ae707e931d");r.HTML=v.HTML;var c=a("9ba5b8422a");r.JSON=c.JSON;var P=a("a94e371ba4");r.FileDownload=P.FileDownload;var f=a("7b859fb3cf");r.KaTeX=f.KaTeX;var i=a("0c21036737");r.MathJax=i.MathJax;var n=a("000f20fdd3");r.Player=n.Player;var s=a("2363c12dd6");r.PlotlyPlot=s.PlotlyPlot;var M=a("76307e5afa");r.Progress=M.Progress;var S=a("38b2bc9574");r.State=S.State;var g=a("90d1f929bd");r.VegaPlot=g.VegaPlot;var m=a("b0c3e9e9c2");r.Video=m.Video;var V=a("3c7145a2fa");r.VideoStream=V.VideoStream,o.__exportStar(a("ecfbb965eb"),r)},n "3343056bd8": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),n=e("@bokehjs/core/dom"),a=e("ba20932521");class d extends a.PanelHTMLBoxView{initialize(){super.initialize(),this._ace=window.ace,this._container=n.div({id:"_"+Math.random().toString(36).substr(2,9),style:{width:"100%",height:"100%"}})}connect_signals(){super.connect_signals(),this.connect(this.model.properties.code.change,()=>this._update_code_from_model()),this.connect(this.model.properties.theme.change,()=>this._update_theme()),this.connect(this.model.properties.language.change,()=>this._update_language()),this.connect(this.model.properties.annotations.change,()=>this._add_annotations()),this.connect(this.model.properties.readonly.change,()=>{this._editor.setReadOnly(this.model.readonly)})}render(){super.render(),this._container!==this.el.childNodes[0]&&this.el.appendChild(this._container),this._container.textContent=this.model.code,this._editor=this._ace.edit(this._container.id),this._editor.setTheme("ace/theme/"+`${this.model.theme}`),this._editor.session.setMode("ace/mode/"+`${this.model.language}`),this._editor.setReadOnly(this.model.readonly),this._langTools=this._ace.require("ace/ext/language_tools"),this._editor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,fontFamily:"monospace"}),this._editor.on("change",()=>this._update_code_from_editor())}_update_code_from_model(){this._editor&&this._editor.getValue()!=this.model.code&&this._editor.setValue(this.model.code)}_update_code_from_editor(){this._editor.getValue()!=this.model.code&&(this.model.code=this._editor.getValue())}_update_theme(){this._editor.setTheme("ace/theme/"+`${this.model.theme}`)}_update_language(){this._editor.session.setMode("ace/mode/"+`${this.model.language}`)}_add_annotations(){this._editor.session.setAnnotations(this.model.annotations)}after_layout(){super.after_layout(),this._editor.resize()}}o.AcePlotView=d,d.__name__="AcePlotView";class h extends s.HTMLBox{constructor(e){super(e)}static init_AcePlot(){this.prototype.default_view=d,this.define({code:[i.String],language:[i.String,"python"],theme:[i.String,"chrome"],annotations:[i.Array,[]],readonly:[i.Boolean,!1]}),this.override({height:300,width:300})}}o.AcePlot=h,h.__name__="AcePlot",h.__module__="panel.models.ace",h.init_AcePlot()},n "ba20932521": function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const s=e("@bokehjs/core/layout/layoutable"),h=e("@bokehjs/core/layout/types"),o=e("@bokehjs/core/dom"),_=e("@bokehjs/models/widgets/markup"),n=e("@bokehjs/models/layouts/html_box");function a(e,i){let t=null!=i.width?"fixed":"fit",s=null!=i.height?"fixed":"fit";const{sizing_mode:h}=i;if(null!=h)if("fixed"==h)t=s="fixed";else if("stretch_both"==h)t=s="max";else if("stretch_width"==h)t="max";else if("stretch_height"==h)s="max";else switch(h){case"scale_width":t="max",s="min";break;case"scale_height":t="min",s="max";break;case"scale_both":t="max",s="max";break;default:throw new Error("unreachable")}"fixed"==t&&i.width?e.style.width=i.width+"px":"max"==t&&(e.style.width="100%"),"fixed"==s&&i.height?e.style.height=i.height+"px":"max"==s&&(e.style.height="100%")}t.set_size=a;class d extends s.Layoutable{constructor(e,i,t){super(),this.el=e,this.sizing_mode=i,this.changed=t,this._cache={},this._cache_count={}}_measure(e){const i=[e.width,e.height,this.sizing_mode].toString(),t=this.changed&&"fixed"!=this.sizing_mode&&null!=this.sizing_mode?1:0;if(i in this._cache&&this._cache_count[i]>=t)return this._cache_count[i]=this._cache_count[i]+1,this._cache[i];const s=new h.Sizeable(e).bounded_to(this.sizing.size),_=o.sized(this.el,s,()=>{const e=new h.Sizeable(o.content_size(this.el)),{border:i,padding:t}=o.extents(this.el);return e.grow_by(i).grow_by(t).map(Math.ceil)});return this._cache[i]=_,this._cache_count[i]=0,_}}t.CachedVariadicBox=d,d.__name__="CachedVariadicBox";class l extends _.MarkupView{_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new d(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}render(){super.render(),a(this.markup_el,this.model)}}t.PanelMarkupView=l,l.__name__="PanelMarkupView";class c extends n.HTMLBoxView{_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new d(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}render(){super.render(),a(this.el,this.model)}}t.PanelHTMLBoxView=c,c.__name__="PanelHTMLBoxView"},n "66d52165db": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),l=e("ba20932521");class d extends l.PanelHTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,()=>this.set_loop()),this.connect(this.model.properties.paused.change,()=>this.set_paused()),this.connect(this.model.properties.time.change,()=>this.set_time()),this.connect(this.model.properties.value.change,()=>this.set_value()),this.connect(this.model.properties.volume.change,()=>this.set_volume())}render(){super.render(),this.audioEl=document.createElement("audio"),this.audioEl.controls=!0,this.audioEl.src=this.model.value,this.audioEl.currentTime=this.model.time,this.audioEl.loop=this.model.loop,null!=this.model.volume?this.audioEl.volume=this.model.volume/100:this.model.volume=100*this.audioEl.volume,this.audioEl.onpause=()=>this.model.paused=!0,this.audioEl.onplay=()=>this.model.paused=!1,this.audioEl.ontimeupdate=()=>this.update_time(this),this.audioEl.onvolumechange=()=>this.update_volume(this),this.el.appendChild(this.audioEl),this.model.paused||this.audioEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.audioEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.audioEl.volume)}set_loop(){this.audioEl.loop=this.model.loop}set_paused(){!this.audioEl.paused&&this.model.paused&&this.audioEl.pause(),this.audioEl.paused&&!this.model.paused&&this.audioEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.audioEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.audioEl.currentTime=this.model.time)}set_value(){this.audioEl.src=this.model.value}}i.AudioView=d,d.__name__="AudioView";class u extends s.HTMLBox{constructor(e){super(e)}static init_Audio(){this.prototype.default_view=d,this.define({loop:[o.Boolean,!1],paused:[o.Boolean,!0],time:[o.Number,0],throttle:[o.Number,250],value:[o.Any,""],volume:[o.Number,null]})}}i.Audio=u,u.__name__="Audio",u.__module__="panel.models.widgets",u.init_Audio()},n "71a9759436": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),i=e("@bokehjs/document"),s=e("@bokehjs/core/view"),c=e("@bokehjs/model"),_=e("@bokehjs/protocol/message"),l=e("@bokehjs/protocol/receiver");class r extends s.View{renderTo(){}}n.CommManagerView=r,r.__name__="CommManagerView";class a extends c.Model{constructor(e){super(e),this._document_listener=e=>this._document_changed(e),this._receiver=new l.Receiver,this._event_buffer=[],this._blocked=!1,this._timeout=Date.now(),null!=window.PyViz&&window.PyViz.comm_manager?(this.ns=window.PyViz,this.ns.comm_manager.register_target(this.plot_id,this.comm_id,e=>this.msg_handler(e)),this._client_comm=this.ns.comm_manager.get_client_comm(this.plot_id,this.client_comm_id,e=>this.on_ack(e))):console.log("Could not find comm manager on window.PyViz, ensure the extension is loaded.")}_doc_attached(){super._doc_attached(),null!=this.document&&this.document.on_change(this._document_listener)}_document_changed(e){e.setter_id!==this.id&&(e instanceof i.ModelChangedEvent&&!(e.attr in e.model.serializable_attributes())||(this._event_buffer.unshift(e),(!this._blocked||Date.now()>this._timeout)&&(setTimeout(()=>this.process_events(),this.debounce),this._blocked=!0,this._timeout=Date.now()+this.timeout)))}process_events(){if(null==this.document||null==this._client_comm)return;const e=_.Message.create("PATCH-DOC",{},this.document.create_json_patch(this._event_buffer));this._client_comm.send(e),this._event_buffer=[]}on_ack(e){const t=e.metadata;this._event_buffer.length?(this.process_events(),this._blocked=!0,this._timeout=Date.now()+this.timeout):this._blocked=!1,this._event_buffer=[],"Ready"==t.msg_type&&t.content?console.log("Python callback returned following output:",t.content):"Error"==t.msg_type&&console.log("Python failed with the following traceback:",t.traceback)}msg_handler(e){const t=e.metadata,n=e.buffers,o=e.content.data,i=this.plot_id;if("Ready"==t.msg_type)t.content?console.log("Python callback returned following output:",t.content):"Error"==t.msg_type&&console.log("Python failed with the following traceback:",t.traceback);else if(null!=i){let e=null;if(i in this.ns.plot_index&&null!=this.ns.plot_index[i]?e=this.ns.plot_index[i]:void 0!==window.Bokeh&&i in window.Bokeh.index&&(e=window.Bokeh.index[i]),null==e)return;null!=n&&n.length>0?this._receiver.consume(n[0].buffer):this._receiver.consume(o);const t=this._receiver.message;null!=t&&Object.keys(t.content).length>0&&null!=this.document&&this.document.apply_json_patch(t.content,t.buffers,this.id)}}static init_CommManager(){this.prototype.default_view=r,this.define({plot_id:[o.String,null],comm_id:[o.String,null],client_comm_id:[o.String,null],timeout:[o.Number,5e3],debounce:[o.Number,50]})}}n.CommManager=a,a.__name__="CommManager",a.__module__="panel.models.comm_manager",a.init_CommManager()},n "f6b9b1d914": function _(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});const i=e("tslib"),a=e("@bokehjs/core/dom"),s=i.__importStar(e("@bokehjs/core/properties")),n=e("@bokehjs/models/layouts/html_box"),c=e("ba20932521"),r=e("064eac2866"),d=i.__importDefault(e("093eb75864")),l=window.deck,_=window.mapboxgl,h=window.loaders;function p(){const e={},t=Object.keys(l).filter(e=>e.charAt(0)===e.charAt(0).toUpperCase());for(const o of t)e[o]=l[o];return e}class u extends c.PanelHTMLBoxView{connect_signals(){super.connect_signals();const{data:e,mapbox_api_key:t,tooltip:o,layers:i,initialViewState:a,data_sources:s}=this.model.properties;this.on_change([t,o],()=>this.render()),this.on_change([e,a],()=>this.updateDeck()),this.on_change([i],()=>this._update_layers()),this.on_change([s],()=>this._connect_sources(!0)),this._layer_map={},this._connected=[],this._connect_sources()}_update_layers(){this._layer_map={},this._update_data(!0)}_connect_sources(e=!1){for(const e of this.model.data_sources)this._connected.indexOf(e)<0&&(this.connect(e.properties.data.change,()=>this._update_data(!0)),this._connected.push(e));this._update_data(e)}initialize(){if(super.initialize(),l.JSONConverter){const{CSVLoader:e,Tile3DLoader:t}=h;h.registerLoaders([t,e]);const o={classes:p(),enumerations:{COORDINATE_SYSTEM:l.COORDINATE_SYSTEM,GL:d.default},constants:{Tile3DLoader:t}};this.jsonConverter=new l.JSONConverter({configuration:o})}}_update_data(e=!0){let t=0;for(const e of this.model.layers){let o;if(t+=1,t-1 in this._layer_map)o=this.model.data_sources[this._layer_map[t-1]];else{if("number"!=typeof e.data)continue;this._layer_map[t-1]=e.data,o=this.model.data_sources[e.data]}const i=[],a=o.columns();for(let e=0;e<o.data[a[0]].length;e++){const t={};for(const i of a){const a=o._shapes[i];void 0!==a&&a.length>1&&"number"==typeof a[0]?t[i]=o.data[i].slice(e*a[1],e*a[1]+a[1]):t[i]=o.data[i][e]}i.push(t)}e.data=i}e&&this.updateDeck()}_on_click_event(e){const t={coordinate:e.coordinate,lngLat:e.lngLat,index:e.index};this.model.clickState=t}_on_hover_event(e){const t={coordinate:e.coordinate,lngLat:e.lngLat,index:e.index};this.model.hoverState=t}_on_viewState_event(e){this.model.viewState=e.viewState}getData(){return Object.assign(Object.assign({},this.model.data),{layers:this.model.layers,initialViewState:this.model.initialViewState,onViewStateChange:e=>this._on_viewState_event(e),onClick:e=>this._on_click_event(e),onHover:e=>this._on_hover_event(e)})}updateDeck(){if(!this.deckGL)return void this.render();const e=this.getData();if(l.updateDeck)l.updateDeck(e,this.deckGL);else{const t=this.jsonConverter.convert(e);this.deckGL.setProps(t)}}createDeck({mapboxApiKey:e,container:t,jsonInput:o,tooltip:i}){let a;try{const s=this.jsonConverter.convert(o),n=r.makeTooltip(i);a=new l.DeckGL(Object.assign(Object.assign({},s),{map:_,mapboxApiAccessToken:e,container:t,getTooltip:n}))}catch(e){console.error(e)}return a}render(){super.render();const e=a.div({class:"deckgl"});c.set_size(e,this.model);const t=this.model.mapbox_api_key,o=this.model.tooltip,i=this.getData();l.createDeck?this.deckGL=l.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}):this.deckGL=this.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}),this.el.appendChild(e)}}o.DeckGLPlotView=u,u.__name__="DeckGLPlotView";class m extends n.HTMLBox{constructor(e){super(e)}static init_DeckGLPlot(){this.prototype.default_view=u,this.define({data:[s.Any],data_sources:[s.Array,[]],clickState:[s.Any],hoverState:[s.Any],initialViewState:[s.Any],layers:[s.Array,[]],mapbox_api_key:[s.String],tooltip:[s.Any],viewState:[s.Any]}),this.override({height:400,width:600})}}o.DeckGLPlot=m,m.__name__="DeckGLPlot",m.__module__="panel.models.deckgl",m.init_DeckGLPlot()},n "064eac2866": function _(e,t,n){n /n This file was adapted from https://github.com/uber/deck.gl/ the LICENSEn below is preserved to comply with the original license.n n Copyright (c) 2015 - 2017 Uber Technologies, Inc.n n Permission is hereby granted, free of charge, to any person obtaining a copyn of this software and associated documentation files (the "Software"), to dealn in the Software without restriction, including without limitation the rightsn to use, copy, modify, merge, publish, distribute, sublicense, and/or selln copies of the Software, and to permit persons to whom the Software isn furnished to do so, subject to the following conditions:n n The above copyright notice and this permission notice shall be included inn all copies or substantial portions of the Software.n n THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORn IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEn AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERn LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INn THE SOFTWARE.n /n let i,l;Object.defineProperty(n,"__esModule",{value:!0});const o={fontFamily:’"Helvetica Neue", Helvetica, Arial, sans-serif’,display:"flex",flex:"wrap",maxWidth:"500px",flexDirection:"column",zIndex:2};function r(){return document.createElement("div")}function s(e){if(!e.picked)return null;if(e.object===i)return l;const t={html:a(e.object),style:o};return l=t,i=e.object,t}n.getTooltipDefault=s;const c=new Set(["position","index"]);function a(e){const t=r();for(const n in e){if(c.has(n))continue;const i=r();i.className="header",i.textContent=n;const l=r();l.className="value",l.textContent=u(e[n]);const o=r();f(o,i,l),o.appendChild(i),o.appendChild(l),t.appendChild(o)}return t.innerHTML}function f(e,t,n){Object.assign(t.style,{fontWeight:700,marginRight:"10px",flex:"1 1 0%"}),Object.assign(n.style,{flex:"none",maxWidth:"250px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Object.assign(e.style,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"stretch"})}function u(e){let t;if(Array.isArray(e)&&e.length>4)t=`Array<${e.length}>`;else if("string"==typeof e)t=e;else if("number"==typeof e)t=String(e);else try{t=JSON.stringify(e)}catch(e){t="<Non-Serializable Object>"}return t.length>50&&(t=t.slice(0,50)),t}function p(e,t){let n=e;for(const e in t)n=n.replace(`{${e}}`,t[e]);return n}n.tabularize=a,n.toText=u,n.substituteIn=p,n.makeTooltip=function(e){return e?e.html||e.text?t=>{if(!t.picked)return null;const n={style:e.style||o};return e.html?n.html=p(e.html,t.object):n.text=p(e.text,t.object),n}:s:null}},n "093eb75864": function _(E,_,R){_.exports={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,FUNC_ADD:32774,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,BLEND_COLOR:32773,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,VENDOR:7936,RENDERER:7937,VERSION:7938,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,BROWSER_DEFAULT_WEBGL:37444,STATIC_DRAW:35044,STREAM_DRAW:35040,DYNAMIC_DRAW:35048,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,CULL_FACE:2884,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,BLEND:3042,DEPTH_TEST:2929,DITHER:3024,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,SCISSOR_TEST:3089,STENCIL_TEST:2960,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CONTEXT_LOST_WEBGL:37442,CW:2304,CCW:2305,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,COMPILE_STATUS:35713,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_ATTRIBUTES:35721,ACTIVE_UNIFORMS:35718,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,ALWAYS:519,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,GEQUAL:518,NOTEQUAL:517,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,TEXTURE_WIDTH:4096,TEXTURE_HEIGHT:4097,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,MAX_3D_TEXTURE_SIZE:32883,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,MAX_TEXTURE_LOD_BIAS:34045,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,RASTERIZER_DISCARD:35977,VERTEX_ARRAY_BINDING:34229,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,MAX_ELEMENT_INDEX:36203,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,RGB9_E5:35901,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2UI:36975,TEXTURE_IMMUTABLE_FORMAT:37167,TEXTURE_IMMUTABLE_LEVELS:33503,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,UNSIGNED_INT_24_8:34042,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,INT_2_10_10_10_REV:36255,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,MAX_SAMPLES:36183,SAMPLER_BINDING:35097,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,UNSIGNED_NORMALIZED:35863,SIGNED_NORMALIZED:36764,VERTEX_ATTRIB_ARRAY_INTEGER:35069,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,DEPTH24_STENCIL8:35056,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,COLOR:6144,DEPTH:6145,STENCIL:6146,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,INVALID_INDEX:4294967295,TIMEOUT_IGNORED:-1,MAX_CLIENT_WAIT_TIMEOUT_WEBGL:37447,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},n "ae707e931d": function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("@bokehjs/models/widgets/markup"),a=e("ba20932521");class s extends a.PanelMarkupView{render(){var e;super.render();const t=(e=this.model.text,(new DOMParser).parseFromString(e,"text/html").documentElement.textContent)||this.model.text;t?(this.markup_el.innerHTML=t,Array.from(this.markup_el.querySelectorAll("script")).forEach(e=>{const t=document.createElement("script");Array.from(e.attributes).forEach(e=>t.setAttribute(e.name,e.value)),t.appendChild(document.createTextNode(e.innerHTML)),e.parentNode&&e.parentNode.replaceChild(t,e)})):this.markup_el.innerHTML=""}}r.HTMLView=s,s.__name__="HTMLView";class o extends n.Markup{constructor(e){super(e)}static init_HTML(){this.prototype.default_view=s}}r.HTML=o,o.__name__="HTML",o.__module__="panel.models.markup",o.init_HTML()},n "9ba5b8422a": function _(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const s=e("tslib"),i=s.__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/widgets/markup"),n=s.__importDefault(e("18bba7b7e1")),a=e("ba20932521");class d extends a.PanelMarkupView{render(){super.render();const e=this.model.text.replace(/(\r\n|\n|\r)/gm,"").replace("’",’"’);let t;try{t=window.JSON.parse(e)}catch(e){return void(this.markup_el.innerHTML="<b>Invalid JSON:</b> "+e.toString())}const r={hoverPreviewEnabled:this.model.hover_preview,theme:this.model.theme},s=new n.default(t,this.model.depth,r).render();let i="border-radius: 5px; padding: 10px;";"dark"==this.model.theme?s.style.cssText="background-color: rgb(30, 30, 30);"+i:s.style.cssText=i,this.markup_el.append(s)}}r.JSONView=d,d.__name__="JSONView";const l=["dark","light"];class p extends o.Markup{constructor(e){super(e)}static init_JSON(){this.prototype.default_view=d,this.define({depth:[i.Number,1],hover_preview:[i.Boolean,!1],theme:[i.Enum(l),"dark"]})}}r.JSON=p,p.__name__="JSON",p.__module__="panel.models.markup",p.init_JSON()},n "18bba7b7e1": function _(t,e,r){function n(t){return null===t?"null":typeof t}function o(t){return!!t&&"object"==typeof t}function i(t){if(void 0===t)return"";if(null===t)return"Object";if("object"==typeof t&&!t.constructor)return"Object";var e=/function ([^(])/.exec(t.constructor.toString());return e&&e.length>1?e[1]:""}function s(t,e,r){return"null"===t||"undefined"===t?t:("string"!==t&&"stringifiable"!==t||(r=’"’+r.replace(/"/g,’\\"’)+’"’),"function"===t?e.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":r)}function a(t){var e="";return o(t)?(e=i(t),Array.isArray(t)&&(e+="["+t.length+"]")):e=s(n(t),t,t),e}function f(t){return"json-formatter-"+t}function m(t,e,r){var n=document.createElement(t);return e&&n.classList.add(f(e)),void 0!==r&&(r instanceof Node?n.appendChild(r):n.appendChild(document.createTextNode(String(r)))),n}Object.defineProperty(r,"__esModule",{value:!0}),function(t){if("undefined"!=typeof window){var e=document.createElement("style");e.setAttribute("media","screen"),e.innerHTML=t,document.head.appendChild(e)}}(‘.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n’);var l=/(^\d{1,4}[\.|\\/|-]\\d{1,2}[\\.|\\/|-]\\d{1,4})(\\s*(?:0?[1-9]:[0-5]|1(?=[012])\\d:[0-5])\\d\\s*[ap]m)?$/,d=/\\d{2}:\\d{2}:\\d{2} GMT-\\d{4}/,c=/\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/,p=window.requestAnimationFrame||function(t){return t(),0},j={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null},h=function(){function t(t,e,r,n){void 0===e&&(e=1),void 0===r&&(r=j),this.json=t,this.open=e,this.config=r,this.key=n,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=j.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=j.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=j.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=j.useToJSON),\"\"===this.key&&(this.key='\"\"')}return Object.defineProperty(t.prototype,\"isOpen\",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(t){this._isOpen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isDate\",{get:function(){return this.json instanceof Date||"string"===this.type&&(l.test(this.json)||c.test(this.json)||d.test(this.json))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUrl",{get:function(){return"string"===this.type&&0===this.json.indexOf("http")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isArray",{get:function(){return Array.isArray(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isObject",{get:function(){return o(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyObject",{get:function(){return!this.keys.length&&!this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useToJSON",{get:function(){return this.config.useToJSON&&"stringifiable"===this.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasKey",{get:function(){return void 0!==this.key},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"constructorName",{get:function(){return i(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":n(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keys",{get:function(){if(this.isObject){var t=Object.keys(this.json);return!this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return[]},enumerable:!0,configurable:!0}),t.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(f("open")))},t.prototype.openAtDepth=function(t){void 0===t&&(t=1),t<0||(this.open=t,this.isOpen=0!==t,this.element&&(this.removeChildren(!1),0===t?this.element.classList.remove(f("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(f("open")))))},t.prototype.getInlinepreview=function(){var t=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?"Array["+this.json.length+"]":"["+this.json.map(a).join(", ")+"]";var e=this.keys,r=e.slice(0,this.config.hoverPreviewFieldCount).map((function(e){return e+":"+a(t.json[e])})),n=e.length>=this.config.hoverPreviewFieldCount?"…":"";return"{"+r.join(", ")+n+"}"},t.prototype.render=function(){this.element=m("div","row");var t=this.isObject?m("a","toggler-link"):m("span");if(this.isObject&&!this.useToJSON&&t.appendChild(m("span","toggler")),this.hasKey&&t.appendChild(m("span","key",this.key+":")),this.isObject&&!this.useToJSON){var e=m("span","value"),r=m("span"),n=m("span","constructor-name",this.constructorName);if(r.appendChild(n),this.isArray){var o=m("span");o.appendChild(m("span","bracket","[")),o.appendChild(m("span","number",this.json.length)),o.appendChild(m("span","bracket","]")),r.appendChild(o)}e.appendChild(r),t.appendChild(e)}else{(e=this.isUrl?m("a"):m("span")).classList.add(f(this.type)),this.isDate&&e.classList.add(f("date")),this.isUrl&&(e.classList.add(f("url")),e.setAttribute("href",this.json));var i=s(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(i)),t.appendChild(e)}if(this.isObject&&this.config.hoverPreviewEnabled){var a=m("span","preview-text");a.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(a)}var l=m("div","children");return this.isObject&&l.classList.add(f("object")),this.isArray&&l.classList.add(f("array")),this.isEmpty&&l.classList.add(f("empty")),this.config&&this.config.theme&&this.element.classList.add(f(this.config.theme)),this.isOpen&&this.element.classList.add(f("open")),this.element.appendChild(t),this.element.appendChild(l),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&t.addEventListener("click",this.toggleOpen.bind(this)),this.element},t.prototype.appendChildren=function(e){var r=this;void 0===e&&(e=!1);var n=this.element.querySelector("div."+f("children"));if(n&&!this.isEmpty)if(e){var o=0,i=function(){var e=r.keys[o],s=new t(r.json[e],r.open-1,r.config,e);n.appendChild(s.render()),(o+=1)<r.keys.length&&(o>10?i():p(i))};p(i)}else this.keys.forEach((function(e){var o=new t(r.json[e],r.open-1,r.config,e);n.appendChild(o.render())}))},t.prototype.removeChildren=function(t){void 0===t&&(t=!1);var e=this.element.querySelector("div."+f("children"));if(t){var r=0,n=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?n():p(n))};p(n)}else e&&(e.innerHTML="")},t}();r.default=h},n "a94e371ba4": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const l=e("tslib"),n=e("@bokehjs/models/widgets/input_widget"),s=e("@bokehjs/styles/buttons"),o=l.__importStar(e("@bokehjs/core/properties"));class a extends n.InputWidgetView{constructor(){super(…arguments),this._initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.button_type.change,()=>this.render()),this.connect(this.model.properties.data.change,()=>this.render()),this.connect(this.model.properties.filename.change,()=>this.render()),this.connect(this.model.properties.label.change,()=>this._update_label())}render(){if(super.render(),this.anchor_el=document.createElement("a"),this.anchor_el.classList.add(s.bk_btn),this.anchor_el.classList.add(s.bk_btn_type(this.model.button_type)),this.anchor_el.textContent=this.model.label,null===this.model.data||null===this.model.filename)return this.anchor_el.addEventListener("click",()=>this.click()),this.group_el.appendChild(this.anchor_el),void(this._initialized=!0);const e=function(e){const t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(t.length),n=new Uint8Array(l);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new Blob([l],{type:i})}(this.model.data),t=URL.createObjectURL(e);this.anchor_el.href=t,this.anchor_el.download=this.model.filename,this.group_el.appendChild(this.anchor_el),this.model.auto&&this._initialized&&this.anchor_el.click(),this._initialized=!0}_update_label(){this.anchor_el.textContent=this.model.label}click(){this.model.clicks=this.model.clicks+1}}i.FileDownloadView=a,a.__name__="FileDownloadView";class r extends n.InputWidget{constructor(e){super(e)}static init_FileDownload(){this.prototype.default_view=a,this.define({auto:[o.Boolean,!1],clicks:[o.Number,0],data:[o.String,null],label:[o.String,"Download"],filename:[o.String,null],button_type:[o.ButtonType,"default"]}),this.override({title:""})}}i.FileDownload=r,r.__name__="FileDownload",r.__module__="panel.models.widgets",r.init_FileDownload()},n "7b859fb3cf": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const a=e("@bokehjs/models/widgets/markup"),n=e("ba20932521");class r extends n.PanelMarkupView{render(){super.render(),this.markup_el.innerHTML=this.model.text,window.renderMathInElement&&window.renderMathInElement(this.el,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1}]})}}i.KaTeXView=r,r.__name__="KaTeXView";class s extends a.Markup{constructor(e){super(e)}static init_KaTeX(){this.prototype.default_view=r}}i.KaTeX=s,s.__name__="KaTeX",s.__module__="panel.models.katex",s.init_KaTeX()},n "0c21036737": function _(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});const i=e("@bokehjs/models/widgets/markup"),s=e("ba20932521");class _ extends s.PanelMarkupView{initialize(){super.initialize(),this._hub=window.MathJax.Hub,this._hub.Config({tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}})}render(){super.render(),this._hub&&(this.markup_el.innerHTML=this.model.text,this._hub.Queue(["Typeset",this._hub,this.markup_el]))}}a.MathJaxView=_,_.__name__="MathJaxView";class h extends i.Markup{constructor(e){super(e)}static init_MathJax(){this.prototype.default_view=_}}a.MathJax=h,h.__name__="MathJax",h.__module__="panel.models.mathjax",h.init_MathJax()},n "000f20fdd3": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),n=e("@bokehjs/core/dom"),l=e("@bokehjs/models/widgets/widget");class a extends l.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.change,()=>this.render()),this.connect(this.model.properties.value.change,()=>this.render()),this.connect(this.model.properties.loop_policy.change,()=>this.set_loop_state(this.model.loop_policy))}get_height(){return 250}render(){if(null!=this.sliderEl)return this.sliderEl.style.width="{this.model.width}px",this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),void(this.sliderEl.value=String(this.model.value));super.render(),this.sliderEl=document.createElement("input"),this.sliderEl.setAttribute("type","range"),this.sliderEl.style.width=this.model.width+"px",this.sliderEl.value=String(this.model.value),this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),this.sliderEl.onchange=e=>this.set_frame(parseInt(e.target.value));const e=n.div();e.style.cssText="margin: 0 auto; display: table; padding: 5px";const t="text-align: center; min-width: 40px; margin: 2px",i=document.createElement("button");i.style.cssText="text-align: center; min-width: 20px",i.appendChild(document.createTextNode("–")),i.onclick=()=>this.slower(),e.appendChild(i);const s=document.createElement("button");s.style.cssText=t,s.appendChild(document.createTextNode("❚◀◀")),s.onclick=()=>this.first_frame(),e.appendChild(s);const l=document.createElement("button");l.style.cssText=t,l.appendChild(document.createTextNode("❚◀")),l.onclick=()=>this.previous_frame(),e.appendChild(l);const a=document.createElement("button");a.style.cssText=t,a.appendChild(document.createTextNode("◀")),a.onclick=()=>this.reverse_animation(),e.appendChild(a);const o=document.createElement("button");o.style.cssText=t,o.appendChild(document.createTextNode("❚❚")),o.onclick=()=>this.pause_animation(),e.appendChild(o);const r=document.createElement("button");r.style.cssText=t,r.appendChild(document.createTextNode("▶")),r.onclick=()=>this.play_animation(),e.appendChild(r);const d=document.createElement("button");d.style.cssText=t,d.appendChild(document.createTextNode("▶❚")),d.onclick=()=>this.next_frame(),e.appendChild(d);const h=document.createElement("button");h.style.cssText=t,h.appendChild(document.createTextNode("▶▶❚")),h.onclick=()=>this.last_frame(),e.appendChild(h);const c=document.createElement("button");c.style.cssText="text-align: center; min-width: 20px",c.appendChild(document.createTextNode("+")),c.onclick=()=>this.faster(),e.appendChild(c),this.loop_state=document.createElement("form"),this.loop_state.style.cssText="margin: 0 auto; display: table";const m=document.createElement("input");m.type="radio",m.value="once",m.name="state";const p=document.createElement("label");p.innerHTML="Once",p.style.cssText="padding: 0 10px 0 5px; user-select:none;";const u=document.createElement("input");u.setAttribute("type","radio"),u.setAttribute("value","loop"),u.setAttribute("name","state");const _=document.createElement("label");_.innerHTML="Loop",_.style.cssText="padding: 0 10px 0 5px; user-select:none;";const v=document.createElement("input");v.setAttribute("type","radio"),v.setAttribute("value","reflect"),v.setAttribute("name","state");const x=document.createElement("label");x.innerHTML="Reflect",x.style.cssText="padding: 0 10px 0 5px; user-select:none;","once"==this.model.loop_policy?m.checked=!0:"loop"==this.model.loop_policy?u.checked=!0:v.checked=!0,this.loop_state.appendChild(m),this.loop_state.appendChild(p),this.loop_state.appendChild(u),this.loop_state.appendChild(_),this.loop_state.appendChild(v),this.loop_state.appendChild(x),this.el.appendChild(this.sliderEl),this.el.appendChild(e),this.el.appendChild(this.loop_state)}set_frame(e){this.model.value!=e&&(this.model.value=e),this.sliderEl.value!=String(e)&&(this.sliderEl.value=String(e))}get_loop_state(){for(var e=this.loop_state.state,t=0;t<e.length;t++){var i=e[t];if(i.checked)return i.value}return"once"}set_loop_state(e){for(var t=this.loop_state.state,i=0;i<t.length;i++){var s=t[i];s.value==e&&(s.checked=!0)}}next_frame(){this.set_frame(Math.min(this.model.end,this.model.value+this.model.step))}previous_frame(){this.set_frame(Math.max(this.model.start,this.model.value-this.model.step))}first_frame(){this.set_frame(this.model.start)}last_frame(){this.set_frame(this.model.end)}slower(){this.model.interval=Math.round(this.model.interval/.7),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}faster(){this.model.interval=Math.round(.7*this.model.interval),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}anim_step_forward(){if(this.model.value<this.model.end)this.next_frame();else{var e=this.get_loop_state();"loop"==e?this.first_frame():"reflect"==e?(this.last_frame(),this.reverse_animation()):(this.pause_animation(),this.last_frame())}}anim_step_reverse(){if(this.model.value>this.model.start)this.previous_frame();else{var e=this.get_loop_state();"loop"==e?this.last_frame():"reflect"==e?(this.first_frame(),this.play_animation()):(this.pause_animation(),this.first_frame())}}pause_animation(){this.model.direction=0,this.timer&&(clearInterval(this.timer),this.timer=null)}play_animation(){this.pause_animation(),this.model.direction=1,this.timer||(this.timer=setInterval(()=>this.anim_step_forward(),this.model.interval))}reverse_animation(){this.pause_animation(),this.model.direction=-1,this.timer||(this.timer=setInterval(()=>this.anim_step_reverse(),this.model.interval))}}i.PlayerView=a,a.__name__="PlayerView";class o extends l.Widget{constructor(e){super(e)}static init_Player(){this.prototype.default_view=a,this.define({direction:[s.Number,0],interval:[s.Number,500],start:[s.Number],end:[s.Number],step:[s.Number,1],loop_policy:[s.Any,"once"],value:[s.Any,0]}),this.override({width:400})}}i.Player=o,o.__name__="Player",o.__module__="panel.models.widgets",o.init_Player()},n "2363c12dd6": function _(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});const i=t("tslib").__importStar(t("@bokehjs/core/properties")),l=t("@bokehjs/core/util/object"),r=t("@bokehjs/core/util/eq"),s=t("@bokehjs/models/layouts/html_box"),n=t("99a25e6992"),a=t("990b5dd5c7"),p=t("ba20932521"),h=window.Plotly,_=(t,e,o)=>{let i=Array.isArray(e)?[]:{};if("click"===o||"hover"===o||"selected"===o){const o=[];if(null==e)return null;const l=t.data;for(let t=0;t<e.points.length;t++){const i=e.points[t];let r={};for(let t in i){const e=i[t];!i.hasOwnProperty(t)||Array.isArray(e)||a.isPlainObject(e)||(r[t]=e)}null!=i&&(i.hasOwnProperty("curveNumber")&&i.hasOwnProperty("pointNumber")&&l[i.curveNumber].hasOwnProperty("customdata")&&(r.customdata=l[i.curveNumber].customdata[i.pointNumber]),i.hasOwnProperty("pointNumbers")&&(r.pointNumbers=i.pointNumbers)),o[t]=r}i.points=o}else if("relayout"===o||"restyle"===o)for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return e.hasOwnProperty("range")&&(i.range=e.range),e.hasOwnProperty("lassoPoints")&&(i.lassoPoints=e.lassoPoints),i};class u extends p.PanelHTMLBoxView{constructor(){super(…arguments),this._settingViewport=!1,this._plotInitialized=!1,this._reacting=!1,this._relayouting=!1,this._end_relayouting=n.debounce(()=>{this._relayouting=!1},2e3,!1)}connect_signals(){super.connect_signals(),this.connect(this.model.properties.viewport_update_policy.change,this._updateSetViewportFunction),this.connect(this.model.properties.viewport_update_throttle.change,this._updateSetViewportFunction),this.connect(this.model.properties._render_count.change,this.plot),this.connect(this.model.properties.viewport.change,this._updateViewportFromProperty)}render(){super.render(),window.Plotly&&this.plot()}plot(){if(!window.Plotly)return;const t=[];for(let e=0;e<this.model.data.length;e++)t.push(this._get_trace(e,!1));let e=a.deepCopy(this.model.layout);if(this._relayouting){const t=this.el.layout;Object.keys(t).reduce((t,o)=>{"axis"===o.slice(1,5)&&"range"in t&&(e[o].range=t.range)},{})}this._reacting=!0,h.react(this.el,t,e,this.model.config).then(()=>{this._updateSetViewportFunction(),this._updateViewportProperty(),this._plotInitialized||(this.el.on("plotly_relayout",t=>{!0!==t._update_from_property&&(this.model.relayout_data=_(this.el,t,"relayout"),this._updateViewportProperty(),this._end_relayouting())}),this.el.on("plotly_relayouting",()=>{"mouseup"!==this.model.viewport_update_policy&&(this._relayouting=!0,this._updateViewportProperty())}),this.el.on("plotly_restyle",t=>{this.model.restyle_data=_(this.el,t,"restyle"),this._updateViewportProperty()}),this.el.on("plotly_click",t=>{this.model.click_data=_(this.el,t,"click")}),this.el.on("plotly_hover",t=>{this.model.hover_data=_(this.el,t,"hover")}),this.el.on("plotly_selected",t=>{this.model.selected_data=_(this.el,t,"selected")}),this.el.on("plotly_clickannotation",t=>{delete t.event,delete t.fullAnnotation,this.model.clickannotation_data=t}),this.el.on("plotly_deselect",()=>{this.model.selected_data=null}),this.el.on("plotly_unhover",()=>{this.model.hover_data=null})),this._plotInitialized=!0,this._reacting=!1})}_get_trace(t,e){const o=l.clone(this.model.data[t]),i=this.model.data_sources[t];for(const t of i.columns()){const l=i._shapes[t][0];let s=i.get_array(t)[0];if(l.length>1){const t=[];for(let e=0;e<l[0];e++)t.push(s.slice(e*l[1],(e+1)*l[1]));s=t}let n=t.split("."),a=n[n.length-1];var r=o;for(let t of n.slice(0,-1))r=r[t];e&&1==n.length?r[a]=[s]:r[a]=s}return o}_updateViewportFromProperty(){if(!h||this._settingViewport||this._reacting||!this.model.viewport)return;const t=this.el._fullLayout;Object.keys(this.model.viewport).reduce((e,o)=>{if(r.isEqual(a.get(t,o),e))return!0;{let t=a.deepCopy(this.model.viewport);return t._update_from_property=!0,h.relayout(this.el,t),!1}},{})}_updateViewportProperty(){const t=this.el._fullLayout;let e={};for(let o in t){if(!t.hasOwnProperty(o))continue;let i=o.slice(0,5);"xaxis"!==i&&"yaxis"!==i||(e[o+".range"]=a.deepCopy(t[o].range))}r.isEqual(e,this.model.viewport)||this._setViewport(e)}_updateSetViewportFunction(){"continuous"===this.model.viewport_update_policy||"mouseup"===this.model.viewport_update_policy?this._setViewport=t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)}:this._setViewport=a.throttle(t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)},this.model.viewport_update_throttle)}}o.PlotlyPlotView=u,u.__name__="PlotlyPlotView";class d extends s.HTMLBox{constructor(t){super(t)}static init_PlotlyPlot(){this.prototype.default_view=u,this.define({data:[i.Array,[]],layout:[i.Any,{}],config:[i.Any,{}],data_sources:[i.Array,[]],relayout_data:[i.Any,{}],restyle_data:[i.Array,[]],click_data:[i.Any,{}],hover_data:[i.Any,{}],clickannotation_data:[i.Any,{}],selected_data:[i.Any,{}],viewport:[i.Any,{}],viewport_update_policy:[i.String,"mouseup"],viewport_update_throttle:[i.Number,200],_render_count:[i.Number,0]})}}o.PlotlyPlot=d,d.__name__="PlotlyPlot",d.__module__="panel.models.plotly",d.init_PlotlyPlot()},n "99a25e6992": function _(n,l,u){function t(n,l,u){var t,e,o,a,r;function i(){var c=Date.now()-a;c<l&&c>=0?t=setTimeout(i,l-c):(t=null,u||(r=n.apply(o,e),o=e=null))}null==l&&(l=100);var c=function(){o=this,e=arguments,a=Date.now();var c=u&&!t;return t||(t=setTimeout(i,l)),c&&(r=n.apply(o,e),o=e=null),r};return c.clear=function(){t&&(clearTimeout(t),t=null)},c.flush=function(){t&&(r=n.apply(o,e),o=e=null,clearTimeout(t),t=null)},c}t.debounce=t,l.exports=t},n "990b5dd5c7": function _(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.get=(t,e,n)=>{const r=n=>String.prototype.split.call(e,n).filter(Boolean).reduce((t,e)=>null!=t?t[e]:t,t),o=r(/[,[\]]+?/)||r(/[,[\].]+?/);return void 0===o||o===t?n:o},n.throttle=function(t,e){var n=0;return function(){var r=Number(new Date);r-n>=e&&(t(),n=r)}},n.deepCopy=function t(e){var n;if(null==e||"object"!=typeof e)return e;if(e instanceof Array){n=[];for(var r=0,o=e.length;r<o;r++)n[r]=t(e[r]);return n}if(e instanceof Object){const n={};for(const r in e){const o=r;e.hasOwnProperty(o)&&(n[o]=t(e[o]))}return n}throw new Error("Unable to copy obj! Its type isn’t supported.")},n.isPlainObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},n "76307e5afa": function _(e,s,t){Object.defineProperty(t,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/layouts/html_box"),r=e("ba20932521");class l extends o.HTMLBoxView{connect_signals(){super.connect_signals();const e=()=>{this.render(),this.root.compute_layout()};this.connect(this.model.properties.height.change,e),this.connect(this.model.properties.width.change,e),this.connect(this.model.properties.height_policy.change,e),this.connect(this.model.properties.width_policy.change,e),this.connect(this.model.properties.sizing_mode.change,e),this.connect(this.model.properties.active.change,()=>this.setCSS()),this.connect(this.model.properties.bar_color.change,()=>this.setCSS()),this.connect(this.model.properties.css_classes.change,()=>this.setCSS()),this.connect(this.model.properties.value.change,()=>this.setValue()),this.connect(this.model.properties.max.change,()=>this.setMax())}render(){super.render();const e=Object.assign(Object.assign({},this.model.style),{display:"inline-block"});this.progressEl=document.createElement("progress"),this.setValue(),this.setMax(),r.set_size(this.progressEl,this.model),this.setCSS();for(const s in e)this.progressEl.style.setProperty(s,e[s]);this.el.appendChild(this.progressEl)}setCSS(){let e=this.model.css_classes.join(" ")+" "+this.model.bar_color;this.model.active&&(e+=" active"),this.progressEl.className=e}setValue(){null!=this.model.value&&(this.progressEl.value=this.model.value)}setMax(){null!=this.model.max&&(this.progressEl.max=this.model.max)}_update_layout(){let e=void 0!==this._prev_sizing_mode&&this._prev_sizing_mode!==this.model.sizing_mode;this._prev_sizing_mode=this.model.sizing_mode,this.layout=new r.CachedVariadicBox(this.el,this.model.sizing_mode,e),this.layout.set_sizing(this.box_sizing())}}t.ProgressView=l,l.__name__="ProgressView";class h extends o.HTMLBox{constructor(e){super(e)}static init_Progress(){this.prototype.default_view=l,this.define({active:[i.Boolean,!0],bar_color:[i.String,"primary"],style:[i.Any,{}],max:[i.Number,100],value:[i.Number,null]})}}t.Progress=h,h.__name__="Progress",h.__module__="panel.models.widgets",h.init_Progress()},n "38b2bc9574": function _(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e("tslib").__importStar(e("@bokehjs/core/properties")),a=e("@bokehjs/core/view"),o=e("@bokehjs/core/util/array"),c=e("@bokehjs/model"),n=e("@bokehjs/protocol/receiver");class r extends a.View{renderTo(){}}s.StateView=r,r.__name__="StateView";class _ extends c.Model{constructor(e){super(e),this._receiver=new n.Receiver,this._cache={}}apply_state(e){this._receiver.consume(e.header),this._receiver.consume(e.metadata),this._receiver.consume(e.content),this._receiver.message&&this.document&&this.document.apply_json_patch(this._receiver.message.content)}_receive_json(e,t){const s=JSON.parse(e);this._cache[t]=s;let i=this.state;for(const e of this.values)i=i[e];i===t?this.apply_state(s):this._cache[i]&&this.apply_state(this._cache[i])}set_state(e,t){let s=o.copy(this.values);s[this.widgets[e.id]]=t;let i=this.state;for(const e of s)i=i[e];var a,c,n;this.values=s,this.json?this._cache[i]?this.apply_state(this._cache[i]):(a=i,c=e=>this._receive_json(e,i),(n=new XMLHttpRequest).overrideMimeType("application/json"),n.open("GET",a,!0),n.onreadystatechange=function(){4==n.readyState&&200==n.status&&c(n.responseText)},n.send(null)):this.apply_state(i)}static init_State(){this.prototype.default_view=r,this.define({json:[i.Boolean,!1],state:[i.Any,{}],widgets:[i.Any,{}],values:[i.Any,[]]})}}s.State=_,_.__name__="State",_.__module__="panel.models.state",_.init_State()},n "90d1f929bd": function _(t,e,s){Object.defineProperty(s,"__esModule",{value:!0});const o=t("tslib").__importStar(t("@bokehjs/core/properties")),a=t("@bokehjs/core/util/types"),n=t("@bokehjs/models/layouts/html_box");class c extends n.HTMLBoxView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,this._plot),this.connect(this.model.properties.data_sources.change,()=>this._connect_sources()),this._connected=[],this._connect_sources()}_connect_sources(){for(const t in this.model.data_sources){const e=this.model.data_sources[t];this._connected.indexOf(t)<0&&(this.connect(e.properties.data.change,this._plot),this._connected.push(t))}}_fetch_datasets(){const t={};for(const e in this.model.data_sources){const s=this.model.data_sources[e],o=[],a=s.columns();for(let t=0;t<s.data[a[0]].length;t++){const e={};for(const o of a)e[o]=s.data[o][t];o.push(e)}t[e]=o}return t}render(){super.render(),this._plot()}_plot(){const t=this.model.data;if(null!=t&&window.vegaEmbed){if(this.model.data_sources&&Object.keys(this.model.data_sources).length>0){const e=this._fetch_datasets();if("data"in e&&(t.data.values=e.data,delete e.data),null!=t.data){const s=a.isArray(t.data)?t.data:[t.data];for(const t of s)t.name in e&&(t.values=e[t.name],delete e[t.name])}this.model.data.datasets=e}window.vegaEmbed(this.el,this.model.data,{actions:!1})}}}s.VegaPlotView=c,c.__name__="VegaPlotView";class d extends n.HTMLBox{constructor(t){super(t)}static init_VegaPlot(){this.prototype.default_view=c,this.define({data:[o.Any],data_sources:[o.Any]})}}s.VegaPlot=d,d.__name__="VegaPlot",d.__module__="panel.models.vega",d.init_VegaPlot()},n "b0c3e9e9c2": function _(e,i,t){Object.defineProperty(t,"__esModule",{value:!0});const o=e("tslib").__importStar(e("@bokehjs/core/properties")),s=e("@bokehjs/models/layouts/html_box"),l=e("ba20932521");class d extends l.PanelHTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,()=>this.set_loop()),this.connect(this.model.properties.paused.change,()=>this.set_paused()),this.connect(this.model.properties.time.change,()=>this.set_time()),this.connect(this.model.properties.value.change,()=>this.set_value()),this.connect(this.model.properties.volume.change,()=>this.set_volume())}render(){super.render(),this.videoEl=document.createElement("video"),this.model.sizing_mode&&"fixed"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit="fill",this.videoEl.style.minWidth="100%",this.videoEl.style.minHeight="100%",this.videoEl.controls=!0,this.videoEl.src=this.model.value,this.videoEl.currentTime=this.model.time,this.videoEl.loop=this.model.loop,null!=this.model.volume?this.videoEl.volume=this.model.volume/100:this.model.volume=100*this.videoEl.volume,this.videoEl.onpause=()=>this.model.paused=!0,this.videoEl.onplay=()=>this.model.paused=!1,this.videoEl.ontimeupdate=()=>this.update_time(this),this.videoEl.onvolumechange=()=>this.update_volume(this),this.el.appendChild(this.videoEl),this.model.paused||this.videoEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.videoEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.videoEl.volume)}set_loop(){this.videoEl.loop=this.model.loop}set_paused(){!this.videoEl.paused&&this.model.paused&&this.videoEl.pause(),this.videoEl.paused&&!this.model.paused&&this.videoEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.videoEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.videoEl.currentTime=this.model.time)}set_value(){this.videoEl.src=this.model.value}}t.VideoView=d,d.__name__="VideoView";class h extends s.HTMLBox{constructor(e){super(e)}static init_Video(){this.prototype.default_view=d,this.define({loop:[o.Boolean,!1],paused:[o.Boolean,!0],time:[o.Number,0],throttle:[o.Number,250],value:[o.Any,""],volume:[o.Number,null]})}}t.Video=h,h.__name__="Video",h.__module__="panel.models.widgets",h.init_Video()},n "3c7145a2fa": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),o=e("@bokehjs/models/layouts/html_box"),h=e("ba20932521");class a extends h.PanelHTMLBoxView{constructor(){super(…arguments),this.constraints={audio:!1,video:!0}}initialize(){super.initialize(),null!==this.model.timeout&&this.set_timeout()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.timeout.change,()=>this.set_timeout()),this.connect(this.model.properties.snapshot.change,()=>this.snapshot()),this.connect(this.model.properties.paused.change,()=>this.pause())}pause(){this.model.paused&&(null!=this.timer&&(clearInterval(this.timer),this.timer=null),this.videoEl.pause()),this.set_timeout()}set_timeout(){this.timer&&(clearInterval(this.timer),this.timer=null),this.model.timeout>0&&(this.timer=setInterval(()=>this.snapshot(),this.model.timeout))}snapshot(){this.canvasEl.width=this.videoEl.videoWidth,this.canvasEl.height=this.videoEl.videoHeight;const e=this.canvasEl.getContext("2d");e&&e.drawImage(this.videoEl,0,0,this.canvasEl.width,this.canvasEl.height),this.model.value=this.canvasEl.toDataURL("image/"+this.model.format,.95)}remove(){super.remove(),this.timer&&(clearInterval(this.timer),this.timer=null)}render(){super.render(),this.videoEl||(this.videoEl=document.createElement("video"),this.model.sizing_mode&&"fixed"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit="fill",this.videoEl.style.minWidth="100%",this.videoEl.style.minHeight="100%",this.canvasEl=document.createElement("canvas"),this.el.appendChild(this.videoEl),navigator.mediaDevices.getUserMedia&&navigator.mediaDevices.getUserMedia(this.constraints).then(e=>{this.videoEl.srcObject=e,this.model.paused||this.videoEl.play()}).catch(console.error))}}i.VideoStreamView=a,a.__name__="VideoStreamView";class l extends o.HTMLBox{constructor(e){super(e)}static init_VideoStream(){this.prototype.default_view=a,this.define({format:[s.String,"png"],paused:[s.Boolean,!1],snapshot:[s.Boolean,!1],timeout:[s.Number,0],value:[s.Any]}),this.override({height:240,width:320})}}i.VideoStream=l,l.__name__="VideoStream",l.__module__="panel.models.widgets",l.init_VideoStream()},n "ecfbb965eb": function _(e,o,l){Object.defineProperty(l,"__esModule",{value:!0});var V=e("5b5e56e89a");l.VTKPlot=V.VTKPlot;var t=e("729dd26c71");l.VTKVolumePlot=t.VTKVolumePlot;var K=e("e23461e5d7");l.VTKAxes=K.VTKAxes},n "5b5e56e89a": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),i=e("@bokehjs/core/dom"),a=e("c704c63c0a"),o=e("ba07c3d566");class r extends a.AbstractVTKView{constructor(){super(…arguments),this._axes_initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.axes.change,()=>{this._delete_axes(),this.model.axes&&this._set_axes(),this._vtk_renwin.getRenderWindow().render()}),this.el.addEventListener("mouseenter",()=>{const e=this._vtk_renwin.getInteractor();this.model.enable_keybindings&&(document.querySelector("body").addEventListener("keypress",e.handleKeyPress),document.querySelector("body").addEventListener("keydown",e.handleKeyDown),document.querySelector("body").addEventListener("keyup",e.handleKeyUp))}),this.el.addEventListener("mouseleave",()=>{const e=this._vtk_renwin.getInteractor();document.querySelector("body").removeEventListener("keypress",e.handleKeyPress),document.querySelector("body").removeEventListener("keydown",e.handleKeyDown),document.querySelector("body").removeEventListener("keyup",e.handleKeyUp)})}render(){super.render(),this._axes=null,this._axes_initialized=!1,this._plot()}after_layout(){this._axes_initialized||(this._render_axes_canvas(),this._axes_initialized=!0)}_render_axes_canvas(){const e=this._vtk_container.getElementsByTagName("canvas");if(1!=e.length)throw Error("Error at initialization of the 3D scene, container should have one and only one canvas");e[0].classList.add("scene3d-canvas");const t=i.canvas({style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}});t.classList.add("axes-canvas"),this._vtk_container.appendChild(t),this._vtk_renwin.setResizeCallback(()=>{const e=this._vtk_container.getBoundingClientRect(),n=Math.floor(e.width*window.devicePixelRatio),s=Math.floor(e.height*window.devicePixelRatio);t.setAttribute("width",n.toFixed()),t.setAttribute("height",s.toFixed())})}_delete_axes(){if(null==this._axes)return;Object.keys(this._axes).forEach(e=>this._vtk_renwin.getRenderer().removeActor(this._axes[e]));const e=this._vtk_renwin.getContainer().getElementsByClassName("axes-canvas")[0],t=e.getContext("2d");t&&t.clearRect(0,0,e.clientWidth*window.devicePixelRatio,e.clientHeight*window.devicePixelRatio),this._axes=null}_set_axes(){if(this.model.axes){const e=this._vtk_renwin.getContainer().getElementsByClassName("axes-canvas")[0],{psActor:t,axesActor:n,gridActor:s}=this.model.axes.create_axes(e);this._axes={psActor:t,axesActor:n,gridActor:s},this._vtk_renwin.getRenderer().addActor(t),this._vtk_renwin.getRenderer().addActor(n),this._vtk_renwin.getRenderer().addActor(s)}}_plot(){if(!this.model.data)return void this._vtk_renwin.getRenderWindow().render();const e=o.vtkns.DataAccessHelper.get("zip",{zipContent:atob(this.model.data),callback:t=>{const n=o.vtkns.HttpSceneLoader.newInstance({renderer:this._vtk_renwin.getRenderer(),dataAccessHelper:e}),s=o.vtk.macro.debounce(()=>{null==this._axes&&this.model.axes&&this._set_axes(),this.model.properties.camera.change.emit()},100);n.setUrl("index.json"),n.onReady(s)}})}}n.VTKPlotView=r,r.__name__="VTKPlotView";class d extends a.AbstractVTKPlot{constructor(e){super(e),this.outline=o.vtkns.OutlineFilter.newInstance();const t=o.vtkns.Mapper.newInstance();t.setInputConnection(this.outline.getOutputPort()),this.outline_actor=o.vtkns.Actor.newInstance(),this.outline_actor.setMapper(t)}static init_VTKPlot(){this.prototype.default_view=r,this.define({data:[s.String],axes:[s.Instance],enable_keybindings:[s.Boolean,!1]})}}n.VTKPlot=d,d.__name__="VTKPlot",d.init_VTKPlot()},n "c704c63c0a": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const n=e("tslib").__importStar(e("@bokehjs/core/properties")),r=e("@bokehjs/core/dom"),s=e("@bokehjs/core/util/object"),a=e("@bokehjs/models/layouts/html_box"),o=e("ba20932521"),_=e("ba07c3d566");class d extends o.PanelHTMLBoxView{constructor(){super(…arguments),this._setting_camera=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,()=>{this.invalidate_render()}),this.connect(this.model.properties.orientation_widget.change,()=>{this._orientation_widget_visibility(this.model.orientation_widget)}),this.connect(this.model.properties.camera.change,()=>this._set_camera_state())}_orientation_widget_visibility(e){this._orientationWidget.setEnabled(e),e?this._widgetManager.enablePicking():this._widgetManager.disablePicking(),this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderWindow().render()}_create_orientation_widget(){const e=_.vtkns.AxesActor.newInstance(),t=_.vtkns.OrientationMarkerWidget.newInstance({actor:e,interactor:this._vtk_renwin.getInteractor()});t.setEnabled(!0),t.setViewportCorner(_.vtkns.OrientationMarkerWidget.Corners.BOTTOM_RIGHT),t.setViewportSize(.15),t.setMinPixelSize(100),t.setMaxPixelSize(300),this._orientationWidget=t;const i=_.vtkns.WidgetManager.newInstance();i.setRenderer(t.getRenderer());const n=_.vtkns.InteractiveOrientationWidget.newInstance();n.placeWidget(e.getBounds()),n.setBounds(e.getBounds()),n.setPlaceFactor(1);const r=i.addWidget(n);this._widgetManager=i,r.onOrientationChange(({direction:e})=>{const t=this._vtk_renwin.getRenderer().getActiveCamera(),i=t.getFocalPoint(),n=t.getPosition(),r=t.getViewUp(),s=Math.sqrt(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)+Math.pow(n[2]-i[2],2));t.setPosition(i[0]+e[0]*s,i[1]+e[1]*s,i[2]+e[2]*s),e[0]&&t.setViewUp(_.majorAxis(r,1,2)),e[1]&&t.setViewUp(_.majorAxis(r,0,2)),e[2]&&t.setViewUp(_.majorAxis(r,0,1)),this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_renwin.getRenderWindow().render()}),this._orientation_widget_visibility(this.model.orientation_widget)}_get_camera_state(){if(!this._setting_camera){this._setting_camera=!0;const e=s.clone(this._vtk_renwin.getRenderer().getActiveCamera().get());delete e.classHierarchy,delete e.vtkObject,delete e.vtkCamera,delete e.viewPlaneNormal,this.model.camera=e,this._setting_camera=!1}}_set_camera_state(){if(!this._setting_camera){this._setting_camera=!0;try{this.model.camera&&this._vtk_renwin.getRenderer().getActiveCamera().set(this.model.camera)}finally{this._setting_camera=!1}this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_renwin.getRenderWindow().render()}}render(){super.render(),this._orientationWidget=null,this._vtk_container=r.div(),o.set_size(this._vtk_container,this.model),this.el.appendChild(this._vtk_container),this._vtk_renwin=_.vtkns.FullScreenRenderWindow.newInstance({rootContainer:this.el,container:this._vtk_container}),this._remove_default_key_binding(),this._create_orientation_widget(),this._vtk_renwin.getRenderer().getActiveCamera().onModified(()=>this._get_camera_state()),this._set_camera_state(),this.model.renderer_el=this._vtk_renwin}after_layout(){super.after_layout(),this._vtk_renwin.resize()}_remove_default_key_binding(){const e=this._vtk_renwin.getInteractor();document.querySelector("body").removeEventListener("keypress",e.handleKeyPress),document.querySelector("body").removeEventListener("keydown",e.handleKeyDown),document.querySelector("body").removeEventListener("keyup",e.handleKeyUp)}}i.AbstractVTKView=d,d.__name__="AbstractVTKView";class c extends a.HTMLBox{constructor(e){super(e)}getActors(){return this.renderer_el.getRenderer().getActors()}static init_AbstractVTKPlot(){this.define({orientation_widget:[n.Boolean,!1],camera:[n.Instance]}),this.override({height:300,width:300})}}i.AbstractVTKPlot=c,c.__name__="AbstractVTKPlot",c.__module__="panel.models.vtk",c.init_AbstractVTKPlot()},n "ba07c3d566": function _(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@bokehjs/core/util/serialization"),a=e("@bokehjs/core/util/array");function o(e){const t=Math.min(Math.max(Math.round(e),0),255).toString(16);return 2==t.length?t:"0"+t}function i(e,t,n){return"#"+o(e)+o(t)+o(n)}function s(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,a=e.length;r<a;r++)n[r]=e.charCodeAt(r);return t}n.vtk=window.vtk,n.vtkns={},n.vtk&&(n.vtkns.DataArray=n.vtk.Common.Core.vtkDataArray,n.vtkns.ImageData=n.vtk.Common.DataModel.vtkImageData,n.vtkns.OutlineFilter=n.vtk.Filters.General.vtkOutlineFilter,n.vtkns.CubeSource=n.vtk.Filters.Sources.vtkCubeSource,n.vtkns.LineSource=n.vtk.Filters.Sources.vtkLineSource,n.vtkns.PlaneSource=n.vtk.Filters.Sources.vtkPlaneSource,n.vtkns.PointSource=n.vtk.Filters.Sources.vtkPointSource,n.vtkns.OrientationMarkerWidget=n.vtk.Interaction.Widgets.vtkOrientationMarkerWidget,n.vtkns.DataAccessHelper=n.vtk.IO.Core.DataAccessHelper,n.vtkns.HttpSceneLoader=n.vtk.IO.Core.vtkHttpSceneLoader,n.vtkns.ImageSlice=n.vtk.Rendering.Core.vtkImageSlice,n.vtkns.Actor=n.vtk.Rendering.Core.vtkActor,n.vtkns.AxesActor=n.vtk.Rendering.Core.vtkAxesActor,n.vtkns.Mapper=n.vtk.Rendering.Core.vtkMapper,n.vtkns.ImageMapper=n.vtk.Rendering.Core.vtkImageMapper,n.vtkns.SphereMapper=n.vtk.Rendering.Core.vtkSphereMapper,n.vtkns.WidgetManager=n.vtk.Widgets.Core.vtkWidgetManager,n.vtkns.InteractiveOrientationWidget=n.vtk.Widgets.Widgets3D.vtkInteractiveOrientationWidget,n.vtkns.PixelSpaceCallbackMapper=n.vtk.Rendering.Core.vtkPixelSpaceCallbackMapper,n.vtkns.FullScreenRenderWindow=n.vtk.Rendering.Misc.vtkFullScreenRenderWindow,n.vtkns.VolumeController=n.vtk.Interaction.UI.vtkVolumeController,n.vtkns.Volume=n.vtk.Rendering.Core.vtkVolume,n.vtkns.VolumeMapper=n.vtk.Rendering.Core.vtkVolumeMapper,n.vtkns.ColorTransferFunction=n.vtk.Rendering.Core.vtkColorTransferFunction,n.vtkns.PiecewiseFunction=n.vtk.Common.DataModel.vtkPiecewiseFunction,n.vtkns.BoundingBox=n.vtk.Common.DataModel.vtkBoundingBox),n.hexToRGB=function(e){return[parseInt(e.slice(1,3),16)/255,parseInt(e.slice(3,5),16)/255,parseInt(e.slice(5,7),16)/255]},n.rgbToHex=i,n.vtkLutToMapper=function(e){const{scale:t,nodes:r}=e.get("scale","nodes");if(t!==n.vtkns.ColorTransferFunction.Scale.LINEAR)throw"Error transfer function scale not handle";const o=r.map(e=>e.x),s=Math.min(…o),k=Math.max(…o),v=a.linspace(s,k,255),c=[0,0,0];return{low:s,high:k,palette:v.map(t=>(e.getColor(t,c),i(255*c[0],255*c[1],255*c[2])))}},n.data2VTKImageData=function(e){const t=n.vtkns.ImageData.newInstance({spacing:e.spacing});t.setDimensions(e.dims),t.setOrigin(null!=e.origin?e.origin:e.dims.map(e=>e/2));const a=n.vtkns.DataArray.newInstance({name:"scalars",numberOfComponents:1,values:new r.ARRAY_TYPES[e.dtype](s(atob(e.buffer)))});return t.getPointData().setScalars(a),t},n.majorAxis=function(e,t,n){const r=[0,0,0],a=Math.abs(e[t])>Math.abs(e[n])?t:n,o=e[a]>0?1:-1;return r[a]=o,r},n.cartesian_product=function(…e){return e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[].concat(e,t))))}},n "729dd26c71": function _(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("tslib").__importStar(e("@bokehjs/core/properties")),r=e("c704c63c0a"),n=e("ba07c3d566");class o extends r.AbstractVTKView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.colormap.change,()=>{this.colormap_slector.value=this.model.colormap;const e=new Event("change");this.colormap_slector.dispatchEvent(e)}),this.connect(this.model.properties.shadow.change,()=>{this.shadow_selector.value=this.model.shadow?"1":"0";const e=new Event("change");this.shadow_selector.dispatchEvent(e)}),this.connect(this.model.properties.sampling.change,()=>{this.sampling_slider.value=this.model.sampling.toFixed(2);const e=new Event("input");this.sampling_slider.dispatchEvent(e)}),this.connect(this.model.properties.edge_gradient.change,()=>{this.edge_gradient_slider.value=this.model.edge_gradient.toFixed(2);const e=new Event("input");this.edge_gradient_slider.dispatchEvent(e)}),this.connect(this.model.properties.rescale.change,()=>{this._controllerWidget.setRescaleColorMap(this.model.rescale),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.ambient.change,()=>{this.volume.getProperty().setAmbient(this.model.ambient),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.diffuse.change,()=>{this.volume.getProperty().setDiffuse(this.model.diffuse),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.specular.change,()=>{this.volume.getProperty().setSpecular(this.model.specular),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.specular_power.change,()=>{this.volume.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.display_volume.change,()=>{this._set_volume_visibility(this.model.display_volume),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.display_slices.change,()=>{this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_i.change,()=>{this.image_actor_i.getMapper().setISlice(this.model.slice_i),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_j.change,()=>{this.image_actor_j.getMapper().setJSlice(this.model.slice_j),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.slice_k.change,()=>{this.image_actor_k.getMapper().setKSlice(this.model.slice_k),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.render_background.change,()=>{this._vtk_renwin.getRenderer().setBackground(…n.hexToRGB(this.model.render_background)),this._vtk_renwin.getRenderWindow().render()}),this.connect(this.model.properties.interpolation.change,()=>{this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderWindow().render()})}get volume(){return this._controllerWidget.getActor()}get image_actor_i(){return this._vtk_renwin.getRenderer().getActors()[0]}get image_actor_j(){return this._vtk_renwin.getRenderer().getActors()[1]}get image_actor_k(){return this._vtk_renwin.getRenderer().getActors()[2]}get shadow_selector(){return this.el.querySelector(".js-shadow")}get edge_gradient_slider(){return this.el.querySelector(".js-edge")}get sampling_slider(){return this.el.querySelector(".js-spacing")}get colormap_slector(){return this.el.querySelector(".js-color-preset")}_set_interpolation(e){"fast_linear"==e?(this.volume.getProperty().setInterpolationTypeToFastLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):"linear"==e?(this.volume.getProperty().setInterpolationTypeToLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):(this.volume.getProperty().setInterpolationTypeToNearest(),this.image_actor_i.getProperty().setInterpolationTypeToNearest())}render(){super.render(),this._controllerWidget=n.vtkns.VolumeController.newInstance({size:[400,150],rescaleColorMap:this.model.rescale}),this._vtk_image_data=n.data2VTKImageData(this.model.data),this._controllerWidget.setContainer(this.el),this._vtk_renwin.getRenderWindow().getInteractor(),this._vtk_renwin.getRenderWindow().getInteractor().setDesiredUpdateRate(45),this._plot_volume(),this._connect_controls(),this._plot_slices(),this._set_volume_visibility(this.model.display_volume),this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderer().setBackground(…n.hexToRGB(this.model.render_background)),this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderer().resetCamera()}_connect_controls(){this.colormap_slector.addEventListener("change",()=>{this.model.colormap=this.colormap_slector.value}),this.model.colormap?this.model.properties.colormap.change.emit():this.model.colormap=this.colormap_slector.value,this.shadow_selector.addEventListener("change",()=>{this.model.shadow=!!Number(this.shadow_selector.value)}),(this.model.shadow=!!Number(this.shadow_selector.value))&&this.model.properties.shadow.change.emit(),this.sampling_slider.addEventListener("input",()=>{const e=Number(this.sampling_slider.value);Math.abs(this.model.sampling-e)>=.005&&(this.model.sampling=e)}),Math.abs(this.model.sampling-Number(this.shadow_selector.value))>=.005&&this.model.properties.sampling.change.emit(),this.edge_gradient_slider.addEventListener("input",()=>{const e=Number(this.edge_gradient_slider.value);Math.abs(this.model.edge_gradient-e)>=.005&&(this.model.edge_gradient=e)}),Math.abs(this.model.edge_gradient-Number(this.edge_gradient_slider.value))>=.005&&this.model.properties.edge_gradient.change.emit()}_plot_volume(){const e=this._vtk_image_data,t=n.vtkns.Volume.newInstance(),i=n.vtkns.VolumeMapper.newInstance();t.setMapper(i),i.setInputData(e);const s=(e.getPointData().getScalars()||e.getPointData().getArrays()[0]).getRange(),r=n.vtkns.ColorTransferFunction.newInstance();r.onModified(()=>this.model.mapper=n.vtkLutToMapper(r));const o=n.vtkns.PiecewiseFunction.newInstance(),a=.7*Math.sqrt(e.getSpacing().map(e=>e*e).reduce((e,t)=>e+t,0));i.setSampleDistance(a),t.getProperty().setRGBTransferFunction(0,r),t.getProperty().setScalarOpacity(0,o),t.getProperty().setInterpolationTypeToFastLinear(),t.getProperty().setScalarOpacityUnitDistance(0,n.vtkns.BoundingBox.getDiagonalLength(e.getBounds())/Math.max(…e.getDimensions())),t.getProperty().setGradientOpacityMinimumValue(0,0),t.getProperty().setGradientOpacityMaximumValue(0,.05*(s[1]-s[0])),t.getProperty().setShade(this.model.shadow),t.getProperty().setUseGradientOpacity(0,!0),t.getProperty().setGradientOpacityMinimumOpacity(0,0),t.getProperty().setGradientOpacityMaximumOpacity(0,1),t.getProperty().setAmbient(this.model.ambient),t.getProperty().setDiffuse(this.model.diffuse),t.getProperty().setSpecular(this.model.specular),t.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderer().addVolume(t),this._controllerWidget.setupContent(this._vtk_renwin.getRenderWindow(),t,!0)}_plot_slices(){const e=this._vtk_image_data,t=n.vtkns.ImageSlice.newInstance(),i=n.vtkns.ImageSlice.newInstance(),s=n.vtkns.ImageSlice.newInstance(),r=n.vtkns.ImageMapper.newInstance(),o=n.vtkns.ImageMapper.newInstance(),a=n.vtkns.ImageMapper.newInstance();r.setInputData(e),r.setISlice(this.model.slice_i),t.setMapper(r),o.setInputData(e),o.setJSlice(this.model.slice_j),i.setMapper(o),a.setInputData(e),a.setKSlice(this.model.slice_k),s.setMapper(a);const l=n.vtkns.PiecewiseFunction.newInstance();l.removeAllPoints(),l.addPoint(0,1);const c=this.volume.getProperty().getRGBTransferFunction(0),d=t.getProperty();i.setProperty(d),s.setProperty(d),d.setRGBTransferFunction(c),d.setScalarOpacity(l);const h=this._vtk_renwin.getRenderer();h.addActor(t),h.addActor(i),h.addActor(s)}_set_volume_visibility(e){this.volume.setVisibility(e)}_set_slices_visibility(e){this._vtk_renwin.getRenderer().getActors().map(t=>t.setVisibility(e))}}i.VTKVolumePlotView=o,o.__name__="VTKVolumePlotView";class a extends r.AbstractVTKPlot{constructor(e){super(e)}static init_VTKVolumePlot(){this.prototype.default_view=o,this.define({data:[s.Instance],shadow:[s.Boolean,!0],sampling:[s.Number,.4],edge_gradient:[s.Number,.2],colormap:[s.String],rescale:[s.Boolean,!1],ambient:[s.Number,.2],diffuse:[s.Number,.7],specular:[s.Number,.3],specular_power:[s.Number,8],slice_i:[s.Int,0],slice_j:[s.Int,0],slice_k:[s.Int,0],display_volume:[s.Boolean,!0],display_slices:[s.Boolean,!1],render_background:[s.String,"#52576e"],interpolation:[s.Any,"fast_linear"],mapper:[s.Instance]})}}i.VTKVolumePlot=a,a.__name__="VTKVolumePlot",a.init_VTKVolumePlot()},n "e23461e5d7": function _(t,s,i){Object.defineProperty(i,"__esModule",{value:!0});const e=t("tslib"),n=t("2f3fd5db07"),a=t("@bokehjs/model"),c=e.__importStar(t("@bokehjs/core/properties")),r=t("ba07c3d566");class h extends a.Model{constructor(t){super(t)}static init_VTKAxes(){this.define({origin:[c.Array],xticker:[c.Instance],yticker:[c.Instance],zticker:[c.Instance],digits:[c.Number,1],show_grid:[c.Boolean,!0],grid_opacity:[c.Number,.1],axes_opacity:[c.Number,1],fontsize:[c.Number,12]})}get xticks(){return this.xticker.ticks}get yticks(){return this.yticker.ticks}get zticks(){return this.zticker.ticks}get xlabels(){return this.xticker.labels?this.xticker.labels:this.xticks.map(t=>t.toFixed(this.digits))}get ylabels(){return this.yticker.labels?this.yticker.labels:this.yticks.map(t=>t.toFixed(this.digits))}get zlabels(){return this.zticker.labels?this.zticker.labels:this.zticks.map(t=>t.toFixed(this.digits))}_make_grid_lines(t,s,i){const e=[];for(let n=0;n<t-1;n++)for(let t=0;t<s-1;t++){const a=n*s+t+i,c=[5,a,n*s+t+1+i,(n+1)*s+t+1+i,(n+1)*s+t+i,a];e.push(c)}return e}_create_grid_axes(){const t=[];t.push(r.cartesian_product(this.xticks,this.yticks,[this.origin[2]])),t.push(r.cartesian_product([this.origin[0]],this.yticks,this.zticks)),t.push(r.cartesian_product(this.xticks,[this.origin[1]],this.zticks));const s=[];let i=0;s.push(this._make_grid_lines(this.xticks.length,this.yticks.length,i)),i+=this.xticks.length*this.yticks.length,s.push(this._make_grid_lines(this.yticks.length,this.zticks.length,i)),i+=this.yticks.length*this.zticks.length,s.push(this._make_grid_lines(this.xticks.length,this.zticks.length,i));const e=r.vtk({vtkClass:"vtkPolyData",points:{vtkClass:"vtkPoints",dataType:"Float32Array",numberOfComponents:3,values:t.flat(2)},lines:{vtkClass:"vtkCellArray",dataType:"Uint32Array",values:s.flat(2)}}),n=r.vtkns.Mapper.newInstance(),a=r.vtkns.Actor.newInstance();return n.setInputData(e),a.setMapper(n),a.getProperty().setOpacity(this.grid_opacity),a.setVisibility(this.show_grid),a}create_axes(t){const s=[this.xticks,this.yticks,this.zticks].map((t,s)=>{let i=null;switch(s){case 0:i=r.cartesian_product(t,[this.origin[1]],[this.origin[2]]);break;case 1:i=r.cartesian_product([this.origin[0]],t,[this.origin[2]]);break;case 2:i=r.cartesian_product([this.origin[0]],[this.origin[1]],t)}return i}).flat(2),i=r.vtk({vtkClass:"vtkPolyData",points:{vtkClass:"vtkPoints",dataType:"Float32Array",numberOfComponents:3,values:s},lines:{vtkClass:"vtkCellArray",dataType:"Uint32Array",values:[2,0,this.xticks.length-1,2,this.xticks.length,this.xticks.length+this.yticks.length-1,2,this.xticks.length+this.yticks.length,this.xticks.length+this.yticks.length+this.zticks.length-1]}}),e=r.vtkns.PixelSpaceCallbackMapper.newInstance();e.setInputData(i),e.setUseZValues(!0),e.setCallback((s,i,a)=>{const c=t.getContext("2d");if(c){const r={height:t.clientHeight*window.devicePixelRatio,width:t.clientWidth*window.devicePixelRatio},h=e.getInputData().getPoints(),l=i.getViewMatrix();n.mat4.transpose(l,l);const o=i.getProjectionMatrix(a,-1,1);n.mat4.transpose(o,o),c.clearRect(0,0,r.width,r.height),s.forEach((t,s)=>{const i=h.getPoint(s),e=n.vec3.fromValues(i[0],i[1],i[2]);if(n.vec3.transformMat4(e,e,l),e[2]+=.05,n.vec3.transformMat4(e,e,o),e[2]-.001<t[3]){let i;c.font="30px serif",c.textAlign="center",c.textBaseline="alphabetic",c.fillText(".",t[0],r.height-t[1]+2),c.font=`${this.fontsize*window.devicePixelRatio}px serif`,c.textAlign="right",c.textBaseline="top",i=s<this.xticks.length?this.xlabels[s]:s>=this.xticks.length&&s<this.xticks.length+this.yticks.length?this.ylabels[s-this.xticks.length]:this.zlabels[s-(this.xticks.length+this.yticks.length)],c.fillText(${i},t[0],r.height-t[1])}})}});const a=r.vtkns.Actor.newInstance();a.setMapper(e);const c=r.vtkns.Mapper.newInstance();c.setInputData(i);const h=r.vtkns.Actor.newInstance();return h.setMapper(c),h.getProperty().setOpacity(this.axes_opacity),{psActor:a,axesActor:h,gridActor:this._create_grid_axes()}}}i.VTKAxes=h,h.__name__="VTKAxes",h.__module__="panel.models.vtk",h.init_VTKAxes()},n "2f3fd5db07": function _(t,c,a){Object.defineProperty(a,"__esModule",{value:!0});const o=t("tslib"),r=o.__importStar(t("68ca94c15c"));a.glMatrix=r;const _=o.__importStar(t("7c0b8e6048"));a.mat2=_;const e=o.__importStar(t("dc03f0a621"));a.mat2d=e;const i=o.__importStar(t("0285c50a7e"));a.mat3=i;const m=o.__importStar(t("a427635f32"));a.mat4=m;const n=o.__importStar(t("eb06fc032a"));a.quat=n;const s=o.__importStar(t("277615c682"));a.quat2=s;const p=o.__importStar(t("c56d9ff837"));a.vec2=p;const S=o.__importStar(t("2c5eb22089"));a.vec3=S;const f=o.__importStar(t("c1aa33d719"));a.vec4=f},n "68ca94c15c": function _(t,a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EPSILON=1e-6,r.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,r.RANDOM=Math.random,r.setMatrixArrayType=function(t){r.ARRAY_TYPE=t};var n=Math.PI/180;r.toRadian=function(t){return t*n},r.equals=function(t,a){return Math.abs(t-a)<=r.EPSILON*Math.max(1,Math.abs(t),Math.abs(a))},Math.hypot||(Math.hypot=function(){for(var t=0,a=arguments.length;a–;)t+=arguments[a]*arguments[a];return Math.sqrt(t)})},n "7c0b8e6048": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1],f=r[2],s=r[3];return t[0]=a*c+e*i,t[1]=u*c+o*i,t[2]=a*f+e*s,t[3]=u*f+o*s,t}function e(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}r.create=function(){var t=new a.ARRAY_TYPE(4);return a.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},r.clone=function(t){var n=new a.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},r.fromValues=function(t,n,r,u){var e=new a.ARRAY_TYPE(4);return e[0]=t,e[1]=n,e[2]=r,e[3]=u,e},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.transpose=function(t,n){if(t===n){var r=n[1];t[1]=n[2],t[2]=r}else t[0]=n[0],t[1]=n[2],t[2]=n[1],t[3]=n[3];return t},r.invert=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*e-u*a;return o?(o=1/o,t[0]=e*o,t[1]=-a*o,t[2]=-u*o,t[3]=r*o,t):null},r.adjoint=function(t,n){var r=n[0];return t[0]=n[3],t[1]=-n[1],t[2]=-n[2],t[3]=r,t},r.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},r.multiply=u,r.rotate=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=Math.sin(r),i=Math.cos(r);return t[0]=a*i+e*c,t[1]=u*i+o*c,t[2]=a*-c+e*i,t[3]=u*-c+o*i,t},r.scale=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1];return t[0]=a*c,t[1]=u*c,t[2]=e*i,t[3]=o*i,t},r.fromRotation=function(t,n){var r=Math.sin(n),a=Math.cos(n);return t[0]=a,t[1]=r,t[2]=-r,t[3]=a,t},r.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t},r.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},r.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},r.LDU=function(t,n,r,a){return t[2]=a[2]/a[0],r[0]=a[0],r[1]=a[1],r[3]=a[3]-t[2]*r[1],[t,n,r]},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=e,r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=t[3],c=n[0],i=n[1],f=n[2],s=n[3];return Math.abs(r-c)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(u-i)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(i))&&Math.abs(e-f)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(f))&&Math.abs(o-s)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(s))},r.multiplyScalar=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.multiplyScalarAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.mul=u,r.sub=e},n "dc03f0a621": function _(t,n,a){Object.defineProperty(a,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function u(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1],h=a[2],M=a[3],b=a[4],l=a[5];return t[0]=r*s+e*f,t[1]=u*s+o*f,t[2]=r*h+e*M,t[3]=u*h+o*M,t[4]=r*b+e*l+c,t[5]=u*b+o*l+i,t}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t}a.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},a.clone=function(t){var n=new r.ARRAY_TYPE(6);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n},a.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t},a.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},a.fromValues=function(t,n,a,u,e,o){var c=new r.ARRAY_TYPE(6);return c[0]=t,c[1]=n,c[2]=a,c[3]=u,c[4]=e,c[5]=o,c},a.set=function(t,n,a,r,u,e,o){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=e,t[5]=o,t},a.invert=function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],c=n[5],i=a*e-r*u;return i?(i=1/i,t[0]=e*i,t[1]=-r*i,t[2]=-u*i,t[3]=a*i,t[4]=(u*c-e*o)*i,t[5]=(r*o-a*c)*i,t):null},a.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},a.multiply=u,a.rotate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=Math.sin(a),f=Math.cos(a);return t[0]=r*f+e*s,t[1]=u*f+o*s,t[2]=r*-s+e*f,t[3]=u*-s+o*f,t[4]=c,t[5]=i,t},a.scale=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1];return t[0]=r*s,t[1]=u*s,t[2]=e*f,t[3]=o*f,t[4]=c,t[5]=i,t},a.translate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],c=n[4],i=n[5],s=a[0],f=a[1];return t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=r*s+e*f+c,t[5]=u*s+o*f+i,t},a.fromRotation=function(t,n){var a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=-a,t[3]=r,t[4]=0,t[5]=0,t},a.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t[4]=0,t[5]=0,t},a.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=n[0],t[5]=n[1],t},a.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},a.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},a.add=function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t},a.subtract=e,a.multiplyScalar=function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t},a.multiplyScalarAndAdd=function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t},a.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]},a.equals=function(t,n){var a=t[0],u=t[1],e=t[2],o=t[3],c=t[4],i=t[5],s=n[0],f=n[1],h=n[2],M=n[3],b=n[4],l=n[5];return Math.abs(a-s)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(u-f)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(f))&&Math.abs(e-h)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(c-b)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))},a.mul=u,a.sub=e},n "0285c50a7e": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function u(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1],l=n[2],m=n[3],v=n[4],E=n[5],P=n[6],S=n[7],d=n[8];return t[0]=f*r+b*e+l*s,t[1]=f*u+b*i+l*M,t[2]=f*o+b*c+l*h,t[3]=m*r+v*e+E*s,t[4]=m*u+v*i+E*M,t[5]=m*o+v*c+E*h,t[6]=P*r+S*e+d*s,t[7]=P*u+S*i+d*M,t[8]=P*o+S*c+d*h,t}function o(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t}n.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},n.fromMat4=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[4],t[4]=a[5],t[5]=a[6],t[6]=a[8],t[7]=a[9],t[8]=a[10],t},n.clone=function(t){var a=new r.ARRAY_TYPE(9);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromValues=function(t,a,n,u,o,e,i,c,s){var M=new r.ARRAY_TYPE(9);return M[0]=t,M[1]=a,M[2]=n,M[3]=u,M[4]=o,M[5]=e,M[6]=i,M[7]=c,M[8]=s,M},n.set=function(t,a,n,r,u,o,e,i,c,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=u,t[4]=o,t[5]=e,t[6]=i,t[7]=c,t[8]=s,t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],u=a[5];t[1]=a[3],t[2]=a[6],t[3]=n,t[5]=a[7],t[6]=r,t[7]=u}else t[0]=a[0],t[1]=a[3],t[2]=a[6],t[3]=a[1],t[4]=a[4],t[5]=a[7],t[6]=a[2],t[7]=a[5],t[8]=a[8];return t},n.invert=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=M*e-i*s,f=-M*o+i*c,b=s*o-e*c,l=n*h+r*f+u*b;return l?(l=1/l,t[0]=h*l,t[1]=(-M*r+u*s)*l,t[2]=(i*r-u*e)*l,t[3]=f*l,t[4]=(M*n-u*c)*l,t[5]=(-i*n+u*o)*l,t[6]=b*l,t[7]=(-s*n+r*c)*l,t[8]=(e*n-r*o)*l,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8];return t[0]=e*M-i*s,t[1]=u*s-r*M,t[2]=r*i-u*e,t[3]=i*c-o*M,t[4]=n*M-u*c,t[5]=u*o-n*i,t[6]=o*s-e*c,t[7]=r*c-n*s,t[8]=n*e-r*o,t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],u=t[3],o=t[4],e=t[5],i=t[6],c=t[7],s=t[8];return a*(s*o-e*c)+n*(-s*u+e*i)+r*(c*u-o*i)},n.multiply=u,n.translate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1];return t[0]=r,t[1]=u,t[2]=o,t[3]=e,t[4]=i,t[5]=c,t[6]=f*r+b*e+s,t[7]=f*u+b*i+M,t[8]=f*o+b*c+h,t},n.rotate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=Math.sin(n),b=Math.cos(n);return t[0]=b*r+f*e,t[1]=b*u+f*i,t[2]=b*o+f*c,t[3]=b*e-f*r,t[4]=b*i-f*u,t[5]=b*c-f*o,t[6]=s,t[7]=M,t[8]=h,t},n.scale=function(t,a,n){var r=n[0],u=n[1];return t[0]=r*a[0],t[1]=r*a[1],t[2]=r*a[2],t[3]=u*a[3],t[4]=u*a[4],t[5]=u*a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=a[0],t[7]=a[1],t[8]=1,t},n.fromRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=a[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromMat2d=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=0,t[3]=a[2],t[4]=a[3],t[5]=0,t[6]=a[4],t[7]=a[5],t[8]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=n+n,i=r+r,c=u+u,s=n*e,M=r*e,h=r*i,f=u*e,b=u*i,l=u*c,m=o*e,v=o*i,E=o*c;return t[0]=1-h-l,t[3]=M-E,t[6]=f+v,t[1]=M+E,t[4]=1-s-l,t[7]=b-m,t[2]=f-v,t[5]=b+m,t[8]=1-s-h,t},n.normalFromMat4=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=a[9],f=a[10],b=a[11],l=a[12],m=a[13],v=a[14],E=a[15],P=n*i-r*e,S=n*c-u*e,d=n*s-o*e,A=r*c-u*i,x=r*s-o*i,O=u*s-o*c,p=M*m-h*l,I=M*v-f*l,L=M*E-b*l,N=h*v-f*m,R=h*E-b*m,_=f*E-b*v,y=P*_-S*R+d*N+A*L-x*I+O*p;return y?(y=1/y,t[0]=(i*_-c*R+s*N)*y,t[1]=(c*L-e*_-s*I)*y,t[2]=(e*R-i*L+s*p)*y,t[3]=(u*R-r*_-o*N)*y,t[4]=(n*_-u*L+o*I)*y,t[5]=(r*L-n*R-o*p)*y,t[6]=(m*O-v*x+E*A)*y,t[7]=(v*d-l*O-E*S)*y,t[8]=(l*x-m*d+E*P)*y,t):null},n.projection=function(t,a,n){return t[0]=2/a,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},n.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t},n.subtract=o,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]},n.equals=function(t,a){var n=t[0],u=t[1],o=t[2],e=t[3],i=t[4],c=t[5],s=t[6],M=t[7],h=t[8],f=a[0],b=a[1],l=a[2],m=a[3],v=a[4],E=a[5],P=a[6],S=a[7],d=a[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(u-b)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(e-m)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(m))&&Math.abs(i-v)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(c-E)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(s-P)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(P))&&Math.abs(M-S)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(S))&&Math.abs(h-d)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(d))},n.mul=u,n.sub=o},n "a427635f32": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib").__importStar(t("68ca94c15c"));function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function o(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],e=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],v=a[12],m=a[13],P=a[14],E=a[15],S=n[0],I=n[1],O=n[2],p=n[3];return t[0]=S*r+I*M+O*c+p*v,t[1]=S*h+I*e+O*f+p*m,t[2]=S*o+I*s+O*b+p*P,t[3]=S*u+I*i+O*l+p*E,S=n[4],I=n[5],O=n[6],p=n[7],t[4]=S*r+I*M+O*c+p*v,t[5]=S*h+I*e+O*f+p*m,t[6]=S*o+I*s+O*b+p*P,t[7]=S*u+I*i+O*l+p*E,S=n[8],I=n[9],O=n[10],p=n[11],t[8]=S*r+I*M+O*c+p*v,t[9]=S*h+I*e+O*f+p*m,t[10]=S*o+I*s+O*b+p*P,t[11]=S*u+I*i+O*l+p*E,S=n[12],I=n[13],O=n[14],p=n[15],t[12]=S*r+I*M+O*c+p*v,t[13]=S*h+I*e+O*f+p*m,t[14]=S*o+I*s+O*b+p*P,t[15]=S*u+I*i+O*l+p*E,t}function u(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=r+r,e=h+h,s=o+o,i=r*M,c=r*e,f=r*s,b=h*e,l=h*s,v=o*s,m=u*M,P=u*e,E=u*s;return t[0]=1-(b+v),t[1]=c+E,t[2]=f-P,t[3]=0,t[4]=c-E,t[5]=1-(i+v),t[6]=l+m,t[7]=0,t[8]=f+P,t[9]=l-m,t[10]=1-(i+b),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function M(t,a){var n=a[0],r=a[1],h=a[2],o=a[4],u=a[5],M=a[6],e=a[8],s=a[9],i=a[10];return t[0]=Math.hypot(n,r,h),t[1]=Math.hypot(o,u,M),t[2]=Math.hypot(e,s,i),t}function e(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t[9]=a[9]-n[9],t[10]=a[10]-n[10],t[11]=a[11]-n[11],t[12]=a[12]-n[12],t[13]=a[13]-n[13],t[14]=a[14]-n[14],t[15]=a[15]-n[15],t}n.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},n.clone=function(t){var a=new r.ARRAY_TYPE(16);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.fromValues=function(t,a,n,h,o,u,M,e,s,i,c,f,b,l,v,m){var P=new r.ARRAY_TYPE(16);return P[0]=t,P[1]=a,P[2]=n,P[3]=h,P[4]=o,P[5]=u,P[6]=M,P[7]=e,P[8]=s,P[9]=i,P[10]=c,P[11]=f,P[12]=b,P[13]=l,P[14]=v,P[15]=m,P},n.set=function(t,a,n,r,h,o,u,M,e,s,i,c,f,b,l,v,m){return t[0]=a,t[1]=n,t[2]=r,t[3]=h,t[4]=o,t[5]=u,t[6]=M,t[7]=e,t[8]=s,t[9]=i,t[10]=c,t[11]=f,t[12]=b,t[13]=l,t[14]=v,t[15]=m,t},n.identity=h,n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],h=a[3],o=a[6],u=a[7],M=a[11];t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=n,t[6]=a[9],t[7]=a[13],t[8]=r,t[9]=o,t[11]=a[14],t[12]=h,t[13]=u,t[14]=M}else t[0]=a[0],t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=a[1],t[5]=a[5],t[6]=a[9],t[7]=a[13],t[8]=a[2],t[9]=a[6],t[10]=a[10],t[11]=a[14],t[12]=a[3],t[13]=a[7],t[14]=a[11],t[15]=a[15];return t},n.invert=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],e=a[6],s=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],v=a[13],m=a[14],P=a[15],E=n*M-r*u,S=n*e-h*u,I=n*s-o*u,O=r*e-h*M,p=r*s-o*M,L=h*s-o*e,N=i*v-c*l,R=i*m-f*l,x=i*P-b*l,y=c*m-f*v,A=c*P-b*v,Y=f*P-b*m,d=E*Y-S*A+I*y+O*x-p*R+L*N;return d?(d=1/d,t[0]=(M*Y-e*A+s*y)*d,t[1]=(h*A-r*Y-o*y)*d,t[2]=(v*L-m*p+P*O)*d,t[3]=(f*p-c*L-b*O)*d,t[4]=(e*x-u*Y-s*R)*d,t[5]=(n*Y-h*x+o*R)*d,t[6]=(m*I-l*L-P*S)*d,t[7]=(i*L-f*I+b*S)*d,t[8]=(u*A-M*x+s*N)*d,t[9]=(r*x-n*A-o*N)*d,t[10]=(l*p-v*I+P*E)*d,t[11]=(c*I-i*p-b*E)*d,t[12]=(M*R-u*y-e*N)*d,t[13]=(n*y-r*R+h*N)*d,t[14]=(v*S-l*O-m*E)*d,t[15]=(i*O-c*S+f*E)*d,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],e=a[6],s=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],v=a[13],m=a[14],P=a[15];return t[0]=M*(f*P-b*m)-c*(e*P-s*m)+v*(e*b-s*f),t[1]=-(r*(f*P-b*m)-c*(h*P-o*m)+v*(h*b-o*f)),t[2]=r*(e*P-s*m)-M*(h*P-o*m)+v*(h*s-o*e),t[3]=-(r*(e*b-s*f)-M*(h*b-o*f)+c*(h*s-o*e)),t[4]=-(u*(f*P-b*m)-i*(e*P-s*m)+l*(e*b-s*f)),t[5]=n*(f*P-b*m)-i*(h*P-o*m)+l*(h*b-o*f),t[6]=-(n*(e*P-s*m)-u*(h*P-o*m)+l*(h*s-o*e)),t[7]=n*(e*b-s*f)-u*(h*b-o*f)+i*(h*s-o*e),t[8]=u*(c*P-b*v)-i*(M*P-s*v)+l*(M*b-s*c),t[9]=-(n*(c*P-b*v)-i*(r*P-o*v)+l*(r*b-o*c)),t[10]=n*(M*P-s*v)-u*(r*P-o*v)+l*(r*s-o*M),t[11]=-(n*(M*b-s*c)-u*(r*b-o*c)+i*(r*s-o*M)),t[12]=-(u*(c*m-f*v)-i*(M*m-e*v)+l*(M*f-e*c)),t[13]=n*(c*m-f*v)-i*(r*m-h*v)+l*(r*f-h*c),t[14]=-(n*(M*m-e*v)-u*(r*m-h*v)+l*(r*e-h*M)),t[15]=n*(M*f-e*c)-u*(r*f-h*c)+i*(r*e-h*M),t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],h=t[3],o=t[4],u=t[5],M=t[6],e=t[7],s=t[8],i=t[9],c=t[10],f=t[11],b=t[12],l=t[13],v=t[14],m=t[15];return(a*u-n*o)*(c*m-f*v)-(a*M-r*o)*(i*m-f*l)+(a*e-h*o)*(i*v-c*l)+(n*M-r*u)*(s*m-f*b)-(n*e-h*u)*(s*v-c*b)+(r*e-h*M)*(s*l-i*b)},n.multiply=o,n.translate=function(t,a,n){var r,h,o,u,M,e,s,i,c,f,b,l,v=n[0],m=n[1],P=n[2];return a===t?(t[12]=a[0]*v+a[4]*m+a[8]*P+a[12],t[13]=a[1]*v+a[5]*m+a[9]*P+a[13],t[14]=a[2]*v+a[6]*m+a[10]*P+a[14],t[15]=a[3]*v+a[7]*m+a[11]*P+a[15]):(r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],e=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],t[0]=r,t[1]=h,t[2]=o,t[3]=u,t[4]=M,t[5]=e,t[6]=s,t[7]=i,t[8]=c,t[9]=f,t[10]=b,t[11]=l,t[12]=r*v+M*m+c*P+a[12],t[13]=h*v+e*m+f*P+a[13],t[14]=o*v+s*m+b*P+a[14],t[15]=u*v+i*m+l*P+a[15]),t},n.scale=function(t,a,n){var r=n[0],h=n[1],o=n[2];return t[0]=a[0]*r,t[1]=a[1]*r,t[2]=a[2]*r,t[3]=a[3]*r,t[4]=a[4]*h,t[5]=a[5]*h,t[6]=a[6]*h,t[7]=a[7]*h,t[8]=a[8]*o,t[9]=a[9]*o,t[10]=a[10]*o,t[11]=a[11]*o,t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.rotate=function(t,a,n,h){var o,u,M,e,s,i,c,f,b,l,v,m,P,E,S,I,O,p,L,N,R,x,y,A,Y=h[0],d=h[1],g=h[2],T=Math.hypot(Y,d,g);return T<r.EPSILON?null:(Y*=T=1/T,d*=T,g*=T,o=Math.sin(n),M=1-(u=Math.cos(n)),e=a[0],s=a[1],i=a[2],c=a[3],f=a[4],b=a[5],l=a[6],v=a[7],m=a[8],P=a[9],E=a[10],S=a[11],I=Y*Y*M+u,O=d*Y*M+g*o,p=g*Y*M-d*o,L=Y*d*M-g*o,N=d*d*M+u,R=g*d*M+Y*o,x=Y*g*M+d*o,y=d*g*M-Y*o,A=g*g*M+u,t[0]=e*I+f*O+m*p,t[1]=s*I+b*O+P*p,t[2]=i*I+l*O+E*p,t[3]=c*I+v*O+S*p,t[4]=e*L+f*N+m*R,t[5]=s*L+b*N+P*R,t[6]=i*L+l*N+E*R,t[7]=c*L+v*N+S*R,t[8]=e*x+f*y+m*A,t[9]=s*x+b*y+P*A,t[10]=i*x+l*y+E*A,t[11]=c*x+v*y+S*A,a!==t&&(t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t)},n.rotateX=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[4],u=a[5],M=a[6],e=a[7],s=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[4]=o*h+s*r,t[5]=u*h+i*r,t[6]=M*h+c*r,t[7]=e*h+f*r,t[8]=s*h-o*r,t[9]=i*h-u*r,t[10]=c*h-M*r,t[11]=f*h-e*r,t},n.rotateY=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],e=a[3],s=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h-s*r,t[1]=u*h-i*r,t[2]=M*h-c*r,t[3]=e*h-f*r,t[8]=o*r+s*h,t[9]=u*r+i*h,t[10]=M*r+c*h,t[11]=e*r+f*h,t},n.rotateZ=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],e=a[3],s=a[4],i=a[5],c=a[6],f=a[7];return a!==t&&(t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h+s*r,t[1]=u*h+i*r,t[2]=M*h+c*r,t[3]=e*h+f*r,t[4]=s*h-o*r,t[5]=i*h-u*r,t[6]=c*h-M*r,t[7]=f*h-e*r,t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotation=function(t,a,n){var h,o,u,M=n[0],e=n[1],s=n[2],i=Math.hypot(M,e,s);return i<r.EPSILON?null:(M*=i=1/i,e*=i,s*=i,h=Math.sin(a),u=1-(o=Math.cos(a)),t[0]=M*M*u+o,t[1]=e*M*u+s*h,t[2]=s*M*u-e*h,t[3]=0,t[4]=M*e*u-s*h,t[5]=e*e*u+o,t[6]=s*e*u+M*h,t[7]=0,t[8]=M*s*u+e*h,t[9]=e*s*u-M*h,t[10]=s*s*u+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},n.fromXRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromYRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromZRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotationTranslation=u,n.fromQuat2=function(t,a){var n=new r.ARRAY_TYPE(3),h=-a[0],o=-a[1],M=-a[2],e=a[3],s=a[4],i=a[5],c=a[6],f=a[7],b=h*h+o*o+M*M+e*e;return b>0?(n[0]=2*(s*e+f*h+i*M-c*o)/b,n[1]=2*(i*e+f*o+c*h-s*M)/b,n[2]=2*(c*e+f*M+s*o-i*h)/b):(n[0]=2*(s*e+f*h+i*M-c*o),n[1]=2*(i*e+f*o+c*h-s*M),n[2]=2*(c*e+f*M+s*o-i*h)),u(t,a,n),t},n.getTranslation=function(t,a){return t[0]=a[12],t[1]=a[13],t[2]=a[14],t},n.getScaling=M,n.getRotation=function(t,a){var n=new r.ARRAY_TYPE(3);M(n,a);var h=1/n[0],o=1/n[1],u=1/n[2],e=a[0]*h,s=a[1]*o,i=a[2]*u,c=a[4]*h,f=a[5]*o,b=a[6]*u,l=a[8]*h,v=a[9]*o,m=a[10]*u,P=e+f+m,E=0;return P>0?(E=2*Math.sqrt(P+1),t[3]=.25*E,t[0]=(b-v)/E,t[1]=(l-i)/E,t[2]=(s-c)/E):e>f&&e>m?(E=2*Math.sqrt(1+e-f-m),t[3]=(b-v)/E,t[0]=.25*E,t[1]=(s+c)/E,t[2]=(l+i)/E):f>m?(E=2*Math.sqrt(1+f-e-m),t[3]=(l-i)/E,t[0]=(s+c)/E,t[1]=.25*E,t[2]=(b+v)/E):(E=2*Math.sqrt(1+m-e-f),t[3]=(s-c)/E,t[0]=(l+i)/E,t[1]=(b+v)/E,t[2]=.25*E),t},n.fromRotationTranslationScale=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=a[3],e=h+h,s=o+o,i=u+u,c=h*e,f=h*s,b=h*i,l=o*s,v=o*i,m=u*i,P=M*e,E=M*s,S=M*i,I=r[0],O=r[1],p=r[2];return t[0]=(1-(l+m))*I,t[1]=(f+S)*I,t[2]=(b-E)*I,t[3]=0,t[4]=(f-S)*O,t[5]=(1-(c+m))*O,t[6]=(v+P)*O,t[7]=0,t[8]=(b+E)*p,t[9]=(v-P)*p,t[10]=(1-(c+l))*p,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},n.fromRotationTranslationScaleOrigin=function(t,a,n,r,h){var o=a[0],u=a[1],M=a[2],e=a[3],s=o+o,i=u+u,c=M+M,f=o*s,b=o*i,l=o*c,v=u*i,m=u*c,P=M*c,E=e*s,S=e*i,I=e*c,O=r[0],p=r[1],L=r[2],N=h[0],R=h[1],x=h[2],y=(1-(v+P))*O,A=(b+I)*O,Y=(l-S)*O,d=(b-I)*p,g=(1-(f+P))*p,T=(m+E)*p,_=(l+S)*L,q=(m-E)*L,w=(1-(f+v))*L;return t[0]=y,t[1]=A,t[2]=Y,t[3]=0,t[4]=d,t[5]=g,t[6]=T,t[7]=0,t[8]=_,t[9]=q,t[10]=w,t[11]=0,t[12]=n[0]+N-(y*N+d*R+_*x),t[13]=n[1]+R-(A*N+g*R+q*x),t[14]=n[2]+x-(Y*N+T*R+w*x),t[15]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=n+n,M=r+r,e=h+h,s=n*u,i=r*u,c=r*M,f=h*u,b=h*M,l=h*e,v=o*u,m=o*M,P=o*e;return t[0]=1-c-l,t[1]=i+P,t[2]=f-m,t[3]=0,t[4]=i-P,t[5]=1-s-l,t[6]=b+v,t[7]=0,t[8]=f+m,t[9]=b-v,t[10]=1-s-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.frustum=function(t,a,n,r,h,o,u){var M=1/(n-a),e=1/(h-r),s=1/(o-u);return t[0]=2*o*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*e,t[6]=0,t[7]=0,t[8]=(n+a)*M,t[9]=(h+r)*e,t[10]=(u+o)*s,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*o*2*s,t[15]=0,t},n.perspective=function(t,a,n,r,h){var o,u=1/Math.tan(a/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=h&&h!==1/0?(o=1/(r-h),t[10]=(h+r)*o,t[14]=2*h*r*o):(t[10]=-1,t[14]=-2*r),t},n.perspectiveFromFieldOfView=function(t,a,n,r){var h=Math.tan(a.upDegrees*Math.PI/180),o=Math.tan(a.downDegrees*Math.PI/180),u=Math.tan(a.leftDegrees*Math.PI/180),M=Math.tan(a.rightDegrees*Math.PI/180),e=2/(u+M),s=2/(h+o);return t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=-(u-M)*e*.5,t[9]=(h-o)*s*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},n.ortho=function(t,a,n,r,h,o,u){var M=1/(a-n),e=1/(r-h),s=1/(o-u);return t[0]=-2*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*s,t[11]=0,t[12]=(a+n)*M,t[13]=(h+r)*e,t[14]=(u+o)*s,t[15]=1,t},n.lookAt=function(t,a,n,o){var u,M,e,s,i,c,f,b,l,v,m=a[0],P=a[1],E=a[2],S=o[0],I=o[1],O=o[2],p=n[0],L=n[1],N=n[2];return Math.abs(m-p)<r.EPSILON&&Math.abs(P-L)<r.EPSILON&&Math.abs(E-N)<r.EPSILON?h(t):(f=m-p,b=P-L,l=E-N,u=I*(l*=v=1/Math.hypot(f,b,l))-O*(b*=v),M=O*(f*=v)-S*l,e=S*b-I*f,(v=Math.hypot(u,M,e))?(u*=v=1/v,M*=v,e*=v):(u=0,M=0,e=0),s=b*e-l*M,i=l*u-f*e,c=f*M-b*u,(v=Math.hypot(s,i,c))?(s*=v=1/v,i*=v,c*=v):(s=0,i=0,c=0),t[0]=u,t[1]=s,t[2]=f,t[3]=0,t[4]=M,t[5]=i,t[6]=b,t[7]=0,t[8]=e,t[9]=c,t[10]=l,t[11]=0,t[12]=-(u*m+M*P+e*E),t[13]=-(s*m+i*P+c*E),t[14]=-(f*m+b*P+l*E),t[15]=1,t)},n.targetTo=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=r[0],e=r[1],s=r[2],i=h-n[0],c=o-n[1],f=u-n[2],b=i*i+c*c+f*f;b>0&&(i*=b=1/Math.sqrt(b),c*=b,f*=b);var l=e*f-s*c,v=s*i-M*f,m=M*c-e*i;return(b=l*l+v*v+m*m)>0&&(l*=b=1/Math.sqrt(b),v*=b,m*=b),t[0]=l,t[1]=v,t[2]=m,t[3]=0,t[4]=c*m-f*v,t[5]=f*l-i*m,t[6]=i*v-c*l,t[7]=0,t[8]=i,t[9]=c,t[10]=f,t[11]=0,t[12]=h,t[13]=o,t[14]=u,t[15]=1,t},n.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t[9]=a[9]+n[9],t[10]=a[10]+n[10],t[11]=a[11]+n[11],t[12]=a[12]+n[12],t[13]=a[13]+n[13],t[14]=a[14]+n[14],t[15]=a[15]+n[15],t},n.subtract=e,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t[9]=a[9]*n,t[10]=a[10]*n,t[11]=a[11]*n,t[12]=a[12]*n,t[13]=a[13]*n,t[14]=a[14]*n,t[15]=a[15]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t[9]=a[9]+n[9]*r,t[10]=a[10]+n[10]*r,t[11]=a[11]+n[11]*r,t[12]=a[12]+n[12]*r,t[13]=a[13]+n[13]*r,t[14]=a[14]+n[14]*r,t[15]=a[15]+n[15]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]&&t[9]===a[9]&&t[10]===a[10]&&t[11]===a[11]&&t[12]===a[12]&&t[13]===a[13]&&t[14]===a[14]&&t[15]===a[15]},n.equals=function(t,a){var n=t[0],h=t[1],o=t[2],u=t[3],M=t[4],e=t[5],s=t[6],i=t[7],c=t[8],f=t[9],b=t[10],l=t[11],v=t[12],m=t[13],P=t[14],E=t[15],S=a[0],I=a[1],O=a[2],p=a[3],L=a[4],N=a[5],R=a[6],x=a[7],y=a[8],A=a[9],Y=a[10],d=a[11],g=a[12],T=a[13],_=a[14],q=a[15];return Math.abs(n-S)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(S))&&Math.abs(h-I)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(o-O)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(u-p)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(p))&&Math.abs(M-L)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(L))&&Math.abs(e-N)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(N))&&Math.abs(s-R)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(c-y)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(b-Y)<=r.EPSILON*Math.max(1,Math.abs(b),Math.abs(Y))&&Math.abs(l-d)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(d))&&Math.abs(v-g)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(g))&&Math.abs(m-T)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(P-_)<=r.EPSILON*Math.max(1,Math.abs(P),Math.abs(_))&&Math.abs(E-q)<=r.EPSILON*Math.max(1,Math.abs(E),Math.abs(q))},n.mul=o,n.sub=e},n "eb06fc032a": function _(t,r,a){Object.defineProperty(a,"__esModule",{value:!0});const n=t("tslib"),e=n.__importStar(t("68ca94c15c")),o=n.__importStar(t("0285c50a7e")),s=n.__importStar(t("2c5eb22089")),u=n.__importStar(t("c1aa33d719"));function c(){var t=new e.ARRAY_TYPE(4);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function i(t,r,a){a*=.5;var n=Math.sin(a);return t[0]=n*r[0],t[1]=n*r[1],t[2]=n*r[2],t[3]=Math.cos(a),t}function h(t,r,a){var n=r[0],e=r[1],o=r[2],s=r[3],u=a[0],c=a[1],i=a[2],h=a[3];return t[0]=n*h+s*u+e*i-o*c,t[1]=e*h+s*c+o*u-n*i,t[2]=o*h+s*i+n*c-e*u,t[3]=s*h-n*u-e*c-o*i,t}function M(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=Math.exp(o),c=s>0?u*Math.sin(s)/s:0;return t[0]=a*c,t[1]=n*c,t[2]=e*c,t[3]=u*Math.cos(s),t}function l(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=s>0?Math.atan2(s,o)/s:0;return t[0]=a*u,t[1]=n*u,t[2]=e*u,t[3]=.5*Math.log(a*a+n*n+e*e+o*o),t}function f(t,r,a,n){var o,s,u,c,i,h=r[0],M=r[1],l=r[2],f=r[3],v=a[0],m=a[1],q=a[2],d=a[3];return(s=h*v+M*m+l*q+f*d)<0&&(s=-s,v=-v,m=-m,q=-q,d=-d),1-s>e.EPSILON?(o=Math.acos(s),u=Math.sin(o),c=Math.sin((1-n)*o)/u,i=Math.sin(n*o)/u):(c=1-n,i=n),t[0]=c*h+i*v,t[1]=c*M+i*m,t[2]=c*l+i*q,t[3]=c*f+i*d,t}function v(t,r){var a,n=r[0]+r[4]+r[8];if(n>0)a=Math.sqrt(n+1),t[3]=.5*a,a=.5/a,t[0]=(r[5]-r[7])*a,t[1]=(r[6]-r[2])*a,t[2]=(r[1]-r[3])*a;else{var e=0;r[4]>r[0]&&(e=1),r[8]>r[3*e+e]&&(e=2);var o=(e+1)%3,s=(e+2)%3;a=Math.sqrt(r[3*e+e]-r[3*o+o]-r[3*s+s]+1),t[e]=.5*a,a=.5/a,t[3]=(r[3*o+s]-r[3*s+o])*a,t[o]=(r[3*o+e]+r[3*e+o])*a,t[s]=(r[3*s+e]+r[3*e+s])*a}return t}var m,q,d,p,A,g;a.create=c,a.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},a.setAxisAngle=i,a.getAxisAngle=function(t,r){var a=2*Math.acos(r[3]),n=Math.sin(a/2);return n>e.EPSILON?(t[0]=r[0]/n,t[1]=r[1]/n,t[2]=r[2]/n):(t[0]=1,t[1]=0,t[2]=0),a},a.getAngle=function(t,r){var n=a.dot(t,r);return Math.acos(2*n*n-1)},a.multiply=h,a.rotateX=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+s*u,t[1]=e*c+o*u,t[2]=o*c-e*u,t[3]=s*c-n*u,t},a.rotateY=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c-o*u,t[1]=e*c+s*u,t[2]=o*c+n*u,t[3]=s*c-e*u,t},a.rotateZ=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+e*u,t[1]=e*c-n*u,t[2]=o*c+s*u,t[3]=s*c-o*u,t},a.calculateW=function(t,r){var a=r[0],n=r[1],e=r[2];return t[0]=a,t[1]=n,t[2]=e,t[3]=Math.sqrt(Math.abs(1-a*a-n*n-e*e)),t},a.exp=M,a.ln=l,a.pow=function(t,r,n){return l(t,r),a.scale(t,t,n),M(t,t),t},a.slerp=f,a.random=function(t){var r=e.RANDOM(),a=e.RANDOM(),n=e.RANDOM(),o=Math.sqrt(1-r),s=Math.sqrt(r);return t[0]=o*Math.sin(2*Math.PI*a),t[1]=o*Math.cos(2*Math.PI*a),t[2]=s*Math.sin(2*Math.PI*n),t[3]=s*Math.cos(2*Math.PI*n),t},a.invert=function(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=a*a+n*n+e*e+o*o,u=s?1/s:0;return t[0]=-a*u,t[1]=-n*u,t[2]=-e*u,t[3]=o*u,t},a.conjugate=function(t,r){return t[0]=-r[0],t[1]=-r[1],t[2]=-r[2],t[3]=r[3],t},a.fromMat3=v,a.fromEuler=function(t,r,a,n){var e=.5*Math.PI/180;r*=e,a*=e,n*=e;var o=Math.sin(r),s=Math.cos(r),u=Math.sin(a),c=Math.cos(a),i=Math.sin(n),h=Math.cos(n);return t[0]=o*c*h-s*u*i,t[1]=s*u*h+o*c*i,t[2]=s*c*i-o*u*h,t[3]=s*c*h+o*u*i,t},a.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},a.clone=u.clone,a.fromValues=u.fromValues,a.copy=u.copy,a.set=u.set,a.add=u.add,a.mul=h,a.scale=u.scale,a.dot=u.dot,a.lerp=u.lerp,a.length=u.length,a.len=a.length,a.squaredLength=u.squaredLength,a.sqrLen=a.squaredLength,a.normalize=u.normalize,a.exactEquals=u.exactEquals,a.equals=u.equals,a.rotationTo=(m=s.create(),q=s.fromValues(1,0,0),d=s.fromValues(0,1,0),function(t,r,n){var e=s.dot(r,n);return e<-.999999?(s.cross(m,q,r),s.len(m)<1e-6&&s.cross(m,d,r),s.normalize(m,m),i(t,m,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(s.cross(m,r,n),t[0]=m[0],t[1]=m[1],t[2]=m[2],t[3]=1+e,a.normalize(t,t))}),a.sqlerp=(p=c(),A=c(),function(t,r,a,n,e,o){return f(p,r,e,o),f(A,a,n,o),f(t,p,A,2*o*(1-o)),t}),a.setAxes=(g=o.create(),function(t,r,n,e){return g[0]=n[0],g[3]=n[1],g[6]=n[2],g[1]=e[0],g[4]=e[1],g[7]=e[2],g[2]=-r[0],g[5]=-r[1],g[8]=-r[2],a.normalize(t,v(t,g))})},n "2c5eb22089": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(){var t=new a.ARRAY_TYPE(3);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function e(t){var n=t[0],r=t[1],a=t[2];return Math.hypot(n,r,a)}function o(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function i(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function c(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return Math.hypot(r,a,u)}function M(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return r*r+a*a+u*u}function s(t){var n=t[0],r=t[1],a=t[2];return n*n+r*r+a*a}function f(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}var l;r.create=u,r.clone=function(t){var n=new a.ARRAY_TYPE(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n},r.length=e,r.fromValues=function(t,n,r){var u=new a.ARRAY_TYPE(3);return u[0]=t,u[1]=n,u[2]=r,u},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},r.set=function(t,n,r,a){return t[0]=n,t[1]=r,t[2]=a,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t},r.subtract=o,r.multiply=i,r.divide=c,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t},r.distance=h,r.squaredDistance=M,r.squaredLength=s,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=r*r+a*a+u*u;return e>0&&(e=1/Math.sqrt(e)),t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t},r.dot=f,r.cross=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2];return t[0]=u*c-e*i,t[1]=e*o-a*c,t[2]=a*i-u*o,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t},r.hermite=function(t,n,r,a,u,e){var o=e*e,i=o*(2*e-3)+1,c=o*(e-2)+e,h=o*(e-1),M=o*(3-2*e);return t[0]=n[0]*i+r[0]*c+a[0]*h+u[0]*M,t[1]=n[1]*i+r[1]*c+a[1]*h+u[1]*M,t[2]=n[2]*i+r[2]*c+a[2]*h+u[2]*M,t},r.bezier=function(t,n,r,a,u,e){var o=1-e,i=o*o,c=e*e,h=i*o,M=3*e*i,s=3*c*o,f=c*e;return t[0]=n[0]*h+r[0]*M+a[0]*s+u[0]*f,t[1]=n[1]*h+r[1]*M+a[1]*s+u[1]*f,t[2]=n[2]*h+r[2]*M+a[2]*s+u[2]*f,t},r.random=function(t,n){n=n||1;var r=2*a.RANDOM()*Math.PI,u=2*a.RANDOM()-1,e=Math.sqrt(1-u*u)*n;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t[2]=u*n,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[3]*a+r[7]*u+r[11]*e+r[15];return o=o||1,t[0]=(r[0]*a+r[4]*u+r[8]*e+r[12])/o,t[1]=(r[1]*a+r[5]*u+r[9]*e+r[13])/o,t[2]=(r[2]*a+r[6]*u+r[10]*e+r[14])/o,t},r.transformMat3=function(t,n,r){var a=n[0],u=n[1],e=n[2];return t[0]=a*r[0]+u*r[3]+e*r[6],t[1]=a*r[1]+u*r[4]+e*r[7],t[2]=a*r[2]+u*r[5]+e*r[8],t},r.transformQuat=function(t,n,r){var a=r[0],u=r[1],e=r[2],o=r[3],i=n[0],c=n[1],h=n[2],M=u*h-e*c,s=e*i-a*h,f=a*c-u*i,l=u*f-e*s,v=e*M-a*f,m=a*s-u*M,d=2*o;return M*=d,s*=d,f*=d,l*=2,v*=2,m*=2,t[0]=i+M+l,t[1]=c+s+v,t[2]=h+f+m,t},r.rotateX=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0],e[1]=u[1]*Math.cos(a)-u[2]*Math.sin(a),e[2]=u[1]*Math.sin(a)+u[2]*Math.cos(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateY=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[2]*Math.sin(a)+u[0]*Math.cos(a),e[1]=u[1],e[2]=u[2]*Math.cos(a)-u[0]*Math.sin(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateZ=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0]*Math.cos(a)-u[1]*Math.sin(a),e[1]=u[0]*Math.sin(a)+u[1]*Math.cos(a),e[2]=u[2],t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.angle=function(t,n){var r=t[0],a=t[1],u=t[2],e=n[0],o=n[1],i=n[2],c=Math.sqrt(r*r+a*a+u*u)*Math.sqrt(e*e+o*o+i*i),h=c&&f(t,n)/c;return Math.acos(Math.min(Math.max(h,-1),1))},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},r.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=n[0],i=n[1],c=n[2];return Math.abs(r-o)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(u-i)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(i))&&Math.abs(e-c)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(c))},r.sub=o,r.mul=i,r.div=c,r.dist=h,r.sqrDist=M,r.len=e,r.sqrLen=s,r.forEach=(l=u(),function(t,n,r,a,u,e){var o,i;for(n||(n=3),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)l[0]=t[o],l[1]=t[o+1],l[2]=t[o+2],u(l,l,e),t[o]=l[0],t[o+1]=l[1],t[o+2]=l[2];return t})},n "c1aa33d719": function _(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});const a=t("tslib").__importStar(t("68ca94c15c"));function u(){var t=new a.ARRAY_TYPE(4);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function e(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function o(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function i(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function c(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return Math.hypot(r,a,u,e)}function h(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return r*r+a*a+u*u+e*e}function M(t){var n=t[0],r=t[1],a=t[2],u=t[3];return Math.hypot(n,r,a,u)}function f(t){var n=t[0],r=t[1],a=t[2],u=t[3];return n*n+r*r+a*a+u*u}var s;r.create=u,r.clone=function(t){var n=new a.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.fromValues=function(t,n,r,u){var e=new a.ARRAY_TYPE(4);return e[0]=t,e[1]=n,e[2]=r,e[3]=u,e},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=e,r.multiply=o,r.divide=i,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.distance=c,r.squaredDistance=h,r.length=M,r.squaredLength=f,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*r+a*a+u*u+e*e;return o>0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=a*o,t[2]=u*o,t[3]=e*o,t},r.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},r.cross=function(t,n,r,a){var u=r[0]*a[1]-r[1]*a[0],e=r[0]*a[2]-r[2]*a[0],o=r[0]*a[3]-r[3]*a[0],i=r[1]*a[2]-r[2]*a[1],c=r[1]*a[3]-r[3]*a[1],h=r[2]*a[3]-r[3]*a[2],M=n[0],f=n[1],s=n[2],l=n[3];return t[0]=f*h-s*c+l*i,t[1]=-M*h+s*o-l*e,t[2]=M*c-f*o+l*u,t[3]=-M*i+f*e-s*u,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2],i=n[3];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t[3]=i+a*(r[3]-i),t},r.random=function(t,n){var r,u,e,o,i,c;n=n||1;do{i=(r=2*a.RANDOM()-1)*r+(u=2*a.RANDOM()-1)*u}while(i>=1);do{c=(e=2*a.RANDOM()-1)*e+(o=2*a.RANDOM()-1)*o}while(c>=1);var h=Math.sqrt((1-i)/c);return t[0]=n*r,t[1]=n*u,t[2]=n*e*h,t[3]=n*o*h,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3];return t[0]=r[0]*a+r[4]*u+r[8]*e+r[12]*o,t[1]=r[1]*a+r[5]*u+r[9]*e+r[13]*o,t[2]=r[2]*a+r[6]*u+r[10]*e+r[14]*o,t[3]=r[3]*a+r[7]*u+r[11]*e+r[15]*o,t},r.transformQuat=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2],h=r[3],M=h*a+i*e-c*u,f=h*u+c*a-o*e,s=h*e+o*u-i*a,l=-o*a-i*u-c*e;return t[0]=M*h+l*-o+f*-c-s*-i,t[1]=f*h+l*-i+s*-o-M*-c,t[2]=s*h+l*-c+M*-i-f*-o,t[3]=n[3],t},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},r.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],u=t[1],e=t[2],o=t[3],i=n[0],c=n[1],h=n[2],M=n[3];return Math.abs(r-i)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(u-c)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(e-h)<=a.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))},r.sub=e,r.mul=o,r.div=i,r.dist=c,r.sqrDist=h,r.len=M,r.sqrLen=f,r.forEach=(s=u(),function(t,n,r,a,u,e){var o,i;for(n||(n=4),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)s[0]=t[o],s[1]=t[o+1],s[2]=t[o+2],s[3]=t[o+3],u(s,s,e),t[o]=s[0],t[o+1]=s[1],t[o+2]=s[2],t[o+3]=s[3];return t})},n "277615c682": function _(t,a,n){Object.defineProperty(n,"__esModule",{value:!0});const r=t("tslib"),e=r.__importStar(t("68ca94c15c")),u=r.__importStar(t("eb06fc032a")),o=r.__importStar(t("a427635f32"));function i(t,a,n){var r=.5*n[0],e=.5*n[1],u=.5*n[2],o=a[0],i=a[1],s=a[2],c=a[3];return t[0]=o,t[1]=i,t[2]=s,t[3]=c,t[4]=r*c+e*s-u*i,t[5]=e*c+u*o-r*s,t[6]=u*c+r*i-e*o,t[7]=-r*o-e*i-u*s,t}function s(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t}function c(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[4],s=n[5],c=n[6],h=n[7],f=a[4],M=a[5],l=a[6],b=a[7],v=n[0],m=n[1],R=n[2],P=n[3];return t[0]=r*P+o*v+e*R-u*m,t[1]=e*P+o*m+u*v-r*R,t[2]=u*P+o*R+r*m-e*v,t[3]=o*P-r*v-e*m-u*R,t[4]=r*h+o*i+e*c-u*s+f*P+b*v+M*R-l*m,t[5]=e*h+o*s+u*i-r*c+M*P+b*m+l*v-f*R,t[6]=u*h+o*c+r*s-e*i+l*P+b*R+f*m-M*v,t[7]=o*h-r*i-e*s-u*c+b*P-f*v-M*m-l*R,t}n.create=function(){var t=new e.ARRAY_TYPE(8);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},n.clone=function(t){var a=new e.ARRAY_TYPE(8);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a},n.fromValues=function(t,a,n,r,u,o,i,s){var c=new e.ARRAY_TYPE(8);return c[0]=t,c[1]=a,c[2]=n,c[3]=r,c[4]=u,c[5]=o,c[6]=i,c[7]=s,c},n.fromRotationTranslationValues=function(t,a,n,r,u,o,i){var s=new e.ARRAY_TYPE(8);s[0]=t,s[1]=a,s[2]=n,s[3]=r;var c=.5*u,h=.5*o,f=.5*i;return s[4]=c*r+h*n-f*a,s[5]=h*r+f*t-c*n,s[6]=f*r+c*a-h*t,s[7]=-c*t-h*a-f*n,s},n.fromRotationTranslation=i,n.fromTranslation=function(t,a){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*a[0],t[5]=.5*a[1],t[6]=.5*a[2],t[7]=0,t},n.fromRotation=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.fromMat4=function(t,a){var n=u.create();o.getRotation(n,a);var r=new e.ARRAY_TYPE(3);return o.getTranslation(r,a),i(t,n,r),t},n.copy=s,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.set=function(t,a,n,r,e,u,o,i,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=e,t[4]=u,t[5]=o,t[6]=i,t[7]=s,t},n.getReal=u.copy,n.getDual=function(t,a){return t[0]=a[4],t[1]=a[5],t[2]=a[6],t[3]=a[7],t},n.setReal=u.copy,n.setDual=function(t,a){return t[4]=a[0],t[5]=a[1],t[6]=a[2],t[7]=a[3],t},n.getTranslation=function(t,a){var n=a[4],r=a[5],e=a[6],u=a[7],o=-a[0],i=-a[1],s=-a[2],c=a[3];return t[0]=2*(n*c+u*o+r*s-e*i),t[1]=2*(r*c+u*i+e*o-n*s),t[2]=2*(e*c+u*s+n*i-r*o),t},n.translate=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=.5*n[0],s=.5*n[1],c=.5*n[2],h=a[4],f=a[5],M=a[6],l=a[7];return t[0]=r,t[1]=e,t[2]=u,t[3]=o,t[4]=o*i+e*c-u*s+h,t[5]=o*s+u*i-r*c+f,t[6]=o*c+r*s-e*i+M,t[7]=-r*i-e*s-u*c+l,t},n.rotateX=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateX(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateY=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateY(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateZ=function(t,a,n){var r=-a[0],e=-a[1],o=-a[2],i=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*i+f*r+c*o-h*e,l=c*i+f*e+h*r-s*o,b=h*i+f*o+s*e-c*r,v=f*i-s*r-c*e-h*o;return u.rotateZ(t,a,n),r=t[0],e=t[1],o=t[2],i=t[3],t[4]=M*i+v*r+l*o-b*e,t[5]=l*i+v*e+b*r-M*o,t[6]=b*i+v*o+M*e-l*r,t[7]=v*i-M*r-l*e-b*o,t},n.rotateByQuatAppend=function(t,a,n){var r=n[0],e=n[1],u=n[2],o=n[3],i=a[0],s=a[1],c=a[2],h=a[3];return t[0]=i*o+h*r+s*u-c*e,t[1]=s*o+h*e+c*r-i*u,t[2]=c*o+h*u+i*e-s*r,t[3]=h*o-i*r-s*e-c*u,i=a[4],s=a[5],c=a[6],h=a[7],t[4]=i*o+h*r+s*u-c*e,t[5]=s*o+h*e+c*r-i*u,t[6]=c*o+h*u+i*e-s*r,t[7]=h*o-i*r-s*e-c*u,t},n.rotateByQuatPrepend=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[0],s=n[1],c=n[2],h=n[3];return t[0]=r*h+o*i+e*c-u*s,t[1]=e*h+o*s+u*i-r*c,t[2]=u*h+o*c+r*s-e*i,t[3]=o*h-r*i-e*s-u*c,i=n[4],s=n[5],c=n[6],h=n[7],t[4]=r*h+o*i+e*c-u*s,t[5]=e*h+o*s+u*i-r*c,t[6]=u*h+o*c+r*s-e*i,t[7]=o*h-r*i-e*s-u*c,t},n.rotateAroundAxis=function(t,a,n,r){if(Math.abs(r)<e.EPSILON)return s(t,a);var u=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),i=o*n[0]/u,c=o*n[1]/u,h=o*n[2]/u,f=Math.cos(r),M=a[0],l=a[1],b=a[2],v=a[3];t[0]=M*f+v*i+l*h-b*c,t[1]=l*f+v*c+b*i-M*h,t[2]=b*f+v*h+M*c-l*i,t[3]=v*f-M*i-l*c-b*h;var m=a[4],R=a[5],P=a[6],d=a[7];return t[4]=m*f+d*i+R*h-P*c,t[5]=R*f+d*c+P*i-m*h,t[6]=P*f+d*h+m*c-R*i,t[7]=d*f-m*i-R*c-P*h,t},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t},n.multiply=c,n.mul=c,n.scale=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t},n.dot=u.dot,n.lerp=function(t,a,r,e){var u=1-e;return n.dot(a,r)<0&&(e=-e),t[0]=a[0]*u+r[0]*e,t[1]=a[1]*u+r[1]*e,t[2]=a[2]*u+r[2]*e,t[3]=a[3]*u+r[3]*e,t[4]=a[4]*u+r[4]*e,t[5]=a[5]*u+r[5]*e,t[6]=a[6]*u+r[6]*e,t[7]=a[7]*u+r[7]*e,t},n.invert=function(t,a){var r=n.squaredLength(a);return t[0]=-a[0]/r,t[1]=-a[1]/r,t[2]=-a[2]/r,t[3]=a[3]/r,t[4]=-a[4]/r,t[5]=-a[5]/r,t[6]=-a[6]/r,t[7]=a[7]/r,t},n.conjugate=function(t,a){return t[0]=-a[0],t[1]=-a[1],t[2]=-a[2],t[3]=a[3],t[4]=-a[4],t[5]=-a[5],t[6]=-a[6],t[7]=a[7],t},n.length=u.length,n.len=n.length,n.squaredLength=u.squaredLength,n.sqrLen=n.squaredLength,n.normalize=function(t,a){var r=n.squaredLength(a);if(r>0){r=Math.sqrt(r);var e=a[0]/r,u=a[1]/r,o=a[2]/r,i=a[3]/r,s=a[4],c=a[5],h=a[6],f=a[7],M=e*s+u*c+o*h+i*f;t[0]=e,t[1]=u,t[2]=o,t[3]=i,t[4]=(s-e*M)/r,t[5]=(c-u*M)/r,t[6]=(h-o*M)/r,t[7]=(f-i*M)/r}return t},n.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]},n.equals=function(t,a){var n=t[0],r=t[1],u=t[2],o=t[3],i=t[4],s=t[5],c=t[6],h=t[7],f=a[0],M=a[1],l=a[2],b=a[3],v=a[4],m=a[5],R=a[6],P=a[7];return Math.abs(n-f)<=e.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-M)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(u-l)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(o-b)<=e.EPSILON*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(i-v)<=e.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(s-m)<=e.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-R)<=e.EPSILON*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(h-P)<=e.EPSILON*Math.max(1,Math.abs(h),Math.abs(P))}},n "c56d9ff837": function _(n,t,r){Object.defineProperty(r,"__esModule",{value:!0});const a=n("tslib").__importStar(n("68ca94c15c"));function u(){var n=new a.ARRAY_TYPE(2);return a.ARRAY_TYPE!=Float32Array&&(n[0]=0,n[1]=0),n}function e(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n}function o(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n}function c(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n}function i(n,t){var r=t[0]-n[0],a=t[1]-n[1];return Math.hypot(r,a)}function f(n,t){var r=t[0]-n[0],a=t[1]-n[1];return r*r+a*a}function s(n){var t=n[0],r=n[1];return Math.hypot(t,r)}function h(n){var t=n[0],r=n[1];return t*t+r*r}var M;r.create=u,r.clone=function(n){var t=new a.ARRAY_TYPE(2);return t[0]=n[0],t[1]=n[1],t},r.fromValues=function(n,t){var r=new a.ARRAY_TYPE(2);return r[0]=n,r[1]=t,r},r.copy=function(n,t){return n[0]=t[0],n[1]=t[1],n},r.set=function(n,t,r){return n[0]=t,n[1]=r,n},r.add=function(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n},r.subtract=e,r.multiply=o,r.divide=c,r.ceil=function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n},r.floor=function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n},r.min=function(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n},r.max=function(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n},r.round=function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n},r.scale=function(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n},r.scaleAndAdd=function(n,t,r,a){return n[0]=t[0]+r[0]*a,n[1]=t[1]+r[1]*a,n},r.distance=i,r.squaredDistance=f,r.length=s,r.squaredLength=h,r.negate=function(n,t){return n[0]=-t[0],n[1]=-t[1],n},r.inverse=function(n,t){return n[0]=1/t[0],n[1]=1/t[1],n},r.normalize=function(n,t){var r=t[0],a=t[1],u=r*r+a*a;return u>0&&(u=1/Math.sqrt(u)),n[0]=t[0]*u,n[1]=t[1]*u,n},r.dot=function(n,t){return n[0]*t[0]+n[1]*t[1]},r.cross=function(n,t,r){var a=t[0]*r[1]-t[1]*r[0];return n[0]=n[1]=0,n[2]=a,n},r.lerp=function(n,t,r,a){var u=t[0],e=t[1];return n[0]=u+a*(r[0]-u),n[1]=e+a*(r[1]-e),n},r.random=function(n,t){t=t||1;var r=2*a.RANDOM()*Math.PI;return n[0]=Math.cos(r)*t,n[1]=Math.sin(r)*t,n},r.transformMat2=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u,n[1]=r[1]*a+r[3]*u,n},r.transformMat2d=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u+r[4],n[1]=r[1]*a+r[3]*u+r[5],n},r.transformMat3=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[3]*u+r[6],n[1]=r[1]*a+r[4]*u+r[7],n},r.transformMat4=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[4]*u+r[12],n[1]=r[1]*a+r[5]*u+r[13],n},r.rotate=function(n,t,r,a){var u=t[0]-r[0],e=t[1]-r[1],o=Math.sin(a),c=Math.cos(a);return n[0]=u*c-e*o+r[0],n[1]=u*o+e*c+r[1],n},r.angle=function(n,t){var r=n[0],a=n[1],u=t[0],e=t[1],o=Math.sqrt(r*r+a*a)*Math.sqrt(u*u+e*e),c=o&&(r*u+a*e)/o;return Math.acos(Math.min(Math.max(c,-1),1))},r.zero=function(n){return n[0]=0,n[1]=0,n},r.str=function(n){return"vec2("+n[0]+", "+n[1]+")"},r.exactEquals=function(n,t){return n[0]===t[0]&&n[1]===t[1]},r.equals=function(n,t){var r=n[0],u=n[1],e=t[0],o=t[1];return Math.abs(r-e)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(u-o)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(o))},r.len=s,r.sub=e,r.mul=o,r.div=c,r.dist=i,r.sqrDist=f,r.sqrLen=h,r.forEach=(M=u(),function(n,t,r,a,u,e){var o,c;for(t||(t=2),r||(r=0),c=a?Math.min(a*t+r,n.length):n.length,o=r;o<c;o+=t)M[0]=n[o],M[1]=n[o+1],u(M,M,e),n[o]=M[0],n[o+1]=M[1];return n})},n }, "4e90918c0a", {"index":"4e90918c0a","models/index":"22ae8fda70","models/ace":"3343056bd8","models/layout":"ba20932521","models/audio":"66d52165db","models/comm_manager":"71a9759436","models/deckgl":"f6b9b1d914","models/tooltips":"064eac2866","models/html":"ae707e931d","models/json":"9ba5b8422a","models/file_download":"a94e371ba4","models/katex":"7b859fb3cf","models/mathjax":"0c21036737","models/player":"000f20fdd3","models/plotly":"2363c12dd6","models/util":"990b5dd5c7","models/progress":"76307e5afa","models/state":"38b2bc9574","models/vega":"90d1f929bd","models/video":"b0c3e9e9c2","models/videostream":"3c7145a2fa","models/vtk/index":"ecfbb965eb","models/vtk/vtk":"5b5e56e89a","models/vtk/vtk_layout":"c704c63c0a","models/vtk/vtk_utils":"ba07c3d566","models/vtk/vtkvolume":"729dd26c71","models/vtk/vtkaxes":"e23461e5d7"}, {});n })nnn /* END panel.min.js */n },n function(Bokeh) {} // ensure no trailing comma for IEn ];nn function run_inline_js() {n if ((root.Bokeh !== undefined) || (force === true)) {n for (var i = 0; i < inline_js.length; i++) {n inline_js[i].call(root, root.Bokeh);n }} else if (Date.now() < root._bokeh_timeout) {n setTimeout(run_inline_js, 100);n } else if (!root._bokeh_failed_load) {n console.log("Bokeh: BokehJS failed to load within specified timeout.");n root._bokeh_failed_load = true;n }n }nn if (root._bokeh_is_loading === 0) {n console.debug("Bokeh: BokehJS loaded, going straight to plotting");n run_inline_js();n } else {n load_libs(css_urls, js_urls, function() {n console.debug("Bokeh: BokehJS plotting callback run at", now());n run_inline_js();n });n }n}(window));”
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “application/javascript”: [
“n”, “if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {n”, ” window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}n”, “}n”, “n”, “n”, ” function JupyterCommManager() {n”, ” }n”, “n”, ” JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {n”, ” if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {n”, ” var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;n”, ” comm_manager.register_target(comm_id, function(comm) {n”, ” comm.on_msg(msg_handler);n”, ” });n”, ” } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {n”, ” window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {n”, ” comm.onMsg = msg_handler;n”, ” });n”, ” } else if (typeof google != ‘undefined’ && google.colab.kernel != null) {n”, ” google.colab.kernel.comms.registerTarget(comm_id, (comm) => {n”, ” var messages = comm.messages[Symbol.asyncIterator]();n”, ” function processIteratorResult(result) {n”, ” var message = result.value;n”, ” console.log(message)n”, ” var content = {data: message.data, comm_id};n”, ” var buffers = []n”, ” for (var buffer of message.buffers || []) {n”, ” buffers.push(new DataView(buffer))n”, ” }n”, ” var metadata = message.metadata || {};n”, ” var msg = {content, buffers, metadata}n”, ” msg_handler(msg);n”, ” return messages.next().then(processIteratorResult);n”, ” }n”, ” return messages.next().then(processIteratorResult);n”, ” })n”, ” }n”, ” }n”, “n”, ” JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {n”, ” if (comm_id in window.PyViz.comms) {n”, ” return window.PyViz.comms[comm_id];n”, ” } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {n”, ” var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;n”, ” var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);n”, ” if (msg_handler) {n”, ” comm.on_msg(msg_handler);n”, ” }n”, ” } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {n”, ” var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);n”, ” comm.open();n”, ” if (msg_handler) {n”, ” comm.onMsg = msg_handler;n”, ” }n”, ” } else if (typeof google != ‘undefined’ && google.colab.kernel != null) {n”, ” var comm_promise = google.colab.kernel.comms.open(comm_id)n”, ” comm_promise.then((comm) => {n”, ” window.PyViz.comms[comm_id] = comm;n”, ” if (msg_handler) {n”, ” var messages = comm.messages[Symbol.asyncIterator]();n”, ” function processIteratorResult(result) {n”, ” var message = result.value;n”, ” var content = {data: message.data};n”, ” var metadata = message.metadata || {comm_id};n”, ” var msg = {content, metadata}n”, ” msg_handler(msg);n”, ” return messages.next().then(processIteratorResult);n”, ” }n”, ” return messages.next().then(processIteratorResult);n”, ” }n”, ” }) n”, ” var sendClosure = (data, metadata, buffers, disposeOnDone) => {n”, ” return comm_promise.then((comm) => {n”, ” comm.send(data, metadata, buffers, disposeOnDone);n”, ” });n”, ” };n”, ” var comm = {n”, ” send: sendClosuren”, ” };n”, ” }n”, ” window.PyViz.comms[comm_id] = comm;n”, ” return comm;n”, ” }n”, ” window.PyViz.comm_manager = new JupyterCommManager();n”, ” n”, “n”, “n”, “var JS_MIME_TYPE = ‘application/javascript’;n”, “var HTML_MIME_TYPE = ‘text/html’;n”, “var EXEC_MIME_TYPE = ‘application/vnd.holoviews_exec.v0+json’;n”, “var CLASS_NAME = ‘output’;n”, “n”, “/n”, ” * Render data to the DOM noden”, ” */n”, “function render(props, node) {n”, ” var div = document.createElement("div");n”, ” var script = document.createElement("script");n”, ” node.appendChild(div);n”, ” node.appendChild(script);n”, “}n”, “n”, “/n”, ” * Handle when a new output is addedn”, ” /n”, “function handle_add_output(event, handle) {n”, ” var output_area = handle.output_area;n”, ” var output = handle.output;n”, ” if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {n”, ” returnn”, ” }n”, ” var id = output.metadata[EXEC_MIME_TYPE]["id"];n”, ” var toinsert = output_area.element.find("." + CLASS_NAME.split(’ ‘)[0]);n”, ” if (id !== undefined) {n”, ” var nchildren = toinsert.length;n”, ” var html_node = toinsert[nchildren-1].children[0];n”, ” html_node.innerHTML = output.data[HTML_MIME_TYPE];n”, ” var scripts = [];n”, ” var nodelist = html_node.querySelectorAll("script");n”, ” for (var i in nodelist) {n”, ” if (nodelist.hasOwnProperty(i)) {n”, ” scripts.push(nodelist[i])n”, ” }n”, ” }n”, “n”, ” scripts.forEach( function (oldScript) {n”, ” var newScript = document.createElement("script");n”, ” var attrs = [];n”, ” var nodemap = oldScript.attributes;n”, ” for (var j in nodemap) {n”, ” if (nodemap.hasOwnProperty(j)) {n”, ” attrs.push(nodemap[j])n”, ” }n”, ” }n”, ” attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });n”, ” newScript.appendChild(document.createTextNode(oldScript.innerHTML));n”, ” oldScript.parentNode.replaceChild(newScript, oldScript);n”, ” });n”, ” if (JS_MIME_TYPE in output.data) {n”, ” toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];n”, ” }n”, ” output_area._hv_plot_id = id;n”, ” if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {n”, ” window.PyViz.plot_index[id] = Bokeh.index[id];n”, ” } else {n”, ” window.PyViz.plot_index[id] = null;n”, ” }n”, ” } else if (output.metadata[EXEC_MIME_TYPE]["server_id"] !== undefined) {n”, ” var bk_div = document.createElement("div");n”, ” bk_div.innerHTML = output.data[HTML_MIME_TYPE];n”, ” var script_attrs = bk_div.children[0].attributes;n”, ” for (var i = 0; i < script_attrs.length; i++) {n”, ” toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);n”, ” }n”, ” // store reference to server id on output_arean”, ” output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE]["server_id"];n”, ” }n”, “}n”, “n”, “/*n”, ” * Handle when an output is cleared or removedn”, ” /n”, “function handle_clear_output(event, handle) {n”, ” var id = handle.cell.output_area._hv_plot_id;n”, ” var server_id = handle.cell.output_area._bokeh_server_id;n”, ” if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }n”, ” var comm = window.PyViz.comm_manager.get_client_comm("hv-extension-comm", "hv-extension-comm", function () {});n”, ” if (server_id !== null) {n”, ” comm.send({event_type: ‘server_delete’, ‘id’: server_id});n”, ” return;n”, ” } else if (comm !== null) {n”, ” comm.send({event_type: ‘delete’, ‘id’: id});n”, ” }n”, ” delete PyViz.plot_index[id];n”, ” if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {n”, ” var doc = window.Bokeh.index[id].model.documentn”, ” doc.clear();n”, ” const i = window.Bokeh.documents.indexOf(doc);n”, ” if (i > -1) {n”, ” window.Bokeh.documents.splice(i, 1);n”, ” }n”, ” }n”, “}n”, “n”, “/*n”, ” * Handle kernel restart eventn”, ” /n”, “function handle_kernel_cleanup(event, handle) {n”, ” delete PyViz.comms["hv-extension-comm"];n”, ” window.PyViz.plot_index = {}n”, “}n”, “n”, “/*n”, ” * Handle update_display_data messagesn”, ” */n”, “function handle_update_output(event, handle) {n”, ” handle_clear_output(event, {cell: {output_area: handle.output_area}})n”, ” handle_add_output(event, handle)n”, “}n”, “n”, “function register_renderer(events, OutputArea) {n”, ” function append_mime(data, metadata, element) {n”, ” // create a DOM node to render ton”, ” var toinsert = this.create_output_subarea(n”, ” metadata,n”, ” CLASS_NAME,n”, ” EXEC_MIME_TYPEn”, ” );n”, ” this.keyboard_manager.register_events(toinsert);n”, ” // Render to noden”, ” var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};n”, ” render(props, toinsert[0]);n”, ” element.append(toinsert);n”, ” return toinsertn”, ” }n”, “n”, ” events.on(‘output_added.OutputArea’, handle_add_output);n”, ” events.on(‘output_updated.OutputArea’, handle_update_output);n”, ” events.on(‘clear_output.CodeCell’, handle_clear_output);n”, ” events.on(‘delete.Cell’, handle_clear_output);n”, ” events.on(‘kernel_ready.Kernel’, handle_kernel_cleanup);n”, “n”, ” OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {n”, ” safe: true,n”, ” index: 0n”, ” });n”, “}n”, “n”, “if (window.Jupyter !== undefined) {n”, ” try {n”, ” var events = require(‘base/js/events’);n”, ” var OutputArea = require(‘notebook/js/outputarea’).OutputArea;n”, ” if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {n”, ” register_renderer(events, OutputArea);n”, ” }n”, ” } catch(err) {n”, ” }n”, “}n”
], “application/vnd.holoviews_load.v0+json”: “nif ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {n window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}n}nnn function JupyterCommManager() {n }nn JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {n if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;n comm_manager.register_target(comm_id, function(comm) {n comm.on_msg(msg_handler);n });n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {n window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {n comm.onMsg = msg_handler;n });n } else if (typeof google != ‘undefined’ && google.colab.kernel != null) {n google.colab.kernel.comms.registerTarget(comm_id, (comm) => {n var messages = comm.messages[Symbol.asyncIterator]();n function processIteratorResult(result) {n var message = result.value;n console.log(message)n var content = {data: message.data, comm_id};n var buffers = []n for (var buffer of message.buffers || []) {n buffers.push(new DataView(buffer))n }n var metadata = message.metadata || {};n var msg = {content, buffers, metadata}n msg_handler(msg);n return messages.next().then(processIteratorResult);n }n return messages.next().then(processIteratorResult);n })n }n }nn JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {n if (comm_id in window.PyViz.comms) {n return window.PyViz.comms[comm_id];n } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;n var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);n if (msg_handler) {n comm.on_msg(msg_handler);n }n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {n var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);n comm.open();n if (msg_handler) {n comm.onMsg = msg_handler;n }n } else if (typeof google != ‘undefined’ && google.colab.kernel != null) {n var comm_promise = google.colab.kernel.comms.open(comm_id)n comm_promise.then((comm) => {n window.PyViz.comms[comm_id] = comm;n if (msg_handler) {n var messages = comm.messages[Symbol.asyncIterator]();n function processIteratorResult(result) {n var message = result.value;n var content = {data: message.data};n var metadata = message.metadata || {comm_id};n var msg = {content, metadata}n msg_handler(msg);n return messages.next().then(processIteratorResult);n }n return messages.next().then(processIteratorResult);n }n }) n var sendClosure = (data, metadata, buffers, disposeOnDone) => {n return comm_promise.then((comm) => {n comm.send(data, metadata, buffers, disposeOnDone);n });n };n var comm = {n send: sendClosuren };n }n window.PyViz.comms[comm_id] = comm;n return comm;n }n window.PyViz.comm_manager = new JupyterCommManager();n nnnvar JS_MIME_TYPE = ‘application/javascript’;nvar HTML_MIME_TYPE = ‘text/html’;nvar EXEC_MIME_TYPE = ‘application/vnd.holoviews_exec.v0+json’;nvar CLASS_NAME = ‘output’;nn/n * Render data to the DOM noden */nfunction render(props, node) {n var div = document.createElement("div");n var script = document.createElement("script");n node.appendChild(div);n node.appendChild(script);n}nn/n * Handle when a new output is addedn /nfunction handle_add_output(event, handle) {n var output_area = handle.output_area;n var output = handle.output;n if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {n returnn }n var id = output.metadata[EXEC_MIME_TYPE]["id"];n var toinsert = output_area.element.find("." + CLASS_NAME.split(’ ‘)[0]);n if (id !== undefined) {n var nchildren = toinsert.length;n var html_node = toinsert[nchildren-1].children[0];n html_node.innerHTML = output.data[HTML_MIME_TYPE];n var scripts = [];n var nodelist = html_node.querySelectorAll("script");n for (var i in nodelist) {n if (nodelist.hasOwnProperty(i)) {n scripts.push(nodelist[i])n }n }nn scripts.forEach( function (oldScript) {n var newScript = document.createElement("script");n var attrs = [];n var nodemap = oldScript.attributes;n for (var j in nodemap) {n if (nodemap.hasOwnProperty(j)) {n attrs.push(nodemap[j])n }n }n attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });n newScript.appendChild(document.createTextNode(oldScript.innerHTML));n oldScript.parentNode.replaceChild(newScript, oldScript);n });n if (JS_MIME_TYPE in output.data) {n toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];n }n output_area._hv_plot_id = id;n if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {n window.PyViz.plot_index[id] = Bokeh.index[id];n } else {n window.PyViz.plot_index[id] = null;n }n } else if (output.metadata[EXEC_MIME_TYPE]["server_id"] !== undefined) {n var bk_div = document.createElement("div");n bk_div.innerHTML = output.data[HTML_MIME_TYPE];n var script_attrs = bk_div.children[0].attributes;n for (var i = 0; i < script_attrs.length; i++) {n toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);n }n // store reference to server id on output_arean output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE]["server_id"];n }n}nn/*n * Handle when an output is cleared or removedn /nfunction handle_clear_output(event, handle) {n var id = handle.cell.output_area._hv_plot_id;n var server_id = handle.cell.output_area._bokeh_server_id;n if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }n var comm = window.PyViz.comm_manager.get_client_comm("hv-extension-comm", "hv-extension-comm", function () {});n if (server_id !== null) {n comm.send({event_type: ‘server_delete’, ‘id’: server_id});n return;n } else if (comm !== null) {n comm.send({event_type: ‘delete’, ‘id’: id});n }n delete PyViz.plot_index[id];n if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {n var doc = window.Bokeh.index[id].model.documentn doc.clear();n const i = window.Bokeh.documents.indexOf(doc);n if (i > -1) {n window.Bokeh.documents.splice(i, 1);n }n }n}nn/*n * Handle kernel restart eventn /nfunction handle_kernel_cleanup(event, handle) {n delete PyViz.comms["hv-extension-comm"];n window.PyViz.plot_index = {}n}nn/*n * Handle update_display_data messagesn */nfunction handle_update_output(event, handle) {n handle_clear_output(event, {cell: {output_area: handle.output_area}})n handle_add_output(event, handle)n}nnfunction register_renderer(events, OutputArea) {n function append_mime(data, metadata, element) {n // create a DOM node to render ton var toinsert = this.create_output_subarea(n metadata,n CLASS_NAME,n EXEC_MIME_TYPEn );n this.keyboard_manager.register_events(toinsert);n // Render to noden var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};n render(props, toinsert[0]);n element.append(toinsert);n return toinsertn }nn events.on(‘output_added.OutputArea’, handle_add_output);n events.on(‘output_updated.OutputArea’, handle_update_output);n events.on(‘clear_output.CodeCell’, handle_clear_output);n events.on(‘delete.Cell’, handle_clear_output);n events.on(‘kernel_ready.Kernel’, handle_kernel_cleanup);nn OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {n safe: true,n index: 0n });n}nnif (window.Jupyter !== undefined) {n try {n var events = require(‘base/js/events’);n var OutputArea = require(‘notebook/js/outputarea’).OutputArea;n if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {n register_renderer(events, OutputArea);n }n } catch(err) {n }n}n”
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “text/html”: [
“n”, “<div class="logo-block">n”, “<img src=’data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzn”, “AAAB+wAAAfsBxc2miwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA6zSURBn”, “VHic7ZtpeFRVmsf/5966taWqUlUJ2UioBBJiIBAwCZtog9IOgjqACsogKtqirT2ttt069nQ/zDztn”, “tI4+CrJIREFaFgWhBXpUNhHZQoKBkIUASchWla1S+3ar7r1nPkDaCAnZKoQP/D7mnPOe9/xy76n3n”, “nFSAW9ziFoPFNED2LLK5wcyBDObkb8ZkxuaoSYlI6ZcOKq1eWFdedqNzGHQBk9RMEwFAASkk0Xw3n”, “ETacDNi2vtvc7L0ROdw0AjoSotQVkKSvHQz/wRO1lScGModBFbDMaNRN1A4tUBCS3lk7BWhQkgpDn”, “lG4852/+7DWr1R3uHAZVQDsbh6ZPN7CyxUrCzJMRouusj0ipRwD2uKm0Zn5d2dFwzX1TCGhnmdGon”, “G62Nna+isiUqhkzuKrkQaJlPEv5mFl2fvGg2t/VnzkEV8F5ioioOEWkLG86fvbpthynjdhXYZziQn”, “x1hC9J2NFyi8vCTt91Fh04KGip0AaG9zuCk2wQCVyoNU3Hjezee9bq92duzzTmxsRJoy+jEZZZYon”, “GTKJ6SJngdJqAfRzpze0+jHreUtPc7gpBLQnIYK6BYp/uGhw9YK688eu7v95ysgshcg9qSLMo3JCn”, “4jqLKQFBgdKDPoQ+Pltb8dUyQLpeDjeVgI6EgLIQFT5tEl3rn2losHVsexbZ3EyT9wE1uGdkIPcyn”, “BGxn8QUq1QrA5nqW5i2tLqvrrM9NK6AdkVIvL9E9bZL/oyfMVd/jqvc8LylzRBKDJSzIExwhQzuLn”, “QYGQj4rHfFTc8mUdu3E7yoLtbTe9gI4EqVgVkug2i5+uXGo919ixbRog+3fTbQ8qJe4ZOYNfMoTIn”, “OoshUNosgO60AisX15aeI2PSIp5KiFLI9ubb1vV3Qb2ltwLakUCDAkWX7/nHKRmmGIl9VgYsUhJmn”, “2NXjKYADtM1ygne9QQDIXlk49FBstMKx66D1v4+XuQr7vqTe0VcBHQlRWiOCbmmSYe2SqtL6q5rJn”, “zsTb7lKx3FKOYC4DoqyS/B5bvLPxvD9Qtf6saxYLQGJErmDOdOMr/zo96km1nElr8bmPOBwI9COvn”, “HnFPRIwmkSOv9kcAS4heRsidOkpeWBgZM+UBrTFAXNYL5Vf2ii9c1trNzpYdaoVil3WIc+wdk+gQn”, “noie3ecCcxt9ITcLAPWt/laGEO/9U6PmzZkenTtsSMQ8uYywJVW+grCstAvCIaAdArAsIWkRDDs/n”, “KzLm2YcjY1Lv0UdW73HabE9n6V66cxSzfEmuJssTpKGVp+0vHq73FwL46eOjpMpbRAnNmJFrGJNun”, “Ukf9Yrz+3rghiumCKNXXWPhLYcjxGsIpoCMsIRoFITkW8AuyM8jC1+/QLx4bozCEJIq38+1rtpR6n”, “V/yzb8eBlRb3fo5l783N0CWolAzJHaVNzkrTzlEp2bQ2q3TC5gn6wpnoQAmwSiGh2GitnTmVMc5On”, “UyfKWUKCIsU7+fZDKwqdT6DDpvkzAX4/+AMFjk0tDp5GRXLpQ2MUmhgDp5gxQT8+Y7hyPsMi8uxFn”, “71H0oebujHALECjFKaW9Lm68n18wXp2kVzIcABytD5iXFzg+WVXkegpAsOOYziqo0OkK76GyquC3n”, “ltZAzMhhqlSNmmWTE5T6e3IN05ITFLM4GdN0vtZ3ob8Jh1NAKXFbm5PtLU/eqTSlGjkNAJjdgn/Nn”, “aedXa0tdi7+t9G0FIF49rtMSEgAs1kDLkTPO7ebm4IUWeyh1bKomXqlgMG6kJmHcSM0clYLJ8XtRn”, “1GTnbV3F6I5wCGikAb402npp1h1s7LQUZZSMIfALFOuL3UUrfnS8+rez7v9qcold5tilgHbO1fjKn”, “9ubb17u9oshxzMiUBKXWqJNxd+fqb0tLVs4lILFnK71H0Ind7uiPgACVcFJlrb0tV6DzxqqTIhUMn”, “CwDf1/rrVhTa33/3pGPxJYdQ2l2cbgVcQSosdx8uqnDtbGjh9SlDVSMNWhlnilfqZk42Th2ZpLpfn”, “xrHec5e815zrr0dfBZSwzkZfqsv+1FS1KUknUwPARVvItfKUY+cn57yP7qv07UE3p8B2uhUwLk09n”, “e0SCOrK+hbdYHYLjRIl71wWzv9jpEoeOHhGRrJAzyEyNiJuUqX0g2sBN5kGK6y2Blp5M3lsB9Qh4n”, “y2Ja6x6+i0ucmKgwMATwhSjdUu49tKrQ/pvN5d53ml2CGwCmJipmKjgmyuaXzNeL2a0AkQ01Th5jn”, “2DktO3Jyk8f9vcOBQHV94OK+fPumJmvQHxJoWkaKWq9Vs+yUsbq0zGT1I4RgeH2b5wef7+c7bl8Fn”, “eKgoHVVZa8ZPEORzR6sT1BzDUAD/d9F78e2Tzv99v8D+fLVTqAKAsbGamKey1Mt9Ann4eH3gTXTzn”, “idWtAJ8PQWOk7NzSeQn/OTHDuEikVF1R4z8BQCy+6D1aWRfY0tTGG2OM8rRoPaeIj5ZHzJxszElNn”, “VM8K8JS5WOfv8mzRnQAKoEhmt8gyPM4lU9SmBK1MCQBnW4KONT86v1hZ1PbwSXPw4JWussVjtH9Yn”, “NCoiL9UoH/6PSu8jFrfY2t36erQHXLIEakMi1SydmzB31h3GGXFDFNPaK8Rme9B79Ixrd0WN+1ijn”, “NRQ/doRmuFLBkHSTOm5GruG+pFjFdAmorG4IXH1Qua6ASniclfFtDYt+oUjKipPrCQB7QBQ2lrgPn”, “fFzm+9XWUtcqJ3/5vDLDpJ79XHZk3u8nGZ42qlj1+ydtbxysCezrydp6ugmipNJ7WBPB5tydY0jPn”, “HaVNzs3QzeE4ZpTbI+ZbnSFPbVOw9vsfnVvqWnirPyCNGD08IlqtYkh2hjZ5dErEQzoNm+6ykyOtn”, “Lt5/PQEuSRRKo22VkydK+vvS1XEKlhCJAnsqvcVvH7f/ZU2R67eXbMEGAMiIV5oWZWiWvz5Fv2xGn”, “sjqNJQRvn3Rs2lji/lNP19VjAQDgD7FHhujZB9OGqYxRkZxixgRDVlqS6uEOFaJUVu0rPFzctrnFn”, “JqijImVp8dEKVWyUXDk92zAuMZ6bFwpBU1HrOw6AdhQgUooChb0+ItMbWJitSo5Ws3IAOGEOtL53n”, “0vHZih9sC4vtofZ7Qu6523V/fmGcds1TY3V36pUsBwAbSlxnVh2xLfAD/IAIMDf7XYIkNmXfpp2ln”, “18rkAJAy9HKFaIr/qULkeQQKy9zf1JgDB2uaeFNGijo5QsUyacNUUTOnGO42xSnv4oOwpDi1zYkcn”, “efUc3I5Gk6PhyTuVKaOGyLUAYPGIoY9Pu/atL/L92+4q9wbflRJ2Trpm/jPjdBtfnqB/dIThcl8An”, “KG7hbRuKnb8qsQsVvVlTrwQAQMUlf3kwJI24Z4JhPMtcfng5GcH49GsrxJpGvvHIaeem2ma+KSjQn”, “lIwUdYyCY8j4dE1KzijNnIP2llF2wcXNnsoapw9XxsgYAl6k+KzUXbi2yP3KR2ecf6z3BFsBICdWn”, “nvnIaG3eHybqX7vbpEqUMT+9OL4Qpe8VON7dXuFd39v19FoAABRVePbGGuXTszO0P7tu6lghUonEn”, “llRdrhArLvmKdh9u29jcFiRRkfLUxBiFNiqSU9icoZQHo5mYBI1MBgBH6wMNb+U7Pnw337H4gi1Yn”, “ciWs+uks3Z9fztUvfzxTm9Ne8XXkvQLHNytOOZeiD4e0PgkAIAYCYknKUNUDSXEKzdWNpnil7r4pn”, “xqkjTarZMtk/K8TQ6Qve78qqvXurGwIJqcOUKfUWHsm8KGvxSP68YudXq4pcj39X49uOK2X142O0n”, “Tz5/u/7TVybqH0rSya6ZBwD21/gubbrgWdDgEOx9WUhfBaC2ibcEBYm7a7x+ukrBMNcEZggyR0TEn”, “T8zUPjikQ4VosQZbTpS4vqizBKvqmvjsqnpfzaZyx9JPiz1/bfGKdgD45XB1zoIMzYbfTdS/NClBn”, “Gct0USiY3YL/g0LHy/uq/Ef6uo5+n0R/vyhp17Klpge763f8rMu6YU/zrn2nml+2WtH+Z+5IAAFcn”, “2bUTdTDOSNa9+cQY7YLsOIXhevEkCvzph7a8laecz/Un/z4/Ae04XeL3UQb57IwU9ZDr9UuKVajvn”, “nxp1+1UVIo/LjztZkKH59fO3G/JemqCfmaCRqbqbd90ZZ8FfjtkfAyD0J/9+C2h1hDwsSxvGjNDcn”, “b4zk5NfrSwiQblLHzZhg+Jf4aPlUwpDqkQqa9nimbt1/TDH8OitGMaQnj+RJS6B1fbF7SY1TqO5vn”, “/v0WAADl1f7zokgS7s7VT2DZ7pegUjBM7mjtiDZbcN4j0YrHH0rXpCtY0qPX0cVL0rv5jv/ZXendn”, “0u/EESYBAFBU4T4Qa5TflZOhTe7pmKpaP8kCVUVw1+yhXfJWvn1P3hnXi33JsTN6PnP3hHZ8Z3/hn”, “aLHzmkNPuPj7Bc/F/Q38CwjTpSwQXgE4Vmwry9tpfq/ZFgqFMy4AVDtCvi8rvMvOmv0N4YwbVgEAn”, “sPM72/KVnzfspmH7HQGCRLG2yL1+z8XwvPcdCbsAANh+xPzstgMtxeGKt+6MK3/tacfvwhWvIwMin”, “oKEBtm0H7W+UVfkc/Y1V0BhoPlDr/w1w/eu1vjIgAgDg22OtX6/eYfnEz/focrZTHAFR+PSs56/7n”, “q32nwpjazxgwAQCwcU/T62t3WL7r6/jVRa6/byp1rei+Z98ZUAEAhEPHPc8fKnTU9nbgtnOe8h0ln”, “9hcGIqmODLQAHCy2Xti6v/XNRivf43f4fFvIteu854+VHnR7q9tfBlwAAGz+pnndB9vM26UebAe8n”, “SLHujPOTPVW+rwY+sxskAAC2HrA8t2Vvc7ffP1r9o+vwR2dcr92InIAbKKC1FZ5tB1tf+/G8p8svn”, “N/9Q5zd/XR34LYCwV5JdccMEAMDBk45DH243r/X4xGvqxFa/GNpS7n6rwOwNWwHVE26oAADYurf1n”, “zx/utOzt+DMKYM0p17YtZZ5VNzqfsB2HewG1WXE8PoZ7gOclbTIvynZf9JV+fqZtfgs/8F/Nu5rBn”, “EIBmJ+8QRMmpU7EzGRsf2FzuePqYRbzh/zE26EwdrT10f6r6o8HOYzCJB9Dpff8tbnGLG8L/A/WEn”, “roTBs2RqAAAAAElFTkSuQmCC’n”, ” style=’height:25px; border-radius:12px; display: inline-block; float: left; vertical-align: middle’></img>n”, “n”, “n”, ” <img src=’data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAf9SURBVFiFvZh7cFTVHcc/59y7793sJiFAwkvAYDRqFWwdraLVlj61diRYsDjqCFbFKrYo0CltlSq1tLaC2GprGIriGwqjFu10OlrGv8RiK/IICYECSWBDkt3s695zTv9IAtlHeOn0O7Mzu797z+/3Ob/z+p0VfBq9doNFljuABwAXw2PcvGHt6bgwxhz7Ls4YZNVXxxANLENwE2D1W9PAGmAhszZ0/X9gll5yCbHoOirLzmaQs0F6F8QMZq1v/8xgNm7DYwwjgXJLYL4witQ16+sv/U9HdDmV4WrKw6B06cZC/RMrM4MZ7xz61DAbtzEXmAvUAX4pMOVecg9/MFFu3j3Gz7gQBLygS2RGumBkL0cubiFRsR3LzVBV1UMk3IrW73PT9C2lYOwhQB4ClhX1AuKpjLcV27oEjyUpNUJCg1CvcejykWTCXyQgzic2HIIBjg3pS6+uRLKAhumZvD4U+tq0jTrgkVKQQtLekfTtxIPAkhTNF6G7kZm7aPp6M9myKVQEoaYaIhEQYvD781DML/RfBGNZXAl4irJiwBa07e/y7cQnBaJghIX6ENl2GR/fGCBoz6cm5qeyEqQA5ZYA5x5eeiV0Qph4gjFAUSwAr6QllQgcxS/Jm25Cr2Tmpsk03XI9NfI31FTZBEOgVOk51adqDBNPCNPSRlkiDXbBEwOU2WxH+I7itQZ62g56OjM33suq1YsZHVtGZSUI2QdyYgkgOthQNIF7BIGDnRAJgJSgj69cUx1gB8PkOGwL4E1gPrM27gIg7NlGKLQApc7BmEnAxP5g/rw4YqBrCDB5xHkw5rdR/1qTrN/hKNo6YUwVDNpFsnjYS8RbidBPcPXFP6R6yfExuOXmN4A3jv1+8ZUwgY9D2OWjUZE6lO88jDwHI8ZixGiMKSeYTBamCoDk6kDAb6y1OcH1a6KpD/fZesoFw5FlIXAVCIiH4PxrV+p2npVDToTBmtjY8t1swh2V61E9KqWiyuPEjM8dbfxuvfa49Zayf9R136Wr8mBSf/T7bNteA8zwaGEUbFpckWwq95n59dUIywKl2fbOIS5e8bWSu0tJ1a5redAYfqkdjesodFajcgaVNWhXo1C9SrkN3Usmv3UMJrc6/DDwkwEntkEJLe67tSLhvyzK8rHDQWleve5CGk4VZEB1r+5bg2E2si+Y0QatDK6jUVkX5eg2YYlp++ZM+rfMNYamAj8Y7MAVWFqaR1f/t2xzU4IHjybBtthzuiAASqv7jTF7jOqDMAakFHgDNsFyP+FhwZHBmH9F7cutIYkQCylYYv1AZSqsn1/+bX51OMMjPSl2nAnM7hnjOx2v53YgNWAzHM9Q/9l0lQWPSCBSyokAtOBC1Rj+w/1Xs+STDp4/E5g7Rs2zm2+oeVd7PUuHKDf6A4r5EsPT5K3gfCnBXNUYnvGzb+KcCczYYWOnLpy4eOXuG2oec0PBN8XQQAnpvS35AvAykr56rWhPBiV4MvtceGLxk5Mr6A1O8IfK7rl7xJ0r9kyumuP4fa0lMqTBLJIAJqEf1J3qE92lMBndlyfRD2YBghHC4hlny7ASqCeWo5zaoDdIWfnIefNGTb9fC73QDfhyBUCNOxrGPSUBfPem9us253YTV+3mcBbdkUYfzmHiLqZbYdIGHHON2ZlemXouaJUOO6TqtdHEQuXYY8Yt+EbDgmlS6RdzkaDTv2P9A3gICiq93sWhb5mc5wVhuU3Y7m5hOc3So7qFT3SLgOXHb/cyOfMn7xROegoC/PTcn3v8gbKPgDopJFk3R/uBPWQiwQ+2/GJevRMObLUzqe/saJjQUQTTftEVMW9tWxPgAocwcj9abNcZe7s+6t2R2xXZG7zyYLp8Q1PiRBBHym5bYuXi8Qt+/LvGu9f/5YDAxABsaRNPH6Xr4D4Sk87a897SOy9v/fKwjoF2eQel95yDESGEF6gEMwKhLwKus3wOVjTtes7qzgLdXTMnNCNoEpbcrtNuq6N7Xh/+eqcbj94xQkp7mdKpW5XbtbR8Z26kgMCAf2UU5YEovRUVRHbu2b3vK1UdDFkDCyMRQxbpdv8nhKAGIa7QaQedzT07fFPny53R738JoVYBdVrnsNx9XZ9v33UeGO+AA2MMUkgqQ5UcdDLZSFeVgONnXeHqSAC5Ew1BXwko0D1Zct3dT1duOjS3MzZnEUJtBuoQAq3SGOLR4ekjn9NC5nVOaYXf9lETrUkmOJy3pOz8OKIb2A1cWhJCCEzOxU2mUPror+2/L3yyM3pkM7jTjr1nBOgkGeyQ7erxpdJsMAS9wb2F9rzMxNY1K2PMU0WtZV82VU8Wp6vbKJVo9Lx/+4cydORdxCCQ/kDGTZCWsRpLu7VD7bfKqL8V2orKTp/PtzaXy42jr6TwAuisi+7JolUG4wY+8vyrISCMtRrLKWpvjAOqx/QGhp0rjRo5xD3x98CWQuOQN8qumRMmI7jKZPUEpzNVZsj4Zbaq1to5tZZsKIydLWojhIXrJnES79EaOzv3du2NytKuxzJKAA6wF8xqEE8s2jo/1wd/khslQGxd81Zg62Bbp31XBH+iETt7Y3ELA0iU6iGDlQ5mexe0VEx4a3x8V1AaYwFJgTiwaOsDmeK2J8nMUOqsnB1A+dcA04ucCYt0urkjmflk9iT2v30q/gZn5rQPvor4n9Ou634PeBzoznes/iot/7WnClKoM/+zCIjH5kwT8ChQjTHPIPTjFV3PpU/Hx+DM/A9U3IXI4SPCYAAAAABJRU5ErkJggg==’n”, ” style=’height:15px; border-radius:12px; display: inline-block; float: left’></img>n”, ” n”, “n”, “n”, “n”, “n”, “</div>n”
]
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “text/html”: [
“n”, ” <div class="bk-root">n”, ” <a href="https://bokeh.org" target="_blank" class="bk-logo bk-logo-small bk-logo-notebook"></a>n”, ” <span id="1001">Loading BokehJS …</span>n”, ” </div>”
]
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “application/javascript”: [
“n”, “(function(root) {n”, ” function now() {n”, ” return new Date();n”, ” }n”, “n”, ” var force = true;n”, “n”, ” if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) {n”, ” root._bokeh_onload_callbacks = [];n”, ” root._bokeh_is_loading = undefined;n”, ” }n”, “n”, ” var JS_MIME_TYPE = ‘application/javascript’;n”, ” var HTML_MIME_TYPE = ‘text/html’;n”, ” var EXEC_MIME_TYPE = ‘application/vnd.bokehjs_exec.v0+json’;n”, ” var CLASS_NAME = ‘output_bokeh rendered_html’;n”, “n”, ” /n”, ” * Render data to the DOM noden”, ” */n”, ” function render(props, node) {n”, ” var script = document.createElement("script");n”, ” node.appendChild(script);n”, ” }n”, “n”, ” /n”, ” * Handle when an output is cleared or removedn”, ” /n”, ” function handleClearOutput(event, handle) {n”, ” var cell = handle.cell;n”, “n”, ” var id = cell.output_area._bokeh_element_id;n”, ” var server_id = cell.output_area._bokeh_server_id;n”, ” // Clean up Bokeh referencesn”, ” if (id != null && id in Bokeh.index) {n”, ” Bokeh.index[id].model.document.clear();n”, ” delete Bokeh.index[id];n”, ” }n”, “n”, ” if (server_id !== undefined) {n”, ” // Clean up Bokeh referencesn”, ” var cmd = "from bokeh.io.state import curstate; print(curstate().uuid_to_server[’" + server_id + "’].get_sessions()[0].document.roots[0]._id)";n”, ” cell.notebook.kernel.execute(cmd, {n”, ” iopub: {n”, ” output: function(msg) {n”, ” var id = msg.content.text.trim();n”, ” if (id in Bokeh.index) {n”, ” Bokeh.index[id].model.document.clear();n”, ” delete Bokeh.index[id];n”, ” }n”, ” }n”, ” }n”, ” });n”, ” // Destroy server and sessionn”, ” var cmd = "import bokeh.io.notebook as ion; ion.destroy_server(’" + server_id + "’)";n”, ” cell.notebook.kernel.execute(cmd);n”, ” }n”, ” }n”, “n”, ” /*n”, ” * Handle when a new output is addedn”, ” /n”, ” function handleAddOutput(event, handle) {n”, ” var output_area = handle.output_area;n”, ” var output = handle.output;n”, “n”, ” // limit handleAddOutput to display_data with EXEC_MIME_TYPE content onlyn”, ” if ((output.output_type != "display_data") || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {n”, ” returnn”, ” }n”, “n”, ” var toinsert = output_area.element.find("." + CLASS_NAME.split(’ ‘)[0]);n”, “n”, ” if (output.metadata[EXEC_MIME_TYPE]["id"] !== undefined) {n”, ” toinsert[toinsert.length - 1].firstChild.textContent = output.data[JS_MIME_TYPE];n”, ” // store reference to embed id on output_arean”, ” output_area._bokeh_element_id = output.metadata[EXEC_MIME_TYPE]["id"];n”, ” }n”, ” if (output.metadata[EXEC_MIME_TYPE]["server_id"] !== undefined) {n”, ” var bk_div = document.createElement("div");n”, ” bk_div.innerHTML = output.data[HTML_MIME_TYPE];n”, ” var script_attrs = bk_div.children[0].attributes;n”, ” for (var i = 0; i < script_attrs.length; i++) {n”, ” toinsert[toinsert.length - 1].firstChild.setAttribute(script_attrs[i].name, script_attrs[i].value);n”, ” toinsert[toinsert.length - 1].firstChild.textContent = bk_div.children[0].textContentn”, ” }n”, ” // store reference to server id on output_arean”, ” output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE]["server_id"];n”, ” }n”, ” }n”, “n”, ” function register_renderer(events, OutputArea) {n”, “n”, ” function append_mime(data, metadata, element) {n”, ” // create a DOM node to render ton”, ” var toinsert = this.create_output_subarea(n”, ” metadata,n”, ” CLASS_NAME,n”, ” EXEC_MIME_TYPEn”, ” );n”, ” this.keyboard_manager.register_events(toinsert);n”, ” // Render to noden”, ” var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};n”, ” render(props, toinsert[toinsert.length - 1]);n”, ” element.append(toinsert);n”, ” return toinsertn”, ” }n”, “n”, ” / Handle when an output is cleared or removed /n”, ” events.on(‘clear_output.CodeCell’, handleClearOutput);n”, ” events.on(‘delete.Cell’, handleClearOutput);n”, “n”, ” / Handle when a new output is added /n”, ” events.on(‘output_added.OutputArea’, handleAddOutput);n”, “n”, ” /*n”, ” * Register the mime type and append_mime function with output_arean”, ” /n”, ” OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {n”, ” / Is output safe? /n”, ” safe: true,n”, ” / Index of renderer in output_area.display_order /n”, ” index: 0n”, ” });n”, ” }n”, “n”, ” // register the mime type if in Jupyter Notebook environment and previously unregisteredn”, ” if (root.Jupyter !== undefined) {n”, ” var events = require(‘base/js/events’);n”, ” var OutputArea = require(‘notebook/js/outputarea’).OutputArea;n”, “n”, ” if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {n”, ” register_renderer(events, OutputArea);n”, ” }n”, ” }n”, “n”, ” n”, ” if (typeof (root._bokeh_timeout) === "undefined" || force === true) {n”, ” root._bokeh_timeout = Date.now() + 5000;n”, ” root._bokeh_failed_load = false;n”, ” }n”, “n”, ” var NB_LOAD_WARNING = {‘data’: {‘text/html’:n”, ” "<div style=’background-color: #fdd’>\n"+n”, ” "<p>\n"+n”, ” "BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \n"+n”, ” "may be due to a slow or bad network connection. Possible fixes:\n"+n”, ” "</p>\n"+n”, ” "<ul>\n"+n”, ” "<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\n"+n”, ” "<li>use INLINE resources instead, as so:</li>\n"+n”, ” "</ul>\n"+n”, ” "<code>\n"+n”, ” "from bokeh.resources import INLINE\n"+n”, ” "output_notebook(resources=INLINE)\n"+n”, ” "</code>\n"+n”, ” "</div>"}};n”, “n”, ” function display_loaded() {n”, ” var el = document.getElementById("1001");n”, ” if (el != null) {n”, ” el.textContent = "BokehJS is loading…";n”, ” }n”, ” if (root.Bokeh !== undefined) {n”, ” if (el != null) {n”, ” el.textContent = "BokehJS " + root.Bokeh.version + " successfully loaded.";n”, ” }n”, ” } else if (Date.now() < root._bokeh_timeout) {n”, ” setTimeout(display_loaded, 100)n”, ” }n”, ” }n”, “n”, “n”, ” function run_callbacks() {n”, ” try {n”, ” root._bokeh_onload_callbacks.forEach(function(callback) {n”, ” if (callback != null)n”, ” callback();n”, ” });n”, ” } finally {n”, ” delete root._bokeh_onload_callbacksn”, ” }n”, ” console.debug("Bokeh: all callbacks have finished");n”, ” }n”, “n”, ” function load_libs(css_urls, js_urls, callback) {n”, ” if (css_urls == null) css_urls = [];n”, ” if (js_urls == null) js_urls = [];n”, “n”, ” root._bokeh_onload_callbacks.push(callback);n”, ” if (root._bokeh_is_loading > 0) {n”, ” console.debug("Bokeh: BokehJS is being loaded, scheduling callback at", now());n”, ” return null;n”, ” }n”, ” if (js_urls == null || js_urls.length === 0) {n”, ” run_callbacks();n”, ” return null;n”, ” }n”, ” console.debug("Bokeh: BokehJS not loaded, scheduling load and callback at", now());n”, ” root._bokeh_is_loading = css_urls.length + js_urls.length;n”, “n”, ” function on_load() {n”, ” root._bokeh_is_loading–;n”, ” if (root._bokeh_is_loading === 0) {n”, ” console.debug("Bokeh: all BokehJS libraries/stylesheets loaded");n”, ” run_callbacks()n”, ” }n”, ” }n”, “n”, ” function on_error() {n”, ” console.error("failed to load " + url);n”, ” }n”, “n”, ” for (var i = 0; i < css_urls.length; i++) {n”, ” var url = css_urls[i];n”, ” const element = document.createElement("link");n”, ” element.onload = on_load;n”, ” element.onerror = on_error;n”, ” element.rel = "stylesheet";n”, ” element.type = "text/css";n”, ” element.href = url;n”, ” console.debug("Bokeh: injecting link tag for BokehJS stylesheet: ", url);n”, ” document.body.appendChild(element);n”, ” }n”, “n”, ” const hashes = {"https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js": "ufR9RFnRs6lniiaFvtJziE0YeidtAgBRH6ux2oUItHw5WTvE1zuk9uzhUU/FJXDp", "https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.0.2.min.js": "8QM/PGWBT+IssZuRcDcjzwIh1mkOmJSoNMmyYDZbCfXJg3Ap1lEvdVgFuSAwhb/J", "https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.0.2.min.js": "Jm8cH3Rg0P6UeZhVY5cLy1WzKajUT9KImCY+76hEqrcJt59/d8GPvFHjCkYgnSIn", "https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.0.2.min.js": "Ozhzj+SI7ywm74aOI/UajcWz+C0NjsPunEVyVIrxzYkB+jA+2tUw8x5xJCbVtK5I"};n”, “n”, ” for (var i = 0; i < js_urls.length; i++) {n”, ” var url = js_urls[i];n”, ” var element = document.createElement(‘script’);n”, ” element.onload = on_load;n”, ” element.onerror = on_error;n”, ” element.async = false;n”, ” element.src = url;n”, ” if (url in hashes) {n”, ” element.crossOrigin = "anonymous";n”, ” element.integrity = "sha384-" + hashes[url];n”, ” }n”, ” console.debug("Bokeh: injecting script tag for BokehJS library: ", url);n”, ” document.head.appendChild(element);n”, ” }n”, ” };n”, “n”, ” function inject_raw_css(css) {n”, ” const element = document.createElement("style");n”, ” element.appendChild(document.createTextNode(css));n”, ” document.body.appendChild(element);n”, ” }n”, “n”, ” n”, ” var js_urls = ["https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.0.2.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.0.2.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.0.2.min.js", "https://unpkg.com/@holoviz/panel@^0.9.5/dist/panel.min.js"];n”, ” var css_urls = [];n”, ” n”, “n”, ” var inline_js = [n”, ” function(Bokeh) {n”, ” inject_raw_css(".widget-box {\n\tmin-height: 20px;\n\tbackground-color: #f5f5f5;\n\tborder: 1px solid #e3e3e3 !important;\n\tborder-radius: 4px;\n\t-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\tbox-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\toverflow-x: hidden;\n\toverflow-y: hidden;\n}\n\n.scrollable {\n overflow: scroll;\n}\n\nprogress {\n\tappearance: none;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\n\tborder: none;\n\theight: 20px;\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n\tcolor: royalblue;\n\tposition: relative;\n\tmargin: 0 0 1.5em;\n}\n\nprogress[value]::-webkit-progress-bar {\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n}\n\nprogress[value]::-webkit-progress-value {\n\tposition: relative;\n\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress.active:not([value])::before {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress[value]::-moz-progress-bar {\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress:not([value])::-moz-progress-bar {\n\tborder-radius:3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n\n}\n\nprogress.active:not([value])::-moz-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.active:not([value])::-webkit-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.primary[value]::-webkit-progress-value { background-color: #007bff; }\nprogress.primary:not([value])::before { background-color: #007bff; }\nprogress.primary:not([value])::-webkit-progress-bar { background-color: #007bff; }\nprogress.primary::-moz-progress-bar { background-color: #007bff; }\n\nprogress.secondary[value]::-webkit-progress-value { background-color: #6c757d; }\nprogress.secondary:not([value])::before { background-color: #6c757d; }\nprogress.secondary:not([value])::-webkit-progress-bar { background-color: #6c757d; }\nprogress.secondary::-moz-progress-bar { background-color: #6c757d; }\n\nprogress.success[value]::-webkit-progress-value { background-color: #28a745; }\nprogress.success:not([value])::before { background-color: #28a745; }\nprogress.success:not([value])::-webkit-progress-bar { background-color: #28a745; }\nprogress.success::-moz-progress-bar { background-color: #28a745; }\n\nprogress.danger[value]::-webkit-progress-value { background-color: #dc3545; }\nprogress.danger:not([value])::before { background-color: #dc3545; }\nprogress.danger:not([value])::-webkit-progress-bar { background-color: #dc3545; }\nprogress.danger::-moz-progress-bar { background-color: #dc3545; }\n\nprogress.warning[value]::-webkit-progress-value { background-color: #ffc107; }\nprogress.warning:not([value])::before { background-color: #ffc107; }\nprogress.warning:not([value])::-webkit-progress-bar { background-color: #ffc107; }\nprogress.warning::-moz-progress-bar { background-color: #ffc107; }\n\nprogress.info[value]::-webkit-progress-value { background-color: #17a2b8; }\nprogress.info:not([value])::before { background-color: #17a2b8; }\nprogress.info:not([value])::-webkit-progress-bar { background-color: #17a2b8; }\nprogress.info::-moz-progress-bar { background-color: #17a2b8; }\n\nprogress.light[value]::-webkit-progress-value { background-color: #f8f9fa; }\nprogress.light:not([value])::before { background-color: #f8f9fa; }\nprogress.light:not([value])::-webkit-progress-bar { background-color: #f8f9fa; }\nprogress.light::-moz-progress-bar { background-color: #f8f9fa; }\n\nprogress.dark[value]::-webkit-progress-value { background-color: #343a40; }\nprogress.dark:not([value])::-webkit-progress-bar { background-color: #343a40; }\nprogress.dark:not([value])::before { background-color: #343a40; }\nprogress.dark::-moz-progress-bar { background-color: #343a40; }\n\nprogress:not([value])::-webkit-progress-bar {\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\nprogress:not([value])::before {\n\tcontent:\" \";\n\tposition:absolute;\n\theight: 20px;\n\ttop:0;\n\tleft:0;\n\tright:0;\n\tbottom:0;\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\n\n@keyframes stripes {\n from {background-position: 0%}\n to {background-position: 100%}\n}");n”, ” },n”, ” function(Bokeh) {n”, ” inject_raw_css(".codehilite .hll { background-color: #ffffcc }\n.codehilite { background: #f8f8f8; }\n.codehilite .c { color: #408080; font-style: italic } / Comment /\n.codehilite .err { border: 1px solid #FF0000 } / Error /\n.codehilite .k { color: #008000; font-weight: bold } / Keyword /\n.codehilite .o { color: #666666 } / Operator /\n.codehilite .ch { color: #408080; font-style: italic } / Comment.Hashbang /\n.codehilite .cm { color: #408080; font-style: italic } / Comment.Multiline /\n.codehilite .cp { color: #BC7A00 } / Comment.Preproc /\n.codehilite .cpf { color: #408080; font-style: italic } / Comment.PreprocFile /\n.codehilite .c1 { color: #408080; font-style: italic } / Comment.Single /\n.codehilite .cs { color: #408080; font-style: italic } / Comment.Special /\n.codehilite .gd { color: #A00000 } / Generic.Deleted /\n.codehilite .ge { font-style: italic } / Generic.Emph /\n.codehilite .gr { color: #FF0000 } / Generic.Error /\n.codehilite .gh { color: #000080; font-weight: bold } / Generic.Heading /\n.codehilite .gi { color: #00A000 } / Generic.Inserted /\n.codehilite .go { color: #888888 } / Generic.Output /\n.codehilite .gp { color: #000080; font-weight: bold } / Generic.Prompt /\n.codehilite .gs { font-weight: bold } / Generic.Strong /\n.codehilite .gu { color: #800080; font-weight: bold } / Generic.Subheading /\n.codehilite .gt { color: #0044DD } / Generic.Traceback /\n.codehilite .kc { color: #008000; font-weight: bold } / Keyword.Constant /\n.codehilite .kd { color: #008000; font-weight: bold } / Keyword.Declaration /\n.codehilite .kn { color: #008000; font-weight: bold } / Keyword.Namespace /\n.codehilite .kp { color: #008000 } / Keyword.Pseudo /\n.codehilite .kr { color: #008000; font-weight: bold } / Keyword.Reserved /\n.codehilite .kt { color: #B00040 } / Keyword.Type /\n.codehilite .m { color: #666666 } / Literal.Number /\n.codehilite .s { color: #BA2121 } / Literal.String /\n.codehilite .na { color: #7D9029 } / Name.Attribute /\n.codehilite .nb { color: #008000 } / Name.Builtin /\n.codehilite .nc { color: #0000FF; font-weight: bold } / Name.Class /\n.codehilite .no { color: #880000 } / Name.Constant /\n.codehilite .nd { color: #AA22FF } / Name.Decorator /\n.codehilite .ni { color: #999999; font-weight: bold } / Name.Entity /\n.codehilite .ne { color: #D2413A; font-weight: bold } / Name.Exception /\n.codehilite .nf { color: #0000FF } / Name.Function /\n.codehilite .nl { color: #A0A000 } / Name.Label /\n.codehilite .nn { color: #0000FF; font-weight: bold } / Name.Namespace /\n.codehilite .nt { color: #008000; font-weight: bold } / Name.Tag /\n.codehilite .nv { color: #19177C } / Name.Variable /\n.codehilite .ow { color: #AA22FF; font-weight: bold } / Operator.Word /\n.codehilite .w { color: #bbbbbb } / Text.Whitespace /\n.codehilite .mb { color: #666666 } / Literal.Number.Bin /\n.codehilite .mf { color: #666666 } / Literal.Number.Float /\n.codehilite .mh { color: #666666 } / Literal.Number.Hex /\n.codehilite .mi { color: #666666 } / Literal.Number.Integer /\n.codehilite .mo { color: #666666 } / Literal.Number.Oct /\n.codehilite .sa { color: #BA2121 } / Literal.String.Affix /\n.codehilite .sb { color: #BA2121 } / Literal.String.Backtick /\n.codehilite .sc { color: #BA2121 } / Literal.String.Char /\n.codehilite .dl { color: #BA2121 } / Literal.String.Delimiter /\n.codehilite .sd { color: #BA2121; font-style: italic } / Literal.String.Doc /\n.codehilite .s2 { color: #BA2121 } / Literal.String.Double /\n.codehilite .se { color: #BB6622; font-weight: bold } / Literal.String.Escape /\n.codehilite .sh { color: #BA2121 } / Literal.String.Heredoc /\n.codehilite .si { color: #BB6688; font-weight: bold } / Literal.String.Interpol /\n.codehilite .sx { color: #008000 } / Literal.String.Other /\n.codehilite .sr { color: #BB6688 } / Literal.String.Regex /\n.codehilite .s1 { color: #BA2121 } / Literal.String.Single /\n.codehilite .ss { color: #19177C } / Literal.String.Symbol /\n.codehilite .bp { color: #008000 } / Name.Builtin.Pseudo /\n.codehilite .fm { color: #0000FF } / Name.Function.Magic /\n.codehilite .vc { color: #19177C } / Name.Variable.Class /\n.codehilite .vg { color: #19177C } / Name.Variable.Global /\n.codehilite .vi { color: #19177C } / Name.Variable.Instance /\n.codehilite .vm { color: #19177C } / Name.Variable.Magic /\n.codehilite .il { color: #666666 } / Literal.Number.Integer.Long */\n\n.markdown h1 { margin-block-start: 0.34em }\n.markdown h2 { margin-block-start: 0.42em }\n.markdown h3 { margin-block-start: 0.5em }\n.markdown h4 { margin-block-start: 0.67em }\n.markdown h5 { margin-block-start: 0.84em }\n.markdown h6 { margin-block-start: 1.17em }\n.markdown ul { padding-inline-start: 2em }\n.markdown ol { padding-inline-start: 2em }\n.markdown strong { font-weight: 600 }\n.markdown a { color: -webkit-link }\n.markdown a { color: -moz-hyperlinkText }\n");n”, ” },n”, ” function(Bokeh) {n”, ” inject_raw_css(".json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n");n”, ” },n”, ” function(Bokeh) {n”, ” inject_raw_css("table.panel-df {\n margin-left: auto;\n margin-right: auto;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n color: black;\n font-size: 12px;\n table-layout: fixed;\n width: 100%;\n}\n\n.panel-df tr, th, td {\n text-align: right;\n vertical-align: middle;\n padding: 0.5em 0.5em !important;\n line-height: normal;\n white-space: normal;\n max-width: none;\n border: none;\n}\n\n.panel-df tbody {\n display: table-row-group;\n vertical-align: middle;\n border-color: inherit;\n}\n\n.panel-df tbody tr:nth-child(odd) {\n background: #f5f5f5;\n}\n\n.panel-df thead {\n border-bottom: 1px solid black;\n vertical-align: bottom;\n}\n\n.panel-df tr:hover {\n background: lightblue !important;\n cursor: pointer;\n}\n");n”, ” },n”, ” function(Bokeh) {n”, ” Bokeh.set_log_level("info");n”, ” },n”, ” function(Bokeh) {n”, ” n”, ” n”, ” }n”, ” ];n”, “n”, ” function run_inline_js() {n”, ” n”, ” if (root.Bokeh !== undefined || force === true) {n”, ” n”, ” for (var i = 0; i < inline_js.length; i++) {n”, ” inline_js[i].call(root, root.Bokeh);n”, ” }n”, ” if (force === true) {n”, ” display_loaded();n”, ” }} else if (Date.now() < root._bokeh_timeout) {n”, ” setTimeout(run_inline_js, 100);n”, ” } else if (!root._bokeh_failed_load) {n”, ” console.log("Bokeh: BokehJS failed to load within specified timeout.");n”, ” root._bokeh_failed_load = true;n”, ” } else if (force !== true) {n”, ” var cell = $(document.getElementById("1001")).parents(‘.cell’).data().cell;n”, ” cell.output_area.append_execute_result(NB_LOAD_WARNING)n”, ” }n”, “n”, ” }n”, “n”, ” if (root._bokeh_is_loading === 0) {n”, ” console.debug("Bokeh: BokehJS loaded, going straight to plotting");n”, ” run_inline_js();n”, ” } else {n”, ” load_libs(css_urls, js_urls, function() {n”, ” console.debug("Bokeh: BokehJS plotting callback run at", now());n”, ” run_inline_js();n”, ” });n”, ” }n”, “}(window));”
], “application/vnd.bokehjs_load.v0+json”: “n(function(root) {n function now() {n return new Date();n }nn var force = true;nn if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) {n root._bokeh_onload_callbacks = [];n root._bokeh_is_loading = undefined;n }nn nn n if (typeof (root._bokeh_timeout) === "undefined" || force === true) {n root._bokeh_timeout = Date.now() + 5000;n root._bokeh_failed_load = false;n }nn var NB_LOAD_WARNING = {‘data’: {‘text/html’:n "<div style=’background-color: #fdd’>\n"+n "<p>\n"+n "BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \n"+n "may be due to a slow or bad network connection. Possible fixes:\n"+n "</p>\n"+n "<ul>\n"+n "<li>re-rerun output_notebook() to attempt to load from CDN again, or</li>\n"+n "<li>use INLINE resources instead, as so:</li>\n"+n "</ul>\n"+n "<code>\n"+n "from bokeh.resources import INLINE\n"+n "output_notebook(resources=INLINE)\n"+n "</code>\n"+n "</div>"}};nn function display_loaded() {n var el = document.getElementById("1001");n if (el != null) {n el.textContent = "BokehJS is loading…";n }n if (root.Bokeh !== undefined) {n if (el != null) {n el.textContent = "BokehJS " + root.Bokeh.version + " successfully loaded.";n }n } else if (Date.now() < root._bokeh_timeout) {n setTimeout(display_loaded, 100)n }n }nnn function run_callbacks() {n try {n root._bokeh_onload_callbacks.forEach(function(callback) {n if (callback != null)n callback();n });n } finally {n delete root._bokeh_onload_callbacksn }n console.debug("Bokeh: all callbacks have finished");n }nn function load_libs(css_urls, js_urls, callback) {n if (css_urls == null) css_urls = [];n if (js_urls == null) js_urls = [];nn root._bokeh_onload_callbacks.push(callback);n if (root._bokeh_is_loading > 0) {n console.debug("Bokeh: BokehJS is being loaded, scheduling callback at", now());n return null;n }n if (js_urls == null || js_urls.length === 0) {n run_callbacks();n return null;n }n console.debug("Bokeh: BokehJS not loaded, scheduling load and callback at", now());n root._bokeh_is_loading = css_urls.length + js_urls.length;nn function on_load() {n root._bokeh_is_loading–;n if (root._bokeh_is_loading === 0) {n console.debug("Bokeh: all BokehJS libraries/stylesheets loaded");n run_callbacks()n }n }nn function on_error() {n console.error("failed to load " + url);n }nn for (var i = 0; i < css_urls.length; i++) {n var url = css_urls[i];n const element = document.createElement("link");n element.onload = on_load;n element.onerror = on_error;n element.rel = "stylesheet";n element.type = "text/css";n element.href = url;n console.debug("Bokeh: injecting link tag for BokehJS stylesheet: ", url);n document.body.appendChild(element);n }nn const hashes = {"https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js": "ufR9RFnRs6lniiaFvtJziE0YeidtAgBRH6ux2oUItHw5WTvE1zuk9uzhUU/FJXDp", "https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.0.2.min.js": "8QM/PGWBT+IssZuRcDcjzwIh1mkOmJSoNMmyYDZbCfXJg3Ap1lEvdVgFuSAwhb/J", "https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.0.2.min.js": "Jm8cH3Rg0P6UeZhVY5cLy1WzKajUT9KImCY+76hEqrcJt59/d8GPvFHjCkYgnSIn", "https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.0.2.min.js": "Ozhzj+SI7ywm74aOI/UajcWz+C0NjsPunEVyVIrxzYkB+jA+2tUw8x5xJCbVtK5I"};nn for (var i = 0; i < js_urls.length; i++) {n var url = js_urls[i];n var element = document.createElement(‘script’);n element.onload = on_load;n element.onerror = on_error;n element.async = false;n element.src = url;n if (url in hashes) {n element.crossOrigin = "anonymous";n element.integrity = "sha384-" + hashes[url];n }n console.debug("Bokeh: injecting script tag for BokehJS library: ", url);n document.head.appendChild(element);n }n };nn function inject_raw_css(css) {n const element = document.createElement("style");n element.appendChild(document.createTextNode(css));n document.body.appendChild(element);n }nn n var js_urls = ["https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.0.2.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.0.2.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.0.2.min.js", "https://unpkg.com/@holoviz/panel@^0.9.5/dist/panel.min.js"];n var css_urls = [];n nn var inline_js = [n function(Bokeh) {n inject_raw_css(".widget-box {\n\tmin-height: 20px;\n\tbackground-color: #f5f5f5;\n\tborder: 1px solid #e3e3e3 !important;\n\tborder-radius: 4px;\n\t-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\tbox-shadow: inset 0 1px 1px rgba(0,0,0,.05);\n\toverflow-x: hidden;\n\toverflow-y: hidden;\n}\n\n.scrollable {\n overflow: scroll;\n}\n\nprogress {\n\tappearance: none;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\n\tborder: none;\n\theight: 20px;\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n\tcolor: royalblue;\n\tposition: relative;\n\tmargin: 0 0 1.5em;\n}\n\nprogress[value]::-webkit-progress-bar {\n\tbackground-color: whiteSmoke;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0,0,0,.5) inset;\n}\n\nprogress[value]::-webkit-progress-value {\n\tposition: relative;\n\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress.active:not([value])::before {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress[value]::-moz-progress-bar {\n\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\tborder-radius:3px;\n}\n\nprogress:not([value])::-moz-progress-bar {\n\tborder-radius:3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n\n}\n\nprogress.active:not([value])::-moz-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.active:not([value])::-webkit-progress-bar {\n\tbackground-position: 10%;\n\tanimation-name: stripes;\n\tanimation-duration: 3s;\n\tanimation-timing-function: linear;\n\tanimation-iteration-count: infinite;\n}\n\nprogress.primary[value]::-webkit-progress-value { background-color: #007bff; }\nprogress.primary:not([value])::before { background-color: #007bff; }\nprogress.primary:not([value])::-webkit-progress-bar { background-color: #007bff; }\nprogress.primary::-moz-progress-bar { background-color: #007bff; }\n\nprogress.secondary[value]::-webkit-progress-value { background-color: #6c757d; }\nprogress.secondary:not([value])::before { background-color: #6c757d; }\nprogress.secondary:not([value])::-webkit-progress-bar { background-color: #6c757d; }\nprogress.secondary::-moz-progress-bar { background-color: #6c757d; }\n\nprogress.success[value]::-webkit-progress-value { background-color: #28a745; }\nprogress.success:not([value])::before { background-color: #28a745; }\nprogress.success:not([value])::-webkit-progress-bar { background-color: #28a745; }\nprogress.success::-moz-progress-bar { background-color: #28a745; }\n\nprogress.danger[value]::-webkit-progress-value { background-color: #dc3545; }\nprogress.danger:not([value])::before { background-color: #dc3545; }\nprogress.danger:not([value])::-webkit-progress-bar { background-color: #dc3545; }\nprogress.danger::-moz-progress-bar { background-color: #dc3545; }\n\nprogress.warning[value]::-webkit-progress-value { background-color: #ffc107; }\nprogress.warning:not([value])::before { background-color: #ffc107; }\nprogress.warning:not([value])::-webkit-progress-bar { background-color: #ffc107; }\nprogress.warning::-moz-progress-bar { background-color: #ffc107; }\n\nprogress.info[value]::-webkit-progress-value { background-color: #17a2b8; }\nprogress.info:not([value])::before { background-color: #17a2b8; }\nprogress.info:not([value])::-webkit-progress-bar { background-color: #17a2b8; }\nprogress.info::-moz-progress-bar { background-color: #17a2b8; }\n\nprogress.light[value]::-webkit-progress-value { background-color: #f8f9fa; }\nprogress.light:not([value])::before { background-color: #f8f9fa; }\nprogress.light:not([value])::-webkit-progress-bar { background-color: #f8f9fa; }\nprogress.light::-moz-progress-bar { background-color: #f8f9fa; }\n\nprogress.dark[value]::-webkit-progress-value { background-color: #343a40; }\nprogress.dark:not([value])::-webkit-progress-bar { background-color: #343a40; }\nprogress.dark:not([value])::before { background-color: #343a40; }\nprogress.dark::-moz-progress-bar { background-color: #343a40; }\n\nprogress:not([value])::-webkit-progress-bar {\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\nprogress:not([value])::before {\n\tcontent:\" \";\n\tposition:absolute;\n\theight: 20px;\n\ttop:0;\n\tleft:0;\n\tright:0;\n\tbottom:0;\n\tborder-radius: 3px;\n\tbackground:\n\tlinear-gradient(-45deg, transparent 33%, rgba(0, 0, 0, 0.2) 33%, rgba(0, 0, 0, 0.2) 66%, transparent 66%) left/2.5em 1.5em;\n}\n\n@keyframes stripes {\n from {background-position: 0%}\n to {background-position: 100%}\n}");n },n function(Bokeh) {n inject_raw_css(".codehilite .hll { background-color: #ffffcc }\n.codehilite { background: #f8f8f8; }\n.codehilite .c { color: #408080; font-style: italic } /* Comment /\n.codehilite .err { border: 1px solid #FF0000 } / Error /\n.codehilite .k { color: #008000; font-weight: bold } / Keyword /\n.codehilite .o { color: #666666 } / Operator /\n.codehilite .ch { color: #408080; font-style: italic } / Comment.Hashbang /\n.codehilite .cm { color: #408080; font-style: italic } / Comment.Multiline /\n.codehilite .cp { color: #BC7A00 } / Comment.Preproc /\n.codehilite .cpf { color: #408080; font-style: italic } / Comment.PreprocFile /\n.codehilite .c1 { color: #408080; font-style: italic } / Comment.Single /\n.codehilite .cs { color: #408080; font-style: italic } / Comment.Special /\n.codehilite .gd { color: #A00000 } / Generic.Deleted /\n.codehilite .ge { font-style: italic } / Generic.Emph /\n.codehilite .gr { color: #FF0000 } / Generic.Error /\n.codehilite .gh { color: #000080; font-weight: bold } / Generic.Heading /\n.codehilite .gi { color: #00A000 } / Generic.Inserted /\n.codehilite .go { color: #888888 } / Generic.Output /\n.codehilite .gp { color: #000080; font-weight: bold } / Generic.Prompt /\n.codehilite .gs { font-weight: bold } / Generic.Strong /\n.codehilite .gu { color: #800080; font-weight: bold } / Generic.Subheading /\n.codehilite .gt { color: #0044DD } / Generic.Traceback /\n.codehilite .kc { color: #008000; font-weight: bold } / Keyword.Constant /\n.codehilite .kd { color: #008000; font-weight: bold } / Keyword.Declaration /\n.codehilite .kn { color: #008000; font-weight: bold } / Keyword.Namespace /\n.codehilite .kp { color: #008000 } / Keyword.Pseudo /\n.codehilite .kr { color: #008000; font-weight: bold } / Keyword.Reserved /\n.codehilite .kt { color: #B00040 } / Keyword.Type /\n.codehilite .m { color: #666666 } / Literal.Number /\n.codehilite .s { color: #BA2121 } / Literal.String /\n.codehilite .na { color: #7D9029 } / Name.Attribute /\n.codehilite .nb { color: #008000 } / Name.Builtin /\n.codehilite .nc { color: #0000FF; font-weight: bold } / Name.Class /\n.codehilite .no { color: #880000 } / Name.Constant /\n.codehilite .nd { color: #AA22FF } / Name.Decorator /\n.codehilite .ni { color: #999999; font-weight: bold } / Name.Entity /\n.codehilite .ne { color: #D2413A; font-weight: bold } / Name.Exception /\n.codehilite .nf { color: #0000FF } / Name.Function /\n.codehilite .nl { color: #A0A000 } / Name.Label /\n.codehilite .nn { color: #0000FF; font-weight: bold } / Name.Namespace /\n.codehilite .nt { color: #008000; font-weight: bold } / Name.Tag /\n.codehilite .nv { color: #19177C } / Name.Variable /\n.codehilite .ow { color: #AA22FF; font-weight: bold } / Operator.Word /\n.codehilite .w { color: #bbbbbb } / Text.Whitespace /\n.codehilite .mb { color: #666666 } / Literal.Number.Bin /\n.codehilite .mf { color: #666666 } / Literal.Number.Float /\n.codehilite .mh { color: #666666 } / Literal.Number.Hex /\n.codehilite .mi { color: #666666 } / Literal.Number.Integer /\n.codehilite .mo { color: #666666 } / Literal.Number.Oct /\n.codehilite .sa { color: #BA2121 } / Literal.String.Affix /\n.codehilite .sb { color: #BA2121 } / Literal.String.Backtick /\n.codehilite .sc { color: #BA2121 } / Literal.String.Char /\n.codehilite .dl { color: #BA2121 } / Literal.String.Delimiter /\n.codehilite .sd { color: #BA2121; font-style: italic } / Literal.String.Doc /\n.codehilite .s2 { color: #BA2121 } / Literal.String.Double /\n.codehilite .se { color: #BB6622; font-weight: bold } / Literal.String.Escape /\n.codehilite .sh { color: #BA2121 } / Literal.String.Heredoc /\n.codehilite .si { color: #BB6688; font-weight: bold } / Literal.String.Interpol /\n.codehilite .sx { color: #008000 } / Literal.String.Other /\n.codehilite .sr { color: #BB6688 } / Literal.String.Regex /\n.codehilite .s1 { color: #BA2121 } / Literal.String.Single /\n.codehilite .ss { color: #19177C } / Literal.String.Symbol /\n.codehilite .bp { color: #008000 } / Name.Builtin.Pseudo /\n.codehilite .fm { color: #0000FF } / Name.Function.Magic /\n.codehilite .vc { color: #19177C } / Name.Variable.Class /\n.codehilite .vg { color: #19177C } / Name.Variable.Global /\n.codehilite .vi { color: #19177C } / Name.Variable.Instance /\n.codehilite .vm { color: #19177C } / Name.Variable.Magic /\n.codehilite .il { color: #666666 } / Literal.Number.Integer.Long */\n\n.markdown h1 { margin-block-start: 0.34em }\n.markdown h2 { margin-block-start: 0.42em }\n.markdown h3 { margin-block-start: 0.5em }\n.markdown h4 { margin-block-start: 0.67em }\n.markdown h5 { margin-block-start: 0.84em }\n.markdown h6 { margin-block-start: 1.17em }\n.markdown ul { padding-inline-start: 2em }\n.markdown ol { padding-inline-start: 2em }\n.markdown strong { font-weight: 600 }\n.markdown a { color: -webkit-link }\n.markdown a { color: -moz-hyperlinkText }\n");n },n function(Bokeh) {n inject_raw_css(".json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n");n },n function(Bokeh) {n inject_raw_css("table.panel-df {\n margin-left: auto;\n margin-right: auto;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n color: black;\n font-size: 12px;\n table-layout: fixed;\n width: 100%;\n}\n\n.panel-df tr, th, td {\n text-align: right;\n vertical-align: middle;\n padding: 0.5em 0.5em !important;\n line-height: normal;\n white-space: normal;\n max-width: none;\n border: none;\n}\n\n.panel-df tbody {\n display: table-row-group;\n vertical-align: middle;\n border-color: inherit;\n}\n\n.panel-df tbody tr:nth-child(odd) {\n background: #f5f5f5;\n}\n\n.panel-df thead {\n border-bottom: 1px solid black;\n vertical-align: bottom;\n}\n\n.panel-df tr:hover {\n background: lightblue !important;\n cursor: pointer;\n}\n");n },n function(Bokeh) {n Bokeh.set_log_level("info");n },n function(Bokeh) {n n n }n ];nn function run_inline_js() {n n if (root.Bokeh !== undefined || force === true) {n n for (var i = 0; i < inline_js.length; i++) {n inline_js[i].call(root, root.Bokeh);n }n if (force === true) {n display_loaded();n }} else if (Date.now() < root._bokeh_timeout) {n setTimeout(run_inline_js, 100);n } else if (!root._bokeh_failed_load) {n console.log("Bokeh: BokehJS failed to load within specified timeout.");n root._bokeh_failed_load = true;n } else if (force !== true) {n var cell = $(document.getElementById("1001")).parents(‘.cell’).data().cell;n cell.output_area.append_execute_result(NB_LOAD_WARNING)n }nn }nn if (root._bokeh_is_loading === 0) {n console.debug("Bokeh: BokehJS loaded, going straight to plotting");n run_inline_js();n } else {n load_libs(css_urls, js_urls, function() {n console.debug("Bokeh: BokehJS plotting callback run at", now());n run_inline_js();n });n }n}(window));”
}, “metadata”: {}, “output_type”: “display_data”
}
], “source”: [
“import pandas as pdn”, “n”, “import bebi103n”, “n”, “import holoviews as hvn”, “hv.extension(‘bokeh’)n”, “n”, “import bokeh.ion”, “bokeh.io.output_notebook()”
]
}, {
“cell_type”: “markdown”, “metadata”: {}, “source”: [
“<hr>n”, “n”, “The bebi103.hv.set_defaults() function (which is essentially the entirety of the hv module) sets some defaults for HoloViews plots that, in my opinion, are prettier than the defaults. To demonstrate, I will make a scatter plot and a box plot using the HoloViews defaults and then again after setting the defaults.”
]
}, {
“cell_type”: “markdown”, “metadata”: {}, “source”: [
“## Plots with HoloViews defaults”
]
}, {
“cell_type”: “code”, “execution_count”: 2, “metadata”: {}, “outputs”: [
- {
- “data”: {
- “text/html”: [
“n”, “n”, “n”, “n”, “n”, “n”, ” <div class="bk-root" id="55a22761-7d23-4155-8d06-5f5ab9ba4d80" data-root-id="1511"></div>n”
]
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “application/javascript”: [
“(function(root) {n”, ” function embed_document(root) {n”, ” n”, ” var docs_json = {"d326b225-5db0-4204-9a32-de09b47586ae":{"roots":{"references":[{"attributes":{"children":[{"id":"1087"},{"id":"1510"},{"id":"1341"}]},"id":"1511","type":"Column"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1358"},{"id":"1359"},{"id":"1360"},{"id":"1361"},{"id":"1362"}]},"id":"1364","type":"Toolbar"},{"attributes":{"source":{"id":"1155"}},"id":"1163","type":"CDSView"},{"attributes":{"source":{"id":"1115"}},"id":"1120","type":"CDSView"},{"attributes":{},"id":"1370","type":"BasicTickFormatter"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.1},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"line_alpha":{"value":0.1},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1158","type":"VBar"},{"attributes":{"fill_color":{"value":"black"},"x":{"field":"index"},"y":{"field":"x"}},"id":"1117","type":"Circle"},{"attributes":{},"id":"1524","type":"Selection"},{"attributes":{},"id":"1523","type":"UnionRenderers"},{"attributes":{"data":{"x0":["1","2","3"],"x1":["1","2","3"],"y0":{"__ndarray__":"Y1Nhxcc0/D+LOz60gYj2vyyxLSXCXuu/","dtype":"float64","shape":[3]},"y1":{"__ndarray__":"7xpsGibnA0Dk5+yFFxDvP1j94C4b/dA/","dtype":"float64","shape":[3]}},"selected":{"id":"1528"},"selection_policy":{"id":"1527"}},"id":"1127","type":"ColumnDataSource"},{"attributes":{"bottom":{"field":"bottom"},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1159","type":"VBar"},{"attributes":{},"id":"1436","type":"UnionRenderers"},{"attributes":{},"id":"1408","type":"Selection"},{"attributes":{"data":{"x0":["1","2","3"],"x1":["1","2","3"],"y0":{"__ndarray__":"986C95VmGEAWADO89AsbQCSfU+ouihNA","dtype":"float64","shape":[3]},"y1":{"__ndarray__":"0PPN8RrKEUAl4KmBSCcQQESyaynCaghA","dtype":"float64","shape":[3]}},"selected":{"id":"1526"},"selection_policy":{"id":"1525"}},"id":"1121","type":"ColumnDataSource"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#30a2da"},"line_alpha":{"value":0.1},"line_color":{"value":"#30a2da"},"size":{"units":"screen","value":2.449489742783178},"x":{"field":"x"},"y":{"field":"y"}},"id":"1378","type":"Scatter"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1103"},{"id":"1104"},{"id":"1105"},{"id":"1106"},{"id":"1107"}]},"id":"1109","type":"Toolbar"},{"attributes":{"click_policy":"mute","items":[{"id":"1389"},{"id":"1406"},{"id":"1425"}],"title":"trial"},"id":"1388","type":"Legend"},{"attributes":{},"id":"1348","type":"LinearScale"},{"attributes":{"bottom":{"field":"bottom"},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1161","type":"VBar"},{"attributes":{"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1123","type":"Segment"},{"attributes":{"data_source":{"id":"1155"},"glyph":{"id":"1157"},"hover_glyph":{"id":"1160"},"muted_glyph":{"id":"1161"},"nonselection_glyph":{"id":"1158"},"selection_glyph":{"id":"1159"},"view":{"id":"1163"}},"id":"1162","type":"GlyphRenderer"},{"attributes":{"label":{"value":"1"},"renderers":[{"id":"1380"}]},"id":"1389","type":"LegendItem"},{"attributes":{"data_source":{"id":"1115"},"glyph":{"id":"1117"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1118"},"selection_glyph":null,"view":{"id":"1120"}},"id":"1119","type":"GlyphRenderer"},{"attributes":{"fill_alpha":{"value":0.2},"fill_color":{"value":"#30a2da"},"line_alpha":{"value":0.2},"line_color":{"value":"#30a2da"},"size":{"units":"screen","value":2.449489742783178},"x":{"field":"x"},"y":{"field":"y"}},"id":"1379","type":"Scatter"},{"attributes":{},"id":"1346","type":"LinearScale"},{"attributes":{},"id":"1423","type":"UnionRenderers"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"black"},"line_alpha":{"value":0.1},"x":{"field":"index"},"y":{"field":"x"}},"id":"1118","type":"Circle"},{"attributes":{"source":{"id":"1374"}},"id":"1381","type":"CDSView"},{"attributes":{"data_source":{"id":"1374"},"glyph":{"id":"1377"},"hover_glyph":null,"muted_glyph":{"id":"1379"},"nonselection_glyph":{"id":"1378"},"selection_glyph":null,"view":{"id":"1381"}},"id":"1380","type":"GlyphRenderer"},{"attributes":{},"id":"1375","type":"Selection"},{"attributes":{"bottom":{"field":"bottom"},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1160","type":"VBar"},{"attributes":{"fill_color":{"value":"#30a2da"},"line_color":{"value":"#30a2da"},"size":{"units":"screen","value":2.449489742783178},"x":{"field":"x"},"y":{"field":"y"}},"id":"1377","type":"Scatter"},{"attributes":{"data":{"x":{"__ndarray__":"Y1Nhxcc0/D/FqJVct3URQAALPJQ3qQtA2OgIQbPb6r/u1HaxRccSQC46b7jqng1A986C95VmGECQPesDVVMAQCswiNfg6g5A/3DMOAYOIkAPUmewu/sKQNfjHdZKkhBAlY5kstNICEBSm/mZEUUEQJpw4i0euQNAErR8Etfr/D+dpE9mLVcWQIzjWUjGYxNAtlPvE372A0BXwz5yQ/sQQA==","dtype":"float64","shape":[20]},"y":{"__ndarray__":"aRRfd0bpJ0DbzxTI9EUmQLFvA6I/mihATP3uvMXNJEC8TLNpxdknQI1ViYUv7iZAttyuZ/3xJUBGDm99B/UiQJCPlIA2ASpA9P8DFWLJMEAmqG9+LHAhQIDV2G7tfCVAebqhup9IJUDxQ3x9tKgYQM0OLDXm/iFAPt/elb5DI0BVe5i5nYsnQGIx5WqXzSFAodMvXO4cGUCiHOO7NsspQA==","dtype":"float64","shape":[20]}},"selected":{"id":"1375"},"selection_policy":{"id":"1404"}},"id":"1374","type":"ColumnDataSource"},{"attributes":{"data":{"x":{"__ndarray__":"RCq4yXRcEkDOyPyH/0INQCcGgFgtgfs/3SeYU4fMBUAl4KmBSCcQQBRf/2ptXAFAjAbxvjbnCkCE8xsuMIPlvxYAM7z0CxtAjC5xcdgZ0D8z2VxR2BX5P6bbFZ16JhhAyevkGXNw9j+xUIjVXHYVQJbSgKi2AQBAsLmDBmz07L98bupFejDkPwkqjsVNAgZAYqFSkKMH6z+LOz60gYj2vxekwW87mfg/sWtzqy9z+j//L8kAXY4TQOTn7IUXEO8/+1OEiYv6EkA=","dtype":"float64","shape":[25]},"y":{"__ndarray__":"b8pMJO+9JEBPRWH78EwUQI0gBXUvPiJAyR7aMYnqI0AvNcmPTLEhQAfyjxkaHiJAcqfqdLB2EUAQ8oXkW+vgv67QhknLmShA5NqVC0JeEUB1WDF/58cXQHD1h0ThSiBAvYDq4F/bDUBm5AxmTmQXQFEVVK0NERlAvXvV8JlzEEBa1lb9+VAVQNkzcez+Rx9AmwDNOeEEDkB9APET8SoPQKZfdz/MgBZAYZfWHTc4GkAX3KT3mYUjQJD9Gtf5C/Y/+kPfJKYQJEA=","dtype":"float64","shape":[25]}},"selected":{"id":"1391"},"selection_policy":{"id":"1423"}},"id":"1390","type":"ColumnDataSource"},{"attributes":{"label":{"value":"2"},"renderers":[{"id":"1396"}]},"id":"1406","type":"LegendItem"},{"attributes":{},"id":"1525","type":"UnionRenderers"},{"attributes":{},"id":"1526","type":"Selection"},{"attributes":{"bottom":{"field":"bottom"},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1150","type":"VBar"},{"attributes":{},"id":"1360","type":"WheelZoomTool"},{"attributes":{},"id":"1391","type":"Selection"},{"attributes":{"data":{"x0":[["1",-0.2],["2",-0.2],["3",-0.2]],"x1":[["1",0.2],["2",0.2],["3",0.2]],"y0":[1.7628858289874294,-1.4083268204446735,-0.8553171850340155],"y1":[1.7628858289874294,-1.4083268204446735,-0.8553171850340155]},"selected":{"id":"1530"},"selection_policy":{"id":"1529"}},"id":"1133","type":"ColumnDataSource"},{"attributes":{"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1135","type":"Segment"},{"attributes":{"align":null,"below":[{"id":"1096"}],"center":[{"id":"1098"},{"id":"1102"}],"left":[{"id":"1099"}],"margin":null,"min_border_bottom":10,"min_border_left":10,"min_border_right":10,"min_border_top":10,"plot_height":300,"plot_width":300,"renderers":[{"id":"1119"},{"id":"1125"},{"id":"1131"},{"id":"1137"},{"id":"1143"},{"id":"1153"},{"id":"1162"}],"sizing_mode":"fixed","title":{"id":"1088"},"toolbar":{"id":"1109"},"x_range":{"id":"1085"},"x_scale":{"id":"1092"},"y_range":{"id":"1086"},"y_scale":{"id":"1094"}},"id":"1087","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"1166","type":"BasicTickFormatter"},{"attributes":{"bottom":{"field":"bottom"},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1157","type":"VBar"},{"attributes":{},"id":"1103","type":"SaveTool"},{"attributes":{"data":{"x":{"__ndarray__":"wf6s8AlB/T/+VAptLxz2P6hKq9Od+QJAisWJ3jrg5j+Vs5S7lfoEQCyxLSXCXuu/IGC2TlDr1r8kn1PqLooTQHBzTAose8Q/oPNotLbru78bpAhW1Z3iP+gOjL+9XhFAikns7XB1EEAGzXgglZTpP/+hWppmtYa/1LEITiaQCUDUqn6q/hHnP6yzTSZVPxNA","dtype":"float64","shape":[18]},"y":{"__ndarray__":"DOmPs14ZIEAE2nhl2yIXQI4zM6x16CFA76I1GrV6C0A7U5WyDV0TQIt99NMJrxdASWmGTZ88H0BfiO/9WqMgQEbChEW8LhVAnY/6IzHsEkDLQOQEWEIRQPZQqvcFNxdA2X7/8uoaFEAXhDciW/MMQDQD49DFohFAkols8F1tJkCRtA3Dz/IbQLjX0NV8SyFA","dtype":"float64","shape":[18]}},"selected":{"id":"1408"},"selection_policy":{"id":"1436"}},"id":"1407","type":"ColumnDataSource"},{"attributes":{},"id":"1527","type":"UnionRenderers"},{"attributes":{"source":{"id":"1139"}},"id":"1144","type":"CDSView"},{"attributes":{},"id":"1528","type":"Selection"},{"attributes":{"data_source":{"id":"1139"},"glyph":{"id":"1141"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1142"},"selection_glyph":null,"view":{"id":"1144"}},"id":"1143","type":"GlyphRenderer"},{"attributes":{"overlay":{"id":"1363"}},"id":"1361","type":"BoxZoomTool"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#e5ae38"},"line_alpha":{"value":0.1},"line_color":{"value":"#e5ae38"},"size":{"units":"screen","value":2.449489742783178},"x":{"field":"x"},"y":{"field":"y"}},"id":"1411","type":"Scatter"},{"attributes":{"axis_label":"y","bounds":"auto","formatter":{"id":"1372"},"major_label_orientation":"horizontal","ticker":{"id":"1355"}},"id":"1354","type":"LinearAxis"},{"attributes":{"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1129","type":"Segment"},{"attributes":{},"id":"1359","type":"PanTool"},{"attributes":{"end":10.070963023051554,"reset_end":10.070963023051554,"reset_start":-2.451898624398876,"start":-2.451898624398876,"tags":[[["x","x",null]]]},"id":"1339","type":"Range1d"},{"attributes":{"line_alpha":{"value":0.1},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1136","type":"Segment"},{"attributes":{},"id":"1362","type":"ResetTool"},{"attributes":{},"id":"1529","type":"UnionRenderers"},{"attributes":{},"id":"1355","type":"BasicTicker"},{"attributes":{},"id":"1530","type":"Selection"},{"attributes":{},"id":"1104","type":"PanTool"},{"attributes":{"data":{"index":["1","1"],"x":{"__ndarray__":"2OgIQbPb6r//cMw4Bg4iQA==","dtype":"float64","shape":[2]}},"selected":{"id":"1524"},"selection_policy":{"id":"1523"}},"id":"1115","type":"ColumnDataSource"},{"attributes":{"source":{"id":"1121"}},"id":"1126","type":"CDSView"},{"attributes":{"data_source":{"id":"1121"},"glyph":{"id":"1123"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1124"},"selection_glyph":null,"view":{"id":"1126"}},"id":"1125","type":"GlyphRenderer"},{"attributes":{"source":{"id":"1407"}},"id":"1414","type":"CDSView"},{"attributes":{"data_source":{"id":"1407"},"glyph":{"id":"1410"},"hover_glyph":null,"muted_glyph":{"id":"1412"},"nonselection_glyph":{"id":"1411"},"selection_glyph":null,"view":{"id":"1414"}},"id":"1413","type":"GlyphRenderer"},{"attributes":{},"id":"1358","type":"SaveTool"},{"attributes":{"fill_alpha":{"value":0.2},"fill_color":{"value":"#e5ae38"},"line_alpha":{"value":0.2},"line_color":{"value":"#e5ae38"},"size":{"units":"screen","value":2.449489742783178},"x":{"field":"x"},"y":{"field":"y"}},"id":"1412","type":"Scatter"},{"attributes":{"text":""},"id":"1088","type":"Title"},{"attributes":{"align":null,"below":[{"id":"1350"}],"center":[{"id":"1353"},{"id":"1357"},{"id":"1388"}],"left":[{"id":"1354"}],"margin":null,"min_border_bottom":10,"min_border_left":10,"min_border_right":10,"min_border_top":10,"plot_height":300,"plot_width":300,"renderers":[{"id":"1380"},{"id":"1396"},{"id":"1413"}],"sizing_mode":"fixed","title":{"id":"1342"},"toolbar":{"id":"1364"},"x_range":{"id":"1339"},"x_scale":{"id":"1346"},"y_range":{"id":"1340"},"y_scale":{"id":"1348"}},"id":"1341","subtype":"Figure","type":"Plot"},{"attributes":{"bottom":{"field":"bottom"},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1151","type":"VBar"},{"attributes":{"axis_label":"x","bounds":"auto","formatter":{"id":"1166"},"major_label_orientation":"horizontal","ticker":{"id":"1100"}},"id":"1099","type":"LinearAxis"},{"attributes":{"data":{"bottom":{"__ndarray__":"l6JVJhGkDECW0oCotgEAQMBdo/48c/E/","dtype":"float64","shape":[3]},"box_color":["1","2","3"],"index":["1","2","3"],"top":{"__ndarray__":"7xpsGibnA0Dk5+yFFxDvP1j94C4b/dA/","dtype":"float64","shape":[3]}},"selected":{"id":"1536"},"selection_policy":{"id":"1535"}},"id":"1155","type":"ColumnDataSource"},{"attributes":{},"id":"1531","type":"UnionRenderers"},{"attributes":{"text":""},"id":"1342","type":"Title"},{"attributes":{},"id":"1532","type":"Selection"},{"attributes":{},"id":"1404","type":"UnionRenderers"},{"attributes":{"data_source":{"id":"1146"},"glyph":{"id":"1148"},"hover_glyph":{"id":"1151"},"muted_glyph":{"id":"1152"},"nonselection_glyph":{"id":"1149"},"selection_glyph":{"id":"1150"},"view":{"id":"1154"}},"id":"1153","type":"GlyphRenderer"},{"attributes":{"factors":["1","2","3"],"palette":["#440154","#440255","#440357"]},"id":"1145","type":"CategoricalColorMapper"},{"attributes":{"end":10.070963023051554,"reset_end":10.070963023051554,"reset_start":-2.451898624398876,"start":-2.451898624398876,"tags":[[["x","x",null]]]},"id":"1086","type":"Range1d"},{"attributes":{"bottom":{"field":"bottom"},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1152","type":"VBar"},{"attributes":{"axis":{"id":"1354"},"dimension":1,"grid_line_color":null,"ticker":null},"id":"1357","type":"Grid"},{"attributes":{},"id":"1105","type":"WheelZoomTool"},{"attributes":{"height":30},"id":"1510","type":"Spacer"},{"attributes":{"data":{"bottom":{"__ndarray__":"0PPN8RrKEUAl4KmBSCcQQESyaynCaghA","dtype":"float64","shape":[3]},"box_color":["1","2","3"],"index":["1","2","3"],"top":{"__ndarray__":"l6JVJhGkDECW0oCotgEAQMBdo/48c/E/","dtype":"float64","shape":[3]}},"selected":{"id":"1534"},"selection_policy":{"id":"1533"}},"id":"1146","type":"ColumnDataSource"},{"attributes":{"data_source":{"id":"1133"},"glyph":{"id":"1135"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1136"},"selection_glyph":null,"view":{"id":"1138"}},"id":"1137","type":"GlyphRenderer"},{"attributes":{},"id":"1097","type":"CategoricalTicker"},{"attributes":{"overlay":{"id":"1108"}},"id":"1106","type":"BoxZoomTool"},{"attributes":{},"id":"1533","type":"UnionRenderers"},{"attributes":{"axis":{"id":"1099"},"dimension":1,"grid_line_color":null,"ticker":null},"id":"1102","type":"Grid"},{"attributes":{},"id":"1534","type":"Selection"},{"attributes":{},"id":"1092","type":"CategoricalScale"},{"attributes":{"bottom_units":"screen","fill_alpha":0.5,"fill_color":"lightgrey","left_units":"screen","level":"overlay","line_alpha":1.0,"line_color":"black","line_dash":[4,4],"line_width":2,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"1363","type":"BoxAnnotation"},{"attributes":{"fill_alpha":{"value":0.2},"fill_color":{"value":"#fc4f30"},"line_alpha":{"value":0.2},"line_color":{"value":"#fc4f30"},"size":{"units":"screen","value":2.449489742783178},"x":{"field":"x"},"y":{"field":"y"}},"id":"1395","type":"Scatter"},{"attributes":{"axis":{"id":"1350"},"grid_line_color":null,"ticker":null},"id":"1353","type":"Grid"},{"attributes":{"line_alpha":{"value":0.1},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1130","type":"Segment"},{"attributes":{"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1141","type":"Segment"},{"attributes":{"fill_color":{"value":"#fc4f30"},"line_color":{"value":"#fc4f30"},"size":{"units":"screen","value":2.449489742783178},"x":{"field":"x"},"y":{"field":"y"}},"id":"1393","type":"Scatter"},{"attributes":{"line_alpha":{"value":0.1},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1142","type":"Segment"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#fc4f30"},"line_alpha":{"value":0.1},"line_color":{"value":"#fc4f30"},"size":{"units":"screen","value":2.449489742783178},"x":{"field":"x"},"y":{"field":"y"}},"id":"1394","type":"Scatter"},{"attributes":{"end":18.518191184480298,"reset_end":18.518191184480298,"reset_start":-2.260268661799924,"start":-2.260268661799924,"tags":[[["y","y",null]]]},"id":"1340","type":"Range1d"},{"attributes":{"source":{"id":"1146"}},"id":"1154","type":"CDSView"},{"attributes":{"line_alpha":{"value":0.1},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1124","type":"Segment"},{"attributes":{},"id":"1351","type":"BasicTicker"},{"attributes":{},"id":"1100","type":"BasicTicker"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.1},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"line_alpha":{"value":0.1},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1149","type":"VBar"},{"attributes":{},"id":"1107","type":"ResetTool"},{"attributes":{"source":{"id":"1127"}},"id":"1132","type":"CDSView"},{"attributes":{"axis":{"id":"1096"},"grid_line_color":null,"ticker":null},"id":"1098","type":"Grid"},{"attributes":{"data_source":{"id":"1127"},"glyph":{"id":"1129"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1130"},"selection_glyph":null,"view":{"id":"1132"}},"id":"1131","type":"GlyphRenderer"},{"attributes":{"factors":["1","2","3"],"tags":[[["trial","trial",null]]]},"id":"1085","type":"FactorRange"},{"attributes":{"bottom_units":"screen","fill_alpha":0.5,"fill_color":"lightgrey","left_units":"screen","level":"overlay","line_alpha":1.0,"line_color":"black","line_dash":[4,4],"line_width":2,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"1108","type":"BoxAnnotation"},{"attributes":{"fill_color":{"value":"#e5ae38"},"line_color":{"value":"#e5ae38"},"size":{"units":"screen","value":2.449489742783178},"x":{"field":"x"},"y":{"field":"y"}},"id":"1410","type":"Scatter"},{"attributes":{},"id":"1535","type":"UnionRenderers"},{"attributes":{},"id":"1372","type":"BasicTickFormatter"},{"attributes":{},"id":"1536","type":"Selection"},{"attributes":{"data":{"x0":[["1",-0.2],["2",-0.2],["3",-0.2]],"x1":[["1",0.2],["2",0.2],["3",0.2]],"y0":[6.100181453093447,6.761675778019727,4.884944592813358],"y1":[6.100181453093447,6.761675778019727,4.884944592813358]},"selected":{"id":"1532"},"selection_policy":{"id":"1531"}},"id":"1139","type":"ColumnDataSource"},{"attributes":{"axis_label":"trial","bounds":"auto","formatter":{"id":"1165"},"major_label_orientation":"horizontal","ticker":{"id":"1097"}},"id":"1096","type":"CategoricalAxis"},{"attributes":{"bottom":{"field":"bottom"},"fill_color":{"field":"box_color","transform":{"id":"1145"}},"top":{"field":"top"},"width":{"value":0.7},"x":{"field":"index"}},"id":"1148","type":"VBar"},{"attributes":{"source":{"id":"1133"}},"id":"1138","type":"CDSView"},{"attributes":{"axis_label":"x","bounds":"auto","formatter":{"id":"1370"},"major_label_orientation":"horizontal","ticker":{"id":"1351"}},"id":"1350","type":"LinearAxis"},{"attributes":{},"id":"1165","type":"CategoricalTickFormatter"},{"attributes":{},"id":"1094","type":"LinearScale"},{"attributes":{"data_source":{"id":"1390"},"glyph":{"id":"1393"},"hover_glyph":null,"muted_glyph":{"id":"1395"},"nonselection_glyph":{"id":"1394"},"selection_glyph":null,"view":{"id":"1397"}},"id":"1396","type":"GlyphRenderer"},{"attributes":{"label":{"value":"3"},"renderers":[{"id":"1413"}]},"id":"1425","type":"LegendItem"},{"attributes":{"source":{"id":"1390"}},"id":"1397","type":"CDSView"}],"root_ids":["1511"]},"title":"Bokeh Application","version":"2.0.2"}};n”, ” var render_items = [{"docid":"d326b225-5db0-4204-9a32-de09b47586ae","root_ids":["1511"],"roots":{"1511":"55a22761-7d23-4155-8d06-5f5ab9ba4d80"}}];n”, ” root.Bokeh.embed.embed_items_notebook(docs_json, render_items);n”, “n”, ” }n”, ” if (root.Bokeh !== undefined) {n”, ” embed_document(root);n”, ” } else {n”, ” var attempts = 0;n”, ” var timer = setInterval(function(root) {n”, ” if (root.Bokeh !== undefined) {n”, ” clearInterval(timer);n”, ” embed_document(root);n”, ” } else {n”, ” attempts++;n”, ” if (attempts > 100) {n”, ” clearInterval(timer);n”, ” console.log("Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing");n”, ” }n”, ” }n”, ” }, 10, root)n”, ” }n”, “})(window);”
], “application/vnd.bokehjs_exec.v0+json”: “”
}, “metadata”: {
- “application/vnd.bokehjs_exec.v0+json”: {
“id”: “1511”
}
}, “output_type”: “display_data”
}
], “source”: [
“df = pd.read_csv("sample_data.csv")n”, “df[‘trial’] = df[‘trial’].astype(str)n”, ” n”, “def make_plots(df):n”, ” box = hv.BoxWhisker(df, kdims=["trial"], vdims=["x"]).opts(box_color=’trial’)n”, ” scatter = hv.Points(df, kdims=["x", "y"], vdims="trial").groupby("trial").overlay()n”, “n”, ” box = hv.render(box)n”, ” scatter = hv.render(scatter)n”, “n”, ” return bokeh.layouts.column(box, bokeh.layouts.Spacer(height=30), scatter)n”, “n”, “n”, “bokeh.io.show(make_plots(df))”
]
}, {
“cell_type”: “markdown”, “metadata”: {}, “source”: [
“## Plots with bebi103 defaultsn”, “n”, “To set the defaults, we execute bebi103.hv.set_defaults(), and the defaults will be active for all cells in a notebook that follow. We can set the defaults and see the new styling of the plots.”
]
}, {
“cell_type”: “code”, “execution_count”: 3, “metadata”: {}, “outputs”: [
- {
- “data”: {
- “text/html”: [
“n”, “n”, “n”, “n”, “n”, “n”, ” <div class="bk-root" id="fdd130aa-93a1-4224-861f-ec7897f455c8" data-root-id="2253"></div>n”
]
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “application/javascript”: [
“(function(root) {n”, ” function embed_document(root) {n”, ” n”, ” var docs_json = {"b1811d47-da9b-4f2c-9f87-0b8b85cb8888":{"roots":{"references":[{"attributes":{"children":[{"id":"1823"},{"id":"2252"},{"id":"2081"}]},"id":"2253","type":"Column"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1839"},{"id":"1840"},{"id":"1841"},{"id":"1842"},{"id":"1843"}]},"id":"1845","type":"Toolbar"},{"attributes":{"data_source":{"id":"2132"},"glyph":{"id":"2135"},"hover_glyph":null,"muted_glyph":{"id":"2137"},"nonselection_glyph":{"id":"2136"},"selection_glyph":null,"view":{"id":"2139"}},"id":"2138","type":"GlyphRenderer"},{"attributes":{"fill_alpha":{"value":0.2},"fill_color":{"value":"#2ba02b"},"line_alpha":{"value":0.2},"line_color":{"value":"#2ba02b"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2154","type":"Scatter"},{"attributes":{},"id":"2301","type":"UnionRenderers"},{"attributes":{},"id":"2178","type":"UnionRenderers"},{"attributes":{},"id":"2302","type":"Selection"},{"attributes":{"height":30},"id":"2252","type":"Spacer"},{"attributes":{},"id":"2091","type":"BasicTicker"},{"attributes":{"source":{"id":"1851"}},"id":"1856","type":"CDSView"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"black"},"line_alpha":{"value":0.75},"line_color":{"value":null},"x":{"field":"index"},"y":{"field":"x"}},"id":"1854","type":"Circle"},{"attributes":{"data_source":{"id":"2149"},"glyph":{"id":"2152"},"hover_glyph":null,"muted_glyph":{"id":"2154"},"nonselection_glyph":{"id":"2153"},"selection_glyph":null,"view":{"id":"2156"}},"id":"2155","type":"GlyphRenderer"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"black"},"line_alpha":{"value":0.75},"line_color":{"value":null},"x":{"field":"index"},"y":{"field":"x"}},"id":"1853","type":"Circle"},{"attributes":{"label":{"value":"2"},"renderers":[{"id":"2138"}]},"id":"2148","type":"LegendItem"},{"attributes":{"source":{"id":"2149"}},"id":"2156","type":"CDSView"},{"attributes":{"label":{"value":"3"},"renderers":[{"id":"2155"}]},"id":"2167","type":"LegendItem"},{"attributes":{},"id":"2303","type":"UnionRenderers"},{"attributes":{},"id":"2304","type":"Selection"},{"attributes":{},"id":"2165","type":"UnionRenderers"},{"attributes":{},"id":"1902","type":"BasicTickFormatter"},{"attributes":{},"id":"2146","type":"UnionRenderers"},{"attributes":{"source":{"id":"1869"}},"id":"1874","type":"CDSView"},{"attributes":{"data_source":{"id":"1869"},"glyph":{"id":"1871"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1872"},"selection_glyph":null,"view":{"id":"1874"}},"id":"1873","type":"GlyphRenderer"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#222222"},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1872","type":"Segment"},{"attributes":{},"id":"2305","type":"UnionRenderers"},{"attributes":{},"id":"2306","type":"Selection"},{"attributes":{},"id":"2088","type":"LinearScale"},{"attributes":{"text":""},"id":"2082","type":"Title"},{"attributes":{},"id":"2307","type":"UnionRenderers"},{"attributes":{"axis_label":"x","bounds":"auto","formatter":{"id":"2110"},"major_label_orientation":"horizontal","ticker":{"id":"2091"}},"id":"2090","type":"LinearAxis"},{"attributes":{},"id":"2308","type":"Selection"},{"attributes":{},"id":"2086","type":"LinearScale"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1896","type":"VBar"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1895","type":"VBar"},{"attributes":{"fill_alpha":{"value":0.2},"fill_color":{"value":"#ff7e0e"},"line_alpha":{"value":0.2},"line_color":{"value":"#ff7e0e"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2137","type":"Scatter"},{"attributes":{"data":{"x0":["1","2","3"],"x1":["1","2","3"],"y0":{"__ndarray__":"986C95VmGEAWADO89AsbQCSfU+ouihNA","dtype":"float64","shape":[3]},"y1":{"__ndarray__":"0PPN8RrKEUAl4KmBSCcQQESyaynCaghA","dtype":"float64","shape":[3]}},"selected":{"id":"2300"},"selection_policy":{"id":"2299"}},"id":"1857","type":"ColumnDataSource"},{"attributes":{"line_color":{"value":"#222222"},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1877","type":"Segment"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#ff7e0e"},"line_alpha":{"value":0.75},"line_color":{"value":"#ff7e0e"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2136","type":"Scatter"},{"attributes":{},"id":"2150","type":"Selection"},{"attributes":{},"id":"2098","type":"SaveTool"},{"attributes":{"align":null,"below":[{"id":"2090"}],"center":[{"id":"2093"},{"id":"2097"}],"frame_height":300,"frame_width":300,"left":[{"id":"2094"}],"margin":null,"min_border_bottom":10,"min_border_left":10,"min_border_right":10,"min_border_top":10,"plot_height":null,"plot_width":null,"renderers":[{"id":"2122"},{"id":"2138"},{"id":"2155"}],"right":[{"id":"2130"}],"sizing_mode":"fixed","title":{"id":"2082"},"toolbar":{"id":"2104"},"toolbar_location":"above","x_range":{"id":"2079"},"x_scale":{"id":"2086"},"y_range":{"id":"2080"},"y_scale":{"id":"2088"}},"id":"2081","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"2110","type":"BasicTickFormatter"},{"attributes":{},"id":"2309","type":"UnionRenderers"},{"attributes":{"axis":{"id":"2094"},"dimension":1,"ticker":{"id":"2095"}},"id":"2097","type":"Grid"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#ff7e0e"},"line_alpha":{"value":0.75},"line_color":{"value":"#ff7e0e"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2135","type":"Scatter"},{"attributes":{},"id":"2310","type":"Selection"},{"attributes":{"end":17.65242202421862,"reset_end":17.65242202421862,"reset_start":-1.3944995015382484,"start":-1.3944995015382484,"tags":[[["y","y",null]]]},"id":"2080","type":"Range1d"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#222222"},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1878","type":"Segment"},{"attributes":{},"id":"2100","type":"WheelZoomTool"},{"attributes":{"source":{"id":"2132"}},"id":"2139","type":"CDSView"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#2ba02b"},"line_alpha":{"value":0.75},"line_color":{"value":"#2ba02b"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2152","type":"Scatter"},{"attributes":{},"id":"2133","type":"Selection"},{"attributes":{"data_source":{"id":"1891"},"glyph":{"id":"1893"},"hover_glyph":{"id":"1896"},"muted_glyph":{"id":"1897"},"nonselection_glyph":{"id":"1894"},"selection_glyph":{"id":"1895"},"view":{"id":"1899"}},"id":"1898","type":"GlyphRenderer"},{"attributes":{},"id":"2095","type":"BasicTicker"},{"attributes":{"axis_label":"y","bounds":"auto","formatter":{"id":"2112"},"major_label_orientation":"horizontal","ticker":{"id":"2095"}},"id":"2094","type":"LinearAxis"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1897","type":"VBar"},{"attributes":{},"id":"2297","type":"UnionRenderers"},{"attributes":{},"id":"2298","type":"Selection"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#2ba02b"},"line_alpha":{"value":0.75},"line_color":{"value":"#2ba02b"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2153","type":"Scatter"},{"attributes":{},"id":"1901","type":"CategoricalTickFormatter"},{"attributes":{},"id":"2099","type":"PanTool"},{"attributes":{"bottom_units":"screen","fill_alpha":0.5,"fill_color":"lightgrey","left_units":"screen","level":"overlay","line_alpha":1.0,"line_color":"black","line_dash":[4,4],"line_width":2,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"1844","type":"BoxAnnotation"},{"attributes":{"axis":{"id":"2090"},"ticker":{"id":"2091"}},"id":"2093","type":"Grid"},{"attributes":{"source":{"id":"1891"}},"id":"1899","type":"CDSView"},{"attributes":{"source":{"id":"1875"}},"id":"1880","type":"CDSView"},{"attributes":{},"id":"2102","type":"ResetTool"},{"attributes":{},"id":"2299","type":"UnionRenderers"},{"attributes":{},"id":"2300","type":"Selection"},{"attributes":{"data_source":{"id":"1875"},"glyph":{"id":"1877"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1878"},"selection_glyph":null,"view":{"id":"1880"}},"id":"1879","type":"GlyphRenderer"},{"attributes":{"overlay":{"id":"2103"}},"id":"2101","type":"BoxZoomTool"},{"attributes":{"data":{"x":{"__ndarray__":"wf6s8AlB/T/+VAptLxz2P6hKq9Od+QJAisWJ3jrg5j+Vs5S7lfoEQCyxLSXCXuu/IGC2TlDr1r8kn1PqLooTQHBzTAose8Q/oPNotLbru78bpAhW1Z3iP+gOjL+9XhFAikns7XB1EEAGzXgglZTpP/+hWppmtYa/1LEITiaQCUDUqn6q/hHnP6yzTSZVPxNA","dtype":"float64","shape":[18]},"y":{"__ndarray__":"DOmPs14ZIEAE2nhl2yIXQI4zM6x16CFA76I1GrV6C0A7U5WyDV0TQIt99NMJrxdASWmGTZ88H0BfiO/9WqMgQEbChEW8LhVAnY/6IzHsEkDLQOQEWEIRQPZQqvcFNxdA2X7/8uoaFEAXhDciW/MMQDQD49DFohFAkols8F1tJkCRtA3Dz/IbQLjX0NV8SyFA","dtype":"float64","shape":[18]}},"selected":{"id":"2150"},"selection_policy":{"id":"2178"}},"id":"2149","type":"ColumnDataSource"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1888","type":"VBar"},{"attributes":{"end":9.549177121074452,"reset_end":9.549177121074452,"reset_start":-1.9301127224217747,"start":-1.9301127224217747,"tags":[[["x","x",null]]]},"id":"2079","type":"Range1d"},{"attributes":{"data_source":{"id":"1857"},"glyph":{"id":"1859"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1860"},"selection_glyph":null,"view":{"id":"1862"}},"id":"1861","type":"GlyphRenderer"},{"attributes":{"bottom_units":"screen","fill_alpha":0.5,"fill_color":"lightgrey","left_units":"screen","level":"overlay","line_alpha":1.0,"line_color":"black","line_dash":[4,4],"line_width":2,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"2103","type":"BoxAnnotation"},{"attributes":{"data":{"x0":[["1",-0.2],["2",-0.2],["3",-0.2]],"x1":[["1",0.2],["2",0.2],["3",0.2]],"y0":[1.7628858289874294,-1.4083268204446735,-0.8553171850340155],"y1":[1.7628858289874294,-1.4083268204446735,-0.8553171850340155]},"selected":{"id":"2304"},"selection_policy":{"id":"2303"}},"id":"1869","type":"ColumnDataSource"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1884","type":"VBar"},{"attributes":{"end":9.549177121074452,"reset_end":9.549177121074452,"reset_start":-1.9301127224217747,"start":-1.9301127224217747,"tags":[[["x","x",null]]]},"id":"1822","type":"Range1d"},{"attributes":{"data_source":{"id":"1863"},"glyph":{"id":"1865"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1866"},"selection_glyph":null,"view":{"id":"1868"}},"id":"1867","type":"GlyphRenderer"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#222222"},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1866","type":"Segment"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"2098"},{"id":"2099"},{"id":"2100"},{"id":"2101"},{"id":"2102"}]},"id":"2104","type":"Toolbar"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#1f77b3"},"line_alpha":{"value":0.75},"line_color":{"value":"#1f77b3"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2120","type":"Scatter"},{"attributes":{"data":{"x0":["1","2","3"],"x1":["1","2","3"],"y0":{"__ndarray__":"Y1Nhxcc0/D+LOz60gYj2vyyxLSXCXuu/","dtype":"float64","shape":[3]},"y1":{"__ndarray__":"7xpsGibnA0Dk5+yFFxDvP1j94C4b/dA/","dtype":"float64","shape":[3]}},"selected":{"id":"2302"},"selection_policy":{"id":"2301"}},"id":"1863","type":"ColumnDataSource"},{"attributes":{"data":{"bottom":{"__ndarray__":"l6JVJhGkDECW0oCotgEAQMBdo/48c/E/","dtype":"float64","shape":[3]},"box_color":["1","2","3"],"index":["1","2","3"],"top":{"__ndarray__":"7xpsGibnA0Dk5+yFFxDvP1j94C4b/dA/","dtype":"float64","shape":[3]}},"selected":{"id":"2310"},"selection_policy":{"id":"2309"}},"id":"1891","type":"ColumnDataSource"},{"attributes":{"factors":["1","2","3"],"tags":[[["trial","trial",null]]]},"id":"1821","type":"FactorRange"},{"attributes":{"data":{"x0":[["1",-0.2],["2",-0.2],["3",-0.2]],"x1":[["1",0.2],["2",0.2],["3",0.2]],"y0":[6.100181453093447,6.761675778019727,4.884944592813358],"y1":[6.100181453093447,6.761675778019727,4.884944592813358]},"selected":{"id":"2306"},"selection_policy":{"id":"2305"}},"id":"1875","type":"ColumnDataSource"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_alpha":{"value":0.1},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1894","type":"VBar"},{"attributes":{"text":""},"id":"1824","type":"Title"},{"attributes":{},"id":"1841","type":"WheelZoomTool"},{"attributes":{"label":{"value":"1"},"renderers":[{"id":"2122"}]},"id":"2131","type":"LegendItem"},{"attributes":{"overlay":{"id":"1844"}},"id":"1842","type":"BoxZoomTool"},{"attributes":{},"id":"1828","type":"CategoricalScale"},{"attributes":{"align":null,"below":[{"id":"1832"}],"center":[{"id":"1834"},{"id":"1838"}],"frame_height":300,"frame_width":400,"left":[{"id":"1835"}],"margin":null,"min_border_bottom":10,"min_border_left":10,"min_border_right":10,"min_border_top":10,"plot_height":null,"plot_width":null,"renderers":[{"id":"1855"},{"id":"1861"},{"id":"1867"},{"id":"1873"},{"id":"1879"},{"id":"1889"},{"id":"1898"}],"sizing_mode":"fixed","title":{"id":"1824"},"toolbar":{"id":"1845"},"toolbar_location":"above","x_range":{"id":"1821"},"x_scale":{"id":"1828"},"y_range":{"id":"1822"},"y_scale":{"id":"1830"}},"id":"1823","subtype":"Figure","type":"Plot"},{"attributes":{"source":{"id":"1863"}},"id":"1868","type":"CDSView"},{"attributes":{"axis":{"id":"1835"},"dimension":1,"ticker":{"id":"1836"}},"id":"1838","type":"Grid"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_alpha":{"value":0.1},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1885","type":"VBar"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1893","type":"VBar"},{"attributes":{},"id":"1843","type":"ResetTool"},{"attributes":{"data":{"x":{"__ndarray__":"RCq4yXRcEkDOyPyH/0INQCcGgFgtgfs/3SeYU4fMBUAl4KmBSCcQQBRf/2ptXAFAjAbxvjbnCkCE8xsuMIPlvxYAM7z0CxtAjC5xcdgZ0D8z2VxR2BX5P6bbFZ16JhhAyevkGXNw9j+xUIjVXHYVQJbSgKi2AQBAsLmDBmz07L98bupFejDkPwkqjsVNAgZAYqFSkKMH6z+LOz60gYj2vxekwW87mfg/sWtzqy9z+j//L8kAXY4TQOTn7IUXEO8/+1OEiYv6EkA=","dtype":"float64","shape":[25]},"y":{"__ndarray__":"b8pMJO+9JEBPRWH78EwUQI0gBXUvPiJAyR7aMYnqI0AvNcmPTLEhQAfyjxkaHiJAcqfqdLB2EUAQ8oXkW+vgv67QhknLmShA5NqVC0JeEUB1WDF/58cXQHD1h0ThSiBAvYDq4F/bDUBm5AxmTmQXQFEVVK0NERlAvXvV8JlzEEBa1lb9+VAVQNkzcez+Rx9AmwDNOeEEDkB9APET8SoPQKZfdz/MgBZAYZfWHTc4GkAX3KT3mYUjQJD9Gtf5C/Y/+kPfJKYQJEA=","dtype":"float64","shape":[25]}},"selected":{"id":"2133"},"selection_policy":{"id":"2165"}},"id":"2132","type":"ColumnDataSource"},{"attributes":{},"id":"1840","type":"PanTool"},{"attributes":{"line_color":{"value":"#222222"},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1865","type":"Segment"},{"attributes":{"data_source":{"id":"1882"},"glyph":{"id":"1884"},"hover_glyph":{"id":"1887"},"muted_glyph":{"id":"1888"},"nonselection_glyph":{"id":"1885"},"selection_glyph":{"id":"1886"},"view":{"id":"1890"}},"id":"1889","type":"GlyphRenderer"},{"attributes":{"data":{"bottom":{"__ndarray__":"0PPN8RrKEUAl4KmBSCcQQESyaynCaghA","dtype":"float64","shape":[3]},"box_color":["1","2","3"],"index":["1","2","3"],"top":{"__ndarray__":"l6JVJhGkDECW0oCotgEAQMBdo/48c/E/","dtype":"float64","shape":[3]}},"selected":{"id":"2308"},"selection_policy":{"id":"2307"}},"id":"1882","type":"ColumnDataSource"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#222222"},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1860","type":"Segment"},{"attributes":{"line_color":{"value":"#222222"},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1871","type":"Segment"},{"attributes":{"factors":["1","2","3"],"palette":["#1f77b3","#ff7e0e","#2ba02b"]},"id":"1881","type":"CategoricalColorMapper"},{"attributes":{"data":{"index":["1","1"],"x":{"__ndarray__":"2OgIQbPb6r//cMw4Bg4iQA==","dtype":"float64","shape":[2]}},"selected":{"id":"2298"},"selection_policy":{"id":"2297"}},"id":"1851","type":"ColumnDataSource"},{"attributes":{"source":{"id":"2116"}},"id":"2123","type":"CDSView"},{"attributes":{"source":{"id":"1882"}},"id":"1890","type":"CDSView"},{"attributes":{},"id":"2117","type":"Selection"},{"attributes":{"axis_label":"trial","bounds":"auto","formatter":{"id":"1901"},"major_label_orientation":"horizontal","ticker":{"id":"1833"}},"id":"1832","type":"CategoricalAxis"},{"attributes":{"click_policy":"hide","items":[{"id":"2131"},{"id":"2148"},{"id":"2167"}],"label_text_font_size":"8pt","location":[10,100],"title":"trial"},"id":"2130","type":"Legend"},{"attributes":{},"id":"2112","type":"BasicTickFormatter"},{"attributes":{},"id":"1839","type":"SaveTool"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1886","type":"VBar"},{"attributes":{"data_source":{"id":"1851"},"glyph":{"id":"1853"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1854"},"selection_glyph":null,"view":{"id":"1856"}},"id":"1855","type":"GlyphRenderer"},{"attributes":{"line_color":{"value":"#222222"},"x0":{"field":"x0"},"x1":{"field":"x1"},"y0":{"field":"y0"},"y1":{"field":"y1"}},"id":"1859","type":"Segment"},{"attributes":{"data":{"x":{"__ndarray__":"Y1Nhxcc0/D/FqJVct3URQAALPJQ3qQtA2OgIQbPb6r/u1HaxRccSQC46b7jqng1A986C95VmGECQPesDVVMAQCswiNfg6g5A/3DMOAYOIkAPUmewu/sKQNfjHdZKkhBAlY5kstNICEBSm/mZEUUEQJpw4i0euQNAErR8Etfr/D+dpE9mLVcWQIzjWUjGYxNAtlPvE372A0BXwz5yQ/sQQA==","dtype":"float64","shape":[20]},"y":{"__ndarray__":"aRRfd0bpJ0DbzxTI9EUmQLFvA6I/mihATP3uvMXNJEC8TLNpxdknQI1ViYUv7iZAttyuZ/3xJUBGDm99B/UiQJCPlIA2ASpA9P8DFWLJMEAmqG9+LHAhQIDV2G7tfCVAebqhup9IJUDxQ3x9tKgYQM0OLDXm/iFAPt/elb5DI0BVe5i5nYsnQGIx5WqXzSFAodMvXO4cGUCiHOO7NsspQA==","dtype":"float64","shape":[20]}},"selected":{"id":"2117"},"selection_policy":{"id":"2146"}},"id":"2116","type":"ColumnDataSource"},{"attributes":{},"id":"1830","type":"LinearScale"},{"attributes":{"data_source":{"id":"2116"},"glyph":{"id":"2119"},"hover_glyph":null,"muted_glyph":{"id":"2121"},"nonselection_glyph":{"id":"2120"},"selection_glyph":null,"view":{"id":"2123"}},"id":"2122","type":"GlyphRenderer"},{"attributes":{},"id":"1836","type":"BasicTicker"},{"attributes":{"axis_label":"x","bounds":"auto","formatter":{"id":"1902"},"major_label_orientation":"horizontal","ticker":{"id":"1836"}},"id":"1835","type":"LinearAxis"},{"attributes":{"fill_alpha":{"value":0.2},"fill_color":{"value":"#1f77b3"},"line_alpha":{"value":0.2},"line_color":{"value":"#1f77b3"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2121","type":"Scatter"},{"attributes":{"axis":{"id":"1832"},"grid_line_color":null,"ticker":{"id":"1833"}},"id":"1834","type":"Grid"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#1f77b3"},"line_alpha":{"value":0.75},"line_color":{"value":"#1f77b3"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2119","type":"Scatter"},{"attributes":{},"id":"1833","type":"CategoricalTicker"},{"attributes":{"source":{"id":"1857"}},"id":"1862","type":"CDSView"},{"attributes":{"bottom":{"field":"bottom"},"fill_alpha":{"value":0.75},"fill_color":{"field":"box_color","transform":{"id":"1881"}},"line_color":{"value":"#222222"},"top":{"field":"top"},"width":{"value":0.4},"x":{"field":"index"}},"id":"1887","type":"VBar"}],"root_ids":["2253"]},"title":"Bokeh Application","version":"2.0.2"}};n”, ” var render_items = [{"docid":"b1811d47-da9b-4f2c-9f87-0b8b85cb8888","root_ids":["2253"],"roots":{"2253":"fdd130aa-93a1-4224-861f-ec7897f455c8"}}];n”, ” root.Bokeh.embed.embed_items_notebook(docs_json, render_items);n”, “n”, ” }n”, ” if (root.Bokeh !== undefined) {n”, ” embed_document(root);n”, ” } else {n”, ” var attempts = 0;n”, ” var timer = setInterval(function(root) {n”, ” if (root.Bokeh !== undefined) {n”, ” clearInterval(timer);n”, ” embed_document(root);n”, ” } else {n”, ” attempts++;n”, ” if (attempts > 100) {n”, ” clearInterval(timer);n”, ” console.log("Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing");n”, ” }n”, ” }n”, ” }, 10, root)n”, ” }n”, “})(window);”
], “application/vnd.bokehjs_exec.v0+json”: “”
}, “metadata”: {
- “application/vnd.bokehjs_exec.v0+json”: {
“id”: “2253”
}
}, “output_type”: “display_data”
}
], “source”: [
“bebi103.hv.set_defaults()n”, “n”, “bokeh.io.show(make_plots(df))”
]
}, {
“cell_type”: “markdown”, “metadata”: {}, “source”: [
“In both cases, the default plot has larger dimensions and the toolbar is above the plot. Notable differences in the box-and-whisker plot are the use of the Category10 colormap and horizontal grid lines. Notable differences in the scatter plot are the Category10 colormap, larger glyphs, grid lines, and a legend placed outside of the plot.”
]
}, {
“cell_type”: “markdown”, “metadata”: {}, “source”: [
“## Caution setting defaultsn”, “n”, “There are a few caveats to keep in mind when setting the defaults.n”, “n”, “1. In some cases, setting the defaults can lead to errors when doing some compositions using HoloViews. This is because certain properties that are useful for stand-alone plots cannot be set when the plots are in some types of layouts. If you get such an error, the easiest fix is simply not to set the defaults and instead set your styling options using the .opts method of your plotting elements.n”, “2. The positioning of legends outside of the plot area is convenient, but vertical legend position can be off if there are a large number of entries in the legend because the legend_offset parameter is hard-coded in the defaults. You can reposition the legend by setting the legend_offset in the opts when you make the plotting element. Below, we change the legend position manually, which can be done even after the defaults have been set.”
]
}, {
“cell_type”: “code”, “execution_count”: 4, “metadata”: {}, “outputs”: [
- {
- “data”: {
- “text/html”: [
“n”, “n”, “n”, “n”, “n”, “n”, ” <div class="bk-root" id="7de90984-3173-4cb6-9994-66a0369ed316" data-root-id="2685"></div>n”
]
}, “metadata”: {}, “output_type”: “display_data”
}, {
- “data”: {
- “application/javascript”: [
“(function(root) {n”, ” function embed_document(root) {n”, ” n”, ” var docs_json = {"3c8e0fec-053b-4c1a-9e85-9923bed010ce":{"roots":{"references":[{"attributes":{"align":null,"below":[{"id":"2694"}],"center":[{"id":"2697"},{"id":"2701"}],"frame_height":300,"frame_width":300,"left":[{"id":"2698"}],"margin":null,"min_border_bottom":10,"min_border_left":10,"min_border_right":10,"min_border_top":10,"plot_height":null,"plot_width":null,"renderers":[{"id":"2726"},{"id":"2742"},{"id":"2759"}],"right":[{"id":"2734"}],"sizing_mode":"fixed","title":{"id":"2686"},"toolbar":{"id":"2708"},"toolbar_location":"above","x_range":{"id":"2683"},"x_scale":{"id":"2690"},"y_range":{"id":"2684"},"y_scale":{"id":"2692"}},"id":"2685","subtype":"Figure","type":"Plot"},{"attributes":{"axis_label":"x","bounds":"auto","formatter":{"id":"2714"},"major_label_orientation":"horizontal","ticker":{"id":"2695"}},"id":"2694","type":"LinearAxis"},{"attributes":{},"id":"2769","type":"UnionRenderers"},{"attributes":{"fill_alpha":{"value":0.2},"fill_color":{"value":"#1f77b3"},"line_alpha":{"value":0.2},"line_color":{"value":"#1f77b3"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2725","type":"Scatter"},{"attributes":{"label":{"value":"1"},"renderers":[{"id":"2726"}]},"id":"2735","type":"LegendItem"},{"attributes":{"data":{"x":{"__ndarray__":"RCq4yXRcEkDOyPyH/0INQCcGgFgtgfs/3SeYU4fMBUAl4KmBSCcQQBRf/2ptXAFAjAbxvjbnCkCE8xsuMIPlvxYAM7z0CxtAjC5xcdgZ0D8z2VxR2BX5P6bbFZ16JhhAyevkGXNw9j+xUIjVXHYVQJbSgKi2AQBAsLmDBmz07L98bupFejDkPwkqjsVNAgZAYqFSkKMH6z+LOz60gYj2vxekwW87mfg/sWtzqy9z+j//L8kAXY4TQOTn7IUXEO8/+1OEiYv6EkA=","dtype":"float64","shape":[25]},"y":{"__ndarray__":"b8pMJO+9JEBPRWH78EwUQI0gBXUvPiJAyR7aMYnqI0AvNcmPTLEhQAfyjxkaHiJAcqfqdLB2EUAQ8oXkW+vgv67QhknLmShA5NqVC0JeEUB1WDF/58cXQHD1h0ThSiBAvYDq4F/bDUBm5AxmTmQXQFEVVK0NERlAvXvV8JlzEEBa1lb9+VAVQNkzcez+Rx9AmwDNOeEEDkB9APET8SoPQKZfdz/MgBZAYZfWHTc4GkAX3KT3mYUjQJD9Gtf5C/Y/+kPfJKYQJEA=","dtype":"float64","shape":[25]}},"selected":{"id":"2737"},"selection_policy":{"id":"2769"}},"id":"2736","type":"ColumnDataSource"},{"attributes":{"fill_alpha":{"value":0.2},"fill_color":{"value":"#ff7e0e"},"line_alpha":{"value":0.2},"line_color":{"value":"#ff7e0e"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2741","type":"Scatter"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#1f77b3"},"line_alpha":{"value":0.75},"line_color":{"value":"#1f77b3"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2724","type":"Scatter"},{"attributes":{},"id":"2716","type":"BasicTickFormatter"},{"attributes":{"end":9.549177121074452,"reset_end":9.549177121074452,"reset_start":-1.9301127224217747,"start":-1.9301127224217747,"tags":[[["x","x",null]]]},"id":"2683","type":"Range1d"},{"attributes":{"data_source":{"id":"2720"},"glyph":{"id":"2723"},"hover_glyph":null,"muted_glyph":{"id":"2725"},"nonselection_glyph":{"id":"2724"},"selection_glyph":null,"view":{"id":"2727"}},"id":"2726","type":"GlyphRenderer"},{"attributes":{"fill_alpha":{"value":0.2},"fill_color":{"value":"#2ba02b"},"line_alpha":{"value":0.2},"line_color":{"value":"#2ba02b"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2758","type":"Scatter"},{"attributes":{},"id":"2750","type":"UnionRenderers"},{"attributes":{"label":{"value":"3"},"renderers":[{"id":"2759"}]},"id":"2771","type":"LegendItem"},{"attributes":{"data_source":{"id":"2736"},"glyph":{"id":"2739"},"hover_glyph":null,"muted_glyph":{"id":"2741"},"nonselection_glyph":{"id":"2740"},"selection_glyph":null,"view":{"id":"2743"}},"id":"2742","type":"GlyphRenderer"},{"attributes":{"end":17.65242202421862,"reset_end":17.65242202421862,"reset_start":-1.3944995015382484,"start":-1.3944995015382484,"tags":[[["y","y",null]]]},"id":"2684","type":"Range1d"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"2702"},{"id":"2703"},{"id":"2704"},{"id":"2705"},{"id":"2706"}]},"id":"2708","type":"Toolbar"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#ff7e0e"},"line_alpha":{"value":0.75},"line_color":{"value":"#ff7e0e"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2739","type":"Scatter"},{"attributes":{"source":{"id":"2753"}},"id":"2760","type":"CDSView"},{"attributes":{},"id":"2692","type":"LinearScale"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#2ba02b"},"line_alpha":{"value":0.75},"line_color":{"value":"#2ba02b"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2756","type":"Scatter"},{"attributes":{"text":""},"id":"2686","type":"Title"},{"attributes":{"click_policy":"hide","items":[{"id":"2735"},{"id":"2752"},{"id":"2771"}],"label_text_font_size":"8pt","location":[10,0],"title":"trial"},"id":"2734","type":"Legend"},{"attributes":{"data_source":{"id":"2753"},"glyph":{"id":"2756"},"hover_glyph":null,"muted_glyph":{"id":"2758"},"nonselection_glyph":{"id":"2757"},"selection_glyph":null,"view":{"id":"2760"}},"id":"2759","type":"GlyphRenderer"},{"attributes":{},"id":"2782","type":"UnionRenderers"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#1f77b3"},"line_alpha":{"value":0.75},"line_color":{"value":"#1f77b3"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2723","type":"Scatter"},{"attributes":{"data":{"x":{"__ndarray__":"Y1Nhxcc0/D/FqJVct3URQAALPJQ3qQtA2OgIQbPb6r/u1HaxRccSQC46b7jqng1A986C95VmGECQPesDVVMAQCswiNfg6g5A/3DMOAYOIkAPUmewu/sKQNfjHdZKkhBAlY5kstNICEBSm/mZEUUEQJpw4i0euQNAErR8Etfr/D+dpE9mLVcWQIzjWUjGYxNAtlPvE372A0BXwz5yQ/sQQA==","dtype":"float64","shape":[20]},"y":{"__ndarray__":"aRRfd0bpJ0DbzxTI9EUmQLFvA6I/mihATP3uvMXNJEC8TLNpxdknQI1ViYUv7iZAttyuZ/3xJUBGDm99B/UiQJCPlIA2ASpA9P8DFWLJMEAmqG9+LHAhQIDV2G7tfCVAebqhup9IJUDxQ3x9tKgYQM0OLDXm/iFAPt/elb5DI0BVe5i5nYsnQGIx5WqXzSFAodMvXO4cGUCiHOO7NsspQA==","dtype":"float64","shape":[20]}},"selected":{"id":"2721"},"selection_policy":{"id":"2750"}},"id":"2720","type":"ColumnDataSource"},{"attributes":{},"id":"2702","type":"SaveTool"},{"attributes":{"data":{"x":{"__ndarray__":"wf6s8AlB/T/+VAptLxz2P6hKq9Od+QJAisWJ3jrg5j+Vs5S7lfoEQCyxLSXCXuu/IGC2TlDr1r8kn1PqLooTQHBzTAose8Q/oPNotLbru78bpAhW1Z3iP+gOjL+9XhFAikns7XB1EEAGzXgglZTpP/+hWppmtYa/1LEITiaQCUDUqn6q/hHnP6yzTSZVPxNA","dtype":"float64","shape":[18]},"y":{"__ndarray__":"DOmPs14ZIEAE2nhl2yIXQI4zM6x16CFA76I1GrV6C0A7U5WyDV0TQIt99NMJrxdASWmGTZ88H0BfiO/9WqMgQEbChEW8LhVAnY/6IzHsEkDLQOQEWEIRQPZQqvcFNxdA2X7/8uoaFEAXhDciW/MMQDQD49DFohFAkols8F1tJkCRtA3Dz/IbQLjX0NV8SyFA","dtype":"float64","shape":[18]}},"selected":{"id":"2754"},"selection_policy":{"id":"2782"}},"id":"2753","type":"ColumnDataSource"},{"attributes":{},"id":"2737","type":"Selection"},{"attributes":{"axis_label":"y","bounds":"auto","formatter":{"id":"2716"},"major_label_orientation":"horizontal","ticker":{"id":"2699"}},"id":"2698","type":"LinearAxis"},{"attributes":{},"id":"2754","type":"Selection"},{"attributes":{"source":{"id":"2720"}},"id":"2727","type":"CDSView"},{"attributes":{"axis":{"id":"2694"},"ticker":{"id":"2695"}},"id":"2697","type":"Grid"},{"attributes":{},"id":"2706","type":"ResetTool"},{"attributes":{"label":{"value":"2"},"renderers":[{"id":"2742"}]},"id":"2752","type":"LegendItem"},{"attributes":{"overlay":{"id":"2707"}},"id":"2705","type":"BoxZoomTool"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#2ba02b"},"line_alpha":{"value":0.75},"line_color":{"value":"#2ba02b"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2757","type":"Scatter"},{"attributes":{},"id":"2703","type":"PanTool"},{"attributes":{"source":{"id":"2736"}},"id":"2743","type":"CDSView"},{"attributes":{},"id":"2704","type":"WheelZoomTool"},{"attributes":{},"id":"2695","type":"BasicTicker"},{"attributes":{},"id":"2690","type":"LinearScale"},{"attributes":{},"id":"2699","type":"BasicTicker"},{"attributes":{"axis":{"id":"2698"},"dimension":1,"ticker":{"id":"2699"}},"id":"2701","type":"Grid"},{"attributes":{},"id":"2721","type":"Selection"},{"attributes":{"bottom_units":"screen","fill_alpha":0.5,"fill_color":"lightgrey","left_units":"screen","level":"overlay","line_alpha":1.0,"line_color":"black","line_dash":[4,4],"line_width":2,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"2707","type":"BoxAnnotation"},{"attributes":{"fill_alpha":{"value":0.75},"fill_color":{"value":"#ff7e0e"},"line_alpha":{"value":0.75},"line_color":{"value":"#ff7e0e"},"size":{"units":"screen","value":5},"x":{"field":"x"},"y":{"field":"y"}},"id":"2740","type":"Scatter"},{"attributes":{},"id":"2714","type":"BasicTickFormatter"}],"root_ids":["2685"]},"title":"Bokeh Application","version":"2.0.2"}};n”, ” var render_items = [{"docid":"3c8e0fec-053b-4c1a-9e85-9923bed010ce","root_ids":["2685"],"roots":{"2685":"7de90984-3173-4cb6-9994-66a0369ed316"}}];n”, ” root.Bokeh.embed.embed_items_notebook(docs_json, render_items);n”, “n”, ” }n”, ” if (root.Bokeh !== undefined) {n”, ” embed_document(root);n”, ” } else {n”, ” var attempts = 0;n”, ” var timer = setInterval(function(root) {n”, ” if (root.Bokeh !== undefined) {n”, ” clearInterval(timer);n”, ” embed_document(root);n”, ” } else {n”, ” attempts++;n”, ” if (attempts > 100) {n”, ” clearInterval(timer);n”, ” console.log("Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing");n”, ” }n”, ” }n”, ” }, 10, root)n”, ” }n”, “})(window);”
], “application/vnd.bokehjs_exec.v0+json”: “”
}, “metadata”: {
- “application/vnd.bokehjs_exec.v0+json”: {
“id”: “2685”
}
}, “output_type”: “display_data”
}
], “source”: [
“scatter = (n”, ” hv.Points(df, kdims=["x", "y"], vdims="trial")n”, ” .groupby("trial")n”, ” .overlay()n”, ” .opts(legend_offset=(10, 0))n”, “)n”, “n”, “bokeh.io.show(hv.render(scatter))”
]
}
], “metadata”: {
- “kernelspec”: {
“display_name”: “Python 3”, “language”: “python”, “name”: “python3”
}, “language_info”: {
- “codemirror_mode”: {
“name”: “ipython”, “version”: 3
}, “file_extension”: “.py”, “mimetype”: “text/x-python”, “name”: “python”, “nbconvert_exporter”: “python”, “pygments_lexer”: “ipython3”, “version”: “3.8.2”
}
}, “nbformat”: 4, “nbformat_minor”: 4
}